@font-face{font-family:Arcade;src:url('assets/display.otf')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#15281f;color:#e6dfc4;font:13px Arial,sans-serif;color-scheme:dark}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #9eaa774a;background:#253b2bcc;color:inherit;padding:7px 10px;touch-action:manipulation}button:hover{background:#546b4099}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #ebc478;outline-offset:2px}[hidden]{display:none!important}.dev-menubar{height:34px;display:flex;align-items:center;gap:10px;padding:0 12px;background:#17291f;position:relative;z-index:110;border-bottom:1px solid #7d93624d;font-size:10px}.dev-brand{font-weight:700;letter-spacing:1px;margin-right:auto}.dev-menubar button{min-height:26px;font-size:10px;padding:4px 8px}.dev-menu{position:relative}#view-menu{position:absolute;top:29px;right:0;width:180px;padding:5px;background:#192e23;border:1px solid #82986d;display:grid;gap:4px;z-index:120}#preview-size{color:#9eb18c;font-size:9px}.dev-menubar #chiqui-editor-button{display:none}#preview-workspace{height:calc(100% - 34px);width:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}#game-world{position:relative;flex:none;overflow:hidden;background:#233c2c;transform-origin:center center}.device-preview #game-world{transform:scale(var(--preview-scale));box-shadow:0 0 0 1px #a7b68a55}.scene{position:absolute;inset:0 0 172px}#court,#game{width:100%;height:100%;display:block}#game{touch-action:none;-webkit-user-select:none;user-select:none;outline:0}.court-heading{position:absolute;top:15px;left:20px;right:20px;display:flex;gap:13px;align-items:center;pointer-events:none}.court-heading img{width:119px;height:55px;object-fit:contain;filter:drop-shadow(0 2px 1px #263b2c)}.court-heading>div:not(.utility){display:grid;gap:4px}.court-heading strong{font:26px Arcade,Impact,sans-serif;letter-spacing:.7px}.court-heading>div>span{font-size:8px;letter-spacing:1px;color:#dbd8b7}.utility{margin-left:auto;display:flex;gap:7px;pointer-events:auto}.utility button{width:34px;height:34px;padding:0;border-radius:50%;background:#172c21bf;font-size:17px}.scoreboard{position:absolute;top:84px;left:20px;right:20px;max-width:490px;display:grid;grid-template-columns:1fr 70px 1fr;gap:12px;background:#172e21df;padding:13px 18px;border:1px solid #9eb78c66;box-shadow:0 4px 14px #12271940;pointer-events:none}.player-score>div:first-child{display:flex;gap:8px;align-items:center;font-size:10px;font-weight:bold;letter-spacing:.8px}.player-score>div:first-child span{font-size:7px;color:#c6bb83;margin-left:auto}.player-score.active>div:first-child{color:#e9c17c}.letters{display:flex;gap:8px;font:25px Arcade,Impact,sans-serif;margin-top:7px;line-height:1}.letters b{color:#526747;font-weight:400}.letters b.earned{color:#e2b976}.cpu-score>div{justify-content:flex-end}.middle-score{display:grid;place-items:center;color:#c8bd92}.middle-score>span{font-size:8px;letter-spacing:.6px;white-space:nowrap}.middle-score>b{font:15px Arcade}.scene-note{position:absolute;top:179px;left:22px;font-size:8px;letter-spacing:1.5px;color:#e2d7b5;pointer-events:none}.scene-note span{border:1px solid #bcb58b66;padding:3px 5px;margin-left:8px}.play-deck{position:absolute;bottom:23px;left:0;right:0;height:149px;background:#20372b;border-top:1px solid #a5b48a77;box-shadow:0 -5px 20px #172b2440;display:grid;grid-template-columns:minmax(270px,1fr) minmax(320px,500px);grid-template-rows:58px 25px 44px;padding:12px 22px 8px;column-gap:30px}.feedback{display:grid;align-content:center;gap:6px;min-width:0}.feedback strong{font:23px Arcade,Impact,sans-serif;color:#eddfb8;line-height:1}.feedback>span{font-size:11px;color:#c0c8ad;line-height:1.4}.power-row{display:flex;align-items:center;gap:9px;font-size:8px;color:#bac7a7;font-weight:bold;grid-column:1}.power-track{height:4px;background:#627552;flex:1;max-width:300px}.power-track i{display:block;width:0;height:4px;background:#ddaa62}.power-row>b{width:28px}.game-toolbar{display:flex;align-items:center;gap:8px;grid-column:1}.game-toolbar button{font-size:10px;padding:6px 9px;min-height:31px;background:transparent;border-color:#94a57840}.game-toolbar button span{font-size:8px;letter-spacing:.6px}.game-toolbar button.selected{color:#ecc17c}kbd{font:7px Arial;border:1px solid #798b63;padding:2px 3px;margin-left:4px}.roster{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;grid-column:2;grid-row:1/4;align-self:center}.opponent{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:3px 6px 8px;min-height:103px;text-align:center;border:1px solid #7e95624a;background:#203b2c66;position:relative}.opponent.selected{border-color:#dfad65;background:#8e87402a}.opponent-art{width:48px;height:69px;display:block;object-fit:contain;flex:none}.opponent-name{font:15px Arcade,sans-serif;white-space:nowrap}.opponent-tag,.opponent-quote{display:none}.session-strip{position:absolute;bottom:0;left:0;right:0;display:flex;gap:20px;align-items:center;justify-content:center;height:23px;background:#172c21;color:#a5b595;font-size:8px;letter-spacing:.4px}.session-strip b{color:#cfcba8}.session-strip>span:last-child{margin-left:auto;margin-right:12px}.cover{position:absolute;inset:0;background:#142a22ed;z-index:40;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;padding:35px;text-align:center}.cover>strong{font:40px Arcade,sans-serif;line-height:1}.cover>p{color:#d1d5b5;max-width:360px;line-height:1.6}.primary{background:#d3a161;color:#1a3022;border:1px solid #e2bd7a;padding:12px 18px;font:17px Arcade,sans-serif;min-height:44px}.primary:hover{background:#e4bc7d;color:#1d3325}dialog{background:#e5ddbe;color:#2e432f;border:1px solid #b9a577;padding:32px;width:470px;max-width:calc(100vw - 24px);max-height:85svh;overflow:auto;box-shadow:0 10px 70px #0008}dialog::backdrop{background:#0d1c16c9}dialog h2{font:36px Arcade,sans-serif;line-height:1;margin:7px 0 20px}dialog p{font-size:12px;line-height:1.8;color:#5a694f}dialog .small{font-size:10px}dialog button{color:#293f2b}.close{position:absolute;top:8px;right:8px;font-size:24px;padding:1px 10px;border:0;background:none}.dialog-row{display:flex;gap:8px;align-items:center}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90vw;background:#e5d5ab;color:#30452d;font-size:12px;padding:13px 18px;z-index:200;box-shadow:0 5px 30px #0004}
/* The copied Chiqui dock uses the same normalized coordinates as the live court. */
body.chiqui-editing #preview-workspace{width:calc(100% - var(--chiqui-editor-width));margin-right:var(--chiqui-editor-width)}#chiqui-editor-overlay{display:block}#chiqui-editor canvas,#chiqui-animation-monitor canvas{max-width:100%}#chiqui-animation-monitor{background:#182e23f7}.ce-status{line-height:1.5}#chiqui-editor .ce-help{display:block}.ce-header select{max-width:85px!important}
#game-world[data-layout=phone] .court-heading{left:12px;right:12px;top:10px;gap:8px}#game-world[data-layout=phone] .court-heading img{width:88px;height:43px}#game-world[data-layout=phone] .court-heading strong{font-size:21px}#game-world[data-layout=phone] .court-heading>div>span{font-size:6px}#game-world[data-layout=phone] .utility{gap:5px}#game-world[data-layout=phone] .utility button{width:29px;height:29px;font-size:14px}#game-world[data-layout=phone] .scoreboard{left:12px;right:12px;top:62px;padding:10px 12px;grid-template-columns:1fr 47px 1fr;gap:7px}#game-world[data-layout=phone] .letters{font-size:22px;gap:7px}#game-world[data-layout=phone] .player-score>div:first-child{font-size:9px}#game-world[data-layout=phone] .player-score>div:first-child span{font-size:6px}#game-world[data-layout=phone] .scene-note{left:14px;top:140px;font-size:7px}#game-world[data-layout=phone] .scene{bottom:192px}#game-world[data-layout=phone] .play-deck{height:173px;bottom:19px;padding:8px 12px;grid-template-columns:1fr;grid-template-rows:42px 14px 33px 67px;gap:0}#game-world[data-layout=phone] .feedback strong{font-size:19px}#game-world[data-layout=phone] .feedback>span{font-size:9px}#game-world[data-layout=phone] .game-toolbar{justify-content:space-between;gap:4px}#game-world[data-layout=phone] .game-toolbar button{font-size:9px;padding:5px;min-height:29px}#game-world[data-layout=phone] .game-toolbar button span{font-size:7px}#game-world[data-layout=phone] .game-toolbar kbd{display:none}#game-world[data-layout=phone] .roster{grid-column:1;grid-row:4;gap:5px}#game-world[data-layout=phone] .opponent{min-height:62px;padding:3px 2px;flex-direction:row;gap:2px;justify-content:center}#game-world[data-layout=phone] .opponent-art{width:32px;height:53px}#game-world[data-layout=phone] .opponent-name{font-size:13px;white-space:normal;max-width:45px}#game-world[data-layout=phone] .session-strip{height:19px;gap:9px;font-size:6px}#game-world[data-layout=phone] #keyboardReadout{display:none}
@media(max-width:700px){.dev-menubar{padding:0 8px;gap:6px;font-size:8px}.dev-brand{letter-spacing:.4px}#preview-size{display:none}.dev-menubar button{font-size:9px}#chiqui-editor{width:min(350px,90vw)}body.chiqui-editing #preview-workspace{width:100%;margin-right:0}#chiqui-animation-monitor{left:8px;right:auto;bottom:8px;width:calc(100vw - 16px);max-width:320px;z-index:105}#chiqui-animation-monitor canvas{height:185px}body.chiqui-editing #game-world{opacity:.9}.ce-outliner{height:135px}.ce-grid{grid-template-columns:1fr 1fr}}
@media(max-height:500px){.court-heading{top:7px;left:12px}.court-heading img{height:37px;width:95px}.court-heading strong{font-size:20px}.scoreboard{top:52px;left:12px;padding:7px 12px;max-width:360px}.letters{font-size:20px;margin-top:4px}.scene-note{display:none}.scene{bottom:104px}.play-deck{height:85px;bottom:19px;grid-template-rows:32px 12px 25px;padding:5px 13px;grid-template-columns:1fr 310px;gap:0 15px}.feedback strong{font-size:17px}.feedback>span{font-size:8px}.roster{grid-row:1/4}.opponent{min-height:68px;padding:3px}.opponent-art{height:42px;width:32px}.opponent-name{font-size:12px}.game-toolbar button{min-height:24px;padding:3px 5px}.session-strip{height:19px;font-size:6px}.cover>strong{font-size:30px}}
body.court-testing #chiqui-editor-overlay,body.court-testing #chiqui-animation-monitor{display:none!important}
.court-actions{position:absolute;left:50%;bottom:186px;transform:translateX(-50%);display:flex;gap:8px;align-items:center;z-index:8;white-space:nowrap}.court-actions button{min-height:42px;background:#24392de8;border:1px solid #d1b17d7a;font:14px Arcade,Impact,sans-serif;letter-spacing:.4px;box-shadow:0 3px 12px #17282066}.court-actions .drive-action{background:#c4975f;color:#192e24;border-color:#e3c79a;padding:10px 17px;font-size:16px}.court-actions button:active{transform:translateY(2px)}.court-actions button:disabled{opacity:.35}.court-actions kbd{font-size:8px}.scene-note span{font-size:7px}.player-score>div:first-child strong{font-size:9px}#game-world[data-layout=phone] .court-actions{bottom:204px;gap:5px;width:calc(100% - 24px);justify-content:center}#game-world[data-layout=phone] .court-actions button{min-height:42px;padding:8px;font-size:12px;flex:1}#game-world[data-layout=phone] .court-actions .drive-action{font-size:14px;flex:1.5}#game-world[data-layout=phone] .court-actions kbd{display:none}#game-world[data-layout=phone] .player-score>div:first-child strong{font-size:7px}
@media(max-height:500px){.court-actions{bottom:113px}.court-actions button{min-height:32px;font-size:12px;padding:6px 10px}}
@media(max-width:620px){#chiqui-editor{top:auto;bottom:0;width:100%;height:49svh;border-top:1px solid #697e62;border-left:0}#chiqui-animation-monitor{left:8px;right:auto;bottom:calc(49svh + 8px);width:min(290px,calc(100vw - 16px))}#chiqui-animation-monitor canvas{height:150px}.ce-outliner{height:110px;min-height:80px}.ce-header{padding:6px 9px}.ce-toolbar{padding:5px 9px}.ce-status{min-height:25px}.dev-menubar{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}}
.dev-menubar{height:calc(34px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}#preview-workspace{height:calc(100% - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
#preview-workspace,#game-world{overflow:clip}#game-world[data-layout=phone] .court-heading img{width:70px}#game-world[data-layout=phone] .court-heading strong{font-size:18px;white-space:nowrap}

.arcade-home{color:#e1c397;text-decoration:none;white-space:nowrap;font-weight:700;font-size:10px;padding:4px 2px}.dev-brand{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
