/* ——— Food Party 2 ——— */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&display=swap');

.game-shell.fp2-mode {
  max-width: 480px;
  margin: 0 auto;
  background: #1a0a08;
}
.game-shell.fp2-mode .game-top {
  display: none;
}
.game-shell.fp2-mode .game-stage {
  padding: 0;
  max-width: 100%;
  width: 100%;
  min-height: 100dvh;
}

.fp2-screen {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  color: #fff;
  font-family: Outfit, system-ui, sans-serif;
  overflow: hidden;
}
.fp2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 0;
  filter: brightness(1.28) saturate(1.35) contrast(1.08);
}
.fp2-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* bright center sunlight / god rays */
    radial-gradient(ellipse 90% 55% at 50% 22%, rgba(255, 245, 180, 0.72), transparent 62%),
    radial-gradient(ellipse 50% 40% at 50% 18%, rgba(255, 255, 255, 0.48), transparent 50%),
    radial-gradient(ellipse 70% 30% at 50% 28%, rgba(255, 210, 80, 0.35), transparent 60%),
    /* red curtain wash top + sides */
    linear-gradient(180deg, rgba(160, 18, 40, 0.55) 0%, rgba(120, 10, 30, 0.22) 18%, transparent 38%),
    linear-gradient(90deg, rgba(140, 12, 35, 0.45) 0%, transparent 18%, transparent 82%, rgba(140, 12, 35, 0.45) 100%),
    linear-gradient(180deg, transparent 55%, rgba(25, 8, 10, 0.45) 100%);
}
.fp2-veil::before,
.fp2-veil::after {
  content: '';
  position: absolute;
  top: 0;
  width: 22%;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(190, 25, 55, 0.7) 0%,
    rgba(140, 15, 40, 0.35) 45%,
    transparent 100%
  );
  filter: blur(0.5px);
}
.fp2-veil::before {
  left: 0;
  border-radius: 0 0 40% 0;
  box-shadow: inset -18px 0 28px rgba(80, 0, 20, 0.35);
}
.fp2-veil::after {
  right: 0;
  border-radius: 0 0 0 40%;
  box-shadow: inset 18px 0 28px rgba(80, 0, 20, 0.35);
}
.fp2-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  gap: 6px;
  box-sizing: border-box;
}
/* Push play block down — empty stage stays ABOVE, not below */
.fp2-stage-space {
  display: block;
  flex: 1 1 auto;
  min-height: clamp(56px, 14vh, 160px);
  pointer-events: none;
}
.fp2-play-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 0;
  margin-bottom: 0;
  overflow: visible;
}

