/* play.sweet.io: the player hub (index.html, js/hub.js). Layers on site.css (tokens, nav, cards, filters, modal); this
   file adds the hub's own sections, from the design's play.css, and the portal's pieces (account, loading, errors).
   Tone: one big piece of key art at the top, then quiet dark rows. Alternating ink / ink-2 backgrounds, no rules. */

/* ---------- shared bits ---------- */
.modal:focus { outline: none; }
.eyebrow { font: 600 12px/1 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); }
.eyebrow.teal { color: var(--teal); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.sky { color: var(--sky); }
.play .section-head { align-items: flex-end; }
.section-head .lead { display: grid; gap: 10px; min-width: 0; }
.section-head .side { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(15, 12, 26, 0.72); color: var(--cream); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.tag.pick { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.tag.pick svg { width: 12px; height: 12px; fill: currentColor; }

/* ---------- header: the same nav as sweet.io; Play is the current item ---------- */

/* ---------- spotlight ---------- */
.spot { position: relative; overflow: hidden; padding-block: 26px 60px; background: var(--ink); }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 18% 0%, rgba(154, 123, 255, 0.24), transparent 70%), radial-gradient(40% 44% at 92% 100%, rgba(255, 45, 158, 0.16), transparent 70%); pointer-events: none; }
.spot .wrap { position: relative; }
.spot-head { margin-bottom: 18px; }
.spot-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: stretch; }
.spot-slides { position: relative; display: grid; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); }
.spot-slide { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.spot-slide.on { opacity: 1; pointer-events: auto; position: relative; z-index: 1; }
.spot-art { aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; }
.spot-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.spot-slide.on .spot-art img { animation: drift 9s ease-out forwards; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.spot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 22px 18px; border-top: 1px solid var(--line); background: var(--panel); }
.spot-txt { flex: 1 1 260px; min-width: 0; }
.spot-txt h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.spot-txt p { color: var(--muted); font-size: 15px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-txt p a { color: var(--cream); font-weight: 600; }
.spot-txt p a:hover { color: var(--pink); }
.spot-acts { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.spot-acts .genre { font-size: 13px; padding: 7px 11px; }
.spot-rail { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.spot-rail button { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; flex: 1; min-height: 0; transition: border-color 0.15s ease, background 0.15s ease; }
.spot-rail button:hover { border-color: var(--line-2); background: var(--panel-2); }
.spot-rail button[aria-current="true"] { border-color: var(--pink); background: var(--panel-2); }
.spot-rail .th { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.spot-rail .th img { width: 100%; height: 100%; object-fit: cover; }
.spot-rail .tx { min-width: 0; }
.spot-rail h3 { font-size: 21px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-rail p { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.spot-rail .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--pink); transform-origin: left; transform: scaleX(0); }
.spot-rail button[aria-current="true"] .bar { animation: fill var(--dur, 7s) linear forwards; }
.spot.paused .spot-rail .bar, .spot.paused .spot-slide.on .spot-art img { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.spot-dots { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.spot-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); position: relative; overflow: hidden; transition: width 0.25s ease, background 0.25s ease; }
.spot-dots button[aria-current="true"] { width: 32px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.spot-dots button i { position: absolute; inset: 0; background: var(--pink); transform-origin: left; transform: scaleX(0); }
.spot-dots button:not([aria-current="true"]) i { display: none; }

/* ---------- picks: the home page's marquee rows ---------- */
.picks { background: var(--ink-2); }
.pick-note { padding: 11px 14px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
.pick-note .q { color: var(--pink); font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 0.55; margin-top: 6px; flex: none; }
.pick-note b { color: var(--cream); font-weight: 600; }
.gcard.pick { border-color: rgba(255, 45, 158, 0.35); }
.gcard.pick:hover { border-color: var(--pink); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 45, 158, 0.35); }
.gcard .badge.pink { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.gcard .badge.star { display: inline-flex; align-items: center; gap: 5px; }
.gcard .badge.star svg { width: 11px; height: 11px; fill: var(--pink); }

/* ---------- featured creators ---------- */
.creators { background: var(--ink-2); }
.track .ccard { width: 330px; flex: none; }
.ccard { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.ccard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.ccard .cover { aspect-ratio: 21 / 9; overflow: hidden; position: relative; background: #000; }
.ccard .cover img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(1.15); transform: scale(1.08); opacity: 0.9; }
.ccard .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--panel) 0%, rgba(29, 24, 51, 0.35) 45%, transparent 75%); }
.ccard .body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard .av { margin-top: -32px; border: 3px solid var(--panel); box-shadow: 0 0 0 2px var(--pink); position: relative; z-index: 1; }
.ccard h3 { font-size: 28px; font-weight: 800; text-transform: uppercase; margin-top: 2px; }
.ccard .handle { color: var(--pink); font-weight: 600; font-size: 14px; margin-top: -4px; }
.ccard .blurb { color: var(--muted); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .stats { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--dim); font-size: 13px; }
.ccard .stats b { color: var(--cream); font-weight: 600; }
.ccard .minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.ccard .minis span { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.ccard .minis img { width: 100%; height: 100%; object-fit: cover; }
.ccard .acts { display: flex; margin-top: auto; padding-top: 10px; }
.ccard .view { width: 100%; }
.ccard .view:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- trending ---------- */
.trending { background: var(--ink); }
.trending .hot-row .players { white-space: nowrap; }

/* ---------- browse: search all games ---------- */
.find { background: var(--ink); }
.find .section-head { align-items: flex-end; }
.chip .n { color: var(--dim); font-weight: 500; font-size: 13px; }
.play .chip[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.chip[aria-pressed="true"] .n { color: var(--ink); opacity: 0.7; }
.controls { margin-bottom: 18px; }
.tabs { margin-bottom: 20px; align-items: center; }
.tabs .clear { margin-left: auto; background: none; border: 0; padding: 6px 0; color: var(--muted); font: 600 14px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tabs .clear:hover { color: var(--pink); }
/* Multiplayer: a filter beside the sorts, set apart by a rule */
.tabs .tabs-sep { width: 1px; height: 24px; background: var(--line-2, var(--line)); margin: 0 4px; }
.tabs .mp-filter { display: inline-flex; align-items: center; gap: 8px; }
.tabs .mp-filter[hidden] { display: none; }
.tabs .mp-filter svg { width: 18px; height: 18px; flex: none; }
.tabs .mp-filter .n { color: var(--dim); font-weight: 500; font-size: 13px; }
.tabs .mp-filter:hover { border-color: var(--line-2); color: var(--cream); }
.tabs .mp-filter[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.tabs .mp-filter[aria-pressed="true"] .n { color: var(--ink); opacity: 0.7; }

/* ---------- closing band (the home page's) and footer tones ---------- */
.play .cta-band { background: var(--ink-2); }
.play .foot { background: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .spot-stage { grid-template-columns: minmax(0, 1fr); }
  .spot-rail { display: none; }
  .spot-dots { display: flex; }
  /* the deck: one card in view, the next one peeking in, native swipe with snap */
  .spot-slides { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border: 0; border-radius: 0; background: none; box-shadow: none; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: 0 var(--gutter-r) 6px var(--gutter-l); scroll-padding-left: var(--gutter-l); }
  .spot-slides::-webkit-scrollbar { display: none; }
  .spot-slides::after { content: ""; flex: 0 0 1px; }
  .spot-slide { flex: 0 0 calc(100% - 36px); scroll-snap-align: start; opacity: 1; pointer-events: auto; position: static; z-index: auto; transition: none; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
}
@media (max-width: 720px) {
  .spot { padding-block: 16px 40px; }
  .spot-head { margin-bottom: 10px; }
  .spot-slide { border-radius: 16px; }
  .spot-art img, .spot-slide.on .spot-art img { animation: none; transform: none; }
  .spot-bar { padding: 14px 16px 16px; gap: 10px 14px; }
  .spot-txt { flex-basis: 100%; }
  .spot-txt h2 { font-size: 30px; }
  .spot-txt p { font-size: 14px; }
  .spot-acts { margin-left: 0; width: 100%; justify-content: space-between; }
  .spot-acts .btn { flex: 1; }
  .trending .hot-row .who .x { display: none; }
  .trending .hot-row .trend { display: none; } /* on phones the list is by player count, so show the count, not the growth pill */
  .trending .hot-row .players { display: block; margin-top: 0; font: 700 13px/1 var(--body); color: var(--cream); white-space: nowrap; }
  .trending .hot-row h3 { font-size: 18px; white-space: normal; line-height: 1; }
  .trending .hot-row .who { white-space: normal; }
  .track .ccard { width: 290px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid .gbar { padding: 8px 9px 9px; }
  .grid .gtxt h3 { font-size: 17px; }
  .grid .gtxt p { font-size: 11px; }
  .grid .genre { display: none; }
  .grid .badge { font-size: 10px; padding: 5px 7px; top: 8px; left: 8px; }
}
@media (max-width: 420px) {
  .trending .hot-row .who .handle { display: inline; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid .gtxt h3 { font-size: 20px; }
  .grid .gtxt p { font-size: 13px; }
  .grid .genre { display: inline-block; }
  .grid .gbar { padding: 10px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .spot-slide { transition: none; }
  .spot-slide.on .spot-art img { animation: none; }
  .spot-rail button[aria-current="true"] .bar { animation: none; transform: scaleX(1); }
  .spot-dots button { transition: none; }
  .ccard, .spot-rail button { transition: none; }
  .ccard:hover { transform: none; }
}


/* ---------- the portal's pieces ---------- */
/* the verified creator badge (GP.verifiedBadge): a check in a sky-blue seal, as on the site (components/site/Verified.tsx) */
.verified { display: inline-block; width: 0.95em; height: 0.95em; margin-left: 0.3em; vertical-align: -0.12em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235ec8ff' d='M11.2 1.5Q12 0.8 12.8 1.5L13.7 2.2Q14.4 2.9 15.4 2.7L16.6 2.5Q17.6 2.3 17.9 3.3L18.3 4.4Q18.6 5.4 19.6 5.7L20.7 6.1Q21.7 6.4 21.5 7.4L21.3 8.6Q21.1 9.6 21.8 10.3L22.5 11.2Q23.2 12 22.5 12.8L21.8 13.7Q21.1 14.4 21.3 15.4L21.5 16.6Q21.7 17.6 20.7 17.9L19.6 18.3Q18.6 18.6 18.3 19.6L17.9 20.7Q17.6 21.7 16.6 21.5L15.4 21.3Q14.4 21.1 13.7 21.8L12.8 22.5Q12 23.2 11.2 22.5L10.3 21.8Q9.6 21.1 8.6 21.3L7.4 21.5Q6.4 21.7 6.1 20.7L5.7 19.6Q5.4 18.6 4.4 18.3L3.3 17.9Q2.3 17.6 2.5 16.6L2.7 15.4Q2.9 14.4 2.2 13.7L1.5 12.8Q0.8 12 1.5 11.2L2.2 10.3Q2.9 9.6 2.7 8.6L2.5 7.4Q2.3 6.4 3.3 6.1L4.4 5.7Q5.4 5.4 5.7 4.4L6.1 3.3Q6.4 2.3 7.4 2.5L8.6 2.7Q9.6 2.9 10.3 2.2Z'/%3E%3Cpath fill='none' stroke='%230f0c1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7.8 12.3l2.8 2.8 5.6-5.8'/%3E%3C/svg%3E"); }
.credit-icon { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.14em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12.8' cy='13' r='10' fill='%23A86A00'/%3E%3Ccircle cx='11' cy='11' r='10' fill='%23FFC53D'/%3E%3Cpath d='M4.2 8.2A7.6 7.6 0 0 1 9 3.6' fill='none' stroke='%23FFE7A3' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M14.4 8.2a4.6 4.6 0 1 0 0 5.6' fill='none' stroke='%238A5600' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* the player's account in the nav (js/account.js): a small Sign in link, or their pill (the same as in a game, play
   page .menu-pill: avatar, username and, on a computer, credits), which opens their wallet (the profile and Sign out
   live there; on phones the menu has Wallet and Sign out too) */
.nav-account { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; } /* even empty: it holds the right side in place */
.nav-account ~ .nav-cta { margin-left: 0; }
/* the nav's search icon (computers): to Search all games, the account pill's glass and height */
.nav-find { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #f2f3f6;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(20, 22, 28, 0.86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.nav-find svg { width: 18px; height: 18px; }
.nav-find:hover, .nav-find:focus-visible { background: rgba(30, 33, 41, 0.96); border-color: rgba(255, 45, 158, 0.6); color: var(--pink); }
#browse { scroll-margin-top: 24px; } /* its heading clears the sticky nav */
.account-signin { flex: none; padding: 8px 4px; border: 0; background: none; color: var(--muted); font: 600 16px/1 var(--body); cursor: pointer; white-space: nowrap; }
.account-signin:hover, .account-signin:focus-visible { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.account-me { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 14px 0 6px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(20, 22, 28, 0.86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f2f3f6; font: 600 15px/1 var(--body); transition: background 0.15s ease, border-color 0.15s ease; }
.account-me:hover, .account-me:focus-visible, .account-me[aria-current] { background: rgba(30, 33, 41, 0.96); border-color: rgba(255, 255, 255, 0.26); }
.account-me .account-avatar { width: 28px; height: 28px; font-size: 14px; }
.account-me-name { min-width: 0; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-balance { display: inline-flex; align-items: center; gap: 5px; color: #ffd166; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-balance:empty { display: none; }
.account-balance .credit-icon { width: 1.1em; height: 1.1em; }
.account-pending { pointer-events: none; }
.account-pending-name { width: 72px; height: 12px; }

/* from gp-frontend's globals.css (its public-site additions): initials avatars, and a cover's initials when it has none */
.av.initials { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--violet)); color: var(--ink); font-family: var(--display); font-weight: 800; }
.gimg-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--panel-2), var(--ink)); color: var(--pink); font: 800 56px/1 var(--display); }
.mhero .gimg-fallback { font-size: 96px; }
/* a creator's picture: a soft shimmer while it loads, then it fades in (gp-frontend components/site/Avatar.tsx) */
.av.av-pic { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--panel-2), var(--panel)); }
.av.av-pic img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.av.av-pic.ready img { opacity: 1; }
.av.av-pic:not(.ready)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgba(245, 241, 234, 0.09) 50%, transparent 75%); transform: translateX(-100%); animation: av-shimmer 1.3s ease-in-out infinite; }
@keyframes av-shimmer { to { transform: translateX(100%); } }

/* a game card's badges: Sweet Pick (a star), New, and growth */
.gcard .badge.star { display: inline-flex; align-items: center; gap: 5px; }
.gcard .badge.star svg { width: 11px; height: 11px; fill: var(--pink); }
.gcard .badge.up { color: var(--lime); border-color: rgba(200, 245, 90, 0.4); }
/* Titan's gold verified badge (tiers.py verified_badge "gold": GP.verifiedBadge('gold')), the plan card's gold seal */
.verified.gold { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f3d68f'/%3E%3Cstop offset='.55' stop-color='%23d4a23f'/%3E%3Cstop offset='1' stop-color='%23a8761f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M11.2 1.5Q12 0.8 12.8 1.5L13.7 2.2Q14.4 2.9 15.4 2.7L16.6 2.5Q17.6 2.3 17.9 3.3L18.3 4.4Q18.6 5.4 19.6 5.7L20.7 6.1Q21.7 6.4 21.5 7.4L21.3 8.6Q21.1 9.6 21.8 10.3L22.5 11.2Q23.2 12 22.5 12.8L21.8 13.7Q21.1 14.4 21.3 15.4L21.5 16.6Q21.7 17.6 20.7 17.9L19.6 18.3Q18.6 18.6 18.3 19.6L17.9 20.7Q17.6 21.7 16.6 21.5L15.4 21.3Q14.4 21.1 13.7 21.8L12.8 22.5Q12 23.2 11.2 22.5L10.3 21.8Q9.6 21.1 8.6 21.3L7.4 21.5Q6.4 21.7 6.1 20.7L5.7 19.6Q5.4 18.6 4.4 18.3L3.3 17.9Q2.3 17.6 2.5 16.6L2.7 15.4Q2.9 14.4 2.2 13.7L1.5 12.8Q0.8 12 1.5 11.2L2.2 10.3Q2.9 9.6 2.7 8.6L2.5 7.4Q2.3 6.4 3.3 6.1L4.4 5.7Q5.4 5.4 5.7 4.4L6.1 3.3Q6.4 2.3 7.4 2.5L8.6 2.7Q9.6 2.9 10.3 2.2Z'/%3E%3Cpath fill='none' stroke='%230f0c1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7.8 12.3l2.8 2.8 5.6-5.8'/%3E%3C/svg%3E"); }
.gcard .gtxt p .verified, .spot-txt .verified, .spot-rail .verified, .hot-row .verified { width: 0.9em; height: 0.9em; }
.who.big .verified { display: inline-block; } /* the game panel's creator: the check stays beside the name (site.css stacks .who.big spans) */
.ccard h3 .verified { width: 0.55em; height: 0.55em; vertical-align: 0.06em; margin-left: 0.2em; }
.minis a { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; border: 1px solid var(--line); transition: border-color 0.15s ease; }
.minis a:hover { border-color: var(--pink); }
.minis a img { width: 100%; height: 100%; object-fit: cover; }
.ccard .cover .gimg-fallback { font-size: 40px; }
.spot-art, .spot-rail .th, .hot-row .thumb, .ccard .cover, .minis a { position: relative; }
.spot-art .gimg-fallback { font-size: clamp(64px, 9vw, 120px); }
.spot-rail .th .gimg-fallback, .hot-row .thumb .gimg-fallback, .minis .gimg-fallback { font-size: 22px; }
.modal .desc { white-space: pre-line; } /* a line break inside a paragraph stays one */
.mdesc { display: flex; flex-direction: column; gap: 16px; } /* the description's paragraphs (js/hub.js), spaced like the panel */
.mdesc:empty { display: none; }
.hot-row .trend.new { color: var(--sky); background: rgba(94, 200, 255, 0.1); border-color: rgba(94, 200, 255, 0.32); }

/* loading: placeholders shaped like the hub, under one slow sweep of light (as the Studio's components/Skeleton.tsx);
   they fade in after a beat, so a quick load never flashes them */
.skel { animation: skel-in 0.4s ease 0.2s both; }
.skel-bone { display: block; flex: none; max-width: 100%; border-radius: 8px; background-color: var(--panel-2); background-image: linear-gradient(100deg, transparent 38%, rgba(245, 241, 234, 0.075) 50%, transparent 62%); background-size: 100vw 100vh; background-repeat: no-repeat; background-attachment: fixed; animation: skel-sweep 2.4s linear infinite; }
@keyframes skel-sweep { from { background-position: -100vw 0; } to { background-position: 100vw 0; } }
@keyframes skel-in { from { opacity: 0; } }
.spot-skel { display: flex; flex-direction: column; }
.spot-skel .skel-art { aspect-ratio: 16 / 9; width: 100%; border-radius: 0; }
.spot-skel .skel-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; }
.skel-rail { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.skel-rail .skel-bone { flex: 1; min-height: 64px; border-radius: 14px; }
.skel-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.skel-card .skel-art { aspect-ratio: 16 / 9; width: 100%; border-radius: 0; }
.hub-loaded { animation: hub-in 0.35s ease both; }
@keyframes hub-in { from { opacity: 0; } }
.hub-error { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.hub-error b { color: var(--cream); }
.spot .hub-error { min-height: 320px; justify-content: center; }
@media (max-width: 1000px) {
  .skel-rail { display: none; }
  .nav-account { margin-left: auto; }
  .nav-find { display: none; } /* computers only */
}
@media (max-width: 720px) {
  .account-balance { display: none; } /* phones: the avatar and name; the credits are in the wallet */
}
@media (max-width: 440px) {
  .nav .nav-cta { display: none; } /* in the menu instead */
  .account-me-name { max-width: 7em; }
}
@media (max-width: 340px) {
  .account-me { padding-right: 6px; }
  .account-me-name, .account-pending-name { display: none; } /* the avatar alone: it still opens the wallet */
}
/* the menu's own copies: Launch a game when the button above can't fit; the account's Wallet and Sign out whenever
   the links fold into the burger */
@media (min-width: 721px) {
  .nav-links .menu-only:not(.account-menu) { display: none; }
}
@media (min-width: 1001px) {
  .nav-links .account-menu { display: none; }
}
@media (min-width: 441px) {
  .nav-links .menu-only[href$="/signup"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .skel, .skel-bone, .hub-loaded { animation: none; }
  .av.av-pic:not(.ready)::after { animation: none; transform: none; background: rgba(245, 241, 234, 0.05); }
  .av.av-pic img { transition: none; }
}

/* the profile dialog (js/account.js GP.openProfile): opened from the wallet's Edit profile and a game's Make it yours */
.rename-dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--cream); padding: 24px; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; font-family: var(--body); }
.rename-dialog::backdrop { background: rgba(8, 6, 16, 0.7); }
.rename-dialog h2 { margin: 0 0 6px; font: 800 24px/1.1 var(--display, inherit); text-transform: uppercase; }
.rename-lede, .rename-hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.rename-hint { margin: 8px 0 0; }
.rename-dialog label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.rename-dialog input { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); color: var(--cream); font: 600 16px var(--body); }
.rename-error { color: var(--orange); font-size: 14px; margin: 10px 0 0; }
.rename-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.rename-actions button { padding: 10px 16px; border-radius: 10px; font: 700 15px var(--body); cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--cream); }
.rename-actions button.primary { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.rename-actions button:disabled { opacity: 0.55; cursor: default; }

/* players' avatars (GP.playerAvatar, player_avatars.py): a stock picture, or the username's first letter on a pink
   disc (a new player-1234 shows "P"), or a guest's silhouette. Each use sets the size; the letter scales with font-size */
.avatar { display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-sizing: border-box; vertical-align: middle; }
.avatar-letter { display: inline-grid; place-items: center; background: #ff2d9e; color: #15171c; font-weight: 800; line-height: 1; font-size: 14px; }
.avatar-guest { background: #3a3f4a no-repeat center / 62% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2' fill='%23c7ccd6'/%3E%3Cpath d='M3.5 21a8.5 8.5 0 0 1 17 0z' fill='%23c7ccd6'/%3E%3C/svg%3E"); }
.account-avatar { width: 24px; height: 24px; font-size: 12px; }
/* the profile dialog (js/account.js): the avatar grid above the username */
.profile-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-head .rename-lede { margin: 4px 0 0; }
.profile-avatar { width: 60px; height: 60px; font-size: 28px; }
.profile-label { font-weight: 700; font-size: 0.9rem; margin: 0 0 8px; }
.avatar-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 0 0 16px; padding: 2px; max-height: min(344px, 46dvh); overflow-y: auto; }
.avatar-choice { display: block; padding: 2px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; aspect-ratio: 1; min-width: 0; }
.avatar-choice img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.avatar-choice:hover { border-color: rgba(255, 255, 255, 0.28); }
.avatar-choice:focus-visible { outline: 2px solid #7b96ff; outline-offset: 1px; }
.avatar-choice[aria-checked="true"] { border-color: #ff2d9e; box-shadow: 0 0 0 3px rgba(255, 45, 158, 0.25); }
@media (max-width: 420px) { .avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-height: 232px; } } /* 4½ rows: there are more */
