:root {
  --bg: #050816; --bg2: #07111f; --panel: rgba(11, 17, 38, 0.86); --panel2: rgba(17, 24, 52, 0.9);
  --line: #1e2a52; --line2: #2c3b73; --text: #e9edff; --muted: #97a3cc; --dim: #5f6a92;
  --cyan: #3fe0ff; --purple: #8a5cff; --magenta: #ff4fd8; --orange: #ff7a2b; --gold: #ffc84a; --green: #4ade80; --red: #ff4d6a;
  --r: 14px; --display: 'Exo 2', 'Inter', system-ui, sans-serif; --num: 'Inter', system-ui, sans-serif; --pixel: 'Pixelify Sans', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); min-height: 100vh; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 15% -10%, rgba(138, 92, 255, 0.18), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgba(63, 224, 255, 0.1), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg2)); }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); } .tiny { font-size: 12px; } .mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; } .break { word-break: break-all; }
.center { text-align: center; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 22px 16px 40px; }

/* ambient background */
.bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-fx i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #c7a6ff; box-shadow: 120px 300px #7fe8ff, 400px 80px #ff9ae6, 700px 420px #c7a6ff, 950px 200px #7fe8ff, 1200px 520px #ffcf7a, 300px 650px #ff9ae6, 850px 720px #7fe8ff, 1400px 150px #c7a6ff, 60px 820px #ffcf7a, 1100px 880px #c7a6ff;
  opacity: 0.55; animation: drift 38s linear infinite; }
.bg-fx i:nth-child(2) { left: 300px; animation-duration: 52s; opacity: 0.35; }
.bg-fx i:nth-child(3) { left: 700px; top: 200px; animation-duration: 70s; opacity: 0.3; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-900px); } }

