:root {
  --bg: #070b16; --bg2: #0a0f1d; --panel: #0f1730; --card: #111a33; --line: #1f2b4a; --line2: #2a375f;
  --ink: #e8eeff; --mute: #7f8bb0; --cyan: #35e0ff; --orange: #ff9a3c; --violet: #a78bff; --pink: #ff4fa3; --gold: #ffd23f; --teal: #5ef0c8; --red: #ff4d6d; --green: #3dff9a;
  --r0: #b9c3dc; --r1: #4da3ff; --r2: #ffd23f; --epic: #b46bff;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: 'Exo 2', system-ui, 'Segoe UI', Roboto, sans-serif; overflow: hidden; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.hidden { display: none !important; }
.si { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.ic { display: block; flex: none; }
.muted { color: var(--mute); }
small { color: var(--mute); }
body.nomotion *, body.nomotion *::before { transition: none !important; animation: none !important; }

#app { height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto; background: radial-gradient(circle at 15% 0, #111c3a, var(--bg) 55%); }
body.ingame #app { display: none; }
.page { min-height: 0; display: flex; flex-direction: column; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + var(--sat)) calc(18px + var(--sar)) 8px calc(18px + var(--sal)); }
header.top h1 { margin: 0; font-size: clamp(24px, 4.2vw, 34px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wallet { display: flex; gap: 8px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
.chip.st .si { color: var(--gold); }
.chip.cr .si, .chip.cr b { color: var(--teal); }
#screen { flex: 1; min-height: 0; overflow: auto; padding: 8px calc(18px + var(--sar)) 20px calc(18px + var(--sal)); position: relative; }
#nav { grid-row: 2; display: flex; justify-content: space-around; border-top: 1px solid var(--line); background: rgba(7,11,22,.96); padding: 6px 8px calc(6px + var(--sab)); }
#nav .rail-brand { display: none; }
#nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 10px; color: var(--mute); font-size: 13px; font-weight: 600; min-width: 76px; }
#nav button .si { width: 24px; height: 24px; }
#nav button.on { color: var(--cyan); background: #13203f; }
@media (orientation: landscape) {
  #app { grid-template-columns: auto 1fr; grid-template-rows: 1fr; }
  #nav { grid-row: 1; grid-column: 1; flex-direction: column; justify-content: flex-start; gap: 6px; border-top: 0; border-right: 1px solid var(--line); padding: calc(12px + var(--sat)) 8px calc(12px + var(--sab)) calc(8px + var(--sal)); overflow: auto; }
  #nav .rail-brand { display: grid; place-items: center; padding: 4px 0 12px; }
  #nav .rail-brand svg { width: 40px; height: 40px; }
  .page { grid-column: 2; }
  header.top { padding-left: 18px; }
}
@media (orientation: landscape) and (max-height: 480px) {
  #nav button { padding: 6px 8px; min-width: 64px; font-size: 12px; }
  #nav .rail-brand { display: none; }
  header.top { padding-top: calc(8px + var(--sat)); padding-bottom: 4px; }
}
@media (max-width: 380px) { .chip { padding: 6px 9px; } header.top h1 { font-size: 22px; } #nav button { min-width: 64px; } }

.s-sectors { padding: 0 !important; overflow: hidden !important; }
.secmap { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
.secmap svg { display: block; }
.secmap .gl { stroke: #121a30; stroke-width: 1; }
.secmap .dot { fill: #2a3764; }
.secmap .div { stroke: var(--line2); stroke-width: 2; stroke-dasharray: 8 8; }
.secmap .sl { font-size: 22px; font-weight: 700; }
.secmap .sl.c { fill: var(--cyan); }
.secmap .sl.v { fill: var(--violet); }
.secmap .sn { font-size: 34px; font-weight: 800; fill: var(--ink); }
.secmap .sn.dim { fill: var(--mute); }
.secmap .ss { font-size: 18px; fill: var(--mute); font-weight: 500; }
.secmap .route { fill: none; stroke: #24315a; stroke-width: 5; stroke-dasharray: 12 10; stroke-linejoin: round; }
.secmap .hx { fill: #0f1d36; stroke: var(--cyan); stroke-width: 4; }
.secmap .hx.lock { fill: #0d1325; stroke: #24315a; stroke-width: 3; }
.secmap .lk { color: #3d4a72; }
.secmap .lvn { cursor: pointer; }
.secmap .lvn.locked .hx { fill: #0d1325; stroke: #2a375f; }
.secmap .lvn.open:hover .hx { fill: #143052; }
.secmap .lvn.cur .hx { stroke-width: 6; fill: #123050; }
.secmap .halo { fill: rgba(53,224,255,.12); }
.secmap .lid { font-size: 22px; font-weight: 800; fill: var(--cyan); text-anchor: middle; }
.secmap .lvn.locked .lid { fill: #3d4a72; }
.secmap .lname { font-size: 19px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.secmap .lvn.locked .lname { fill: #3d4a72; }
.secmap .son { color: var(--gold); }
.secmap .soff { color: #2a375f; }
.secmap .lvn.locked .soff { color: #1a2442; }
.secmap .nexttag { fill: var(--cyan); }
.secmap .nt { font-size: 18px; font-weight: 800; fill: #0a0f1d; text-anchor: middle; }
.secmap .boostring { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 8 6; animation: bspin 8s linear infinite; transform-box: fill-box; transform-origin: center; }
.secmap .boosttag { fill: var(--green); }
.secmap .bt { font-size: 18px; font-weight: 800; fill: #0a0f1d; text-anchor: middle; }
@keyframes bspin { to { transform: rotate(360deg); } }
.boostb { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--green); border-radius: 8px; background: #3dff9a14; color: var(--green); margin: 8px 0; }
.boostb svg { width: 22px; height: 22px; flex: none; }
.boostb span { display: flex; flex-direction: column; gap: 2px; }
.boostb small { color: var(--ink); opacity: .85; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; border: 2px solid var(--line); color: var(--mute); font-weight: 700; }
.seg button.on { background: var(--cyan); border-color: var(--cyan); color: #0a0f1d; }
.seg.sm button { padding: 7px 14px; flex: none; }

.s-research { padding: 0 calc(12px + var(--sar)) 12px calc(12px + var(--sal)) !important; overflow: hidden !important; display: flex; }
.tree-wrap { position: relative; flex: 1; min-height: 260px; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 30% 40%, #121d3d, #080d1a 70%); border: 1px solid var(--line); touch-action: none; cursor: grab; }
.tree-plane { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tree-lines { position: absolute; left: -3000px; top: -3000px; pointer-events: none; }
.tree-title { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.tree-title .si { width: 30px; height: 30px; }
.tree-title.st { color: var(--gold); }
.tree-title.lb { color: var(--teal); }
.node { position: absolute; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #0d1427; border: 3px solid #2a375f; color: var(--c); transition: transform .12s; }
.node .ic { width: 30px; height: 30px; opacity: .45; }
.node .si { width: 22px; height: 22px; opacity: .45; }
.node.star { border-radius: 8px; }
.node.mid { width: 54px; height: 54px; }
.node.big { width: 64px; height: 64px; border-radius: 10px; }
.node.root { width: 96px; height: 96px; border: 0; background: none; border-radius: 0; }
.node.root svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.node.root .rh1 { fill: #0d1730; stroke-width: 4; }
.node.root .rh2 { fill: none; stroke-width: 2; opacity: .5; }
.node.root.star { color: var(--gold); } .node.root.star .rh1, .node.root.star .rh2 { stroke: var(--gold); }
.node.root.lab { color: var(--teal); } .node.root.lab .rh1, .node.root.lab .rh2 { stroke: var(--teal); }
.node.root .si { position: relative; width: 38px; height: 38px; opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
.node.root.sel { outline: 0; }
.node.open { border-color: var(--c); }
.node.open .ic, .node.open .si { opacity: .85; }
.node.can { box-shadow: 0 0 18px var(--c); }
.node.owned { background: color-mix(in srgb, var(--c) 32%, #0d1427); border-color: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); }
.node.owned .ic, .node.owned .si { opacity: 1; }

.node.sel { transform: translate(-50%, -50%) scale(1.15); outline: 3px solid #fff; outline-offset: 3px; }
.node em { position: absolute; bottom: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 7px; background: var(--gold); color: #0a0f1d; font-style: normal; font-weight: 800; font-size: 13px; display: grid; place-items: center; padding: 0 5px; }
.tree-tools { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; pointer-events: none; flex-wrap: wrap; }
.tree-tools > * { pointer-events: auto; }
.tree-tools .sp { flex: 1; pointer-events: none; }
.node-card { position: absolute; left: 10px; right: 10px; bottom: 10px; max-height: 68%; overflow: auto; padding: 16px 18px; border-radius: 12px; background: rgba(12,19,40,.97); border: 1px solid var(--line2); box-shadow: 0 10px 40px rgba(0,0,0,.5); cursor: default; }
.node-card h3 { margin: 2px 0 4px; font-size: 22px; padding-right: 36px; }
.node-card p { margin: 0 0 10px; }
.node-card h4 { margin: 10px 0 6px; color: var(--mute); font-size: 14px; }
.node-card .x { position: absolute; top: 10px; right: 10px; }
.costs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cl { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.cl > .si { width: 24px; height: 24px; color: var(--teal); }
.cl span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cl span small { color: var(--cyan); }
.cl b { color: var(--green); white-space: nowrap; }
.cl.bad { border-color: var(--red); }
.cl.bad b { color: var(--red); }
.owned { color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.node-card .btn.big { width: 100%; }
@media (orientation: landscape) { .node-card { left: auto; width: min(380px, 46%); top: 60px; bottom: 10px; max-height: none; } }

.ttl { margin: 14px 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ttl small { font-weight: 500; font-size: 14px; }
.inv { display: grid; gap: 8px; max-width: 1180px; }
@media (min-width: 1000px) { .inv { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; } .inv section:nth-child(2) { grid-row: 1 / 3; grid-column: 2; } .inv section:nth-child(3) { grid-row: 2; grid-column: 1; } }
.ingots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.ing b { white-space: nowrap; }
.ing { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.ing span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ing em { font-style: normal; font-weight: 800; font-size: 20px; }
.ing.r1 { border-color: #24456e; }
.ing.r1 em { color: var(--r1); }
.ing.r2 { border-color: #5a4a1a; }
.ing.r2 em { color: var(--r2); }
.ing.zero { opacity: .45; }
.mat-rows { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); flex-wrap: wrap; }
.me { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 170px; }
.me .sw { width: 12px; height: 38px; border-radius: 6px; flex: none; }
.me span { display: flex; flex-direction: column; }
.md { display: flex; gap: 12px; }
.dq { display: flex; align-items: center; gap: 6px; font-weight: 700; min-width: 66px; }
.dq.r0 b { color: var(--r0); }
.dq.r1 b { color: var(--r1); }
.dq.r2 b { color: var(--r2); }
.dq.zero { opacity: .35; }
.lvchip { padding: 3px 11px; border-radius: 8px; border: 2px solid var(--cyan); color: var(--cyan); font-weight: 700; font-size: 13px; }
.relics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.relic { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 10px; background: var(--card); border: 1px solid #4a3a6a; text-align: center; }
.relic small { color: var(--epic); font-weight: 700; }
.relic.zero { opacity: .45; border-color: var(--line); }
.relic.zero small { color: var(--mute); }

.set { max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.set .ttl { margin: 10px 0 2px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; flex-wrap: wrap; }
.help-box { padding: 12px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.help-box h4 { margin: 0 0 6px; }
.help { margin: 0; padding-left: 20px; color: var(--mute); line-height: 1.55; }
.about { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.about .ai svg { width: 56px; height: 56px; }
.about b { letter-spacing: 3px; color: var(--cyan); display: block; }
.about small { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.btn.primary { background: var(--cyan); color: #0a0f1d; box-shadow: 0 0 24px #35e0ff33; }
.btn.primary:disabled { background: #1a2442; color: var(--mute); box-shadow: none; cursor: default; }
.btn.ghost { border: 2px solid var(--line2); }
.btn.ghost.danger { border-color: #5a2233; color: var(--red); }
.btn.big { padding: 15px 22px; font-size: 19px; }
.btn.sm { padding: 6px 12px; font-size: 14px; background: rgba(15,23,48,.9); }
.rb { width: 42px; height: 42px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(15,23,48,.9); border: 1px solid var(--line2); flex: none; }
.rb.wide { width: auto; padding: 0 10px; display: inline-flex; gap: 4px; align-items: center; }
.rb.on { background: var(--cyan); color: #0a0f1d; border-color: var(--cyan); }
.x { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--mute); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }

.sheet-wrap { position: fixed; inset: 0; z-index: 20; background: rgba(3,5,12,0); transition: background .18s; }
.sheet-wrap.open { background: rgba(3,5,12,.7); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow: auto; padding: 18px calc(18px + var(--sar)) 0 calc(18px + var(--sal)); background: #0c1328; border-top: 1px solid var(--line2); border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .18s; max-width: 760px; margin: 0 auto; }
.sheet-wrap.open .sheet { transform: none; }
@media (orientation: landscape) { .sheet { left: auto; right: 0; top: 0; width: min(600px, 64vw); max-width: none; max-height: none; margin: 0; border-radius: 16px 0 0 16px; border-top: 0; border-left: 1px solid var(--line2); transform: translateX(100%); padding-top: calc(16px + var(--sat)); } }
.sh-head { display: flex; justify-content: space-between; align-items: flex-start; }
.sh-head small { color: var(--cyan); font-weight: 700; }
.sh-head h2 { margin: 2px 0 6px; font-size: 28px; }
.stars { display: inline-flex; gap: 3px; }
.stars i { color: #34406a; display: inline-flex; }
.stars i.on { color: var(--gold); }
.stars.big .si { width: 24px; height: 24px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.box { padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.box.boss { border-color: #4a3a6a; }
.ent { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ent b { font-size: 18px; }
.ent p { margin: 2px 0 0; color: var(--mute); font-size: 13px; line-height: 1.35; }
.sheet h4 { margin: 14px 0 8px; display: flex; justify-content: space-between; align-items: center; }
.sheet h4 small { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); }
.drops { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 620px) and (orientation: portrait), (min-width: 1200px) and (min-height: 700px) { .drops { grid-template-columns: 1fr 1fr; } }
.drop { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.drop span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.drop em { font-style: normal; font-weight: 800; white-space: nowrap; }
.drop.r0 em { color: var(--r0); }
.drop.r1 { border-color: #24456e; }
.drop.r1 em { color: var(--r1); }
.drop.r2 { border-color: #5a4a1a; }
.drop.r2 em { color: var(--r2); }
.drop.e { border-color: #4a3a6a; }
.drop.e em { color: var(--epic); }
.threat { padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid #5a2233; margin-bottom: 8px; }
.th-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.th-top b span { color: var(--red); font-size: 22px; margin-left: 6px; }
.threat input { width: 100%; margin: 10px 0 6px; accent-color: var(--red); height: 28px; }
.lockbox { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 10px; background: var(--card); border: 1px dashed var(--line2); color: var(--mute); flex-wrap: wrap; }
.lockbox .si { width: 22px; height: 22px; }
.lockbox span { flex: 1; min-width: 180px; line-height: 1.4; }
.lockbox b { color: var(--ink); }
.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mod { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; background: var(--card); border: 2px solid var(--line); text-align: left; }
.mod i { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; color: #0a0f1d; }
.mod.on { border-color: var(--teal); background: #102236; }
.mod.on i { background: var(--teal); border-color: var(--teal); }
.mod span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mod em { font-style: normal; color: var(--teal); font-weight: 700; font-size: 13px; white-space: nowrap; }
.sh-actions { display: flex; gap: 10px; margin-top: 14px; position: sticky; bottom: 0; padding: 10px 0 calc(14px + var(--sab)); background: linear-gradient(transparent, #0c1328 14px); }
.sh-actions .btn.primary { flex: 1; }
.sh-actions .btn.ghost span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.sh-actions .btn.ghost small { font-size: 12px; font-weight: 500; }
@media (max-width: 460px) { .mods, .duo { grid-template-columns: 1fr; } }

#game { position: fixed; inset: 0; background: var(--bg); overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.hud { position: absolute; display: flex; gap: 8px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud.tl { top: calc(10px + var(--sat)); left: calc(10px + var(--sal)); flex-wrap: wrap; max-width: calc(100% - 120px); gap: 6px; }
.hud.tr { top: calc(10px + var(--sat)); right: calc(10px + var(--sar)); }
.hud.bl { bottom: calc(12px + var(--sab)); left: calc(12px + var(--sal)); gap: 10px; }
.hud.br { bottom: calc(12px + var(--sab)); right: calc(12px + var(--sar)); }
.hud .chip { background: rgba(15,23,48,.85); padding: 6px 9px; font-size: 15px; gap: 5px; }
.hud.br { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#hLives .si { color: var(--cyan); } #hCoins .si { color: var(--gold); } #hWave .si { color: var(--ink); }
.chip.gold { border-color: var(--gold); } .chip.gold .si, .chip.gold b { color: var(--gold); }
.chip.flash { animation: flash .5s; }
@keyframes flash { 0%, 100% { background: rgba(15,23,48,.85); } 30% { background: #5a1022; border-color: var(--red); } }
.ab { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,23,48,.9); border: 2px solid var(--line2); overflow: hidden; }
.ab .si { width: 28px; height: 28px; }
.ab.barrage { color: var(--orange); } .ab.halt { color: var(--violet); } .ab.harvest { color: var(--gold); }
.ab.ready { border-color: currentColor; box-shadow: 0 0 16px -4px currentColor; }
.ab.armed { background: currentColor; }
.ab.armed .si { color: #0a0f1d; }
.ab i { position: absolute; inset: 0; background: conic-gradient(rgba(5,8,15,.75) var(--cd, 0deg), transparent 0); pointer-events: none; }
.ab span { position: absolute; font-weight: 800; color: #fff; font-size: 16px; text-shadow: 0 0 4px #000; }
.ab.off { opacity: .3; }
.next { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 132px; height: 58px; padding: 0 16px; border-radius: 10px; background: var(--red); color: #fff; box-shadow: 0 0 22px #ff4d6d55; }
.next b { font-size: 17px; }
.next small { color: #ffe0e6; font-weight: 700; font-size: 13px; }
.next:disabled { background: #1a2442; box-shadow: none; color: var(--mute); }
.next.pulse { animation: pulse 1.4s infinite; background: var(--cyan); color: #0a0f1d; }
.next.pulse small { color: #0a0f1d; }
@keyframes pulse { 50% { box-shadow: 0 0 34px #35e0ff99; } }

.pop { position: absolute; z-index: 5; display: flex; gap: 6px; padding: 8px; border-radius: 10px; background: rgba(12,19,40,.96); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.pop button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; padding: 6px 4px; border-radius: 8px; border: 2px solid transparent; }
.pop button:hover, .pop button.sel { border-color: var(--cyan); background: #0f2a3d; }
.pop button em { font-style: normal; font-weight: 700; font-size: 13px; }
.pop .price { display: flex; align-items: center; gap: 3px; color: var(--gold); font-weight: 800; font-size: 14px; }
.pop .price .si { width: 14px; height: 14px; }
.pop button { position: relative; }
.pop .ok { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 8px; background: var(--cyan); color: #0a0f1d; display: none; place-items: center; }
.pop .ok .si { width: 16px; height: 16px; }
.pop button.sel .ok { display: grid; }
.pop button.poor { opacity: .45; }
.pop button.poor .price { color: var(--red); }

.tpanel { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: calc(82px + var(--sab)); width: min(440px, calc(100% - 20px)); padding: 12px 14px; border-radius: 12px; background: rgba(12,19,40,.96); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
@media (orientation: landscape) {
  .tpanel { left: auto; right: calc(8px + var(--sar)); transform: none; top: calc(60px + var(--sat)); bottom: auto; max-height: calc(100% - 68px - var(--sat)); width: 330px; overflow: auto; z-index: 7; }
  .hud.bl { flex-direction: column; }
}
@media (orientation: landscape) and (max-height: 430px) {
  .tpanel { padding: 10px 12px; }
  .tp-head .ic { width: 42px; height: 42px; }
  .tp-stats { margin: 6px 0; }
  .tp-stats div { padding: 4px 8px; }
  .ab { width: 50px; height: 50px; }
  .hud.bl { gap: 8px; }
}
.tp-head { display: flex; align-items: center; gap: 10px; }
.tp-head > div { flex: 1; display: flex; flex-direction: column; }
.tp-head b { font-size: 20px; }
.tp-stats { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.tp-stats div { flex: 1; min-width: 60px; padding: 6px 8px; border-radius: 8px; background: var(--card); }
.tp-stats small { display: block; font-size: 12px; }
.tp-target { display: flex; gap: 4px; margin-bottom: 8px; }
.tp-target button { flex: 1; padding: 6px 2px; border-radius: 8px; border: 2px solid var(--line); color: var(--mute); font-size: 13px; font-weight: 700; }
.tp-target button.on { background: var(--pink); border-color: var(--pink); color: #0a0f1d; }
.tp-up { display: flex; gap: 8px; }
.tp-up .up { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #0f2a3d; border: 2px solid var(--cyan); text-align: left; }
.tp-up .up span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tp-up .up small { font-size: 12px; line-height: 1.25; }
.tp-up .up em { font-style: normal; display: flex; align-items: center; gap: 3px; color: var(--gold); font-weight: 800; }
.tp-up .up em .si { width: 15px; height: 15px; }
.tp-up .up.poor { border-color: var(--line2); background: var(--card); }
.tp-up .up.poor em { color: var(--red); }
.maxed { flex: 1; text-align: center; padding: 10px; color: var(--green); font-weight: 700; }
.sell { width: 100%; margin-top: 8px; padding: 8px; border-radius: 8px; border: 2px solid #5a2233; color: var(--red); font-weight: 700; display: flex; justify-content: center; gap: 6px; align-items: center; }
.sell em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; color: var(--gold); }
.sell em .si { width: 15px; height: 15px; }

.banner { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); z-index: 6; padding: 14px 26px; border-radius: 10px; background: rgba(42,11,29,.92); border: 2px solid var(--pink); text-align: center; pointer-events: none; animation: drop .3s; }
.banner b { display: block; font-size: 24px; color: var(--pink); letter-spacing: 2px; }
@keyframes drop { from { transform: translate(-50%, -20px); opacity: 0; } }
.hint { position: absolute; top: calc(64px + var(--sat)); left: 50%; transform: translateX(-50%); z-index: 6; padding: 10px 18px; border-radius: 12px; background: rgba(15,23,48,.95); border: 1px solid var(--cyan); font-weight: 700; pointer-events: none; }
.toast { position: fixed; top: 26%; left: 50%; transform: translateX(-50%); z-index: 50; padding: 10px 18px; border-radius: 10px; background: rgba(15,23,48,.96); border: 1px solid var(--line2); font-weight: 700; pointer-events: none; animation: drop .2s; }

.overlay, .confirm { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(3,5,12,.78); backdrop-filter: blur(4px); }
.confirm { z-index: 60; }
.overlay .card, .confirm .card { width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 22px; border-radius: 14px; background: #0c1328; border: 1px solid var(--line2); }
.confirm p { font-size: 17px; line-height: 1.5; margin: 0 0 8px; }
.card h2 { margin: 0 0 12px; font-size: 28px; }
.card h4 { margin: 14px 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.card .btn.big { width: 100%; }
.loot { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.lt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.lt small { font-size: 11px; line-height: 1.2; }
.lt.r1 { border-color: #24456e; } .lt.r1 b { color: var(--r1); } .lt.r2 { border-color: #5a4a1a; } .lt.r2 b { color: var(--r2); } .lt.e { border-color: #4a3a6a; } .lt.e b { color: var(--epic); }
.result { text-align: center; }
.result .rlvl { color: var(--cyan); font-weight: 700; letter-spacing: 2px; }
.result.lose h2 { color: var(--red); }
.result .stars { justify-content: center; margin-bottom: 10px; }
.result .stars span { color: #34406a; }
.result .stars span.on { color: var(--gold); }
.result .stars .si { width: 44px; height: 44px; }
.rstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.rstats div { padding: 8px; border-radius: 8px; background: var(--card); }
.rstats small { display: block; }
.credits { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid #1f6b55; flex-wrap: wrap; }
.credits .si { width: 30px; height: 30px; color: var(--teal); }
.credits b { font-size: 26px; color: var(--teal); }
.credits small.ns { color: var(--gold); font-weight: 700; }
.result h4 { justify-content: center; gap: 10px; }

.card.split .cl-r > .row2:first-child { margin-top: 14px; }
@media (orientation: landscape) and (max-height: 560px) {
  .overlay { padding: 10px; }
  .overlay .card.split { width: min(860px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; padding: 16px 18px; }
  .card.split .cl-r > .row2:first-child { margin-top: 0; }
  .card.split h2 { font-size: 24px; margin-bottom: 8px; }
  .card.split .cl-r h4 { margin-top: 0; }
  .result .stars .si { width: 34px; height: 34px; }
  .loot { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-height: 46vh; overflow: auto; }
}

* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
.node.inf { border-style: double; border-width: 5px; }
.node em.lv { background: var(--c); }
.node.owned.open { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent), 0 0 0 2px #fff3; }
.node-card .note { font-size: 13px; color: var(--mute); margin: 0 0 10px; }
.tg { cursor: pointer; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { width: 52px; height: 30px; border-radius: 15px; background: #1a2442; border: 2px solid var(--line2); position: relative; flex: none; transition: background .15s, border-color .15s; }
.tg i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mute); transition: transform .15s, background .15s; }
.tg input:checked + i { background: var(--cyan); border-color: var(--cyan); }
.tg input:checked + i::after { transform: translateX(22px); background: #0a0f1d; }
.card .tg { margin-bottom: 8px; }
.bests { display: flex; gap: 14px; flex-wrap: wrap; color: var(--mute); font-weight: 600; margin: 4px 0 2px; }
.bests span { display: inline-flex; align-items: center; gap: 6px; }
.objl, .robj { display: flex; flex-direction: column; gap: 6px; }
.objl div, .robj div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--mute); }
.objl i, .robj i { display: inline-flex; color: #3d4a72; }
.objl div.ok, .robj div.ok, .robj div.had { color: var(--ink); }
.objl div.ok i, .robj div.ok i, .robj div.had i { color: var(--gold); }
.robj { margin-bottom: 10px; text-align: left; }
.robj div.ok { border-color: #5a4a1a; }
.tutt { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tutt div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.tutt div.new { border-color: var(--cyan); box-shadow: 0 0 16px #35e0ff33; }
.drop.m { border-color: #3a4a6a; } .drop.m em { color: var(--ink); }
.drop.v { border-color: #4a2a6a; } .drop.v em { color: #c44dff; }
.lt.m b { color: var(--ink); } .lt.v { border-color: #4a2a6a; } .lt.v b { color: #c44dff; }
.ing.m em { color: var(--ink); } .ing.v { border-color: #4a2a6a; } .ing.v em { color: #c44dff; }
.lockic { width: 44px; height: 44px; display: grid; place-items: center; color: #3d4a72; border-radius: 6px; background: #0b1226; flex: none; }
.lockic .si { width: 22px; height: 22px; }
.inv { display: grid; gap: 8px 24px; max-width: 1180px; }
.inv-a, .inv-b { min-width: 0; }
@media (min-width: 1000px) { .inv { grid-template-columns: 1fr 1fr; align-items: start; } }
.secmap .hx.full { stroke: var(--gold); }
.secmap .lvn.tut.open .hx { stroke: var(--green); }
.secmap .lvn.tut .hx.full { stroke: var(--green); fill: #0f2a22; }
.secmap .sl.g { fill: var(--green); }
.hud.tl { flex-direction: column; align-items: flex-start; }
.hud.tl .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.objs { display: flex; flex-direction: column; gap: 3px; padding: 6px 9px; border-radius: 8px; background: rgba(15,23,48,.78); border: 1px solid var(--line); font-size: 12px; font-weight: 600; max-width: 240px; }
.objs .objr { display: flex; align-items: center; gap: 6px; color: var(--mute); }
.objs .objr i { display: inline-flex; color: #3d4a72; }
.objs .objr i .si { width: 14px; height: 14px; }
.objs .objr span { flex: 1; }
.objs .objr em { font-style: normal; color: var(--mute); }
.objs .objr.had, .objs .objr.ok { color: var(--ink); }
.objs .objr.had i, .objs .objr.ok i { color: var(--gold); }
.objs .objr.fail { color: #8a5060; text-decoration: line-through; }
.objs .objr.fail i { color: var(--red); }
.abhint { position: absolute; left: 0; bottom: calc(100% + 10px); width: 230px; padding: 10px 12px; border-radius: 8px; background: rgba(12,19,40,.96); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.abhint b.barrage { color: var(--orange); } .abhint b.halt { color: var(--violet); } .abhint b.harvest { color: var(--gold); }
.abhint span { font-size: 13px; line-height: 1.35; }
@media (orientation: landscape) { .abhint { left: calc(100% + 10px); bottom: 0; } }
.tipcard { position: absolute; z-index: 8; left: 50%; bottom: calc(90px + var(--sab)); transform: translateX(-50%); width: min(420px, calc(100% - 24px)); padding: 16px 18px; border-radius: 10px; background: rgba(12,19,40,.97); border: 2px solid var(--green); box-shadow: 0 10px 40px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 12px; }
.tipcard p { margin: 0; font-size: 16px; line-height: 1.45; }
.tipcard .btn { align-self: flex-end; }
@media (orientation: landscape) { .tipcard { bottom: auto; top: 50%; transform: translate(-50%, -50%); } }
.pop { flex-wrap: wrap; max-width: calc(100vw - 16px); }
.pophint { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--mute); padding: 2px 4px 0; min-height: 16px; }
.tp-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tp-up .up { min-width: 0; }
.tp-up .up b { white-space: nowrap; }

.next { min-width: 112px; max-width: 46vw; }
.next small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 400px) { .ab { width: 52px; height: 52px; } .hud.bl { gap: 8px; } .next { min-width: 100px; padding: 0 12px; } }

#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #12204a, #070b16 65%); transition: opacity .4s; }
#splash.out { opacity: 0; pointer-events: none; }
.sp-c { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sp-logo { width: 110px; height: 110px; filter: drop-shadow(0 0 24px #35e0ff66); animation: spin 6s linear infinite; }
@keyframes spin { 50% { transform: scale(1.06); filter: drop-shadow(0 0 40px #ff4fa366); } }
#splash h1 { margin: 6px 0 4px; font-size: clamp(30px, 6vw, 46px); font-weight: 800; letter-spacing: 8px; color: var(--cyan); text-shadow: 0 0 22px #35e0ff88; }
.sp-bar { width: min(280px, 70vw); height: 6px; border-radius: 3px; background: #1a2442; overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .15s; }
.sp-lab { letter-spacing: 3px; text-transform: uppercase; font-size: 12px; }
.sp-nova { position: absolute; bottom: calc(22px + var(--sab)); display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13px; font-weight: 600; }
.sp-nova img { width: 22px; height: 22px; border-radius: 6px; }
.ob { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.ob .ob-b { position: absolute; background: rgba(3,5,12,.74); pointer-events: auto; }
.ob .ob-ring { position: absolute; border: 2px solid var(--cyan); border-radius: 8px; box-shadow: 0 0 0 4px #35e0ff33, 0 0 26px #35e0ffaa; animation: obp 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes obp { 50% { box-shadow: 0 0 0 10px #35e0ff11, 0 0 36px #35e0ffcc; } }
.ob .ob-bub { position: absolute; pointer-events: auto; display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(160deg, #13204a, #0c1328); border: 1px solid #35e0ff66; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.ob .ob-av svg { width: 40px; height: 40px; flex: none; }
.ob .ob-tx { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ob .ob-tx p { margin: 0; font-size: 16px; line-height: 1.45; }
.ob .ob-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ob .ob-skip { color: var(--mute); font-size: 13px; font-weight: 600; text-decoration: underline; }
.ob.passive .ob-bub { border-color: var(--line2); opacity: .95; }
.ob.passive .ob-skip { display: none; }
.tp-lvl { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.tp-lvl b { color: var(--gold); }
.xpb { flex: 1; height: 6px; border-radius: 3px; background: #1a2442; overflow: hidden; }
.xpb i { display: block; height: 100%; background: linear-gradient(90deg, #ffb02e, var(--gold)); }
.th-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.th-row input { flex: 1; margin: 0; }
.th-row .rb { width: 36px; height: 36px; }
.node .si { opacity: .55; }
.node.open .si, .node.owned .si { opacity: 1; }
.node.owned { background: color-mix(in srgb, var(--c) 26%, #0d1427); }
.node.star.owned { background: color-mix(in srgb, var(--c) 30%, #0d1427); }

.drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.dt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.dt em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--r0); }
.dt.r1 { border-color: #24456e; } .dt.r1 em { color: var(--r1); }
.dt.r2 { border-color: #5a4a1a; } .dt.r2 em { color: var(--r2); }
.dt.e { border-color: #4a3a6a; } .dt.e em { color: var(--epic); }
.dt.m em { color: var(--ink); } .dt.v { border-color: #4a2a6a; } .dt.v em { color: #c44dff; }
.loot { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.lt { padding: 8px 4px; }
.cl span:empty { display: none; }
.cl > .ic + span:has(small:only-child) { flex: 1; }
.cl { justify-content: space-between; }

.pop .pophint { width: 0; min-width: 100%; height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 16px; }
.pop button { flex: none; }
.pop { min-width: 176px; }

.node .si { opacity: .4; }
.node.locked { border-style: dashed; border-color: #26325a; background: #0a1022; }
.node.open:not(.part) { background: #0d1427; border-color: var(--c); box-shadow: none; }
.node.open:not(.part) .si { opacity: .9; }
.node.can:not(.part) { box-shadow: none; animation: nodecan 1.6s ease-in-out infinite; }
.node.part.can { animation: nodecan 1.6s ease-in-out infinite; }
@keyframes nodecan { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 0%, transparent), 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); } }
.node.part { background: color-mix(in srgb, var(--c) 30%, #0d1427); border-color: var(--c); }
.node.part .si { opacity: 1; }
.node.max { background: var(--c); border-color: color-mix(in srgb, var(--c) 60%, #fff); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); color: #0a0f1d; }
.node.max .si { opacity: 1; }
.node.max::after { content: ''; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #0a0f1d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M-6 0 L-2 4 L6 -5' fill='none' stroke='%233dff9a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border: 2px solid #3dff9a; }
.node em.lv { background: #0a0f1d; color: var(--c); border: 2px solid var(--c); }
.node.max em.lv { display: none; }

#nav button { min-width: 0; flex: 1 1 0; max-width: 92px; }
@media (orientation: landscape) { #nav button { flex: none; max-width: none; min-width: 64px; } }
.bell { position: relative; width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); flex: none; }
.bell .si { width: 22px; height: 22px; }
.bell i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.mults { display: inline-flex; gap: 12px; }
.mults span { display: inline-flex; align-items: center; gap: 3px; color: var(--teal); }
.mults .lm, .mod em .lm { color: var(--gold); }
.mod em { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mod em span { display: inline-flex; align-items: center; gap: 2px; }
.mod em .si, .mults .si { width: 14px; height: 14px; }
.node em.gt { background: #0a0f1d; color: var(--mute); border: 2px solid var(--line2); padding: 0; width: 22px; }
.node em.gt .si { width: 12px; height: 12px; opacity: 1; }
.gate { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--red); background: #ff4d6d12; margin: 6px 0 4px; }
.gate > span { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gate b { font-size: 14px; }
.gate em { font-style: normal; font-weight: 800; color: var(--red); white-space: nowrap; }
.lvlrow { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; }
.lvlrow i { width: 18px; height: 6px; border-radius: 3px; background: #1a2442; }
.lvlrow i.on { background: var(--teal); }
.lvlrow small { margin-left: 6px; color: var(--mute); }
.mhero { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.mhero div { display: flex; flex-direction: column; }
.mhero b { font-size: 30px; font-weight: 800; }
.craft { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.cfrom { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; }
.cfrom .si { width: 34px; height: 34px; color: var(--teal); margin: 5px 0; }
.cplus, .ceq { font-size: 24px; font-weight: 800; color: var(--mute); }
.crw { display: grid; place-items: center; width: 40px; height: 40px; color: var(--teal); }
.crw .si { width: 30px; height: 30px; }
[data-mt] { cursor: pointer; transition: transform .1s; }
[data-mt]:hover { transform: translateY(-2px); }
.chests { max-width: 980px; margin: 0 auto; }
.cintro { display: flex; align-items: center; gap: 8px; }
.chest-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 18px; }
.chestc { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.chestc.r1 { border-color: #24456e; } .chestc.r2 { border-color: #5a4a1a; }
.chestc .cimg .ic { width: min(120px, 24vw); height: auto; }
.chestc .kc { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.chestc .kc em { font-style: normal; font-size: 18px; }
.chestc .btn { width: 100%; }
.gemrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gemc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.gemc span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gemc em { font-style: normal; font-weight: 800; font-size: 22px; color: var(--gold); }
@media (max-width: 560px) { .chest-row { grid-template-columns: 1fr; } .chestc { flex-direction: row; text-align: left; } .chestc .cimg .ic { width: 72px; } .chestc b { flex: 1; } .chestc .btn { width: auto; } .gemrow { grid-template-columns: 1fr; } }
.reveal .card { text-align: center; }
.reveal .cimg { display: grid; place-items: center; }
.reveal .cimg .ic { width: 140px; height: 140px; }
.reveal .rwd { margin: 10px 0 14px; text-align: left; }
.reveal .lt.g { border-color: var(--gold); }
.shake { animation: shake .65s ease-in-out; }
@keyframes shake { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-7deg) scale(1.05); } 40% { transform: rotate(7deg) scale(1.08); } 60% { transform: rotate(-5deg) scale(1.1); } 80% { transform: rotate(4deg) scale(1.12); } }
.gems { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.gemb { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--gold); text-align: left; }
.gemb span { display: flex; flex-direction: column; min-width: 0; }
.gemb b { font-size: 13px; }
.gemb small { color: var(--mute); font-size: 12px; }
.gemb:disabled { opacity: .45; border-color: var(--line); cursor: default; }
.gemb.used { opacity: 1; border-color: var(--green); }
.gemb.used small { color: var(--green); }
.lt.k { border-color: var(--gold); }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.note span { flex: 1; }
.note .si { width: 22px; height: 22px; color: var(--cyan); }
.note .si.flip { transform: rotate(180deg); color: var(--mute); width: 16px; height: 16px; }
.news { padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; }
.news.new { border-color: var(--cyan); }
.news ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; color: var(--ink); }
.subtabs { max-width: 720px; margin: 0 auto 14px; }
.subtabs button .si { width: 18px; height: 18px; }
.guide { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.gcard { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.gcard.row { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gt { display: flex; align-items: center; gap: 12px; }
.gt > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gt small { color: var(--mute); }
.gt small.air { display: inline-flex; align-items: center; gap: 4px; }
.gt small.air.ok { color: var(--green); } .gt small.air.no { color: var(--red); }
.gt small.air .si { width: 14px; height: 14px; }
.gm { display: flex; align-items: center; gap: 10px; }
.gm small { width: 92px; flex: none; color: var(--green); font-weight: 700; font-size: 12px; }
.gm.bad small { color: var(--red); }
.gm > div { display: flex; gap: 6px; flex-wrap: wrap; }
.gi { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #0b1226; border: 1px solid var(--line); }
.gi.en { box-shadow: 0 0 0 2px var(--gold), 0 0 14px #ffd23f88; }
.gtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gtiles > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.gtiles small { color: var(--mute); }
.gtile { width: 54px; height: 54px; }
.gflow .gtile { width: 38px; height: 38px; }
.gens { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.gen { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.gen span { display: flex; flex-direction: column; min-width: 0; }
.gen small { color: var(--mute); }
.gflows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.gflow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.gflow > .si { width: 30px; height: 30px; color: var(--teal); }
.gflow small { flex-basis: 100%; color: var(--mute); }
.gcard.row .gflow { border: 0; padding: 0; background: none; flex-wrap: nowrap; }
.gchev .si { transform: rotate(180deg); width: 16px; height: 16px; color: var(--mute); }
.gmods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.gmod { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.gmod small { color: var(--mute); }
.gmod em { font-style: normal; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: 3px; }
.gmod em .si { width: 14px; height: 14px; }
.btn.ghost:disabled { opacity: .4; cursor: default; filter: saturate(.4); }
.mod em span { flex-direction: row; flex: none; }
.mpick { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.mpick button { padding: 6px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); }
.mpick button.on { border-color: var(--cyan); box-shadow: 0 0 10px #35e0ff55; }
.tree-tools .jump { padding: 6px 10px; } .tree-tools .jump .si { width: 20px; height: 20px; }
.node.asc { border-style: double; border-width: 6px; border-color: var(--gold); box-shadow: 0 0 18px #ffd23f55; }
.node.asc.locked { border-color: #5a4a1a; box-shadow: none; }
.gate .gic { display: grid; place-items: center; width: 34px; height: 34px; color: var(--teal); }
.cores { display: grid; grid-template-columns: 1fr; gap: 8px; }
.corec { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.corec > span { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.corec small { color: var(--mute); font-size: 12px; }
.corec em { font-style: normal; font-weight: 800; font-size: 18px; }
.corec .btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.corec .btn .ic { width: 18px; height: 18px; }
.corec .btn .si { width: 14px; height: 14px; }
.dailies { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.daily { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.daily.ready { border-color: var(--green); box-shadow: 0 0 12px #3dff9a33; }
.daily.claimed { opacity: .55; }
.daily .dt-ic { display: grid; place-items: center; width: 38px; flex: none; color: var(--cyan); }
.daily .dt-ic i .si { width: 26px; height: 26px; }
.daily .dt-tx { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.daily .dt-tx small { color: var(--mute); font-size: 12px; }
.daily .dt-rw { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.daily .dt-rw small { display: inline-flex; align-items: center; gap: 2px; color: var(--teal); font-weight: 700; font-size: 12px; white-space: nowrap; }
.daily .dt-rw .si { width: 12px; height: 12px; }
.daily em { color: var(--green); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 20px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--mute); text-align: center; }
.bdg .si { width: 26px; height: 26px; }
.bdg b { font-size: 18px; }
.bdg small { font-size: 11px; }
.bdg.on { color: var(--gold); border-color: #5a4a1a; box-shadow: 0 0 12px #ffd23f33; }
.badgeget { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--gold); background: #ffd23f12; color: var(--gold); margin-bottom: 8px; }
.badgeget span { display: flex; flex-direction: column; }
.badgeget small { color: var(--ink); }
.intro .card { text-align: left; }
.intro .in-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #13203f; color: var(--cyan); margin-bottom: 8px; }
.intro .in-ic .si { width: 30px; height: 30px; }
.intro h3 { margin: 0 0 6px; font-size: 22px; }
.intro ul { margin: 0 0 14px; padding-left: 18px; line-height: 1.55; }
.btn.sm.primary { background: var(--cyan); color: #0a0f1d; }
.dt-tx .xpb, .gate .xpb, .corec .lvlrow { flex: none; height: 6px; }
.corec .lvlrow { height: auto; margin: 2px 0 0; }
.events { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.evoff { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line2); border-radius: 14px; }
.evoff .si { width: 44px; height: 44px; color: var(--gold); }
.evoff b { color: var(--ink); font-size: 18px; }
.acct { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.acct .who { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 180px; }
.acct .who > .si { width: 28px; height: 28px; color: var(--gold); }
.acct .who span { display: flex; flex-direction: column; }
.acct .who small { color: var(--mute); }
.evgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .evgrid { grid-template-columns: 1fr; } }
.evc { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--cyan); }
.evc.weekly { border-color: var(--violet); }
.evh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.evh small { font-weight: 800; color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; }
.evc.weekly .evh small { color: var(--violet); }
.evt { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: 13px; }
.evt .si { width: 14px; height: 14px; }
.evl { display: flex; align-items: center; gap: 12px; }
.evm { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.evm span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #ff4d6d22; color: var(--red); font-weight: 700; }
.evme { color: var(--gold); font-weight: 700; font-size: 14px; }
.evrw { display: flex; align-items: center; gap: 6px; color: var(--mute); }
.evrules, .evpriv { font-size: 13px; margin: 0; }
.lvboards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.lvb { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.lvb > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lvb small { color: var(--gold); font-size: 12px; }
.lvb .btn .si { width: 16px; height: 16px; }
.board { display: flex; flex-direction: column; gap: 6px; }
.brow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.brow em { font-style: normal; font-weight: 800; width: 40px; color: var(--mute); }
.brow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow small { display: inline-flex; align-items: center; gap: 3px; color: var(--cyan); }
.brow small .si { width: 14px; height: 14px; }
.brow.p1 em { color: var(--gold); } .brow.p2 em { color: #d8dee9; } .brow.p3 em { color: #e08a4a; }
.brow.me { border-color: var(--cyan); background: #13203f; }
.namein { width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line2); background: var(--card); color: var(--ink); font: inherit; font-size: 18px; margin-bottom: 12px; }
.rkstat { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); margin: 10px 0; color: var(--mute); }
.rkstat.ok { color: var(--green); border-color: #1f5a3a; }
.rkstat.bad { color: var(--red); border-color: #5a1f2a; }
.rkstat .si { width: 18px; height: 18px; }
