:root{font-family:Inter,Segoe UI,Microsoft YaHei,sans-serif;color:#12272b;background:#e9f0ef;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;overflow-x:hidden}button,input{font:inherit;letter-spacing:0}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid rgba(15,157,143,.32);outline-offset:2px}:root{--ink: #183a43;--muted: #5f7780;--line: #b9d9dd;--paper: #fffef8;--teal: #0fa7a2;--teal-dark: #087f7b;--amber: #ffb62e}.home-shell{min-height:100vh;position:relative;overflow:hidden;display:grid;place-items:center;padding:32px 20px 130px;background:#e8f8fb}.home-stage{position:relative;z-index:2;width:min(1000px,100%)}.brand-lockup{display:flex;align-items:center;gap:16px;margin-bottom:38px}.brand-lockup h1{margin:2px 0 0;font-size:clamp(32px,6vw,58px);line-height:1;color:var(--ink)}.brand-lockup div>span{color:var(--teal-dark);font-weight:800;text-transform:uppercase;font-size:12px}.brand-mark{width:62px;height:62px;display:grid;place-items:center;background:var(--amber);color:#4c3412;border:2px solid #b87819;border-radius:8px;box-shadow:8px 8px #234b47}.name-field{display:block;margin-bottom:18px}.name-field span,.eyebrow{display:block;margin-bottom:7px;color:var(--muted);font-size:13px;font-weight:800;text-transform:uppercase}.name-field input,.join-row input{width:100%;height:46px;padding:0 13px;color:var(--ink);background:#ffffffc2;border:1px solid #9eb3b0;border-radius:5px}.mode-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.mode-card{min-height:168px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:20px;color:var(--ink);text-align:left;border:1px solid #aebfbc;border-radius:7px;background:var(--paper);box-shadow:0 12px 28px #183b391a;transition:transform .16s ease,box-shadow .16s ease}.mode-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px #183b3929}.mode-card strong{margin-top:auto;font-size:21px}.mode-card small{margin-top:4px;color:var(--muted)}.mode-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:6px;margin-bottom:25px}.single-mode .mode-icon{background:#d9f0e6;color:var(--teal-dark)}.brawl-mode .mode-icon,.brawl-emblem{background:#fde1dc;color:#a83b31}.bot-mode .mode-icon,.bot-emblem{background:#dceaf7;color:#285c88}.duo-mode .mode-icon{background:#ffebca;color:#9b5c12}.trio-mode .mode-icon{background:#e5e0fa;color:#4d3cab}.mine-silhouette{position:absolute;inset:auto 0 0;height:116px;background:#9a6338;border-top:13px solid #62a647}.mine-silhouette:before{content:"";position:absolute;inset:24px 8% auto;height:3px;background:#c28a52}.mine-silhouette i{position:absolute;bottom:28px;width:34px;height:24px;background:var(--amber);clip-path:polygon(14% 24%,46% 0,88% 13%,100% 64%,60% 100%,5% 83%)}.mine-silhouette i:nth-child(1){left:10%;transform:scale(.75)}.mine-silhouette i:nth-child(2){left:31%;transform:scale(1.25)}.mine-silhouette i:nth-child(3){left:51%;transform:scale(.6)}.mine-silhouette i:nth-child(4){left:70%;transform:scale(1.05)}.mine-silhouette i:nth-child(5){left:89%;transform:scale(.7)}.game-shell{min-height:100vh;padding:14px;background:#e9f7f8}.game-toolbar{width:min(1280px,100%);min-height:56px;margin:0 auto 10px;display:flex;align-items:center;gap:12px;padding:8px 10px;background:#f8fbfa;border:1px solid #b8c8c5;border-radius:6px}.icon-button{width:40px;height:40px;flex:0 0 auto;display:grid;place-items:center;color:var(--ink);background:#edf3f2;border:1px solid #c5d2d0;border-radius:5px}.icon-button:hover{background:#ddeae8}.round-label{font-weight:800;margin-right:auto;white-space:nowrap}.toolbar-stat{display:flex;align-items:center;gap:6px;height:38px;padding:0 10px;background:#eef4f2;border-radius:5px;font-weight:750;white-space:nowrap}.level-badge{flex:0 0 auto;padding:8px 10px;color:#fff;background:var(--teal-dark);border-radius:5px;font-weight:850;white-space:nowrap}.goal-block{flex:1;min-width:180px;max-width:460px}.goal-block>div{display:flex;align-items:center;gap:6px;margin-bottom:5px;font-size:13px;font-weight:750}.goal-block b{margin-left:auto;color:var(--teal-dark);font-size:15px}.goal-track{display:block;width:100%;height:7px;overflow:hidden;background:#d7e1df;border-radius:4px}.goal-track i{display:block;height:100%;background:var(--amber);border-radius:4px;transition:width .2s ease}.toolbar-action{height:40px;display:flex;align-items:center;gap:6px;padding:0 11px;color:#fff;background:#b33b2f;border:1px solid #8e2c23;border-radius:5px;font-weight:800}.toolbar-action:disabled{color:#7f8d8b;background:#e4eae9;border-color:#cbd5d3;cursor:not-allowed}.buff-stat{color:#5742ad;background:#e9e5fb}.polish-stat{color:#08728b;background:#dff7fa}.stone-stat{color:#6f4a20;background:#efe4d2}.freeze-stat{color:#176584;background:#dff4fb}.freeze-action{background:#2b83a4;border-color:#1d6883}.freeze-action:hover{background:#216f8d}.rival-freeze-control{display:flex;align-items:center;gap:4px}.rival-freeze-control select{width:86px;height:40px;padding:0 6px;color:var(--ink);background:#eff7fa;border:1px solid #7ca8b8;border-radius:5px;font-size:11px;font-weight:750}.rival-freeze-action{background:#235d8f;border-color:#17486f}.rival-freeze-action:hover{background:#194f7d}.refresh-stat{color:#775013;background:#fff0cf}.score-stat{color:#7f5414;background:#fff0cf}.mine-frame{position:relative;width:min(1280px,100%);aspect-ratio:5 / 3;max-height:calc(100vh - 90px);margin:0 auto;overflow:hidden;border:1px solid #397b78;border-radius:6px;background:#a76b3c;box-shadow:0 16px 34px #29666829}.mine-canvas{display:block;width:100%;height:100%;touch-action:manipulation;cursor:crosshair}.game-hint{margin:9px auto 0;color:var(--muted);text-align:center;font-size:13px}.result-overlay,.phase-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#09191ba3}.result-panel{width:min(340px,calc(100% - 32px));padding:28px;display:flex;flex-direction:column;align-items:center;color:var(--ink);background:#f8fbfa;border:1px solid #aebfbc;border-radius:7px;box-shadow:0 18px 40px #00000040}.result-panel>strong{margin:8px 0 2px;font-size:40px}.result-panel p{color:var(--muted)}.result-kicker{color:var(--teal-dark);font-size:13px;font-weight:800;text-transform:uppercase}.phase-overlay{color:#fff;align-content:center;gap:2px;text-align:center;pointer-events:none}.phase-overlay strong{font-size:clamp(58px,12vw,120px);line-height:1}.phase-overlay span{font-size:18px;font-weight:750}.phase-overlay.compact strong{font-size:clamp(28px,5vw,52px)}.reward-toast{position:absolute;top:18px;left:50%;z-index:3;transform:translate(-50%);padding:10px 16px;color:#34250e;background:#ffe4a1;border:1px solid #bd7714;border-radius:5px;box-shadow:0 10px 24px #1a170f38;font-weight:850;white-space:nowrap}.shop-backdrop{position:absolute;inset:0;z-index:4;display:grid;place-items:center;padding:16px;background:#0f21238f}.shop-panel{position:relative;width:min(430px,100%);padding:14px;color:var(--ink);background:#fffef8fc;border:2px solid #b97a21;border-radius:7px;box-shadow:0 18px 44px #22180a66}.shop-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid #dcc8a6}.shop-panel>header span,.shop-panel>header b,.shop-balance{display:flex;align-items:center;gap:6px}.shop-panel>header span{font-size:16px;font-weight:900}.shop-panel>header b{color:#8b5813;font-size:13px}.shop-balance{padding:8px 2px 6px;color:var(--muted);font-size:12px}.shop-pause-note{margin:9px 0 2px;padding:8px 9px;color:#5c4a2d;background:#fff1cf;border-left:3px solid #c17b17;font-size:11px;line-height:1.45}.shop-balance strong{margin-left:auto;color:#8b5813;font-size:15px}.shop-offers{display:grid;gap:6px}.shop-offer{min-height:54px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:8px;padding:6px;background:#f3eee3;border:1px solid #dfd0b8;border-radius:5px}.shop-item-icon{width:34px;height:34px;display:grid;place-items:center;color:#684512;background:#ffe5ad;border-radius:4px}.shop-freeze,.shop-rivalFreeze{color:#176584;background:#dff4fb}.shop-polish{color:#08728b;background:#dff7fa}.shop-strength{color:#5742ad;background:#e9e5fb}.shop-stoneBoost{color:#6f4a20;background:#e7d8c0}.shop-offer>div{min-width:0;display:flex;flex-direction:column}.shop-offer strong{font-size:13px}.shop-offer small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.shop-offer button{min-width:48px;height:34px;padding:0 8px;color:#fff;background:#9b6116;border:1px solid #75480e;border-radius:4px;font-weight:900}.shop-offer button:before{content:"¥";margin-right:1px}.shop-offer button:disabled{color:#77817f;background:#dfe5e3;border-color:#c5cfcc;cursor:not-allowed}.shop-offer button:disabled:before{content:""}.shop-panel>p{margin:8px 2px 0;color:var(--muted);font-size:10px}.level-result-score{width:100%;display:grid;grid-template-columns:1fr auto;gap:7px 14px;margin:18px 0 22px;padding:13px;background:#edf3f2;border-radius:5px}.level-result-score span{color:var(--muted)}.level-result-score b{color:var(--ink);text-align:right}.primary-button,.secondary-button,.back-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border-radius:5px;font-weight:800}.primary-button{color:#fff;background:var(--teal-dark);border:1px solid #075e57}.primary-button:hover{background:#065f58}.primary-button:disabled{cursor:not-allowed;opacity:.45}.secondary-button{color:var(--ink);background:#edf3f2;border:1px solid #aebfbc}.wide{width:100%}.connect-shell,.lobby-shell{min-height:100vh;padding:28px 18px;background:#dcebea}.back-link{color:var(--ink);background:transparent;border:0}.connect-panel,.lobby-panel{width:min(480px,100%);margin:54px auto 0;padding:30px;background:var(--paper);border:1px solid #b7c7c4;border-radius:7px;box-shadow:0 16px 36px #1439361f}.connect-panel h2,.lobby-panel h2{margin:5px 0 8px;font-size:28px}.connect-panel>p{margin:0 0 25px;color:var(--muted)}.rank-profile-card{min-height:62px;display:flex;align-items:center;gap:11px;margin:14px 0 18px;padding:10px 12px;color:#664510;background:#fff1cb;border:1px solid #d5a84d;border-radius:6px}.rank-profile-card>div{display:flex;flex:1;flex-direction:column}.rank-profile-card span{color:#7f5919;font-size:12px;font-weight:800}.rank-profile-card strong{margin-top:1px;color:#3f321b;font-size:16px}.rank-profile-card small{color:#8a744b;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.field-label{display:block;margin:18px 0 7px;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.segmented-control{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;padding:4px;margin-bottom:16px;background:#e7efed;border:1px solid #c4d1cf;border-radius:6px}.segmented-control.duration-control{grid-template-columns:repeat(3,1fr)}.segmented-control button{min-height:38px;padding:0 8px;color:var(--muted);background:transparent;border:0;border-radius:4px;font-weight:800}.segmented-control button.active{color:#fff;background:var(--teal-dark);box-shadow:0 2px 7px #1439362b}.brawl-setup .primary-button{margin-top:5px}.bot-preview{margin:20px 0 16px}.local-rank-note{margin:13px 0 0!important;text-align:center;font-size:12px}.mode-emblem{width:56px;height:56px;display:grid;place-items:center;margin-bottom:18px;color:var(--teal-dark);background:#d9f0e6;border-radius:6px}.divider{display:flex;align-items:center;gap:10px;margin:20px 0;color:var(--muted);font-size:12px}.divider:before,.divider:after{content:"";height:1px;flex:1;background:var(--line)}.join-row{display:grid;grid-template-columns:1fr auto;gap:8px}.join-row input{text-transform:uppercase;font-size:20px;font-weight:850;text-align:center}.form-message{margin:14px 0 0!important;color:#b43a2c!important;font-size:13px}.room-code-block{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line)}.room-code-block>span{color:var(--muted);font-size:13px}.room-code-block strong{margin-right:auto;font-size:28px;letter-spacing:2px}.player-slots{display:grid;gap:8px;margin:20px 0}.rule-summary{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:14px 0 -6px;padding:10px 12px;background:#eaf2f0;border-left:3px solid var(--teal)}.rule-summary span{color:var(--muted);font-size:12px;text-align:right}.player-slot{min-height:64px;display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px dashed #aebfbc;border-radius:5px;color:var(--muted)}.player-slot.filled{color:var(--ink);border-style:solid;background:#f0f5f4}.player-slot>div{display:flex;flex-direction:column;flex:1}.player-slot small{color:var(--muted);margin-top:2px}.seat-dot,.score-strip i{display:inline-block;width:10px;height:10px;border-radius:50%;background:#cad5d3}.lobby-note{margin:14px 0 0;color:var(--muted);text-align:center;font-size:12px}.online-toolbar .round-label{margin-right:0}.score-strip{flex:1;display:flex;justify-content:center;gap:7px;min-width:0}.score-strip span{display:flex;align-items:center;gap:6px;padding:7px 9px;white-space:nowrap;background:#edf3f2;border:1px solid transparent;border-radius:5px;font-size:13px;font-weight:750}.score-strip span.is-me{border-color:var(--teal);background:#e0f3ef}.score-strip em{color:#8a5c17;font-size:10px;font-style:normal}.multiplayer-result>strong{font-size:27px;text-align:center}.final-scores{width:100%;display:grid;gap:7px;margin:18px 0}.final-scores span{display:flex;justify-content:space-between;padding:9px 10px;background:#edf3f2;border-radius:4px}.rank-award{width:100%;display:grid;grid-template-columns:auto 1fr;gap:2px 8px;margin:0 0 18px;padding:11px 12px;color:#59451f;background:#fff1cb;border:1px solid #d5a84d;border-radius:5px}.rank-award svg{grid-row:1 / 3;align-self:center}.rank-award span{font-size:12px;font-weight:850}.rank-award strong{font-size:14px}.rank-award b{grid-column:1 / -1;margin-top:5px;padding-top:6px;color:#087f7b;border-top:1px solid #e2c77e;text-align:center}.rank-award.promoted{background:#e0f3ef;border-color:var(--teal)}@media (max-width: 720px){.home-shell{place-items:start center;padding-top:28px}.brand-lockup{margin-bottom:26px}.brand-mark{width:52px;height:52px;box-shadow:5px 5px #234b47}.mode-grid{grid-template-columns:1fr}.mode-card{min-height:94px;display:grid;grid-template-columns:52px 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;justify-items:start;padding:14px}.mode-icon{grid-row:1 / 3;margin:0}.mode-card strong{margin:0;align-self:end}.mode-card small{align-self:start}.mine-silhouette{height:86px}.game-shell{padding:8px}.game-toolbar{gap:6px;min-height:50px;margin-bottom:7px}.toolbar-stat{padding:0 7px;font-size:12px}.solo-toolbar{flex-wrap:wrap}.solo-toolbar .goal-block{order:5;flex-basis:100%;max-width:none}.solo-toolbar .level-badge{margin-right:auto}.solo-toolbar .buff-stat{display:none}.toolbar-action{padding:0 8px}.round-label{font-size:13px}.mine-frame{max-height:none}.score-strip{order:5;flex-basis:100%;justify-content:flex-start;overflow-x:auto}.online-toolbar{flex-wrap:wrap}.online-toolbar .toolbar-stat{margin-left:auto}.online-toolbar .refresh-stat,.online-toolbar .buff-stat,.online-toolbar .polish-stat{margin-left:0}.brawl-toolbar{flex-wrap:wrap}.brawl-toolbar .round-label{margin-right:auto}.brawl-toolbar .refresh-stat{display:none}.connect-panel,.lobby-panel{margin-top:24px;padding:22px}.rule-summary{align-items:flex-start;flex-direction:column;gap:3px}.rule-summary span{text-align:left}.shop-backdrop{padding:6px;place-items:center}.shop-panel{width:100%;padding:7px}.shop-panel>header{padding-bottom:5px}.shop-balance{padding:4px 2px}.shop-offers{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.shop-offer{min-height:84px;grid-template-columns:28px 1fr;grid-template-rows:auto auto;gap:4px;padding:5px}.shop-item-icon{width:28px;height:28px}.shop-offer button{grid-column:1 / -1;width:100%;height:28px}.shop-offer small{display:none}.shop-panel>p{display:none}}@media (min-width: 721px) and (max-width: 920px){.mode-grid{grid-template-columns:repeat(2,1fr)}}.home-audio{position:absolute;top:20px;right:20px;z-index:4}.sound-pill{min-height:38px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;color:#16403d;background:#f8fbfae6;border:1px solid #aebfbc;border-radius:999px;font-size:13px;font-weight:800;white-space:nowrap;box-shadow:0 6px 16px #1439361f;transition:background .16s ease,color .16s ease}.sound-pill:hover{background:#fff}.sound-pill.is-muted{color:#6d7b79;background:#f0f4f3eb}.sound-toggle{color:#16403d}.sound-row{display:flex;justify-content:center;margin-top:14px}.audio-hint{display:inline-flex;align-items:center;gap:8px;margin-top:26px;padding:10px 14px;color:#4c3412;background:#ffe9b8;border:1px dashed #c08a2c;border-radius:6px;font-size:13px;font-weight:800}.audio-hint:hover{background:#ffe1a0}@media (max-width: 720px){.home-audio{top:12px;right:12px}.sound-pill span{display:none}.sound-pill{padding:0 11px}.sound-toggle{width:36px;height:36px}}.mine-silhouette i{width:52px;height:52px;bottom:14px;background-color:transparent;background-size:contain;background-repeat:no-repeat;background-position:center bottom;clip-path:none}.mine-silhouette i:nth-child(1){transform:scale(.8)}.mine-silhouette i:nth-child(2){transform:scale(1.25)}.mine-silhouette i:nth-child(3){transform:scale(.85)}.mine-silhouette i:nth-child(4){transform:scale(1.1)}.mine-silhouette i:nth-child(5){transform:scale(.7);width:42px;height:42px}
