@font-face{font-family:FieldSans;src:local('Arial')}*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:#f5f3ec;color:#17251e;font-family:FieldSans,Arial,'PingFang SC','Microsoft YaHei',sans-serif;font-size:14px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #326fed;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.masthead{height:89px;padding:0 5%;display:flex;align-items:center;gap:24px;border-bottom:1px solid #d8d9cd}.wordmark{font-size:27px;letter-spacing:-1.6px;font-weight:900;display:flex;align-items:center;gap:15px}.wordmark span{font-size:10px;letter-spacing:2px;border-left:1px solid #aab3a7;padding-left:15px;line-height:20px}.edition{font-size:9px;letter-spacing:1.7px;color:#637164;margin-left:auto}.test-label{font-size:10px;border:1px solid #bfc9bb;border-radius:20px;padding:6px 10px;color:#637164}main{max-width:1380px;margin:auto;padding:56px 5% 48px}.lobby{display:grid;grid-template-columns:1.15fr 1fr;gap:10%;align-items:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#607361;margin:0 0 16px}.introduction h1{font-size:clamp(68px,8vw,115px);font-weight:800;line-height:.94;letter-spacing:-7px;margin:0 0 26px}.introduction h1 span{color:#3175e8}.intro-copy{font-size:14px;line-height:1.9;color:#637164;margin:0 0 25px}.scene-preview{position:relative;height:220px;border-radius:10px;overflow:hidden;background:#39734d}.scene-preview canvas{width:100%;height:100%;display:block}.scene-caption{position:absolute;bottom:13px;left:17px;right:17px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.1px;color:#e8efcd}.entry-panel{background:#fffefa;border:1px solid #dce0d4;padding:30px;border-radius:15px;box-shadow:0 12px 35px #24351e06}.panel-heading h2{font-size:24px;letter-spacing:-.8px;margin:0 0 26px}.panel-heading .eyebrow{margin-bottom:9px;font-size:9px}.kit-editor{display:flex;align-items:center;gap:20px;margin-bottom:20px}#kit-preview{width:105px;height:143px;background:#efeee5;border-radius:9px;image-rendering:pixelated;flex:none}.kit-fields{flex:1;min-width:0}label{display:block;font-size:11px;color:#607361}input:not([type=color]):not([type=range]):not([type=file]),select{display:block;width:100%;height:42px;background:#f6f6ef;border:1px solid #d9dfd2;border-radius:5px;color:#17251e;padding:0 10px;font-size:14px;margin-top:7px;min-width:0}.two-fields{display:grid;grid-template-columns:.6fr 1fr;gap:10px;margin-top:12px}.color-fields{display:flex;gap:17px;margin-top:12px}.color-fields label{display:flex;align-items:center;gap:6px}input[type=color]{height:24px;width:27px;padding:1px;background:none;border:1px solid #ccd4c5;border-radius:4px;cursor:pointer}.upload-button{height:40px;display:flex;align-items:center;justify-content:center;border:1px dashed #b8c8b5;border-radius:5px;color:#3f5c40;font-size:12px;cursor:pointer}.upload-button input{position:absolute;width:1px;height:1px;opacity:0}.microcopy{font-size:10px;line-height:1.6;color:#7e8c7b;margin:8px 0 20px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:10px 16px;border-radius:5px;border:1px solid transparent;font-weight:600;font-size:12px;white-space:nowrap}.primary{background:#1a3929;color:#f7f7e8}.primary:hover:not(:disabled){background:#28583b}.secondary{background:#fffefa;border-color:#ccd6c6;color:#2e4b34}.secondary:hover:not(:disabled){background:#edf1e7}.quiet{background:transparent;color:#5e745f}.quiet:hover{background:#e9eee2}#create-room{width:100%;justify-content:space-between;min-height:48px;font-size:13px}.join-line{display:flex;gap:8px;margin-top:10px}.join-line input{margin:0!important;letter-spacing:1px}.practice-entry{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e5e8df;margin-top:22px;padding-top:18px;font-size:11px;color:#768572}.text-button{border:0;background:none;color:#2c6945;font-size:12px;padding:6px 0;font-weight:600}.entry-note{font-size:9px;color:#7c8c75;display:flex;align-items:center;gap:7px;margin-top:19px}.dot{width:5px;height:5px;background:#7c9b64;border-radius:50%;display:inline-block}.error{color:#b03e32;font-size:12px;line-height:1.7;margin:8px 0;min-height:0}.error:empty{display:none}.play .field-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.field-heading .eyebrow{margin-bottom:7px}.field-heading h1{font-size:35px;letter-spacing:-1.7px;margin:0}.room-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.connection{font-size:10px;color:#6c8161;display:flex;align-items:center;gap:5px;margin-right:5px}.connection::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.connection.offline{color:#b08236}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:26px}.field-column{min-width:0}.field-stage{position:relative;aspect-ratio:1.61;background:#295a3b;border:7px solid #cdd0b3;box-shadow:0 0 0 1px #c1c6ac;border-radius:5px;overflow:hidden}.field-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.field-overlay{position:absolute;top:13px;left:15px;right:15px;display:flex;justify-content:space-between;pointer-events:none;color:#dce9bd;font-size:9px;letter-spacing:1.5px}.field-message{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:#132e23de;color:#fff9e4;max-width:calc(100% - 20px);text-align:center;padding:8px 13px;border-radius:4px;font-size:11px;pointer-events:none;white-space:normal;line-height:1.6}.control-strip{display:flex;align-items:center;gap:16px;padding-top:20px}.joystick{position:relative;width:90px;height:90px;border-radius:50%;background:#e3e8d9;border:1px solid #cbd6bf;flex:none;touch-action:none}.joystick-cross::before,.joystick-cross::after{content:'';position:absolute;background:#c6d2bc;left:20%;top:49%;width:60%;height:1px}.joystick-cross::after{transform:rotate(90deg)}.joystick-knob{position:absolute;width:37px;height:37px;left:26px;top:26px;background:#fafcf4;border:1px solid #b5c8a6;box-shadow:0 3px 6px #23401c15;border-radius:50%;pointer-events:none}.control-info{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.control-info strong{font-size:12px}.control-info>span{font-size:10px;color:#788a70}.power-label{display:flex;gap:7px;align-items:center;margin-top:3px;font-size:10px}.power-label input{width:90px;accent-color:#315b3c;min-width:35px}.power-label span{font-variant-numeric:tabular-nums}.action-buttons{display:flex;gap:7px}.action-buttons .button{min-height:49px}kbd{font-family:inherit;font-size:9px;font-weight:400;opacity:.65}.field-footnote{font-size:10px;line-height:1.7;color:#72816d;margin-top:16px}.field-sidebar{border-left:1px solid #dce2d2;padding-left:24px;min-width:0}.side-section{margin-bottom:25px}.section-label{display:flex;align-items:center;justify-content:space-between;gap:5px}h2{font-size:13px;margin:0 0 14px}.section-label>span{font-size:8px;color:#7e8e73;letter-spacing:.5px;margin-bottom:14px}.roster{display:flex;flex-direction:column;gap:11px}.roster-row{display:flex;align-items:center;gap:9px;min-width:0}.roster-avatar{width:29px;height:33px;image-rendering:pixelated;border-radius:3px;background:#e9edde;flex:none}.roster-name{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roster-detail{font-size:9px;color:#7b8c72;margin-top:3px}.roster-disc{margin-left:auto;color:#bb7f00;font-size:10px}.side-copy{font-size:10px;color:#7b8b74;line-height:1.8}.scenario-buttons{display:flex;flex-wrap:wrap;gap:6px}.scenario-buttons .button{min-height:34px;font-size:10px;padding:7px 9px}.scenario-buttons .active{background:#dfead6;border-color:#a8bc98}#switch-player{width:100%;font-size:11px;margin-top:7px}.events{display:flex;flex-direction:column;gap:12px;color:#6e8165;font-size:10px;line-height:1.6}.events>div{border-left:2px solid #c5d7b4;padding-left:9px}.events>div:first-child{color:#2e5438;border-color:#4d8255}.rules-note{border-top:1px solid #dce2d2;padding-top:17px}.rules-note strong{font-size:11px}.rules-note p{font-size:10px;color:#788a70;line-height:1.9}footer{max-width:1380px;margin:0 auto;padding:22px 5%;border-top:1px solid #d9dfcf;display:flex;justify-content:space-between;gap:15px;color:#829178;font-size:8px;letter-spacing:1px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1400px){main{padding-left:45px;padding-right:45px}}@media(max-width:1000px){.lobby{gap:6%;grid-template-columns:1fr 1fr}.entry-panel{padding:23px}.introduction h1{letter-spacing:-5px}.kit-editor{gap:12px}#kit-preview{width:80px}.play-layout{grid-template-columns:minmax(0,1fr) 185px;gap:19px}.field-sidebar{padding-left:17px}.control-strip{gap:11px}.action-buttons{flex-direction:column}.action-buttons .button{min-height:38px;padding:8px 12px}kbd{display:none}}@media(max-width:700px){.masthead{height:69px;padding:0 6%;gap:10px}.wordmark{font-size:23px}.edition{display:none}.test-label{margin-left:auto;font-size:9px}main{padding:33px 6% 30px}.lobby{grid-template-columns:1fr;gap:27px}.introduction h1{font-size:76px;letter-spacing:-5px}.introduction h1 br{display:none}.intro-copy{font-size:12px;margin-bottom:18px}.scene-preview{height:175px}.entry-panel{padding:23px}.kit-editor{gap:20px}#kit-preview{width:95px}.play .field-heading{align-items:flex-start;gap:10px;margin-bottom:18px}.field-heading h1{font-size:28px}.field-heading .eyebrow{font-size:8px;letter-spacing:1px}.room-actions{gap:4px;max-width:190px}.room-actions .button{min-height:37px;padding:8px 10px;font-size:10px}.connection{width:100%;justify-content:flex-end;font-size:9px;margin-bottom:3px}.play-layout{grid-template-columns:1fr;gap:15px}.field-stage{aspect-ratio:.64;border-width:5px}.field-sidebar{border-left:0;border-top:1px solid #dce2d2;padding:20px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:20px}.side-section{margin-bottom:0}.rules-note{grid-column:1/-1}.roster{gap:9px}.control-strip{gap:12px;padding-top:16px}.joystick{width:82px;height:82px}.joystick-knob{left:22px;top:22px}.control-info>span{font-size:9px}.control-info strong{font-size:11px}.power-label{gap:4px;flex-wrap:wrap}.power-label input{width:65px}.action-buttons .button{min-height:40px;padding:8px 12px;font-size:11px}.field-footnote{font-size:9px}.field-overlay{top:10px;left:10px;right:10px;font-size:8px}.field-message{font-size:10px;bottom:9px}.field-sidebar h2{font-size:12px}footer{padding:20px 6%;font-size:7px;letter-spacing:.5px}footer span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-width:700px){.action-buttons .button{min-height:44px}.room-actions .button{min-height:44px}}

