:root{font-family:'Segoe UI','Microsoft YaHei','PingFang SC',sans-serif;color:#263b33;background:#f5f6f0;--green:#285f4e;--ink:#263b33;--muted:#879088;--line:#e4e8de;--paper:#fff;--yellow:#edc365}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.46}button, a, input,select{-webkit-tap-highlight-color:transparent}button{color:inherit}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #8abbb0;outline-offset:5px}input:focus,select:focus{outline:2px solid #78a48e;outline-offset:2px}input,select{width:100%;height:51px;border:1px solid #dfe5dc;border-radius:9px;padding:0 15px;background:#fafbf8;color:var(--ink);transition:border .2s}input::placeholder{color:#a3aba3}h1,h2,h3,p{margin:0}svg{vertical-align:middle}h1,h2,h3{font-weight:650}h1{letter-spacing:-1.5px}h2{letter-spacing:-.5px}button svg{flex-shrink:0}.muted{color:#7b867d;font-size:14px;line-height:1.8}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:650;color:#7b8a7b;display:flex;gap:9px;align-items:center}.eyebrow>span{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%}.site-header{height:96px;max-width:1280px;padding:0 42px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e5db}.brand{display:flex;gap:12px;align-items:center;text-align:left;background:none;border:0;padding:0;font-weight:750;font-size:23px;letter-spacing:.5px}.brand small{display:block;font-size:8px;letter-spacing:2.25px;color:#7b8c7c;font-weight:550;margin-top:4px}.brand-symbol{background:var(--green);width:42px;height:45px;border-radius:13px;display:grid;place-items:center;color:#fff9e9;transform:rotate(-5deg)}.brand-symbol svg{width:28px;transform:rotate(29deg)}nav{display:flex;align-items:center;gap:17px}.nav-link,.text-button{border:0;background:none;padding:5px 0;display:inline-flex;gap:7px;align-items:center;font-size:12px;color:#7a867b}.nav-link:hover,.text-button:hover{color:var(--green)}.nav-link{font-size:13px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:5px 8px;background:#eef1e9;font-size:10px;color:#6d7c6c;white-space:nowrap}.badge.private{border:1px solid #dfe4d8;background:transparent;padding:7px 10px;font-size:11px}.header-divider{height:19px;width:1px;background:#dfe5d9;margin:0 3px}.mini-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e2e8d8;font-size:13px;color:#5e755b}.header-name{font-size:13px;margin-left:-9px}.icon-button{display:inline-grid;place-items:center;border:0;background:transparent;width:30px;height:30px;border-radius:8px;padding:0;color:#7b897b}.icon-button:hover{background:#ebefe7;color:var(--green)}.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:48px;padding:0 23px;border-radius:8px;font-size:13px;font-weight:600;transition:background .15s,transform .15s}.button:not(:disabled):hover{transform:translateY(-1px)}.button.primary{background:var(--green);color:#fff}.button.primary:not(:disabled):hover{background:#184c3c}.button.secondary{border-color:#cfd9cc;background:#f7f9f3;color:var(--green)}.button.subtle{background:#f3f6ef;border:1px dashed #d1dccc;color:#778570}.button.full{width:100%}.button.small{min-height:39px;font-size:12px}.field-hint{font-size:10px;color:#95a08f;line-height:1.7;display:flex;align-items:center;gap:5px;margin-top:11px}label{font-size:12px;display:flex;justify-content:space-between;align-items:center;font-weight:600;margin:22px 0 10px}label span{font-size:8px;color:#a5ada2;font-weight:400;letter-spacing:1.2px}.form-error{color:#b65246;min-height:22px;font-size:12px;line-height:1.6;margin:12px 0 6px}footer{max-width:1196px;margin:35px auto 0;padding:25px 0 27px;border-top:1px solid #e0e5d9;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.3px;color:#98a08f;gap:15px}.footer-dot{margin:0 9px}.footer-right{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:1px}.status-dot{display:inline-block;width:6px;height:6px;background:#79a380;border-radius:50%;flex-shrink:0}.color-dots{display:inline-flex;gap:5px;margin-left:17px}.color-dots i{width:6px;height:6px;border-radius:50%;background:#edc365}.color-dots i:nth-child(2){background:#7db3d0}.color-dots i:nth-child(3){background:#80b292}.color-dots i:nth-child(4){background:#dc9184}
/* Boarding pass */
.auth-layout{max-width:1104px;margin:62px auto 40px;display:grid;grid-template-columns:1fr 380px;gap:100px;align-items:center}.auth-story{position:relative}.auth-story h1{font-size:49px;line-height:1.38;margin:17px 0 19px;font-weight:760;color:#2d4738}.hand-underline{position:relative}.hand-underline:after{content:'';position:absolute;left:-2px;bottom:-3px;right:0;height:9px;border-top:3px solid #dcbf6d;border-radius:50%;transform:rotate(-3deg)}.tiny-spark{display:inline-block;color:#b8bf85;font-size:36px;margin-left:25px;vertical-align:top;transform:translateY(9px)}.story-copy{font-size:13px;line-height:1.95;color:#89937f}.story-board{width:292px;margin:15px 0 0 130px;position:relative;transform:rotate(-8deg)}.story-board:before{content:'';position:absolute;inset:30px -65px 0 -90px;z-index:-1;border-radius:50%;background:#e9ecdb;transform:rotate(20deg)}.story-board .flight-board{display:block;width:100%;filter:drop-shadow(0 10px 10px #758c7420)}.board-sticker{position:absolute;bottom:38px;right:-48px;background:#f2d681;padding:13px 17px;border:4px solid #f5f6f0;transform:rotate(17deg);font-size:8px;line-height:1.8;letter-spacing:1.4px;border-radius:6px;color:#7e6c35}.board-sticker strong{font-size:13px;letter-spacing:.5px}.story-bottom{display:flex;gap:19px;margin-top:22px;font-size:10px;color:#8b9582;white-space:nowrap}.story-bottom span{display:flex;gap:6px;align-items:center}.auth-card{background:#fff;border:1px solid #e6e9df;border-radius:18px;padding:32px 30px 0;box-shadow:0 12px 36px #3c593908;position:relative}.auth-card>.eyebrow{font-size:9px}.auth-title{display:flex;align-items:center;justify-content:space-between;margin-top:14px;margin-bottom:9px}.auth-title h2{font-size:25px}.ticket-stamp{color:#91a485;border:1px solid #c6d2bd;border-radius:50%;width:36px;height:36px;display:grid;align-content:center;text-align:center;font-size:10px;line-height:1.1;transform:rotate(15deg)}.auth-card .muted{font-size:11px}.segmented{display:flex;background:#f2f4ee;border-radius:8px;margin-top:26px;padding:4px}.segmented button{width:50%;border:0;background:none;font-size:12px;height:33px;border-radius:5px;color:#8b9484}.segmented .selected{background:white;color:var(--green);box-shadow:0 2px 5px #3c593910;font-weight:600}.password-field{position:relative}.password-field input{padding-right:56px}.password-toggle{position:absolute;right:13px;top:16px;background:none;border:0;font-size:10px;color:#94a08e;padding:2px}.auth-note{margin:24px 0 27px;display:flex;align-items:flex-start;gap:11px;color:#a1ac97}.auth-note p{font-size:10px;line-height:1.8}.ticket-bottom{position:relative;display:flex;justify-content:space-between;align-items:center;border-top:1px dashed #dce3d5;padding:17px 0;color:#abb4a2;font-size:8px;letter-spacing:1.5px}.ticket-bottom:before,.ticket-bottom:after{content:'';position:absolute;width:16px;height:16px;background:#f5f6f0;border-radius:50%;top:-9px;border:1px solid #e6e9df}.ticket-bottom:before{left:-39px}.ticket-bottom:after{right:-39px}.barcode{font-size:18px;letter-spacing:-2px;opacity:.55}
/* The club */
.lobby{max-width:1104px;margin:48px auto 0}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:31px}.page-heading .eyebrow{font-size:9px}.page-heading h1{font-size:32px;margin-top:13px;margin-bottom:10px}.greeting-dot{color:#6e9575}.page-heading p{font-size:12px}.online-badge{display:inline-flex;gap:8px;align-items:center;border:1px solid #dfe5d7;padding:8px 12px;border-radius:20px;color:#849179;font-size:10px;margin-top:26px}.lobby-top{display:grid;grid-template-columns:1fr 333px;gap:23px}.create-card{background:#e7eddf;border:1px solid #dce5d1;border-radius:15px;padding:32px 35px 31px;position:relative;overflow:hidden;min-height:318px}.create-card .eyebrow{font-size:9px;color:#829775;position:relative;z-index:1}.create-card h2{font-size:34px;line-height:1.4;margin-top:17px;position:relative;z-index:1}.create-card p{font-size:11px;line-height:1.9;color:#819176;margin:15px 0 23px;position:relative;z-index:1}.create-card .button{position:relative;z-index:1;font-size:12px;min-height:44px;padding:0 17px}.paper-plane{position:absolute;width:280px;right:9px;top:27px}.hero-tag{position:absolute;bottom:36px;right:27px;color:#8a9b7c;font-size:10px;letter-spacing:1px;border-bottom:1px solid #cbd8bf;padding-bottom:10px;transform:rotate(-5deg)}.hero-tag span{font-size:9px;margin-left:12px}.join-card{background:#fff;border:1px solid #e3e8dc;border-radius:15px;padding:28px}.card-icon{width:42px;height:42px;display:grid;place-items:center;background:#f2f4ec;border-radius:12px;color:#7f926e;margin-bottom:22px}.join-card h2{font-size:19px;margin-bottom:8px}.join-card .muted{font-size:11px}.join-card input{margin:23px 0 13px;text-align:center;font-size:24px;letter-spacing:9px;font-weight:600;text-transform:uppercase;background:#f7f8f3;height:56px}.join-card input::placeholder{font-size:15px;letter-spacing:7px;font-weight:400}.join-card .field-hint{justify-content:center;font-size:9px;margin-top:15px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-title h2{font-size:16px;display:flex;align-items:center;gap:10px}.section-title h2 span{font-weight:450;font-size:10px;color:#9eaa93}.room-list-section{margin-top:32px}.empty-rooms{border:1px dashed #d8e0cf;border-radius:12px;min-height:111px;display:flex;align-items:center;gap:19px;padding:24px;background:#f8f9f4}.empty-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#edf1e6;color:#a4b194}.empty-rooms h3{font-size:13px;color:#839074;font-weight:500;margin-bottom:7px}.empty-rooms p{font-size:11px;color:#a4ae9a}.empty-dash{margin-left:auto;font-size:9px;letter-spacing:2px;color:#bec7b4}.lobby-bottom{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin-top:24px}.info-card{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #e3e8dc;border-radius:12px;padding:21px;text-align:left}.info-icon{height:42px;width:42px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.yellow{background:#fbf2da;color:#b6a15b}.mint{background:#ebf1e4;color:#839b6c}.info-card strong{display:block;font-size:12px;font-weight:550;margin-bottom:7px}.info-card small{font-size:10px;color:#9aa58f}.info-card>svg{margin-left:auto;color:#9fac91;flex-shrink:0}.room-list{display:grid;gap:10px}.room-list-item{display:flex;align-items:center;gap:15px;padding:20px;background:#fff;border:1px solid #dfe6d7;border-radius:12px;text-align:left;width:100%}.room-list-item:hover{border-color:#9cb899}.room-mini-plane{display:grid;place-items:center;width:44px;height:44px;background:#edf2e7;border-radius:12px;font-size:23px;color:#8da17d}.room-list-main{flex:1;min-width:0}.room-list-main strong{font-size:13px;font-weight:550}.room-list-main strong span{font-size:11px;font-weight:450;margin-left:10px;color:#7f9470}.room-list-main small{display:block;font-size:10px;margin-top:7px;color:#98a18f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-state{text-align:right}.room-state small{display:block;font-size:9px;color:#a2ad97;margin-top:6px}.badge.live{background:#e6f2e7;color:#55935b}
/* The flight table */
.game-page{max-width:1140px;margin:29px auto 0}.game-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:12px}.room-heading-title{font-size:13px;font-weight:550}.copy-code{background:none;border:0;color:#638260;font-size:12px;padding:4px 8px;letter-spacing:1px}.game-tools{display:flex;gap:12px;align-items:center}.game-tools .text-button{font-size:11px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 303px;gap:25px;align-items:start}.board-panel{border:1px solid #e0e7d9;border-radius:16px;background:#fff;padding:17px 22px 12px;position:sticky;top:20px}.board-caption{display:flex;justify-content:space-between;font-size:10px;color:#93a088;padding:0 0 10px}.board-caption>span:first-child{display:flex;align-items:center;gap:7px}.flight-board{width:100%;display:block;overflow:visible}.board-bottom{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#a2ad98;border-top:1px solid #eff2e9;padding-top:11px}.board-bottom span{display:flex;align-items:center;gap:5px}.board-bottom .text-button{font-size:10px}.game-sidebar{display:flex;flex-direction:column;gap:16px}.crew-card,.turn-card,.log-card{border:1px solid #e1e7d9;border-radius:13px;background:#fff;padding:21px}.crew-card .section-title{margin-bottom:16px;color:#8b9b80}.crew-card .section-title h2{font-size:14px;color:#42523e}.crew-list{display:flex;flex-direction:column;gap:5px}.crew{display:flex;align-items:center;gap:12px;padding:9px 7px;border:1px solid transparent;border-radius:9px}.crew.current{background:color-mix(in srgb,var(--player-color) 7%,white);border-color:color-mix(in srgb,var(--player-color) 20%,white)}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;font-size:14px;font-weight:600;flex-shrink:0}.crew-name{flex:1;min-width:0}.crew-name strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:550}.crew-name small{display:block;color:#a0a995;font-size:9px;margin-top:5px}.crew-name em{font-style:normal;font-size:8px;color:#95a487;font-weight:400}.avatar.dashed{border:1px dashed #d6dfcd;color:#b8c2ac;font-weight:400}.crew.empty{font-size:11px;color:#b1bba5;min-height:54px}.ready-check{color:#82a17b}.crew-card>.button{margin-top:13px}.turn-label{font-size:8px;color:var(--player-color);white-space:nowrap}.turn-card{text-align:center;padding:25px 22px}.turn-card h2{font-size:18px;margin:9px 0 12px}.turn-card p{font-size:11px;color:#96a18c;line-height:1.9;margin-bottom:18px}.turn-card>.eyebrow{justify-content:center;font-size:9px}.turn-illustration{font-size:41px;color:#8caa7f;line-height:1.2;transform:rotate(-15deg);margin-bottom:16px}.turn-card>.text-button{font-size:10px;margin-top:14px}.turn-card.your-turn{border-color:#afc6a6;background:#fbfdf7}.dice-display{width:68px;height:68px;margin:20px auto 17px;transform:rotate(-7deg);filter:drop-shadow(0 4px 5px #45693a10)}.dice-display svg{width:100%}.auto-hint{display:inline-flex;align-items:center;gap:4px;font-size:9px;color:#93a186;margin-top:13px}.turn-card .turn-prompt{font-size:11px;min-height:21px;margin-bottom:13px}.waiting-tip{display:flex;gap:10px;margin:0 13px;color:#a4b198;line-height:1.8;font-size:10px}.waiting-tip svg{margin-top:3px;flex-shrink:0}.log-card{padding-bottom:15px}.log-card .section-title h2{font-size:12px}.log-card .section-title{margin-bottom:12px}.live-dot{width:5px;height:5px;background:#95b181;border-radius:50%}.flight-log{list-style:none;margin:0;padding:0;max-height:190px;overflow:auto}.flight-log li{font-size:10px;line-height:1.8;color:#a4ad9a;padding:0 0 10px 15px;position:relative}.flight-log li:before{content:'';width:4px;height:4px;position:absolute;top:7px;left:0;background:#d8dfcf;border-radius:50%}.flight-log li.latest{color:#5f7c52}.flight-log li.latest:before{background:#819e71}.winner-cup{font-size:49px;margin-bottom:14px}.can-move{cursor:pointer;outline:none}.can-move:hover .selection-ring,.can-move:focus .selection-ring{stroke-width:3;stroke:#174a37}.selection-ring{animation:pulse 1.5s ease-in-out infinite;transform-box:fill-box;transform-origin:center}.rolling{animation:roll .42s cubic-bezier(.45,0,.55,1) infinite;transform-origin:center}.rolling svg{filter:drop-shadow(0 10px 5px #284d3428)}.active{color:var(--green);background:#e9f0e2}@keyframes pulse{50%{opacity:.4}}@keyframes roll{0%{transform:translateY(0) rotate(-12deg) scale(1)}25%{transform:translateY(-12px) rotate(72deg) scale(.88)}50%{transform:translateY(-18px) rotate(165deg) scale(1.06)}75%{transform:translateY(-8px) rotate(255deg) scale(.9)}100%{transform:translateY(0) rotate(348deg) scale(1)}}
/* Dialogs and feedback */
dialog{color:var(--ink);border:1px solid #dce4d3;border-radius:18px;padding:35px;width:min(610px,calc(100% - 32px));max-height:85dvh;box-shadow:0 25px 90px #203d2c33}dialog::backdrop{background:#20342766;backdrop-filter:blur(5px)}dialog h2{font-size:24px;margin:13px 0 12px}dialog>.muted{font-size:12px;margin-bottom:24px}.modal-close{position:absolute;right:17px;top:16px}.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 25px;margin:26px 0}.rules-grid article>span{font-size:10px;color:#9bad88;letter-spacing:1px}.rules-grid h3{font-size:13px;margin:7px 0}.rules-grid p{font-size:11px;line-height:1.9;color:#89937e}.rule-note{background:#f3f6ed;color:#8c997c;border-radius:8px;padding:15px;font-size:11px;line-height:1.8;margin:20px 0}.modal-actions{display:flex;gap:10px;margin-top:25px;justify-content:flex-end}.invite-list{margin-top:20px;max-height:360px;overflow:auto}.invite-row{display:flex;align-items:center;gap:10px;padding:15px 0;border-top:1px solid #e9eee2}.invite-row>div{flex:1}.invite-row code{font-size:12px;letter-spacing:1px}.invite-row small{display:block;font-size:10px;color:#9ba78e;margin-top:7px}.empty-invites{padding:25px;text-align:center;font-size:12px;color:#98a38c}#toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:#244b3e;color:#fff;padding:13px 23px;border-radius:10px;font-size:12px;box-shadow:0 6px 20px #12332426;transition:.2s;max-width:calc(100% - 32px);text-align:center;line-height:1.6}#toast.show{opacity:1;transform:translate(-50%,0)}.boot{min-height:80vh;display:grid;align-content:center;justify-content:center;font-size:24px;color:var(--green)}.boot span{font-size:12px;text-align:center;margin-top:15px;color:#8c9b80}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1440px){.auth-layout{margin-top:80px;margin-bottom:70px}.auth-story h1{font-size:55px}.story-board{width:325px}.lobby{margin-top:60px}}
@media(max-width:1200px){.site-header{margin:0 25px;padding:0 10px}.auth-layout{margin-left:50px;margin-right:50px;gap:50px}.lobby,.game-page{margin-left:35px;margin-right:35px}footer{margin-left:35px;margin-right:35px}.paper-plane{width:240px;right:0}.create-card{padding-left:27px}.auth-story h1{font-size:44px}.story-board{margin-left:80px}.story-bottom{gap:10px;font-size:9px}}
@media(max-width:940px){.auth-layout{gap:40px;grid-template-columns:1fr 340px;margin:48px 35px}.auth-card{padding:28px 25px 0}.auth-story h1{font-size:36px}.story-board{width:240px;margin-left:35px}.board-sticker{right:-15px}.story-bottom{flex-wrap:wrap;gap:10px}.ticket-bottom:before{left:-34px}.ticket-bottom:after{right:-34px}.lobby-top{grid-template-columns:1fr 285px;gap:16px}.paper-plane{width:190px;right:-10px;top:48px;opacity:.75}.hero-tag{right:18px;font-size:9px}.hero-tag span{display:none}.create-card h2{font-size:30px}.join-card{padding:25px 20px}.lobby-bottom{gap:15px}.info-card{padding:16px;gap:12px}.info-card small{font-size:9px}.game-layout{grid-template-columns:minmax(0,1fr) 270px;gap:17px}.board-panel{padding:13px}.game-page{margin-left:23px;margin-right:23px}.crew-card,.turn-card,.log-card{padding:17px}.board-bottom>span:nth-child(2){display:none}.game-sidebar{gap:12px}}
@media(max-width:700px){.site-header{height:77px;margin:0 20px;padding:0}.brand{font-size:19px;gap:9px}.brand-symbol{width:34px;height:38px;border-radius:11px}.brand small{font-size:6px;letter-spacing:1.65px}.brand-symbol svg{width:24px}nav{gap:9px}.nav-link{font-size:11px}.nav-link svg{width:15px}.badge.private{font-size:9px;padding:6px}.header-divider,.header-name{display:none}.mini-avatar{margin-left:6px;width:27px;height:27px;font-size:12px}.auth-layout{display:flex;flex-direction:column;gap:30px;margin:34px 24px}.auth-story{width:100%;padding-right:85px}.auth-story>.eyebrow{font-size:9px;letter-spacing:1.3px}.auth-story h1{font-size:31px;margin:12px 0 13px;line-height:1.4}.tiny-spark{font-size:25px;margin-left:13px}.story-copy{font-size:10px}.story-board{position:absolute;width:122px;right:0;top:43px;margin:0;opacity:.83;z-index:-1}.story-board:before{inset:10px -7px 0 -15px}.board-sticker{display:none}.story-bottom{display:none}.auth-card{width:100%;max-width:410px;padding:27px 25px 0}.auth-title h2{font-size:23px}footer{margin:32px 24px 0;padding:20px 0;gap:10px;align-items:flex-start;font-size:8px}.footer-right{font-size:7px;letter-spacing:0;gap:5px}.color-dots{display:none}.footer-dot{margin:0 3px}.lobby{margin:32px 22px 0}.page-heading{margin-bottom:24px;align-items:flex-start}.page-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.page-heading h1{font-size:27px;margin-top:11px;letter-spacing:-1px}.page-heading p{font-size:10px;max-width:235px}.online-badge{font-size:8px;padding:6px 8px;margin-top:5px;gap:5px;white-space:nowrap}.lobby-top{grid-template-columns:1fr;gap:17px}.create-card{padding:25px;min-height:290px}.create-card h2{font-size:32px}.create-card p{font-size:11px}.paper-plane{width:180px;right:-1px;top:49px;opacity:.9}.create-card .eyebrow{font-size:8px}.hero-tag{bottom:34px}.join-card{padding:23px;position:relative}.card-icon{position:absolute;right:22px;top:24px;width:35px;height:35px}.card-icon svg{width:20px}.join-card h2{font-size:17px}.join-card .muted{font-size:10px}.join-card form{display:grid;grid-template-columns:1fr 125px;gap:10px;margin-top:20px}.join-card input{margin:0;font-size:20px;height:47px;letter-spacing:4px;min-width:0}.join-card input::placeholder{font-size:13px;letter-spacing:4px}.join-card .button{min-height:47px;padding:0 10px;font-size:11px}.join-card .field-hint{justify-content:flex-start;margin-top:10px;font-size:9px}.section-title h2{font-size:14px}.room-list-section{margin-top:25px}.empty-rooms{padding:19px 17px;gap:13px;min-height:100px}.empty-rooms h3{font-size:11px}.empty-rooms p{font-size:9px;line-height:1.8}.empty-icon{width:35px;height:35px;flex-shrink:0}.empty-icon svg{width:22px}.empty-dash{display:none}.lobby-bottom{grid-template-columns:1fr;gap:12px;margin-top:18px}.info-card{padding:17px}.info-card small{font-size:10px}.room-list-item{padding:16px;gap:10px}.room-list-main strong{font-size:11px}.room-list-main strong span{display:block;margin:4px 0 0;font-size:10px}.room-state small{font-size:8px}.room-mini-plane{width:36px;height:36px;font-size:20px}.game-page{margin:22px 14px 0}.game-heading{flex-wrap:wrap;margin-bottom:15px;gap:10px}.game-heading>.text-button{font-size:10px}.room-heading-title{font-size:11px}.copy-code{font-size:11px;padding:3px}.game-tools{gap:5px}.game-tools>.text-button{font-size:9px}.game-layout{display:flex;flex-direction:column;gap:14px}.board-panel{width:100%;padding:12px 10px 10px;position:static;border-radius:12px}.board-caption{font-size:9px;padding:0 3px 6px}.board-bottom{padding:8px 2px 0;font-size:8px}.board-bottom>span:nth-child(2){display:flex;font-size:8px}.board-bottom .text-button{font-size:9px}.game-sidebar{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}.crew-card,.turn-card,.log-card{padding:14px 11px;border-radius:11px}.crew-card .section-title{margin-bottom:8px}.crew-card .section-title h2{font-size:12px;gap:7px}.crew-card .section-title>svg{display:none}.crew-card .section-title h2 span{font-size:9px}.crew{padding:7px 3px;gap:7px;min-height:46px}.crew.empty{min-height:46px;font-size:9px}.avatar{width:27px;height:27px;border-radius:8px;font-size:12px}.crew-name strong{font-size:10px}.crew-name small{font-size:8px;margin-top:4px}.turn-label{font-size:7px}.crew-name em{font-size:7px}.crew .icon-button{width:20px;height:20px}.crew-card>.button{font-size:9px;padding:0 3px;min-height:34px;gap:3px;margin-top:10px}.crew-card>.button svg{width:13px}.turn-card h2{font-size:15px;line-height:1.6;overflow-wrap:anywhere}.turn-card>.eyebrow{font-size:7px;letter-spacing:1px}.turn-card p{font-size:9px;line-height:1.8;margin-bottom:13px}.turn-card .button{font-size:10px;padding:0 6px;min-height:41px;gap:6px}.turn-card .button svg{width:15px}.turn-card>.text-button{font-size:8px;gap:3px}.turn-illustration{font-size:35px;margin:7px 0 12px}.turn-card .turn-prompt{font-size:9px;min-height:32px}.dice-display{width:62px;height:62px;margin:16px auto}.auto-hint{font-size:7px;gap:2px;white-space:nowrap}.auto-hint svg{width:11px}.waiting-tip{grid-column:1/-1;margin:5px 10px;font-size:9px}.log-card{grid-column:1/-1;padding:17px}.flight-log{max-height:150px}.flight-log li{font-size:10px}.winner-cup{font-size:35px}.rules-grid{grid-template-columns:1fr;gap:20px}.rules-grid p{font-size:12px}dialog{padding:28px 24px}dialog h2{font-size:22px}.modal-actions .button{padding:0 12px;font-size:11px}.invite-row{gap:5px}.invite-row code{font-size:10px}.invite-row .text-button{font-size:10px}}
@media(max-width:700px){.auth-story{overflow:clip;padding-bottom:8px}.site-header .private{font-size:8px}.story-board{z-index:0}.story-copy,.auth-story h1,.auth-story>.eyebrow{position:relative;z-index:1}}
.flight-actions{display:grid;width:max-content;max-width:100%;gap:12px;position:relative;z-index:1}.flight-actions>.button{width:100%;height:44px}.asset-credit{font-size:9px;color:#87957a;margin:12px 0}.asset-credit a{color:inherit}.board-panel #board{padding:6px 0 10px}.board-panel .flight-board{border-radius:9px;overflow:hidden}.can-move:hover .selection-ring,.can-move:focus .selection-ring{stroke:#fff9b2;stroke-width:6}.story-board .flight-board{border-radius:10px;overflow:hidden}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.moving{pointer-events:none}.moving .can-move .selection-ring{opacity:0}.sound-toggle{min-height:36px;padding:4px 9px;border:1px solid #d4dfd0;border-radius:8px;white-space:nowrap}.sound-toggle.active{background:#e5eee2;color:#286450}.collision-flash{fill:#fff6b5;stroke:#ffaf36;stroke-width:8;pointer-events:none;animation:impact-flash .5s ease-out forwards;transform-box:fill-box;transform-origin:center}@keyframes impact-flash{from{opacity:1;transform:scale(.4)}to{opacity:0;transform:scale(1.8)}}
.offline-banner{position:sticky;top:0;z-index:40;background:#fff4d6;color:#7a5310;border-bottom:1px solid #eccf8a;padding:8px 14px;font-size:12px;text-align:center}
.turn-card .turn-timer{font-size:11px;color:#5f6b60;margin:-4px 0 12px;line-height:1.6}
.turn-card .turn-timer.warn{color:#8a4b1f;font-weight:600}
.crew-name small .offline-tag{display:inline-block;margin-right:5px;padding:0 5px;border-radius:6px;background:#f0ece2;color:#7a5310;font-size:9px;font-weight:600}
@media(max-width:700px){.turn-card .turn-timer{font-size:10px}.offline-banner{font-size:11px;padding:6px 10px}}


/* Larger alternate controls avoid ambiguous overlapping hit zones on the small board. */
.move-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.move-choices .button{min-height:44px!important;font-size:12px!important;padding:8px!important}
button,.plane-token{touch-action:manipulation;-webkit-touch-callout:none;user-select:none}
.plane-token:focus-visible .selection-ring{stroke:#101c16;stroke-width:8}
body{padding-bottom:env(safe-area-inset-bottom)}
.muted,.field-hint,.crew-name small,.auto-hint,.board-bottom,.board-caption,.asset-credit{color:#586553}
.reconcile-card{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:22px;padding:14px;background:#101b3d;border:2px solid #f0cd42;border-radius:16px;box-shadow:0 10px 28px #152b4a24;color:#fff;overflow:hidden}
.reconcile-card img{display:block;width:100%;height:auto;aspect-ratio:1080/599;object-fit:cover;border-radius:10px}
.reconcile-card p{font-size:clamp(18px,2.2vw,26px);font-weight:750;line-height:1.55;color:#fff;overflow-wrap:anywhere}
.reconcile-label{display:block;margin-bottom:8px;color:#ffe670;font-size:11px;font-weight:750;letter-spacing:.08em}
.auth-card .reconcile-card{grid-template-columns:120px minmax(0,1fr);gap:12px;margin-top:18px;padding:10px;border-radius:11px}
.auth-card .reconcile-card p{font-size:14px;line-height:1.5}
.auth-card .reconcile-label{font-size:9px;letter-spacing:0;margin-bottom:5px}
.lobby>.reconcile-card{margin:-6px 0 25px}
@media(max-width:700px){.lobby>.reconcile-card{grid-template-columns:110px minmax(0,1fr);gap:12px;margin:0 0 21px;padding:10px}.lobby>.reconcile-card p{font-size:15px}.lobby>.reconcile-card .reconcile-label{font-size:9px}.auth-card .reconcile-card{grid-template-columns:100px minmax(0,1fr)}.auth-card .reconcile-card p{font-size:13px}}
@media(max-width:700px){
  .crew-name small,.crew-name strong,.crew.empty,.turn-label,.crew-name em,.turn-card .eyebrow,.turn-card p,.turn-card .turn-prompt,.auto-hint,.board-caption,.board-bottom,.board-bottom>span:nth-child(2),.board-bottom .text-button,.game-tools>.text-button,.game-heading>.text-button,footer,.footer-right,.room-state small,.room-list-main strong,.room-list-main strong span,.empty-rooms p,.empty-rooms h3,.story-copy,.online-badge,.join-card .muted,.join-card .field-hint,.flight-log li{font-size:11px}
  .auto-hint{white-space:normal}.crew-name{min-width:0}.crew-name strong{overflow-wrap:anywhere}
  .game-tools .text-button,.game-heading>.text-button{min-height:44px}.game-heading{align-items:center}
}
