/* MINT YOUR GAME — measured from playin.gg (computed styles, 2026-10-06):
   body #10131c, Lexend 600 / 900, accent teal #10c7be.
   Sidebar 240 fixed, glass: rgba(18,22,38,.76) + gradient teal .18 → blue .14 → white .08, blur 40, right line white/14.
   Nav item 44h r14 14/700; group labels 10.4px/900 tracking .28em white/75.
   Hero centred: 60/900 lh 1 with teal full stops, sub 20/600 #d5d7df.
   Cards: r16 p24, line white/18, glass gradient white .15 → .085 → teal .018, blur 24; number 36/900 coloured, title 48/900.
   Buttons 44h r14: primary teal gradient + blur 12, secondary glass. Background art = the Roblox game wall. */
:root {
  --bg: #10131c;
  --bg-2: #151927;
  --glass: linear-gradient(to bottom right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.085) 50%, rgba(16, 199, 190, 0.018));
  --glass-soft: linear-gradient(to bottom right, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05) 50%, rgba(16, 199, 190, 0.012));
  --gl: rgba(255, 255, 255, 0.18);
  --gl-soft: rgba(255, 255, 255, 0.1);
  --fill: rgba(255, 255, 255, 0.1);
  --fill-h: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-2: #d5d7df;
  --label: #9ca0ac;
  --muted: #6f7482;
  --teal: #10c7be;
  --teal-a: #1fa0c4;
  --c1: #fa7777;
  --c2: #77fa95;
  --c3: #faf177;
  --c4: #9478fa;
  --up: #3ddc84;
  --down: #fa7777;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --side-w: 240px;
  --r: 16px;
  --rc: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: rgba(255, 255, 255, 0.14) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; }