/* header */
#topbar { position: sticky; top: 0; z-index: 40; background: rgba(5, 8, 22, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: none; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 16px; }
/* MonsterGO brand lockup (src/ui/brand.js) */
.mg-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; line-height: 0; flex: 0 0 auto; }
.mg-logo .mg-icon { display: block; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55)); }
.mg-logo .mg-word { display: block; width: auto; overflow: visible; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.mg-navbar { gap: 6px; } .mg-navbar .mg-icon { margin: -6px 0 -4px; }
.mg-navbar:hover .mg-icon { transform: rotate(-6deg) scale(1.06); } .mg-navbar .mg-icon { transition: transform 0.2s; }
.mg-hero, .mg-large { gap: clamp(8px, 1.6vw, 20px); } .mg-hero .mg-word, .mg-large .mg-word { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 30px rgba(47, 214, 255, 0.18)); }
.mg-loading .mg-icon { animation: mgBob 1.2s ease-in-out infinite; }
@keyframes mgBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.boot { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.boot-bar { width: 220px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2fd6ff, #b8f8ff); animation: bootBar 1.1s ease-in-out infinite; }
@keyframes bootBar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.boot-text { color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-brand { margin: 0 0 10px; }
@media (max-width: 640px) { .mg-navbar .mg-word { height: 26px !important; } .mg-navbar .mg-icon { width: 36px !important; height: 36px !important; } }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: #d7ddff; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav a.on { color: var(--magenta); background: rgba(255, 79, 216, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.25); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.net-pill { font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid rgba(255, 200, 74, 0.35); padding: 6px 10px; border-radius: 10px; white-space: nowrap; }
.icon-btn { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; width: 38px; height: 36px; cursor: pointer; }
.gfx select { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; height: 36px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); border-radius: 10px; width: 40px; height: 38px; font-size: 18px; cursor: pointer; }
#demo-banner { background: linear-gradient(90deg, rgba(255, 200, 74, 0.12), rgba(255, 79, 216, 0.08)); border-bottom: 1px solid rgba(255, 200, 74, 0.25); color: #ffe3a3; font-size: 13px; padding: 7px 16px; text-align: center; }
#demo-banner a { color: #fff; text-decoration: underline; }

@media (max-width: 1760px) { .net-pill { display: none; } .nav a { padding: 8px 9px; } }
@media (max-width: 1380px) {
  .burger { display: block; }
  .nav, .bar-right { display: none; }
  #topbar.open .topbar-in { flex-wrap: wrap; }
  #topbar.open .nav { display: flex; flex-direction: column; width: 100%; margin: 0; order: 3; }
  #topbar.open .bar-right { display: flex; flex-wrap: wrap; width: 100%; order: 4; margin: 0 0 8px; }
}

/* buttons */
.btn { --b: #3a2a7a; --bb: #20124a; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-weight: 800; letter-spacing: 0.3px;
  padding: 12px 22px; border-radius: 12px; color: #fff; background: var(--b); box-shadow: 0 4px 0 var(--bb), 0 8px 18px rgba(0, 0, 0, 0.35); transition: transform 0.08s, box-shadow 0.08s, filter 0.15s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bb), 0 4px 10px rgba(0, 0, 0, 0.35); }
.btn:disabled, .btn[aria-disabled='true'] { filter: grayscale(0.8) brightness(0.6); cursor: not-allowed; transform: none; }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 16px 30px; font-size: 18px; }
.btn-gold { --b: linear-gradient(180deg, #ffd766, #f5b01f); --bb: #a86b00; color: #1b1200; background: linear-gradient(180deg, #ffd766, #f5b01f); }
.btn-magenta { background: linear-gradient(180deg, #ff6ae0, #e03fc0); --bb: #8a1a72; }
.btn-purple { background: linear-gradient(180deg, #9c74ff, #6e44e6); --bb: #3a1e8a; }
.btn-cyan { background: linear-gradient(180deg, #58ecff, #19b8dd); --bb: #0a6680; color: #00222d; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); --bb: #0b1026; box-shadow: inset 0 0 0 1px var(--line2), 0 4px 0 #0b1026; }
.btn-red { background: linear-gradient(180deg, #ff6b7f, #d93550); --bb: #7a1426; }

/* panels */
.panel { position: relative; background: linear-gradient(180deg, rgba(20, 28, 60, 0.9), rgba(10, 15, 34, 0.92)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05); padding: 18px; }
.panel.glow-c { border-color: rgba(63, 224, 255, 0.35); } .panel.glow-m { border-color: rgba(255, 79, 216, 0.35); } .panel.glow-g { border-color: rgba(255, 200, 74, 0.35); }
.ptitle { font: 800 26px/1.1 var(--display); letter-spacing: 0.5px; margin: 0 0 6px; text-transform: uppercase; }
.ptitle.c { color: var(--cyan); } .ptitle.m { color: var(--magenta); } .ptitle.g { color: var(--gold); } .ptitle.o { color: var(--orange); }
.phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.display { font: 900 clamp(40px, 7vw, 86px)/0.95 var(--display); letter-spacing: 0.5px; margin: 0; }
.grad-c { background: linear-gradient(180deg, #8ff4ff, #1fc6f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-g { background: linear-gradient(180deg, #ffe38a, #ff9f1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-m { background: linear-gradient(180deg, #ff9df0, #e02fc0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line2); white-space: nowrap; }
.chip.el { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.demo-tag { font: 700 10px var(--body); letter-spacing: 1px; color: #1b1200; background: var(--gold); padding: 2px 6px; border-radius: 6px; vertical-align: middle; }
.live-tag { font: 700 10px var(--body); letter-spacing: 1px; color: #002a12; background: var(--green); padding: 2px 6px; border-radius: 6px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4, .g5 { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* 3D stage containers */
.stage { position: relative; overflow: hidden; border-radius: var(--r); }
.stage-canvas { display: block; outline: none; }
.loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(circle at 50% 45%, rgba(138, 92, 255, 0.18), rgba(5, 8, 22, 0.96) 60%); z-index: 5; transition: opacity 0.4s; }
.loader.out { opacity: 0; pointer-events: none; }
.loader-egg { width: 46px; height: 60px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: linear-gradient(160deg, #c9a8ff, #6b3fd1); box-shadow: 0 0 30px rgba(138, 92, 255, 0.8); animation: wobble 0.9s ease-in-out infinite; }
.loader-text { font: 800 16px var(--display); letter-spacing: 1.5px; color: #d9ccff; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-4px); } }
.err-box { border: 1px solid rgba(255, 77, 106, 0.5); background: rgba(255, 77, 106, 0.08); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.err-title { font: 800 16px var(--display); letter-spacing: 1px; color: #ff8fa0; }
.err-detail { font-size: 13px; color: #ffd2d9; }
.info-box { border: 1px solid rgba(63, 224, 255, 0.35); background: rgba(63, 224, 255, 0.06); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.warn-box { border: 1px solid rgba(255, 200, 74, 0.45); background: rgba(255, 200, 74, 0.07); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #ffe8b0; }

/* hero */
.hero { position: relative; height: min(84vh, 820px); min-height: 680px; border-bottom: 1px solid var(--line); }
.hero .stage { position: absolute; inset: 0; border-radius: 0; }
.hero-copy { position: absolute; left: 0; right: 0; top: 34px; text-align: center; z-index: 3; pointer-events: none; padding: 0 16px; }
.hero-copy .display span { display: inline-block; margin: 0 10px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.6)); }
.hero-copy p { font-size: clamp(15px, 2vw, 19px); color: #c9d4ff; max-width: 640px; margin: 14px auto 18px; text-shadow: 0 2px 10px #000; }
.hero-copy .hero-tag { font: 900 clamp(22px, 3.4vw, 40px)/1 var(--display); max-width: none; margin: 6px auto 0; color: #fff; }
.hero-copy .hero-brand { margin: 0 auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; pointer-events: auto; }
.hero-vs { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); font: 800 64px var(--display); z-index: 3; pointer-events: none; }
.hero-names { position: absolute; bottom: 70px; height: 28px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 12%; z-index: 3; pointer-events: none; }
.hero-names .nm { font: 800 20px var(--display); letter-spacing: 1px; text-shadow: 0 2px 8px #000, 0 0 3px #000; white-space: nowrap; }
.stats-strip { position: relative; z-index: 4; margin-top: -58px; }
.metric { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.metric .ic { font-size: 26px; }
.metric b { font: 800 24px var(--num); display: block; line-height: 1; }
.metric small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .hero { height: auto; } .hero-vs { font-size: 44px; } .hero-names { padding: 0 6%; bottom: 96px; } .hero-names .nm { font-size: 15px; } }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.steps { counter-reset: s; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(180deg, #9c74ff, #6e44e6); box-shadow: 0 0 14px rgba(138, 92, 255, 0.6); }
.step h4 { margin: 2px 0 0; font-size: 16px; } .step p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

/* monster cards */
.mcard { display: flex; flex-direction: column; gap: 8px; padding: 12px; transition: transform 0.15s, border-color 0.15s; text-decoration: none !important; color: inherit; }
.mcard:hover { transform: translateY(-3px); border-color: var(--line2); }
.mthumb { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 65%, color-mix(in srgb, var(--c) 30%, transparent), rgba(5, 8, 22, 0.4) 70%); display: grid; place-items: center; overflow: hidden; }
.mthumb img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.4s; }
.mthumb img.loaded { opacity: 1; }
.mcard h4 { margin: 0; font: 800 18px var(--display); letter-spacing: 1px; }
.tk { color: var(--muted); font-weight: 700; font-size: 13px; }
.mini-stats { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.mini-stats b { color: var(--text); }
.xpbar { height: 8px; border-radius: 99px; background: #0b1230; overflow: hidden; border: 1px solid var(--line); }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--magenta)); }

.stat { display: grid; grid-template-columns: 40px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.stat-k { color: var(--muted); font-weight: 700; }
.stat b { text-align: right; }
.bar { height: 10px; background: #0b1230; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; border-radius: 99px; }

/* tables / lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid rgba(30, 42, 82, 0.6); font-size: 14px; }
.li:last-child { border-bottom: 0; }
.li img { width: 34px; height: 34px; object-fit: contain; }
.rank { width: 30px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #151d40; color: var(--muted); flex: none; }
.rank.r1 { background: var(--gold); color: #231600; } .rank.r2 { background: #cfd8ff; color: #10183a; } .rank.r3 { background: #d98a4a; color: #2a1200; }
.win { color: var(--green); font-weight: 800; } .loss { color: var(--red); font-weight: 800; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid rgba(30, 42, 82, 0.6); }
.tbl-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.tab.on { background: rgba(255, 79, 216, 0.14); border-color: rgba(255, 79, 216, 0.5); color: #ffc2f2; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.input, textarea.input, select.input { background: #0a1030; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; width: 100%; }
.input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(63, 224, 255, 0.15); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { background: #0d1436; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; transition: border-color 0.12s, background 0.12s; }
.opt:hover { border-color: #3b4c8f; }
.opt[aria-pressed='true'] { border-color: var(--c, var(--magenta)); background: color-mix(in srgb, var(--c, var(--magenta)) 16%, #0d1436); box-shadow: 0 0 0 1px var(--c, var(--magenta)); }
.opt.big { flex-direction: column; min-width: 104px; padding: 12px 10px; }
.opt.big .em { font-size: 26px; }
.swatch { width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.2); }

/* launch */
.wizard { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 960px) { .wizard { grid-template-columns: minmax(0, 1fr); } .wizard .preview { order: -1; } }
.preview .stage { height: 460px; background: radial-gradient(circle at 50% 70%, rgba(138, 92, 255, 0.2), transparent 60%); }
@media (max-width: 640px) { .preview .stage { height: 330px; } }
.steps-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.steps-nav button { background: #0d1436; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--muted); }
.steps-nav button.on { color: #fff; border-color: var(--magenta); background: rgba(255, 79, 216, 0.14); }
.steps-nav button.done { color: var(--green); }
.cost-table td:last-child { text-align: right; font-family: ui-monospace, monospace; }

/* hatch overlay */
.overlay { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; }
.overlay .stage { position: absolute; inset: 0; border-radius: 0; }
.overlay .ov-ui { position: absolute; inset: auto 0 0 0; padding: 28px 16px 36px; text-align: center; z-index: 4; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent); }
.overlay .ov-top { position: absolute; top: 24px; left: 0; right: 0; text-align: center; z-index: 4; font: 800 22px var(--display); letter-spacing: 1.5px; color: #d9ccff; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; transition: opacity 0.12s; }
.flash.on { opacity: 1; }
.darken { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 3; transition: opacity 0.8s; }
.hatched-title { font: 800 clamp(30px, 6vw, 60px)/1 var(--display); letter-spacing: 1.5px; margin: 0 0 6px; }
.reveal { animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* profile */
.profile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1000px) { .profile { grid-template-columns: minmax(0, 1fr); } }
.viewer { height: 560px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--c) 22%, transparent), transparent 62%), linear-gradient(180deg, #0b1130, #060a1c); }
@media (max-width: 640px) { .viewer { height: 380px; } }
.viewer-ctrl { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.viewer-ctrl button { background: rgba(5, 8, 22, 0.75); border: 1px solid var(--line2); border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.viewer-ctrl button:hover { border-color: var(--cyan); }
.viewer-hint { position: absolute; top: 10px; left: 12px; z-index: 3; font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kv > div { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kv small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.kv b { font: 800 19px var(--num); }
.evo-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 200, 74, 0.18), rgba(255, 79, 216, 0.14)); border: 1px solid rgba(255, 200, 74, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 22px rgba(255, 200, 74, 0.35); } }
.evo-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.evo-track .e { text-align: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.evo-track .e.cur { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta); }
.evo-track .e.lock { opacity: 0.45; }
.evo-track img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.evo-track small { display: block; font-weight: 700; font-size: 12px; }

/* arena */
.arena-stage { height: 560px; }
@media (max-width: 640px) { .arena-stage { height: 380px; } }
.hud { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 12px; z-index: 3; pointer-events: none; }
.hud .fighter { background: rgba(5, 8, 22, 0.78); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 12px; width: min(340px, 46%); }
.hud .fighter.right { text-align: right; }
.hud .nm { font: 800 18px var(--display); letter-spacing: 1px; }
.hpbar { height: 14px; border-radius: 99px; background: #230d18; border: 1px solid #4a1a2a; overflow: hidden; margin-top: 6px; }
.hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, #a3f25c); transition: width 0.35s; }
.fighter.right .hpbar i { margin-left: auto; }
.hpbar i.low { background: linear-gradient(90deg, #ff4d6a, #ff8a4a); }
.dmg { position: absolute; z-index: 4; font: 800 30px var(--num); color: #fff; text-shadow: 0 3px 0 #000, 0 0 10px #ff2a4a; pointer-events: none; animation: dmgUp 1s ease-out forwards; }
.dmg.crit { color: var(--gold); font-size: 38px; } .dmg.miss { color: #9fe3ff; text-shadow: 0 3px 0 #000; }
@keyframes dmgUp { from { transform: translate(-50%, 0) scale(0.7); opacity: 1; } to { transform: translate(-50%, -70px) scale(1.1); opacity: 0; } }
.winner-banner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 5; background: radial-gradient(circle, rgba(0, 0, 0, 0.35), transparent 60%); pointer-events: none; }
.winner-banner h2 { font: 800 clamp(40px, 8vw, 80px)/1 var(--display); margin: 0; letter-spacing: 1.5px; }
.log { max-height: 340px; overflow: auto; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.log div { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.025); border-left: 3px solid var(--line2); }
.log div.A { border-left-color: var(--orange); } .log div.B { border-left-color: var(--cyan); } .log div.cur { background: rgba(255, 79, 216, 0.12); }
.timeline { display: flex; gap: 3px; flex-wrap: wrap; }
.timeline span { width: 12px; height: 12px; border-radius: 3px; background: #1a2350; }
.timeline span.A { background: var(--orange); } .timeline span.B { background: var(--cyan); } .timeline span.miss { opacity: 0.4; } .timeline span.sp { outline: 2px solid var(--gold); }
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 820px) { .vs-grid { grid-template-columns: 1fr; } .vs-mid { order: 3; } }
.vs-mid { display: grid; place-items: center; font: 800 56px var(--display); }
.pick { max-height: 300px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pick button { background: #0d1436; border: 1px solid var(--line2); border-radius: 12px; padding: 6px; cursor: pointer; font-size: 11.5px; font-weight: 700; }
.pick button[aria-pressed='true'] { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta); }
.pick button img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* world */
.world-stage { height: calc(100vh - 170px); min-height: 520px; }
.world-ui { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.world-ui .wbtn { --c: #e9edff; background: linear-gradient(180deg, rgba(22, 20, 52, 0.82), rgba(10, 10, 30, 0.82)); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; color: #e9edff; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.world-ui .wbtn:hover { border-color: color-mix(in srgb, var(--c) 70%, transparent); transform: translateY(-1px); }
.world-ui .wbtn.on { border-color: var(--c); color: var(--c); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, rgba(14, 14, 40, 0.9)), rgba(10, 10, 30, 0.9)); }
.wm-ui { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.wm-card { --c: #fff; --s: 1; position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 12px 6px; border-radius: 12px; background: rgba(12, 12, 32, 0.84); backdrop-filter: blur(6px); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); white-space: nowrap; transition: opacity 0.2s; }
.wm-card > * { scale: var(--s); }
.wm-card b { font: 800 15px var(--display); letter-spacing: 1.2px; color: #fff; }
.wm-card span { font-size: 12px; color: #c9d0f0; }
.wm-card em { font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: 0.5px; }
.wm-card::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 10px; height: 10px; background: rgba(12, 12, 32, 0.84); border-right: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--c) 55%, transparent); transform: translateX(-50%) rotate(45deg); }
.wm-btitle { --c: #fff; position: absolute; left: 0; top: 0; text-align: center; display: flex; flex-direction: column; }
.wm-btitle b { font: 800 22px var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 20px color-mix(in srgb, var(--c) 60%, transparent); }
.wm-btitle span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--c); text-shadow: 0 1px 6px #000; }
.wm-focus { --c: #fff; position: absolute; left: 50%; top: 64px; transform: translateX(-50%); text-align: center; opacity: 0; }
.wm-focus.in { animation: wmIn 0.9s ease forwards; }
.wm-focus h3 { margin: 0; font: 800 clamp(26px, 4vw, 44px) var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6), 0 0 28px color-mix(in srgb, var(--c) 55%, transparent); }
.wm-focus p { margin: 2px 0 0; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--c); text-shadow: 0 1px 8px #000; }
.wm-focus p::before, .wm-focus p::after { content: '—'; margin: 0 10px; opacity: 0.6; }
@keyframes wmIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.wm-panel { --c: #fff; border-color: color-mix(in srgb, var(--c) 50%, transparent); background: linear-gradient(180deg, rgba(24, 22, 58, 0.93), rgba(10, 12, 32, 0.94)); backdrop-filter: blur(8px); }
.wm-ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-right: 22px; }
.wm-ph b { font: 800 22px var(--display); letter-spacing: 1px; }
.wm-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 10px; }
.wm-kv small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.wm-kv b { font-size: 14px; } .wm-kv .wide { grid-column: 1 / -1; }
.wm-x { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.world-tour { position: absolute; right: 12px; top: 56px; z-index: 4; background: #000a; color: #9f9; font: 11px monospace; padding: 3px 8px; border-radius: 6px; }
.world-qa { position: absolute; left: 12px; top: 56px; z-index: 4; background: rgba(5, 8, 22, 0.88); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; font-size: 12px; max-width: 460px; }
.world-qa table { border-collapse: collapse; margin-top: 6px; } .world-qa td, .world-qa th { padding: 2px 8px; border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 640px) { .world-ui { flex-wrap: nowrap; overflow-x: auto; max-width: calc(100% - 24px); padding-bottom: 4px; } .world-ui .wbtn { flex: 0 0 auto; } .world-hint { display: none; } .wm-focus { top: 58px; } .world-panel { left: 12px; right: 12px; width: auto; } }
.world-panel { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: min(340px, calc(100% - 24px)); }
.world-hint { position: absolute; left: 12px; bottom: 12px; z-index: 3; font-size: 12px; color: var(--muted); background: rgba(5, 8, 22, 0.7); padding: 6px 10px; border-radius: 8px; }

/* modal / toast */
.modal-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(2, 4, 12, 0.72); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.modal { width: min(460px, 100%); max-height: 90vh; overflow: auto; }
.modal.wide { width: min(760px, 100%); }
.modal-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100% - 32px)); }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 4px solid var(--cyan); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; box-shadow: var(--shadow); transition: opacity 0.4s, transform 0.4s; }
.toast.ok { border-left-color: var(--green); } .toast.err { border-left-color: var(--red); } .toast.out { opacity: 0; transform: translateX(20px); }

/* docs */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.docs nav a { display: block; padding: 8px 10px; border-radius: 8px; color: #d7ddff; font-weight: 600; }
.docs nav a.on { background: rgba(255, 79, 216, 0.12); color: #ffc2f2; }
.doc h2 { font: 800 30px var(--display); letter-spacing: 1px; margin: 0 0 8px; color: var(--cyan); }
.doc h3 { font: 800 20px var(--display); letter-spacing: 1px; margin: 22px 0 6px; color: var(--gold); }
.doc p, .doc li { color: #cfd6f5; }
.doc code, .doc pre { background: #0a1030; border: 1px solid var(--line); border-radius: 8px; padding: 1px 6px; font-size: 13px; }
.doc pre { padding: 12px; overflow-x: auto; }
.matrix td, .matrix th { text-align: center; padding: 6px; font-size: 12px; }
.matrix .s { background: rgba(74, 222, 128, 0.18); color: #9ff5bd; font-weight: 800; } .matrix .w { background: rgba(255, 77, 106, 0.15); color: #ffb3c0; font-weight: 800; }

/* footer */
.foot { max-width: 1320px; margin: 30px auto 0; padding: 18px 16px 30px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 13px; }
.foot-links { margin-left: auto; display: flex; gap: 8px 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.brow { flex-wrap: wrap; min-width: 0; row-gap: 2px; }
.brow .brow-r { margin-left: auto; }
.brow b { white-space: nowrap; }
.brow-r { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; white-space: nowrap; }
@media (max-width: 640px) {
  .grid.g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brow img { display: none; }
  .brow { flex-wrap: wrap; }
  .li { flex-wrap: wrap; }
  .panel { padding: 14px; }
  .ptitle { font-size: 22px; }
}

/* battle HUD strip (kept outside the 3D view so it never covers the monsters) */
.hud-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px 4px 10px; }
.hud-strip .fighter { background: rgba(5, 8, 22, 0.6); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.hud-strip .fighter.right { text-align: right; }
.hud-strip .nm { font: 800 18px var(--display); letter-spacing: 1px; }
.hud-mid { font: 800 22px var(--display); letter-spacing: 1.5px; color: var(--gold); text-align: center; min-width: 120px; }
.hud-mid.pop { animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.dmg { font-size: 20px !important; }
.dmg.crit { font-size: 24px !important; }
.asset-badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 3; pointer-events: none; }
.asset-badge { font: 700 10px var(--body); letter-spacing: 1px; padding: 3px 7px; border-radius: 6px; background: rgba(5, 8, 22, 0.75); border: 1px solid var(--line2); color: var(--muted); }
.asset-badge.ph { color: #ffb3c0; border-color: rgba(255, 77, 106, 0.5); }
.asset-badge.grey { color: #ffe08a; border-color: rgba(255, 200, 74, 0.5); }
.asset-badge.prod { color: #9ff5bd; border-color: rgba(74, 222, 128, 0.5); }
@media (max-width: 640px) { .hud-strip { grid-template-columns: 1fr 1fr; } .hud-mid { grid-column: 1 / -1; order: -1; font-size: 16px; } }

/* ---- 3D QA page */
.qa .panel { margin: 14px 0; }
.qa-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.qa-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 10px; }
.qa-tile { margin: 0; background: #141a2e; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.qa-tile img { width: 100%; display: block; aspect-ratio: 1; }
.qa-tile figcaption { font: 600 10px var(--body); padding: 3px 5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-tile.bad, .qa tr.bad, .qa li.bad { outline: 2px solid #ff4d6a; color: #ffb3c0; }
.qa-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.qa-viewer { height: 320px; position: relative; }
@media (max-width: 760px) { .qa-grid { grid-template-columns: repeat(4, 1fr); } .qa-split { grid-template-columns: 1fr; } }

.qa-evo-row { margin: 10px 0; }
.qa-evo-name { display: block; font: 700 12px var(--body); margin-bottom: 4px; }
.qa-evo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qa-missing > div { aspect-ratio: 1; display: grid; place-items: center; text-align: center; color: var(--muted); font: 700 12px var(--body); border: 1px dashed var(--line2); }

/* ---------- progression: XP bar, timeline, rewards ---------- */
.xp-panel { --c: var(--cyan); margin-top: 6px; }
.xp-head { display: flex; align-items: baseline; gap: 12px; }
.xp-lv { font: 800 30px var(--num); color: #fff; letter-spacing: 1px; }
.xp-stage { font: 800 16px var(--display); color: var(--c); letter-spacing: 2px; }
.xp-bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line2); overflow: hidden; margin: 8px 0 4px; }
.xp-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff 0%), var(--c)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); transition: width 0.25s ease; }
.xp-bar.big { height: 18px; }
.xp-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.xp-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px dashed var(--line2); }
.xp-next small { width: 100%; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }
.xp-next b { font: 800 18px var(--num); color: var(--c); }
.xp-rw { margin-left: auto; font-weight: 800; color: var(--gold); }
.evo-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.evo-timeline li { display: grid; grid-template-columns: 34px 64px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); position: relative; }
.evo-timeline li:not(:last-child)::after { content: ''; position: absolute; left: 26px; bottom: -11px; width: 2px; height: 10px; background: var(--line2); }
.evo-timeline li.done { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.evo-timeline li.current { border-color: var(--gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent), 0 0 20px color-mix(in srgb, var(--gold) 20%, transparent); }
.evo-timeline li.locked { opacity: 0.72; }
.evo-timeline img { width: 64px; height: 64px; object-fit: contain; }
.et-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line2); }
li.done .et-dot { background: color-mix(in srgb, var(--green) 25%, transparent); color: var(--green); }
li.current .et-dot { background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--gold); }
.et-body { display: flex; flex-direction: column; gap: 2px; }
.et-body b { font: 800 17px var(--display); letter-spacing: 1.5px; }
.et-state { color: var(--muted); }
.rw-chip { display: inline-flex; flex-direction: column; gap: 1px; margin-top: 4px; padding: 5px 10px; border-radius: 10px; border: 1px solid; width: fit-content; }
.rw-chip b { font-size: 12px; letter-spacing: 0.8px; } .rw-chip small { font-size: 11px; opacity: 0.85; }
.rw-chip.pend { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.rw-chip.paid { color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.rw-chip.fail { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.rw-chip.gf { color: var(--muted); border-color: var(--line2); }
.practice-banner { margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line2); background: rgba(255, 255, 255, 0.04); color: #c9d0f0; }
.practice-banner b { color: #fff; letter-spacing: 1px; }
.pb { --c: var(--cyan); text-align: center; padding: 6px 4px; }
.pb-name { font-weight: 800; color: var(--muted); }
.pb-title { font: 800 30px var(--display); letter-spacing: 1.5px; } .pb-title.win { color: var(--gold); } .pb-title.loss { color: #ff8aa0; } .pb-title.prac { color: #c9d0f0; font-size: 22px; }
.pb-xp { font: 800 26px var(--num); color: var(--c); text-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); animation: pbpop 0.6s ease; }
.pb-sub { font-size: 12px; color: var(--muted); }
.pb-nums { font-size: 13px; color: #c9d0f0; }
.pb-lvup { margin-top: 8px; font: 800 22px var(--display); color: var(--gold); animation: pbpop 0.6s ease; }
.pb-evo { margin-top: 6px; font: 800 14px var(--display); color: var(--magenta); letter-spacing: 1px; animation: pbpop 0.6s ease; }
@keyframes pbpop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.evo-big { font: 800 clamp(28px, 5vw, 52px) var(--display); letter-spacing: 1.5px; color: #fff; text-shadow: 0 0 30px rgba(255, 210, 120, 0.7), 0 4px 0 rgba(0, 0, 0, 0.5); animation: pbpop 0.7s ease; }
.evo-card { max-width: 540px; margin: 0 auto; text-align: center; border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.evo-unlocked { font: 800 24px var(--display); color: var(--c); letter-spacing: 1.5px; }
.evo-lines { margin: 6px 0; font-weight: 700; color: #c9d0f0; }
.evo-reward { font: 800 22px var(--num); color: var(--gold); margin-top: 6px; } .evo-reward.paid { color: var(--green); }
.evo-skip { position: absolute; right: 14px; top: 14px; z-index: 5; }
.admin-cards .panel { display: flex; flex-direction: column; gap: 2px; } .admin-cards small { color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; } .admin-cards b { font: 800 24px var(--num); }
.st { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.st-confirmed { color: var(--green); } .st-failed_final { color: var(--red); } .st-grandfathered { color: var(--muted); }
.st-pending_funds, .st-pending_price, .st-earned, .st-pending_recipient, .st-submitted, .st-submitting, .st-ready, .st-failed_retryable { color: var(--gold); }
.hero .loader { z-index: 2; background: radial-gradient(circle at 50% 75%, rgba(138, 92, 255, 0.18), transparent 55%); place-content: end center; padding-bottom: 150px; }
/* production arena */
.arena-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .arena-grid { grid-template-columns: minmax(0, 1fr); } }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.fcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; color: inherit; font: inherit; }
.fcard img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.fcard.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }
.fcard .qtag { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 800; background: var(--gold); color: #1a1200; padding: 2px 6px; border-radius: 6px; }
.sel-box { margin-top: 14px; padding: 12px; border: 1px solid var(--line2); border-radius: 12px; display: grid; gap: 10px; }
.queue-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 200, 74, 0.08); border: 1px solid rgba(255, 200, 74, 0.3); flex-wrap: wrap; }
.queue-box .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); animation: qpulse 1.2s ease-in-out infinite; flex: 0 0 auto; }
@keyframes qpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 74, 0.6); } 50% { box-shadow: 0 0 0 10px rgba(255, 200, 74, 0); } }
.empty { padding: 18px; text-align: center; border: 1px dashed var(--line2); border-radius: 12px; }
.net-pill.main { color: #7dffb0; border-color: rgba(125, 255, 176, 0.4); }
.split-box { border: 1px solid rgba(63, 224, 255, 0.35); background: linear-gradient(135deg, rgba(63, 224, 255, 0.08), rgba(255, 200, 74, 0.06)); border-radius: 14px; padding: 14px; }
.split-big { font: 800 22px/1.2 var(--display); margin-bottom: 10px; }
.split-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; font: 800 12px/28px var(--body); }
.split-bar i { font-style: normal; background: linear-gradient(90deg, #ffc84a, #ffb020); color: #1a1200; padding-left: 10px; }
.split-bar b { background: linear-gradient(90deg, #2fd6ff, #1784e6); color: #001426; text-align: center; }
.launch-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13px; }
.launch-steps li { margin: 4px 0; } .launch-steps li.run { color: var(--gold); } .launch-steps li.ok { color: var(--green); } .launch-steps li.ok::after { content: ' ✓'; } .launch-steps li.bad { color: #ff8fa0; }
.coin-pick { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel2); }
.coin-prev { width: 112px; height: 112px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #0b0f2a; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5); }
.coin-prev img { width: 100%; height: 100%; object-fit: cover; }
.coin-prev.sm { width: 56px; height: 56px; }
