:root{--paper:#f5f2e9;--card:#fffdf6;--ink:#183f4a;--muted:#61787b;--line:#dddcd0;--coral:#e77e70;--teal:#258b83;--gold:#e1ad35;--soft-teal:#e2eeE7;--shadow:0 4px 16px #183f4a08;color-scheme:light;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:280px;background:radial-gradient(ellipse at 85% 10%,#e9eee6 0,transparent 40%),var(--paper)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button,a{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #117f8a}button:disabled{cursor:default}button{min-height:44px;border:1px solid var(--line);background:var(--card);border-radius:12px}button:hover:not(:disabled){filter:brightness(.98)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.app{width:min(100%,470px);margin:auto;padding:0 20px max(16px,env(safe-area-inset-bottom))}.topbar{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:76px}.back-link{display:flex;align-items:center;gap:6px;min-height:44px;min-width:54px;text-decoration:none;color:var(--muted);font-size:13px}.back-link>span{font-size:29px;font-weight:300;line-height:1}.brand{display:flex;align-items:center;gap:7px;font-size:15px;font-weight:750;letter-spacing:1px;white-space:nowrap}.brand-mark{display:flex;gap:2px;align-items:flex-end;width:18px;height:20px;border-bottom:2px solid var(--ink);padding-bottom:3px}.brand-mark i{display:block;width:5px;background:var(--coral);height:8px;border-radius:1px}.brand-mark i:nth-child(2){height:13px;background:var(--teal)}.brand-mark i:nth-child(3){height:10px;background:var(--gold)}.top-actions{display:flex;gap:0}.quiet-button{padding:0 7px;border:0;background:transparent;min-width:44px;font-size:13px;color:var(--muted)}.eyebrow{margin:0;font-size:11px;font-weight:650;letter-spacing:1.5px;color:var(--muted)}.intro-panel{padding:30px 3px 8px}.intro-panel>.eyebrow{display:flex;align-items:center;gap:8px}.intro-panel>.eyebrow>span{width:6px;height:6px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px #258b8310}.intro-panel h1{font-size:clamp(36px,10vw,46px);line-height:1.32;letter-spacing:1px;margin:20px 0 15px;font-weight:800}.coral-text{color:#c86558}.intro-lead{font-size:14px;line-height:1.85;color:var(--muted);margin:0}.harbor-art{position:relative;margin:18px -3px 20px;background:linear-gradient(transparent 65%,#e7eee6 65%);border-radius:20px;overflow:hidden}.harbor-art svg{display:block;width:100%;height:auto}.art-stamp{position:absolute;right:7px;top:9px;writing-mode:vertical-rl;font-size:10px;color:#7d918b;letter-spacing:3px}.intro-rules{border-top:1px solid var(--line);padding:13px 0 12px}.intro-rules p{margin:0 0 10px;display:flex;gap:12px;line-height:1.7;font-size:12px}.intro-rules b{font:600 11px/1.9 system-ui;color:var(--teal);letter-spacing:1px}.primary-button{width:100%;min-height:50px;background:var(--ink);color:#fffdf6;border-color:var(--ink);font-size:15px;font-weight:650;letter-spacing:1px}.start-button{display:flex;align-items:center;justify-content:space-between;padding:0 22px}.start-button span{font-size:22px;font-weight:400}.intro-foot{text-align:center;font-size:11px;color:var(--muted);margin:13px 0}.page-footer{display:flex;justify-content:space-between;gap:8px;font-size:9px;letter-spacing:1px;color:#7b8f8b;border-top:1px solid var(--line);padding:14px 0 0;margin:20px 0 0}.level-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:8px}.level-heading .eyebrow{font-size:10px;letter-spacing:1px}.level-heading h1{font-size:21px;margin:6px 0 0;display:flex;gap:10px;align-items:center}.level-heading h1>span:first-child{font:400 21px/1.2 Georgia,serif;color:#7e928b}.progress-number{font-size:11px;white-space:nowrap;color:var(--muted)}.progress-number b{font:500 24px Georgia,serif;color:var(--teal)}.progress-track{height:3px;background:#dfE3d8;overflow:hidden;border-radius:4px;margin-bottom:15px}.progress-track>span{height:100%;display:block;background:var(--teal);transition:width .3s ease}.order-card{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:12px 13px;box-shadow:var(--shadow);margin-bottom:14px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:8px;font-size:10px;color:var(--muted)}.section-heading h2{font-size:12px;font-weight:750;margin:0;color:var(--ink);letter-spacing:.4px}.section-heading small{font-size:10px;font-weight:400;letter-spacing:0;margin-left:5px;color:var(--muted)}.boat-icon{font-size:18px;line-height:1;color:var(--teal)}.current-target{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:700;margin:9px 0 12px}.current-target>span:first-child{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.current-target .shape{width:17px;height:17px}.remaining-text{margin-left:auto;font-size:10px;font-weight:400;color:var(--muted);white-space:nowrap}.order-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.order-chip{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;height:32px;border:1px solid #e4e5dB;border-radius:8px;background:#f3f3eb;color:var(--muted)}.order-chip .shape{width:14px;height:14px}.order-chip .order-index{font:500 8px/1 system-ui}.order-chip.is-current{border:2px solid var(--ink);background:#fffdf6;box-shadow:0 2px 0 #183f4a12}.order-chip.is-loaded{opacity:.38;background:transparent;border-style:dashed}.order-chip.is-loaded .shape{opacity:.65}.shape{display:inline-block;flex:none;width:24px;height:24px;vertical-align:middle}.shape-R{background:var(--coral);border-radius:50%;box-shadow:inset 0 -3px 0 #a34f4212}.shape-G{background:var(--teal);border-radius:4px;box-shadow:inset 0 -3px 0 #083d3812}.shape-Y{background:var(--gold);clip-path:polygon(50% 0,100% 95%,0 95%);border-radius:1px}.buffer-section{margin-bottom:14px}.slots{display:grid;grid-template-columns:1fr 1fr;gap:10px}.slot{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;border:1px dashed #b4c0b6;border-radius:11px;background:#ecefe6;color:#7f9088;font-size:11px;position:relative}.slot>small{position:absolute;left:9px;top:7px;font:500 9px system-ui;color:#91a199}.slot.is-filled{border-style:solid;background:var(--card);color:var(--ink)}.slot .shape{width:21px;height:21px}.queues-section{margin-bottom:9px}.flow-label{font-size:9px}.queues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.lane{position:relative;border-radius:14px;background:#e9eBdf;padding:9px 6px 10px;min-height:205px;display:flex;flex-direction:column;align-items:stretch}.lane-title{display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px;font-size:10px;color:var(--muted)}.lane-title b{font:650 13px system-ui;color:var(--ink)}.lane-title>span{font-size:9px}.queue-head{position:relative;display:flex;flex-direction:column;gap:7px;justify-content:center;align-items:center;border:1px solid #ccd5c9;border-radius:11px;min-height:75px;background:var(--card);box-shadow:0 3px 0 #183f4a08;padding:9px 2px;margin-bottom:8px;font-size:11px;font-weight:650}.queue-head .shape{width:28px;height:28px}.queue-head[data-direct=true]{border-color:#86b8a9}.queue-head[data-direct=true]::after{content:"直装";position:absolute;right:3px;top:3px;font-size:8px;letter-spacing:.4px;color:#258b83;background:#e2eee7;border-radius:4px;padding:2px 3px}.queue-head[aria-disabled=true]{background:#f0f0e7;color:#81918a;border-style:dashed;box-shadow:none}.queue-head[aria-disabled=true] .shape{opacity:.7}.queue-head:disabled{opacity:.65}.queue-head.is-hint{outline:3px solid var(--gold);outline-offset:2px;animation:hint-glow 1.4s ease-in-out infinite}.hint-badge{position:absolute;left:0;right:0;bottom:-7px;margin:auto;min-width:32px;width:max-content;padding:2px 7px;font-size:9px;line-height:1.3;border-radius:5px;background:var(--gold);color:var(--ink)}.queue-tail{min-height:32px;display:flex;justify-content:center;align-items:center;gap:5px;border:1px solid #dedfd2;border-radius:8px;background:#f1f1e7;margin-bottom:5px;font-size:10px;color:#647d7b}.queue-tail .shape{width:16px;height:16px}.queue-tail:last-child{margin-bottom:0}.queue-empty{display:flex;flex:1;align-items:center;justify-content:center;min-height:45px;font-size:11px;color:#8a9a91;letter-spacing:2px}.play-info{display:flex;justify-content:center;gap:18px;font-size:10px;color:var(--muted);margin:11px 0 8px}.feedback{font-size:11px;line-height:1.8;min-height:43px;border-left:2px solid #a8c8b8;padding:3px 0 3px 10px;margin-bottom:9px;color:#4b6e70}.feedback.is-warning{border-color:var(--coral);color:#995144}.controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.controls button{font-size:12px;font-weight:600;min-height:45px;background:#fffdf6}.controls button>span{margin-right:5px;font-size:17px;font-weight:400}.controls button:disabled{opacity:.42}.save-status{text-align:center;font-size:9px;letter-spacing:.1px;color:#81918a;margin:10px 0 0}.outcome{border:1px solid #b3cfc0;background:#e3eee5;border-radius:14px;padding:14px;margin:0 0 12px;animation:arrive .22s ease}.outcome h2{font-size:18px;margin:0 0 6px}.outcome p{font-size:11px;line-height:1.8;margin:4px 0;color:#4b6e70}.outcome .primary-button{margin-top:9px;min-height:45px;font-size:13px}.outcome.is-blocked{background:#f5e6dc;border-color:#dec2b1}.outcome.is-blocked h2{color:#935342}.outcome.is-blocked p{color:#8d6655}.outcome-stats{display:flex;justify-content:space-between;gap:6px;margin:10px 0 5px;font-size:11px}.outcome-stats b{font:600 18px Georgia,serif;margin-right:3px}.board .page-footer{margin-top:12px}dialog{width:calc(100% - 32px);max-width:430px;max-height:calc(100dvh - 40px);max-height:calc(100vh - 40px);overflow-y:auto;padding:22px;border:1px solid #d3dbce;border-radius:21px;background:var(--paper);color:var(--ink);box-shadow:0 20px 90px #173d4b40}dialog::backdrop{background:#153a4699;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.dialog-heading h2{font-size:22px;margin:8px 0 12px}.close-button{border:0;background:#e8eadd;font:400 24px system-ui;min-width:44px;min-height:44px;align-self:flex-start}.dialog-copy{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 18px}.levels-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.level-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:64px;background:var(--card);font:500 20px Georgia,serif}.level-choice small{font:400 9px system-ui;color:var(--muted)}.level-choice.is-done{background:#e0eee3;border-color:#acd0ba}.level-choice.is-selected{outline:2px solid var(--ink);outline-offset:0}.dialog-foot{font-size:10px;line-height:1.8;color:var(--muted);margin:18px 0 0}.legend{display:flex;flex-wrap:wrap;gap:11px;font-size:11px;background:var(--card);border:1px solid var(--line);padding:12px;border-radius:12px;line-height:2;margin:6px 0 16px}.legend .shape{width:16px;height:16px;margin-right:3px}.help-rules{margin:0 0 20px;padding-left:20px;font-size:12px;line-height:1.95;color:#45666b}.help-rules li{padding-left:4px;margin-bottom:10px}.help-rules li::marker{color:var(--teal);font-weight:750}.noscript{text-align:center;padding:20px;font-size:15px}@keyframes hint-glow{50%{outline-color:#edc96d;box-shadow:0 0 0 5px #e1ad3515}}@keyframes arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:375px){.app{padding-left:15px;padding-right:15px}.topbar{min-height:66px}.brand{font-size:14px;gap:5px}.quiet-button{padding:0 4px}.intro-panel{padding-top:20px}.intro-panel h1{margin-top:17px}.harbor-art{margin:12px 0 15px}.intro-rules p{font-size:11px}.level-heading h1{font-size:20px}.progress-track{margin-bottom:12px}.order-card{padding:11px 12px;margin-bottom:12px}.current-target{margin:7px 0 10px}.lane{padding-left:5px;padding-right:5px;min-height:200px}.queues{gap:8px}.section-heading small{font-size:9px}.queue-head{min-height:72px}.queue-tail{min-height:31px}.play-info{margin-top:9px}.page-footer{margin-top:15px}dialog{padding:19px}.dialog-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
