:root{color-scheme:dark;--bg:#080e1d;--surface:#101c32;--raised:#182840;--stroke:#31445a;--text:#f4f7fa;--muted:#b9c8d5;--lime:#ddfb70;--cyan:#72ded5;--coral:#ffad8c;--dark:#07101d;--scroll-track:#101c32;--scroll-thumb:#567188;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-size:17px;line-height:1.55;min-width:280px}body.in-game{overflow:hidden}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{background:var(--scroll-track)}::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:3px solid var(--scroll-track);border-radius:8px}::-webkit-scrollbar-thumb:hover{background:#7892a3}::-webkit-scrollbar-thumb:active{background:#9bb1bd}
a{color:var(--cyan);text-underline-offset:3px}a:hover{color:#b6fff2}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}a:focus-visible,button:focus-visible,textarea:focus-visible{outline:3px solid var(--lime);outline-offset:3px}button:active{transform:translateY(1px)}button[hidden],section[hidden],div[hidden],p[hidden],input[hidden]{display:none!important}
.shell{max-width:1120px;margin:auto;padding:0 24px}.site-header{border-bottom:1px solid var(--stroke);background:var(--bg)}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:inline-flex;align-items:center;gap:11px;font-size:20px;font-weight:850;letter-spacing:-.04em;text-decoration:none;color:var(--text);white-space:nowrap}.brand-mark{width:32px;height:32px;display:grid;place-items:center;background:var(--lime);color:var(--dark);clip-path:polygon(50% 0,95% 25%,95% 75%,50% 100%,5% 75%,5% 25%);font-size:20px}.main-nav{display:flex;align-items:center;justify-content:flex-end;gap:22px;flex-wrap:wrap}.main-nav a{color:var(--muted);font-size:16px;font-weight:650;text-decoration:none}.main-nav a:hover{color:var(--text)}.count{color:var(--cyan);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
main{min-height:65vh}.eyebrow{font:700 14px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--cyan)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(38px,6vw,74px);line-height:1.05;letter-spacing:-.055em;margin-bottom:22px}h2{font-size:clamp(26px,3vw,38px);line-height:1.14;letter-spacing:-.035em}h3{font-size:21px;line-height:1.25}.lead{font-size:clamp(18px,2vw,22px);line-height:1.5;color:var(--muted);max-width:60ch}.muted{color:var(--muted)}.small{font-size:14px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 19px;border-radius:14px;border:1px solid var(--stroke);text-decoration:none;font-size:16px;font-weight:760;line-height:1.2;transition:background .15s,color .15s,border-color .15s}.button.primary{background:var(--lime);border-color:var(--lime);color:var(--dark)}.button.primary:hover{background:#edffa8}.button.secondary{background:var(--raised);color:var(--text)}.button.secondary:hover{border-color:var(--cyan);background:#203853}.button.assist{background:#402b33;border-color:var(--coral);color:#ffddcf}.button.assist:hover{background:#563845}.button.ghost{background:transparent;color:var(--muted)}.button.ghost:hover{color:var(--text);border-color:var(--muted)}.action-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.status{min-height:1.5em;color:var(--cyan);font-size:14px}.loading-line{font-size:14px;color:var(--muted);min-height:22px}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.88fr);gap:46px;align-items:center;padding:70px 0 78px}.hero-copy{max-width:620px}.hero .action-row{margin:27px 0}.play-note{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:15px}.preview{position:relative;min-height:350px;width:100%;border-radius:22px;border:1px solid var(--stroke);background:radial-gradient(circle at 50% 32%,#1b4760 0,#10253e 37%,#101c32 78%);overflow:hidden;padding:25px;display:flex;flex-direction:column;justify-content:space-between}.preview:enabled{cursor:pointer}
.preview:enabled:hover,.preview:focus-visible{border-color:var(--lime)}
.preview::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0,transparent 43px,#72ded511 44px),repeating-linear-gradient(90deg,transparent 0,transparent 43px,#72ded511 44px);pointer-events:none}.preview-top,.preview-bottom{position:relative;display:flex;justify-content:space-between;gap:10px;font:700 13px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--cyan)}.preview-orbit{position:absolute;left:50%;top:49%;width:220px;height:160px;transform:translate(-50%,-50%);border:2px dashed #72ded566;border-radius:50%}.preview-orbit span{position:absolute;width:22px;height:22px;border-radius:6px;background:var(--cyan);box-shadow:0 0 0 5px #72ded522}.preview-orbit span:nth-child(1){left:0;top:50%}.preview-orbit span:nth-child(2){left:28%;top:0}.preview-orbit span:nth-child(3){right:0;top:45%}.preview-orbit span:nth-child(4){right:30%;bottom:0}.preview-core{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);width:51px;height:51px;border:5px solid #c2fffa;border-radius:50%;background:#72ded5}.preview-ship{position:absolute;left:50%;bottom:80px;transform:translateX(-50%);width:0;height:0;border-left:18px solid transparent;border-right:18px solid transparent;border-bottom:44px solid var(--lime)}
.section{padding:58px 0;border-top:1px solid var(--stroke)}.section-intro{max-width:65ch}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.feature-card,.catalog-card,.detail-panel,.guide-hero,.info-panel{border:1px solid var(--stroke);background:var(--surface);border-radius:18px;padding:24px}.feature-card p:last-child{margin-bottom:0}.catalog-card{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:var(--text);min-height:180px}.catalog-card:hover{border-color:var(--cyan);background:var(--raised)}.catalog-card .symbol{font-size:34px;line-height:1;color:var(--cyan)}.catalog-card .meta{font:700 13px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted)}.catalog-card .owned{font-size:14px;color:var(--lime)}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.chip-row{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.chip{display:inline-block;border:1px solid var(--stroke);border-radius:999px;padding:7px 12px;font:700 13px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--cyan)}.site-footer{border-top:1px solid var(--stroke);padding:40px 0;margin-top:65px}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:14px;color:var(--muted)}.footer-links{display:flex;gap:15px;flex-wrap:wrap}
.page-head{padding:64px 0 35px;max-width:820px}.page-head h1{font-size:clamp(38px,5vw,62px)}.detail-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:26px;align-items:start}.card-art{min-height:345px;border:1px solid var(--stroke);border-radius:18px;background:radial-gradient(circle at 50% 45%,#295d69,#10263c 50%,#101c32);display:grid;place-items:center;color:var(--lime);font-size:110px;font-weight:800}.detail-panel .action-row{margin:24px 0}.detail-panel .fact{border-top:1px solid var(--stroke);padding-top:15px}.article{max-width:65ch;margin:0 auto;font-size:18px;line-height:1.7}.article h2{margin:44px 0 16px;font-size:31px;scroll-margin-top:20px}.article h3{margin:27px 0 12px;font-size:23px}.article p,.article ul{margin:0 0 21px}.article li{margin-bottom:8px}.article a{font-weight:650}.guide-hero{margin:40px 0 55px;display:flex;justify-content:space-between;align-items:center;gap:20px}.guide-hero p{margin:0}.guide-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.guide-list a{display:block}.source-list{list-style:none;padding:0}.source-list li{padding:15px 0;border-bottom:1px solid var(--stroke)}.source-list small{display:block;color:var(--muted)}
.catalog-detail{display:flex;flex:1;flex-direction:column;gap:8px;color:var(--text);text-decoration:none}.catalog-detail:hover strong{color:var(--cyan)}.catalog-card .button{margin-top:auto;width:100%}
#play-layer{position:fixed;inset:0;z-index:50;background:var(--bg);display:flex;justify-content:center;align-items:center;height:100dvh;padding:calc(8px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}#play-layer[hidden]{display:none}.game-frame{width:min(100%,650px);height:100%;max-height:850px;display:flex;flex-direction:column;align-items:center;gap:7px}.game-top{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px}.game-top strong{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-top button{min-height:44px;padding:8px 13px;border-radius:10px;border:1px solid var(--stroke);background:var(--raised);color:var(--text)}#playing-panel{display:flex;min-height:0;flex:1;width:100%;flex-direction:column;align-items:center;gap:8px}.arena-space{container-type:size;display:grid;place-items:center;flex:1;min-height:0;width:100%}
#arena{display:block;height:min(100cqh,calc(100cqw * 22 / 13),660px);width:auto;aspect-ratio:13/22;outline-offset:-2px;border-radius:13px;touch-action:none;user-select:none;background:#10253e}.game-controls{width:min(100%,390px);display:flex;flex-direction:column;gap:4px}.game-controls .button{width:100%;min-height:52px}.game-controls small{text-align:center;color:var(--muted)}#end-panel{width:min(100%,470px);margin:auto;min-height:0;overflow:auto;text-align:center;padding:8px 10px}#end-panel h2{font-size:clamp(32px,7vw,48px);margin:12px 0}.end-badge{font:700 14px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--lime);margin:18px 0}.end-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.end-stats div{background:var(--raised);border:1px solid var(--stroke);border-radius:12px;padding:14px}.end-stats strong{display:block;font-size:28px}.end-stats small{color:var(--muted)}.end-actions{display:grid;gap:10px}.share-fallback{width:100%;min-height:70px;margin-top:8px;background:var(--raised);color:var(--text);border:1px solid var(--stroke);border-radius:10px;padding:10px;font-size:14px;resize:none}
@media(max-width:760px){.shell{padding:0 16px}.header-inner{min-height:64px}.main-nav{gap:12px}.main-nav a{font-size:15px}.hero{grid-template-columns:1fr;gap:24px;padding:38px 0 45px}.hero h1{font-size:clamp(38px,10vw,58px)}.preview{min-height:310px}.preview-ship{bottom:45px}.section{padding:42px 0}.card-grid,.guide-list{grid-template-columns:1fr}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-layout{grid-template-columns:1fr}.card-art{min-height:230px}.page-head{padding:42px 0 25px}.guide-hero{align-items:flex-start;flex-direction:column}.article{font-size:18px}.article h2{font-size:27px}}
@media(max-width:380px){.main-nav .optional{display:none}.brand{font-size:18px}.hero h1{font-size:39px}.action-row .button{width:100%}.catalog-card{padding:16px;min-height:155px}.game-top strong{font-size:15px}.game-top .eyebrow{display:none}.game-controls .button{min-height:44px;padding:8px 12px}#game-status{font-size:12px;line-height:1.25;min-height:15px;margin:0;text-align:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}button:active{transform:none}}
@media(forced-colors:active){.brand-mark,.preview-core,.preview-orbit span{forced-color-adjust:auto}.button{border:1px solid ButtonText}}

@media (max-width: 480px) {
  .game-top .eyebrow { display:none }
  .end-actions { grid-template-columns:1fr 1fr; gap:6px }
  #next-pack, #claim-after-fail { grid-column:1/-1 }
  .end-actions .button { min-height:44px; padding:8px }
  #end-panel h2 { margin:4px 0 }
  #end-panel p { margin:6px 0 }
}
