/* The leaderboard page. Mobile first; the brand colours and faces of games.funn.today (home.css). */
:root {
  --gum: #FF3D8B; --sun: #FFD60A; --volt: #2D5BFF; --mint: #00D6A3; --tang: #FF7A1A; --ink: #1A1033;
  --stage: #0D0720; --card: #1C1238; --card2: #261851; --line: rgba(255, 255, 255, 0.12); --dim: rgba(255, 255, 255, 0.72);
  --gutter: 16px; --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: #fff; font-family: Figtree, system-ui, sans-serif; font-weight: 600; overflow-x: hidden;
  background:
    radial-gradient(60vmax 40vmax at 110% -10%, rgba(255, 61, 139, 0.28), transparent 60%),
    radial-gradient(50vmax 40vmax at -20% 10%, rgba(45, 91, 255, 0.32), transparent 60%),
    radial-gradient(40vmax 30vmax at 50% 110%, rgba(0, 214, 163, 0.16), transparent 60%),
    var(--stage);
  background-attachment: fixed;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
h1, h2, h3 { font-family: 'Bagel Fat One', Figtree, sans-serif; font-weight: 400; margin: 0; line-height: 0.95; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--sun); color: var(--ink); padding: 10px 14px; border-radius: 12px; font-weight: 900; }
.skip:focus { top: 8px; }

/* header: the games home page's logo (ticket mascot + wordmark) */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gutter) 6px; max-width: 1120px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font-family: 'Bagel Fat One', Figtree, sans-serif; font-size: 34px; color: var(--sun); line-height: 1; position: relative; padding-bottom: 13px; }
.brand img { width: auto; height: 50px; margin: -6px 8px -6px 0; filter: drop-shadow(0 0 14px rgba(255, 214, 10, 0.4)); }
.brand span { position: absolute; left: 70px; bottom: 0; font-family: Figtree, sans-serif; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.pill { text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 900; box-shadow: 0 4px 0 #000; }
.pill:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* hero */
.hero { padding: 14px 0 10px; }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mint); }
.hero h1 { font-size: clamp(38px, 11vw, 84px); overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero__bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.place { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-weight: 900; font-size: 16px; }
.place #place-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place .caret { opacity: 0.7; }
.place:hover { border-color: rgba(255, 255, 255, 0.35); }
.share { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); background: transparent; font-weight: 900; font-size: 16px; }
.share:hover { background: var(--card); }

