/* PROOF OF GAME — built on the measured diceblox.com system:
   base #201e31 / rails #2d2842 / cards #272437 / inset #232034, chunky "physical" buttons
   (gradient #3c3557→#312c48 + inset 0 4px rgba(68,64,95,.36) + inset 0 -4px rgba(23,21,35,.56)),
   hover = ::before lighter layer fading in over 120ms, cards lift -1.5% while siblings dim to .4.
   Gold accent swapped for blue (Noah), green "rewards" swapped for the logo's mint. */
:root {
  --bg: #201e31;
  --rail: #2d2842;
  --card: #272437;
  --inset: #232034;
  --deep: #1c1a2b;
  --line: #3a3452;
  --text: #ffffff;
  --text-2: #e9e3ff;
  --label: #a29cba;
  --muted: #7a7494;
  --blue: #6aa2ff;
  --blue-deep: #2f6bff;
  --mint: #7fe0b5;
  --mint-deep: #2f9e6e;
  --down: #ff6b7d;
  --up: #7fe0b5;
  --display: "Lilita One", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --rail-w: 300px;
  --press-hi: inset 0 4px 0 0 rgba(68, 64, 95, 0.36);
  --press-lo: inset 0 -4px 0 0 rgba(23, 21, 35, 0.56);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 700 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(106, 162, 255, 0.35); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.display, h1, h2, h3, .btn, .tag { font-family: var(--display); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }

/* Physical buttons ------------------------------------------------------------------ */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px 4px; border-radius: 8px; border: 1px solid #28233e; cursor: pointer; white-space: nowrap; user-select: none;
  font-size: 14px; color: var(--label);
  background: linear-gradient(#3c3557 0%, #312c48 100%); box-shadow: var(--press-hi), var(--press-lo);
  transition: color 120ms var(--ease), transform 120ms var(--ease), filter 120ms var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(#4b426d 0%, #38334f 100%); box-shadow: var(--press-hi), var(--press-lo); opacity: 0; transition: opacity 120ms var(--ease); }
.btn:hover::before { opacity: 1; }
.btn:hover { color: var(--text-2); }
.btn:active { transform: translateY(2px); filter: brightness(0.9); }
.btn svg { width: 18px; height: 18px; }
.btn-blue, .btn-primary { color: #d6e5ff; border-color: #1d2a55; background: linear-gradient(rgba(106, 162, 255, 0.4) 0%, rgba(106, 162, 255, 0) 100%), linear-gradient(#323a63 0%, #262a4a 100%); box-shadow: inset 0 4px 0 rgba(120, 150, 230, 0.36), inset 0 -4px 0 rgba(14, 18, 40, 0.6), inset 0 0 20px rgba(106, 162, 255, 0.28); }
.btn-blue::before, .btn-primary::before { background: linear-gradient(rgba(106, 162, 255, 0.58) 0%, rgba(106, 162, 255, 0.08) 100%), linear-gradient(#3a4472 0%, #2b3054 100%); box-shadow: inset 0 4px 0 rgba(120, 150, 230, 0.4), inset 0 -4px 0 rgba(14, 18, 40, 0.6), inset 0 0 26px rgba(106, 162, 255, 0.4); }
.btn-blue:hover, .btn-primary:hover { color: #fff; }
.btn-mint { color: #dffbee; border-color: #1b3a2f; background: linear-gradient(#2f8f66 0%, #237553 100%); box-shadow: inset 0 4px 0 rgba(150, 240, 200, 0.3), inset 0 -4px 0 rgba(8, 40, 26, 0.55); }
.btn-mint::before { background: linear-gradient(#37a576 0%, #2a8460 100%); box-shadow: inset 0 4px 0 rgba(150, 240, 200, 0.36), inset 0 -4px 0 rgba(8, 40, 26, 0.55); }
.btn-mint:hover { color: #fff; }
.btn-icon { width: 44px; padding: 0 0 4px; }
.btn-icon:hover { transform: scale(1.05); }
.btn-sm { height: 34px; padding: 0 14px 3px; font-size: 12px; box-shadow: inset 0 3px 0 rgba(68, 64, 95, 0.36), inset 0 -3px 0 rgba(23, 21, 35, 0.56); }
.btn-lg { height: 52px; padding: 0 28px 4px; font-size: 16px; }
.btn[aria-disabled="true"], .btn:disabled { cursor: default; filter: saturate(0.4) brightness(0.85); }
.btn[aria-disabled="true"]::before, .btn:disabled::before { display: none; }
.btn[aria-disabled="true"]:active, .btn:disabled:active { transform: none; }

/* Shell -------------------------------------------------------------------------------- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-w); z-index: 20; background: var(--rail); display: flex; flex-direction: column; }
.rail-brand { position: relative; height: 200px; display: grid; place-items: center; align-content: center; gap: 12px; overflow: hidden; border-bottom: 2px solid #4f6cb8; box-shadow: 0 1px 24px rgba(106, 162, 255, 0.18); }
.rail-brand::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/overview-thumb.jpg") center / cover; opacity: 0.18; filter: saturate(0.6); }
.rail-brand::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45, 40, 66, 0.2), rgba(45, 40, 66, 0.92)); }
.rail-brand img { position: relative; z-index: 1; width: 92px; height: 92px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); transition: transform 230ms var(--ease); }
.rail-brand:hover img { transform: translateY(-4px) rotate(-3deg); }
.rail-brand span { position: relative; z-index: 1; font-family: var(--display); font-size: 30px; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.rail-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; }
.rail-head .tag { flex: 1; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 8px; background: linear-gradient(#3c3557, #312c48); box-shadow: var(--press-hi), var(--press-lo); font-size: 14px; color: var(--label); }
.rail-head .tag b { margin-left: auto; color: var(--mint); font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.rail-head .tag b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.feed { flex: 1; overflow-y: auto; padding: 4px 16px 16px; display: grid; align-content: start; gap: 10px; scrollbar-width: thin; scrollbar-color: #3c3557 transparent; }
.feed-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--card); box-shadow: inset 0 -3px 0 rgba(23, 21, 35, 0.5); transition: transform 150ms var(--ease), background-color 150ms var(--ease); }
.feed-item:hover { transform: translateX(3px); background: #2c2840; }
.feed-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--inset); }
.feed-item b { display: block; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item small { color: var(--label); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.feed-item small i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.feed-item .go { font-family: var(--display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); opacity: 0; transition: opacity 150ms var(--ease); }
.feed-item:hover .go { opacity: 1; }
.feed .skel { height: 64px; }

.main { margin-left: var(--rail-w); min-height: 100vh; display: flex; flex-direction: column; }
.toplinks { height: 40px; display: flex; align-items: center; gap: 26px; padding: 0 24px; background: var(--deep); }
.toplinks a { font-family: var(--display); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: filter 150ms var(--ease); }
.toplinks a:hover { filter: brightness(1.25); }
.toplinks .l-blue { color: var(--blue); }
.toplinks .l-mint { color: var(--mint); }
.toplinks .l-soft { color: #8d80c3; }
.toplinks .right { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.toplinks .right a { color: var(--muted); }
.toplinks .right a:hover { color: var(--text-2); filter: none; }
.toplinks .soc { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--card); color: var(--label); }
.toplinks .soc svg { width: 14px; height: 14px; }
.topnav { height: 78px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--rail); box-shadow: 0 4px 0 rgba(23, 21, 35, 0.35); position: sticky; top: 0; z-index: 15; }
.topnav .btn[aria-current="page"] { color: var(--text); }
.topnav .btn[aria-current="page"]::before { opacity: 1; }
.topnav .spacer { flex: 1; }
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; height: 38px; padding: 0 44px; position: relative; background: linear-gradient(90deg, rgba(106, 162, 255, 0.04), rgba(106, 162, 255, 0.14), rgba(106, 162, 255, 0.04)); font-family: var(--display); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.announce a { color: #fff; }
.announce button { position: absolute; right: 16px; border: 0; background: none; color: var(--label); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; transition: color 120ms var(--ease); }
.announce button:hover { color: #fff; }
.content { flex: 1 0 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 46px 32px 0; }

/* Banners ------------------------------------------------------------------------------- */
.banner { position: relative; overflow: hidden; border-radius: 16px; background: #2b2742; min-height: 186px; display: flex; align-items: center; padding: 34px 54px; box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.5); }
.banner > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 600ms var(--ease), opacity 400ms var(--ease); }
.banner:hover > img.bg { transform: scale(1.03); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 39, 66, 0.98) 0%, rgba(43, 39, 66, 0.85) 38%, rgba(43, 39, 66, 0.15) 78%); pointer-events: none; }
.banner-body { position: relative; z-index: 1; }
.banner h1, .banner h2 { margin: 0; line-height: 1; }
.banner h1 { font-size: 34px; color: #cfdcff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.banner h1 + .kicker { margin: 6px 0 18px; font-family: var(--display); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.banner.hero { border-bottom: 2px solid #4f6cb8; box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.5), 0 10px 30px -12px rgba(106, 162, 255, 0.35); }
.banner.pot { margin-top: 26px; min-height: 124px; padding: 22px 26px; gap: 22px; background: linear-gradient(90deg, #2c3a5e 0%, #313a63 50%, #2a3354 100%); border-bottom: 2px solid #4f6cb8; }
.banner.pot::after { display: none; }
.pot-coin { flex: 0 0 auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3a4778, #222a4a); box-shadow: inset 0 4px 0 rgba(150, 180, 255, 0.25), inset 0 -4px 0 rgba(10, 14, 32, 0.6); }
.pot-coin img { width: 52px; height: 52px; }
.pot h2 { font-size: 34px; color: var(--blue); display: flex; align-items: center; gap: 12px; }
.pot h2 .chip { font-size: 15px; padding: 6px 10px 7px; border-radius: 7px; background: #23294a; color: #cfe0ff; box-shadow: inset 0 -3px 0 rgba(10, 14, 32, 0.5); }
.pot p { margin: 6px 0 0; font-family: var(--display); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #9fb0dd; }
.pot p b { color: #fff; font-weight: 400; }
.pot-input { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: #262b49; box-shadow: inset 0 3px 0 rgba(10, 14, 32, 0.45); border: 1px solid #3b4675; }
.pot-input input { width: 300px; height: 44px; border: 0; background: transparent; outline: 0; padding: 0 10px; font-size: 15px; color: #fff; }
.pot-input input::placeholder { color: #7f8bb5; }

/* Art cards (diceblox game grid) ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 40px; }
.cards:hover .art { opacity: 0.4; }
.cards .art:hover { opacity: 1; transform: translateY(-1.5%); }
.art { position: relative; display: block; aspect-ratio: 242 / 320; border-radius: 16px; overflow: hidden; background: var(--card); transition: transform 230ms var(--ease), opacity 230ms var(--ease); box-shadow: inset 0 -5px 0 rgba(23, 21, 35, 0.6); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.art:hover img { transform: scale(1.06); }
.art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32, 30, 49, 0) 40%, rgba(32, 30, 49, 0.92) 100%); }
.art-label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 18px; text-align: center; }
.art-icon { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(#3c3557, #312c48); box-shadow: var(--press-hi), var(--press-lo); color: var(--blue); transition: transform 230ms var(--ease); }
.art:hover .art-icon { transform: translateY(-5px); }
.art-icon svg { width: 22px; height: 22px; }
.art-label b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; line-height: 1; }
.art-label small { display: block; margin-top: 4px; color: var(--label); font-size: 13px; }

/* Sections + tile rows ---------------------------------------------------------------------- */
.sec { margin-top: 48px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.sec-head h2 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.sec-head .sub { color: var(--label); font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.row { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row:hover .tile { opacity: 0.55; }
.row .tile:hover { opacity: 1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.tiles:hover .tile { opacity: 0.55; }
.tiles .tile:hover { opacity: 1; }
.tile { position: relative; flex: 0 0 200px; width: 200px; scroll-snap-align: start; padding: 10px 10px 12px; border-radius: 14px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); transition: transform 200ms var(--ease), opacity 200ms var(--ease), background-color 200ms var(--ease); }
.tiles .tile { width: auto; }
.tile:hover { transform: translateY(-4px); background: #2d2944; }
.tile-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--inset); }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.tile:hover .tile-thumb img { transform: scale(1.06); }
.tile-name { margin: 10px 2px 4px; font-size: 15px; line-height: 1.3; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-stats { display: flex; gap: 10px; margin: 0 2px; color: var(--label); font-size: 12px; }
.tile-stats span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tile-stats .icon { width: 13px; height: 13px; }
.tile-stats .mc { color: var(--mint); }
.tile-wide { flex-basis: 300px; width: 300px; }
.tile-wide .tile-thumb { aspect-ratio: 16 / 9; }
.tile-desc { margin: 0 2px; color: var(--label); font-size: 13px; }
.badge { position: absolute; left: 8px; top: 8px; padding: 4px 8px 5px; border-radius: 6px; background: rgba(28, 26, 43, 0.85); font-family: var(--display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); }
.badge.coin { background: var(--blue-deep); color: #fff; }
.hover-cta { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px); opacity: 0; padding: 6px 12px 8px; border-radius: 8px; background: linear-gradient(#3a4472, #2b3054); box-shadow: inset 0 3px 0 rgba(120, 150, 230, 0.36), inset 0 -3px 0 rgba(14, 18, 40, 0.6); font-family: var(--display); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #fff; transition: opacity 180ms var(--ease), transform 180ms var(--ease); white-space: nowrap; }
.tile:hover .hover-cta { opacity: 1; transform: translate(-50%, 0); }
.skel { background: linear-gradient(90deg, var(--card), #2d2944, var(--card)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .art, .tile, .art img, .tile-thumb img { transition: none; } }
.empty-row { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: var(--card); color: var(--label); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); }
.empty-row img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
.empty-row b { display: block; color: var(--text); font-family: var(--display); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.error-line { color: var(--down); }
.chips { display: flex; gap: 10px; margin: 6px 0 22px; flex-wrap: wrap; }
.chip-btn[aria-pressed="true"] { color: #fff; }
.chip-btn[aria-pressed="true"]::before { opacity: 1; }

.people { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.person { flex: 0 0 110px; text-align: center; padding: 12px 8px; border-radius: 14px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); transition: transform 200ms var(--ease); }
.person:hover { transform: translateY(-4px); }
.person-av { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--inset); box-shadow: 0 0 0 3px #3c3557; }
.person-av img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { color: var(--mint); font-size: 12px; }

/* Page headers + game-page grammar ---------------------------------------------------------- */
.page-title { margin: 0 0 8px; font-size: 40px; line-height: 1; color: #cfdcff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.lead-muted { margin: 0 0 26px; color: var(--label); max-width: 70ch; font-size: 16px; }
.panel-card { padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); }
.game { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.game-media-main { border-radius: 16px; overflow: hidden; background: var(--card); aspect-ratio: 16 / 9; box-shadow: inset 0 -5px 0 rgba(23, 21, 35, 0.6); }
.game-media-main.square { aspect-ratio: 1; max-width: 420px; }
.game-media-main img { width: 100%; height: 100%; object-fit: cover; }
.game-meta { display: flex; flex-direction: column; padding: 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); }
.game-meta h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.05; }
.creator { margin: 0 0 12px; color: var(--label); display: flex; align-items: center; gap: 6px; }
.creator a { color: var(--blue); }
.creator a:hover { color: #9cc2ff; }
.verified { width: 16px; height: 16px; }
.meta-line { color: var(--label); font-size: 14px; }
.meta-line span { color: var(--muted); }
.game-actions { margin-top: auto; padding-top: 18px; display: grid; gap: 14px; }
.btn-play { width: 100%; height: 58px; font-size: 18px; }
.btn-play svg { width: 22px; height: 22px; }
.game-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.game-icon { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 10px; background: var(--inset); font-size: 11px; color: var(--label); text-transform: uppercase; letter-spacing: 0.5px; }
.game-icon svg { width: 20px; height: 20px; color: var(--blue); }
.game-icon b { font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--text); letter-spacing: 0.5px; }
.tabbar { display: flex; gap: 10px; margin: 30px 0 14px; }
.tabbar button[aria-selected="true"] { color: #fff; }
.tabbar button[aria-selected="true"]::before { opacity: 1; }
.panel h2 { font-size: 22px; margin: 16px 0 10px; }
.panel p { margin: 0 0 12px; color: var(--text-2); font-weight: 600; }
.ca { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 10px; background: var(--inset); box-shadow: inset 0 3px 0 rgba(10, 8, 20, 0.35); max-width: 620px; }
.ca code { flex: 1; font: 600 14px/1 ui-monospace, Menlo, monospace; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chart { height: 520px; border-radius: 16px; overflow: hidden; background: var(--card); }
.chart iframe { width: 100%; height: 100%; border: 0; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--label); }

/* Candle Run, how, create ------------------------------------------------------------------- */
.board-row { display: grid; grid-template-columns: 44px 48px minmax(0, 1fr) 120px; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 8px; border-radius: 12px; background: var(--card); box-shadow: inset 0 -3px 0 rgba(23, 21, 35, 0.5); }
.board-row .rank { font-family: var(--display); font-size: 20px; color: var(--label); text-align: center; }
.board-row.top .rank { color: var(--blue); }
.board-row img { width: 48px; height: 48px; border-radius: 50%; background: var(--inset); }
.board-row .t { text-align: right; font-family: var(--display); font-size: 18px; letter-spacing: 0.5px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rule { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); }
.rule i { flex: 0 0 14px; height: 32px; border-radius: 4px; position: relative; margin-top: 6px; }
.rule i::before { content: ""; position: absolute; left: 6px; top: -6px; bottom: -6px; width: 2px; background: inherit; }
.rule b { display: block; font-family: var(--display); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.rule span { color: var(--label); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps:hover .step { opacity: 0.55; }
.steps .step:hover { opacity: 1; transform: translateY(-4px); }
.step { padding: 10px 10px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.step .tile-thumb { aspect-ratio: 16 / 10; }
.step .badge { background: var(--blue-deep); color: #fff; font-size: 14px; }
.step h3 { margin: 12px 4px 6px; font-size: 18px; }
.step p { margin: 0 4px; color: var(--label); font-size: 14px; }
.fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 4px 0; }
.fields span { padding: 3px 9px 4px; border-radius: 6px; background: var(--inset); font-size: 12px; color: var(--text-2); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 12px; background: var(--card); box-shadow: inset 0 -3px 0 rgba(23, 21, 35, 0.5); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--display); letter-spacing: 1px; text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; transition: color 120ms var(--ease); }
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--label); transition: transform 150ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--label); max-width: 75ch; font-weight: 600; }
.step-card { padding: 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); margin-bottom: 16px; transition: opacity 160ms var(--ease); }
.step-card.is-locked { opacity: 0.4; pointer-events: none; }
.step-card.is-done .step-no { background: linear-gradient(#2f8f66, #237553); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-head h2 { margin: 0; font-size: 22px; }
.step-no { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(#3a4472, #2b3054); box-shadow: inset 0 3px 0 rgba(120, 150, 230, 0.36), inset 0 -3px 0 rgba(14, 18, 40, 0.6); font-family: var(--display); font-size: 17px; padding-bottom: 2px; }
.step-text { margin: 0 0 14px; color: var(--label); font-weight: 600; }
.find { display: flex; gap: 10px; }
.find input, .field input, .field textarea, .buy-row input { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: var(--inset); box-shadow: inset 0 3px 0 rgba(10, 8, 20, 0.35); outline: 0; font-size: 15px; font-weight: 700; transition: border-color 120ms var(--ease); }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.find input:focus, .field input:focus, .field textarea:focus, .buy-row input:focus { border-color: #4f6cb8; }
.find input::placeholder, .field input::placeholder, .field textarea::placeholder, .buy-row input::placeholder { color: var(--muted); }
.field { display: grid; gap: 7px; }
.field > span { font-family: var(--display); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--label); }
.field small { color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.more summary { cursor: pointer; font-family: var(--display); letter-spacing: 1px; text-transform: uppercase; font-size: 13px; color: var(--blue); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 14px; }
.buy-row { display: flex; align-items: center; gap: 10px; }
.buy-row input { width: 150px; }
.buy-row .chips { margin: 0 0 0 auto; }
.cost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cost div { padding: 12px; border-radius: 10px; background: var(--inset); text-align: center; display: grid; gap: 2px; }
.cost span { color: var(--label); font-size: 12px; }
.cost b { font-family: var(--display); font-weight: 400; letter-spacing: 0.5px; }
.submit-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.row-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.field-msg { min-height: 20px; margin: 10px 0 0; font-size: 14px; color: var(--label); }
.field-msg.ok { color: var(--mint); }
.field-msg.err { color: var(--down); }
.gamecard { display: flex; gap: 18px; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--inset); }
.gamecard img { width: 124px; height: 124px; border-radius: 12px; background: var(--card); }
.gamecard h3 { margin: 4px 0 4px; font-size: 24px; }
.gamecard .game-icons { margin-top: 10px; max-width: 420px; }
.gamecard .game-icon { background: var(--card); }

/* Footer ------------------------------------------------------------------------------------- */
.foot { margin-top: 70px; padding: 26px 32px 34px; background: var(--deep); }
.foot-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 14px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { font-family: var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--label); transition: color 120ms var(--ease); }
.foot nav a:hover { color: var(--text-2); }
.foot p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; max-width: 90ch; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; padding: 12px 16px 14px; border-radius: 10px; background: linear-gradient(#3a4472, #2b3054); box-shadow: inset 0 3px 0 rgba(120, 150, 230, 0.36), inset 0 -3px 0 rgba(14, 18, 40, 0.6); font-family: var(--display); letter-spacing: 1px; text-transform: uppercase; font-size: 14px; transition: opacity 160ms var(--ease), transform 160ms var(--ease); pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1280px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pot-input input { width: 200px; } }
@media (max-width: 1040px) {
  .rail { display: none; }
  .main { margin-left: 0; }
  .game { grid-template-columns: 1fr; }
  .banner.pot { flex-wrap: wrap; }
  .pot-input { margin-left: 0; width: 100%; } .pot-input input { width: 100%; }
}
@media (max-width: 720px) {
  .toplinks a:not(.keep) { display: none; }
  .topnav { height: 66px; padding: 0 14px; gap: 8px; }
  .topnav .hide-sm { display: none; }
  .announce { font-size: 12px; padding: 0 36px; }
  .content { padding: 24px 16px 0; }
  .banner { padding: 26px 22px; }
  .banner h1 { font-size: 28px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .rules, .steps, .form-grid { grid-template-columns: 1fr; }
  .buy-row { flex-wrap: wrap; } .buy-row .chips { margin: 0; }
  .submit-row { grid-template-columns: 1fr; }
  .gamecard { flex-direction: column; }
  .tile { flex-basis: 160px; width: 160px; }
  .tile-wide { flex-basis: 250px; width: 250px; }
  .cost { grid-template-columns: 1fr; }
}

/* Rail empty state ------------------------------------------------------------------------- */
.feed-empty { display: grid; gap: 8px; padding: 16px; border-radius: 12px; background: var(--card); box-shadow: inset 0 -3px 0 rgba(23, 21, 35, 0.5); color: var(--label); font-size: 13px; }
.feed-empty b { font-family: var(--display); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--text); font-size: 15px; }
.feed-empty .btn { justify-self: start; margin-top: 4px; }

/* Coin page --------------------------------------------------------------------------------- */
.coin-head { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 -4px 0 rgba(23, 21, 35, 0.55); }
.coin-art { width: 132px; height: 132px; border-radius: 14px; object-fit: cover; background: var(--inset); box-shadow: 0 0 0 3px #3c3557; }
.coin-title h1 { margin: 8px 0 6px; font-size: 36px; line-height: 1; }
.coin-title h1 .tk { color: var(--blue); }
.coin-title .creator { margin-bottom: 12px; }
.badge.static { position: static; display: inline-block; }
.coin-cta { display: grid; gap: 10px; }
.coin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.coin-stats div { padding: 14px 16px; border-radius: 12px; background: var(--card); box-shadow: inset 0 -3px 0 rgba(23, 21, 35, 0.5); display: grid; gap: 2px; }
.coin-stats span { color: var(--label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.coin-stats b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.5px; }
.coin-stats #s-mcap { color: var(--mint); }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.coin-grid .chart { height: 480px; }
.coin-side { display: grid; gap: 16px; align-content: start; }
.coin-side h2 { margin: 0 0 8px; font-size: 18px; }
.coin-side p { margin: 0; color: var(--text-2); font-weight: 600; font-size: 14px; }
.game-mini { display: flex; gap: 12px; align-items: center; }
.game-mini img { width: 64px; height: 64px; border-radius: 10px; background: var(--inset); }
.game-mini b { display: block; font-family: var(--display); font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; }
.game-mini small { color: var(--label); }
.mini-stats { display: flex; gap: 10px; margin-top: 4px; color: var(--label); font-size: 12px; }
.mini-stats span { display: inline-flex; align-items: center; gap: 4px; }
.trades { display: grid; gap: 6px; }
.trade-row { display: grid; grid-template-columns: 80px 1fr 100px 100px 90px; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--card); font-size: 14px; transition: background-color 120ms var(--ease); }
.trade-row:hover { background: #2d2944; }
.trade-row.head { background: none; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding-top: 0; padding-bottom: 2px; }
.trade-row .buy { color: var(--mint); text-transform: uppercase; font-family: var(--display); letter-spacing: 1px; }
.trade-row .sell { color: var(--down); text-transform: uppercase; font-family: var(--display); letter-spacing: 1px; }
.trade-row .mono { font-family: ui-monospace, Menlo, monospace; color: var(--text-2); }
@media (max-width: 1040px) { .coin-head { grid-template-columns: 96px 1fr; } .coin-cta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } .coin-art { width: 96px; height: 96px; } .coin-grid { grid-template-columns: 1fr; } .coin-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .trade-row { grid-template-columns: 56px 1fr 70px 60px; } .trade-row span:nth-child(4) { display: none; } }

/* Tickers keep the case the creator typed */
.tk, .coin-title h1 .tk { text-transform: none; }

/* Create: mode switch + image upload */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.mode-btn[aria-selected="true"] { color: #fff; }
.mode-btn[aria-selected="true"]::before { opacity: 1; background: linear-gradient(rgba(106, 162, 255, 0.5), rgba(106, 162, 255, 0.08)), linear-gradient(#3a4472, #2b3054); }
.step-card[hidden] { display: none; }
.upload { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 12px; border-radius: 10px; background: var(--inset); box-shadow: inset 0 3px 0 rgba(10, 8, 20, 0.35); }
.upload img { grid-row: span 2; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.upload input { font-size: 14px; color: var(--text-2); }
.upload input::file-selector-button { font: inherit; font-family: var(--display); letter-spacing: 1px; text-transform: uppercase; font-size: 12px; margin-right: 12px; padding: 8px 14px 10px; border: 1px solid #28233e; border-radius: 8px; color: var(--text-2); background: linear-gradient(#3c3557, #312c48); box-shadow: var(--press-hi), var(--press-lo); cursor: pointer; }
.upload small { color: var(--muted); font-size: 12px; }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }

/* the global img { display: block } must not beat the hidden attribute */
[hidden] { display: none !important; }

/* Hidden admin entry + admin panel */
.rail { position: fixed; }
.rail-secret { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 0; }
.admin-coin { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.admin-coin img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: #000; }
.admin-info h2 { margin: 0 0 6px; font-size: 22px; }
.admin-info code { display: block; font: 600 13px/1.4 ui-monospace, Menlo, monospace; color: var(--text-2); word-break: break-all; margin-bottom: 8px; }
.chips-s { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-s { padding: 4px 9px 5px; border-radius: 6px; background: var(--inset); color: var(--label); font-size: 12px; font-weight: 800; }
.chip-s.ok { color: var(--mint); }
.chip-s.warn { color: #ffd479; }
.chip-s.bad { color: var(--down); }
.admin-act { display: grid; gap: 8px; }
@media (max-width: 720px) { .admin-coin { grid-template-columns: 72px 1fr; } .admin-act { grid-column: 1 / -1; } }

/* Ticker first (white), name after (muted); both keep the creator's casing */
.tn .sym { color: var(--text); }
.tn .nm { color: var(--label); }
.tn, .tn .sym, .tn .nm { text-transform: none; }
.coin-title h1.tn { font-family: var(--font); font-weight: 900; letter-spacing: -0.01em; }
.coin-title h1.tn .nm { font-weight: 700; font-size: 0.72em; }
.feed-item .tn .nm { font-weight: 700; }
