/* PIXEL CHESS — what the table adds to the series HUD, for both pages. The iso page (/play/chess/) wears the pixel games'
   card language; body.v3 (/play/3d/chess/) wears the 3D games' own: one small mono face, hairlines, nothing boxed or round. */
#stage{position:fixed;inset:0;touch-action:none;overflow:hidden}
#out{position:absolute;left:0;top:0;image-rendering:pixelated;display:block;touch-action:none;cursor:pointer}
/* the two players and their clocks: whoever is to move is the one that's lit */
#tscore .p{opacity:.5;transition:opacity .2s}#tscore .p.on{opacity:1}#tscore .p b{font-weight:700;margin-left:5px;font-variant-numeric:tabular-nums}
#tscore i{display:inline-block;width:1px;height:9px;margin:0 9px;background:currentColor;opacity:.3;vertical-align:-1px}
/* a pawn on the last rank: four words to pick from, where the thumbs are */
#promo{position:fixed;left:50%;bottom:calc(178px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:8;display:flex;gap:6px;pointer-events:auto}#promo[hidden]{display:none}
#promo button{border:1px solid #d3c2ac;background:#fdfaf3;color:#4a2a22;border-radius:99px;padding:9px 12px 8px;font:bold 9px ui-monospace,Menlo,monospace;letter-spacing:.1em;box-shadow:0 3px 0 #d5c4ae;cursor:pointer}
body.night #promo button{background:#232b45;color:#e6dfc4;border-color:#3e4a6e;box-shadow:0 3px 0 #0d1222}
/* the way in: a greeting set on the picture and three small words */
#welc{position:fixed;inset:0;z-index:7;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:calc(27vh + 20px);gap:16px;transition:opacity .45s;pointer-events:none}
#welc[hidden]{display:none}#welc.out{opacity:0}#welc>*{pointer-events:auto}
#welc h2{margin:0;font:bold 15px/1.3 ui-monospace,Menlo,monospace;letter-spacing:.22em;color:#fff;text-shadow:0 1px 2px #0008,0 0 12px #0005;animation:welIn .6s ease both}
#welc nav{display:flex;gap:4px;align-items:center;animation:welIn .6s .25s ease both}#welc nav i{font-style:normal;color:#ffffffaa;font:9px ui-monospace,Menlo,monospace;text-shadow:0 1px 2px #0006}
#welc button{all:unset;cursor:pointer;font:600 9px/1 ui-monospace,Menlo,monospace;letter-spacing:.26em;color:#ffffffe6;text-shadow:0 1px 2px #0008;padding:7px 9px 6px;border-bottom:1px solid transparent}
#welc button.y{color:#fff;background:#ffffff24;box-shadow:inset 0 0 0 1px #ffffff4d;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}#welc button:hover{border-bottom-color:#ffffff99}
@keyframes welIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* the sheets: sit down, the result, the coach, a friend */
#sheet{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:#1d2850b0;overflow:auto;touch-action:pan-y;pointer-events:auto;overscroll-behavior:contain}#sheet[hidden]{display:none}
.cs{position:relative;width:min(400px,100%);margin:auto;background:#f4f6fb;color:#1d2850;border-radius:10px;padding:0 18px 16px;box-shadow:0 8px 0 #0e1430;overflow:hidden;font-family:ui-monospace,Menlo,monospace}
.cs .cmy{height:6px;margin:0 -18px 14px;background:#2b2b2e}
.cs .x{position:absolute;right:8px;top:14px;width:34px;height:34px;border:0;background:none;color:#1d2850;padding:0;cursor:pointer;display:grid;place-items:center}
.cs small{display:block;font:9px ui-monospace,Menlo,monospace;letter-spacing:.16em;color:#5a6488;margin:0 34px 4px 0}
.cs h1{margin:0 30px 6px 0;font:bold 15px/1.25 ui-monospace,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase}
.cs p{font:11px/1.5 ui-monospace,Menlo,monospace;color:#4a5578;margin:0 0 12px}
.cs .seg{display:flex;align-items:center;gap:4px;margin:0 0 8px;flex-wrap:wrap}.cs .seg span{font:bold 8px ui-monospace,Menlo,monospace;letter-spacing:.16em;color:#5a6488;width:42px}
.cs .seg button{flex:1;padding:8px 2px 7px;border:1px solid #c9cfe0;border-radius:7px;background:#fff;color:#1d2850;font:bold 8.5px ui-monospace,Menlo,monospace;letter-spacing:.08em;cursor:pointer;white-space:nowrap}
.cs .seg button.on{background:#1d2850;border-color:#1d2850;color:#fff}
.cs .rows{display:flex;flex-direction:column;gap:5px;margin:6px 0 12px;max-height:46vh;overflow:auto;-webkit-overflow-scrolling:touch}
.cs .row{display:grid;grid-template-columns:1fr auto;gap:1px 10px;align-items:center;text-align:left;padding:9px 11px 8px;border:1px solid #c9cfe0;border-radius:8px;background:#fff;color:#1d2850;cursor:pointer;font-family:inherit}
.cs .row b{font:bold 10.5px ui-monospace,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase}.cs .row i{grid-column:1;font:normal 9.5px/1.35 ui-monospace,Menlo,monospace;color:#5a6488}.cs .row i:empty{display:none}
.cs .row em{grid-column:2;grid-row:1/3;font:bold 9px ui-monospace,Menlo,monospace;letter-spacing:.08em;color:#5a6488;font-style:normal;white-space:nowrap}
.cs .row.hi{border-color:#1d2850;box-shadow:inset 0 0 0 1px #1d2850}
.cs .go{display:block;width:100%;padding:14px;border:0;border-radius:8px;background:#b8322b;color:#fff4ea;font:bold 14px ui-monospace,Menlo,monospace;letter-spacing:.2em;box-shadow:0 4px 0 #7a1d18;cursor:pointer;margin-top:4px}
.cs .rows+.go{margin-top:0}
.cs .crewrow{display:flex;gap:8px;margin:0 0 10px}.cs .crewrow input{flex:1;min-width:0;padding:10px;border:1px solid #c9cfe0;border-radius:8px;font:bold 14px ui-monospace,Menlo,monospace;letter-spacing:.2em;text-align:center;color:#1d2850;background:#fff;user-select:text;-webkit-user-select:text}
.cs .wbtn{padding:0 14px;border:1px solid #1d2850;border-radius:8px;background:#fff;color:#1d2850;font:bold 11px ui-monospace,Menlo,monospace;letter-spacing:.16em;cursor:pointer}
body.sheeting #welc{display:none}

/* ---- every sheet, on both pages, is in the 3D games' language (Amin, 14 Nov 2026, of a boxed card with a red button on the iso page:
   "scientific help screens … you should not be creating these any more"): suspended, sharp, one mono face, never over 14 px ---- */
#sheet{background:#03060ad1;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);align-items:flex-start;padding:max(20px,env(safe-area-inset-top)) 22px 22px}
.cs{width:min(430px,100%);margin:6vh auto auto;background:none;color:#eef0f2;border-radius:0;padding:0;box-shadow:none;overflow:visible;letter-spacing:.06em}
.cs .cmy{display:none}.cs .x{right:-8px;top:-10px;color:#eef0f2}
.cs small{font:600 9px ui-monospace,Menlo,monospace;letter-spacing:.24em;color:#3cf0ff;margin-bottom:8px}
.cs h1{font:400 14px/1.3 ui-monospace,Menlo,monospace;letter-spacing:.14em;color:#fff;margin-bottom:8px}
.cs p{font:11px/1.55 ui-monospace,Menlo,monospace;color:#ffffffa6;margin-bottom:16px}
.cs .seg{gap:14px;margin:0;padding:9px 0;border-top:1px solid #ffffff24}.cs .seg span{color:#ffffff80;width:44px;font-weight:600;letter-spacing:.2em}
.cs .seg button{flex:none;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;color:#ffffffb3;padding:4px 0 3px;font:600 9px ui-monospace,Menlo,monospace;letter-spacing:.16em}
.cs .seg button.on{background:none;color:#fff;border-bottom-color:#3cf0ff}
.cs .rows{gap:0;margin:0 0 18px;border-top:1px solid #ffffff24;max-height:none;-webkit-mask-image:none}
.cs .row{border:0;border-bottom:1px solid #ffffff1c;border-radius:0;background:none;color:#eef0f2;padding:10px 0 9px}
.cs .row b{font:600 10px ui-monospace,Menlo,monospace;letter-spacing:.14em}.cs .row i{color:#ffffff80;font-size:9.5px}.cs .row em{color:#ffffffb3;font-weight:400;letter-spacing:.1em}
.cs .row.hi{box-shadow:none}.cs .row.hi b{color:#3cf0ff}
.cs .go{width:auto;min-width:150px;padding:12px 22px 11px;border-radius:0;background:#3cf0ff;color:#04121a;box-shadow:none;font:700 11px ui-monospace,Menlo,monospace;letter-spacing:.24em}
.cs .crewrow input{border:0;border-bottom:1px solid #ffffff66;border-radius:0;background:none;color:#fff;text-align:left;padding:8px 0;font:400 14px ui-monospace,Menlo,monospace}
.cs .wbtn{border:1px solid #3cf0ff;border-radius:0;background:none;color:#3cf0ff;font:600 10px ui-monospace,Menlo,monospace;letter-spacing:.22em;padding:0 16px}
body.v3 #welc{padding-top:calc(15vh + 24px)}
body.v3 #promo button{border-radius:0;border:1px solid #f9faedaa;background:#faf9efe6;color:#263c30;box-shadow:none}
@media(orientation:landscape) and (max-height:550px){#promo{bottom:20px}#welc{padding-top:22vh}#sheet{align-items:flex-start;padding:8px 16px}.cs{width:min(660px,100%)}.cs .rows{max-height:none;display:grid;grid-template-columns:1fr 1fr}.cs p{margin-bottom:8px}.cs{margin-top:0;width:min(680px,100%)}.cs .rows{column-gap:22px}}

/* DATA: the game's numbers, right-aligned under the hour. Plain type on the picture, no box */
#data{position:absolute;top:calc(130px + env(safe-area-inset-top));right:12px;max-width:min(330px,calc(100% - 24px));text-align:right;font:9px/1.75 ui-monospace,Menlo,monospace;letter-spacing:.08em;color:#e9e4d2;text-shadow:0 1px 2px #000c,0 0 6px #0008;pointer-events:none;z-index:2}
#data b{font-weight:700;color:#fff}#data .x{opacity:.72}
#data .dbar{display:flex;height:4px;margin:2px 0 4px auto;width:min(230px,100%);background:#0b0c0d;outline:1px solid #ffffff38}
#data .dbar i{background:#f1ecdc}#data .dbar u{background:#7d8388}
body.v3 #data{color:#eef3f6}
@media(max-width:699px){#data .x{display:none}}
@media(min-width:700px){#data{right:20px;font-size:10px}}
@media(orientation:landscape) and (max-height:550px){#data{top:74px;font-size:8px}#data .x{display:none}}

/* hold NEW for more: its choices on an arc up and to the left; the rest of the HUD dims while it's open */
#jmp::after{content:"";position:absolute;left:50%;bottom:9px;width:10px;height:1px;margin-left:-5px;background:currentColor;opacity:.55}
#fan{position:fixed;inset:0;z-index:12;pointer-events:none}#fan[hidden]{display:none}
#fan button{position:absolute;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;border:1px solid #3cf0ff;background:#06131cf0;color:#eaffff;font:700 7.5px/1.25 ui-monospace,Menlo,monospace;letter-spacing:.1em;padding:0 3px;pointer-events:auto;cursor:pointer;animation:fanIn .16s ease both}
#fan button.hot{background:#3cf0ff;color:#04121a}
@keyframes fanIn{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
body.fanning #pad,body.fanning #helpBtn,body.fanning #exit,body.fanning #b4,body.fanning #act{opacity:.25;transition:opacity .15s}

/* YOUR OWN SET: the sheet sits aside so the board shows as you pick (#sheet.peek) */
#sheet.peek{background:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;align-items:flex-end;justify-content:flex-end;pointer-events:none}#sheet.peek .cs{pointer-events:auto;margin:0;max-height:min(62vh,560px);overflow:auto;background:#05080ce6;padding:14px 16px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
@media(min-width:760px){#sheet.peek{align-items:center}}
@media(max-width:759px){#sheet.peek{align-items:flex-end;padding:0!important}#sheet.peek .cs{width:100%;max-height:42vh;border-radius:0}}
.own h6{margin:10px 0 5px;font:600 8px ui-monospace,Menlo,monospace;letter-spacing:.18em;text-transform:uppercase;opacity:.6}
.own .sw{display:grid;grid-template-columns:repeat(auto-fill,minmax(26px,1fr));gap:4px}
.own .sw button{aspect-ratio:1;padding:0;border:1px solid #0003;background:var(--c);cursor:pointer;border-radius:2px;overflow:hidden}.own .sw button.on{outline:2px solid #3cf0ff;outline-offset:1px}
.own .seg{margin-top:10px}