::selection { background: rgba(16, 199, 190, 0.35); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.dot-t { color: var(--teal); }
[hidden] { display: none !important; }

/* Buttons ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--rc); cursor: pointer; white-space: nowrap; user-select: none;
  font-size: 14px; font-weight: 600; line-height: 1; color: #fff;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.075) 50%, rgba(16, 199, 190, 0.03));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease), filter 160ms var(--ease), opacity 160ms var(--ease);
}
.btn:hover { border-color: rgba(255, 255, 255, 0.26); background-color: rgba(255, 255, 255, 0.06); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary, .btn-blue, .btn-play, .btn-mint { background: linear-gradient(to right, rgba(31, 160, 196, 0.72), rgba(16, 199, 190, 0.78)); border-color: rgba(16, 199, 190, 0.45); }
.btn-primary:hover, .btn-blue:hover, .btn-play:hover, .btn-mint:hover { filter: brightness(1.12); border-color: rgba(16, 199, 190, 0.7); }
.btn .arr { transition: transform 160ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-outline { background: transparent; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-md { height: 44px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn[aria-disabled="true"], .btn:disabled { cursor: default; opacity: 0.45; filter: none; transform: none; }

/* Sidebar ------------------------------------------------------------------------------ */
.side {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--side-w); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; padding: 20px 16px 16px;
  background-color: rgba(18, 22, 38, 0.76);
  background-image: linear-gradient(rgba(16, 199, 190, 0.18), rgba(31, 160, 196, 0.14) 50%, rgba(255, 255, 255, 0.08));
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.26);
  transition: transform 240ms var(--ease);
}
.side::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 0; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand b { font-size: 17px; font-weight: 900; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.brand b i { display: block; margin-top: 3px; font-style: normal; font-size: 10.4px; letter-spacing: 0.22em; color: var(--teal); }
.side-search { display: flex; align-items: center; gap: 10px; height: 44px; margin: 20px 0 8px; padding: 0 12px; border-radius: var(--rc); border: 1px solid transparent; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.side-search:hover { background: var(--fill); }
.side-search:focus-within { background: rgba(0, 0, 0, 0.25); border-color: rgba(16, 199, 190, 0.5); }
.side-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; font-weight: 700; }
.side-search input::placeholder { color: #fff; opacity: 1; }
.side-search:focus-within input::placeholder { color: var(--label); }
.side-group { margin-top: 12px; }
.side-label { height: 32px; display: flex; align-items: center; padding: 0 12px; font-size: 10.4px; font-weight: 900; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.side-nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: var(--rc); border: 1px solid transparent; font-size: 14px; font-weight: 700; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.side-nav a:hover { background: var(--fill); }
.side-nav a[aria-current="page"] { background: var(--fill); border-color: rgba(255, 255, 255, 0.12); }
.side-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-live { margin-top: 18px; }
.side-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 12px; transition: background-color 160ms var(--ease); }
.side-item:hover { background: var(--fill); }
.side-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--fill); }
.side-item b { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.side-item small { display: block; font-size: 11.5px; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item time { font-size: 11px; color: var(--muted); }
.side-empty { margin: 0; padding: 4px 12px; font-size: 12px; line-height: 1.5; color: var(--label); }
.side-bottom { margin-top: auto; padding-top: 20px; }
.side-secret { display: block; height: 40px; margin: 0 -16px -16px; }
.live-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* Mobile top bar + drawer */
.mtop { display: none; }
.scrim { display: none; }

/* Page frame + background art ------------------------------------------------------------- */
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; position: relative; isolation: isolate; }
.bg-art { position: absolute; z-index: -1; inset: 0 0 auto 0; height: 1100px; overflow: hidden; pointer-events: none; }
.bg-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.05); filter: blur(1px); opacity: 0.9; }
.bg-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 14%, rgba(16, 199, 190, 0.16), transparent 34%), linear-gradient(180deg, rgba(16, 19, 28, 0.35) 0%, rgba(16, 19, 28, 0.55) 45%, var(--bg) 100%); }
.page-sub .bg-art { height: 520px; }
.page-sub .bg-art img { opacity: 0.45; }
.content { flex: 1 0 auto; width: 100%; max-width: 1184px; margin: 0 auto; padding: 40px 32px 0; animation: enter 360ms var(--ease) backwards; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.rise { animation: rise 600ms var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Home hero ---------------------------------------------------------------------------------- */
.hero { text-align: center; padding: 48px 0 72px; }
.hero-logo { display: inline-flex; align-items: center; gap: 12px; }
.hero-logo svg { width: 52px; height: 52px; }
.hero-logo b { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; text-align: left; }
.hero-logo b i { display: block; margin-top: 4px; font-style: normal; font-size: 12px; letter-spacing: 0.24em; color: var(--teal); }
.hero h1 { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; font-size: 60px; line-height: 1; font-weight: 900; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero p { margin: 20px auto 0; max-width: 46ch; font-size: 20px; line-height: 28px; color: var(--text-2); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13px; color: var(--text-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta b { color: #fff; font-weight: 900; }

/* Four numbered cards */
.cards4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.c4 { position: relative; isolation: isolate; min-height: 360px; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); overflow: hidden; background: var(--glass); border: 1px solid var(--gl); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transition: border-color 200ms var(--ease), transform 240ms var(--ease); }
.c4:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.c4 > img.art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: saturate(0.9); transition: opacity 300ms var(--ease), transform 600ms var(--ease); }
.c4:hover > img.art { opacity: 0.32; transform: scale(1.03); }
.c4::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 19, 28, 0.1), rgba(16, 19, 28, 0.55)); }
.c4-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.c4-no { font-size: 36px; font-weight: 900; line-height: 44px; }
.c4:nth-child(1) .c4-no { color: var(--c1); }
.c4:nth-child(2) .c4-no { color: var(--c2); }
.c4:nth-child(3) .c4-no { color: var(--c3); }
.c4:nth-child(4) .c4-no { color: var(--c4); }
.c4-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--rc); background: var(--fill); border: 1px solid rgba(255, 255, 255, 0.12); }
.c4-ic svg { width: 20px; height: 20px; }
.c4:nth-child(1) .c4-ic { color: var(--c1); }
.c4:nth-child(2) .c4-ic { color: var(--c2); }
.c4:nth-child(3) .c4-ic { color: var(--c3); }
.c4:nth-child(4) .c4-ic { color: var(--c4); }
.c4 h3 { margin-top: 40px; font-size: 48px; line-height: 1; }
.c4 p { margin: 16px 0 0; max-width: 36rem; font-size: 16px; line-height: 28px; color: var(--text-2); }
.c4-sec { margin-top: auto; padding: 12px; border-radius: var(--rc); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(12px); }
.c4-sec h4 { margin-bottom: 8px; font-size: 10.4px; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.c4-sec div { display: flex; flex-wrap: wrap; gap: 6px; }
.c4-sec a { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--fill); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; font-weight: 700; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.c4-sec a:hover { background: var(--fill-h); border-color: rgba(255, 255, 255, 0.24); }
.c4-gap { flex: 1; min-height: 24px; }

/* Sections + tiles ------------------------------------------------------------------------- */
.sec { margin-top: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { font-size: 28px; line-height: 1.1; display: flex; align-items: baseline; gap: 12px; }
.sec-head .sub { color: var(--label); font-size: 14px; }
.see { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); border: 1px solid transparent; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease); }
.see:hover { background: var(--fill); border-color: rgba(255, 255, 255, 0.12); color: #fff; }
.see .icon { width: 14px; height: 14px; transition: transform 160ms var(--ease); }
.see:hover .icon { transform: translateX(2px); }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 16px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row.wide { grid-auto-columns: 272px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 8px 8px 12px; border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); scroll-snap-align: start; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.tile:hover { border-color: rgba(255, 255, 255, 0.26); transform: translateY(-3px); }
.tile-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease); }
.tile:hover .tile-thumb img { transform: scale(1.05); }
.tile-wide .tile-thumb { aspect-ratio: 16 / 9; }
.tile-name { padding: 0 4px; font-size: 14px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { padding: 0 4px; margin-top: -8px; font-size: 12px; color: var(--teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-stats { display: flex; gap: 12px; padding: 0 4px; 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: #fff; }
.badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(16, 19, 28, 0.72); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 700; }
.badge svg { width: 11px; height: 11px; color: var(--teal); }
.badge.coin { background: linear-gradient(to right, rgba(31, 160, 196, 0.85), rgba(16, 199, 190, 0.9)); border-color: transparent; }
.badge.rank { top: 8px; bottom: auto; min-width: 24px; justify-content: center; }
.badge.static { position: static; }
.hover-cta { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 10px; background: linear-gradient(to right, rgba(31, 160, 196, 0.9), rgba(16, 199, 190, 0.95)); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(-4px); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.tile:hover .hover-cta { opacity: 1; transform: none; }
.skel { background: rgba(255, 255, 255, 0.05); border-radius: 12px; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.4s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); border: 1px dashed rgba(255, 255, 255, 0.18); color: var(--label); font-size: 14px; }
.empty-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.empty-row b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
.error-line { color: var(--down); }
.chips { display: flex; gap: 8px; margin: 0 0 22px; flex-wrap: wrap; }
.chip-btn[aria-pressed="true"], .chip[aria-pressed="true"] { background: linear-gradient(to right, rgba(31, 160, 196, 0.72), rgba(16, 199, 190, 0.78)); border-color: rgba(16, 199, 190, 0.45); }

/* Row scroller */
.row-wrap { position: relative; }
.row-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 8px; width: 64px; pointer-events: none; background: linear-gradient(90deg, rgba(16, 19, 28, 0), var(--bg)); transition: opacity 200ms var(--ease); }
.row-wrap.at-end::after { opacity: 0; }
.row-nav { position: absolute; z-index: 2; top: calc(50% - 38px); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(21, 25, 39, 0.85); backdrop-filter: blur(12px); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); opacity: 0; transform: scale(0.92); transition: opacity 160ms var(--ease), transform 160ms var(--ease), background-color 160ms var(--ease); }
.row-nav svg { width: 16px; height: 16px; }
.row-nav:hover { background: rgba(40, 46, 66, 0.95); }
.row-nav.prev { left: -16px; }
.row-nav.next { right: -16px; }
.row-wrap:hover .row-nav { opacity: 1; transform: none; }
.row-wrap.at-start .row-nav.prev, .row-wrap.at-end .row-nav.next { opacity: 0 !important; pointer-events: none; }
img.fade { opacity: 0; transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
img.fade.in { opacity: 1; }

/* Activity + board */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 64px; }
.split .sec { margin-top: 0; }
.list { border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); overflow: hidden; min-height: 240px; display: flex; flex-direction: column; }
.list-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); transition: background-color 160ms var(--ease); }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: rgba(255, 255, 255, 0.05); }
.list-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--fill); }
.list-row b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row small { display: block; font-size: 12px; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .when { font-size: 12px; color: var(--muted); text-align: right; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--fill); color: var(--text-2); }
.tag.green { background: rgba(16, 199, 190, 0.16); color: var(--teal); }
.list-row.ranked { grid-template-columns: 22px 40px minmax(0, 1fr) auto; }
.list-row.ranked .r { font-size: 14px; font-weight: 900; color: var(--label); text-align: center; }
.list-row.ranked:first-child .r { color: var(--c3); }
.list-row.ranked img { width: 40px; height: 40px; }
.list-row.ranked .t { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; }
.list-empty { flex: 1; display: grid; justify-items: center; align-content: center; text-align: center; gap: 6px; padding: 36px 24px; }
.list-empty-ic { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 6px; border-radius: var(--rc); background: var(--fill); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text-2); }
.list-empty-ic svg { width: 20px; height: 20px; }
.list-empty b { font-size: 15px; font-weight: 700; }
.list-empty p { margin: 0 0 10px; max-width: 34ch; font-size: 13px; color: var(--label); }

