/* Layout: sticky command bar on top, full-width sections below. Night-arcade palette. */
:root {
  --bg: #090b14;
  --panel: #10142400;
  --panel-solid: #111528;
  --line: #22284a;
  --fg: #eef0ff;
  --muted: #8a90b8;
  --accent: #6c7bff;
  --accent-2: #3be3ff;
  --up: #3ddc97;
  --down: #ff5c8a;
  --warn: #ffc24b;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--body); }
body { min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, #3b2bff22, transparent 60%),
    radial-gradient(700px 500px at -10% 30%, #00d0ff14, transparent 60%),
    var(--bg); }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, 3vw); backdrop-filter: blur(14px); background: #090b14cc; border-bottom: 1px solid var(--line); }
.brand { font: 800 15px var(--display); letter-spacing: .04em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand b { color: var(--accent-2); font-weight: 800; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--up); box-shadow: 0 0 12px var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
nav { display: flex; gap: 4px; }
nav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; transition: .2s; }
nav a:hover { color: var(--fg); background: #ffffff0a; }
nav a.on { color: var(--fg); background: #6c7bff26; box-shadow: inset 0 0 0 1px #6c7bff55; }
.searchbox { position: relative; flex: 1; max-width: 560px; margin-left: auto; display: flex; align-items: center;
  background: #0e1122; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; transition: .25s; }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px #6c7bff22, 0 10px 40px #6c7bff22; }
.sicon { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.searchbox input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); padding: 11px 10px; font: 500 15px var(--body); outline: none; }
.searchbox input::-webkit-search-cancel-button { display: none; }
kbd { font: 600 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: 70vh; overflow: auto;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 30px 80px #000a;
  animation: drop .18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.res { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; cursor: pointer; }
.res.sel, .res:hover { background: #6c7bff1f; }
.res img { width: 42px; height: 42px; border-radius: 10px; background: #1a1f38; }
.res .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .s { color: var(--muted); font-size: 12px; }
.res .p { margin-left: auto; font: 700 13px var(--mono); color: var(--up); white-space: nowrap; }
.res-msg { padding: 14px; color: var(--muted); }

main { position: relative; z-index: 1; padding: 28px max(16px, 3vw) 40px; max-width: 1400px; margin: 0 auto; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 20px 16px 40px; position: relative; z-index: 1; }

/* hero */
.hero { padding: 26px 0 30px; }
.hero h1 { font: 800 clamp(30px, 5vw, 60px)/1.02 var(--display); margin: 0 0 12px; letter-spacing: -.02em; text-wrap: balance; }
.hero h1 span { background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, #c86bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 60ch; margin: 0; }
.pulse-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.chip-stat { background: #ffffff08; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.chip-stat b { display: block; font: 700 20px var(--mono); }
.chip-stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* sections */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 34px 0 14px; flex-wrap: wrap; }
.sec-head h2 { font: 700 20px var(--display); margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .2s; }
.tab:hover { color: var(--fg); }
.tab.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* game grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gcard { position: relative; background: linear-gradient(180deg, #151a33, #0f1326); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px; transition: transform .25s cubic-bezier(.2,.8,.2,1.2), border-color .2s, box-shadow .25s; animation: rise .45s both; }
.gcard:hover { transform: translateY(-5px) scale(1.015); border-color: #6c7bff88; box-shadow: 0 18px 40px #3b2bff33; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.gcard img { width: 100%; aspect-ratio: 1; border-radius: 12px; display: block; background: #1a1f38; object-fit: cover; }
.gcard .rank { position: absolute; top: 16px; left: 16px; font: 800 13px var(--display); background: #090b14d9; border-radius: 8px; padding: 3px 8px; }
.gcard h3 { font: 600 14px var(--body); margin: 10px 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .meta { display: flex; justify-content: space-between; gap: 8px; margin: 0 2px; font-size: 12px; color: var(--muted); }
.gcard .live { font: 700 13px var(--mono); color: var(--up); display: flex; align-items: center; gap: 6px; }
.gcard .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }

/* skeleton */
.sk { background: linear-gradient(90deg, #141936 0%, #1d2346 50%, #141936 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* game page */
.banner { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 260px; display: flex; align-items: end; }
.banner .bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) saturate(1.3) brightness(.45); transform: scale(1.08); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #090b14 0%, #090b1488 50%, transparent); }
.banner .inner { position: relative; z-index: 1; display: flex; gap: 22px; align-items: end; padding: 26px; flex-wrap: wrap; }
.banner .icon { width: 132px; height: 132px; border-radius: 26px; box-shadow: 0 20px 50px #000a; border: 2px solid #ffffff22; animation: pop .5s cubic-bezier(.2,.8,.2,1.4) both; }
@keyframes pop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.banner h1 { font: 800 clamp(24px, 4vw, 44px)/1.05 var(--display); margin: 0 0 8px; text-wrap: balance; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: #ffffff12; color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 16px; font-weight: 700; background: var(--fg); color: var(--bg); border: 0; cursor: pointer; transition: .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px #ffffff30; }
.btn.ghost { background: #ffffff10; color: var(--fg); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.tile { background: linear-gradient(180deg, #13183000, #13183000), #10142a; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; position: relative; overflow: hidden; animation: rise .5s both; }
.tile .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
.tile .v { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--mono); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .h { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tile.hero-tile { grid-column: span 2; background: radial-gradient(400px 200px at 100% 0%, #3ddc9722, transparent), #10142a; }
.tile.hero-tile .v { font-size: clamp(34px, 5vw, 56px); color: var(--up); text-shadow: 0 0 30px #3ddc9755; }
.tile .est { position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--warn); border: 1px solid #ffc24b55; border-radius: 6px; padding: 1px 6px; }
.flash-up { animation: fup .9s; } .flash-down { animation: fdown .9s; }
@keyframes fup { 30% { color: #fff; text-shadow: 0 0 24px var(--up); } }
@keyframes fdown { 30% { color: var(--down); } }
.ring { display: flex; align-items: center; gap: 14px; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: #ffffff12; }
.ring .val { stroke: var(--up); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }

.panel { background: #10142a; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 18px; }
.panel h2 { font: 700 16px var(--display); margin: 0 0 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel h2 small { font: 500 12px var(--body); color: var(--muted); }
.chart { width: 100%; height: 220px; display: block; }
.chart .area { fill: url(#g1); }
.chart .ln { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart text { fill: var(--muted); font: 11px var(--mono); }
.chart .gl { stroke: #ffffff0d; }
.tip { position: absolute; pointer-events: none; background: #000d; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font: 600 12px var(--mono); white-space: nowrap; transform: translate(-50%, -120%); }
.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.shots img { height: 170px; border-radius: 12px; scroll-snap-align: start; border: 1px solid var(--line); }
.desc { color: #c9cdf0; white-space: pre-wrap; max-height: 9em; overflow: hidden; position: relative; transition: max-height .4s; }
.desc.open { max-height: 200em; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.two > * { min-width: 0; }

/* word labels */
.lbl { font: 700 10px var(--mono); letter-spacing: .06em; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.L-OPEN { background: #3ddc9722; color: var(--up); }
.L-HOT { background: #ff8a3d26; color: #ffa06b; }
.L-TURNING { background: #3be3ff22; color: var(--accent-2); }
.L-PEAKING { background: #ffc24b22; color: var(--warn); }
.L-COOLING { background: #8a90b822; color: #b4b9dd; }
.L-SEASONAL { background: #c86bff22; color: #d79bff; }
.L-TRAP, .L-FADING { background: #ff5c8a1f; color: var(--down); }
.L-CROWDED, .L-STEADY, .L-NO { background: #ffffff10; color: var(--muted); }
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.word { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: #10142a; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; animation: rise .4s both; }
.word b { font: 700 16px var(--display); }
.word svg { grid-column: 1 / -1; width: 100%; height: 34px; }
.word .nums { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 600 12px var(--mono); color: var(--muted); }
.pos { color: var(--up); } .neg { color: var(--down); }
.note { color: var(--muted); font-size: 13px; }
.err { padding: 18px; border: 1px solid #ff5c8a55; background: #ff5c8a12; border-radius: var(--r); color: #ffc3d3; }

/* UGC */
.ugc-types { margin: 0 0 6px; }
.ugc-card img { background: #e9ebf7; }
.ugc-ltd { position: absolute; top: 16px; right: 16px; font: 800 10px var(--mono); color: #1a1206; background: linear-gradient(90deg, #ffd36b, #ff9a5a); border-radius: 6px; padding: 2px 6px; }
.ugc-price { font: 700 13px var(--mono); color: var(--up); }
.grow.srow { grid-template-columns: 34px minmax(0, 1fr) 80px 60px; }
.sbar { display: block; height: 6px; margin-top: 5px; border-radius: 99px; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: grow 1s both; }

.grow.ltd-row { grid-template-columns: 34px 40px minmax(0, 1fr) 90px 96px 64px; }
.ltd-spark svg { width: 90px; height: 28px; display: block; }
@media (max-width: 640px) { .grow.ltd-row { grid-template-columns: 26px 36px minmax(0, 1fr) 80px; } .ltd-spark { display: none; } .grow.ltd-row .gr-ch { grid-column: 3 / -1; text-align: left; } }

/* Opportunities */
.opps { display: grid; gap: 10px; }
.opp { display: grid; grid-template-columns: 40px minmax(0, 1fr) 64px; gap: 14px; align-items: center; background: #10142a;
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; animation: rise .45s both; transition: border-color .2s, transform .2s; }
.opp:hover { border-color: #6c7bff77; transform: translateY(-2px); }
.opp-rank { font: 800 15px var(--display); color: var(--muted); text-align: center; }
.opp-main { display: grid; gap: 7px; min-width: 0; }
.opp-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.opp-top b { font: 700 18px var(--display); }
.opp-meta { color: var(--muted); font: 600 12px var(--mono); }
.opp-bar { height: 8px; border-radius: 99px; background: #ffffff0d; overflow: hidden; }
.opp-fill { height: 100%; width: var(--w); border-radius: 99px; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.opp-games { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.opp-games img { width: 34px; height: 34px; border-radius: 8px; background: #1a1f38; border: 1px solid var(--line); transition: transform .15s; }
.opp-games a:hover img { transform: scale(1.12); }
.opp-games .tab { margin-left: auto; }
.opp-score { font: 800 30px var(--display); text-align: right; }
@media (max-width: 560px) { .opp { grid-template-columns: 1fr 52px; } .opp-rank { display: none; } .opp-score { font-size: 24px; } }

/* Idea Lab chat */
.chat { display: grid; gap: 12px; }
.chat-log { display: grid; gap: 14px; align-content: start; min-height: 320px; max-height: 64vh; overflow-y: auto; padding: 16px;
  background: #0d1124; border: 1px solid var(--line); border-radius: var(--r); }
.msg { max-width: min(760px, 92%); display: grid; gap: 10px; animation: rise .35s both; }
.msg p { margin: 0; }
.msg.me { justify-self: end; background: linear-gradient(90deg, var(--accent), #8a5bff); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; }
.msg.bot { justify-self: start; background: #151a33; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; }
.idea { background: #10142a; border: 1px solid #2a3160; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; animation: rise .45s both; }
.idea.doc-tip { border-color: #3ddc9744; }
.idea-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.idea-top b { font: 700 16px var(--display); }
.idea dl { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.idea dt { color: var(--muted); font-weight: 600; }
.idea dd { margin: 0; }
.idea ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; background: #0e1122; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); padding: 12px 14px; font: 500 15px var(--body); }
.chat-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px #6c7bff22; }
.chat-chips { margin: 0; }
.lab-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 12px; padding: 12px 14px; background: #10142a; border: 1px solid var(--line); border-radius: var(--r); }
.lab-filter { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lab-filter > span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-right: 2px; }
.lab-toggle { display: flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.lab-toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.lab-bar > .tab:last-child { margin-left: auto; }
.msg.typing p::after { content: ""; display: inline-block; width: 1.2em; animation: dots 1.2s steps(4) infinite; text-align: left; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
article.idea { gap: 10px; padding: 16px; background: radial-gradient(360px 160px at 100% 0%, #6c7bff18, transparent), #10142a; }
.idea-top b { font-size: 19px; line-height: 1.2; }
.idea-score { font: 800 14px var(--mono); color: var(--up); background: #3ddc971a; border: 1px solid #3ddc9744; border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.idea-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 600 11px var(--body); color: #c9cdf0; background: #ffffff0d; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.idea-tag { font-size: 15px; color: #e2e5ff; font-weight: 500; }
.idea-twist { font-size: 14px; background: #ffb04a12; border: 1px solid #ffb04a33; border-radius: 10px; padding: 8px 10px; }
.idea-twist b { color: #ffc27a; }
.idea-loop { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.idea-loop li::marker { color: var(--accent-2); font-weight: 700; }
.idea details { border-top: 1px solid var(--line); padding-top: 8px; }
.idea summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #dfe2ff; list-style: none; }
.idea summary::-webkit-details-marker { display: none; }
.idea summary::after { content: "＋"; float: right; color: var(--muted); }
.idea details[open] summary::after { content: "－"; }
.idea details > div, .idea details > ul, .idea details > ol { margin-top: 8px; font-size: 14px; display: grid; gap: 6px; }
.sells { list-style: none; padding: 0; }
.sells li { display: flex; justify-content: space-between; gap: 10px; background: #ffffff08; border-radius: 8px; padding: 6px 10px; }
.sells b { font-family: var(--mono); color: var(--up); white-space: nowrap; }
.idea-comp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.idea-comp a { display: flex; gap: 6px; align-items: center; font-size: 12px; background: #ffffff08; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 3px; }
.idea-comp img { width: 24px; height: 24px; border-radius: 50%; }
.idea-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.scorecard { display: grid; gap: 6px; }
.sc-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; background: #10142a; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.sc-row .note { grid-column: 2 / -1; font-size: 12px; }
.sc-name { font-weight: 600; font-size: 14px; }
.sc-row b { font-family: var(--mono); }
.sc-dot { width: 10px; height: 10px; border-radius: 50%; }
.sc-row.good .sc-dot { background: var(--up); box-shadow: 0 0 8px var(--up); }
.sc-row.ok .sc-dot { background: var(--warn); }
.sc-row.bad .sc-dot { background: var(--down); box-shadow: 0 0 8px var(--down); }
@media (max-width: 560px) { .idea dl { grid-template-columns: 1fr; } .idea dt { margin-top: 4px; } }

/* Pro coming soon */
.pro-btn { border: 0; cursor: pointer; border-radius: 999px; padding: 7px 14px; font: 700 13px var(--body); white-space: nowrap;
  color: #1a1206; background: linear-gradient(90deg, #ffd36b, #ff9a5a); box-shadow: 0 0 18px #ffb04a44; transition: transform .2s, box-shadow .2s; }
.pro-btn span { font-weight: 600; opacity: .7; }
.pro-btn:hover { transform: translateY(-1px); box-shadow: 0 0 26px #ffb04a77; }
.modal-back { position: fixed; inset: 0; z-index: 50; background: #04050bcc; backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: drop .2s ease-out; }
.modal-back[hidden], [hidden] { display: none !important; }
.modal { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; background: radial-gradient(400px 200px at 100% 0%, #ffb04a1c, transparent), var(--panel-solid);
  border: 1px solid #ffb04a55; border-radius: 20px; padding: 26px; box-shadow: 0 30px 90px #000c; animation: pop .35s cubic-bezier(.2,.8,.2,1.3) both; }
.modal h2 { font: 800 24px/1.15 var(--display); margin: 8px 0 8px; }
.modal-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
.pro-badge { display: inline-block; font: 800 11px var(--mono); letter-spacing: .12em; color: #1a1206; background: linear-gradient(90deg, #ffd36b, #ff9a5a); border-radius: 6px; padding: 3px 8px; }
.pro-list { display: grid; gap: 8px; margin: 16px 0; }
.pro-list label { display: flex; gap: 10px; align-items: center; background: #ffffff08; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 14px; }
.pro-list input { accent-color: #ffb04a; width: 16px; height: 16px; }
.pro-go { width: 100%; justify-content: center; background: linear-gradient(90deg, #ffd36b, #ff9a5a); color: #1a1206; }
.pro-go:disabled { opacity: .6; cursor: default; transform: none; }

/* trend rows */
.rows { display: grid; gap: 6px; }
.grow { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) 80px 76px; gap: 12px; align-items: center;
  background: #10142a; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; transition: transform .18s, border-color .18s; animation: rise .4s both; }
a.grow:hover { transform: translateX(4px); border-color: #6c7bff88; }
.grow img { width: 40px; height: 40px; border-radius: 9px; background: #1a1f38; }
.gr-rank { font: 800 13px var(--display); color: var(--muted); text-align: center; }
.gr-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-name small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.gr-p { font: 700 14px var(--mono); color: var(--up); text-align: right; }
.gr-ch { font: 700 13px var(--mono); text-align: right; }
@media (max-width: 560px) { .grow { grid-template-columns: 26px 36px minmax(0, 1fr) 64px; } .grow .gr-ch { grid-column: 3 / -1; text-align: left; } }

/* predictions */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptiles.money { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.ptiles.money .ptile { background: radial-gradient(320px 140px at 100% 0%, #3ddc9724, transparent), #10142a; }
.ptiles.money .pv { color: #b8ffd9; font-size: 32px; }
@media (max-width: 900px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ptile { text-align: left; cursor: pointer; background: radial-gradient(260px 120px at 100% 0%, #ffc24b12, transparent), #10142a;
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; transition: transform .2s, border-color .2s; animation: rise .5s both; }
.ptile:hover { transform: translateY(-3px); border-color: #ffc24b66; }
.ptile.open { border-color: var(--warn); }
.pk { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pv { font: 700 26px/1.25 var(--mono); margin-top: 6px; color: #ffe2a6; font-variant-numeric: tabular-nums; }
.pr { color: var(--muted); font: 500 12px var(--mono); }
.how { margin-top: 8px; font-size: 12px; color: #c9cdf0; line-height: 1.45; border-top: 1px dashed var(--line); padding-top: 8px; }
.conf { display: inline-flex; gap: 3px; }
.conf i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff1c; }
.conf i.on { background: var(--warn); box-shadow: 0 0 6px #ffc24b88; }
.funnel { display: grid; gap: 9px; }
.frow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 64px; gap: 10px; align-items: center; }
.fl { display: flex; gap: 8px; align-items: center; font-size: 13px; min-width: 0; }
.fl span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fk { font: 700 9px var(--mono); letter-spacing: .08em; padding: 1px 5px; border-radius: 5px; }
.frow.real .fk { background: #3ddc9722; color: var(--up); }
.frow.est .fk { background: #ffc24b22; color: var(--warn); }
.fbar { height: 12px; background: #ffffff0a; border-radius: 99px; overflow: hidden; }
.ffill { height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
.frow.est .ffill { background: linear-gradient(90deg, #ff9a3d, var(--warn)); }
.frow.real .ffill { background: linear-gradient(90deg, #1fae74, var(--up)); }
@keyframes grow { from { width: 0; } }
.fv { font: 700 13px var(--mono); text-align: right; }
.qv { font: 800 54px/1 var(--display); background: linear-gradient(90deg, var(--warn), #ff7a59); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qv span { font-size: 18px; }
.gauge { height: 10px; background: #ffffff0d; border-radius: 99px; margin: 12px 0; overflow: hidden; }
.gfill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--down), var(--warn) 50%, var(--up)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.sig { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.sig b { color: var(--fg); font-family: var(--mono); }
.predict { margin-top: 10px; }

@media (max-width: 820px) {
  .frow { grid-template-columns: 1fr 56px; }
  .fbar { grid-column: 1 / -1; grid-row: 2; }
  .top { flex-wrap: wrap; gap: 10px; }
  .searchbox { order: 3; max-width: none; flex-basis: 100%; }
  .pro-btn span { display: none; }
  kbd { display: none; }
  .two { grid-template-columns: 1fr; }
  .tile.hero-tile { grid-column: span 1; }
  .banner .icon { width: 92px; height: 92px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .chart .ln { stroke-dashoffset: 0; } }

/* sound toggle */
.snd-btn { border: 1px solid var(--line); background: #ffffff08; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; line-height: 1; transition: transform .15s, background .2s; }
.snd-btn:hover { background: #ffffff14; transform: scale(1.08); }
.tab:active, .btn:active, .gcard:active, .pro-btn:active { transform: scale(.96); }

/* Players */
.player-form { max-width: 560px; margin-top: 14px; }
.player-banner { min-height: 220px; }
.player-banner .icon { border-radius: 50%; background: #1a2040; }
.player-about { white-space: pre-line; max-height: 4.6em; overflow: hidden; margin: 8px 0 0; max-width: 640px; }
.verified { display: inline-block; width: .62em; height: .62em; margin-left: .22em; vertical-align: .02em; flex: none; }
.gr-name .verified { width: 15px; height: 15px; margin-left: 5px; vertical-align: -2px; }

/* Pro locks */
.pro-lock { display: inline-flex; align-items: center; gap: 2px; font: 700 10.5px var(--mono); letter-spacing: .08em; color: #ffd58a; background: #ffb04a1f; border: 1px solid #ffb04a55; border-radius: 6px; padding: 2px 7px; vertical-align: middle; white-space: nowrap; }
.pro-lock small { font-weight: 500; letter-spacing: 0; opacity: .8; }
.pro-lock.on { color: #1a1206; background: linear-gradient(90deg, #ffd36b, #ff9a5a); border-color: transparent; }
.nav-lock { font-size: .85em; }
.lock-card { position: relative; border: 1px solid #ffb04a44; border-radius: var(--r); overflow: hidden; margin: 12px 0; min-height: 210px; background: #10142a; }
.lock-card.small { min-height: 118px; }
.lock-fake { padding: 16px; display: grid; gap: 12px; filter: blur(5px); opacity: .55; }
.lock-row { display: grid; grid-template-columns: 36px 1fr 60px; gap: 12px; align-items: center; }
.lock-row i { width: 36px; height: 36px; border-radius: 9px; background: #2a3160; }
.lock-row b { height: 12px; border-radius: 6px; background: #3a4280; }
.lock-row em { height: 12px; border-radius: 6px; background: #3ddc9766; }
.lock-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 14px; background: radial-gradient(closest-side, #090b14dd, #090b1466); }
.lock-over b { font: 800 17px var(--display); }
.lock-over span { color: var(--muted); font-size: 13px; max-width: 460px; }
.lock-card.small .lock-over { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; }
.lock-card.small .lock-over span { display: none; }
.lock-ico { font-size: 26px; filter: drop-shadow(0 0 14px #ffb04a88); }
.lock-card.small .lock-ico { font-size: 20px; }
.lock-over .pro-go { margin-top: 6px; }
.lock-card.small .lock-over .pro-go { margin-top: 0; }
.lock-tile { text-align: left; cursor: pointer; font: inherit; color: inherit; border-color: #ffb04a44; }
.lock-tile .v { color: #ffd58a; }
.pro-feats { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 7px; }
.pro-feats li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.pro-tick { color: var(--up); font-weight: 800; }
.pro-buy { display: block; text-align: center; text-decoration: none; }
.pro-buy[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.pro-key { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pro-key label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.lock-over .pro-go { width: auto; }
.pro-newkey { display: block; margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #0e1122; border: 1px solid #ffb04a66; font: 700 15px var(--mono); color: #ffd58a; user-select: all; word-break: break-all; }

/* Feedback */
.fb-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; border: 1px solid var(--line); background: #141a36ee; color: var(--fg); border-radius: 999px; padding: 10px 16px; font: 700 13px var(--body); cursor: pointer; box-shadow: 0 10px 30px #0008; backdrop-filter: blur(6px); }
.fb-fab:hover { transform: translateY(-2px); border-color: var(--accent); }
.fb-modal textarea, .fb-modal input[type=text] { width: 100%; box-sizing: border-box; margin: 10px 0 0; background: #0e1122; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); padding: 12px 14px; font: 500 14px var(--body); resize: vertical; }
.fb-modal textarea:focus, .fb-modal input:focus { outline: none; border-color: var(--accent); }
.fb-modal .pro-go { margin-top: 12px; }
.fb-item { background: #10142a; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; }
.fb-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fb-top .tab { margin-left: auto; }
.fb-text { white-space: pre-wrap; margin: 8px 0 4px; overflow-wrap: anywhere; }

/* Demo mode */
.banner-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-btn { background: #1b2148; color: var(--fg); border: 1px solid #3a4280; }
.demo-btn.on { background: var(--accent); color: #fff; border-color: transparent; }
.demo { margin-top: 22px; }
.demo-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 16px; align-items: stretch; margin-bottom: 14px; }
@media (max-width: 720px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-card { position: relative; background: radial-gradient(300px 160px at 100% 0%, #3ddc9722, transparent), #0d1124; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 12px; overflow: hidden; box-shadow: 0 20px 50px #0007; }
.demo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.demo-head img { width: 34px; height: 34px; border-radius: 9px; }
.demo-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.demo-tag { font: 700 10px var(--mono); letter-spacing: .1em; color: #ffd58a; border: 1px solid #ffb04a55; border-radius: 6px; padding: 2px 6px; }
.demo-live { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.demo-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 1.6s infinite; }
.demo-num { font: 800 clamp(40px, 6vw, 64px)/1.05 var(--mono); color: #fff; margin: 6px 0 2px; }
.demo-chg { font: 700 13px var(--mono); }
.demo-spark svg { width: 100%; height: 64px; display: block; margin-top: 8px; }
.demo-controls { background: #10142a; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.demo-label { font-weight: 700; font-size: 13px; color: var(--muted); }
.demo-controls input[type=range] { width: 100%; accent-color: var(--up); }
.demo-row { display: flex; gap: 10px; align-items: center; }
.demo-row input[type=number] { width: 150px; background: #0e1122; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); padding: 9px 12px; font: 700 15px var(--mono); }
/* odometer: each digit is a 0-9 strip that slides */
.odo { display: inline-flex; align-items: flex-start; }
.odo-d { display: inline-block; height: 1.05em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2,.85,.25,1.08); will-change: transform; }
.odo-strip span, .odo-sep { display: block; height: 1.05em; line-height: 1.05em; }
@media (prefers-reduced-motion: reduce) { .odo-strip { transition: none; } }
.note.busy { margin: 12px 0; padding: 10px 14px; border: 1px solid #ffb04a55; border-radius: 12px; color: #ffd58a; background: #ffb04a12; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pro-cancel { display: block; text-align: center; text-decoration: none; margin: 10px 0 4px; background: #1b2148; color: var(--fg); border: 1px solid #3a4280; }

/* share + overlay */
.share-modal { width: min(460px, 100%); }
.share-img { display: block; width: 100%; border-radius: 14px; margin: 10px 0; border: 1px solid var(--line); }
.share-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share-btns .pro-go { flex: 1; text-decoration: none; }
.ov-url { flex: 1; min-width: 0; background: #0e1122; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); padding: 10px 12px; font: 600 13px var(--mono); }
.ov-steps { margin: 14px 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.ov-steps b { color: var(--fg); }
.seo { max-width: 760px; margin: 30px auto; color: var(--muted); }
.seo h1 { color: var(--fg); font: 800 30px var(--display); }

/* our own icons (sprite in index.html) */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab .ic, .btn .ic { margin-right: 1px; }
.ic-lock { width: .95em; height: .95em; color: #ffd36b; }
.nav-lock .ic { width: .9em; height: .9em; margin-left: 3px; color: #ffd36b; }
.lock-ico .ic { width: 30px; height: 30px; color: #ffd36b; }
.lock-card.small .lock-ico .ic { width: 22px; height: 22px; }
.lock-tile .v .ic { width: 34px; height: 34px; }
.pro-lock .ic { width: 1em; height: 1em; margin-right: 3px; }
.pro-tick .ic { width: 1em; height: 1em; stroke-width: 2.6; }
.snd-btn .ic { width: 18px; height: 18px; }
.pro-badge .ic, .pro-btn .ic { width: 1em; height: 1em; vertical-align: -0.12em; }
header nav a { white-space: nowrap; display: inline-flex; align-items: center; }

/* cool icons: gradient duotone strokes with a glow on hover */
.ic { stroke: url(#ig); transition: transform .18s ease, filter .18s ease; }
.btn:hover .ic, .tab:hover .ic, a:hover > .ic, button:hover > .ic { transform: translateY(-1px) scale(1.12); filter: drop-shadow(0 0 6px #7af3ffaa); }
.tab.on .ic { filter: drop-shadow(0 0 5px #7af3ff88); }
/* on gold or white backgrounds keep the icon solid and dark so it stays readable */
.pro-btn .ic, .pro-badge .ic, .pro-lock.on .ic, .pro-go .ic { stroke: currentColor; }
.pro-btn .ic, .pro-badge .ic, .pro-lock.on .ic { --ic-solid: currentColor; }
.lock-ico .ic { filter: drop-shadow(0 0 10px #ffb04a99); }
.snd-btn:hover .ic { filter: drop-shadow(0 0 6px #7af3ffaa); }
/* light backgrounds (white buttons, selected tabs) get a deeper gradient */
.btn:not(.demo-btn):not(.pro-go) .ic, .tab.on .ic, .lab-filter .tab.on .ic { stroke: url(#igd); }

/* live total + Pulse */
.live-total { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin: 6px 0 26px; }
@media (max-width: 860px) { .live-total { grid-template-columns: 1fr; } }
.lt-main, .lt-pulse { background: #0d1124; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; position: relative; }
.lt-k { font: 700 15px var(--display); color: var(--fg); letter-spacing: .01em; }
.lt-num { font: 800 clamp(40px, 6vw, 60px)/1.05 var(--mono); color: #fff; margin: 6px 0 4px; }
.lt-chg { font: 700 15px var(--mono); }
.lt-chg.pos { color: var(--up); } .lt-chg.neg { color: var(--down); }
.lt-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.lt-chart { margin: 12px -4px 10px; }
.lt-svg { width: 100%; height: 170px; display: block; }
.lt-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 1.6s infinite; vertical-align: middle; }
.lt-ph { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 800 20px var(--display); }
.lt-feed { display: grid; gap: 4px; }
.pulse-row-item { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 12px; text-decoration: none; color: var(--fg); }
.pulse-row-item:hover { background: #ffffff0a; }
.pr-ic { position: relative; flex: none; }
.pr-ic img { width: 46px; height: 46px; border-radius: 12px; display: block; background: #1a2040; }
.pr-badge { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #0d1124; }
.pr-badge.milestone { background: #7c5cff; } .pr-badge.update { background: #2f7bff; }
.pr-badge .ic { width: 12px; height: 12px; stroke: #fff; }
.pr-txt { min-width: 0; font-size: 14px; line-height: 1.3; }
.pr-txt b.pos { color: var(--up); }
.pr-txt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* nav icons (desktop: small, next to the label) */
nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav-ic { width: 16px; height: 16px; }
/* phones: the menu becomes an app-style bottom tab bar */
@media (max-width: 820px) {
  .top { gap: 10px; padding: 10px 16px; backdrop-filter: none; -webkit-backdrop-filter: none; background: #090b14f5; }  /* a blur here would trap the fixed tab bar inside the header */
  .brand { flex: 1; }
  nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #0a0d1aee; backdrop-filter: blur(16px);
        border-top: 1px solid var(--line); }
  nav a { flex-direction: column; gap: 3px; padding: 6px 2px; border-radius: 12px; font-size: 10.5px; font-weight: 700; position: relative; justify-content: center; }
  nav a.on { background: #6c7bff26; box-shadow: none; }
  .nav-ic { width: 22px; height: 22px; }
  nav a .nav-lock { position: absolute; top: 2px; right: calc(50% - 20px); }
  nav a .nav-lock .ic { width: 11px; height: 11px; margin: 0; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .fb-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; padding: 9px 13px; }
  main#app { overflow-x: clip; }
}
/* phones: denser game pages and home stats */
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles .tile.hero-tile { grid-column: 1 / -1; }
  .tile { padding: 12px 14px; }
  .tile .v { font-size: 21px; line-height: 1.15; }
  .tile.hero-tile .v { font-size: 40px; }
  .tile .h { font-size: 11.5px; }
  .banner .inner { padding: 18px; gap: 14px; }
  .banner h1 { font-size: 26px; }
  .banner-btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .banner-btns .btn { justify-content: center; padding: 10px 8px; font-size: 13.5px; }
  .pulse-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .chip-stat { padding: 8px 10px; min-width: 0; }
  .chip-stat b { font-size: 16px; }
  .chip-stat span { font-size: 9.5px; letter-spacing: .04em; }
  .hero { padding: 18px 0 20px; }
  .ptiles { gap: 10px; }
  .modal { padding: 20px 18px; }
}
/* phones: long chip rows scroll sideways in one line instead of filling the screen */
@media (max-width: 560px) {
  .ugc-types, .sec-head .tabs, .lab-filter, .chat-chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .ugc-types::-webkit-scrollbar, .sec-head .tabs::-webkit-scrollbar, .lab-filter::-webkit-scrollbar, .chat-chips::-webkit-scrollbar { display: none; }
  .ugc-types .tab, .sec-head .tabs .tab, .lab-filter .tab, .chat-chips .tab { flex: none; white-space: nowrap; }
  .sec-head { flex-wrap: wrap; }
  .sec-head .tabs { width: calc(100% + 32px); }
}

/* community chat */
.cc-me { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cc-me span { display: flex; flex-direction: column; font-weight: 700; }
.cc-me small { color: var(--muted); font-weight: 500; }
.cc-wrap { background: #0d1124; border: 1px solid var(--line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cc-log { height: min(58vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
.cc-msg { display: flex; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.cc-msg:hover { background: #ffffff08; }
.cc-msg.mine .cc-head b { color: var(--accent-2); }
.cc-av { width: 36px; height: 36px; border-radius: 50%; flex: none; background: #1a2040; object-fit: cover; }
.av-blank { display: grid; place-items: center; color: var(--muted); }
.cc-body { min-width: 0; flex: 1; }
.cc-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.cc-user, .cc-time { color: var(--muted); font-size: 12px; }
.cc-owner { font: 800 10px var(--mono); color: #1a1206; background: linear-gradient(90deg, #ffd36b, #ff9a5a); border-radius: 5px; padding: 1px 5px; }
.cc-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.cc-actions { display: none; gap: 6px; margin-top: 4px; }
.cc-msg:hover .cc-actions, .cc-msg:focus-within .cc-actions { display: flex; }
@media (hover: none) { .cc-actions { display: flex; } .cc-actions .tab { padding: 3px 8px; font-size: 11px; } }
.cc-actions .tab { padding: 3px 9px; font-size: 11.5px; }
.cc-msg.reported { opacity: .5; }
.cc-signin { padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cc-roblox { display: inline-flex; width: auto; justify-self: start; text-decoration: none; }
.cc-rules ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.cc-age { display: flex; gap: 8px; align-items: center; }
.cc-status { min-height: 1em; margin: 0; }
.cc-empty { text-align: center; padding: 30px 0; }
.legal { display: grid; gap: 12px; max-width: 760px; padding-left: 20px; line-height: 1.55; }
footer.foot a { color: var(--muted); }
@media (max-width: 820px) { nav a { font-size: 9.5px; } .cc-log { height: calc(100vh - 380px); min-height: 300px; } }
@media (max-width: 820px) { body.on-chat .fb-fab { display: none; } }

/* team rooms */
.cc-team-tab .ic { width: 13px; height: 13px; vertical-align: -2px; }
.cc-team-add { border-style: dashed; }
.cc-teampanel { background: #10142a; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.cc-teampanel[hidden] { display: none; }
.cc-teampanel p { margin: 0; }
.cc-teamhead { border-bottom: 1px solid var(--line); padding: 4px 6px 12px; display: grid; gap: 8px; }
.cc-teamhead p { margin: 0; }
.cc-teamtitle { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cc-teamtitle .ic { width: 16px; height: 16px; }
.cc-code { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.cc-code code { font: 700 15px var(--mono); background: #1a2040; padding: 3px 8px; border-radius: 6px; letter-spacing: 1px; }
.cc-code .tab { padding: 3px 9px; font-size: 11.5px; }
.cc-members { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-member { display: inline-flex; align-items: center; gap: 6px; background: #ffffff0a; border-radius: 99px; padding: 3px 10px 3px 3px; font-size: 13px; }
.cc-av.sm { width: 24px; height: 24px; }
.cc-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 0 0 2px; }
.cc-x:hover { color: #ff6b81; }
/* owner panel */
.own-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.own-stat { background: #10142a; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; }
.own-stat small { color: var(--muted); font-size: 12px; }
.own-stat b { font: 800 24px var(--mono); }
.own-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.own-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.own-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.own-table td { padding: 8px 10px; border-bottom: 1px solid #ffffff0a; vertical-align: middle; }
.own-table tr:last-child td { border-bottom: 0; }
.own-table code { font: 600 12.5px var(--mono); }
.own-on { color: #4ade80; font-weight: 700; white-space: nowrap; }

/* free checks */
.ck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.ck-card { background: #10142a; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 12px; }
.ck-card h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; }
.ck-card h2 .ic { width: 22px; height: 22px; }
.ck-card > p { margin: 0; }
.ck-out { display: grid; gap: 12px; }
.ck-out:empty { display: none; }
.ck-result { display: flex; gap: 16px; align-items: center; }
.ck-result p { margin: 4px 0; }
.ck-dial { --p: 50; --c: #3be3ff; width: 108px; height: 108px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #ffffff12 0); }
.ck-dial-in { width: 86px; height: 86px; border-radius: 50%; background: #0d1124; display: grid; place-items: center; align-content: center; }
.ck-dial-in b { font: 800 30px var(--mono); line-height: 1; }
.ck-dial-in small { color: var(--muted); font-size: 11px; }
.ck-verdict { font: 800 22px Unbounded, sans-serif; letter-spacing: .5px; }
.ck-themes { display: grid; gap: 8px; }
.ck-theme { background: #0d1124; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.ck-theme .opp-games { align-items: center; }
.ck-game { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.ck-game img { width: 48px; height: 48px; border-radius: 12px; }
.ck-game span { display: flex; flex-direction: column; }
.ck-game small { color: var(--muted); }
.ck-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 4px 0 18px; }
.ck-promo { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: inherit;
  background: linear-gradient(120deg, #3be3ff14, #b06bff14); border: 1px solid #3be3ff33; transition: transform .15s, border-color .15s; }
.ck-promo:hover { transform: translateY(-2px); border-color: #3be3ff88; }
.ck-promo .ic { width: 28px; height: 28px; flex: none; }
.ck-promo span { display: flex; flex-direction: column; }
.ck-promo small { color: var(--muted); }
@media (max-width: 520px) { .ck-result { flex-direction: column; align-items: flex-start; } .ck-grid { grid-template-columns: 1fr; } }

/* featured creators */
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cr-card { background: #10142a; border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px; display: grid; justify-items: center; gap: 8px; text-align: center; animation: rise .4s both; }
.cr-av { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #1a2040; box-shadow: 0 0 0 3px #3be3ff44; }
.cr-name { font: 800 18px Unbounded, sans-serif; }
.cr-blurb { margin: 0; color: var(--muted); font-size: 14px; }
.cr-socials { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cr-soc { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; text-decoration: none; color: #fff; background: #ffffff14; }
.cr-youtube { background: #ff0033; } .cr-tiktok { background: #111; box-shadow: inset 0 0 0 1px #25f4ee88; } .cr-x { background: #000; box-shadow: inset 0 0 0 1px #ffffff44; }
.cr-twitch { background: #9146ff; } .cr-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .cr-kick { background: #53fc18; color: #000; }
.cr-discord { background: #5865f2; } .cr-roblox { background: #e2231a; }
.cr-video { margin-top: 4px; display: inline-flex; width: auto; text-decoration: none; }
.cr-wait { grid-column: 1 / -1; text-align: center; padding: 50px 20px; border: 1px dashed #3be3ff44; border-radius: 24px; background: #0d1124; display: grid; justify-items: center; gap: 10px; }
.cr-wait h2 { margin: 0; font-family: Unbounded, sans-serif; }
.cr-wait-dots { display: flex; gap: 8px; }
.cr-wait-dots span { width: 12px; height: 12px; border-radius: 50%; background: #3be3ff; animation: crDot 1.2s infinite ease-in-out; }
.cr-wait-dots span:nth-child(2) { animation-delay: .2s; background: #b06bff; } .cr-wait-dots span:nth-child(3) { animation-delay: .4s; background: #3ddc97; }
@keyframes crDot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.cr-join { display: flex; gap: 14px; align-items: center; text-align: left; background: #10142a; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-top: 16px; max-width: 640px; }
.cr-join > .ic { width: 28px; height: 28px; flex: none; }
.cr-join p { margin: 4px 0 0; }
.cr-join .btn { width: auto; flex: none; text-decoration: none; }
.cr-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0; }
.cr-admin-row { display: flex; gap: 10px; align-items: center; }
.cr-admin-row .tab { margin-left: auto; }
@media (max-width: 560px) { .cr-join { flex-direction: column; text-align: center; } }

/* creator referral links */
.ref-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1180px; margin: 12px auto 0; padding: 10px 14px;
  border-radius: 14px; background: linear-gradient(90deg, #ffd36b22, #ff9a5a1a); border: 1px solid #ffd36b55; font-size: 14px; }
.ref-bar > .ic { width: 18px; height: 18px; color: #ffd36b; flex: none; }
.ref-bar span { flex: 1; min-width: 200px; }
.ref-bar .tab { padding: 4px 12px; }
.ref-x { position: static; }
.cr-top { border-color: #ffd36b99; box-shadow: 0 0 0 1px #ffd36b55, 0 10px 40px #ffd36b22; position: relative; }
.cr-badge { font: 800 11px var(--mono); color: #1a1206; background: linear-gradient(90deg, #ffd36b, #ff9a5a); border-radius: 99px; padding: 3px 10px; display: inline-flex; gap: 4px; align-items: center; }
.cr-badge .ic { width: 12px; height: 12px; }
.cr-refs { color: #3ddc97; font-weight: 700; }
.cr-reflink { font-size: 12px; text-decoration: none; }

/* "site was updated" toast */
.update-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; display: inline-flex; gap: 8px; align-items: center;
  padding: 12px 18px; border-radius: 99px; border: 1px solid #3be3ff66; background: #10142af2; color: var(--text, #eef0ff); font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 40px #0008; animation: rise .4s both; }
.update-toast .ic { width: 16px; height: 16px; color: #3be3ff; }
@media (max-width: 820px) { .update-toast { bottom: 84px; } }

/* live overlay window */
.ov-modal { max-width: 520px; }
.ov-modes { margin: 6px 0 12px; }
.ov-preview { display: flex; justify-content: center; padding: 14px; border-radius: 16px; margin-bottom: 10px; min-height: 150px;
  background: repeating-conic-gradient(#ffffff08 0% 25%, transparent 0% 50%) 0 0 / 22px 22px, #070912; overflow: hidden; }
.ov-preview .tto { max-width: 100%; }
.ov-opt { display: grid; gap: 4px; margin-bottom: 10px; }
.ov-opt small { color: var(--muted); font-weight: 600; }
.ov-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; box-shadow: inset 0 0 0 1px #ffffff33; }
.ov-mode { display: grid; gap: 8px; }
.ov-mode[hidden] { display: none; }
.ov-mode .btn { width: auto; justify-self: start; }
.ov-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ov-btns .btn { width: auto; text-decoration: none; }
.ov-free { font: 800 9.5px var(--mono); color: #0b0e1c; background: #3ddc97; border-radius: 5px; padding: 1px 5px; vertical-align: 1px; }

/* owner panel: money */
.money { display: grid; gap: 10px; margin-bottom: 8px; }
.money-missing b { display: block; margin-bottom: 4px; }
.money-missing p { margin: 0; }
.money-months { display: flex; gap: 10px; align-items: flex-end; overflow-x: auto; padding: 8px 2px; }
.mm { display: grid; justify-items: center; gap: 3px; min-width: 56px; }
.mm i { display: block; width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#3ddc97, #3be3ff); }
.mm b { font: 700 11.5px var(--mono); }
.mm small { color: var(--muted); font-size: 11px; }
.money-st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.st-on { background: #3ddc9726; color: #3ddc97; } .st-trial { background: #3be3ff22; color: #3be3ff; }
.st-warn { background: #ffd36b26; color: #ffd36b; } .st-off { background: #ffffff12; color: var(--muted); }
