*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{color:#f4efe4;background:radial-gradient(900px 480px at 8% -10%,#3ec5ff29,#0000 55%),radial-gradient(700px 420px at 100% 0,#e07a3d29,#0000 50%),#070b14;font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}button{font:inherit;cursor:pointer}#root{min-height:100vh}.app{-webkit-user-select:none;user-select:none;min-height:100vh}.topbar,.shop-head,.hud,.result-actions,.confirm,.wave-readout,.who,.chips,.panel-label{align-items:center;gap:12px;display:flex}.topbar{color:#c9d3e4;justify-content:space-between;padding:16px 22px 0}.brand,h1,h2,.score{font-family:KaiTi,STKaiti,Songti SC,serif}.brand{color:#f6efe2;letter-spacing:.08em}.volumes{color:#c9d3e4;align-items:center;gap:6px;margin-left:auto;font-size:13px;display:flex}.volumes input[type=range]{accent-color:#76b5dc;width:84px}.title,.result{grid-template-columns:minmax(220px,360px) minmax(0,560px);align-items:center;gap:28px;width:min(980px,100% - 40px);margin:28px auto 48px;display:grid}.portrait{filter:drop-shadow(0 18px 28px #00000073);width:min(340px,100%);height:auto;animation:3.4s ease-in-out infinite floaty}.portrait.fallen{filter:grayscale(.75)brightness(.72)drop-shadow(0 18px 28px #00000073);animation:none}@keyframes floaty{50%{transform:translateY(-8px)}}.eyebrow{color:#7fd7ff;letter-spacing:.18em;margin:0 0 6px;font-size:13px}h1,h2,h3,p{margin:0}h1{font-size:56px;font-weight:500;line-height:1.1}h2{font-size:36px;font-weight:500}.title-copy ul,.rules-list{color:#d5dced;margin:18px 0 22px;padding-left:18px;line-height:1.7}.title-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.primary,.text-btn,.rotate-fab,.offer button{border:0;border-radius:999px}.primary{color:#2a1408;background:linear-gradient(#ffb15a,#e07a3d);padding:12px 22px;font-weight:700;box-shadow:0 10px 24px #e07a3d47}.primary:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}.spin-btn{z-index:6;color:#2a180c;pointer-events:auto;background:#f0c36a;border:0;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:700;line-height:1;position:absolute;transform:translate(-50%)}.text-btn,.offer button,.rotate-fab{color:#f4efe4;background:#ffffff0f;padding:8px 14px}.text-btn:disabled,.offer button:disabled{opacity:.4;cursor:not-allowed}.shop-title{justify-content:space-between;align-items:center;gap:8px;display:flex}.shop-title h3{margin:0}.rotate-fab{z-index:30;color:#2a180c;background:#f0c36a;font-weight:700;position:fixed}.shop{width:min(1180px,100% - 28px);margin:12px auto 32px}.shop-head{justify-content:space-between;margin-bottom:14px}.hp-readout,.who{gap:8px}.hp-track{background:#ffffff14;border-radius:999px;width:180px;height:12px;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff14}.hp-fill{background:linear-gradient(90deg,#ff5d73,#ffb15a);width:100%;height:100%}.hp-track.danger .hp-fill{background:#f35}.shop-layout{grid-template-columns:minmax(0,1fr) 340px;gap:18px;display:grid}.bag-panel,.offers,.pause-card,.offer{background:#0c1220c7;border:1px solid #f0c36a2e;border-radius:18px}.bag-panel,.offers{padding:14px}.panel-label,.offer-note,.tip,.quiet{color:#b7c3d8;font-size:13px}.panel-label{justify-content:space-between;margin-bottom:10px}.board-scroll{max-height:72vh;padding:4px 4px 36px;overflow:auto}.board-hbar{display:none}.board{touch-action:none;background:radial-gradient(circle at 15% 0,#ffdcaa14,#0000 42%),linear-gradient(#3c2e23,#22180f);border-radius:16px;margin:0 auto;position:relative;box-shadow:inset 0 0 0 2px #f0c36a47,0 16px 40px #00000047}.slot,.placed,.preview{position:absolute}.slot{box-sizing:border-box}.slot.owned{background:linear-gradient(#fff4dc0f,#0000002e);border-radius:8px;box-shadow:inset 0 0 0 1px #f0c36a38}.slot.empty{background:#0000001f;border-radius:8px;box-shadow:inset 0 0 0 1px #f0c36a14}.slot.frozen{color:#f4fbff;letter-spacing:.12em;background:linear-gradient(160deg,#d6eeffb8,#4f94c68c);border-radius:8px;justify-content:center;align-items:center;font-size:12px;display:flex;box-shadow:inset 0 0 0 1px #e8f8ffcc}.offer-tag{color:#f0c36a;letter-spacing:.08em;background:#f0c36a2e;border-radius:999px;margin-bottom:4px;padding:1px 7px;font-size:12px;display:inline-block}.events{width:min(1080px,100% - 32px);margin:28px auto 48px}.event-lead{color:#c9d3e4;margin:8px 0 18px}.event-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.event-card{width:100%;min-height:240px;font:inherit;text-align:left;color:#f6efe2;cursor:pointer;background:#0c1220b8;border:1px solid #f0c36a61;border-radius:16px;flex-direction:column;align-items:stretch;padding:18px 16px 16px;display:flex}.event-card:hover{background:#141e30e0;border-color:#f0c36acc}.event-name{letter-spacing:.06em;font-family:KaiTi,STKaiti,Songti SC,serif;font-size:22px}.event-body{margin:12px 0 0;font-size:15px;line-height:1.6}.event-flavor{color:#9eb0c8;margin:12px 0 0;font-size:13px;font-style:italic;line-height:1.55}.event-card:disabled{cursor:default}.event-result{z-index:30;background:#05080eb8;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.event-result-card{color:#f6efe2;background:#0c1220f5;border:1px solid #f0c36a73;border-radius:16px;width:min(460px,100%);padding:22px 20px 18px}.event-result-card h2{margin:0 0 12px;font-size:26px}.event-result-text{margin:0 0 16px;font-size:16px;line-height:1.6}.ending{font-size:28px;line-height:1.45}.victory{flex-direction:column;align-items:center;gap:18px;width:min(1100px,100% - 32px);margin:12px auto 40px;display:flex}.victory-stage{flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:12px;display:flex}.victory .portrait{width:min(260px,70vw)}.medal,.whale{display:block}.history-card{flex-direction:column;gap:14px;width:min(560px,100%);display:flex}.history-card h3{color:#f0c36a;margin:0 0 6px;font-size:16px}.history-card p{margin:0;line-height:1.5}.history-medal{align-items:center;gap:12px;display:flex}.history-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.history-list li{justify-content:space-between;gap:12px;display:flex}.difficulty-step{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.difficulty-step button{color:#f4efe4;cursor:pointer;background:#ffffff14;border:0;border-radius:999px;width:44px;height:44px;font-size:22px}.difficulty-step button:disabled{opacity:.35;cursor:default}.difficulty-step strong{color:#f0c36a;text-align:center;font-size:18px}.rules-card{flex-direction:column;width:min(680px,100%);max-height:min(80vh,820px);display:flex;overflow:hidden}.rules-tabs{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;display:grid}.rules-tabs button{color:#d5dced;cursor:pointer;background:#ffffff0f;border:0;border-radius:999px;padding:8px 10px}.rules-tabs button[aria-selected=true]{color:#1a120c;background:linear-gradient(#ffb15a,#e07a3d)}.rules-body{min-height:0;overflow:auto}.rules-note{color:#d5dced;margin:0 0 12px;line-height:1.5}.link-rules{flex-direction:column;gap:12px;margin:0 0 16px;padding:0;list-style:none;display:flex}.link-rules p{margin:0;line-height:1.5}.link-rules strong{color:#f0c36a;margin-right:8px}.link-rules span{color:#9eb0c8}.link-bar{color:#f6efe2;flex-direction:column;gap:4px;margin:0 0 8px;padding:0;font-size:13px;line-height:1.45;list-style:none;display:flex}.link-bar b{color:#f0c36a;margin-right:6px}.link-bar span{color:#9eb0c8;margin-right:6px}.event-choices{flex-direction:column;gap:8px;display:flex}.event-choice{width:100%;font:inherit;text-align:left;color:#f6efe2;cursor:pointer;background:#ffffff0a;border:1px solid #f0c36a47;border-radius:12px;align-items:center;gap:10px;padding:8px 10px;display:flex}.event-choice:hover{border-color:#f0c36acc}.placed{z-index:2;pointer-events:none}.placed.selected{filter:drop-shadow(0 0 5px #f0c36af2)}.preview{z-index:3;pointer-events:none;border-radius:8px}.preview.ok{background:#5adc8c52}.preview.bad{background:#ff505a52}.preview.merge{background:#f0c36a6b;box-shadow:inset 0 0 0 2px #f0c36a}.bag-hint{color:#f6efe2b8;pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.tip{min-height:1.4em;margin-top:10px}.offers{flex-direction:column;gap:10px;display:flex}.offers.drop-ready{border-color:#f0c36a;box-shadow:inset 0 0 0 2px #f0c36a73}.offer{touch-action:none;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:10px;display:grid}.offer.dim{opacity:.35}.offer p{color:#d5dced;font-size:13px;line-height:1.45}.offer button{margin-top:6px}.glyph{pointer-events:none;display:block}.float-piece{z-index:25;pointer-events:none;position:fixed}.confirm{flex-wrap:wrap;justify-content:flex-start}.confirm span{flex:12em;line-height:1.45}.score{color:#ffb15a;margin:8px 0;font-size:42px}.record{color:#f0c36a;font-weight:700}.result-actions{margin-top:16px}.battle{background:#070b12;flex-direction:column;height:100vh;display:flex;position:relative}.hud{z-index:2;background:linear-gradient(#121a2e,#121a2eeb);flex-wrap:wrap;justify-content:space-between;padding:10px 14px}.chips{flex-wrap:wrap;min-height:28px}.stage{flex:1;min-height:0;position:relative}.stage canvas{width:100%;height:100%;position:absolute;inset:0}.pause{z-index:5;background:#05080eb8;place-items:center;display:grid;position:absolute;inset:0}.pause-card{flex-direction:column;gap:12px;width:min(360px,100% - 32px);padding:22px;display:flex}.pause-card p{color:#d5dced;line-height:1.6}@media (width<=900px){html,body{overflow-x:clip}.topbar,.shop-head,.hud,.wave-readout,.who{flex-wrap:wrap;align-items:flex-start}.title,.result,.shop-layout{grid-template-columns:minmax(0,1fr)}.shop{width:min(1180px,100% - 16px)}.bag-panel,.offers,.board-scroll{min-width:0;max-width:100%}.board-scroll{scrollbar-width:none;padding-bottom:8px}.board-scroll::-webkit-scrollbar{height:0}.board-hbar{touch-action:none;background:#ffffff1a;border-radius:999px;height:22px;margin:8px 0 0;display:block;position:relative}.board-hbar-thumb{background:#f0c36a;border-radius:999px;height:16px;position:absolute;top:3px;left:0;box-shadow:0 0 0 1px #00000040}.offer{touch-action:pan-y}html.shop-drag-scroll,html.shop-drag-scroll body,html.shop-drag-scroll .offer{touch-action:none}.hp-track{width:min(180px,46vw)}h1{font-size:40px}h2{font-size:30px}.portrait{width:min(240px,70vw);margin:0 auto}.event-grid{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.portrait{animation:none}}
