
:root {
  /* Layout: phone-style creator hub. Sticky top bar, one view at a time, fixed bottom tab bar. Angular cut corners echo the logo's shards. */
  --bg: #110305;
  --panel: #1b070b;
  --panel-2: #240a10;
  --line: #3a141b;
  --text: #f5eef0;
  --muted: #b39aa0;
  --accent: #e8394b;
  --hot: #ff5a6a;
  --font-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cut: 14px;
  --shell: 520px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 var(--font-body); -webkit-tap-highlight-color: transparent; }
a { color: var(--hot); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }

/* ---------- Shell ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(17,3,5,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--shell); margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.emblem { width: 34px; height: auto; mix-blend-mode: lighten; }
.brand { font: 700 1.05rem var(--font-display); letter-spacing: 0.06em; color: var(--text); text-decoration: none; }
.menu-wrap { position: relative; }
.brand-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; margin-left: -4px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; }
.brand-btn:hover, .brand-btn[aria-expanded="true"] { background: var(--panel); border-color: var(--line); }
.chev { width: 16px; height: 16px; color: var(--hot); transition: transform 0.18s ease; }
.brand-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 8px); left: -4px; min-width: 240px; padding: 6px; display: grid; gap: 2px;
  background: #1f080d; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,0.55); z-index: 20; animation: drop 0.16s ease-out; }
.menu[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--text); text-decoration: none; font: 600 0.95rem var(--font-body); text-align: left; cursor: pointer; width: 100%; }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: var(--panel-2); outline: none; }
.menu a.current { color: var(--hot); }
.menu svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.menu b { color: var(--hot); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.brand span { color: var(--accent); }
.brand { white-space: nowrap; font-size: 0.95rem; letter-spacing: 0.04em; }
@media (max-width: 379px) { .brand { white-space: normal; line-height: 1.1; } }
.sub-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.sub-pill:hover { background: var(--hot); }
.sub-pill { white-space: nowrap; font-size: 0.74rem !important; padding: 6px 10px !important; }

.tb-ico { width: 30px; height: 30px; border-radius: 6px; margin-right: 8px; vertical-align: middle; }
.brand-btn { display: inline-flex; align-items: center; }
.hero-art { width: min(300px, 78%); height: auto; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%); mask-image: radial-gradient(circle, #000 52%, transparent 71%); margin-bottom: -6px; }
body::before { content: ""; position: fixed; left: 50%; bottom: 40px; width: min(760px, 130vw); height: min(760px, 130vw); transform: translateX(-50%); background: url(/img/e5df2485c5.webp) center / contain no-repeat; opacity: 0.2; pointer-events: none; z-index: -1; -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 70%); mask-image: radial-gradient(circle, #000 50%, transparent 70%); }
main { max-width: var(--shell); margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
.view { display: none; gap: 18px; }
.view.active { display: grid; animation: rise 0.28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.active { animation: none; } * { transition: none !important; } }

.view-title { display: grid; gap: 4px; }
.view-title h2 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.04em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.section-head a { font-size: 0.85rem; font-weight: 600; text-decoration: none; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(20,5,8,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar-inner { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(7, 1fr); }
.tab { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 9px; color: var(--muted); text-decoration: none; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] svg { color: var(--accent); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 3px; background: var(--accent); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 100%, 0 100%); }

/* ---------- Blocks ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-red { background: var(--accent); color: #fff; }
.btn-red:hover { background: var(--hot); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-wide { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 12px; }

/* Home */
.hero { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 6px 0 2px; background: radial-gradient(closest-side, rgba(232,57,75,0.22), transparent 75%) center 30% / 320px 320px no-repeat; }
.hero-name { display: grid; gap: 4px; justify-items: center; }
.hero-name h1 { font-size: 2rem; line-height: 1.05; letter-spacing: 0.04em; }
.hero-name h1 span { color: var(--accent); }
.hero-sub { font: 700 0.8rem var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--hot); }
.hero-tag { font: 600 1.05rem var(--font-display); color: var(--text); margin-top: 2px; }
.hero-kw { font-size: 0.95rem; color: var(--muted); max-width: 36ch; line-height: 1.75; }
.hero-kw a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--accent); padding: 2px 0; }
.hero-kw a[data-go="battle"], .hero-kw a[data-go^="news:"] { font-size: 0.96rem; font-weight: 600; }
.hero-kw .top3 { white-space: nowrap; display: block; }
.hero-kw a:hover, .hero-kw a:focus-visible { color: var(--accent); border-bottom-style: solid; }
.hero-logo { width: 160px; max-width: 50%; height: auto; mix-blend-mode: lighten; }
.hero p { max-width: 34ch; }
@media (min-width: 900px) { :root { --shell: 880px; } .hero-logo { width: 210px; } .hero-name h1 { font-size: 2.4rem; } .hero-kw { max-width: 60ch; } .hero p { max-width: 60ch; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--muted); background: var(--panel); }
.chip b { color: var(--text); }