.fp2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.fp2-top-l,
.fp2-top-r {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.fp2-top-l {
  align-items: flex-start;
}
.fp2-top-r {
  align-items: flex-end;
}
.fp2-top-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: clamp(36px, 9.5vw, 44px);
}
.fp2-top-r .fp2-top-icons {
  justify-content: flex-end;
}
.fp2-ico-btn {
  --ico: clamp(36px, 9.5vw, 44px);
  width: var(--ico);
  height: var(--ico);
  flex: 0 0 var(--ico);
  padding: 0;
  margin: 0;
  border: none;
  background: transparent !important;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
.fp2-ico-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent !important;
  border-radius: 0;
  pointer-events: none;
}
.fp2-ico-btn.off {
  opacity: 0.45;
  filter: grayscale(0.55) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.fp2-ico-btn:active {
  transform: scale(0.94);
}
.fp2-round {
  font-size: clamp(0.72rem, 2.8vw, 0.82rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px #000;
  line-height: 1.1;
  padding-left: 2px;
}
.fp2-ping {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(0.62rem, 2.4vw, 0.7rem);
  color: #6dff8a;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 3px 8px 3px 6px;
  line-height: 1;
}
.fp2-ping i {
  width: 12px;
  height: 10px;
  display: inline-block;
  background:
    linear-gradient(#6dff8a, #6dff8a) 0 100% / 2px 40% no-repeat,
    linear-gradient(#6dff8a, #6dff8a) 3px 100% / 2px 60% no-repeat,
    linear-gradient(#6dff8a, #6dff8a) 6px 100% / 2px 80% no-repeat,
    linear-gradient(#6dff8a, #6dff8a) 9px 100% / 2px 100% no-repeat;
}

/* Shared shiny gold metal */
@keyframes fp2GoldShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
@keyframes fp2GoldPulse {
  from {
    filter: brightness(1) drop-shadow(0 0 6px rgba(255, 220, 100, 0.55));
  }
  to {
    filter: brightness(1.12) drop-shadow(0 0 14px rgba(255, 240, 160, 0.95));
  }
}

/* Ornate RESULT frame (match reference) */
.fp2-result-frame {
  position: relative;
  width: 100%;
  padding-top: 40px;
  margin: 0 auto;
  max-width: 420px;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(255, 210, 80, 0.55));
}
.fp2-crown {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 120px;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    #a87810 0%,
    #ffe9a0 22%,
    #fff8d0 38%,
    #ffd24a 55%,
    #c9a028 78%,
    #ffe08a 100%
  );
  background-size: 220% 100%;
  animation: fp2GoldShine 2.8s linear infinite;
  clip-path: polygon(8% 100%, 22% 35%, 50% 0, 78% 35%, 92% 100%);
  box-shadow:
    0 0 18px rgba(255, 220, 100, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.35);
}
/* Timer sits ABOVE the clipped crown so it stays a full circle */
.fp2-result-frame > .fp2-timer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  font-size: 1.25rem;
  margin: 0;
  box-sizing: border-box;
}
.fp2-resultbar {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 0 !important;
  column-gap: 0 !important;
  overflow: hidden;
  background: linear-gradient(
    105deg,
    #c9a028 0%,
    #ffe566 18%,
    #fff6c0 32%,
    #ffd24a 48%,
    #f0c830 62%,
    #ffe9a0 78%,
    #d4a018 100%
  );
  background-size: 220% 100%;
  animation: fp2GoldShine 3.2s linear infinite;
  border: 3px solid #ffe08a;
  border-radius: 10px;
  padding: 4px 2px;
  box-shadow:
    0 0 0 2px #fff8d0,
    0 0 22px rgba(255, 210, 80, 0.85),
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 6px rgba(160, 100, 20, 0.35);
}
.fp2-resultbar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 58%
  );
  background-size: 220% 100%;
  animation: fp2GoldShine 2.4s linear infinite;
  mix-blend-mode: soft-light;
}
.fp2-side-bet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fp2-side-bet:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fp2-side-ico {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fffef0, #ffe08a 40%, #ffd24a 65%, #c9a028);
  border: 2px solid #fff8d0;
  box-shadow:
    0 0 14px rgba(255, 220, 100, 0.85),
    0 3px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: grid;
  place-items: center;
  animation: fp2GoldPulse 1.6s ease-in-out infinite alternate;
}
.fp2-side-ico img {
  position: absolute;
  width: 55%;
  height: 55%;
  object-fit: contain;
  background: transparent !important;
}
.fp2-side-ico img:first-child {
  left: 4px;
  top: 6px;
}
.fp2-side-ico img:last-child {
  right: 3px;
  bottom: 4px;
  width: 48%;
  height: 48%;
}
.fp2-side-lab {
  font-size: 0.55rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #8b4518, #5a2a08);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.fp2-hist-row {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
  padding: 0 2px;
  margin: 0;
}
.fp2-result-lab {
  font-size: 0.65rem;
  font-weight: 900;
  color: #5a2a08;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
}
.fp2-hist-track {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.fp2-hist {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: rgba(90, 42, 8, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden; /* prevent icons bleeding into neighbors */
}
.fp2-hist img {
  width: 88%;
  height: 88%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  display: block;
  transform: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}
.fp2-hist.new {
  outline: 1px solid #fff;
  box-shadow: 0 0 6px rgba(255, 230, 120, 0.85);
  z-index: 1;
}
.fp2-hist.new img {
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}
.fp2-hist i {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.38rem;
  font-weight: 900;
  background: #e0233a;
  color: #fff;
  padding: 0 3px;
  border-radius: 2px;
  z-index: 2;
  line-height: 1.15;
  white-space: nowrap;
}
.fp2-hist-empty {
  color: #5a2a08;
  font-size: 0.75rem;
  padding-left: 4px;
}

.fp2-board-wrap {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.fp2-cell.is-hl .fp2-food {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 230, 120, 0.95)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.05s linear, filter 0.05s linear;
}
.fp2-timer {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: visible;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  color: #3a1a00;
  background: radial-gradient(circle at 32% 28%, #fffef5, #ffe9a0 35%, #ffd24a 60%, #c9a028);
  border: 3px solid #fff6c8;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 2px rgba(255, 220, 120, 0.65),
    0 0 26px rgba(255, 220, 80, 0.95),
    0 6px 16px rgba(0, 0, 0, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.65);
  animation: fp2GoldPulse 1.4s ease-in-out infinite alternate;
  box-sizing: border-box;
}
.fp2-timer.dim {
  opacity: 0.9;
  animation: none;
}
.fp2-board {
  width: min(92vw, 360px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 14px;
  box-sizing: border-box;
  margin-top: 8px;
  background:
    linear-gradient(145deg, rgba(255, 236, 160, 0.75), rgba(220, 160, 40, 0.4)),
    linear-gradient(180deg, #c9a028, #8b5a18 55%, #5a3810);
  border: 4px solid #ffe08a;
  border-radius: 18px;
  box-shadow:
    0 0 0 2px #fff6c8,
    0 0 0 5px rgba(232, 185, 35, 0.55),
    0 0 36px rgba(255, 210, 80, 0.75),
    inset 0 0 40px rgba(255, 245, 200, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
.fp2-cell {
  position: relative;
  border: 2px solid #ffe08a;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a1608, #120808);
  display: grid;
  place-items: center;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
  min-height: 0;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.55),
    0 0 8px rgba(255, 200, 80, 0.25);
}
.fp2-cell:disabled {
  cursor: default;
}
.fp2-cell.has-bet {
  box-shadow: inset 0 0 0 2px #6dff8a, 0 0 12px rgba(80, 255, 140, 0.35);
}
.fp2-cell.is-hl {
  outline: 3px solid #ffe08a;
  box-shadow: 0 0 22px rgba(255, 220, 100, 0.85);
  transform: scale(1.03);
  z-index: 2;
}
.fp2-cell.is-win {
  animation: fp2WinPulse 0.7s ease infinite alternate;
}
@keyframes fp2WinPulse {
  from {
    box-shadow: 0 0 10px #ffe08a;
  }
  to {
    box-shadow: 0 0 28px #ff9f2e;
  }
}
.fp2-food {
  width: 72%;
  height: 72%;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.fp2-mult {
  position: absolute;
  top: 4px;
  left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 1px 5px 1px 2px;
  z-index: 1;
}
.fp2-mult b {
  font-size: 0.62rem;
  color: #fff6c8;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(255, 200, 80, 0.95), 0 1px 0 #5a3810;
}
.fp2-flame {
  width: 12px !important;
  height: 12px !important;
}
.fp2-stake {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 900;
  background: #e8b923;
  color: #2a1608;
  border-radius: 6px;
  padding: 1px 4px;
}
.fp2-mascot {
  cursor: default;
  background: radial-gradient(circle at 50% 40%, #3a2818, #120808);
}
.fp2-mascot img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.fp2-chips {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 12px);
  flex-wrap: wrap;
}
.fp2-chip {
  min-width: 68px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid #f0c860;
  background: linear-gradient(180deg, #ff9ec0, #e83d7a 55%, #b01850);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 0 #7a1038, 0 0 12px rgba(255, 120, 160, 0.35);
}
.fp2-chip.active {
  background: linear-gradient(180deg, #ffd0e0, #ff5a9a 50%, #d02060);
  transform: translateY(1px);
  box-shadow: 0 2px 0 #7a1038, 0 0 16px rgba(255, 200, 80, 0.55);
  outline: 2px solid #ffe08a;
}
.fp2-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.fp2-coin {
  width: 20px;
  height: 20px;
  object-fit: contain;
  background: transparent !important;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.fp2-foot {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(40, 18, 10, 0.85), rgba(12, 6, 8, 0.95));
  border: 1px solid rgba(232, 185, 35, 0.4);
  border-radius: 14px;
  padding: 8px 10px;
}
.fp2-bal,
.fp2-today {
  min-width: 0;
  line-height: 1.15;
}
.fp2-bal {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp2-av {
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: transparent !important;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.fp2-bal small,
.fp2-today small {
  display: block;
  font-size: 0.58rem;
  color: #cbb8a0;
  font-weight: 700;
}
.fp2-bal b,
.fp2-today b {
  font-size: 0.85rem;
  color: #ffe08a;
}
.fp2-repeat {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #9aa0a8, #5a6068);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #3a4048;
}
.fp2-repeat:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fp2-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 200, 80, 0.28), transparent 55%),
    rgba(12, 6, 8, 0.7);
  backdrop-filter: blur(3px);
}
.fp2-card {
  width: min(360px, 100%);
  max-height: 86dvh;
  overflow: auto;
  background:
    linear-gradient(165deg, rgba(255, 236, 170, 0.35), transparent 40%),
    linear-gradient(180deg, #8b5a18 0%, #6a4010 35%, #3d2410 70%, #2a1608 100%);
  border: 3px solid #ffe08a;
  border-radius: 16px;
  padding: 14px;
  box-shadow:
    0 0 0 2px #fff6c8,
    0 0 0 5px rgba(232, 185, 35, 0.55),
    0 0 48px rgba(255, 210, 80, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 40px rgba(255, 230, 140, 0.18);
  text-align: center;
}
.fp2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #f0d070, #c9a028);
  color: #2a1608;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.fp2-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
}
.fp2-card-head button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #e23;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.fp2-rules {
  text-align: left;
  margin: 0;
  padding-left: 18px;
  color: #f5e6c8;
  font-size: 0.78rem;
  line-height: 1.45;
}
.fp2-hint {
  margin: 0 0 8px;
  font-size: 0.68rem;
  color: #cbb8a0;
}
.fp2-table {
  text-align: left;
}
.fp2-tr {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 6px 4px;
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(232, 185, 35, 0.2);
}
.fp2-tr.head {
  background: rgba(0, 0, 0, 0.35);
  font-weight: 800;
  color: #ffe08a;
}
.fp2-tr .up {
  color: #6dff8a;
}
.fp2-tr .down {
  color: #ff6b7a;
}
.fp2-tr.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #cbb8a0;
  display: block;
  padding: 20px;
}

.fp2-result-card {
  position: relative;
  padding-bottom: 18px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 240, 180, 0.55), transparent 42%),
    linear-gradient(180deg, #a87820 0%, #7a5014 28%, #4a2c10 65%, #2e1808 100%);
  border-color: #fff6c8;
  box-shadow:
    0 0 0 2px #ffe08a,
    0 0 0 6px rgba(255, 200, 80, 0.45),
    0 0 56px rgba(255, 220, 100, 0.85),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 50px rgba(255, 230, 140, 0.22);
}
.fp2-win-badge {
  width: 78px;
  height: 78px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fffef5, #ffe9a0 38%, #ffd24a 62%, #c9a028);
  border: 3px solid #fff8d0;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 2px rgba(255, 220, 120, 0.7),
    0 0 28px rgba(255, 220, 80, 1),
    inset 0 2px 4px rgba(255, 255, 255, 0.7);
  animation: fp2GoldPulse 1.5s ease-in-out infinite alternate;
}
.fp2-win-badge img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 0 6px rgba(255, 230, 140, 0.8));
}
.fp2-owl-big {
  width: 140px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
  background: transparent !important;
  filter:
    brightness(1.12) saturate(1.15)
    drop-shadow(0 0 16px rgba(255, 210, 80, 0.55))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}
.fp2-res-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff6c8;
  text-shadow: 0 0 8px rgba(255, 200, 80, 0.65);
}
.fp2-res-line img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 0 4px rgba(255, 220, 100, 0.8));
}
.fp2-card p {
  margin: 4px 0;
  font-size: 0.82rem;
  color: #ffe9b8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.fp2-card .gold {
  color: #fff6c8;
  text-shadow: 0 0 10px rgba(255, 220, 80, 0.9);
  font-weight: 900;
}
.fp2-card h4 {
  margin: 10px 0 6px;
  color: #fff6c8;
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(255, 200, 80, 0.75);
}
.fp2-ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  background: rgba(40, 22, 8, 0.35);
  border: 1px solid rgba(255, 220, 120, 0.35);
  border-radius: 10px;
  overflow: hidden;
}
.fp2-ranks li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 220, 120, 0.22);
  font-size: 0.78rem;
  color: #fff0d0;
}
.fp2-ranks li:last-child {
  border-bottom: none;
}
.fp2-ranks li.me {
  background: rgba(255, 220, 100, 0.22);
}
.fp2-ranks li b {
  color: #fff6c8;
  text-shadow: 0 0 6px rgba(255, 200, 80, 0.7);
}
.fp2-rk {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd24a 55%, #c9a028);
  color: #2a1608;
  font-weight: 900;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 8px rgba(255, 210, 80, 0.75);
}
.fp2-coins-deco {
  width: 100%;
  max-height: 78px;
  object-fit: contain;
  margin: 8px 0;
  background: transparent !important;
  pointer-events: none;
  filter: brightness(1.2) saturate(1.25) drop-shadow(0 0 12px rgba(255, 210, 80, 0.65));
}
.fp2-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #8dff9e, #2ad060 50%, #0e9a40);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow:
    0 5px 0 #065c28,
    0 0 18px rgba(80, 255, 140, 0.45);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

@media (max-width: 380px) {
  .fp2-board {
    width: min(94vw, 320px);
    padding: 10px;
    gap: 4px;
  }
  .fp2-chip {
    min-width: 58px;
    padding: 7px 8px;
    font-size: 0.75rem;
  }
  .fp2-timer {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }
}