/* Shared field: choose a jersey, then step onto the same pitch. */
.name-label{margin-bottom:18px}.jersey-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.jersey-choice{position:relative;min-width:0;background:#f6f6ef;border:1px solid #dce1d4;border-radius:9px;padding:9px 9px 13px;color:#253b2b;text-align:left}.jersey-choice img{display:block;width:100%;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply;border-radius:4px;margin-bottom:9px}.jersey-choice>span:not(.selection-mark){display:block;font-size:12px;font-weight:700;margin:0 3px 4px}.jersey-choice small{font-size:9px;color:#7b8b72;margin-left:3px}.jersey-choice.selected{border-color:#3e7650;background:#edf2e5;box-shadow:0 0 0 1px #3e7650}.selection-mark{display:none;position:absolute;right:9px;top:9px;width:20px;height:20px;background:#2b5c3d;color:#fff;border-radius:50%;align-items:center;justify-content:center;font-size:11px}.jersey-choice.selected .selection-mark{display:flex}.selected-kit{display:flex;align-items:center;gap:17px;margin:16px 0}.selected-kit #kit-preview{width:60px;height:73px;background:transparent}.selected-kit>div{display:flex;flex-direction:column;gap:6px}.micro-label{font-size:8px;color:#7d8b74;letter-spacing:1px}.selected-kit strong{font-size:14px}.selected-kit #kit-status{font-size:10px;color:#74856a}#enter-field{width:100%;justify-content:space-between;min-height:48px}.heading-dot{color:#3f79da}.introduction h1{font-size:clamp(59px,6.8vw,95px);letter-spacing:-5px}.field-stage{aspect-ratio:1.85;min-height:420px;max-height:660px}.field-overlay{right:auto;gap:15px;max-width:calc(100% - 140px)}.field-details{display:grid;grid-template-columns:1.6fr 1fr;gap:32px;border-top:1px solid #d8dfce;padding-top:24px;margin-top:25px}.field-details .roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:13px}.field-details .events{gap:9px}.field-bottom{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.field-footnote{margin:12px 0 0}.control-tip{margin-top:3px;color:#76876b!important}.action-buttons{flex-direction:row}.action-buttons .button{min-height:48px;min-width:85px}.field-heading{margin-top:0}
@media(max-width:1000px){.field-stage{min-height:430px}.introduction h1{font-size:65px}}
@media(max-width:700px){.introduction h1{font-size:58px;letter-spacing:-3.4px}.introduction h1 br{display:block}.field-stage{aspect-ratio:.85;min-height:390px;max-height:560px}.field-details{grid-template-columns:1fr;gap:23px}.field-details .roster{grid-template-columns:repeat(2,minmax(0,1fr))}.room-actions{max-width:230px}.room-actions .connection{width:100%;margin-bottom:4px}.room-actions .button{min-height:40px;padding:8px 10px}.field-heading h1{font-size:26px}.field-heading .eyebrow{max-width:125px;line-height:1.7}.control-info{max-width:none}.control-info .control-tip{display:none}.action-buttons{flex-direction:row;gap:7px}.action-buttons .button{min-width:58px;min-height:48px;padding:10px}.control-strip{gap:10px}.control-info>span{line-height:1.6}.field-bottom{gap:0}.field-footnote{font-size:9px}.lobby{gap:25px}.field-heading .room-actions .quiet{padding-right:0}.field-overlay{font-size:8px;max-width:calc(100% - 125px)}}

.field-column>.field-message{position:static;transform:none;max-width:none;background:#e9eddf;color:#395a3d;margin-top:9px;text-align:left;padding:9px 12px;border-radius:4px;font-size:11px}
.field-stage{width:100%;max-width:100%}

/* Play in the viewport. HUD controls float above the field rather than below it. */
body.is-playing{overflow:hidden;overscroll-behavior:none;background:#28583c}
body.is-playing>.masthead,body.is-playing>footer{display:none}
body.is-playing>main{padding:0;margin:0;max-width:none}
body.is-playing #play{position:fixed;inset:0;width:100%;height:100vh;height:var(--field-viewport-height,100dvh);overflow:hidden;background:#28583c;z-index:20}
body.is-playing .field-column{position:absolute;inset:0;width:100%;height:100%;min-width:0}
body.is-playing .field-stage{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none}
body.is-playing #field{width:100%;height:100%}
body.is-playing .field-heading{position:absolute;z-index:4;top:calc(env(safe-area-inset-top,0px) + 10px);left:calc(env(safe-area-inset-left,0px) + 14px);right:auto;max-width:calc(100% - 28px);margin:0;pointer-events:none}
body.is-playing .room-actions{max-width:none;gap:6px;flex-wrap:nowrap;justify-content:flex-start;align-items:center;pointer-events:auto}
body.is-playing .room-actions .connection{width:auto;margin:0 5px 0 0;color:#e8eed8;font-size:10px;white-space:nowrap}
body.is-playing .room-actions .connection.offline{color:#ffe1a7}
body.is-playing .room-actions .button{min-height:36px;padding:8px 11px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.28);color:#f4f5e6;font-size:10px;border-radius:5px}
body.is-playing .room-actions .button:hover{background:rgba(255,255,255,.17)}
body.is-playing .field-overlay{z-index:2;top:calc(env(safe-area-inset-top,0px) + 58px);left:calc(env(safe-area-inset-left,0px) + 15px);right:auto;max-width:calc(100% - 140px);font-size:9px;gap:12px;opacity:.78}
body.is-playing .control-strip{position:absolute;inset:0;z-index:3;display:block;padding:0;margin:0;background:transparent;pointer-events:none;user-select:none;-webkit-user-select:none}
body.is-playing .joystick{position:absolute;left:calc(env(safe-area-inset-left,0px) + 22px);bottom:calc(env(safe-area-inset-bottom,0px) + 18px);width:108px;height:108px;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.07);box-shadow:none;pointer-events:auto;touch-action:none}
body.is-playing .joystick-cross::before,body.is-playing .joystick-cross::after{background:rgba(255,255,255,.22)}
body.is-playing .joystick-knob{left:32px;top:32px;width:43px;height:43px;background:rgba(255,255,255,.27);border:1px solid rgba(255,255,255,.62);box-shadow:0 2px 8px rgba(10,30,20,.08)}
body.is-playing .action-buttons{position:absolute;right:calc(env(safe-area-inset-right,0px) + 22px);bottom:calc(env(safe-area-inset-bottom,0px) + 20px);display:flex;flex-direction:row;gap:13px;pointer-events:auto;touch-action:manipulation}
body.is-playing .action-buttons .button{display:flex;flex-direction:column;gap:4px;width:76px;height:76px;min-width:76px;min-height:76px;padding:8px;border-radius:50%;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.45);color:#fffdec;box-shadow:none;font-size:14px;user-select:none;-webkit-user-select:none}
body.is-playing .action-buttons .primary{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.7)}
body.is-playing .action-buttons .button:hover:not(:disabled){background:rgba(255,255,255,.21)}
body.is-playing .action-buttons .button:active:not(:disabled){background:rgba(255,255,255,.3);transform:scale(.97)}
body.is-playing .action-buttons .button:disabled{opacity:.32}
body.is-playing #pickup{opacity:.32;background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.7)}
body.is-playing #pickup.in-reach:not(:disabled){opacity:1;border-color:#fff;background:rgba(255,255,255,.3);box-shadow:inset 0 0 0 1px rgba(255,255,255,.42)}
body.is-playing .action-buttons kbd{display:block;color:inherit;font-size:9px;opacity:.65}
body.is-playing .control-info{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 66px);transform:translateX(-50%);width:min(260px,calc(100% - 365px));text-align:center;color:#eff4db;pointer-events:none}
body.is-playing .control-info strong{font-size:11px;font-weight:500;text-shadow:0 1px 3px #173b29}
body.is-playing .control-info>span{display:none}
body.is-playing .field-column>.field-message{position:absolute;z-index:2;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 22px);transform:translateX(-50%);width:min(370px,calc(100% - 365px));max-width:none;margin:0;padding:7px 10px;background:rgba(16,44,30,.32);border-radius:5px;color:#f6f5de;font-size:10px;line-height:1.6;text-align:center;pointer-events:none}
body.is-playing .field-bottom,body.is-playing .field-details{display:none}
body.is-playing #play-error{position:absolute;z-index:5;left:50%;top:calc(env(safe-area-inset-top,0px) + 10px);transform:translateX(-50%);max-width:50%;margin:0;background:#49372ddd;color:#ffeddb;padding:8px 12px;border-radius:4px;font-size:11px}
body.is-playing .rotate-prompt{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;background:rgba(23,48,34,.97);color:#f4f2df;padding:30px;text-align:center}
.rotate-content{max-width:320px}.rotate-symbol{display:block;font-size:58px;line-height:1;margin-bottom:25px;color:#d9e5bd}.rotate-content .eyebrow{color:#a6bc91;font-size:9px;margin-bottom:14px}.rotate-content h2{font-size:24px;line-height:1.35;margin:0 0 16px;letter-spacing:-.7px}.rotate-content>p:not(.eyebrow){font-size:12px;line-height:1.9;color:#bdccb0}.rotate-content .button{margin-top:16px;background:#ffffff12;color:#eef2db;border-color:#dce8c24d;min-height:44px}
body.needs-landscape .field-heading,body.needs-landscape .control-strip,body.needs-landscape .field-message{visibility:hidden}
#player-name{font-size:16px}
@media(max-height:460px) and (orientation:landscape){
 body.is-playing .joystick{width:96px;height:96px;left:calc(env(safe-area-inset-left,0px) + 18px);bottom:calc(env(safe-area-inset-bottom,0px) + 14px)}
 body.is-playing .joystick-knob{left:28px;top:28px;width:39px;height:39px}
 body.is-playing .action-buttons{right:calc(env(safe-area-inset-right,0px) + 18px);bottom:calc(env(safe-area-inset-bottom,0px) + 16px);gap:12px}
 body.is-playing .action-buttons .button{width:68px;height:68px;min-width:68px;min-height:68px;font-size:13px}
 body.is-playing .action-buttons kbd{display:none}
 body.is-playing .control-info{bottom:calc(env(safe-area-inset-bottom,0px) + 55px);width:min(250px,calc(100% - 340px))}
 body.is-playing .field-column>.field-message{bottom:calc(env(safe-area-inset-bottom,0px) + 15px);width:min(340px,calc(100% - 340px));font-size:9px;padding:6px 8px}
 body.is-playing .room-actions .button{min-height:34px;padding:7px 10px;font-size:9px}
 body.is-playing .room-actions .connection{font-size:9px}
 body.is-playing .field-heading{top:calc(env(safe-area-inset-top,0px) + 8px)}
 body.is-playing .field-overlay{top:calc(env(safe-area-inset-top,0px) + 49px);font-size:8px}
}
body.is-playing .action-buttons,body.is-playing .action-buttons .button{touch-action:none}
body.is-playing #play-error{pointer-events:none}
/* Gameplay owns gestures; the jersey picker keeps normal browser zoom. */
body.is-playing #play{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.selected-kit #kit-preview{width:112px;height:144px;image-rendering:pixelated;flex:none}
body.is-playing #field:focus-visible{outline:2px solid rgba(255,255,255,.5);outline-offset:-2px}
.jersey-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.jersey-choice{padding:8px 6px 12px}
.jersey-choice img{height:auto}
.jersey-choice.prepared-jersey img{aspect-ratio:4/5;image-rendering:pixelated;mix-blend-mode:normal;object-fit:contain}
.jersey-choice>span:not(.selection-mark){font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.jersey-choice small{display:block;margin:5px 3px 0;font-size:9px;line-height:1.5}
.selected-kit>div{min-width:0}
.selected-kit #kit-status{line-height:1.7}
@media(max-width:380px){.entry-panel{padding:18px}.jersey-choice>span:not(.selection-mark){font-size:10px}.selection-mark{width:17px;height:17px;right:5px;top:5px}}
@media(hover:hover) and (pointer:fine){
 body.is-playing .control-info>span#control-hint{display:block;color:rgba(241,246,220,.75);font-size:9px;line-height:1.5}
}

/* Saved, modular clothing. The court and touch HUD keep their existing sizing. */
.wardrobe-picker{margin-top:19px}.wardrobe-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 9px}.wardrobe-heading h3{font-size:13px;font-weight:600;margin:0}.wardrobe-heading>span{font-size:9px;color:#8a9782}.wardrobe-choice-grid{display:grid;gap:6px}.wardrobe-choice-grid.top-choices{grid-template-columns:repeat(5,minmax(0,1fr))}.wardrobe-choice-grid.bottom-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.wardrobe-choice{font:inherit;min-width:0;border:1.5px solid #dce3d5;background:#f5f7f0;border-radius:9px;padding:5px 2px 9px;color:#223c2a;cursor:pointer}.wardrobe-choice canvas{display:block;width:100%;height:auto;max-height:110px;object-fit:contain;image-rendering:pixelated}.wardrobe-choice>span{display:block;font-size:9px;line-height:1.5;overflow-wrap:anywhere}.wardrobe-choice.selected{border-color:#427452;background:#eaf1e2;box-shadow:inset 0 0 0 1px #427452}.wardrobe-choice:focus-visible{outline:3px solid #79a9e1;outline-offset:3px}.wardrobe-note{font-size:10px;line-height:1.7;color:#7c9073;margin:11px 0 0}.legacy-wardrobe{margin:16px 0;color:#6f8166}.legacy-wardrobe summary{font-size:10px;cursor:pointer;line-height:1.8}.legacy-wardrobe .jersey-grid{margin-top:12px}.legacy-wardrobe .upload-button{margin-top:12px}.retry-wardrobe{font-size:11px;margin-bottom:5px}.wardrobe-picker[data-mode="legacy"] .wardrobe-choice{opacity:.7}@media(max-width:390px){.wardrobe-choice>span{font-size:8px}.wardrobe-choice-grid{gap:4px}.wardrobe-choice{padding-left:1px;padding-right:1px}.wardrobe-heading>span{font-size:8px}}

.wardrobe-preview-page main{max-width:1250px}.wardrobe-intro{margin:26px 0 24px}.wardrobe-intro h1{font-size:37px;line-height:1.2;letter-spacing:-1px;margin:12px 0}.wardrobe-intro>p:last-child{font-size:12px;line-height:1.8;color:#7c8c74}.saved-wardrobe-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.4fr);gap:24px}.saved-wardrobe-hero,.saved-wardrobe-options{min-width:0;padding:24px;border:1px solid #dce3d3;border-radius:14px;background:#fffef9}.saved-wardrobe-hero{text-align:center}.saved-wardrobe-hero>canvas{display:block;width:240px;height:320px;max-width:100%;object-fit:contain;image-rendering:pixelated;margin:5px auto 0}.saved-wardrobe-hero h2{font-size:16px;line-height:1.6;margin:10px 0}.saved-wardrobe-hero .button{margin-top:10px;display:flex;justify-content:center}.saved-wardrobe-hero .button[aria-disabled="true"]{opacity:.45;cursor:default}.saved-wardrobe-options .wardrobe-heading h2,.saved-wardrobe-all h2{font-size:16px;margin:0}.saved-wardrobe-options .wardrobe-choice canvas{max-height:140px}.saved-wardrobe-all{margin:30px 0}.saved-all-looks{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.saved-all-looks .wardrobe-choice canvas{max-height:125px}@media(max-width:760px){.saved-wardrobe-layout{grid-template-columns:1fr;gap:15px}.wardrobe-intro h1{font-size:29px}.saved-wardrobe-hero,.saved-wardrobe-options{padding:18px}.saved-all-looks{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.saved-wardrobe-options .wardrobe-choice canvas{max-height:110px}}@media(max-width:390px){.saved-wardrobe-options{padding:12px}.saved-wardrobe-options .wardrobe-heading>span{font-size:8px}}

/* The dialog is a body sibling of #play, outside its touch-action:none surface. */
.outfit-dialog{width:min(900px,calc(100vw - 28px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(var(--field-viewport-height,100dvh) - 24px);border:1px solid #cad8c4;border-radius:15px;background:#fbfcf7;color:#203a2b;padding:18px;overflow:hidden;box-shadow:0 12px 60px #102c3970;touch-action:pan-y}.outfit-dialog[open]{display:flex;flex-direction:column;gap:10px}.outfit-dialog::backdrop{background:rgba(12,32,24,.73)}.outfit-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none}.outfit-dialog-header .eyebrow{font-size:8px;margin:0 0 5px}.outfit-dialog-header h2{font-size:21px;line-height:1.25;letter-spacing:-.6px;margin:0}.outfit-close{width:36px;height:36px;min-width:36px;border:1px solid #d4decd;border-radius:50%;background:#fff;color:#426b46;font-size:23px;line-height:1;touch-action:manipulation}.outfit-dialog-body{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;min-height:0;overflow:hidden}.outfit-dialog-person{min-width:0;text-align:center;align-self:center}.outfit-dialog-person canvas{width:160px;height:200px;max-width:100%;display:block;margin:auto;image-rendering:pixelated;object-fit:contain}.outfit-dialog-person p{font-size:10px;line-height:1.6;margin:5px 0;color:#607654;overflow-wrap:anywhere}.outfit-dialog-options{min-height:0;max-height:310px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:0 4px 4px 0}.outfit-dialog-options .wardrobe-heading{margin:5px 0 6px}.outfit-dialog-options .wardrobe-heading h3{font-size:12px}.outfit-dialog-options .wardrobe-choice{touch-action:pan-y;min-height:0}.outfit-dialog-options .wardrobe-choice canvas{max-height:92px}.outfit-dialog-status{font-size:10px;line-height:1.7;color:#6b805f;margin:0;flex:none}.outfit-dialog>.error{margin:0;flex:none;font-size:11px}.outfit-dialog>.error:empty{display:none}.outfit-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none}.outfit-dialog-footer .button{min-height:42px;padding:9px 17px;font-size:12px;touch-action:manipulation}.outfit-dialog button:disabled{opacity:.45}.outfit-dialog .wardrobe-choice:focus-visible,.outfit-dialog-options:focus-visible{outline:2px solid #79a9e1;outline-offset:2px}@media(max-height:460px) and (orientation:landscape){.outfit-dialog{padding:12px 15px;gap:6px}.outfit-dialog-header h2{font-size:18px}.outfit-dialog-header .eyebrow{display:none}.outfit-dialog-body{grid-template-columns:135px minmax(0,1fr);gap:12px}.outfit-dialog-person canvas{width:120px;height:150px}.outfit-dialog-person p{font-size:9px}.outfit-dialog-options{max-height:190px}.outfit-dialog-options .wardrobe-choice canvas{max-height:65px}.outfit-dialog-options .wardrobe-choice>span{font-size:8px}.outfit-dialog-status{font-size:9px}.outfit-dialog-footer .button{min-height:38px;font-size:11px;padding:8px 15px}.outfit-close{width:32px;height:32px;min-width:32px;font-size:21px}}@media(max-width:480px){.outfit-dialog{width:calc(100vw - 18px);padding:13px}.outfit-dialog-body{grid-template-columns:105px minmax(0,1fr);gap:9px}.outfit-dialog-person canvas{width:100px;height:125px}.outfit-dialog-options .top-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.outfit-dialog-options .bottom-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.outfit-dialog-options .wardrobe-choice canvas{max-height:70px}.outfit-dialog-options .wardrobe-choice>span{font-size:8px}}

/* Piece-only choices sit beside one live character preview. */
.lobby-outfit-builder{display:grid;grid-template-columns:minmax(0,1fr) 135px;gap:16px;align-items:start;margin:8px 0 18px}.lobby-outfit-builder .wardrobe-picker{margin-top:0;min-width:0}.lobby-outfit-builder .wardrobe-heading:first-child{margin-top:0}.lobby-outfit-builder .top-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.lobby-outfit-builder .bottom-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-outfit-builder .selected-kit{position:sticky;top:12px;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;margin:0;text-align:center}.lobby-outfit-builder .selected-kit #kit-preview{width:112px;height:144px}.lobby-outfit-builder .selected-kit strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.lobby-outfit-builder .selected-kit #kit-status{font-size:9px}.wardrobe-choice canvas{aspect-ratio:12/13}.outfit-dialog-options .wardrobe-choice>span{font-size:8px;line-height:1.35}.outfit-dialog-status{line-height:1.5}.outfit-dialog-footer{flex-wrap:wrap}.saved-wardrobe-options .wardrobe-choice canvas{max-height:115px}@media(max-width:480px){.lobby-outfit-builder{grid-template-columns:minmax(0,1fr) 110px;gap:12px}.lobby-outfit-builder .selected-kit #kit-preview{width:104px;height:134px}.lobby-outfit-builder .wardrobe-heading{gap:5px;align-items:flex-end}.lobby-outfit-builder .wardrobe-heading>span{font-size:8px;text-align:right}.lobby-outfit-builder .wardrobe-choice>span{font-size:8px}.lobby-outfit-builder .wardrobe-note{font-size:9px}.outfit-dialog-header h2{font-size:18px}}@media(max-height:460px) and (orientation:landscape){.outfit-dialog-status{font-size:9px}.outfit-dialog .outfit-dialog-body{min-height:0}.outfit-dialog-footer .button{padding-inline:12px}}

/* Keep the same character beside the pieces in narrow preview panels. */
@media(max-width:760px){
 .saved-wardrobe-layout{grid-template-columns:clamp(130px,25vw,180px) minmax(0,1fr);gap:12px;align-items:start}
 .saved-wardrobe-hero{position:sticky;top:12px;align-self:start;padding:12px 10px;overflow-wrap:anywhere}
 .saved-wardrobe-hero>canvas{width:130px;height:auto;aspect-ratio:3/4;margin:6px auto}
 .saved-wardrobe-hero .eyebrow{font-size:8px;letter-spacing:1px}
 .saved-wardrobe-hero h2{font-size:12px;line-height:1.4;margin:7px 0}
 .saved-wardrobe-hero .microcopy{font-size:9px;line-height:1.45;margin:6px 0}
 .saved-wardrobe-hero .button{width:100%;min-height:38px;white-space:normal;overflow-wrap:anywhere;padding:8px 6px;font-size:10px;line-height:1.4;margin-top:8px}
 .saved-wardrobe-hero .error{font-size:9px;line-height:1.45}
 .saved-wardrobe-options{padding:12px;min-width:0}
 .saved-wardrobe-options .top-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
 .saved-wardrobe-options .bottom-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .saved-wardrobe-options .wardrobe-heading{flex-wrap:wrap;gap:4px;margin:10px 0 7px}
 .saved-wardrobe-options .wardrobe-heading:first-child{margin-top:0}
 .saved-wardrobe-options .wardrobe-heading h2{font-size:12px}
 .saved-wardrobe-options .wardrobe-heading>span{font-size:8px}
 .saved-wardrobe-options .wardrobe-choice canvas{max-height:90px}
 .saved-wardrobe-options .wardrobe-choice>span{font-size:8px;line-height:1.35}
 .saved-wardrobe-options .wardrobe-note{font-size:9px;line-height:1.5}
}
@media(max-width:480px){
 .saved-wardrobe-layout{grid-template-columns:108px minmax(0,1fr);gap:9px}
 .saved-wardrobe-hero{padding:10px 7px;border-radius:10px}
 .saved-wardrobe-hero>canvas{width:90px}
 .saved-wardrobe-hero h2{font-size:10px}
 .saved-wardrobe-hero .microcopy{font-size:8px}
 .saved-wardrobe-hero .button{font-size:9px;padding:7px 5px}
 .saved-wardrobe-options{padding:10px;border-radius:10px}
 .saved-wardrobe-options .wardrobe-choice{padding:5px 1px 7px}
 .saved-wardrobe-options .wardrobe-choice canvas{max-height:74px}
}
@media(max-width:760px) and (max-height:460px){
 .saved-wardrobe-hero>canvas{width:96px}
 .saved-wardrobe-hero h2{font-size:11px}
 .saved-wardrobe-hero .microcopy{font-size:8px}
}

/* Minimal playtest chrome: pieces, one character and the controls. */
.masthead{height:56px;gap:0}.wordmark{font-size:22px;letter-spacing:-1px;gap:12px}.wordmark span{font-size:9px;letter-spacing:1.5px;padding-left:12px;line-height:18px}
body:not(.is-playing) main{padding-top:24px;padding-bottom:24px}
.lobby{gap:5%;align-items:start}.entry-panel{padding:22px}.name-label{margin-bottom:16px}.scene-preview{height:340px}.lobby-outfit-builder{margin:4px 0 16px}.lobby-outfit-builder .selected-kit{gap:0;align-self:start}.wardrobe-picker .wardrobe-heading{margin-top:12px}
.outfit-dialog-header{justify-content:flex-end;gap:0}.outfit-dialog-header h2.sr-only{margin:0}.outfit-dialog-body{align-items:center}.outfit-dialog-person{align-self:center}.outfit-dialog-options .wardrobe-heading:first-child,.saved-wardrobe-options .wardrobe-heading:first-child{margin-top:0}
.saved-wardrobe-layout{align-items:start}.saved-wardrobe-hero{position:sticky;top:12px;align-self:start}.saved-wardrobe-hero>canvas{margin-top:0}.saved-wardrobe-hero .button{margin-top:14px}
@media(max-width:700px){.masthead{height:50px}.wordmark{font-size:21px}.lobby{gap:16px}.scene-preview{height:150px}.entry-panel{padding:18px}body:not(.is-playing) main{padding-top:16px;padding-bottom:20px}.name-label{margin-bottom:14px}}
@media(max-height:460px) and (orientation:landscape){.outfit-dialog[open]{gap:6px}.outfit-dialog{padding:10px 14px}.outfit-dialog-options{max-height:210px}}

body.is-playing #throw.charging{background:rgba(255,255,255,calc(.18 + var(--throw-charge,0)*.3));border-color:#fff;box-shadow:inset 0 0 0 calc(1px + var(--throw-charge,0)*4px) rgba(255,255,255,.42)}
body.is-playing #throw.charged{box-shadow:inset 0 0 0 5px rgba(255,255,255,.65),0 0 12px rgba(255,255,255,.22)}
body.is-playing #throw{position:relative}
body.is-playing #throw.charging::after{content:'';position:absolute;left:50%;bottom:10px;width:5px;height:5px;border-radius:50%;background:#fff;transform:translateX(calc(var(--throw-curve,0)*20px - 50%));pointer-events:none}
/* Keep the ground-disc action near the lower edge, outside the main play area. */
body.is-playing .action-buttons{right:calc(env(safe-area-inset-right,0px) + 18px);bottom:calc(env(safe-area-inset-bottom,0px) + 14px)}
body.is-playing .action-buttons #pickup{width:56px;height:56px;min-width:56px;min-height:56px;padding:6px;font-size:11px;line-height:1.15}