/* game picker */
.games { margin: 8px calc(-1 * var(--gutter)) 0; }
.games__track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 8px var(--gutter) 14px; scrollbar-width: none; }
.games__track::-webkit-scrollbar { display: none; }
.gcard { flex: 0 0 auto; width: 148px; scroll-snap-align: center; position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 3px solid var(--ink); border-radius: 20px; background: var(--ink); overflow: hidden; text-align: left; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6); transition: transform 0.18s, box-shadow 0.18s; opacity: 0.82; }
.gcard__art { display: grid; place-items: center; height: 92px; background: var(--t); background-image: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%); }
.gcard__name { display: block; padding: 8px 10px 9px; font-family: 'Bagel Fat One', Figtree, sans-serif; font-size: 17px; line-height: 1.05; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard__app { position: absolute; left: 6px; top: 6px; padding: 3px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0.04em; }
.gcard[aria-checked='true'] { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 3px var(--sun), 0 8px 0 rgba(0, 0, 0, 0.6); }
.gcard[aria-checked='true'] .gcard__name { color: var(--sun); }
.gcard:hover { opacity: 1; }

/* scope tabs */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin: 4px 0 14px; }
.tabs [role='tab'] { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 6px; border: 0; border-radius: 999px; background: transparent; color: #fff; transition: background 0.18s, color 0.18s; }
.tab__k { font-size: 10px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65; }
.tabs b { font-size: 14px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs [aria-selected='true'] { background: var(--sun); color: var(--ink); }
.tabs [aria-selected='true'] .tab__k { opacity: 0.8; }

/* the board */
.board { border-radius: 28px; background: linear-gradient(180deg, var(--card2), var(--card) 240px); border: 1px solid var(--line); padding: 16px 12px 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.board__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 0 4px 6px; }
.board__head h2 { font-size: 26px; }
.tag { display: inline-block; vertical-align: middle; font-family: Figtree, sans-serif; font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: var(--mint); color: var(--ink); letter-spacing: 0.04em; }
.meta { margin: 0; color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.meta span + span::before { content: '·'; margin: 0 7px; opacity: 0.6; }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 6px 0 0; }
.pod { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pod__bean { height: 98px; display: flex; align-items: flex-end; justify-content: center; }
.pod--1 .pod__bean { height: 114px; }
.pod__name { margin: 2px 0 0; max-width: 100%; font-weight: 900; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod__where { margin: 0 0 6px; max-width: 100%; font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.2em; }
.pod__block { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: 8px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 18px 18px 6px 6px; background: var(--c); color: var(--ink); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.12); transform-origin: bottom; }
.pod--1 .pod__block { height: 128px; }
.pod--2 .pod__block { height: 100px; }
.pod--3 .pod__block { height: 80px; }
.pod__rank { font-family: 'Bagel Fat One', sans-serif; font-size: 34px; line-height: 1; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.pod--1 .pod__rank { font-size: 44px; }
.pod__score { font-family: 'Bagel Fat One', sans-serif; font-size: 17px; line-height: 1; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); color: var(--ink); max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.pod--1 .pod__score { font-size: 20px; }
.pod--none { visibility: hidden; }
.pod.is-you .pod__name { color: var(--sun); }
/* A Funn app player's @handle: plain muted text (no profiles to link to yet), cut with an ellipsis. */
.pod__handle { margin: 0; max-width: 100%; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handle { font-style: normal; font-weight: 800; color: rgba(255, 255, 255, 0.9); }

/* list */
.rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 46px 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; }
.row__rank { font-family: 'Bagel Fat One', sans-serif; font-size: 19px; color: var(--sun); white-space: nowrap; }
.mini { width: 22px; height: 24px; border-radius: 50%; background: var(--c); border: 2.5px solid var(--ink); position: relative; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.mini::before, .mini::after { content: ''; position: absolute; top: 7px; width: 5px; height: 6px; border-radius: 50%; background: #fff; box-shadow: inset 1px 1px 0 1px var(--ink); }
.mini::before { left: 3px; }
.mini::after { right: 3px; }
.row__who { min-width: 0; }
.row__who b { display: block; font-weight: 900; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__who > span { display: block; font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__score { font-family: 'Bagel Fat One', sans-serif; font-size: 20px; }
.row.is-you { background: rgba(255, 214, 10, 0.14); border-color: var(--sun); }
.you-tag { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 11px; font-weight: 900; }
.more { margin: 12px 4px 2px; font-size: 13px; color: var(--dim); text-align: center; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--sun); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* empty, error */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 12px 18px; }
.state p { margin: 0; color: var(--dim); max-width: 34ch; }
.state .state__big { font-family: 'Bagel Fat One', sans-serif; font-size: 24px; line-height: 1.05; color: #fff; }
.state .btn { margin-top: 8px; }
.small { font-size: 13px; color: var(--dim); }
.pad { padding: 12px 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 0; background: var(--sun); color: var(--ink); font-weight: 900; font-size: 16px; box-shadow: 0 4px 0 #000; white-space: nowrap; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.3); box-shadow: none; }
.btn--sm { padding: 10px 14px; font-size: 14px; }

/* skeletons */
.sk-line, .sk-dot { display: block; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.07) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk-dot { width: 62px; height: 66px; border-radius: 50%; margin-bottom: 6px; }
.pod.sk .pod__name { width: 70%; }
.sk-line { height: 12px; width: 100%; }
.pod.sk .pod__block { background: rgba(255, 255, 255, 0.06); border-color: transparent; box-shadow: none; }
.row.sk { grid-template-columns: 40px 1fr 60px; height: 58px; }
.row.sk .w1 { width: 28px; }
.row.sk .w3 { width: 60px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* your rank, stuck to the bottom */
.you { position: fixed; z-index: 20; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), 720px); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 22px; background: rgba(28, 18, 56, 0.94); border: 2px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: up 0.35s ease-out; }
.you.is-on { border-color: var(--sun); }
.you__bean { flex: 0 0 auto; width: 44px; height: 46px; }
.you__txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
/* A phone: the line may take two lines rather than end at "You’re not…" beside the button. */
.you__txt > b { font-weight: 900; font-size: 15px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.you__txt > span { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.you .btn { flex: 0 0 auto; }
@keyframes up { from { transform: translate(-50%, 24px); } }

/* place chooser */
.chooser { width: min(100% - 2 * var(--gutter), 520px); max-height: min(80vh, 640px); padding: 0; border: 2px solid var(--line); border-radius: 26px; background: var(--card); color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.chooser::backdrop { background: rgba(8, 4, 20, 0.7); backdrop-filter: blur(3px); }
.chooser__in { display: flex; flex-direction: column; max-height: min(80vh, 640px); }
.chooser__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; }
.chooser__top h2 { font-size: 26px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: transparent; font-size: 16px; font-weight: 900; }
.search { display: block; padding: 0 16px 10px; }
.search input { width: 100%; font: inherit; font-weight: 800; font-size: 17px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--stage); color: #fff; }
.search input:focus { outline: none; border-color: var(--sun); }
.chooser__list { overflow-y: auto; padding: 0 10px 14px; overscroll-behavior: contain; }
.chooser__list h3 { font-size: 15px; color: var(--mint); margin: 14px 8px 6px; letter-spacing: 0.04em; }
.opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 10px; border: 0; border-radius: 14px; background: transparent; text-align: left; font-weight: 800; font-size: 16px; }
.opt:hover, .opt:focus-visible { background: rgba(255, 255, 255, 0.08); }
.opt em { font-style: normal; color: var(--dim); font-size: 13px; margin-left: 4px; }
.opt small { color: var(--dim); font-size: 12px; white-space: nowrap; }
.opt--me span { color: var(--sun); }

.toast { position: fixed; z-index: 40; left: 50%; top: 18px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 900; box-shadow: 0 6px 0 #000; max-width: calc(100% - 32px); text-align: center; }
.foot { max-width: 1120px; margin: 26px auto 0; padding: 0 var(--gutter); color: rgba(255, 255, 255, 0.55); font-size: 13px; }

/* entrance animations */
@media (prefers-reduced-motion: no-preference) {
  .pod__block { animation: rise 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
  .pod--2 .pod__block { animation-delay: 0.08s; }
  .pod--3 .pod__block { animation-delay: 0.16s; }
  .row:not(.sk) { animation: fadein 0.35s ease-out both; animation-delay: calc(var(--i, 0) * 25ms); }
  .gcard { animation: fadein 0.35s ease-out both; animation-delay: calc(var(--i, 0) * 30ms); }
  .gcard[aria-checked='true'] { animation: none; }
}
/* transform only: content is never hidden, even if an animation stalls */
.settled .pod__block, .settled .row, .you.settled { animation: none !important; }
@keyframes rise { from { transform: scaleY(0.3); } }
@keyframes fadein { from { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .sk-line, .sk-dot { animation: none; }
}

/* bigger screens: wider podium, two-line rows become one */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .board { padding: 24px 22px 18px; }
  .board__head h2 { font-size: 34px; }
  .podium { gap: 18px; max-width: 640px; margin: 0 auto; }
  .pod__name { font-size: 18px; }
  .pod--1 .pod__block { height: 160px; }
  .pod--2 .pod__block { height: 124px; }
  .pod--3 .pod__block { height: 98px; }
  .pod__score { font-size: 20px; }
  .pod--1 .pod__score { font-size: 24px; }
  .row { grid-template-columns: 60px 26px minmax(0, 1fr) auto; padding: 12px 18px; }
  .row__rank { font-size: 22px; }
  .row__score { font-size: 24px; }
  .gcard { width: 168px; }
  .tabs { max-width: 560px; }
  .brand { font-size: 38px; }
}
/* desktop and TV: the pickers on the left, the board on the right */
@media (min-width: 1024px) {
  .wrap { display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .hero, .games, .tabs { grid-column: 1; }
  .hero { grid-row: 1; }
  .tabs { grid-row: 2; }
  .games { grid-row: 3; }
  .board { grid-column: 2; grid-row: 1 / span 4; margin-top: 18px; }
  .hero h1 { font-size: 64px; }
  .games { margin: 4px 0 0; }
  .games__track { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; padding: 8px 0 14px; }
  .gcard { width: auto; }
}
/* TVs and big monitors: everything a notch larger */
@media (min-width: 1600px) {
  html { font-size: 20px; }
  .wrap, .top, .foot { max-width: 1400px; }
  .row__who b { font-size: 20px; }
  .row__who > span { font-size: 15px; }
  .row__score, .row__rank { font-size: 28px; }
}

/* --- playing for the rank: season toggle, leagues, crowns, rivals, daily, prize, city wars, hall of fame --- */
.hero h1 .h1-k { display: block; margin-top: 4px; font-family: Figtree, sans-serif; font-weight: 900; font-size: 0.32em; letter-spacing: 0.02em; color: var(--mint); }

.period { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 0 8px; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg [role='radio'] { border: 0; border-radius: 999px; padding: 8px 14px; background: transparent; color: #fff; font-weight: 900; font-size: 14px; white-space: nowrap; }
.seg [aria-checked='true'] { background: var(--mint); color: var(--ink); }
.resets { font-size: 13px; font-weight: 800; color: var(--dim); white-space: nowrap; }
.resets:not(:empty)::before { content: '⏳ '; }

/* league gems next to names */
.gem { display: inline-block; vertical-align: -1px; margin-right: 5px; flex: 0 0 auto; }
.pod__name .gem { vertical-align: -2px; }
.lg { font-weight: 900; color: #fff; }

/* champion crowns under names */
.crownt { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 900; color: var(--sun); }
.crownt b { display: inline-block; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: rgba(255, 214, 10, 0.18); font-weight: 900; }
.pod__title { margin: 0 0 2px; text-align: center; }
.row__title { margin: 1px 0; }

/* the rival row */
.row.is-rival { border-color: rgba(255, 61, 139, 0.6); background: rgba(255, 61, 139, 0.1); }
.rival-tag { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--gum); color: #fff; font-size: 11px; font-weight: 900; }

/* the sticky "you" bar: rival callout on top, the line is a button (tap to find yourself) */
.you { flex-wrap: wrap; }
.you__rival { flex: 1 0 100%; margin: 0 0 2px; padding: 6px 10px; border-radius: 14px; background: rgba(255, 61, 139, 0.16); color: #fff; font-size: 13.5px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.you__txt { border: 0; padding: 0; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.you__txt:disabled { cursor: default; }
.you__txt span .gem { vertical-align: -2px; margin-right: 3px; }
.btn--chal { background: var(--gum); color: #fff; }

/* daily challenge */
.daily { margin-top: 12px; }
.daily__in { width: 100%; display: grid; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 20px; border: 2px solid rgba(0, 214, 163, 0.5); background: linear-gradient(135deg, rgba(0, 214, 163, 0.16), rgba(45, 91, 255, 0.14)); color: #fff; }
.daily__in:hover { border-color: var(--mint); }
.daily__k { font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }
.daily__goal { font-family: 'Bagel Fat One', Figtree, sans-serif; font-weight: 400; font-size: 21px; line-height: 1.1; }
.daily__row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 900; }
.daily__done { color: var(--mint); }
.daily__streak { color: var(--sun); }
.daily__left { color: var(--dim); font-weight: 800; }

/* prize banner (off until an admin sets one) */
.prize { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 14px; border-radius: 18px; background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #000; }
.prize__icon { font-size: 24px; }
.prize b { display: block; font-weight: 900; font-size: 15px; line-height: 1.2; }
.prize small { display: block; font-size: 12px; font-weight: 800; opacity: 0.75; }

/* city wars + hall of fame */
.extras { display: grid; gap: 14px; margin-top: 18px; }
.card { border-radius: 24px; background: var(--card); border: 1px solid var(--line); padding: 16px 14px 14px; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.card__head h2 { font-size: 24px; }
.card__k { font-size: 12px; font-weight: 900; color: var(--dim); }
.card__line { margin: 0 0 10px; font-weight: 900; font-size: 14px; }
.card .small { margin: 8px 0 0; }
.wars__list, .hof__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.war { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: start; padding: 6px 8px; border-radius: 14px; }
.war.is-mine { background: rgba(255, 214, 10, 0.12); outline: 2px solid var(--sun); }
.war__rank { font-family: 'Bagel Fat One', sans-serif; font-size: 18px; color: var(--sun); line-height: 1.3; }
.war__main { min-width: 0; display: grid; gap: 3px; }
.war__top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.war__top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.war__top em { font-style: normal; }
.war__pts { margin-left: auto; font-family: 'Bagel Fat One', sans-serif; font-size: 16px; }
.war__bar { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.war__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--volt), var(--mint)); }
.war.is-mine .war__bar i { background: linear-gradient(90deg, var(--tang), var(--sun)); }
.war small { font-size: 11.5px; color: var(--dim); }
.hof__list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.hof__crown { font-size: 18px; }
.hof__main { min-width: 0; display: grid; }
.hof__main b { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof__main small { font-size: 12px; color: var(--sun); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof__score { font-family: 'Bagel Fat One', sans-serif; font-size: 17px; }
.state__k { margin: 0; font-weight: 900; color: var(--mint) !important; }

@media (min-width: 720px) {
  .extras { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .period { grid-column: 1; grid-row: 2; margin: 4px 0 6px; }
  .tabs { grid-row: 3; }
  .games { grid-row: 4; }
  .extras { grid-column: 1; grid-row: 5; grid-template-columns: 1fr; margin-top: 4px; }
  .board { grid-row: 1 / span 6; }
}
