:root{--blue:#367cf5;--ink:#26364b;--muted:#8995a6;--page:#f3f7fb;--border:#e8edf4;--white:#fff;--shadow:0 8px 30px #233c6210;font-family:"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:var(--ink);background:var(--page);font-synthesis:none}
/* Pre-flight mode selection shares the game's sky palette and airplane symbols. */
.menu-button{width:auto;padding:0 10px;white-space:nowrap}
.lobby{max-width:1080px;margin:0 auto}
.lobby-hero{display:grid;grid-template-columns:1.08fr 1fr;gap:76px;align-items:center;min-height:calc(100dvh - 190px);padding:55px 0 48px}
.lobby-eyebrow{display:flex;align-items:center;gap:10px;color:#688dbf;letter-spacing:2.3px;font-size:10px;font-weight:750}
.lobby-eyebrow>span{width:23px;height:2px;background:#367cf5}
.lobby-copy h1{font-size:56px;font-weight:800;letter-spacing:-2.3px;line-height:1.2;max-width:8em;margin:22px 0 20px;white-space:pre-line}
.lobby-description{font-size:14px;line-height:1.9;color:#7f8fa6;max-width:365px;margin:0}
.lobby-art{position:relative;margin:26px -16px 0;max-width:480px}
.sky-map{width:100%;height:auto;filter:drop-shadow(0 14px 26px #3c72bb09)}
.hero-plane{filter:drop-shadow(0 6px 8px #2d70d928)}
.sky-map-label{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:flex;align-items:center;gap:8px;white-space:nowrap;padding:10px 16px;border:1px solid #e4ecf7;border-radius:20px;background:#ffffffed;color:#7e92ad;font-size:10px;box-shadow:0 4px 16px #4474b409}
.mode-card{padding:32px;background:#ffffffeb;border:1px solid #e4ebf6;border-radius:28px;box-shadow:0 18px 50px #3859850b}
.mode-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mode-card-top .eyebrow{color:#7396c4}
.mode-ticket{font-size:9px;letter-spacing:1px;font-weight:650;color:#a0adbf}
.mode-card h2{font-size:25px;letter-spacing:-.7px;margin:19px 0 9px;line-height:1.25}
.mode-intro{font-size:12px;line-height:1.6;color:#8a98ac;margin:0 0 27px}
.mode-option{display:flex;align-items:center;gap:17px;width:100%;padding:20px;text-align:left;border-radius:18px;transition:transform .18s,box-shadow .18s,background .18s;min-height:93px}
.mode-option:hover{transform:translateY(-2px)}
.online-mode{background:#367cf5;color:white;box-shadow:0 8px 20px #367cf525}
.online-mode:hover{background:#2d72ed;box-shadow:0 10px 24px #367cf537}
.mode-icon{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:14px;background:#ffffff20}
.mode-icon svg{width:25px;height:25px}
.mode-text{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}
.mode-text strong{font-size:22px;letter-spacing:-.4px;font-weight:750;line-height:1}
.mode-text small{font-size:11px;font-weight:400;line-height:1.6;opacity:.8}
.mode-arrow{font-size:25px;font-weight:400;transition:transform .2s}
.online-mode[aria-expanded=true] .mode-arrow{transform:rotate(90deg)}
.friends-mode{margin-top:14px;background:#f4f7fc;border:1px solid #e6edf7;color:#496385}
.friends-mode:hover{background:#edf3fd}
.friends-mode .mode-icon{background:#e6eefb;color:#6b94d4}
.friends-mode .mode-text small{color:#8b9bb0;opacity:1}
.friends-mode .mode-arrow{color:#90a7c6}
.online-options{margin-top:14px;padding:17px;background:#f5f8fe;border:1px solid #e2ecfb;border-radius:17px}
.players-heading{font-size:11px;color:#6d84a4;font-weight:650;margin:0 0 12px}
.player-count-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.player-count-button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 7px;background:white;border:1.5px solid #dfe9f8;border-radius:13px;color:#426796;min-height:108px;transition:border-color .18s,background .18s,transform .18s}
.player-count-button:hover{border-color:#83aff5;background:#eef5ff;transform:translateY(-2px)}
.player-count-button strong{font-size:15px;letter-spacing:-.25px;white-space:nowrap}
.player-count-button small{font-size:10px;color:#92a1b5;line-height:1.5;text-align:center}
.fleet-icons{display:flex;gap:3px;align-items:center;height:23px}
.fleet-icons svg{width:19px;height:19px;transform:rotate(25deg);color:#699be6}
.fleet-icons svg:nth-child(2){color:#dc6250}.fleet-icons svg:nth-child(3){color:#79cb83}.fleet-icons svg:nth-child(4){color:#e0bc36}
.mode-availability{display:flex;gap:7px;align-items:baseline;font-size:10px;line-height:1.7;color:#8c9ab0;margin:13px 1px 0}
.mode-availability>span:first-child{width:5px;height:5px;background:#9eb6d8;border-radius:50%;flex-shrink:0}
.resume-flight{display:flex;width:100%;justify-content:center;align-items:center;gap:10px;background:none;color:#698ab5;font-size:11px;padding:17px 5px 0}
.resume-flight:hover{color:#367cf5}
.mode-card-footer{border-top:1px dashed #e3eaf5;margin-top:25px;padding-top:20px;display:flex;align-items:center;justify-content:center;gap:8px;color:#9baabd;font-size:10px;line-height:1.6;text-align:center}
.mode-card-footer svg{width:15px;height:15px;color:#97b5df;transform:rotate(25deg);flex-shrink:0}
.lobby-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e2e9f2;color:#9daabe;font-size:10px;padding:20px 0 24px}
.lobby-footer>span:first-child{font-size:9px;font-weight:750;letter-spacing:2px;color:#8597af}
.lobby-footer button{font-size:11px;color:#7e98bb;background:none;padding:7px 0}
.dialog-icon.friends-dialog-icon svg{transform:none}
.invite-panel{border:1px solid #e3ebf7;background:#f6f9fe;border-radius:15px;padding:17px}
.invite-panel label{display:block;font-size:11px;color:#758cae;font-weight:650;margin-bottom:10px}
.invite-panel input{width:100%;min-width:0;background:white;border:1px solid #dfe7f2;border-radius:10px;padding:13px 11px;font:inherit;font-size:12px;color:#8095b1;margin-bottom:10px}
.invite-panel input::placeholder{color:#a0aec1}
.invite-panel button:disabled{opacity:.6;cursor:default}
.invite-availability{font-size:11px;line-height:1.8;color:#8a9bb2;text-align:center;margin:17px 0 23px}
.is-choosing-players .mode-card-footer{display:none}
.empty-airport{opacity:.26}
.plane-returning{opacity:.84;pointer-events:none}
.is-paused .capture-burst{animation-play-state:paused}
@media(max-width:1050px){.lobby-hero{gap:40px;padding:42px 0}.lobby-copy h1{font-size:46px}.mode-card{padding:25px}.mode-card h2{font-size:23px}}
@media(max-width:780px){.lobby-hero{grid-template-columns:1fr;gap:27px;min-height:0;padding:34px 0}.lobby-copy{text-align:center}.lobby-eyebrow{justify-content:center;font-size:9px}.lobby-copy h1{font-size:38px;max-width:none;margin:17px 0 13px;letter-spacing:-1.3px}.lobby-description{font-size:12px;max-width:400px;margin:0 auto}.lobby-art{max-width:300px;margin:17px auto 0}.sky-map-label{font-size:8px;padding:7px 11px;bottom:2px}.mode-card{width:100%;max-width:460px;margin:0 auto}.lobby-footer{font-size:9px}.mode-text strong{font-size:21px}}
@media(max-width:480px){.lobby-hero{padding:25px 0;gap:22px}.lobby-copy h1{font-size:32px;line-height:1.3;max-width:9em;margin:14px auto 10px}.lobby-eyebrow{font-size:8px;letter-spacing:1.6px}.lobby-description{font-size:11px;max-width:285px}.lobby-art{display:none}.mode-card{padding:24px 20px;border-radius:22px}.mode-card h2{font-size:23px;margin-top:18px}.mode-intro{margin-bottom:21px;font-size:11px}.mode-option{padding:17px 15px;gap:13px;min-height:84px}.mode-icon{width:42px;height:42px}.mode-text small{font-size:10px}.online-options{padding:14px 11px}.player-count-button{padding:14px 4px}.player-count-button strong{font-size:14px}.fleet-icons{gap:1px}.fleet-icons svg{width:18px;height:18px}.mode-card-footer{font-size:9px;margin-top:22px;padding-top:17px}.lobby-footer>span:nth-child(2){display:none}.lobby-footer{padding:14px 0 18px}}
@media(min-width:781px) and (max-height:650px){.is-lobby .site-header{height:70px}.lobby-hero{min-height:0;padding:28px 0;gap:45px}.lobby-copy h1{font-size:39px;margin:16px 0}.lobby-art{max-width:260px;margin:10px 0 0}.lobby-description{font-size:12px}.mode-card{padding:23px}.mode-card h2{font-size:23px;margin-top:13px}.mode-intro{margin-bottom:18px}.mode-option{min-height:75px;padding:14px}.mode-icon{width:38px;height:38px}.mode-text strong{font-size:19px}.online-options{padding:12px;margin-top:10px}.player-count-button{min-height:85px;padding:11px 4px;gap:6px}.mode-card-footer{padding-top:13px;margin-top:16px}.lobby-footer{padding:12px 0}}
@media(max-width:480px){.is-choosing-players .lobby-hero{padding:18px 0;gap:18px}.is-choosing-players .lobby-copy h1{font-size:27px;line-height:1.2;margin:10px auto 0}.is-choosing-players .lobby-description,.is-choosing-players .mode-intro{display:none}.is-choosing-players .mode-card h2{margin-bottom:20px}}
@media(min-width:781px) and (max-height:650px){.is-lobby .site-header{height:60px}.is-lobby .lobby-hero{min-height:calc(100dvh - 60px);padding:12px 0}.is-lobby .lobby-footer{display:none}.is-choosing-players .mode-card{padding:20px}.is-choosing-players .mode-card h2{font-size:21px;margin:10px 0 15px}.is-choosing-players .mode-intro{display:none}.is-choosing-players .mode-option{min-height:64px;padding:12px}.is-choosing-players .online-options{padding:10px}.is-choosing-players .players-heading{margin-bottom:9px}.is-choosing-players .player-count-button{min-height:77px;padding:9px 4px;gap:4px}.is-choosing-players .mode-availability{margin-top:10px}.is-choosing-players .resume-flight{padding-top:12px}}
@media(max-width:360px){.mode-card{padding:20px 16px}.mode-card h2{font-size:21px}.is-choosing-players .lobby-copy h1{font-size:25px}.is-choosing-players .mode-option{padding:14px 12px;gap:10px}.is-choosing-players .mode-text strong{font-size:19px}.is-choosing-players .online-options{padding:12px 9px}.is-choosing-players .mode-card-top{gap:5px}.mode-ticket{font-size:8px}}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:3px solid #92baff;outline-offset:4px}button{touch-action:manipulation}svg{display:block}button svg{width:20px;height:20px}a{text-decoration:none;color:inherit}[hidden]{display:none!important}.svg-definitions{position:absolute;width:0;height:0;overflow:hidden}.app-shell{max-width:1240px;margin:0 auto;padding:0 32px;position:relative}.ambient-cloud{position:fixed;z-index:-1;pointer-events:none;border-radius:50%;filter:blur(40px);opacity:.48}.cloud-one{width:550px;height:400px;right:-170px;top:0;background:#e0eeff}.cloud-two{width:600px;height:500px;left:-300px;bottom:0;background:#e1f2ed}
.site-header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e8f1;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:46px;height:46px;background:var(--blue);border-radius:14px;display:grid;place-items:center;color:white;box-shadow:0 5px 12px #367cf52b;transform:rotate(-7deg)}.brand-mark svg{width:27px;height:27px;transform:rotate(24deg)}.brand-text{font-size:23px;font-weight:900;letter-spacing:-1px;line-height:1.05}.brand-text>span{color:var(--blue)}.brand-text small{font-size:8px;display:block;font-weight:700;letter-spacing:2.5px;margin-top:6px;color:#8d9bac}.header-center{display:flex;gap:8px;align-items:center;font-size:12px;color:#7c8a9e;background:#eaf0f7;padding:8px 13px;border-radius:20px}.status-dot{width:6px;height:6px;border-radius:50%;background:#37af92}.header-actions{display:flex;align-items:center;gap:8px}.icon-button,.text-button{width:35px;height:35px;display:grid;place-items:center;background:transparent;color:#73839b;border-radius:10px}.icon-button:hover,.text-button:hover{background:#e6edf7;color:var(--blue)}.text-button{font-weight:700;font-size:12px}.help-button{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#52657e;background:white;padding:9px 14px;border-radius:12px;border:1px solid var(--border);margin-left:5px}.help-button>span:first-child{display:grid;place-items:center;width:16px;height:16px;border:1.5px solid #8293ab;border-radius:50%;font-size:11px}
.intro{display:flex;align-items:center;justify-content:space-between;padding:27px 0 23px;gap:20px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:800;color:#8a9aae}.intro .eyebrow{color:#6794d4;font-size:9px;letter-spacing:2px}.tiny-plane{font-size:14px;margin-right:5px}h1{font-size:29px;letter-spacing:-.7px;line-height:1.3;margin:8px 0 8px;font-weight:750}.intro p{font-size:12px;color:#8a97a9;margin:0}.save-status{display:flex;align-items:center;gap:7px;font-size:11px;color:#87a394}.save-status svg{width:15px;height:15px}
.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:21px;align-items:start}.board-card{padding:20px 20px 15px;background:white;border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}.board-heading{display:flex;align-items:center;justify-content:space-between;padding:0 3px}.board-live{font-size:11px;font-weight:650;color:#687a93;display:flex;align-items:center;gap:7px}.board-live>span:first-child{width:6px;height:6px;border-radius:50%;background:#367cf5}.round-badge{font-size:9px;font-weight:750;letter-spacing:1.5px;color:#8d9bae;background:#f3f6fb;padding:6px 9px;border-radius:7px}.board-wrap{position:relative;max-width:660px;margin:0 auto}.board-surface>svg{width:100%;height:auto;aspect-ratio:1;user-select:none;overflow:visible}.board-legend{border-top:1px solid #eef2f7;display:flex;align-items:center;justify-content:center;gap:24px;padding-top:13px;font-size:9px;color:#8c9ab0}.board-legend>span{display:flex;align-items:center;gap:6px}.legend-dot{width:8px;height:8px;background:#8ab4ff;border-radius:3px}.legend-flight{font-style:normal;font-size:15px;color:#659df5;font-weight:700}.legend-cross{font-style:normal;font-size:12px;color:#91a2b9}.board-announcement{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%) scale(.95);background:#fffef5f2;padding:11px 20px;border:1px solid #eef0e6;border-radius:13px;box-shadow:0 8px 24px #26364b15;font-size:13px;font-weight:700;white-space:nowrap;pointer-events:none;opacity:0;transition:.2s;z-index:4}.board-announcement.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
.side-panel{display:flex;flex-direction:column;gap:14px}.turn-card{background:white;border:1px solid var(--border);padding:21px;border-radius:22px;box-shadow:var(--shadow)}.turn-topline{display:flex;align-items:center;justify-content:space-between;gap:8px}.turn-tag{font-size:9px;font-weight:650;color:var(--blue);background:#edf4ff;padding:4px 7px;border-radius:6px}.turn-card h2{font-size:20px;letter-spacing:-.6px;margin:14px 0 6px}.turn-description{font-size:11px;color:#8a98ac;margin:0;line-height:1.65;min-height:36px}.primary-button{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;border-radius:13px;padding:13px 16px;background:var(--blue);color:white;box-shadow:0 5px 12px #367cf529;font-size:12px;font-weight:700;min-height:44px;transition:transform .15s,background .15s}.primary-button:hover:not(:disabled){background:#246beb;transform:translateY(-1px)}.primary-button:disabled{background:#edf2f9;box-shadow:none;color:#94a3b9}.button-arrow{font-size:17px;line-height:12px}.flight-options{display:flex;gap:8px;margin-top:16px}.option-button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;border:1px solid #e7edf6;background:white;border-radius:10px;padding:9px 5px;font-size:10px;color:#8291a7;min-height:36px}.option-button svg{width:13px;height:13px;transform:rotate(25deg)}.option-button[aria-pressed=true]{color:var(--blue);border-color:#bad4fd;background:#edf4ff}.speed-icon{font-size:20px;font-weight:700;line-height:12px}.keyboard-hint{font-size:8px;color:#b0bbca;text-align:center;margin-top:13px;line-height:1.7}.tip-card{background:#eaf2ff;border:1px solid #e1ecfe;position:relative;padding:20px 21px;border-radius:18px;overflow:hidden}.tip-card .eyebrow{color:#7195c8;font-size:8px;letter-spacing:1.3px}.tip-card h3{font-size:13px;margin:9px 0 6px;color:#43689d}.tip-card p{font-size:10px;line-height:1.8;color:#7d97bb;margin:0;max-width:205px}.tip-illustration{position:absolute;right:-3px;top:4px;width:95px;opacity:.6}.log-card{padding:17px 20px;background:#ffffffb8;border:1px solid var(--border);border-radius:18px}.log-heading{display:flex;justify-content:space-between;align-items:center}.log-heading h3{font-size:10px;font-weight:650;margin:0;color:#7b8da5}.log-dot{width:4px;height:4px;background:#a5b4c8;border-radius:50%}.log-card ol{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-direction:column;gap:10px;max-height:110px;overflow:auto}.log-card li{font-size:9px;line-height:1.6;color:#8898ad;display:flex;gap:7px;align-items:start}.log-card li>i{width:5px;height:5px;flex-shrink:0;border-radius:50%;margin-top:5px}.game-footer{display:flex;align-items:center;justify-content:space-between;padding:20px 3px 24px;font-size:10px;color:#a0afc0;gap:15px}.game-footer button{display:flex;align-items:center;gap:6px;background:none;color:#91a1b8;font-size:10px;padding:7px}.game-footer button svg{width:13px;height:13px}
.selection-heading{display:flex;justify-content:space-between;font-size:10px;font-weight:600;color:#7e8da4;margin:0 0 10px}.selection-heading>span:last-child{font-size:9px;font-weight:400}.plane-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.plane-choice{border:1.5px solid #e5ecf7;border-radius:12px;padding:9px 3px;background:#f9fbff;color:#8fa5c7;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:9px}.plane-choice svg{width:21px;height:21px;transform:rotate(28deg)}.plane-choice.selected{background:#edf4ff;border-color:#79aaff;color:#367cf5}.plane-choice:disabled{opacity:.42;background:#fafbfc}.plane-choice>span:first-of-type{font-weight:700;font-size:10px}.token{transition:opacity .15s}.token.is-selectable{cursor:pointer}.token.is-selectable .token-halo{stroke:#367cf5;stroke-width:2;stroke-dasharray:3 3;animation:halo-spin 7s linear infinite;transform-box:fill-box;transform-origin:center}.token.selected .token-halo{stroke:#367cf5;stroke-width:2.5;stroke-dasharray:none;animation:none}.token .token-halo{fill:none;stroke:transparent}.token.is-selectable:hover .token-body{filter:brightness(1.06)}.token text{pointer-events:none}.airport-label{font-weight:700;letter-spacing:2px;font-size:9px}.die.shaking{animation:dice-shake .36s ease-in-out infinite}.plane-flying{filter:drop-shadow(0 5px 3px #233c6233)}.capture-burst{animation:capture-pop .65s ease-out forwards;transform-box:fill-box;transform-origin:center}.finish-glow{animation:finish-pulse 1.7s ease-in-out infinite}
dialog{width:min(470px,calc(100% - 32px));border:1px solid #e5ecf7;border-radius:25px;padding:32px;color:var(--ink);box-shadow:0 30px 100px #152b4c35;max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:#233f626b;backdrop-filter:blur(7px)}.dialog-close{position:absolute;right:14px;top:12px;display:grid;place-items:center;width:32px;height:32px;color:#9caabc;background:#f2f6fb;border-radius:10px;font-size:23px}.dialog-icon{margin:0 auto 18px;width:68px;height:68px;display:grid;place-items:center;color:var(--blue);background:#edf4ff;border-radius:22px}.dialog-icon svg{width:40px;height:40px;transform:rotate(25deg)}.dialog-title{font-size:24px;text-align:center;letter-spacing:-.6px;margin:5px 0 10px}.dialog-copy{font-size:12px;line-height:1.9;color:#8a98ac;text-align:center;margin:0 0 23px}.dialog-actions{display:flex;flex-direction:column;gap:10px}.secondary-button{display:block;width:100%;border-radius:12px;background:#f1f5fb;color:#7388a4;padding:12px;font-size:12px;font-weight:650}.rules-list{padding:0;list-style:none;display:flex;flex-direction:column;gap:13px;margin:20px 0}.rules-list li{display:flex;gap:11px;font-size:11px;line-height:1.9;color:#7e8fa6}.rules-list li>span{display:grid;place-items:center;flex-shrink:0;width:23px;height:23px;background:#eef4ff;color:#5c8bd2;border-radius:7px;font-size:10px;font-weight:700}.motion-option{display:flex;align-items:center;gap:8px;margin-bottom:20px;font-size:11px;color:#8a9aaf}.motion-option input{accent-color:var(--blue)}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0 25px}.result-stats>div{background:#f4f7fc;border-radius:12px;padding:15px 5px;text-align:center}.result-stats strong{display:block;font-size:22px;color:#537aaf}.result-stats span{font-size:9px;color:#8fa1b9;display:block;margin-top:4px}.result-rank{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #eff3f8;font-size:11px;color:#7b8ca4}.result-rank:last-child{border:0}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:#263e60;color:white;font-size:12px;border-radius:12px;padding:11px 18px;box-shadow:0 6px 22px #1c345b2b;z-index:10;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 28px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes dice-shake{0%,100%{transform:rotate(-8deg) translateY(0)}25%{transform:rotate(12deg) translate(3px,-5px)}65%{transform:rotate(-18deg) translate(-3px,2px)}}@keyframes halo-spin{to{transform:rotate(360deg)}}@keyframes capture-pop{0%{opacity:1;transform:scale(.4)}100%{opacity:0;transform:scale(2)}}@keyframes finish-pulse{50%{opacity:.5}}
@media(min-width:1350px){.app-shell{max-width:1270px}.play-layout{grid-template-columns:minmax(0,1fr) 320px}.turn-card{padding:24px}.board-card{padding:22px 24px 17px}.intro{padding-top:30px}}
@media(max-width:1050px){.app-shell{padding:0 24px}.play-layout{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.board-card{padding:16px 12px 12px}.turn-card{padding:18px}.board-legend{gap:13px;font-size:8px}.tip-card,.log-card{padding:17px}.intro h1{font-size:26px}}
@media(max-width:780px){.app-shell{padding:0 18px}.site-header{height:78px}.header-center{display:none}.brand-mark{width:39px;height:39px}.brand-text{font-size:20px}.intro{padding:22px 0 18px}.intro h1{font-size:25px}.intro p{font-size:11px}.play-layout{grid-template-columns:1fr;gap:15px}.board-card{padding:15px 10px 12px;border-radius:20px}.board-wrap{max-width:580px}.side-panel{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px}.turn-card{grid-row:span 2;padding:20px}.tip-card,.log-card{padding:18px}.keyboard-hint{display:none}.game-footer{padding-top:16px}.save-status{font-size:9px}}
@media(max-width:480px){.app-shell{padding:0 12px}.site-header{height:71px;gap:8px}.brand{gap:8px}.brand-mark{width:35px;height:35px;border-radius:11px}.brand-mark svg{width:23px;height:23px}.brand-text{font-size:19px}.brand-text small{font-size:6px;letter-spacing:2px}.header-actions{gap:2px}.icon-button,.text-button{width:30px;height:32px}.help-button{padding:7px 9px;margin-left:3px;font-size:10px}.help-button>span:last-child{display:none}.intro h1{font-size:24px}.intro{gap:8px}.intro .eyebrow{font-size:7px;letter-spacing:1.3px}.intro p{font-size:10px;max-width:245px;line-height:1.7}.save-status{font-size:8px;flex-shrink:0;gap:3px}.save-status svg{width:12px;height:12px}.board-card{padding:13px 7px 10px;border-radius:18px}.board-heading{padding:0 8px}.board-live{font-size:10px}.round-badge{font-size:8px}.board-legend{gap:15px;font-size:8px;padding-top:9px}.side-panel{display:flex;gap:12px}.turn-card{padding:18px}.turn-card h2{font-size:20px;margin:10px 0 4px}.turn-description{min-height:19px}.flight-options{margin-top:12px}.tip-card{padding:15px 18px}.tip-card p{max-width:270px}.tip-illustration{right:15px}.log-card{padding:15px 18px}.log-card ol{max-height:80px}.game-footer{font-size:8px;padding-bottom:20px}.game-footer button{font-size:9px}.plane-choice{padding:10px 4px;font-size:10px}.plane-choice svg{width:24px;height:24px}.board-announcement{font-size:11px;padding:9px 13px}dialog{padding:28px 23px}.dialog-title{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}body.reduce-motion *{animation:none!important;transition:none!important}
/* Purple game backdrop and pink accents for the three flight panels. */
body:not(.is-lobby){min-height:100dvh;background:#391c7b}
body:not(.is-lobby) .ambient-cloud{background:#391c7b}
body:not(.is-lobby) .site-header{border-color:#6b479f}
body:not(.is-lobby) .brand-text,#game-view .intro h1{color:#f7f1ff}
body:not(.is-lobby) .brand-text>span{color:#a8bfff}
body:not(.is-lobby) .brand-text small,#game-view .intro p,#game-view .game-footer,#game-view .game-footer button{color:#cfbee6}
body:not(.is-lobby) .header-actions .icon-button,body:not(.is-lobby) .header-actions .text-button{color:#d8c9f1}
body:not(.is-lobby) .header-actions .icon-button:hover,body:not(.is-lobby) .header-actions .text-button:hover{background:#604267;color:#fff}
.side-panel>.turn-card,.side-panel>.tip-card,.side-panel>.log-card{border:2px solid #f09ac8;box-shadow:0 8px 24px #c75d9c29,0 2px 8px #dd76b21a}
/* Dark violet panels separate the bright board and aircraft from their backdrop. */
.play-layout{--panel-text:#f7f1ff;--panel-muted:#c9c1da;--panel-line:#655578}
.board-card,.turn-card,.tip-card,.log-card{color:var(--panel-text)}
.board-card{background:#25233d;border-color:var(--panel-line);box-shadow:0 8px 30px #30204726}
.turn-card{background:#302a49}
.tip-card{background:#382e52}
.log-card{background:#2c2643}
.board-card .board-live,.board-card .board-legend,.board-card .player-progress,.turn-card .eyebrow,.turn-card .turn-description,.turn-card .keyboard-hint,.turn-card .selection-heading,.tip-card .eyebrow,.tip-card p,.log-heading h3,.log-card li{color:var(--panel-muted)}
.board-card .board-live>span:first-child{background:#a8bfff}
.board-card .round-badge{background:#463951;color:var(--panel-text)}
.board-card .board-legend{border-color:var(--panel-line)}
.board-card .progress-dots i:not(.done){background:#837397}
.board-card .board-announcement{color:var(--ink)}
.turn-card .turn-tag{background:#604267;color:#ffe0f2}
.turn-card .primary-button{background:#2862d4}
.turn-card .primary-button:hover:not(:disabled){background:#2357be}
.turn-card .primary-button:disabled{background:#463951;color:var(--panel-muted)}
.turn-card .option-button,.turn-card .plane-choice{background:#403651;border-color:#79658e;color:#eee5fb}
.turn-card .option-button[aria-pressed=true]{background:#624371;border-color:#f09ac8;color:#ffe0f2}
.turn-card .plane-choice.selected{background:#714158;border-color:#ffb7a6;color:#ffe9e0}
.turn-card .plane-choice:disabled{background:#393149}
.turn-card .six-notice{color:#f4d385}
.tip-card h3{color:var(--panel-text)}
.tip-card .tip-illustration{opacity:.85}
.is-paused .die.shaking{animation-play-state:paused}
.token.is-selectable .token-halo{stroke:#fff;filter:drop-shadow(0 1px 2px #16141f)}
.token.selected .token-halo{stroke:#ffe99d;stroke-width:3}

.legend-cross{width:10px;height:10px;background:#e4ecf7;border:1px solid #91a2b9;border-radius:50%}
.plane-choice.selected{color:#dc6250;background:#fbeae6;border-color:#dc6250}
.turn-description{font-size:12px}.primary-button{font-size:13px}.tip-card h3{font-size:14px}.tip-card p{font-size:11px}.log-card li{font-size:11px}.log-card ol{max-height:130px}.board-legend{font-size:10px}.option-button{font-size:11px}
@media(max-width:780px){.board-legend{font-size:9px}}
@media(max-width:480px){.board-legend{font-size:8px}.turn-description{font-size:12px}.plane-choice{font-size:11px}.plane-choice>span:first-of-type{font-size:12px}}
@media(max-width:480px){
  .site-header{height:62px}.intro{padding:13px 0}.intro .eyebrow,.intro p{display:none}.intro h1{font-size:20px;line-height:1.3;margin:0}.board-card{padding-top:12px}.board-legend{flex-wrap:wrap;gap:7px 12px}.turn-card{position:relative;padding:16px}.turn-card h2{font-size:18px;margin:10px 0 5px}.turn-description{font-size:11px;line-height:1.7;min-height:34px;margin-bottom:11px}.dice-orbit,.plane-selection{margin-top:2px}.selection-heading{margin-bottom:8px}.plane-choice{padding:8px 3px;gap:3px}.plane-choice svg{width:20px;height:20px}.plane-choice>span:last-child{display:none}.plane-choice>span:first-of-type{font-size:11px}.primary-button{padding:11px 14px}.flight-options{margin-top:11px}.option-button{padding:7px 5px;min-height:36px;font-size:10px}.tip-card,.log-card{padding:15px 16px}
}

.plane-choices{margin-bottom:12px}

/* Player seats surround their airports; dice point toward the board centre. */
.board-wrap{max-width:620px;margin:16px auto 12px}
.board-surface{position:relative}
.player-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 8%;gap:16px}
.top-player-row{padding-bottom:14px}
.bottom-player-row{padding-top:14px}
.board-player{--portrait-size:62px;--dice-size:60px;display:flex;align-items:flex-start;gap:14px;min-width:0}
.right-player{grid-column:2;flex-direction:row-reverse}
.player-identity{width:var(--portrait-size);flex-shrink:0;display:grid;grid-template-areas:"avatar" "id" "progress";justify-items:center;gap:5px}
.bottom-player-row .player-identity{grid-template-areas:"id" "avatar" "progress"}
.player-avatar{grid-area:avatar;position:relative;display:grid;place-items:center;width:var(--portrait-size);height:var(--portrait-size);border-radius:50%;background:var(--seat-light);color:var(--seat-color);border:3px solid var(--seat-color);box-shadow:inset 0 0 0 3px white,0 3px 8px #26364b15}
.player-avatar>svg{width:55%;height:55%;transform:rotate(25deg)}
.player-controller{position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);padding:2px 5px;border-radius:5px;background:white;border:1px solid var(--seat-light);color:var(--seat-color);font-size:8px;font-weight:800;line-height:1}
.player-id{grid-area:id;background:#eaf0f7;color:#52657e;padding:3px 8px;border-radius:12px;font-size:11px;font-weight:750;line-height:1;white-space:nowrap}
.player-progress{grid-area:progress;display:flex;align-items:center;gap:5px;font-size:10px;color:#8a98ac;line-height:1.2}
.progress-dots{display:flex;gap:3px}
.progress-dots i{width:4px;height:4px;border-radius:50%;background:#e3e9f1}
.progress-dots i.done{background:var(--seat-color)}
.board-player.active .player-avatar{box-shadow:inset 0 0 0 3px white,0 0 0 4px var(--seat-light),0 3px 10px #26364b20}
.board-player.active .player-id{background:var(--seat-color);color:white}
.player-dice-slot{width:var(--dice-size);min-height:var(--dice-size);flex-shrink:0}
.bottom-player-row .player-dice-slot{padding-top:22px}
.board-player .dice-area{position:relative;width:var(--dice-size);height:var(--dice-size)}
.board-player .die{display:block;position:relative;width:100%;height:100%;padding:0;background:#151726;border:2px solid var(--seat-color);border-radius:14px;box-shadow:0 4px 0 #0a0b15,0 6px 14px #0b071d66;transform:none;transition:box-shadow .15s,background .15s}
.board-player .die.can-roll{background:#151726;box-shadow:0 4px 0 #0a0b15,0 0 0 3px var(--seat-color),0 6px 14px #0b071d66}
.board-player .die.can-roll:hover{background:#1b1d2e}
.board-player .die-pips{position:absolute;inset:11px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px}
.board-player .die-pips i{width:8px;height:8px;border-radius:50%;background:var(--seat-color);align-self:center;justify-self:center}
.board-player .die-plane{grid-area:1/1/4/4;width:100%;height:100%;color:var(--seat-color);opacity:1}
.six-notice{position:static;margin:0 0 12px;font-size:10px;line-height:1.6;font-weight:600;color:#b58a2b}
.six-notice:empty{display:none}
/* Optional non-colour cues share the same fleet symbols across both match sizes. */
.board-heading{gap:8px}
.colorblind-button{display:flex;align-items:center;gap:6px;margin-left:auto;padding:7px 9px;min-height:32px;border:1px solid #79658e;border-radius:8px;background:#403651;color:#eee5fb;font-size:10px;font-weight:650;white-space:nowrap}
.colorblind-button svg{width:16px;height:16px}
.colorblind-button[aria-pressed=true]{background:#f7f1ff;color:#25233d;border-color:#f09ac8}
.fleet-legend{display:flex;flex-wrap:wrap;gap:7px;margin:12px 3px 0}
.fleet-legend:not(.is-visible){visibility:hidden}
.fleet-legend-item{display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #655578;border-radius:8px;color:#eee5fb;font-size:10px;line-height:1.4}
.fleet-mark,.dice-fleet-mark{display:inline-grid;place-items:center;width:19px;height:19px;padding:2px;flex-shrink:0;border-radius:4px;background:#f7f1ff;color:#151726}
.fleet-mark svg,.dice-fleet-mark svg{width:100%;height:100%;transform:none}
.avatar-fleet-mark{position:absolute;right:-5px;top:-3px;border:1px solid #25233d;width:22px;height:22px}
.dice-fleet-mark{position:absolute;right:-6px;top:-6px;border:1px solid #151726;pointer-events:none}
.log-fleet-mark{width:13px;height:13px;padding:1px;margin-top:2px}
.log-card li>i{width:13px;height:13px;margin-top:2px;border:4px solid #2c2643}
.fleet-texture,.fleet-glyph{pointer-events:none}
.colorblind-mode .board-player.active .player-id{background:#f7f1ff;color:#151726;outline:2px solid #fff;outline-offset:2px}
.colorblind-mode .die-pips i{background:#f7f1ff}
.colorblind-mode .die-plane{color:#f7f1ff}
.colorblind-mode .plane-choice svg{transform:none}
.colorblind-mode .plane-choice.selected{outline:2px solid #fff;outline-offset:1px}
.accessibility-setting{display:flex;align-items:flex-start;gap:9px;padding:12px;margin-bottom:17px;border:1px solid #dfe7f2;border-radius:12px;background:#f4f7fc;font-size:12px;color:#52657e;cursor:pointer}
.accessibility-setting input{margin:3px 0 0;accent-color:var(--blue)}
.accessibility-setting strong,.accessibility-setting small{display:block}
.accessibility-setting small{font-size:11px;font-weight:400;line-height:1.7;margin-top:5px;color:#657791}
.result-fleet{display:flex;align-items:center;gap:7px}
.header-actions .menu-button{width:auto}
.is-online-game .player-id{max-width:106px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:480px){
  .colorblind-button{font-size:9px;padding:5px 6px;gap:4px}
  .colorblind-button svg{width:13px;height:13px}
  .fleet-legend-item{font-size:9px;padding:4px 6px}
  .avatar-fleet-mark{width:18px;height:18px;right:-4px}
  .board-wrap{margin:12px auto 10px}
  .player-row{gap:10px}
  .top-player-row{padding-bottom:12px}
  .bottom-player-row{padding-top:12px}
  .board-player{--portrait-size:44px;--dice-size:44px;gap:10px}
  .player-identity{gap:4px}
  .player-avatar{border-width:2px;box-shadow:inset 0 0 0 2px white,0 2px 5px #26364b15}
  .player-controller{font-size:6px;padding:2px 4px;bottom:-3px}
  .player-id{font-size:9px;padding:3px 6px}
  .player-progress{font-size:8px;gap:4px}
  .progress-dots{gap:2px}
  .progress-dots i{width:3px;height:3px}
  .bottom-player-row .player-dice-slot{padding-top:19px}
  .board-player .die{border-radius:11px}
  .board-player .die-pips{inset:8px;gap:3px}
  .board-player .die-pips i{width:6px;height:6px}
  .board-player.active .player-avatar{box-shadow:inset 0 0 0 2px white,0 0 0 3px var(--seat-light),0 2px 5px #26364b20}
}
@media(max-width:360px){
  .site-header{gap:6px}
  .brand{gap:5px}
  .brand-mark{width:31px;height:31px}
  .brand-text{font-size:16px}
  .brand-text small{font-size:5.5px;letter-spacing:1.5px}
  .header-actions{gap:1px}
  .header-actions .menu-button{font-size:11px;padding:0 4px}
}
