body{margin:0;background:#0b0e1a}
a{color:#3ee6d0}
button{font-family:inherit}
button:focus-visible{outline:2px solid #3ee6d0;outline-offset:2px}
#root{position:relative;width:100%;height:100vh;min-height:640px;display:flex;flex-wrap:wrap;background:#0b0e1a;color:#e8ecff;font-family:'IBM Plex Sans',system-ui,sans-serif;overflow:hidden;outline:none}
aside{flex:1 1 280px;max-width:320px;box-sizing:border-box;height:100%;padding:20px;display:flex;flex-direction:column;gap:14px;background:#0f1326;border-right:1px solid #252c4d;overflow-y:auto}
.brand{display:flex;flex-direction:column;gap:2px}
.logo{font-family:'Chakra Petch',sans-serif;font-size:26px;font-weight:700;letter-spacing:.08em}
.sub,.muted12{font-size:12px;color:#a3abd1;line-height:1.4}
.panel{display:flex;flex-direction:column;gap:8px;padding:12px;background:#151a33;border:1px solid #252c4d;border-radius:8px}
.row{display:flex;justify-content:space-between;align-items:baseline}
.row13{display:flex;justify-content:space-between;font-size:13px}
.row13.center{align-items:center}
.h18{font-family:'Chakra Petch',sans-serif;font-size:18px;font-weight:600}
.muted13{font-size:13px;color:#a3abd1}
.muted{color:#a3abd1}
.b{font-weight:600}.b13{font-size:13px;font-weight:600}
.bar6,.bar10{background:#252c4d;border-radius:5px;overflow:hidden}
.bar6{height:6px}.bar10{height:10px}
.bar6>div,.bar10>div{height:100%;border-radius:5px;transition:width .2s}
.stats{display:flex;flex-direction:column;gap:10px}
.stat{display:flex;flex-direction:column;gap:5px}
.pips{display:flex;gap:6px}
.pips span{width:14px;height:14px;border-radius:3px;transform:rotate(45deg);border:1px solid #6aa8ff}
.col8{display:flex;flex-direction:column;gap:8px}.col4{display:flex;flex-direction:column;gap:4px}
.cap{font-size:11px;font-weight:600;letter-spacing:.12em;color:#a3abd1}
.relic{display:flex;flex-direction:column;gap:3px;padding:10px;background:#151a33;border:1px solid #252c4d;border-radius:8px}
.inspect{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px dashed #333b63;border-radius:8px;min-height:52px}
.log{display:flex;flex-direction:column;gap:4px;margin-top:auto}
.log .col4 span{font-size:12px;line-height:1.4}
main{flex:999 1 600px;min-width:0;height:100%;display:flex;flex-direction:column}
.stage{position:relative;flex:1 1 auto;min-height:360px}
canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:pointer}
.legend{position:absolute;top:14px;right:14px;display:flex;flex-wrap:wrap;gap:12px;padding:8px 12px;background:rgba(15,19,38,.82);border:1px solid #252c4d;border-radius:8px;font-size:12px;color:#c9cfee;pointer-events:none}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:12px;height:12px;border-radius:2px;display:inline-block}
.legend i.ringi{width:10px;height:10px;border-radius:50%;border:2px solid #a98bff}
.hint{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);padding:6px 14px;background:rgba(15,19,38,.86);border:1px solid #333b63;border-radius:999px;font-size:13px;white-space:nowrap;pointer-events:none}
.dock{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:20px;padding:14px 20px 18px;background:#0f1326;border-top:1px solid #252c4d}
.pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:148px}
.pad button{height:44px;background:#1a2040;border:1px solid #333b63;border-radius:8px;color:#e8ecff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.pad button.focusbtn{background:#151a33;color:#6aa8ff}
.pad svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cards{display:flex;gap:12px;align-items:flex-end}
.card{width:176px;height:128px;box-sizing:border-box;padding:12px;display:flex;flex-direction:column;gap:6px;text-align:left;border-radius:10px;cursor:pointer;color:#e8ecff;border:1px solid #333b63;background:#151a33;transition:transform 120ms ease}
.card .top{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%}
.card .nm{font-family:'Chakra Petch',sans-serif;font-size:16px;font-weight:600}
.card .cost{min-width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:4px;background:#1d3a6e;color:#cfe2ff;font-size:13px;font-weight:600}
.card .ds{font-size:12px;line-height:1.4;color:#c9cfee}
.card .ky{margin-top:auto;font-size:11px;color:#a3abd1}
.w150{width:150px}.tc{text-align:center}
.bigfocus{height:48px;background:#1d3a6e;border:1px solid #6aa8ff;border-radius:10px;color:#e8ecff;font-size:14px;font-weight:600;cursor:pointer}
.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(8,10,20,.74)}
.overlay[hidden]{display:none}
.box{width:100%;display:flex;flex-direction:column;gap:18px;padding:32px;background:#10142a;border:1px solid #2b3358;border-radius:14px;box-sizing:border-box}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tip{display:flex;flex-direction:column;gap:6px;padding:14px;background:#151a33;border-radius:10px}
.tip span:last-child{font-size:13px;line-height:1.5;color:#c9cfee}
.big{font-family:'Chakra Petch',sans-serif;font-weight:700;letter-spacing:.06em;line-height:1}
.cta{height:52px;padding:0 28px;border:none;border-radius:10px;font-family:'Chakra Petch',sans-serif;font-size:18px;font-weight:700;cursor:pointer;align-self:flex-start}
.choice{min-height:168px;padding:16px;display:flex;flex-direction:column;gap:8px;text-align:left;background:#151a33;border:1px solid #333b63;border-radius:12px;color:#e8ecff;cursor:pointer}
.choice .t{font-family:'Chakra Petch',sans-serif;font-size:20px;font-weight:600}
.choice .d{font-size:13px;line-height:1.5;color:#c9cfee}
.choice .k{margin-top:auto;font-size:12px;color:#a3abd1}
.stat4{display:flex;flex-direction:column;gap:2px;padding:10px;background:#151a33;border-radius:8px}
.stat4 b{font-size:22px;font-weight:600}.stat4 span{font-size:12px;color:#a3abd1}
select{background:#151a33;color:#e8ecff;border:1px solid #333b63;border-radius:8px;padding:8px;font-family:inherit}
@media (max-width:760px){.grid3{grid-template-columns:1fr}.card{width:140px}}
