/* 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; }
