/* ==========================================================================
   Flickshot FC: the Arcade (modes.js). Flickshot Cup, Survival Streak, Skill Challenges.
   Uses the design tokens, buttons, cards, top bars and screen layout of style.css.
   ========================================================================== */

/* ---------- Home: the Arcade card (under Career / Multiplayer) ---------- */
.mode-arcade {
  height: 84px; align-items: center; animation-delay: 0.18s; color: #fff;
  background: radial-gradient(70% 130% at 86% 45%, rgba(255, 206, 84, 0.5), transparent 62%), linear-gradient(125deg, #ff6a3d 0%, #e3264f 46%, #8c0f44 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 6px 0 #57082b, 0 14px 26px rgba(0, 0, 0, 0.4);
}
.mode-arcade:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 2px 0 #57082b; }
.mode-arcade .mode-copy { flex: 1 1 auto; padding: 10px 6px 10px 16px; }
.mode-arcade .mode-title { font-size: 28px; text-shadow: 0 3px 0 rgba(90, 8, 40, 0.45); }
.mode-arcade .mode-kicker { color: #ffe08a; }
.mode-arcade .mode-sub { color: rgba(255, 255, 255, 0.94); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-art { position: relative; z-index: 2; order: 2; flex: 0 0 auto; width: 82px; height: 100%; display: grid; place-items: center; }
.ma-art .ar-cupsvg { position: relative; width: 52px; height: auto; transform: rotate(8deg); filter: drop-shadow(0 5px 6px rgba(60, 0, 20, 0.55)); animation: arFloat 3.2s ease-in-out infinite; }
.ma-glow { position: absolute; left: 8px; right: 8px; top: 10px; bottom: 10px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 160, 0.75), transparent 66%); animation: arMaGlow 2.6s ease-in-out infinite; }
.ma-flag {
  position: absolute; z-index: 5; top: 7px; right: 8px; padding: 3px 7px; border-radius: 999px;
  font: 800 10px/1 var(--font-display); letter-spacing: 0.1em; color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 2px 6px rgba(60, 0, 20, 0.5);
}
@keyframes arMaGlow { 0%, 100% { opacity: 0.55; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes arFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* ---------- the Arcade hub ---------- */
.screen.arcade { background: radial-gradient(120% 45% at 50% 0%, rgba(227, 38, 79, 0.18), transparent 60%), var(--ink-900); }
.arcade .scroll { display: flex; flex-direction: column; gap: 12px; }
/* QA: a scrolling list: cards never shrink (on a 375x667 phone the Cup and Survival cards were squashed to half
   height, hiding the Survival Play / Daily challenge buttons) */
.arcade .scroll > * { flex-shrink: 0; }
.ar-cuppill { padding-left: 22px; }
.ar-cuppill .ar-cupsvg { position: absolute; left: -5px; top: 50%; width: 22px; height: auto; transform: translateY(-50%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }

.ar-card {
  position: relative; width: 100%; min-height: 0; display: flex; gap: 10px; align-items: stretch; padding: 14px 14px 14px 8px;
  border: 0; border-radius: 20px; text-align: left; color: #fff; overflow: hidden; font: inherit; animation: fadeUp 0.4s var(--ease-out) both;
}
.ar-card::after { content: ""; position: absolute; inset: 0 0 60% 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)); }
.ar-cup {
  background: radial-gradient(60% 90% at 12% 35%, rgba(255, 212, 96, 0.5), transparent 62%), linear-gradient(150deg, #ff6a3d 0%, #d91f4f 45%, #7a0d3d 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 6px 0 #4a0722, 0 14px 26px rgba(0, 0, 0, 0.4);
}
.ar-cup:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 2px 0 #4a0722; }
.ar-surv {
  animation-delay: 0.06s;
  background: radial-gradient(60% 90% at 12% 35%, rgba(255, 170, 60, 0.4), transparent 62%), linear-gradient(150deg, #1bb3c7 0%, #0c6d9d 48%, #0a2c66 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 6px 0 #061a3d, 0 14px 26px rgba(0, 0, 0, 0.4);
}
.ar-art { position: relative; z-index: 1; flex: 0 0 auto; width: 78px; display: grid; place-items: center; }
.ar-art .ar-cupsvg { width: 70px; height: auto; filter: drop-shadow(0 6px 10px rgba(60, 0, 20, 0.5)); animation: arFloat 3.2s ease-in-out infinite; }
.ar-art.sv { width: 58px; }
.ar-art.sv svg { width: 58px; height: 58px; filter: drop-shadow(0 4px 10px rgba(255, 120, 20, 0.6)); animation: arFloat 2.6s ease-in-out infinite; }
.ar-copy { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ar-kicker { font: 800 11px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: #ffe08a; }
.ar-title { font: 800 italic 28px/0.95 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.ar-sub { font: 500 12.5px/1.3 var(--font-ui); color: rgba(255, 255, 255, 0.9); }
.ar-sub b { color: #fff; font-weight: 700; }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.ar-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.18); font: 600 11.5px/1 var(--font-ui); color: rgba(255, 255, 255, 0.85);
}
.ar-chip b { font: 800 14px/1 var(--font-display); color: #fff; }
.ar-chip.gold b { color: var(--gold-300); }
.ar-chip svg { width: 13px; height: auto; flex: 0 0 auto; }
.ar-go {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px 0 9px; border-radius: 999px; white-space: nowrap;
  background: #1c0610; color: var(--gold-300); border: 1px solid rgba(255, 224, 138, 0.35);
  font: 800 italic 15px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 3px 8px rgba(40, 0, 10, 0.45);
}
.ar-go svg { width: 13px; height: 13px; }
.ar-flag {
  position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 8px; border-radius: 999px;
  font: 800 10.5px/1 var(--font-display); letter-spacing: 0.1em; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 2px 8px rgba(60, 0, 20, 0.5); animation: arFlag 1.8s ease-in-out infinite;
}
@keyframes arFlag { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.ar-btns { display: flex; gap: 8px; margin-top: 8px; }
.ar-btns button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 8px; font-size: 14px; white-space: nowrap; }
.ar-btns button.alt { flex-grow: 1.45; }
.ar-btns button.alt { color: #fff; background: rgba(4, 20, 50, 0.45); border-color: rgba(255, 255, 255, 0.28); }
.ar-btns svg { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; }
.ar-meta svg[viewBox="0 0 24 24"], .ar-btns svg[viewBox="0 0 24 24"] { color: inherit; }

.ar-skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ar-skill {
  position: relative; min-height: 136px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: 16px; color: #fff; text-align: center; border: 1px solid rgba(255, 255, 255, 0.12); font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 0 #070a12; animation: fadeUp 0.4s var(--ease-out) both;
}
.ar-skill:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 0 #070a12; }
.ar-skill.sk-crossbar { background: linear-gradient(170deg, #2d6b43, #123321); animation-delay: 0.1s; }
.ar-skill.sk-targets { background: linear-gradient(170deg, #7a2a45, #2d1020); animation-delay: 0.14s; }
.ar-skill.sk-duel { background: linear-gradient(170deg, #45409a, #1b1840); animation-delay: 0.18s; }
.ar-sk-ic { width: 50px; height: 40px; display: grid; place-items: center; }
.ar-sk-ic svg { width: 50px; height: 40px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
.ar-skill b { font: 800 16px/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.ar-skill small { font: 600 11px/1 var(--font-ui); color: rgba(255, 255, 255, 0.65); }
.ar-sk-medal { margin-top: auto; }
.ar-sk-medal svg { display: block; width: 22px; height: auto; }
.ar-sk-best { font: 800 11.5px/1 var(--font-display); letter-spacing: 0.04em; color: var(--gold-300); }
.ar-note { margin-top: -4px; font-size: 12.5px; line-height: 1.4; color: var(--text-3); }

/* ---------- in-game HUD: inside the top bar while an arcade ball is on ---------- */
#modeHud { display: none; flex: 0 0 auto; align-items: center; }
body.arcade #modeHud { display: flex; }
body.arcade.ar-one .pill:has(#strokes) { display: none; }   /* one-touch kicks: no touch counter */
.mh-cup, .mh-surv, .mh-skill { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 12px; background: rgba(5, 8, 15, 0.6); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.mh-cr svg { display: block; width: 26px; height: 26px; }
.mh-sc { min-width: 40px; text-align: center; font: 800 21px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #fff; }
.mh-sc i { margin: 0 2px; font-style: normal; color: var(--text-3); }
.ar-dots { display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 40px; }
.ar-dots.them { justify-content: flex-end; }
.ar-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.ar-dots i.hit { background: var(--em-400); box-shadow: 0 0 5px rgba(52, 211, 153, 0.7); }
.ar-dots i.miss { background: var(--red); }
.mh-hearts { display: inline-flex; gap: 2px; }
.mh-heart { width: 16px; height: 15px; fill: rgba(255, 255, 255, 0.14); }
.mh-heart.on { fill: #ff4d6d; filter: drop-shadow(0 0 4px rgba(255, 77, 109, 0.6)); }
.mh-pts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 44px; }
.mh-pts b { font: 800 19px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #fff; }
.mh-pts small { font: 700 9px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.mh-mult { padding: 4px 6px; border-radius: 8px; font: 800 italic 16px/1 var(--font-display); color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 0 10px rgba(255, 200, 61, 0.5); animation: segPop 0.35s var(--ease-pop); }
.mh-sk { font: 800 14px/1 var(--font-display); color: var(--gold-300); }
.mh-time, .mh-balls { display: inline-flex; align-items: center; gap: 3px; font: 800 20px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #fff; }
.mh-time svg { width: 16px; height: 16px; color: var(--em-300); }
.mh-time.low b, .mh-time.low svg { color: #ff8a80; }
.mh-time.low { animation: arMhLow 0.9s ease-in-out infinite; }
.mh-balls small { font-size: 13px; color: var(--text-3); }
@keyframes arMhLow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ---------- the Cup kick card ---------- */
.ar-kickcard .tags { margin-top: 4px; }
.ar-board { margin: 12px 0 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; text-align: left; border-radius: 14px; background: rgba(5, 8, 15, 0.5); border: 1px solid var(--line); }
.ab-row { display: flex; align-items: center; gap: 8px; }
.ab-cr svg { display: block; width: 30px; height: 30px; }
.ab-n { flex: 1 1 auto; min-width: 0; font: 800 16px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-row.me .ab-n { color: var(--gold-300); }
.ab-row .ar-dots { max-width: none; gap: 4px; }
.ab-row .ar-dots i { width: 11px; height: 11px; }
.ab-s { min-width: 22px; text-align: right; font: 800 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ar-ai { margin-top: 8px; font: 600 14px/1.3 var(--font-ui); color: var(--text-2); }
.ar-ai-r { display: block; margin-top: 2px; font: 800 italic 24px/1.1 var(--font-display); text-transform: uppercase; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.35s var(--ease-pop); }
.ar-ai.show .ar-ai-r { opacity: 1; transform: none; }
.ar-ai-r.scored { color: #ff8a80; }
.ar-ai-r.missed { color: var(--em-300); }
.ar-ai:not(.show) .ar-ai-k::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: arDots 1s steps(4) infinite; }
@keyframes arDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ar-wait { visibility: hidden; }
.ar-verdict { margin-top: 10px; padding: 9px 12px; border-radius: 12px; font: 800 italic 20px/1.1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; }
.ar-verdict.win { color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 0 18px rgba(255, 200, 61, 0.45); animation: passPop 0.5s var(--ease-pop) both; }
.ar-verdict.out { color: #ffd6d2; background: rgba(255, 107, 107, 0.14); border: 1px solid rgba(255, 107, 107, 0.5); }

/* ---------- the bracket ---------- */
.screen.cup-bracket { background: radial-gradient(120% 40% at 50% 0%, rgba(255, 200, 61, 0.14), transparent 60%), var(--ink-900); }
.arcb-banner { padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.35; color: var(--text-2); background: linear-gradient(135deg, rgba(255, 200, 61, 0.18), rgba(255, 200, 61, 0.05)); border: 1px solid rgba(255, 200, 61, 0.4); animation: fadeUp 0.35s var(--ease-out) both; }
.arcb-banner b { color: var(--gold-300); }
.arcb-rounds { display: flex; align-items: center; justify-content: center; gap: 6px; }
.arcb-rounds > i { width: 18px; height: 2px; background: var(--line-2); }
.arcb-rc { padding: 6px 11px; border-radius: 999px; font: 800 12px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line-2); }
.arcb-rc.on { color: var(--gold-ink); border-color: transparent; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 0 12px rgba(255, 200, 61, 0.45); }
.arcb-rc.done { color: var(--em-300); border-color: rgba(52, 211, 153, 0.5); }
.arcb-rc.out { color: #ffb4a8; border-color: rgba(255, 107, 107, 0.5); }

.bracket { position: relative; flex: 0 0 auto; height: 300px; display: grid; grid-template-columns: 31% 31% 32%; column-gap: 3%; }
.bk-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bk-lines path { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bk-col { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-around; }
.bk-f { justify-content: center; }
.bk-tie { overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #1c2542, #121a2e); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 3px 0 #070a12; }
.bk-tie.you { border-color: rgba(255, 200, 61, 0.55); }
.bk-tie.cur { box-shadow: 0 0 0 2px var(--gold-400), 0 0 16px rgba(255, 200, 61, 0.45); animation: arBkPulse 1.8s ease-in-out infinite; }
@keyframes arBkPulse { 0%, 100% { box-shadow: 0 0 0 2px var(--gold-400), 0 0 8px rgba(255, 200, 61, 0.3); } 50% { box-shadow: 0 0 0 2px var(--gold-300), 0 0 20px rgba(255, 200, 61, 0.65); } }
.bk-row { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 5px; }
.bk-row + .bk-row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.bk-cr { flex: 0 0 auto; width: 18px; height: 18px; }
.bk-cr svg { display: block; width: 18px; height: 18px; }
.bk-cr.tbd { border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.25); }
.bk-n { flex: 1 1 auto; min-width: 0; font: 700 12px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.bk-n.tbd { color: var(--text-3); }
.bk-row b { flex: 0 0 auto; min-width: 8px; text-align: right; font: 800 14px/1 var(--font-display); color: #fff; }
.bk-row.me .bk-n { color: var(--gold-300); }
.bk-row.w .bk-n { color: #fff; }
.bk-row.me.w .bk-n { color: var(--gold-300); }
.bk-row.l { opacity: 0.45; }
.bk-trophy { position: absolute; left: 0; right: 0; bottom: calc(50% + 34px); display: flex; justify-content: center; filter: grayscale(0.55) brightness(0.8); }
.bk-trophy.won { filter: drop-shadow(0 0 12px rgba(255, 200, 61, 0.6)); animation: arFloat 3s ease-in-out infinite; }
.bk-trophy .ar-cupsvg { width: 44px; height: auto; }
.bk-champ { position: absolute; left: 0; right: 0; top: calc(50% + 36px); display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; font: 800 11px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.bk-champ b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--gold-300); letter-spacing: 0.04em; }
.bk-champ .bk-cr, .bk-champ .bk-cr svg { width: 20px; height: 20px; }

.arcb-next, .arcb-over {
  position: relative; overflow: hidden; padding: 12px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.5), rgba(10, 15, 28, 0.93) 72%), var(--art, none) center 20% / cover no-repeat, var(--ink-700);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); animation: fadeUp 0.4s var(--ease-out) both;
}
.arcb-next.final { border-color: rgba(255, 200, 61, 0.6); box-shadow: 0 0 0 1px rgba(255, 200, 61, 0.25), 0 0 24px rgba(255, 200, 61, 0.25); }
.arcb-k { font: 800 12px/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-300); }
.arcb-vs { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 8px; }
.arcb-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.arcb-side b { max-width: 100%; font: 800 15px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcb-cr svg { display: block; width: 58px; height: 58px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.arcb-mid { flex: 0 0 auto; }
.arcb-v { font: 800 italic 30px/1 var(--font-display); color: #ffe066; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 224, 102, 0.5); }
.arcb-score { font: 800 36px/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.arcb-score i { margin: 0 4px; font-style: normal; color: var(--text-3); }
.arcb-opp { font: 700 13.5px/1.3 var(--font-ui); color: var(--text); }
.arcb-opp small { display: block; margin-top: 2px; font-weight: 500; font-size: 12px; color: var(--text-2); }
.ar-rstars { margin-left: 2px; letter-spacing: 1px; color: var(--gold-400); }
.ar-rstars i { font-style: normal; color: rgba(255, 255, 255, 0.2); }
.arcb-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.arcb-info span { padding: 5px 9px; border-radius: 999px; font: 700 11.5px/1 var(--font-ui); color: var(--text-2); background: rgba(5, 8, 15, 0.75); border: 1px solid var(--line-2); }
.arcb-rules { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.arcb-rules b { color: var(--gold-300); }
.arcb-over.win { border-color: rgba(255, 200, 61, 0.6); box-shadow: 0 0 24px rgba(255, 200, 61, 0.25); }
.arcb-head {
  margin: 6px 0 4px; font: 800 italic 32px/1 var(--font-display); text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d6 0%, var(--gold-300) 45%, var(--gold-500) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.arcb-sub { font-size: 13px; color: var(--text-2); }

/* prize chips (bracket, lift, end cards) */
.ar-prizes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.ar-prizes > span, .card .ar-prizes { display: inline-flex; align-items: center; gap: 5px; }
.ar-prizes > span { padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(5, 8, 15, 0.6); border: 1px solid rgba(255, 200, 61, 0.35); }
.ar-prizes b { font: 800 18px/1 var(--font-display); color: var(--gold-300); font-variant-numeric: tabular-nums; }
.ar-prizes small { font: 600 11.5px/1.2 var(--font-ui); color: var(--text-3); }
.ar-prizes .xp b { color: #c4b5fd; }
.ar-prizes .st b { color: var(--gold-400); letter-spacing: 1px; }
.ar-coin { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.ar-prizes.big b { font-size: 24px; }
.ar-prizes.big .ar-coin { width: 28px; height: 28px; }

/* ---------- the final: walk-out screen ---------- */
.screen.cup-final { background: #05080f; }
.arcf-bg { position: absolute; inset: 0; background: var(--art-map_stadium, none) center 18% / cover no-repeat, #0b1428; filter: brightness(0.3) saturate(1.15); transform: scale(1.05); }
.arcf-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 55% at 50% 38%, rgba(255, 200, 61, 0.22), transparent 70%), linear-gradient(180deg, rgba(5, 8, 15, 0.2), rgba(5, 8, 15, 0.9)); }
.arcf-lights { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.arcf-lights i { position: absolute; top: -12%; width: 34%; height: 95%; background: linear-gradient(180deg, rgba(255, 248, 215, 0.3), rgba(255, 248, 215, 0) 78%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); transform-origin: 50% 0; animation: arCfSweep 4.5s ease-in-out infinite alternate; }
.arcf-lights i:nth-child(1) { left: -8%; transform: rotate(-24deg); animation-delay: -1s; }
.arcf-lights i:nth-child(2) { left: 18%; transform: rotate(-8deg); animation-delay: -2.2s; }
.arcf-lights i:nth-child(3) { left: 48%; transform: rotate(8deg); animation-delay: -0.4s; }
.arcf-lights i:nth-child(4) { left: 74%; transform: rotate(24deg); animation-delay: -3s; }
@keyframes arCfSweep { from { rotate: -9deg; } to { rotate: 9deg; } }
.cup-final .topbar, .cup-lift .topbar { background: rgba(5, 8, 15, 0.55); }
.cup-final .scroll, .cup-lift .scroll { position: relative; z-index: 2; }
.arcf-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.arcf-k { font: 800 13px/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-300); }
.arcf-cup .ar-cupsvg { width: 110px; height: auto; filter: drop-shadow(0 0 22px rgba(255, 200, 61, 0.55)); animation: arFloat 3s ease-in-out infinite; }
.arcf-vs { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.arcf-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.arcf-side.l { animation: arCfInL 0.7s var(--ease-pop) both; }
.arcf-side.r { animation: arCfInR 0.7s var(--ease-pop) both; }
.arcf-cr svg { display: block; width: 76px; height: 76px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
.arcf-side b { max-width: 100%; font: 800 16px/1.1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.arcf-v { flex: 0 0 auto; font: 800 italic 40px/1 var(--font-display); color: #ffe066; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 224, 102, 0.6); animation: passPop 0.6s 0.4s var(--ease-pop) both; }
.arcf-info { font: 600 13px/1.4 var(--font-ui); color: var(--text-2); }
.arcf-info small { color: var(--text-3); }
@keyframes arCfInL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes arCfInR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ---------- the trophy lift ---------- */
.screen.cup-lift { background: radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--pc) 40%, #3a2500) 0%, #140d02 55%, #05080f 100%); }
.arcl-rays {
  position: absolute; left: 50%; top: 30%; width: 780px; height: 780px; margin: -390px 0 0 -390px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 102, 0.16) 0deg 10deg, rgba(255, 214, 102, 0) 10deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%);
  animation: arClSpin 22s linear infinite;
}
@keyframes arClSpin { to { transform: rotate(360deg); } }
.arcl-body { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.arcl-stage { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.arcl-cup { position: relative; z-index: 2; animation: arClLift 1.5s var(--ease-pop) 0.2s both; }
.arcl-cup .ar-cupsvg { width: 150px; height: auto; filter: drop-shadow(0 0 26px rgba(255, 200, 61, 0.7)); }
.arcl-crest { position: relative; z-index: 3; margin-top: -22px; animation: arClCrest 0.6s 1s var(--ease-pop) both; }
.arcl-crest svg { display: block; width: 70px; height: 70px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)); }
@keyframes arClLift { 0% { opacity: 0; transform: translateY(140px) scale(0.55); } 55% { opacity: 1; transform: translateY(-20px) scale(1.08); } 72% { transform: translateY(0) rotate(-5deg); } 86% { transform: rotate(4deg); } 100% { transform: none; } }
@keyframes arClCrest { from { opacity: 0; transform: translateY(20px) scale(0.5); } to { opacity: 1; transform: none; } }
.arcl-k { font: 800 13px/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-300); }
.arcl-title {
  font: 800 italic 54px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff6d6 0%, var(--gold-300) 45%, var(--gold-500) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5)); animation: passPop 0.7s 0.6s var(--ease-pop) both;
}
.arcl-sub { font: 600 14px/1.35 var(--font-ui); color: var(--text-2); }
.arcl-sub b { color: #fff; }
.arcl-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; font: 600 12.5px/1.2 var(--font-ui); color: var(--text-2); background: rgba(5, 8, 15, 0.6); border: 1px solid var(--line-2); }
.arcl-count .ar-cupsvg { width: 18px; height: auto; }
.arcl-count b { font: 800 17px/1 var(--font-display); color: var(--gold-300); }
.cup-lift .confetti { z-index: 3; }

/* ---------- end cards (Survival, Skill Challenges) and intro cards ---------- */
.ar-endcard .big { margin-top: 4px; }
.ar-medal-big { display: flex; justify-content: center; margin: 4px 0 -4px; animation: passPop 0.7s 0.15s var(--ease-pop) both; }
.ar-medal-big svg { width: 78px; height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.ar-medal-big.t3 svg { filter: drop-shadow(0 0 18px rgba(255, 200, 61, 0.65)); }
.ar-targets { display: flex; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.ar-targets span { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 7px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); opacity: 0.6; }
.ar-targets span.on { opacity: 1; border-color: rgba(255, 200, 61, 0.5); background: rgba(255, 200, 61, 0.08); }
.ar-targets svg { width: 20px; height: auto; }
.ar-targets b { font: 800 15px/1 var(--font-display); color: var(--text); }
.ar-targets small { font: 700 10.5px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-300); }
.ar-recs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ar-recs span { padding: 5px 10px; border-radius: 999px; font: 600 12px/1.2 var(--font-ui); color: var(--text-3); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ar-recs b { color: var(--text); font-weight: 700; }
.ar-miles { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 6px; }
.ar-miles span { padding: 4px 8px; border-radius: 999px; font: 800 11.5px/1 var(--font-display); letter-spacing: 0.06em; color: var(--text-3); border: 1px dashed rgba(255, 255, 255, 0.18); }
.ar-miles span.on { color: var(--gold-ink); border: 1px solid transparent; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.ar-intro-ic { display: flex; justify-content: center; margin: 2px 0 2px; }
.ar-intro-ic svg { width: 76px; height: 64px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }

@media (max-width: 360px) {
  .mode-arcade .mode-title, .ar-title { font-size: 24px; }
  .ar-skill b { font-size: 14px; }
  .mh-cr svg { width: 22px; height: 22px; }
  .mh-sc { min-width: 34px; font-size: 19px; }
}
@media (max-height: 740px) {
  .mode-arcade { height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .arcl-rays, .arcf-lights { display: none; }
}

/* the Cup trophies are art now (cup_t1..5, by Cup tier): an <img class="ar-cupsvg ar-cupimg"> takes the old sizes */
.ar-intro-ic img { width: auto; height: 76px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.ar-art .ar-cupimg { width: auto; height: 84px; }
.bk-trophy .ar-cupimg { width: auto; height: 50px; }
.arcf-cup .ar-cupimg { width: auto; height: 130px; }
.arcl-cup .ar-cupimg { width: auto; height: 170px; }
.arcl-count .ar-cupimg, .ar-chip .ar-cupimg { width: auto; height: 16px; }
.ar-cuppill .ar-cupimg { width: auto; height: 24px; left: -2px; }
/* the Home card: the bicycle-kick hero (arcade hero icon.png) bursting out of the card */
.ma-art.ma-hero { width: 96px; overflow: visible; }
.ma-heroimg { position: relative; width: 104px; height: auto; margin-top: -10px; transform: rotate(-6deg); filter: drop-shadow(0 6px 8px rgba(60, 0, 20, 0.55)); animation: arFloat 3.2s ease-in-out infinite; }

/* ---------- the reworked hub: Replay · Friendly · Party tiles, the Daily Challenge ---------- */
.ar-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ar-tile { min-height: 0; padding: 12px 6px 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 18px; color: #fff; text-align: center; border: 2px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 5px 0 rgba(0, 0, 0, 0.45); }
.ar-tile:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.ar-tile .at-ic svg { width: 46px; height: 46px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45)); }
.ar-tile b { font: 800 italic 18px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.ar-tile small { font: 600 11px/1.2 var(--font-ui); color: rgba(255, 255, 255, 0.82); }
.ar-tile.t-replay { background: linear-gradient(160deg, #2a9a6e, #145a44); }
.ar-tile.t-friendly { background: linear-gradient(160deg, #5a36c8, #25157a); }
.ar-tile.t-party { background: linear-gradient(160deg, #e0664f, #8a2a3a); }
.ar-daily { background: radial-gradient(80% 120% at 10% 30%, rgba(255, 200, 61, 0.28), transparent 60%), linear-gradient(135deg, #1e5a9e, #122e5c); }
.ar-art.dl { width: 62px; }
.ar-art.dl svg { width: 58px; height: 58px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); animation: arFloat 2.8s ease-in-out infinite; }
.ar-daily .ar-kicker svg { width: 12px; height: 12px; vertical-align: -1px; }
/* the painted Arcade icons (pr arcade tiles.png) */
.ar-tile .at-ic:has(.at-pic) { background: none; box-shadow: none; }
.at-pic { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45)); }
.ar-art.dl.pic { background: none; box-shadow: none; }
.ar-pic { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); animation: arFloat 2.8s ease-in-out infinite; }
