@font-face{font-family:Andrew Pixel;src:url(/fonts/andrew-pixel.ttf) format("truetype");font-weight:100 900;font-display:swap}:root{--pixel:2px;--ink:#14251e;--paper:#e4edbf;--line:#8ea879;--gold:#f1cc76;--panel:#243b2c;font-family:Andrew Pixel,monospace;font-size:16px;line-height:1.5;color:var(--paper);background:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit;color:inherit}button,select{border:var(--pixel) solid var(--line);border-radius:0;background:#314b36;padding:10px 12px;box-shadow:0 4px #0b1913;cursor:pointer}button:hover{background:#46613f;color:#fff3c9}button:active{translate:0 2px;box-shadow:0 2px #0b1913}button:disabled{opacity:.45;cursor:default}button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible{outline:var(--pixel) solid var(--gold);outline-offset:4px}a{color:var(--gold)}h1,h2,p{margin:0}h1,h2{font-size:16px;font-weight:400}select{width:100%;appearance:none;background:#314b36 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23e4edbf' d='M0 0h10v2H8v2H6v2H4V4H2V2H0z'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:32px}select[size]{background-image:none;padding:8px}option{background:#243b2c}dialog{width:408px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:var(--pixel) solid var(--line);border-radius:0;background:var(--panel);color:var(--paper);padding:24px;box-shadow:6px 6px #0a1711,inset 0 0 0 4px var(--ink)}dialog::backdrop{background:#08130de8}dialog h2{color:var(--gold);padding-bottom:16px;border-bottom:2px solid #57734f;margin-bottom:20px}dialog p{margin-bottom:16px}label{display:block;margin-bottom:12px}[hidden]{display:none!important}::selection{background:var(--gold);color:var(--ink)}header h1{min-width:0;white-space:nowrap}#install-button{display:flex;align-items:center;gap:6px;color:var(--gold)}#install-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0}@media(max-width:520px){#install-button{padding:10px}#install-button span{display:none}.header-actions{gap:6px}header{gap:8px}#menu-button{padding-left:8px;padding-right:8px}}#app{min-height:700px;height:100vh;height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}header{width:100%;max-width:840px;margin:0 auto;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px solid #57734f}header h1{color:var(--gold)}#menu-button{flex-shrink:0}.menu-icon{display:inline-block;width:14px;height:10px;margin-right:8px;background:linear-gradient(to bottom,currentColor 0 2px,transparent 2px 4px,currentColor 4px 6px,transparent 6px 8px,currentColor 8px)}main{width:100%;max-width:840px;margin:0 auto;flex:1;min-height:0;padding:16px 20px 20px;display:grid;grid-template-rows:minmax(0,1fr) 184px;gap:16px}.play-area{min-width:0;min-height:0;display:flex;flex-direction:column}.player-row{display:flex;flex-wrap:nowrap;flex:0 0 auto;align-items:center;gap:8px 16px;margin-bottom:12px}.player-row strong{font-weight:400;color:var(--gold)}#opponent-label{color:#a8bc92}#thinking{margin-left:auto;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}.player-row strong,#opponent-label{flex-shrink:0;white-space:nowrap}.board-space{flex:1;min-height:0;display:grid;place-items:center;padding:0 0 22px 16px}.board-shell{padding:6px;border:2px solid var(--line);background:#0c1d15;box-shadow:4px 4px #0a1711;width:var(--board-size,336px);height:var(--board-size,336px)}.board{width:100%;height:100%;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr)}.square{border:0;box-shadow:none;padding:0;min-width:0;min-height:0;position:relative;display:grid;place-items:center}.square:active{translate:none;box-shadow:none}.square.pale{background:#dce7b2}.square.dark{background:#769363}.square:hover{box-shadow:inset 0 0 0 2px #426142}.square.last-move{background:#b8be70}.square.selected{background:var(--gold);box-shadow:inset 0 0 0 2px #384b28}.square.check{background:#cd8064}.square:focus-visible{outline-offset:-4px;z-index:3;outline-color:#172d21}.piece{width:calc(18 * var(--pixel));height:calc(18 * var(--pixel));fill:currentColor;image-rendering:pixelated;z-index:1;-webkit-user-select:none;user-select:none;pointer-events:none;overflow:visible}.white-piece{color:#fff2cc;filter:drop-shadow(0 2px 0 #38503a)}.black-piece{color:#192e25;filter:drop-shadow(0 2px 0 #adc28d)}.piece-eye,.piece-detail{fill:#58704c}.black-piece .piece-eye,.black-piece .piece-detail{fill:#a8bf89}.coordinate{position:absolute;color:#b3c799;pointer-events:none;line-height:16px}.rank{left:-24px;top:calc(50% - 8px)}.file{bottom:-28px;left:calc(50% - 6px)}.legal:after{content:"";position:absolute;width:8px;height:8px;background:#32543c}.legal:has(.piece):after{inset:2px;width:auto;height:auto;border:2px solid #32543c;background:transparent}.coach-card{display:grid;grid-template-columns:144px minmax(0,1fr);border:2px solid var(--line);background:var(--panel);box-shadow:4px 4px #0a1711;min-height:0;overflow:hidden}.coach-stage{position:relative;display:grid;place-items:center;overflow:hidden;min-width:0;border-right:2px solid var(--line);background:repeating-conic-gradient(#a6ba84 0% 25%,#9eb27d 0% 50%) 0 0/16px 16px}.pixel-andrew{width:calc(64 * var(--pixel));height:calc(64 * var(--pixel));flex-shrink:0;image-rendering:pixelated}.coach-copy{padding:16px;overflow:auto;min-width:0;overflow-wrap:anywhere}.name-row{margin-bottom:12px}.name-row h2{color:var(--gold)}.name-row h2:before{content:"";display:inline-block;width:6px;height:6px;margin:0 8px 2px 0;background:var(--gold)}.speech{line-height:24px}.review-rating{color:var(--gold);border-bottom:2px dashed var(--line);padding-bottom:12px;margin-bottom:12px}.reaction-tag{display:none}.coach-stage video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.coach-pixels{display:none;position:absolute;image-rendering:pixelated}.has-video .coach-pixels{display:block}.has-video .pixel-andrew{visibility:hidden}.menu-options{display:grid;gap:12px}.menu-options button{text-align:left}.menu-options small{display:block;font-size:16px;color:#a8bc92;margin-top:8px}.menu-options button:last-child{color:var(--gold);margin-top:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}#promotion>div{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}#promotion button{display:grid;place-items:center;padding:12px 0}.talk .pixel-andrew{animation:talk .4s steps(1) 6}.bounce .pixel-andrew{animation:bounce .6s steps(2) 4}.shake .pixel-andrew{animation:shake .4s steps(1) 5}.shrug .pixel-andrew{animation:talk .8s steps(1) 2}.point .pixel-hand{animation:point .5s steps(1) 4}@keyframes talk{50%{transform:translateY(-2px)}}@keyframes bounce{50%{transform:translateY(-8px)}}@keyframes shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}@keyframes point{50%{transform:translateY(-4px)}}@media(max-width:520px){header{padding:12px}header h1{max-width:160px}main{padding:12px 12px 16px;gap:12px;grid-template-rows:minmax(0,1fr) 184px}.player-row{gap:4px 12px;margin-bottom:8px}#opponent-label{font-size:16px}#thinking{margin-left:auto}.coach-card{grid-template-columns:112px minmax(0,1fr)}.coach-copy{padding:12px}.pixel-andrew{margin-left:-8px;margin-right:-8px}.name-row{margin-bottom:8px}}@media(min-width:600px)and (max-height:560px){#app{min-height:360px}main{max-width:1040px;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:minmax(0,1fr)}.coach-card{grid-template-columns:1fr;grid-template-rows:136px minmax(0,1fr)}.coach-stage{border-right:0;border-bottom:2px solid var(--line)}header{padding:8px 20px}.player-row{margin-bottom:4px}#opponent-label{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important}}.square .piece{width:80%;height:80%}.piece{stroke:#38503a;stroke-width:2;paint-order:stroke fill;filter:none}.black-piece{stroke:#0e2119}.piece-eye,.piece-detail{stroke:none}.portrait-preview .coach-stage{background:#002b19}.portrait-preview .pixel-andrew,.portrait-preview .coach-pixels{display:none}.coach-portrait{width:100%;max-width:180px;aspect-ratio:1;background-size:300% 200%;background-repeat:no-repeat;image-rendering:pixelated}.portrait-preview{grid-template-columns:176px minmax(0,1fr)}.portrait-preview .coach-stage{padding-bottom:24px}.coach-caption{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:14px;color:var(--gold);line-height:16px}.speech.stage-direction{font-style:italic;color:#b7c79c}.review-rating{white-space:pre-line}.black-piece>path:first-child{stroke:#8b9189;stroke-width:.65;stroke-linejoin:miter;paint-order:stroke fill}@media(max-width:520px){.portrait-preview{grid-template-columns:140px minmax(0,1fr)}.coach-caption{font-size:12px}}@media(min-width:600px)and (max-height:560px){.portrait-preview{grid-template-columns:1fr;grid-template-rows:180px minmax(0,1fr)}.coach-portrait{max-width:150px}}.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}#mute{width:36px;height:36px;padding:6px;display:grid;place-items:center}#mute svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}#mute .sound-off,#mute[aria-pressed=true] .sound-waves{display:none}#mute[aria-pressed=true] .sound-off{display:block}#mute[aria-pressed=true]{color:var(--gold)}.coach-test{position:absolute;inset:0;width:100%;height:100%;padding:0;background:transparent;border:0;box-shadow:none;z-index:2;cursor:pointer}.coach-test:hover{background:#ffe09a0a}.coach-test:active{translate:none;box-shadow:none}.coach-test:focus-visible{outline:2px solid var(--gold);outline-offset:-4px}.coach-test:disabled{cursor:default;background:transparent}.coach-caption{font-size:11px;pointer-events:none;z-index:3}