.people { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.person { text-align: center; }
.person-av { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--fill); }
.person-av img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { font-size: 12px; color: var(--label); }

/* Sub pages ---------------------------------------------------------------------------------- */
.page-title { margin: 8px 0 10px; font-size: 48px; line-height: 1.05; font-weight: 900; }
.lead-muted { margin: 0 0 32px; color: var(--text-2); max-width: 62ch; font-size: 17px; line-height: 28px; }
.lead-muted a { color: var(--teal); }
.narrow { max-width: 880px; }
.panel-card { padding: 20px; border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); }
.game { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.game-media-main { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--gl); }
.game-media-main img { width: 100%; height: 100%; object-fit: cover; }
.game-meta { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--gl); backdrop-filter: blur(24px); }
.game-meta h1 { font-size: 40px; line-height: 1.05; margin-bottom: 8px; }
.creator { margin: 0 0 12px; color: var(--label); display: flex; align-items: center; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.creator a { color: var(--teal); }
.creator a:hover { text-decoration: underline; text-underline-offset: 3px; }
.verified { width: 16px; height: 16px; }
.meta-line { color: var(--text-2); font-size: 14px; }
.meta-line span { color: var(--label); }
.game-actions { margin-top: auto; padding-top: 20px; display: grid; gap: 12px; }
.game-actions .btn-play { width: 100%; height: 56px; font-size: 16px; }
.game-actions .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: 12px 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 11px; color: var(--label); }
.game-icon svg { width: 20px; height: 20px; color: var(--teal); }
.game-icon b { font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.tabbar { display: flex; gap: 6px; margin: 32px 0 16px; }
.tabbar button { height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--label); transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease); }
.tabbar button:hover { color: #fff; background: var(--fill); }
.tabbar button[aria-selected="true"] { color: #fff; background: var(--fill); border-color: rgba(255, 255, 255, 0.14); }
.panel h2 { font-size: 22px; margin: 8px 0 12px; }
.ca { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px 0 14px; border-radius: var(--rc); border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.25); max-width: 620px; }
.ca code { flex: 1; font: 500 13px/1 var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chart { height: 520px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--gl-soft); background: rgba(0, 0, 0, 0.25); }
.chart iframe { width: 100%; height: 100%; border: 0; }
#board { border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); overflow: hidden; }
#board > .empty-row { border: 0; }
.board-row { display: grid; grid-template-columns: 32px 40px minmax(0, 1fr) 120px; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.board-row:first-child { border-top: 0; }
.board-row .rank { font-size: 14px; font-weight: 900; color: var(--label); text-align: center; }
.board-row.top .rank { color: var(--c3); }
.board-row img { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); }
.board-row .t { text-align: right; font-size: 16px; font-weight: 900; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); }
.rule i { flex: 0 0 12px; height: 28px; border-radius: 3px; position: relative; margin-top: 6px; }
.rule i::before { content: ""; position: absolute; left: 5px; top: -5px; bottom: -5px; width: 2px; background: inherit; }
.rule b { display: block; font-weight: 900; }
.rule span { color: var(--label); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; padding: 8px 8px 16px; border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); }
.step .tile-thumb { aspect-ratio: 16 / 10; }
.step .badge { top: 8px; bottom: auto; min-width: 24px; justify-content: center; }
.step h3 { margin: 14px 6px 6px; font-size: 18px; }
.step p { margin: 0 6px; color: var(--label); font-size: 14px; }
.fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 6px 0; }
.fields span { padding: 2px 9px; border-radius: 999px; background: var(--fill); font-size: 12px; color: var(--text-2); }
.faq { border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); overflow: hidden; }
.faq details { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 0 20px; }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; transition: color 160ms var(--ease); }
.faq summary:hover { color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--label); font-size: 20px; line-height: 1; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--label); max-width: 75ch; font-weight: 500; }