.plate { background: linear-gradient(135deg, #3a0d15 0%, #1e070b 60%); border: 1px solid var(--accent); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); padding: 18px 18px 16px; display: grid; gap: 8px; }
.plate-label { font: 700 0.78rem var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hot); }
.plate-code { font: 700 3.2rem/1 var(--font-display); letter-spacing: 0.08em; user-select: all; text-shadow: 0 0 24px rgba(255,90,106,0.35); }
.plate .row { justify-content: space-between; }

.news { padding: 10px 12px; }


.vt-node{cursor:pointer;text-align:left;color:inherit;font:inherit}
.vt-node:active{transform:scale(.98)}
dialog.vtd{background:#14143a!important;border:2px solid #33e6ff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 0 22px rgba(51,230,255,.35)!important;text-align:center}
.vtd h4{margin:0 0 6px;font-size:.8rem;letter-spacing:.1em;color:#cfd4ff}
.vtd .vn{font-size:1.4rem;font-weight:800;margin:4px 0}
.vtd .vl{color:#33e6ff;font-weight:800;font-size:1.05rem}
.vtd .vbox{background:#0c0c26;border-radius:6px;padding:9px;margin:8px 0}
.vtd .vbox small{display:block;font-weight:800;font-size:.8rem}
.vtd .vbox span{color:#b9b4ff;font-weight:700;font-size:.95rem}
.vtd .vsel{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 0}
.vtd .vsel button,.vtd .vsel2 button{background:#232358;border:1px solid #33e6ff;color:#fff;border-radius:6px;font-weight:800;padding:7px 11px;cursor:pointer}
.vtd .vsel button:disabled,.vtd .vsel2 button:disabled{opacity:.35;cursor:default;border-color:#555}
.vtd .vsel b{font-size:1.4rem;min-width:1.6ch}
.vtd .vsel .to{color:#33e6ff}
.vtd .vsel2{display:flex;align-items:center;justify-content:center;gap:8px;font-size:.85rem;color:var(--muted);margin-bottom:4px}
.vtd .vcost{border:2px solid #a070ff;background:#1c1442;border-radius:8px;padding:9px;margin-top:6px}
.vtd .vcost b{font-size:1.4rem;color:#ffd24a}
.vtd .vtbl{width:100%;border-collapse:collapse;font-size:.76rem;margin-top:10px}
.vtd .vtbl td,.vtd .vtbl th{padding:3px 4px;border-top:1px solid rgba(255,255,255,.1)}
.vtd .vtbl tr.hi td{color:#33e6ff}

.et{border:1px solid rgba(80,150,255,.55);border-radius:8px;background:rgba(30,40,110,.35);margin-top:8px;overflow:hidden}
.et h4{margin:0;text-align:center;font-size:.9rem;padding:5px;background:rgba(80,80,170,.4)}
.et-row{display:flex;align-items:center;gap:8px;padding:8px}
.et-ic{flex:0 0 34px;height:34px;border:4px solid var(--ec);border-radius:3px;box-shadow:0 0 10px var(--ec),inset 0 0 8px var(--ec);background:rgba(10,10,40,.6)}
.et-tiles{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;min-width:0}
.et-t{border:2px solid rgba(170,160,220,.7);background:#17174a;border-radius:4px;padding:3px 3px 5px;text-align:center;color:inherit;font:inherit;cursor:pointer;min-width:0}
.et-t i{display:block;font-style:normal;font-size:.6rem;font-weight:800;color:#33e6ff;text-align:right}
.et-t b{display:block;font-size:.76rem;line-height:1.15;margin:2px 0}
.et-t span{color:#a9a4d8;font-weight:800;font-size:.85rem}

.hm{display:flex;gap:10px;align-items:center;width:100%;text-align:left;color:#f2d98a;font:inherit;background:#1b1522;border:2px solid #e8c15a;border-radius:4px;padding:8px 10px;margin-top:8px;cursor:pointer}
.hm:first-of-type{margin-top:0}
.hm .hi{flex:0 0 40px;height:40px;display:flex;align-items:center;justify-content:center;color:#fff}
.hm .hi svg{width:30px;height:30px}
.hm .hb{flex:1;min-width:0}
.hm .hb b{display:block;color:#fff;font-size:1rem;line-height:1.2}
.hm .hb small{display:block;font-size:.8rem;line-height:1.3;margin-top:2px;color:#e8c15a}
.hm .hr{align-self:flex-start;font-size:.72rem;font-weight:800;color:#ffd24a;white-space:nowrap;text-align:right}
.hm .hr em{display:block;font-style:normal;color:#33e6ff}
.hm:active{transform:scale(.99)}

.pw-t{display:block;width:100%;text-align:left;color:#fff;font:inherit;background:#1b1b52;border:2px solid #cfeaff;border-radius:4px;padding:3px 8px 8px;cursor:pointer;min-width:0}
.pw-t i{display:block;text-align:right;font-style:normal;font-weight:800;font-size:.68rem;color:#33e6ff}
.pw-t .pr{display:flex;justify-content:space-between;align-items:center;gap:6px}
.pw-t b{font-size:.88rem;line-height:1.15}
.pw-t span{color:#b9b4ff;font-weight:800;font-size:.95rem;white-space:nowrap}
.pw-sw{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}
.pw-sw button{height:48px;border-radius:6px;background:#12122e;border:3px solid var(--pc);color:var(--pc);cursor:pointer;opacity:.55;display:flex;align-items:center;justify-content:center}
.pw-sw button svg{width:24px;height:24px}
.pw-sw button.on{opacity:1;box-shadow:0 0 12px var(--pc),inset 0 0 10px var(--pc)}
.vt-tabs{display:flex;gap:6px;margin-bottom:8px}
.vt-tabs button{flex:1;background:transparent;border:1px solid var(--line);color:inherit;border-radius:8px;padding:6px 8px;font:600 0.85rem inherit;cursor:pointer}
.vt-tabs button.on{background:rgba(255,43,61,.16);border-color:rgba(255,43,61,.55)}
.vt-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vt-node{border:1px solid rgba(120,200,255,.35);background:rgba(40,40,90,.28);border-radius:8px;padding:8px 9px;display:flex;flex-direction:column;gap:3px;min-width:0}
.vt-node b{font-size:.85rem;line-height:1.2}
.vt-node .v{color:#b9b4ff;font-weight:700;font-size:.85rem}
.vt-node .l{font-size:.7rem;color:#5fd8ff;font-weight:700}
.vt-node .k{font-size:.68rem;color:var(--muted);line-height:1.3}
.vt-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.vt-row:first-of-type{border-top:0}
.vt-row .n{font-weight:700;font-size:.88rem}
.vt-row .d{font-size:.78rem;color:var(--muted);margin-top:2px}
.vt-keys{white-space:nowrap;font-size:.72rem;font-weight:700;color:#ffd24a;align-self:flex-start;text-align:right}
.vt-pill{display:inline-block;font-size:.7rem;font-weight:700;border:1px solid var(--line);border-radius:99px;padding:2px 8px;margin-left:6px;color:var(--muted);vertical-align:middle}
.vt-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.vt-chips span,.vt-chips button{color:inherit;font-family:inherit;cursor:pointer;font-size:.78rem;border:1px solid var(--line);border-radius:8px;padding:4px 8px;background:rgba(255,255,255,.03)}
.news-q { width: 100%; max-width: 240px; box-sizing: border-box; display: block; margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: inherit; font: inherit; font-size: 0.85rem; }
.news-q:focus { outline: 2px solid var(--hot); }
.news-inline mark { background: rgba(255,43,61,.45); color: #fff; border-radius: 3px; padding: 0 2px; }
.news-none { margin: 10px 2px; opacity: .8; }
.news-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.news-tabs button { flex: 1; background: transparent; border: 1px solid var(--line); color: inherit; border-radius: 8px; padding: 6px 8px; font: 600 0.85rem inherit; cursor: pointer; }
.news-tabs button.on { background: rgba(255,43,61,.16); border-color: rgba(255,43,61,.55); }
.news-meta { font-size: 0.8rem; opacity: .8; margin: 0 0 6px; }
.news-list { display: grid; gap: 6px; }
.news-acc.open > .news-item { border-color: rgba(255,43,61,.55); background: rgba(255,43,61,.1); }
.news-chev { display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.news-acc.open .news-chev { transform: rotate(225deg) translate(-2px,0); }
.news-inline { padding: 4px 6px 10px; }
.news-inline h4 { margin: 14px 0 4px; font-size: 0.95rem; }
.news-inline p { margin: 6px 0; font-size: 0.88rem; line-height: 1.45; }
.news-inline ul { margin: 4px 0; padding-left: 18px; font-size: 0.88rem; line-height: 1.4; }
.news-inline ul ul { margin: 2px 0; }
.news-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: left; width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: inherit; border-radius: 10px; padding: 9px 11px; font: inherit; cursor: pointer; }
.news-item b { font-size: 0.88rem; line-height: 1.25; }
.news-item span { font-size: 0.75rem; opacity: .7; white-space: nowrap; }
.news-src { margin: 8px 0 0; }
#newsdlg { max-height: 80vh; overflow-y: auto; }
#newsdlg .news-body h4 { margin: 14px 0 4px; font-size: 0.95rem; }
#newsdlg .news-body p { margin: 6px 0; font-size: 0.88rem; line-height: 1.45; }
#newsdlg .news-body ul { margin: 4px 0; padding-left: 18px; font-size: 0.88rem; line-height: 1.4; }
#newsdlg .news-body ul ul { margin: 2px 0; }
.news-sec { margin-top: 8px; }
.news-sec b { font-size: 0.9rem; }
.news-sec ul { margin: 4px 0 0; padding-left: 18px; font-size: 0.85rem; line-height: 1.4; }
.news-sec li { margin: 2px 0; }
.c-views { display: block; font-size: 0.75rem; opacity: .7; margin-top: 2px; }
#code-toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 50; max-width: 340px; width: calc(100% - 32px); padding: 10px 14px; border-radius: 12px; background: rgba(20,10,14,.96); border: 1px solid rgba(255,43,61,.6); font-size: .88rem; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
#code-toast b { color: #ff5a6a; }
.live-head h3 { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff2b3d; box-shadow: 0 0 0 0 rgba(255,43,61,0.7); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 9px rgba(255,43,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,43,61,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-list { display: grid; gap: 8px; }
.live-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 8px; background: linear-gradient(160deg, #2a0a10, var(--panel)); color: var(--text); text-decoration: none; }
.live-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #ff2b3d; }
.live-card b { display: block; font-size: 1rem; }
.live-card .small { color: var(--muted); }
.live-badge { padding: 4px 10px; border-radius: 4px; background: #ff2b3d; color: #fff; font: 800 0.72rem var(--font-body); letter-spacing: 0.08em; }
.live-empty { padding: 12px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.live-note { margin-top: -2px; }
.gw-item { padding: 12px 0; border-top: 1px solid var(--line); }
.gw-item:first-child { border-top: 0; }
.gw-item p { margin: 4px 0; }
.gw-btn { display: inline-block; margin-top: 8px; padding: 8px 18px; border-radius: 8px; background: var(--accent); color: #fff; font: 700 0.9rem var(--font-body); text-decoration: none; }
.live-check { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 6px; }
.live-check::-webkit-scrollbar { display: none; }
.live-check a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; font: 600 0.82rem var(--font-body); }
.live-check a:hover { border-color: var(--accent); }
.live-check img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.live-check a.is-live { border-color: #ff2b3d; }
.live-check a.is-live::after { content: "LIVE"; font: 800 0.62rem var(--font-body); color: #fff; background: #ff2b3d; padding: 1px 5px; border-radius: 3px; }
.feature { display: grid; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.feature:hover { border-color: var(--accent); }
.feature-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; background:
  linear-gradient(115deg, transparent 55%, rgba(232,57,75,0.18) 55%, rgba(232,57,75,0.18) 62%, transparent 62%),
  linear-gradient(65deg, transparent 30%, rgba(255,90,106,0.10) 30%, rgba(255,90,106,0.10) 36%, transparent 36%),
  radial-gradient(circle at 70% 40%, #4a1019, #1a0509 70%); }
.feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,3,5,0.55), transparent 45%); }
.ep-badge, .t-badge { position: absolute; z-index: 1; font: 700 0.8rem var(--font-display); letter-spacing: 0.06em; background: var(--accent); color: #fff; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.ep-badge { left: 12px; top: 12px; padding: 4px 10px; }
.play { z-index: 1; position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(232,57,75,0.45); }
.play svg { width: 20px; height: 20px; margin-left: 3px; }
.feature-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.kicker { font: 700 0.72rem var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--hot); }
.feature-body b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; }

/* Feed */
.feed-head h3 .hash { color: var(--hot); }
.feed-head > span { white-space: nowrap; }
.feature-body .meta-line { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.feature-body .meta-line b { color: var(--hot); font-family: var(--font-body); font-size: inherit; }
.len { position: absolute; right: 4px; bottom: 4px; z-index: 1; font: 700 0.68rem var(--font-body); padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,0.8); color: #fff; }
.len.live { background: var(--accent); }
.feature-art .len { right: 12px; top: 12px; bottom: auto; font-size: 0.75rem; padding: 2px 7px; }

/* Episodes */
.eps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.eps a { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.eps a:hover { border-color: var(--accent); }
.t-wrap { position: relative; width: 120px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.t-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-badge { left: 4px; bottom: 4px; padding: 1px 6px; font-size: 0.7rem; }
.t-badge.alt { background: #2e2a2b; }
.num-tile { width: 52px; height: 52px; display: grid; place-items: center; background: linear-gradient(135deg, #4a1019, #1e070b); color: var(--text); font: 700 1.25rem var(--font-display); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.num-tile.alt { background: linear-gradient(135deg, #2e2a2b, #161012); font-size: 0.75rem; letter-spacing: 0.06em; }
.eps b { display: block; font-weight: 600; line-height: 1.3; }
.eps .meta { font-size: 0.86rem; color: var(--muted); font-weight: 600; }

/* Home shortcuts */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick a { display: grid; gap: 6px; align-content: start; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.quick a:hover { border-color: var(--accent); }
.quick svg { width: 26px; height: 26px; color: var(--accent); }
.quick b { font-family: var(--font-display); font-size: 1.05rem; }
.quick span { font-size: 0.93rem; color: var(--muted); }

/* Guides */
.guide-topics { display: grid; gap: 12px; }
.guide-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-left: 12px; border-left: 3px solid var(--accent); }
.guide-head > div { display: grid; gap: 2px; }
.g-icon { width: 44px; height: 44px; object-fit: contain; }

.g-wheel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 10px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.g-wheel::-webkit-scrollbar { display: none; }
.g-vid { flex: 0 0 62%; max-width: 230px; scroll-snap-align: start; display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; }
.g-vid .t-wrap { background: linear-gradient(135deg, #2a1218, #14090c); display: block; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; }
.g-vid .t-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-vid .g-txt { display: grid; gap: 2px; }
.g-vid .g-txt b { font-size: 0.88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-hint { display: block; text-align: right; color: var(--cyan, #5ce1ff); font-size: 0.85rem; text-decoration: none; }
.guide-head h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.g-eps { list-style: none; margin: 0; padding: 0; display: grid; }
.g-eps a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 0.92rem; line-height: 1.35; }
.g-eps li:first-child a { border-top: 0; }
.g-eps a:hover { color: var(--hot); }
.g-txt { display: grid; gap: 2px; }
.g-txt b { font-weight: 600; }
.g-by { font-size: 0.86rem; font-weight: 700; color: var(--hot); text-transform: uppercase; letter-spacing: 0.05em; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); text-decoration: none; }
.links a:hover { border-color: var(--accent); }
.tool-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--hot); font: 700 0.95rem var(--font-display); }
.tool-txt { display: grid; gap: 2px; }
.tool-ic.dis { color: #8b9cff; }
.compact-off { padding: 12px; }
.compact-off .section-head h3 { font-size: 0.95rem; }
.compact-off ul.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.compact-off ul.links a { padding: 8px 10px; gap: 8px; min-height: 0; }
.compact-off .tool-ic { width: 28px; height: 28px; font-size: 0.8rem; flex: none; }
.compact-off .tool-ic svg { width: 16px; height: 16px; }
.compact-off .tool-txt b { font-size: 0.85rem; }
.compact-off .tool-txt > span { display: none; }
.tool-ic.fb { color: #6aa5ff; font-size: 1.2rem; }
.tool-ic.app { background: #000103; border-color: #000103; padding: 2px; }
.tool-ic.app img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.tool-ic.ig { color: #ff7ab8; }
.tool-ic.ig svg { width: 20px; height: 20px; }
.tool-ic.dis svg { width: 20px; height: 20px; }
.tool-txt > span { font-size: 0.93rem; color: var(--muted); }

.rend { border-color: var(--accent); background: linear-gradient(160deg, #2a0a10, var(--panel) 60%); }
.rend-head { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.rend-title { font-size: 1.35rem; text-transform: none; letter-spacing: 0.02em; color: var(--text); }
.rend .by { color: var(--hot); }

/* Home: two columns */
#view-home .eps, #view-home .live-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
#view-home .live-check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 280px; }
@media (max-width: 640px) {
  #view-home .eps a { grid-template-columns: 1fr; align-items: start; }
}

/* Home layout wrappers: invisible on mobile */
.h-main, .h-rail { display: contents; }
.h-live { display: grid; gap: 18px; }
.h-gw { display: none; }
#view-home .hero { order: -2; }
#view-home .h-live { order: -1; }
#view-home .plate { order: 1; }
#view-home .quick { order: 2; }
.dk-first { display: none; }
/* Creators */
.creators { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 640px) {
  .creators .c-main { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .creators .c-dis { margin-left: 0; }
}
.creator { display: grid; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.c-main { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; color: var(--text); text-decoration: none; }
.c-main:hover b { color: var(--hot); }
.c-dis { justify-self: start; margin-left: 70px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #2a2f5c; color: #dfe3ff; font-weight: 700; font-size: 0.82rem; text-decoration: none; }
.c-dis:hover { background: #3a418a; }
.c-dis svg { width: 16px; height: 16px; }
.creator:hover { border-color: var(--accent); }
.creator .c-main span.c-body > span { color: var(--muted); }
.avatar { width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; font: 700 1.15rem var(--font-display); color: var(--text); background: linear-gradient(135deg, var(--accent), #5a1420); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.av-ini { font: 700 1.1rem var(--font-display); color: var(--text); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-body { display: grid; gap: 2px; }
.c-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.creator .c-main span.c-body > span.c-name { color: var(--text); }
.code-tag { font: 700 0.68rem var(--font-body); letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 2px 7px; user-select: all; }
.code-tag b { font-family: var(--font-display); font-size: 0.76rem; color: var(--hot); letter-spacing: 0.04em; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 380px) { .more-grid { grid-template-columns: 1fr; } }
.mini { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.mini:hover { border-color: var(--accent); }
.mini .ini { width: 34px; height: 34px; display: grid; place-items: center; font: 700 0.8rem var(--font-display); background: linear-gradient(135deg, #5a1420, #2a0a10); border-radius: 6px; color: var(--text); }
.mini .m-txt { display: grid; gap: 2px; min-width: 0; }
.mini .m-txt b { font-size: 0.92rem; line-height: 1.2; overflow-wrap: anywhere; }
.mini .m-code { font: 700 0.7rem var(--font-body); color: var(--muted); letter-spacing: 0.04em; }
.mini .m-code b { color: var(--hot); font-family: var(--font-display); font-size: 0.8rem; }
.c-body b { font-family: var(--font-display); font-size: 1.15rem; }
.c-body span { font-size: 0.95rem; color: var(--muted); }
.c-go { font-size: 1.6rem; color: var(--accent); }

/* About */
.about-head { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.about-head img { width: 72px; height: auto; mix-blend-mode: lighten; }
.about-head h2 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.list li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.list b { font-weight: 700; }
.support { display: grid; gap: 10px; }
.support-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.support-item .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); color: var(--hot); border: 1px solid var(--line); font: 700 0.9rem var(--font-display); }


/* Collection */
.title-mark { display: grid; justify-items: center; gap: 10px; padding: 18px 16px; background: #0a0204; border: 1px solid var(--line); border-radius: 8px; text-align: center; text-decoration: none; color: var(--text); }
.title-mark:hover { border-color: var(--accent); }
.title-mark img { width: 220px; height: auto; display: block; }
.title-mark .strip { display: flex; justify-content: center; gap: 6px; }
.title-mark .strip img { width: 40px; height: 40px; object-fit: contain; }
.title-mark b { font-family: var(--font-display); font-size: 1.05rem; }
.quick.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 400px) { .quick.three { grid-template-columns: 1fr 1fr; } }
.ctabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 2px 0 4px; background: var(--bg); }
.ctabs::-webkit-scrollbar { display: none; }
.ctab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 700 0.85rem var(--font-body); cursor: pointer; }
.ctab .n { font-size: 0.8rem; color: var(--muted); opacity: 0.8; }
.ctab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ctab[aria-selected="true"] .n { color: #fff; }
.csearch { display: flex; gap: 8px; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.csearch svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.csearch input { flex: 1; min-width: 0; padding: 11px 0; border: 0; background: transparent; color: var(--text); font: 500 1rem var(--font-body); }
.csearch input:focus { outline: none; }
.csearch:focus-within { border-color: var(--accent); }
.subfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.subfilter button { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 0.8rem var(--font-body); cursor: pointer; }
.subfilter button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--panel-2); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cgrid.tall { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.citem { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; text-align: center; font: 600 0.86rem/1.2 var(--font-body); }
.citem:hover { border-color: var(--accent); }
.citem .pic { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.cgrid.tall .pic { width: 84px; height: 108px; }
.citem .pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.citem .vdots { display: flex; gap: 3px; }
.vdots i { width: 7px; height: 7px; border-radius: 50%; background: #777; display: block; }
.vdots i.Golden { background: #f2c14e; } .vdots i.Red { background: #e8394b; } .vdots i.Blue { background: #4ea3f2; } .vdots i.Death { background: #b45cf2; } .vdots i.Super { background: #4ef2b4; } .vdots i.Base { background: #ddd; } .vdots i.Icon { background: #777; }
.cempty { padding: 24px; text-align: center; }
.uwgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uwbtn { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; font: 700 0.8rem/1.2 var(--font-body); }
.uwbtn img { width: 52px; height: 52px; object-fit: contain; }
.uwbtn[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(160deg, #2a0a10, var(--panel)); }
.uwinfo { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.uwinfo img { width: 64px; height: 64px; object-fit: contain; }
.uwinfo h3 { font-size: 1.2rem; }
dialog.sheet { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.08)), color-mix(in srgb, var(--panel) 38%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 10px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 0 0 1px rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); color: var(--text); padding: 18px; width: calc(100% - 24px); max-width: min(var(--shell), 460px); max-height: calc(100dvh - 40px); overflow-y: auto; margin: auto; }
dialog.sheet::backdrop { background: rgba(0,0,0,0.35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet-in { display: grid; justify-items: center; gap: 12px; text-align: center; }
.sheet-pic { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; background: radial-gradient(closest-side, rgba(232,57,75,0.18), transparent); }
.sheet-pic img { width: 100%; height: 100%; object-fit: contain; }
.sheet h3 { font-size: 1.3rem; }
.sheet .kick { font: 700 0.72rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hot); }
.vrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.vrow button { display: grid; justify-items: center; gap: 2px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: 600 0.72rem var(--font-body); cursor: pointer; }
.vrow button img { width: 40px; height: 40px; object-fit: contain; }
.vrow button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.sheet-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1.2rem; cursor: pointer; }

footer { text-align: center; margin-top: 8px; }
.bug-link { color: var(--cyan, #5ce1ff); text-decoration: underline; cursor: pointer; display: inline-block; margin-top: 6px; }
.bug-btn { background: rgba(92,225,255,.16); border: 1px solid rgba(92,225,255,.5); color: inherit; border-radius: 10px; padding: 10px 14px; font: inherit; cursor: pointer; }
#bugdlg textarea { width: 100%; min-height: 110px; box-sizing: border-box; background: rgba(0,0,0,.35); color: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; resize: vertical; }
#bugdlg .bug-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
#bugdlg #bug-msg { margin-top: 8px; min-height: 1.2em; }
.citem{position:relative}
.citem[data-tip]:hover::after,.citem[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;z-index:20;left:50%;bottom:calc(100% - 4px);transform:translateX(-50%);width:max-content;max-width:200px;padding:.45rem .6rem;border-radius:8px;background:#0b0f1a;color:#e8ecf5;border:1px solid rgba(255,255,255,.18);font-size:.72rem;line-height:1.35;text-align:left;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.5)}
.mshape{position:relative;isolation:isolate;--mc:#b066ff;background:var(--mc);filter:drop-shadow(0 0 6px var(--mc))}
.mshape::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(closest-side,#32174d,#150a22);transform:scale(.9)}
.mshape img{max-width:68%!important;max-height:68%!important}
.mshape.m-Cannon,.mshape.m-Cannon::before{clip-path:circle(50%)}
.mshape.m-Armor,.mshape.m-Armor::before{clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}
.mshape.m-Generator,.mshape.m-Generator::before{clip-path:polygon(50% 0,100% 90%,0 90%)}
.mshape.m-Generator img{margin-top:18%}
.mshape.m-Core,.mshape.m-Core::before{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.mshape.m-Core img{max-width:58%!important;max-height:58%!important}
.mshape.mc-rare{--mc:#4aa3ff}.mshape.mc-common{--mc:#aab3c2}
.citem .pic.mshape{filter:drop-shadow(0 0 5px var(--mc))}
.sheet-pic.mshape{width:190px;height:190px;margin:0 auto;display:flex;align-items:center;justify-content:center}
.tgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tbtn{min-width:0;overflow:hidden;font-size:.76rem;display:grid;justify-items:center;align-content:center;gap:4px;aspect-ratio:1;padding:6px 2px;border:2px solid #bff6ee;border-radius:3px;background:linear-gradient(#17174a,#101036);color:#fff;font:800 .72rem/1.1 inherit;cursor:pointer;box-shadow:0 0 8px rgba(160,255,240,.35)}
.tbtn img{width:70%;max-height:58px;object-fit:contain}
.tbtn[aria-pressed="true"]{border-color:#4cf06a;background:linear-gradient(#10321a,#0c1f12);box-shadow:0 0 10px rgba(76,240,106,.6)}
.tranks{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:12px}
.trank{background:#2c2a5c;border-radius:3px;padding:8px 6px;text-align:center;color:#fff}
.trank b{display:block;font-size:.95rem;margin-bottom:4px}
.trank .tv{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 10px;font-weight:700;font-size:.78rem}
.trank .tv span{display:inline-flex;align-items:center;gap:4px}
.trank svg{width:18px;height:18px;flex:none}
.cs-top{display:flex;gap:14px;align-items:flex-start;margin-top:8px;text-align:left}
.cs-left{flex:none;width:120px;text-align:center}.cs-pic{width:120px;height:160px}
.cs-max{margin:6px 0 0;font-weight:700;font-size:.9rem}
.cs-right{flex:1;min-width:0}.cs-desc{margin:0 0 10px;font-weight:800;line-height:1.3}
.cs-lv p{display:flex;justify-content:space-between;margin:0 0 3px;font-weight:700;font-size:.92rem;color:#6d6f86}
.cs-lv p.on{color:#fff}.cs-lv p.on b{color:#4de8ff}.cs-lv b{font-weight:700}
.cs-h{margin:16px 0 4px;color:#8dffb0;text-transform:uppercase;letter-spacing:.03em;font-size:1rem;text-align:center}
.cs-ab .cs-h,.cs-h.sm{text-align:left;font-size:.9rem}.cs-h.sm{margin-top:12px}
.cs-p{margin:0;font-weight:600;font-size:.93rem;text-align:left}
.cs-ab .cs-p{display:flex;justify-content:space-between}.cs-v{color:#4de8ff}
.cs-unlock{margin:18px 0 4px;padding:10px;border:2px solid #4b4f66;background:#0a0a14;border-radius:3px;text-align:center;font-weight:700}
.cs-unlock span{display:block;font-size:1rem}.cs-unlock b{display:inline-flex;align-items:center;gap:6px;font-size:1.05rem;margin-top:2px}.cs-unlock svg{width:22px;height:22px}
.cs-pic{display:flex!important;flex-direction:column;justify-content:space-between;padding:0;border:2px solid var(--rc,#22c4e6);border-radius:8px;background:#0e1030!important;overflow:hidden;box-shadow:0 0 10px var(--rg,rgba(34,196,230,.45))}
.cs-pic img{flex:1;min-height:0;width:70%!important;margin:6px auto;height:auto}
.cs-cn{margin:0;padding:3px 2px;font-weight:800;font-size:.8rem;background:linear-gradient(#1c4a5c,#0f2a3c);color:#fff;text-align:center}
.cs-st{margin:0;padding:2px;font-size:.9rem;letter-spacing:1px;color:#ff3fd8;background:#13163c;text-align:center;line-height:1}
.cs-top,.cs-ab,.cs-unlock,.cs-p,.cs-h{width:100%;box-sizing:border-box;justify-self:stretch}
.cs-ab .cs-h,.cs-h.sm{text-align:left!important}
.citem[data-r]{padding:0;gap:0;overflow:hidden;border:2px solid var(--rc);border-radius:9px;background:#0f1130;align-content:stretch;box-shadow:0 0 10px var(--rg)}
.citem[data-r]>span:not(.pic){order:-1;width:100%;box-sizing:border-box;min-height:2.5em;display:flex;align-items:center;justify-content:center;padding:3px 3px;font-size:.8rem;font-weight:800;line-height:1.1;background:linear-gradient(#1b4b5e,#102a3c);color:#fff}
.citem[data-r] .pic{width:100%;height:88px;border-radius:0;box-shadow:none;border-top:2px solid rgba(255,255,255,.85);border-bottom:2px solid rgba(255,255,255,.85);box-sizing:border-box;background:radial-gradient(closest-side,var(--cb,rgba(34,196,230,.75)),rgba(14,16,48,.97) 115%)!important;box-shadow:none!important;border-radius:0!important}
.citem[data-r] .pic img{max-width:62%;max-height:70%;filter:drop-shadow(0 0 3px rgba(255,255,255,.35))}
.citem[data-r]::before{content:"\2605\2605\2605\2605\2605";order:1;display:block;width:100%;box-sizing:border-box;padding:3px 0 4px;font-size:.95rem;line-height:1;letter-spacing:1px;text-align:center;color:var(--rc);background:#13163c;text-shadow:0 0 6px var(--rc)}
.citem[data-c="0"]{--cb:rgba(34,196,230,.8)}.citem[data-c="1"]{--cb:rgba(224,58,168,.8)}.citem[data-c="2"]{--cb:rgba(240,180,41,.8)}.citem[data-c="3"]{--cb:rgba(46,214,140,.8)}.citem[data-c="4"]{--cb:rgba(196,204,60,.8)}
.bc-card{padding:10px 6px}.bc-chart{width:100%;border-collapse:collapse;font-size:.82rem}
.bc-chart th{padding:2px 1px 6px;font-weight:800;vertical-align:bottom}.bc-chart th img{display:block;width:30px;height:30px;object-fit:contain;margin:0 auto 2px}.bc-chart th span{font-size:.6rem;letter-spacing:.02em}
.bc-chart td{padding:7px 1px;text-align:center;border-top:1px solid var(--line)}
.bc-chart td.bn{text-align:left;font-weight:700;padding-left:6px;min-width:96px}
.bc-chart td.on{color:#4cf06a;font-weight:900;font-size:1rem;background:rgba(76,240,106,.08)}
.bc-chart tr.tot td{font-weight:800;color:var(--muted)}
.bc-lg-card{margin-top:10px}.bc-lh{display:flex;align-items:center;gap:10px}.bc-lh img{width:40px;height:40px;object-fit:contain}.bc-lh b{font-size:1.05rem}.bc-lh .small{margin-left:auto}
.lab-list{display:grid;gap:8px}.lab{border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.03)}.lab summary{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:10px 12px;cursor:pointer;list-style:none}.lab summary::-webkit-details-marker{display:none}.lab-n{font-weight:800}.lab-m{font-size:.78rem;color:var(--hot);font-weight:700;text-align:right}.lab-c{grid-column:1/3;font-size:.7rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.lab-b{padding:0 12px 12px}.lab-t{width:100%;border-collapse:collapse;font-size:.78rem}.lab-t th{text-align:left;color:var(--muted);padding:4px 6px;border-bottom:1px solid var(--line)}.lab-t td{padding:4px 6px;border-top:1px solid var(--line);white-space:nowrap}.lab-t td:first-child{color:var(--muted)}
.lgroup{margin:8px 0}.lgroup summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;font:800 1.15rem var(--font-display);letter-spacing:.04em;text-transform:uppercase;padding:12px 0}.lgroup summary::-webkit-details-marker{display:none}.lgroup summary i{width:12px;height:12px;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg) translate(-3px,-3px);transition:transform .2s}.lgroup[open] summary i{transform:rotate(-135deg) translate(-3px,-3px)}
.lgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.lcard{display:flex;flex-direction:column;gap:6px;text-align:left;color:inherit;font:inherit;cursor:pointer;padding:12px 12px 10px;border-radius:10px;background:linear-gradient(180deg,#1a0a10,#12070c);border:2px solid rgba(255,43,61,.55);box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;min-height:112px}.lcard.max{border-color:#e8c15a;background:#14100a}.lc-t{font-weight:800;font-size:.9rem;line-height:1.2}.lc-v{font-size:.92rem;opacity:.92}.lc-f{display:flex;justify-content:space-between;align-items:flex-end;margin-top:auto;gap:6px}.lc-time{color:#3dff5a;font-weight:700;font-size:.9rem}.lc-cost{font-size:.92rem;display:flex;align-items:center;gap:5px;margin-left:auto}.lcoin{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e8c15a;color:#2a1c00;font:800 .68rem/1 sans-serif;box-shadow:0 0 0 2px #7a5c10 inset}
.lab-step{display:flex;align-items:center;justify-content:center;gap:8px;margin:6px 0}.lab-step button{min-width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:inherit;font:800 1.1rem inherit;cursor:pointer;padding:0 10px}.lab-step input{width:72px;height:40px;text-align:center;border-radius:10px;border:1px solid var(--line);background:rgba(0,0,0,.3);color:inherit;font:700 1rem inherit}.lab-tw{max-height:46vh;overflow:auto}.lab-t tr.cur td{background:rgba(232,193,90,.18)}.lab-t tr.nxt td{background:rgba(61,255,90,.12)}.lab-pop{width:100%}
.lab-t th.y,.lab-t td.y,.lab-rem .y{color:#ffd54a}.lab-t th.b,.lab-t td.b,.lab-rem .b{color:#4cc3ff}.lab-t td b{color:#fff}.lab-rem{font-size:.85rem;line-height:1.6;margin:6px 0}.lab-t{min-width:520px}.sheet-in{grid-template-columns:minmax(0,1fr)}.lab-pop{min-width:0;max-width:100%}.lab-tw{max-width:100%;overflow:auto}.lab-t th{position:sticky;top:0;background:#1b0b11}
.bc-tabs{margin-top:10px;overflow-x:auto;max-width:100%;scrollbar-width:none}#bc-leagues{min-width:0;max-width:100%;display:block;overflow:hidden}.bc-tabs button{flex:1 0 auto;white-space:nowrap}.bc-h{border-top:1px solid var(--line);padding:8px 0}.bc-h summary{cursor:pointer;font-weight:700;font-size:.9rem;margin-bottom:6px}.bc-chips{display:flex;flex-wrap:wrap;gap:6px}.bc-chips span{padding:5px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.04);font-size:.78rem;font-weight:600}
.sheet-pic.mshape{width:104px!important;height:104px!important}
.mrb{font-size:.92rem!important;margin:0!important}
dialog.sheet.msheet{background:#14143a!important;border:2px solid #33e6ff!important;border-radius:14px!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 0 22px rgba(51,230,255,.35)}
.msheet #sheet-h{font-size:1.5rem;text-align:center;margin:4px 0 10px;color:#fff}
.msheet .kick{display:none}
.msheet .mrh{font-size:1.15rem;margin:10px 0 4px}
.msheet .mrb{background:#0a0a26!important;border-radius:2px!important;padding:8px 10px!important;font-size:.9rem!important;line-height:1.3;border:2px solid transparent}
.msheet .mrb.best{border-color:#4de8ff}
.msheet .mrb .mrv{color:#4de8ff}
.mvals{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:100%}
.mv{display:grid;gap:2px;padding:6px 2px;border-radius:8px;background:rgba(0,0,0,.3);text-align:center}.mv span{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.mv b{font-size:1rem}
.mrv{color:#4de8ff}.mrh{font-weight:800;letter-spacing:.06em;text-transform:uppercase;text-align:center;margin:14px 0 6px;font-size:15px}.mrb{background:rgba(0,0,0,.35);border-radius:8px;padding:10px 12px;text-align:center;color:#ffb347;font-weight:600;margin:0}.rdesc{margin:.4rem 0 0;font-size:.9rem;line-height:1.45;opacity:.9;text-align:center}
.ttable{width:100%;border-collapse:collapse;margin:.5rem 0;font-size:.9rem}.ttable th,.ttable td{padding:.35rem .5rem;text-align:left;border-bottom:1px solid rgba(255,255,255,.1)}.ttable th{opacity:.7;font-weight:600}.ttitle{margin:.8rem 0 .2rem}
.tscroll{overflow-x:auto;max-width:100%}.tscroll .ttable{min-width:max-content;font-size:.88rem}.tscroll .ttable th,.tscroll .ttable td{padding:.3rem .45rem}
.citem[data-r="common"]{--rc:#22c4e6;--rg:rgba(34,196,230,.45)}.citem[data-r="rare"]{--rc:#f0b429;--rg:rgba(240,180,41,.45)}.citem[data-r="epic"]{--rc:#e03aa8;--rg:rgba(224,58,168,.5)}
.sheet-pic[data-r="common"]{--rc:#22c4e6;--rg:rgba(34,196,230,.45)}.sheet-pic[data-r="rare"]{--rc:#f0b429;--rg:rgba(240,180,41,.45)}.sheet-pic[data-r="epic"]{--rc:#e03aa8;--rg:rgba(224,58,168,.5)}
.citem[data-r]{border-color:var(--rc);box-shadow:0 0 0 1px var(--rc) inset,0 0 10px var(--rg)}
.citem[data-r] .pic{border-radius:6px;background:radial-gradient(closest-side,var(--rg),rgba(20,16,40,.9));box-shadow:inset 0 0 0 1px var(--rc)}
.sheet-pic[data-r]{background:radial-gradient(closest-side,var(--rg),transparent);border-radius:12px}
.rleg{display:flex;gap:8px;flex-wrap:wrap}.rleg span{font:700 .72rem/1 inherit;padding:5px 10px;border-radius:999px;border:1px solid}
.rleg [data-r="common"]{color:#22c4e6}.rleg [data-r="rare"]{color:#f0b429}.rleg [data-r="epic"]{color:#e03aa8}
.pcbadge{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;border:1px solid var(--hot);color:var(--hot);font:700 .68rem var(--font-body);letter-spacing:.06em;text-transform:uppercase;vertical-align:1px}
.tcard{border-color:var(--ta);background:linear-gradient(160deg,var(--tg),var(--panel) 62%)}
.tcard .kicker,.tcard .by,.tcard .tool-ic{color:var(--ta)}
.tcard .tool-ic{border-color:var(--ta);background:var(--tg)}
.tcard .pcbadge{color:var(--ta);border-color:var(--ta)}
.tcard .list li::before{background:var(--ta)}
.tcard .btn-red{background:var(--ta);border-color:var(--ta);color:var(--tt)}
.tcard .btn-red:hover{background:var(--tb);border-color:var(--tb)}
.tcard .btn-ghost:hover{border-color:var(--ta)}
.t-rend{--ta:#a48fff;--tb:#6e18ff;--tg:#1a0d3d;--tt:#0b0714}
.t-rend .btn-red{background:#6e18ff;border-color:#6e18ff;color:#fff}.t-rend .btn-red:hover{background:#a48fff;border-color:#a48fff}
.t-mt{--ta:#00f5ff;--tb:#39ff14;--tg:#031a1d;--tt:#001418}
.t-hub{--ta:#f59e0b;--tb:#fbbf24;--tg:#221605;--tt:#1a1100}
.t-sum{--ta:#3ee8ff;--tb:#b9c0ee;--tg:#0d0f2b;--tt:#0b0d24}
.t-sum{border-color:#3a3f8f}
.t-ep{--ta:#b4a7d6;--tb:#ffa07a;--tg:#23272a;--tt:#23272a}
.t-ep .by{color:#ffa07a}

/* Live check: same-width rows, vertical scroll */
.live-check { flex-direction: column; overflow-x: hidden; overflow-y: auto; max-height: 280px; gap: 6px; padding-right: 2px; scrollbar-width: thin; }
.live-check a { width: 100%; box-sizing: border-box; flex: none; border-radius: 8px; padding: 3px 10px 3px 4px; font-size: 0.76rem; }
.live-check img { width: 20px; height: 20px; }
#view-home .live-check { max-height: 220px; gap: 5px; }
.live-check a.is-live::after { margin-left: auto; }

/* Mode toggle */
.mode-btn { margin-left: 0; flex: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 700 0.72rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.mode-btn:hover { border-color: var(--accent); }

/* Desktop mode: wide layout with a left sidebar instead of the bottom tab bar */
html.desk { --shell: 1180px; }
html.desk .topbar-inner { max-width: none; padding: 10px 24px; }
html.desk .tabbar { top: 58px; right: auto; width: 210px; border-top: 0; border-right: 1px solid var(--line); padding: 14px 10px; background: rgba(20,5,8,0.97); }
html.desk .tabbar-inner { grid-template-columns: 1fr; gap: 4px; max-width: none; }
html.desk .tab { grid-template-columns: 24px 1fr; justify-items: start; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; font-size: 0.82rem; }
html.desk .tab:hover { background: var(--panel); color: var(--text); }
html.desk .tab[aria-current="page"] { background: var(--panel-2); }
html.desk .tab[aria-current="page"]::before { top: 20%; bottom: 20%; left: 0; right: auto; width: 3px; height: auto; clip-path: none; }
html.desk main { max-width: none; margin: 0; padding: 24px 32px 48px 242px; }
html.desk .view, html.desk footer { max-width: 1440px; margin-inline: auto; width: 100%; }
@media (min-width: 1900px) { html.desk .view, html.desk footer { max-width: 1680px; } }
html.desk #view-home { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; align-items: start; }
html.desk #view-home > .hero { grid-column: 1 / -1; order: 0; }
html.desk .h-main { display: grid; gap: 18px; grid-column: 1; min-width: 0; }
html.desk .h-rail { display: grid; gap: 18px; grid-column: 2; position: sticky; top: 76px; }
html.desk .h-live { display: grid; gap: 18px; order: 0; }
html.desk .h-gw { display: block; }
html.desk .h-rail .plate, html.desk .h-main .quick { order: 0; }
html.desk .h-rail .live-list, html.desk .h-rail .live-check { grid-template-columns: 1fr; }
html.desk #view-home #feed-top { display: none; }
html.desk #view-home .dk-first { display: block; }
html.desk #view-home #feed { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
html.desk #view-home #feed a { grid-template-columns: 1fr; align-items: start; }
html.desk .g-wheel { flex-wrap: wrap; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); scroll-snap-type: none; }
html.desk .g-vid { max-width: none; }
html.desk main { padding-right: clamp(32px, 3vw, 48px); }
@media (min-width: 1500px) { html.desk .topbar-inner { max-width: 1600px; margin: 0 auto; } }
html.desk .live-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
html.desk .live-check { max-height: 320px; }
html.desk .quick, html.desk .quick.three { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
html.desk .more-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
html.desk .cgrid, html.desk .cgrid.tall { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
html.desk .lgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
html.desk .uwgrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
html.desk .vt-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
html.desk .links, html.desk ul.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
html.desk .hero { grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; text-align: left; gap: 0; padding: 18px 0; background-position: 90px 50%; }
html.desk .hero p, html.desk .hero-kw { max-width: 60ch; }
.hero-top10 { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 0.9rem var(--font-body); text-decoration: none; margin-top: 6px; }
.hero-top10:hover { background: var(--hot); }
html.desk .hero-art { margin-right: -60px; }
html.desk .hero-top10 { justify-self: end; margin: 0; font-size: 1rem; padding: 14px 22px; }
html.desk .hero-logo { width: 190px; max-width: 190px; }
html.desk #code-toast { top: 76px; }
html.desk dialog.sheet { max-width: 760px; }
@media (max-width: 899px) { html.desk .tabbar { top: auto; width: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  img, video, iframe, table { max-width: 100%; }
  .hero-name h1 { font-size: 1.7rem; }
  .hero-logo { max-width: 40vw; height: auto; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
.tab { text-align: center; line-height: 1.1; }
@media (max-width: 899px) { .tab { font-size: 0.56rem; letter-spacing: 0; padding-inline: 1px; } }