/* Create */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 0 0 16px; border-radius: 18px; background: var(--glass-soft); border: 1px solid var(--gl-soft); }
.mode-btn { height: 44px; background: transparent; border-color: transparent; color: var(--label); backdrop-filter: none; }
.mode-btn:hover { background: var(--fill); color: #fff; }
.mode-btn[aria-selected="true"] { background: var(--fill-h); color: #fff; border-color: rgba(255, 255, 255, 0.14); }
.step-card { padding: 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--gl); backdrop-filter: blur(24px); margin-bottom: 16px; transition: opacity 200ms var(--ease); }
.step-card.is-locked { opacity: 0.4; pointer-events: none; }
.step-card.is-done .step-no { background: rgba(61, 220, 132, 0.2); color: var(--up); border-color: rgba(61, 220, 132, 0.4); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-head h2 { font-size: 22px; }
.step-no { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(16, 199, 190, 0.16); border: 1px solid rgba(16, 199, 190, 0.4); color: var(--teal); font-size: 15px; font-weight: 900; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.step-text { margin: 0 0 14px; color: var(--text-2); font-weight: 500; }
.find { display: flex; gap: 8px; }
.find input, .field input, .field textarea, .buy-row input { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--rc); border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.25); outline: 0; font-size: 14px; font-weight: 600; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.find input:hover, .field input:hover, .field textarea:hover, .buy-row input:hover { border-color: rgba(255, 255, 255, 0.26); }
.find input:focus, .field input:focus, .field textarea:focus, .buy-row input:focus { border-color: rgba(16, 199, 190, 0.7); box-shadow: 0 0 0 4px rgba(16, 199, 190, 0.14); }
.find input::placeholder, .field input::placeholder, .field textarea::placeholder, .buy-row input::placeholder { color: var(--muted); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field small { color: var(--label); font-size: 12px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--teal); 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: 140px; }
.buy-row b { font-size: 13px; color: var(--label); }
.buy-row .chips { margin: 0 0 0 auto; }
.cost { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--rc); border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; }
.cost div { padding: 12px 14px; display: grid; gap: 2px; border-left: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.2); }
.cost div:first-child { border-left: 0; }
.cost span { color: var(--label); font-size: 12px; }
.cost b { font-weight: 900; font-size: 15px; }
.submit-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.submit-row .btn { height: 52px; }
.row-actions { display: flex; gap: 8px; 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(--up); }
.field-msg.err { color: var(--down); }
.gamecard { display: flex; gap: 18px; margin-top: 16px; padding: 14px; border-radius: var(--rc); border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.22); }
.gamecard img { width: 120px; height: 120px; border-radius: 12px; background: var(--fill); }
.gamecard h3 { margin: 2px 0 4px; font-size: 24px; }
.gamecard .game-icons { margin-top: 10px; max-width: 420px; }
.upload { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 12px; border-radius: var(--rc); border: 1px dashed rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.2); }
.upload img { grid-row: span 2; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.upload input { font-size: 13px; color: var(--text-2); }
.upload input::file-selector-button { font: inherit; font-weight: 700; margin-right: 12px; height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; color: #fff; background: var(--fill); cursor: pointer; }
.upload small { color: var(--label); font-size: 12px; }

/* Coin page */
.coin-head { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--gl); backdrop-filter: blur(24px); }
.coin-art { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; background: var(--fill); }
.coin-title h1 { margin: 10px 0 4px; font-size: 40px; line-height: 1.05; }
.coin-title h1 .nm { font-weight: 700; font-size: 0.6em; }
.coin-title .creator { margin-bottom: 12px; }
.coin-cta { display: grid; gap: 8px; }
.coin-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0; border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); overflow: hidden; }
.coin-stats div { padding: 16px 20px; display: grid; gap: 4px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.coin-stats div:first-child { border-left: 0; }
.coin-stats span { color: var(--label); font-size: 12px; }
.coin-stats b { font-size: 22px; font-weight: 900; }
.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: 16px; }
.coin-side p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 500; }
.game-mini { display: flex; gap: 12px; align-items: center; }
.game-mini img { width: 56px; height: 56px; border-radius: 12px; background: var(--fill); }
.game-mini b { display: block; font-weight: 700; }
.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 { border-radius: var(--r); background: var(--glass-soft); border: 1px solid var(--gl-soft); overflow: hidden; }
.trade-row { display: grid; grid-template-columns: 80px 1fr 100px 100px 80px; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; transition: background-color 120ms var(--ease); }
a.trade-row:hover { background: rgba(255, 255, 255, 0.05); }
.trade-row.head { border-top: 0; color: var(--muted); font-size: 12px; }
.trade-row .buy { color: var(--up); font-weight: 900; text-transform: capitalize; }
.trade-row .sell { color: var(--down); font-weight: 900; text-transform: capitalize; }
.trade-row .mono { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.trades .empty-row { border: 0; }
.tn .sym { color: #fff; }
.tn .nm { color: var(--label); }
.tk { text-transform: none; }

/* Admin */
.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: 20px; }
.admin-info code { display: block; font: 500 13px/1.4 var(--mono); color: var(--text-2); word-break: break-all; margin-bottom: 8px; }
.chips-s { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-s { padding: 2px 9px; border-radius: 999px; background: var(--fill); color: var(--label); font-size: 12px; font-weight: 700; }
.chip-s.ok { color: var(--up); }
.chip-s.warn { color: var(--c3); }
.chip-s.bad { color: var(--down); }
.admin-act { display: grid; gap: 8px; }

/* Footer (glass box, playin) ------------------------------------------------------------------ */
.foot { margin-top: 80px; padding: 0 24px 32px; }
.foot-inner { max-width: 1152px; margin: 0 auto; padding: 32px 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--gl); display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, auto); gap: 32px 64px; }
.foot-brand .brand { padding: 0; }
.foot-brand p { margin: 14px 0 18px; max-width: 34ch; font-size: 14px; font-weight: 500; color: var(--label); }
.foot-col { display: grid; align-content: start; gap: 14px; }
.foot-col h4 { font-size: 16px; font-weight: 700; color: #fff; }
.foot-col a { font-size: 15px; color: var(--text-2); justify-self: start; transition: color 160ms var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: var(--label); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); opacity: 0; padding: 12px 16px; border-radius: var(--rc); background: rgba(21, 25, 39, 0.9); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(16px); font-size: 14px; font-weight: 700; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); transition: opacity 180ms var(--ease), transform 180ms var(--ease); pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .rise, .content, .live-dot::after, .skel::after { animation: none !important; }
  .tile, .c4, .tile-thumb img, .c4 > img.art { transition: none; }
}
@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1040px) {
  .side { transform: translateX(-100%); }
  body.nav-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease); }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .mtop { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 16px; background: rgba(16, 19, 28, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .mtop .brand { padding: 0; }
  .mtop .brand svg { width: 30px; height: 30px; }
  .main { margin-left: 0; }
  .game, .coin-grid, .split { grid-template-columns: 1fr; }
  .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-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .content { padding: 24px 16px 0; }
  .hero { padding: 24px 0 48px; }
  .hero-logo svg { width: 40px; height: 40px; } .hero-logo b { font-size: 22px; }
  .hero h1 { font-size: 40px; gap: 0 10px; }
  .hero p { font-size: 17px; line-height: 26px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .cards4 { grid-template-columns: 1fr; }
  .c4 { min-height: 300px; }
  .c4 h3 { font-size: 40px; margin-top: 28px; }
  .page-title { font-size: 36px; }
  .row { grid-auto-columns: 150px; } .row.wide { grid-auto-columns: 240px; }
  .row-nav { display: none; }
  .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; }
  .cost { grid-template-columns: 1fr; } .cost div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); } .cost div:first-child { border-top: 0; }
  .modes { grid-template-columns: 1fr; }
  .trade-row { grid-template-columns: 56px 1fr 70px 50px; } .trade-row span:nth-child(4) { display: none; }
  .admin-coin { grid-template-columns: 72px 1fr; } .admin-act { grid-column: 1 / -1; }
  .foot { padding: 0 16px 24px; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.side .brand b { font-size: 15px; white-space: nowrap; }
