:root{font-family:Segoe UI,system-ui,sans-serif;color:var(--text);background:var(--bg);font-size:13px;--light-square:#f0d9b5;--dark-square:#b58863;--bg:#111815;--text:#e7ece7;--text-dim:#a4b0a8;--panel-bg:#1c2620;--panel-border:#334037;--accent-bg:#b7db89;--accent-border:#829b69;--accent-text:#192214;--secondary-bg:#28372d;--secondary-border:#485b4c;--secondary-text:#e2ece2;--status-bg:#111b14} :root[data-theme="light"]{--bg:#dce4ed;--text:#233548;--text-dim:#4d6277;--panel-bg:#eaf0f5;--panel-border:#b4c4d4;--accent-bg:#356e9d;--accent-border:#285780;--accent-text:#f5f8fc;--secondary-bg:#d2dfeb;--secondary-border:#a8bbce;--secondary-text:#233548;--status-bg:#d7e2ed} :root[data-theme="forest"]{--bg:#0c1a10;--text:#e4f1e6;--text-dim:#8fb391;--panel-bg:#122418;--panel-border:#245030;--accent-bg:#4fae5a;--accent-border:#2f7c3a;--accent-text:#0b1a0e;--secondary-bg:#1b3522;--secondary-border:#2f5c3a;--secondary-text:#d9ecd9;--status-bg:#0f2014} :root[data-theme="ocean"]{--bg:#0a141f;--text:#dfe9f5;--text-dim:#7f98b3;--panel-bg:#102030;--panel-border:#1f4160;--accent-bg:#3f8fd1;--accent-border:#2a6ea8;--accent-text:#06131f;--secondary-bg:#162c42;--secondary-border:#294f74;--secondary-text:#d7e4f2;--status-bg:#0d1d2d} :root[data-theme="slate"]{--bg:#181a1d;--text:#e6e8ea;--text-dim:#9aa0a6;--panel-bg:#232629;--panel-border:#3a3f44;--accent-bg:#8a95a3;--accent-border:#6a7684;--accent-text:#16181a;--secondary-bg:#2d3135;--secondary-border:#4a5056;--secondary-text:#e0e3e6;--status-bg:#1e2124} *{box-sizing:border-box;min-width:0}html,body{height:100%;margin:0;overflow:hidden}body{height:100dvh;display:flex;flex-direction:column;padding:10px;gap:10px} [hidden]{display:none!important}header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;flex:none;max-height:28dvh;overflow:auto}h1{font-size:20px;margin:0}h2{font-size:15px;margin:0}header p{font-size:11px;margin:2px 0;color:var(--text-dim)}.logo{font-size:32px;color:var(--accent-bg)}.header-actions{margin-left:auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center}#saveConfirmation{color:var(--accent-bg);font-size:11px} button,input,select{font:inherit}button,select{border-radius:7px;padding:7px 10px;border:1px solid var(--accent-border);background:var(--accent-bg);color:var(--accent-text);cursor:pointer}button.secondary,select{background:var(--secondary-bg);color:var(--secondary-text);border-color:var(--secondary-border)}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible{outline:2px solid var(--accent-bg);outline-offset:2px}p{line-height:1.4;color:var(--text-dim)}label{display:block;margin:10px 0}select{max-width:100%} main{flex:1;min-height:0;width:100%;display:grid;gap:10px;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.left-views{min-height:0;display:flex;flex-direction:column;gap:10px}.left-views>.panel{min-height:0}.left-views>.camera{flex:1 1 auto}.occupancy-panel{flex:0 1 47%;display:flex;flex-direction:column;background:var(--secondary-bg)}.occupancy-help{margin:0 0 6px;color:var(--text-dim);font-size:11px;text-align:center}.occupancy-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));gap:2px;width:min(100%,390px);aspect-ratio:1;align-self:center}.occupancy-grid>div{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--panel-border);gap:1px;overflow:hidden;cursor:pointer}.occupancy-grid>div:hover{filter:brightness(1.15)}.occupancy-grid span{font-size:clamp(7px,1vw,12px);font-weight:800;line-height:1}.occupancy-grid b{font-size:clamp(8px,1.25vw,16px);line-height:1.05}.occupancy-grid small{font-size:clamp(6px,.85vw,10px);line-height:1}.occupancy-grid>div.piena{background:#ffd92f;color:#152018;border-color:#fff19b;box-shadow:inset 0 0 0 3px #a66b00}.occupancy-grid>div.vuota{background:#0879c9;color:#fff;border-color:#8bd9ff;box-shadow:inset 0 0 0 3px #003f77}.occupancy-grid>div.incerta{background:#5b465f;color:#ffe6a0;border-color:#e5b94f}.occupancy-grid>div.saved{outline:3px solid var(--accent-bg);outline-offset:-4px}.no-left-views #leftViews{display:none} .panel{background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:12px;padding:12px;min-height:0;overflow:auto;overscroll-behavior:contain}.heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px;flex:none}.heading span{font-size:11px;color:var(--text-dim)}.toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;flex:none}footer{display:none} .play-mode main{grid-template-columns:minmax(0,.8fr) minmax(0,1.65fr) minmax(0,.55fr)}.play-mode.no-left-views main{grid-template-columns:minmax(0,1.65fr) minmax(0,.55fr)} .position{display:flex;flex-direction:column;align-items:stretch}.board-space{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;container-type:size;overflow:hidden} .board-stage{position:relative;flex:none;display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:8px;width:min(100cqw,calc(100cqh + 56px));height:min(100cqh,calc(100cqw - 56px));max-width:100%;max-height:100%;margin:auto} #board{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));width:100%;height:100%;border:3px solid var(--panel-border);border-radius:5px;overflow:hidden;container-type:inline-size} .square{display:flex;align-items:center;justify-content:center;position:relative;min-height:0;font-family:Georgia,serif;font-size:9cqw;background:var(--light-square);color:#18291f;user-select:none;touch-action:none;overflow:hidden}.square.dark{background:var(--dark-square)}.square small{position:absolute;bottom:1px;left:2px;font:clamp(6px,1.8cqw,10px) Segoe UI;color:#213729}.square.selected-square{box-shadow:inset 0 0 0 3px #69b8eb}.piece-white{color:#fffdf1;text-shadow:0 1px 2px #000,1px 0 #263728,-1px 0 #263728}.piece-black{color:#17251d;text-shadow:0 1px #bdd1b7}body[data-piece-set="outline"] .square{font-family:"Times New Roman",serif}body[data-piece-set="modern"] .square{font-family:"Segoe UI Symbol","Arial Unicode MS",sans-serif;font-weight:700} #evaluationFill{position:absolute;left:0;right:0;background:#b9bfcc;transition:top 1s,bottom 1s,height 1s}#evaluationLabel{position:absolute;left:50%;bottom:calc(100% + 5px);transform:translateX(-50%);font:700 12px/1 Segoe UI;white-space:nowrap} #turnIndicator{grid-column:1;grid-row:1;justify-self:center;width:17px;height:17px;border:1px solid #aab8aa;border-radius:4px;background:var(--secondary-bg)}#turnIndicator.turn-white{background:white}#turnIndicator.at-top{align-self:start}#turnIndicator.at-bottom{align-self:end} #moveFlash,#gameResultOverlay{grid-column:2;grid-row:1;z-index:3;display:grid;place-items:center;text-align:center;pointer-events:none;color:white;font-weight:800;text-shadow:0 2px 8px #000}#moveFlash{opacity:0;font-size:clamp(18px,4vw,60px);background:#14201855}#gameResultOverlay{font-size:clamp(32px,8vw,100px);background:#0710098c} #countdown{margin:6px 0;font-size:12px;flex:none;overflow-wrap:anywhere}#proposal{display:flex;flex-wrap:wrap;gap:5px;max-height:20%;overflow:auto;flex:none}#proposal:empty{display:none}.position>.toolbar{max-height:25%;overflow:auto} .history{display:flex;flex-direction:column}#history{min-height:0;overflow:auto;flex:1;margin:5px 0;padding-left:32px;line-height:1.9}#empty{font-size:12px;margin:4px 0} .video-wrap{background:var(--secondary-bg);position:relative;border-radius:8px;overflow:hidden;margin:auto;max-width:100%;transform:rotate(180deg)}.video-wrap>video,.video-wrap>canvas{position:absolute;object-fit:fill}.video-wrap>canvas{touch-action:none}.video-wrap>#placeholder,.video-wrap>#detectionBusy{transform:rotate(180deg)}#placeholder{position:absolute;inset:0;display:grid;place-content:center;text-align:center;font-size:40px;color:#6c836e}#placeholder p{font-size:12px;max-width:240px;padding:8px} #status{font-size:12px;padding:8px;border-left:3px solid var(--accent-bg);background:var(--status-bg);overflow-wrap:anywhere}#guide{font-size:11px} #detectionBusy{position:absolute;top:12px;right:12px;z-index:7;display:flex;align-items:center;gap:12px;padding:11px 15px;border:1px solid var(--accent-border);border-radius:12px;background:#071009e8;text-align:left;font-size:15px;font-weight:700;pointer-events:none;box-shadow:0 5px 18px #0008}.clock-face{width:56px;height:56px;border:4px solid var(--accent-bg);border-radius:50%;position:relative;flex:none}.clock-face i{position:absolute;left:24px;top:5px;width:3px;height:22px;background:var(--accent-bg);transform-origin:50% 22px;animation:clock-spin 1.15s linear infinite}@keyframes clock-spin{to{transform:rotate(360deg)}} #initialSetupOverlay{position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:32px;text-align:center;background:#060b0773;backdrop-filter:blur(.5px);pointer-events:auto;touch-action:none;cursor:wait} #initialSetupOverlay .clock-face{width:112px;height:112px;border-width:7px} #initialSetupOverlay strong{font-size:22px;color:#fff;text-shadow:0 1px 6px #000;max-width:560px} #initialSetupOverlay small{font-size:14px;color:var(--accent-border);max-width:480px} @media(max-width:900px){body{padding:8px;gap:8px}header{gap:6px}header p,.logo{display:none}.header-actions{margin-left:0}h1{font-size:17px}button{padding:6px 8px;font-size:11px}.panel{padding:8px}main{gap:8px}.play-mode main{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);grid-template-rows:minmax(0,1fr) minmax(70px,20%)}.play-mode .history{grid-column:1/-1}.play-mode #history{display:flex;flex-wrap:wrap;gap:0 30px}h2{font-size:13px}} @media(max-width:540px){.play-mode main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,24%) minmax(0,1fr) minmax(50px,15%)}.play-mode .history{grid-column:1}.play-mode .camera .heading{display:none}.header-actions{gap:4px}.panel{border-radius:8px}#countdown{font-size:11px}} body:not(.developer-mode) #guide,body:not(.developer-mode) #status,body:not(.developer-mode) #resolution,body:not(.developer-mode) #countdown{display:none}#developerDiagnostics{display:none}body.developer-mode #developerDiagnostics{display:block}dialog#settingsDialog{width:min(1120px,calc(100vw - 28px));max-height:min(860px,calc(100dvh - 28px));padding:0;border:1px solid var(--panel-border);border-radius:16px;background:var(--panel-bg);color:var(--text);box-shadow:0 24px 80px #000b}dialog#settingsDialog::backdrop{background:#061008b8;backdrop-filter:blur(4px)}.settings-modal{display:flex;flex-direction:column;max-height:inherit}.settings-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:22px 24px 16px;border-bottom:1px solid var(--panel-border);background:linear-gradient(120deg,var(--secondary-bg),var(--panel-bg))}.settings-header h2{font-size:23px}.settings-header p{margin:5px 0 0;font-size:13px}.eyebrow{font-size:10px!important;font-weight:800!important;letter-spacing:1.4px;color:var(--accent-bg)!important}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;overflow:auto}.settings-grid section{padding:18px 20px;border-right:1px solid var(--panel-border)}.settings-grid section:last-child{border-right:0}.settings-grid h3{margin:0 0 12px;color:var(--accent-bg);font-size:15px}.settings-grid h4{margin:18px 0 8px;font-size:13px}.settings-grid label{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin:0 0 16px;padding-bottom:14px;border-bottom:1px solid var(--panel-border)}.settings-grid label>span{font-weight:650}.settings-grid label>input[type=range]{grid-column:1;min-width:0;width:100%;accent-color:var(--accent-bg)}.settings-grid label>output{grid-column:2;grid-row:2;color:var(--accent-bg);font-variant-numeric:tabular-nums}.settings-grid label>small,.settings-grid .setting-note{grid-column:1/-1;margin:0;color:var(--text-dim);font-size:11px;line-height:1.45}.settings-grid label>select{width:100%}.settings-grid label>input[type=color]{width:58px;height:34px;padding:2px;background:var(--secondary-bg);border:1px solid var(--secondary-border);border-radius:6px}.settings-grid label>input[type=number]{width:96px;padding:6px;background:var(--secondary-bg);color:var(--text);border:1px solid var(--secondary-border);border-radius:6px}.settings-grid .toggle-row{grid-template-columns:auto 1fr}.settings-grid .toggle-row input{grid-row:1;accent-color:var(--accent-bg)}.settings-grid .toggle-row small{grid-column:1/-1}.settings-grid .setting-note{padding:10px 12px;background:var(--secondary-bg);border-left:3px solid var(--accent-border);border-radius:4px}.settings-footer{padding:14px 24px;border-top:1px solid var(--panel-border);display:flex;justify-content:flex-end;background:var(--panel-bg)}.settings-footer button{min-width:180px}#developerDiagnostics{border-top:1px dashed var(--panel-border);margin-top:12px;padding-top:8px}#developerDiagnostics p{font-size:11px;background:var(--secondary-bg);padding:8px;border-radius:6px;max-height:140px;overflow:auto}#diagnosticText{width:100%;margin-top:8px;background:var(--secondary-bg);color:var(--text);border:1px solid var(--panel-border);border-radius:6px;padding:8px;font:11px ui-monospace,Consolas,monospace}@media(max-width:850px){.settings-grid{grid-template-columns:1fr}.settings-grid section{border-right:0;border-bottom:1px solid var(--panel-border)}.settings-header{padding:18px}.settings-footer{padding:12px 18px}.settings-grid section{padding:16px 18px}} .camera-toolbar{align-items:center}.camera-icon{font-size:20px;filter:drop-shadow(0 1px 3px #0008)}#baseline{align-self:flex-start;padding-inline:14px}.coach-pulse{animation:coach-pulse .72s ease-in-out 5!important}@keyframes coach-pulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 color-mix(in srgb,var(--accent-bg) 0%,transparent)}50%{transform:scale(1.07);box-shadow:0 0 0 6px color-mix(in srgb,var(--accent-bg) 53%,transparent);background:var(--accent-bg);color:#172016}}.square.draggable-piece{cursor:grab;transition:transform var(--move-duration,150ms) ease,box-shadow var(--move-duration,150ms) ease}.square.draggable-piece:active{cursor:grabbing}.square.draggable-piece:active .piece-white,.square.draggable-piece:active .piece-black{transform:scale(1.11);filter:drop-shadow(0 8px 8px #0008)}.piece-white,.piece-black{transition:transform var(--move-duration,150ms) cubic-bezier(.2,.8,.2,1),filter var(--move-duration,150ms) ease} .confirm-dialog{width:min(430px,calc(100vw - 28px));padding:0;border:1px solid var(--panel-border);border-radius:14px;background:var(--secondary-bg);color:var(--text);box-shadow:0 24px 80px #000c}.confirm-dialog::backdrop{background:#061008b8;backdrop-filter:blur(4px)}.confirm-dialog form{padding:22px}.confirm-dialog h2{font-size:20px}.confirm-dialog p{margin:10px 0 20px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px} .pgn-headers-dialog{width:min(480px,calc(100vw - 28px))}.pgn-headers-dialog label{margin:0 0 12px}.pgn-headers-dialog label>span{display:block;margin-bottom:4px;font-size:12px;color:var(--text-dim)}.pgn-headers-dialog input[type=text],.pgn-headers-dialog select{width:100%;padding:8px 10px;background:var(--secondary-bg);color:var(--text);border:1px solid var(--panel-border);border-radius:7px} .camera-toolbar button.active{background:var(--accent-bg);color:var(--accent-text);border-color:var(--accent-border);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent-bg) 30%,transparent),0 4px 14px color-mix(in srgb,var(--accent-bg) 30%,transparent)}.camera-toolbar button:not(.active){background:var(--secondary-bg);color:var(--secondary-text);border-color:var(--secondary-border)} .square.last-move{box-shadow:inset 0 0 0 2px #e01b1b;background-image:linear-gradient(rgba(239,68,68,.2),rgba(239,68,68,.2))}.moving-piece{position:fixed!important;z-index:1000!important;pointer-events:none!important;display:flex;align-items:center;justify-content:center;font-size:inherit;transition:transform var(--move-duration,150ms) cubic-bezier(.2,.85,.25,1),opacity 80ms linear;filter:drop-shadow(0 8px 9px #0008)} .dragging-piece{position:fixed!important;z-index:1100!important;pointer-events:none!important;display:flex;align-items:center;justify-content:center;font-size:inherit;transition:transform 45ms linear;filter:drop-shadow(0 10px 10px #0009);transform-origin:center}.square{user-select:none}.square.selected-square{box-shadow:inset 0 0 0 3px #69b8eb!important} .piece-white,.piece-black{transform:scale(var(--piece-scale,1))} .lichess-panel{max-width:1440px;margin:0 auto 14px;padding:16px 18px;border:1px solid var(--panel-border);background:linear-gradient(135deg,var(--panel-bg),var(--panel-bg));box-shadow:0 10px 28px #0004}.lichess-panel h3{margin:0 0 10px;color:var(--text)}.lichess-panel .toggle-row{display:flex;align-items:flex-start;gap:10px}.lichess-panel .toggle-row small{margin-left:auto;max-width:540px;color:var(--text-dim)}.lichess-panel #lichessOptions{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #ffffff1f}.lichess-panel #lichessOptions p{margin:0;min-width:180px;color:var(--text)}.lichess-panel #lichessOptions label{display:grid;gap:4px;min-width:120px}.lichess-panel #lichessOptions input,.lichess-panel #lichessOptions select{min-height:36px}.lichess-panel #lichessOptions small{max-width:180px;color:var(--text-dim)}.lichess-panel #openLichess{} #openLichess.active{border-color:var(--accent-border);background:var(--accent-bg);color:var(--accent-text)} #lichessGameInfo{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.7fr) minmax(180px,1fr);gap:12px;margin-top:14px;padding:14px;border-radius:10px;background:var(--secondary-bg);border:1px solid #ffffff22}.lichess-player{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:center;padding:10px 12px;border-radius:8px;background:#ffffff0b}.lichess-player span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim)}.lichess-player strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.lichess-player b{grid-row:1 / span 2;grid-column:2;font:800 28px/1 ui-monospace,Consolas,monospace;color:#fff}.lichess-versus{display:grid;place-content:center;text-align:center;gap:5px;color:var(--text)}.lichess-versus span{font-size:13px}.lichess-versus em{font-style:normal;font-weight:800;color:var(--accent-bg)}.lichess-game-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.lichess-game-actions button:last-child{border-color:#bd615f;color:#ffd6d2}@media(max-width:700px){.lichess-panel .toggle-row small{margin-left:0}.lichess-panel #lichessGameInfo{grid-template-columns:1fr}.lichess-versus{order:3}.lichess-game-actions{order:4}.lichess-player b{font-size:24px}} dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto}dialog .lichess-panel{position:static;transform:none;width:auto}.settings-header,.settings-footer{flex-shrink:0}.settings-header{padding:14px}.settings-footer{padding:10px}.settings-grid{min-height:0}.settings-grid section{min-width:0}.settings-header h2{font-size:20px} .lichess-player{min-width:0}.lichess-player strong{min-width:0}.lichess-seek-actions{flex-wrap:wrap} #lichessBoardInfo{display:grid;grid-template-columns:minmax(0,1fr);gap:0;flex:none;width:100%;margin:0 0 10px;font-variant-numeric:tabular-nums} #lichessBoardInfo span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:9px 12px 2px;border:1px solid var(--panel-border);border-bottom:0;border-radius:10px 10px 0 0;font-size:clamp(12px,1.1vw,16px);font-weight:700} #lichessBoardInfo b{display:block;overflow:hidden;white-space:nowrap;text-align:center;padding:2px 8px 12px;border:1px solid var(--panel-border);border-top:0;border-radius:0 0 10px 10px;font-size:clamp(36px,20cqw,56px);font-weight:800;line-height:1;letter-spacing:-.04em} #lichessBoardInfo span:nth-of-type(1),#lichessBoardInfo b:nth-of-type(1){background:#e3ebe5;color:#152119} #lichessBoardInfo span:nth-of-type(2),#lichessBoardInfo b:nth-of-type(2){background:#102018;color:#f3f9f1} #lichessBoardInfo i{display:block;margin:7px 0;padding:5px 8px;text-align:center;color:var(--text-dim);font-size:12px;font-style:normal;line-height:1.25} #lichessBoardInfo[data-turn="w"] b:nth-of-type(1),#lichessBoardInfo[data-turn="b"] b:nth-of-type(2){border-color:var(--accent-border);box-shadow:inset 0 -4px var(--accent-bg)} @media(max-width:900px){#lichessBoardInfo{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px}#lichessBoardInfo span:nth-of-type(1){grid-column:1;grid-row:1}#lichessBoardInfo b:nth-of-type(1){grid-column:1;grid-row:2}#lichessBoardInfo span:nth-of-type(2){grid-column:2;grid-row:1}#lichessBoardInfo b:nth-of-type(2){grid-column:2;grid-row:2}#lichessBoardInfo i{display:none}#lichessBoardInfo b{font-size:clamp(30px,7vw,44px);padding-bottom:7px}} button.active,button[aria-pressed=true],#openLichess.active{background:var(--accent-bg);color:var(--accent-text);border-color:var(--accent-border);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent-bg) 40%,transparent),0 0 12px color-mix(in srgb,var(--accent-bg) 30%,transparent)} button.active:disabled{opacity:.85}.lichess-dialog-header>button,.settings-header>button{flex-shrink:0}#toggleOccupancy,.occupancy-panel{display:none!important}.occupancy-overlay{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#5b465f88;color:#ffe6a0;cursor:pointer}.occupancy-overlay b{font:800 clamp(12px,3.1cqw,26px)/1 system-ui}.occupancy-overlay small{position:static!important;color:inherit!important;font:700 clamp(7px,1.6cqw,12px)/1 system-ui!important}.square.occupancy-piena .occupancy-overlay{background:#ffd92f99;color:#172016}.square.occupancy-vuota .occupancy-overlay{background:#0879c999;color:#fff}.square.occupancy-saved .occupancy-overlay{box-shadow:inset 0 0 0 4px var(--accent-bg)} .promotion-title{flex-basis:100%;margin:2px 0;font-weight:600}.promotion-choice{font-size:18px;padding:8px 14px} .video-wrap>#detectionBusy{top:50%;left:50%;right:auto;transform:translate(-50%,-50%) rotate(180deg);flex-direction:column;gap:6px;padding:12px 16px;background:#07100970;border-color:#9fca7299;box-shadow:none;opacity:.88;backdrop-filter:blur(1px);text-align:center;font-size:13px} .video-wrap>#detectionBusy .clock-face{width:64px;height:64px;background:#0710094d} .video-wrap>#detectionBusy .clock-face i{left:28px;top:6px;height:26px;transform-origin:50% 26px} body.lichess-mode main,body.lichess-mode.play-mode main,body.lichess-mode.no-left-views main{grid-template-columns:minmax(0,1fr) minmax(230px,.38fr);grid-template-rows:minmax(0,auto) minmax(0,1fr);overflow:hidden} body.lichess-mode #leftViews{display:none!important} body.lichess-mode #lichessControl{grid-column:1/-1;grid-row:1;width:100%;max-width:none;max-height:min(34dvh,290px);margin:0;overflow:auto;padding:12px 16px} body.lichess-mode .position{grid-column:1;grid-row:2} body.lichess-mode .position>.toolbar{display:none} body.lichess-mode .history{display:flex;grid-column:2;grid-row:2;container-type:inline-size} body.lichess-mode .lichess-main-header{display:flex;justify-content:space-between;align-items:center;gap:12px} body.lichess-mode .lichess-main-header h2{font-size:17px} body.lichess-mode .lichess-main-header .eyebrow{margin:0 0 3px} body.lichess-mode #lichessNotice{margin:7px 0 0;padding:6px 9px;border-left:3px solid var(--accent-bg);border-radius:4px;background:var(--secondary-bg);color:var(--text);font-size:12px;line-height:1.3} body.lichess-mode #lichessOptions{display:flex;align-items:center;gap:10px;margin-top:8px;padding-top:8px} body.lichess-mode .lichess-account-row{display:flex;align-items:center;gap:6px;flex:1;min-width:170px} body.lichess-mode .lichess-account-row p{margin:0;min-width:100px;flex:1} body.lichess-mode .lichess-form{display:flex;align-items:center;gap:8px} body.lichess-mode .lichess-form label{display:flex;align-items:center;gap:5px;margin:0} body.lichess-mode .lichess-form input{width:65px} body.lichess-mode .lichess-form input[type=checkbox]{width:auto;accent-color:var(--accent-bg)} body.lichess-mode .lichess-form select{max-width:100px} body.lichess-mode .lichess-seek-actions{display:flex;gap:6px} body.lichess-mode .lichess-searching{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px} body.lichess-mode .lichess-searching .clock-face{width:42px;height:42px} body.lichess-mode .lichess-searching .clock-face i{left:17px;top:4px;height:18px;transform-origin:50% 18px} body.lichess-mode #lichessGameInfo{display:grid;grid-template-columns:minmax(150px,1fr) minmax(160px,.7fr) minmax(150px,1fr);gap:8px;margin-top:8px;padding:8px} body.lichess-mode .lichess-player{grid-template-columns:1fr auto;padding:6px 9px} body.lichess-mode .lichess-player strong{grid-column:1;grid-row:2} body.lichess-mode .lichess-player small{grid-column:1;grid-row:3;color:var(--text-dim)} body.lichess-mode .lichess-player small{font-size:12px;font-weight:700} body.lichess-mode .lichess-player b{grid-column:2;grid-row:1/4;font-size:26px} body.lichess-mode .lichess-game-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px} body.lichess-mode .lichess-game-actions button{padding:5px 8px} body.lichess-mode #lichessOpponentGone{grid-column:1/-1;margin:0;color:#ffd27d} body.lichess-mode .lichess-chat{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.7fr);gap:8px;align-items:end} body.lichess-mode #lichessChatLog{max-height:54px;overflow:auto;margin:0;padding:5px 8px 5px 26px;border:1px solid var(--panel-border);border-radius:7px;background:var(--secondary-bg);font-size:11px} body.lichess-mode #lichessChatForm{display:flex;gap:6px;margin:0} body.lichess-mode #lichessChatInput{width:100%;min-width:0;border:1px solid var(--panel-border);border-radius:7px;background:var(--secondary-bg);color:var(--text);padding:6px} @media(max-width:900px){body.lichess-mode main,body.lichess-mode.play-mode main,body.lichess-mode.no-left-views main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) minmax(100px,20%)}body.lichess-mode #lichessControl{max-height:28dvh}body.lichess-mode .position{grid-column:1;grid-row:2}body.lichess-mode .history{grid-column:1;grid-row:3}body.lichess-mode #lichessOptions{flex-wrap:wrap}body.lichess-mode #lichessGameInfo{grid-template-columns:1fr 1fr}body.lichess-mode .lichess-versus{display:none}body.lichess-mode .lichess-chat{grid-template-columns:1fr}} #board [data-index].occupancy-asking{outline:3px solid var(--accent-bg);outline-offset:-3px} body.setup-only main{display:block;overflow:hidden} body.setup-only #leftViews{display:flex;width:100%;height:100%} body.setup-only .camera{display:flex;flex:1;flex-direction:column;align-items:stretch;height:100%;min-height:0} body.setup-only .video-wrap{flex:none} body.setup-only header button:not(#openSettings):not(#openHelp){display:none!important} body.setup-only .position,body.setup-only .history,body.setup-only #lichessControl,body.setup-only #occupancyPanel,body.setup-only #newGame{display:none!important} body.setup-only:not(.developer-mode) #status{display:block} body.lichess-mode:not(.no-left-views) main,body.lichess-mode:not(.no-left-views).play-mode main{grid-template-columns:minmax(210px,.7fr) minmax(0,1.4fr) minmax(190px,.45fr)} body.lichess-mode:not(.no-left-views) #leftViews{display:flex!important;grid-column:1;grid-row:2} body.lichess-mode:not(.no-left-views) .position{grid-column:2;grid-row:2} body.lichess-mode:not(.no-left-views) .history{grid-column:3;grid-row:2} #lichessSync{background:#ffd26a;border-color:#ffe7a0;color:#172016;font-weight:800} @media(max-width:900px){body.lichess-mode:not(.no-left-views) main,body.lichess-mode:not(.no-left-views).play-mode main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(100px,22%) minmax(0,1fr) minmax(70px,18%)}body.lichess-mode:not(.no-left-views) #leftViews{grid-column:1;grid-row:2}body.lichess-mode:not(.no-left-views) .position{grid-column:1;grid-row:3}body.lichess-mode:not(.no-left-views) .history{grid-column:1;grid-row:4}} body.lichess-mode main{grid-template-columns:minmax(0,1fr) minmax(240px,290px)!important;grid-template-rows:minmax(0,1fr)!important} body.lichess-mode:not(.no-left-views) main{grid-template-columns:minmax(190px,.55fr) minmax(0,1.45fr) minmax(230px,270px)!important} body.lichess-mode #lichessControl{grid-column:-2/-1!important;grid-row:1!important;display:flex;flex-direction:column;gap:7px;max-height:none!important;height:auto;min-height:0;overflow:auto;padding:10px 12px!important} body.lichess-mode #lichessControl[hidden]{display:none} body.lichess-mode .position{grid-column:1;grid-row:1!important} body.lichess-mode:not(.no-left-views) #leftViews{grid-row:1!important} body.lichess-mode:not(.no-left-views) .position{grid-column:2!important} body.lichess-mode .lichess-main-header h2{font-size:15px;margin:0} body.lichess-mode .lichess-main-header button{padding:4px 8px;font-size:11px} body.lichess-mode #lichessNotice{margin:0!important;font-size:11.5px} body.lichess-mode #lichessOptions{flex-direction:column;align-items:stretch;margin:0!important} body.lichess-mode #lichessOptions[hidden]{display:none} body.lichess-mode .lichess-account-row{flex-wrap:wrap;min-width:0} body.lichess-mode .lichess-form{display:grid;grid-template-columns:1fr 1fr;gap:6px} body.lichess-mode .lichess-form label{display:grid;gap:3px} body.lichess-mode .lichess-form label:last-child{display:flex;grid-column:1/-1} body.lichess-mode .lichess-form input:not([type=checkbox]),body.lichess-mode .lichess-form select{width:100%;max-width:none;box-sizing:border-box} body.lichess-mode #lichessGameInfo{display:flex;flex-direction:column;flex:1;min-height:0;gap:7px;margin:0!important;padding:0!important;background:none;border:0} body.lichess-mode #lichessGameInfo[hidden]{display:none} body.lichess-mode #lichessGameInfo .lichess-player,body.lichess-mode #lichessGameInfo .lichess-versus{display:none} body.lichess-mode .lichess-game-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:5px!important} body.lichess-mode .lichess-game-actions button{padding:5px 4px!important;font-size:11.5px} body.lichess-mode .lichess-game-actions button[hidden]{display:none} body.lichess-mode .lichess-chat{display:flex!important;flex-direction:column;flex:1;min-height:90px;gap:5px} body.lichess-mode #lichessChatLog{flex:1;max-height:none!important;min-height:40px} body.lichess-mode #lichessChatForm button{padding:5px 8px} body.lichess-mode .position{display:grid;grid-template-columns:minmax(0,1fr) clamp(170px,19vw,240px);grid-template-rows:auto minmax(0,1fr) auto auto;column-gap:12px} body.lichess-mode .position>.heading{grid-column:1/-1} body.lichess-mode .position>.board-space{grid-column:1;grid-row:2} body.lichess-mode .position>#countdown{grid-column:1;grid-row:3;margin:4px 0 0} body.lichess-mode .position>#proposal{grid-column:1;grid-row:4;max-height:none} body.lichess-mode .position>.history{grid-column:2;grid-row:2/5;min-height:0;padding:0;margin:0;border:0;background:none;box-shadow:none;display:flex;flex-direction:column} body.lichess-mode .position>.history>.heading{order:0;margin-bottom:4px} body.lichess-mode .position>.history>.heading h2{font-size:13px} body.lichess-mode .position>.history #export{padding:4px 7px;font-size:11px} body.lichess-mode #lichessBoardInfo{display:contents} body.lichess-mode #lichessBoardInfo[hidden]>*{display:none} body.lichess-mode #lichessBoardInfo span{padding:5px 9px 1px;font-size:12px} body.lichess-mode #lichessBoardInfo b{padding:0 8px 5px;font-size:clamp(26px,3vw,42px)} body.lichess-mode #lichessBoardInfo i{order:9;margin:4px 0 0;padding:0;font-size:11px} body.lichess-mode #lichessBoardInfo[data-bottom="w"] span:nth-of-type(2),body.lichess-mode #lichessBoardInfo[data-bottom="b"] span:nth-of-type(1){order:1} body.lichess-mode #lichessBoardInfo[data-bottom="w"] b:nth-of-type(2),body.lichess-mode #lichessBoardInfo[data-bottom="b"] b:nth-of-type(1){order:2;margin-bottom:6px} body.lichess-mode .position>.history #history{order:3;flex:1;min-height:0;margin:0;padding:4px 4px 4px 28px;line-height:1.7;font-size:14px;border-radius:7px;background:var(--secondary-bg)} body.lichess-mode .position>.history #empty{order:4} body.lichess-mode #lichessBoardInfo[data-bottom="w"] span:nth-of-type(1),body.lichess-mode #lichessBoardInfo[data-bottom="b"] span:nth-of-type(2){order:5;margin-top:6px} body.lichess-mode #lichessBoardInfo[data-bottom="w"] b:nth-of-type(1),body.lichess-mode #lichessBoardInfo[data-bottom="b"] b:nth-of-type(2){order:6} @media(max-width:900px){ body.lichess-mode main,body.lichess-mode:not(.no-left-views) main{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important} body.lichess-mode #lichessControl{grid-column:1!important;grid-row:1!important;max-height:30dvh!important} body.lichess-mode .position,body.lichess-mode:not(.no-left-views) .position{grid-column:1!important;grid-row:2!important} body.lichess-mode:not(.no-left-views) #leftViews{display:none!important} body.lichess-mode .lichess-chat{min-height:70px} body.lichess-mode .position{grid-template-columns:minmax(0,1fr) minmax(120px,32%)} } @media(max-width:540px){ body.lichess-mode .position{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto minmax(90px,28%)} body.lichess-mode .position>.history{grid-column:1;grid-row:5} body.lichess-mode #lichessBoardInfo b{font-size:22px} } body.lichess-mode .lichess-chat{align-items:stretch} body.lichess-mode .lichess-form input[type=checkbox]{width:16px!important;height:16px;min-height:0!important;margin:0} body.lichess-mode .lichess-form label:last-child{align-items:center;gap:6px} .clock-face i,.video-wrap>#detectionBusy .clock-face i,body.lichess-mode .lichess-searching .clock-face i{left:50%;top:auto;bottom:50%;width:3px;height:40%;margin-left:-1.5px;border-radius:2px;transform-origin:50% 100%} .clock-face::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--accent-bg)} .board3d{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;min-width:0;min-height:0;border:3px solid var(--panel-border);border-radius:5px;overflow:hidden;background:var(--secondary-bg)} .board3d[hidden]{display:none} .board3d-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab} .board3d-canvas:active{cursor:grabbing} .board3d-hint{position:absolute;left:8px;bottom:6px;margin:0;padding:2px 7px;border-radius:5px;background:#0b130ecc;color:var(--text-dim);font-size:11px;pointer-events:none;opacity:.85} body.view-3d #board{display:none} body.view-3d .board-stage{width:100%;height:100%} #view2d.active,#view3d.active{background:var(--accent-bg);border-color:var(--accent-border);color:var(--accent-text)} .board3d-canvas{cursor:default} .board3d-canvas.rotating{cursor:grabbing} .board3d-canvas.dragging{cursor:grabbing} .board3d-canvas.panning{cursor:move} .board3d-hint{z-index:3} #board .draggable-piece{touch-action:none;cursor:grab} .piece3d-settings{margin-top:12px;padding:12px;border:1px solid var(--panel-border);border-radius:10px;background:var(--secondary-bg)} .piece3d-settings h4{margin-top:0}.piece3d-settings label:last-of-type{margin-bottom:8px} .seek-slider{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr auto!important;gap:4px 8px!important;align-items:center!important;padding:8px 9px!important;border:1px solid var(--panel-border);border-radius:8px;background:var(--secondary-bg)} .seek-slider input{grid-column:1/-1;width:100%;accent-color:var(--accent-bg)}.seek-slider output{color:var(--accent-bg);font-weight:800;font-variant-numeric:tabular-nums} .seek-slider .seek-stepper{grid-column:1/-1;display:flex;align-items:center;gap:7px} .seek-slider .seek-stepper input{flex:1;width:auto} .stepper-btn{flex:none;width:26px;height:26px;padding:0;border:1px solid var(--panel-border);border-radius:6px;background:var(--secondary-bg);color:var(--accent-bg);font-size:16px;font-weight:800;line-height:1;cursor:pointer;display:grid;place-items:center} .stepper-btn:hover{background:var(--secondary-border)} .stepper-btn:active{transform:translateY(1px)} .rated-switch{position:relative;display:grid!important;grid-template-columns:1fr 38px 26px!important;align-items:center!important;gap:7px!important;padding:7px 9px;border:1px solid var(--panel-border);border-radius:8px;background:var(--secondary-bg)} .rated-switch input{position:absolute;opacity:0;pointer-events:none}.rated-switch i{display:block;width:38px;height:20px;border-radius:20px;background:var(--secondary-border);box-shadow:inset 0 0 0 1px var(--panel-border);transition:.18s}.rated-switch i::after{content:"";display:block;width:16px;height:16px;margin:2px;border-radius:50%;background:var(--text);transition:.18s}.rated-switch input:checked+i{background:var(--accent-bg)}.rated-switch input:checked+i::after{transform:translateX(18px);background:var(--text)}.rated-switch output{font-weight:800;color:var(--accent-bg)} #lichessLogin:disabled{opacity:1;background:var(--accent-bg);color:var(--accent-text);border-color:var(--accent-border)} #gameResultOverlay{padding:14px;background:radial-gradient(circle,#071009b8,#07100966 58%,transparent 78%)} #moveConfirmations{flex:none;display:grid;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid var(--panel-border)} #moveConfirmations:empty{display:none} #moveConfirmations #proposal{display:flex;flex-wrap:wrap;gap:6px;max-height:22dvh;overflow:auto} #moveConfirmations #lichessSync{width:100%} .position>#proposal{display:none!important} .camera-toolbar #autoBorders{flex:1 1 190px} .camera-toolbar #autoBorders:disabled{opacity:.45;cursor:not-allowed} .piece3d-settings input[type=file]{max-width:100%;font-size:11px;color:var(--text-dim)} .piece3d-settings label>button{justify-self:start;margin-top:4px} .board3d{isolation:isolate;background-image:linear-gradient(#08100bb8,#1017108c),var(--scene-background,none);background-size:cover;background-position:center} .board3d-canvas{position:relative;z-index:1;background:transparent} dialog#settingsDialog{width:min(940px,calc(100vw - 32px));height:min(780px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden;border-color:var(--panel-border);border-radius:18px;background:var(--panel-bg)} #settingsDialog .settings-modal{height:100%;max-height:none;min-height:0} #settingsDialog .settings-header{padding:22px 26px;gap:18px;background:linear-gradient(125deg,var(--secondary-bg),var(--panel-bg));align-items:center} #settingsDialog .settings-header h2{font-size:25px;letter-spacing:-.5px} #settingsDialog .settings-header p{max-width:540px;color:var(--text-dim)} .settings-tabs{flex:none;display:flex;gap:5px;padding:12px 22px;border-bottom:1px solid var(--panel-border);overflow-x:auto;background:var(--panel-bg)} .settings-tabs button{flex:none;padding:9px 13px;border:1px solid transparent;background:transparent;color:var(--text-dim);border-radius:9px;font-weight:600} .settings-tabs button[aria-selected=true]{background:var(--accent-bg);color:var(--accent-text);border-color:var(--accent-border);box-shadow:0 2px 6px #0003} #settingsDialog .settings-grid{display:block;flex:1;min-height:0;overflow:auto;padding:22px 26px;scrollbar-gutter:stable} #settingsDialog .settings-pane{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:16px 22px;padding:0;border:0;min-width:0} #settingsDialog .settings-pane[hidden]{display:none} #settingsDialog .settings-pane>h3,#settingsDialog .settings-pane>h4,#settingsDialog .settings-pane>p,#settingsDialog .settings-pane>div{grid-column:1/-1} #settingsDialog .settings-pane>h3{margin:0 0 4px;font-size:17px} #settingsDialog .settings-grid label{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0;padding:16px;border:1px solid var(--panel-border);border-radius:12px;background:var(--secondary-bg);align-content:start;align-items:center;overflow-wrap:anywhere} #settingsDialog .settings-grid label>span{grid-column:1/-1;font-size:13px;font-weight:650;line-height:1.4} #settingsDialog .settings-grid label>input,#settingsDialog .settings-grid label>select{grid-column:1/-1;grid-row:auto;width:100%;min-width:0;max-width:100%} #settingsDialog .settings-grid label>input[type=range]{grid-column:1;grid-row:2;margin:0} #settingsDialog .settings-grid label>output{grid-column:2;grid-row:2;align-self:center;min-width:44px;text-align:right;font-size:12px} #settingsDialog .settings-grid label>select,#settingsDialog .settings-grid label>input[type=number]{height:38px;width:100%} #settingsDialog .settings-grid label>input[type=color]{height:40px;width:100%} #settingsDialog .settings-grid label>small{grid-column:1/-1;font-size:11px;line-height:1.55;color:var(--text-dim)} #settingsDialog .settings-grid .toggle-row{grid-template-columns:22px minmax(0,1fr);align-items:start} #settingsDialog .settings-grid .toggle-row>input{grid-column:1;grid-row:1;width:18px;height:18px;margin:0} #settingsDialog .settings-grid .toggle-row>span{grid-column:2;grid-row:1} #settingsDialog .settings-grid .toggle-row>small{grid-column:2} #settingsDialog .piece3d-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;margin:0;padding:0;background:none;border:0} #settingsDialog .piece3d-settings>h4,#settingsDialog .piece3d-settings>small,#settingsDialog .piece3d-settings>p{grid-column:1/-1;margin:0} #settingsDialog .piece3d-settings>h4{font-size:17px;color:var(--accent-bg)} #settingsDialog .piece3d-settings label>button,#settingsDialog .piece3d-settings label>img{grid-column:1/-1} #settingsDialog .piece3d-settings input[type=file]{font-size:12px;color:var(--text-dim);overflow:hidden;padding:0} #settingsDialog input[type=file]::file-selector-button{border:1px solid var(--accent-border);border-radius:7px;background:var(--secondary-bg);color:var(--text);padding:9px 12px;margin-right:10px;cursor:pointer} .media3d-preview{display:block;width:100%;height:116px;object-fit:contain;border-radius:8px;border:1px solid var(--panel-border);background:repeating-conic-gradient(#263b2d 0% 25%,#1a2b20 0% 50%) 50%/16px 16px} .media3d-notice{min-height:22px;color:var(--accent-bg);font-size:12px} #settingsDialog .settings-footer{padding:14px 26px;background:var(--panel-bg);border-top:1px solid var(--panel-border)} #tournamentClock,#board3dOpponent{display:none!important} .board3d{background-image:var(--scene-background,none);background-position:center;background-size:cover} @media(max-width:620px){#settingsDialog .settings-header{padding:16px}#settingsDialog .settings-header .eyebrow{display:none}.settings-tabs{padding:10px}.settings-tabs button{padding:8px 10px}#settingsDialog .settings-grid{padding:16px}#settingsDialog .settings-pane,#settingsDialog .piece3d-settings{grid-template-columns:minmax(0,1fr)}#settingsDialog .settings-footer{padding:12px 16px}} body.app-fullscreen{padding:10px;gap:10px} body.app-fullscreen>header{padding:8px 12px;border:1px solid var(--panel-border);border-radius:10px;background:var(--panel-bg);max-height:20dvh} body.app-fullscreen main{overflow:hidden} body.view-3d .board-stage{width:100cqw;height:100cqh} body.app-fullscreen.lichess-mode .position>.toolbar{grid-column:1;grid-row:4;min-width:0} body.app-fullscreen.lichess-mode #moveConfirmations{order:10} body.app-fullscreen.lichess-mode #lichessControl{min-height:0} #localClockInfo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;flex:none;margin-bottom:10px} #localClockInfo>div{border:1px solid var(--panel-border);border-radius:9px;padding:9px 8px;background:var(--secondary-bg);overflow:hidden} #localClockInfo small{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;line-height:1.3;color:var(--text-dim)} #localClockInfo b{display:block;font:700 clamp(21px,2.7vw,38px)/1.2 Consolas,monospace;color:var(--text);margin-top:3px;font-variant-numeric:tabular-nums} #localClockInfo[data-turn=w]>[data-side=w],#localClockInfo[data-turn=b]>[data-side=b]{border-color:var(--accent-border);background:color-mix(in srgb,var(--accent-bg) 22%,var(--secondary-bg));box-shadow:inset 0 0 10px color-mix(in srgb,var(--accent-bg) 30%,transparent)} .seek-clock-note{margin:6px 0 8px;font-size:11px;line-height:1.4;color:var(--text-dim)} .seek-clock-note.invalid{color:#ffd78b;border-left:3px solid #d0a546;padding-left:7px} #lichessExtras{flex:none;order:7;margin:6px 0;padding:7px 9px;border:1px solid var(--panel-border);border-radius:8px;background:var(--secondary-bg);font-size:12px} #lichessExtras small{display:block;color:var(--text-dim);font-size:10px;line-height:1.4} #lichessMaterial{display:block;font-size:16px;line-height:1.4;color:var(--text)} #lichessMaterial[data-advantage=positive]{color:#b5e989}#lichessMaterial[data-advantage=negative]{color:#ffc193} #lichessRatingResult{border-top:1px solid var(--panel-border);padding-top:6px;margin-top:6px} #lichessRatingText{white-space:pre-line;margin:3px 0;line-height:1.45;color:var(--text);font-size:12px} #lichessRatingRefresh{font-size:11px;padding:4px 7px;margin-top:4px} .lichess-takeback-box{flex:none;border:1px solid #b69854;border-radius:8px;padding:8px;background:#39301d;color:#ffebba;grid-column:1/-1} .lichess-takeback-box p{color:inherit;margin:0 0 7px;font-size:12px;line-height:1.4} .lichess-takeback-box>div{display:flex;flex-wrap:wrap;gap:5px} .lichess-takeback-box button{flex:1;font-size:11px;padding:6px} #recognitionSafety{padding:9px;margin:6px 0;border:2px solid #efab5e;border-radius:8px;background:#3b241b;color:#ffe4b6;line-height:1.4;font-size:12px} #recognitionSafety strong{display:block;margin-bottom:7px} #positionRestored{width:100%;white-space:normal} #proposal button{white-space:normal} #proposal button:disabled{opacity:.55;cursor:wait} #lichessOpponentGone{color:#ffd38e;font-size:12px;line-height:1.4} #lichessClaimVictory{width:100%;margin-bottom:8px;border-color:#d8b56d} .lang-picker{position:relative;display:inline-flex} .lang-picker .lang-current{display:inline-flex;align-items:center;gap:7px} .lang-flag{display:block;flex:none;border-radius:2px;box-shadow:0 0 0 1px #0005} .lang-menu{position:fixed;z-index:1000;min-width:160px;display:grid;gap:2px;padding:5px;border:1px solid var(--panel-border);border-radius:9px;background:var(--panel-bg);box-shadow:0 10px 28px #0007} .lang-menu[hidden]{display:none} .lang-option{display:flex;align-items:center;gap:9px;width:100%;padding:7px 10px;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer} .lang-option:hover,.lang-option[aria-selected=true]{background:var(--secondary-bg)} .lang-option[aria-selected=true]{box-shadow:inset 3px 0 var(--accent-bg)} html .clock-face>i,html .video-wrap>#detectionBusy .clock-face>i,html body.lichess-mode .lichess-searching .clock-face>i{position:absolute;inset:0;left:0;right:0;top:0;bottom:0;width:auto;height:auto;margin:0;background:none;border-radius:0;transform-origin:50% 50%;will-change:transform;animation:clock-spin 1.15s linear infinite} html .clock-face>i::before{content:"";position:absolute;left:50%;top:8%;width:3px;height:42%;margin-left:-1.5px;border-radius:2px;background:var(--accent-bg)} .clock-face::after{z-index:1} .heading{min-height:34px;align-items:center} .heading h2{font-size:15px;font-weight:700;letter-spacing:.01em;line-height:1.2} .heading-actions{display:flex;align-items:center;gap:6px;flex:none} .panel{border-radius:14px;box-shadow:0 1px 0 color-mix(in srgb,var(--text) 6%,transparent) inset,0 8px 24px #0004} .position .heading #turn{flex:1;text-align:center} .camera .heading #resolution{font-size:11px} .history .heading{margin-bottom:8px} #history{border-radius:9px} body.lichess-mode main{grid-template-rows:auto minmax(0,1fr)!important;gap:12px} body.lichess-mode main:not(:has(.position>.history)){grid-template-columns:minmax(240px,.62fr) minmax(0,1.6fr) minmax(220px,.5fr)!important} body.lichess-mode main:has(.position>.history){grid-template-columns:minmax(240px,.62fr) minmax(0,2.2fr)!important} body.lichess-mode:not(.no-left-views) #leftViews{grid-column:1!important;grid-row:1!important;align-self:start} body.lichess-mode #lichessControl{grid-column:1!important;grid-row:2!important;max-height:none!important} body.lichess-mode.no-left-views #lichessControl{grid-row:1/-1!important} body.lichess-mode .position,body.lichess-mode:not(.no-left-views) .position{grid-column:2!important;grid-row:1/-1!important} body.lichess-mode main:not(:has(.position>.history)) .history{grid-column:3!important;grid-row:1/-1!important} body.lichess-mode .position>.heading{grid-column:1!important} body.lichess-mode .position>.history{grid-row:1/5!important;grid-column:2} body.lichess-mode .position>.history>.heading{margin-bottom:8px} body.lichess-mode .position>.history>.heading h2{font-size:15px} body.lichess-mode main:not(:has(.position>.history)) .position{grid-template-columns:minmax(0,1fr)} .opening-name{margin:-2px 0 8px;font-size:12px;font-weight:600;color:var(--accent-bg)} .lichess-opponent-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px} .lichess-opponent-row label{display:grid;gap:3px;margin:0} .lichess-opponent-row label span{font-size:11px;color:var(--text-dim)} .lichess-opponent-row select,.lichess-opponent-row input{width:100%;box-sizing:border-box} .lichess-opponent-row #lichessOpponent{grid-column:auto} .lichess-incoming{display:flex;flex-direction:column;gap:8px;margin:0;padding:10px 12px;border:1px solid var(--accent-border);border-radius:10px;background:color-mix(in srgb,var(--accent-bg) 16%,var(--secondary-bg));animation:incoming-pulse 1.4s ease-in-out 3} .lichess-incoming p{margin:0;font-size:13px;font-weight:600;line-height:1.35} .lichess-incoming div{display:flex;gap:6px} @keyframes incoming-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent-bg) 0%,transparent)}50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--accent-bg) 35%,transparent)}} .lichess-opponent-info{display:flex;flex-wrap:wrap;gap:4px 6px;margin:0 0 6px;font-size:12px} .lichess-opponent-info span{padding:2px 8px;border-radius:999px;background:var(--secondary-bg);border:1px solid var(--panel-border);color:var(--text)} .lichess-opponent-info span:first-child{font-weight:700;border-color:var(--accent-border)} body.lichess-mode #lichessGameInfo .lichess-opponent-info{display:flex} body.lichess-mode #lichessGameInfo .lichess-opponent-info[hidden]{display:none} #phoneCameraStatus{color:var(--text-dim)} #phoneCameraQr{display:grid;place-items:center;margin:4px 0 12px}#phoneCameraQr svg{max-width:100%;height:auto;border-radius:8px;width:min(70vw,340px)} #settingsDialog .technical-tab{display:none}body.show-technical #settingsDialog .technical-tab{display:inline-flex} body:not(.show-technical) #board .occupancy-overlay{display:none!important} .brand-icon{vertical-align:-7px;border-radius:6px} body.locked>*:not(#authGate){display:none!important} #authGate{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:var(--bg,#14161a);padding:16px;overflow:auto} #authGate[hidden]{display:none} .auth-card{width:min(420px,100%);background:var(--panel,#1e2127);color:var(--text,#eee);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 40px #0008} .auth-card h1{margin:0;font-size:1.6rem}.auth-card h2{font-size:1rem;margin:8px 0 2px} .auth-form{display:flex;flex-direction:column;gap:10px}.auth-form label{display:flex;flex-direction:column;gap:4px;font-size:.9rem} .auth-form label.check{flex-direction:row;align-items:center;gap:8px} .auth-msg{min-height:1.2em;margin:0}.auth-msg.error{color:#ff7b7b}.auth-msg.ok{color:#7be28b} .auth-list{list-style:none;padding:0;margin:0;font-size:.9rem}.auth-list li{padding:4px 0;border-bottom:1px solid #fff2}.auth-list li.unread{font-weight:700} .auth-card .small{opacity:.7;font-size:.85rem;margin:0}.auth-card .welcome{font-size:1.2rem;margin:0} header .brand{display:flex;align-items:center;gap:10px;margin-left:-2px} header .brand-logo{display:block;flex:none;border-radius:10px} header .brand h1{line-height:1.1}header .brand p{margin:2px 0 0} .heading .heading-actions,.history .heading #export{margin-left:auto} .heading-spacer{flex:1} body:not(.developer-mode) .camera>.heading{display:none} #phoneCameraStatus.error{color:#ff8a8a}#phoneCameraQr svg{display:block;margin:8px auto;max-width:100%;height:auto;background:#fff;padding:8px;border-radius:8px} .user-bar{flex:1;display:flex;justify-content:center;align-items:center;gap:10px;min-width:0} .user-bar .user-info{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2;min-width:0} .user-bar .user-info b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:26ch} .user-bar .user-info small{font-size:11px;color:var(--text-dim)} header .user-bar:not([hidden])+.header-actions{margin-left:0} #uiTheme{width:auto;padding:6px 8px} #settingsDialog .settings-pane h4,#settingsDialog .settings-pane .piece3d-settings>h4{grid-column:1/-1;margin:10px 0 0;font-size:15px;color:var(--accent-bg);text-transform:none;letter-spacing:0} #privacyDoc{align-self:start;justify-self:start} @media(max-width:900px){.user-bar .user-info small{display:none}} .auth-form a{color:inherit;text-decoration:underline} .icon-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px} .icon-button svg{display:block} #settingsDialog .licenses{grid-column:1/-1;display:block} .licenses dl{margin:4px 0 8px}.licenses dt{font-weight:600;margin-top:8px}.licenses dd{margin:2px 0 0;color:var(--text-dim);font-size:13px} .licenses a{color:inherit}.licenses details{margin-top:12px}.licenses pre{white-space:pre-wrap;font-size:11px;background:var(--secondary-bg);padding:10px;border-radius:8px;overflow:auto} .support-button{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;text-decoration:none;font:inherit;border:1px solid currentColor;color:inherit} .support-button[hidden]{display:none} body.setup-only .support-button{display:none!important} header .header-actions{margin-left:auto;justify-content:flex-end} .licenses dt small{font-weight:400;opacity:.7} #siteFooter{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;font-size:11px;line-height:1.3;color:var(--text-dim);opacity:.8} #siteFooter a{color:inherit} .file-native{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden} .file-name{font-size:12px;color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%} dialog.feedback-dialog{width:min(560px,calc(100vw - 24px));max-width:min(560px,calc(100vw - 24px));box-sizing:border-box} .feedback-dialog form{display:grid;gap:10px;min-width:0} .feedback-dialog label{display:grid;gap:4px} .feedback-dialog textarea,.feedback-dialog input,.feedback-dialog select{font:inherit;width:100%;box-sizing:border-box} .feedback-dialog form{position:relative}.feedback-dialog .feedback-trap{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;opacity:0;clip-path:inset(50%);pointer-events:none} .feedback-dialog a{color:var(--accent,#7dc56a)} #feedbackStatus.ok{color:var(--accent,#7dc56a)}#feedbackStatus.error{color:#ff8a8a} button,select,summary,label,.icon-button,.support-button,.settings-tabs,.file-pick,.lang-option,[role="tab"],[role="button"],.header-actions,.dialog-actions{-webkit-user-select:none;user-select:none} :where(body *):not(input):not(textarea):not([contenteditable]):not([contenteditable] *){caret-color:transparent} input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text;caret-color:auto} dialog.source-dialog{width:min(560px,calc(100vw - 24px));max-width:min(560px,calc(100vw - 24px));box-sizing:border-box} .source-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 6px} @media(max-width:520px){.source-choices{grid-template-columns:1fr}} .source-choice{display:grid;justify-items:center;gap:6px;padding:20px 14px;border-radius:14px;text-align:center;font:inherit;cursor:pointer;background:var(--secondary-bg,#26302b);color:inherit;border:2px solid transparent} .source-choice:hover,.source-choice:focus-visible{border-color:var(--accent,#7dc56a)} .source-choice.preferred{border-color:var(--accent,#7dc56a)} .source-choice .source-icon{font-size:40px;line-height:1}.source-choice b{font-size:18px}.source-choice small{opacity:.8;font-size:13px;line-height:1.35} .app-version{white-space:nowrap;opacity:.8;margin-left:6px} #settingsDialog #voiceName{min-width:0;width:100%} #settingsDialog #testVoice{justify-self:end;padding:5px 10px;font-size:12px;min-height:30px;width:auto} #mobileVoice{display:none} @media(max-width:700px),(pointer:coarse) and (max-width:1024px){ html,body{height:auto;min-height:100dvh;overflow:auto} body{padding:10px;padding-bottom:max(12px,env(safe-area-inset-bottom));gap:10px} header{max-height:none;overflow:visible;align-items:flex-start} .brand{width:100%}.header-actions{margin:0;width:100%;gap:6px} .header-actions button,.header-actions select,.camera-toolbar button{min-height:44px} #mobileVoice{display:inline-flex;align-items:center} main{display:flex;flex-direction:column;flex:none;overflow:visible;min-height:0} main>.panel,.left-views{width:100%;flex:none;min-height:0;overflow:visible} .left-views>.camera{flex:none;min-height:220px} .video-wrap{min-height:180px;max-height:44dvh;aspect-ratio:4/3} .position{min-height:0} .position .board-space{flex:none;width:100%;height:clamp(300px,90vw,600px);min-height:300px} #board{width:100%;max-width:560px;margin:auto;aspect-ratio:1} .history{max-height:220px;overflow:auto!important} .camera-toolbar{flex-wrap:wrap} #siteFooter{flex-wrap:wrap;justify-content:center;line-height:1.6;flex:none} dialog{width:calc(100vw - 20px);max-width:600px;max-height:calc(100dvh - 24px)} #settingsDialog{width:calc(100vw - 12px);height:calc(100dvh - 24px)} #settingsDialog input,#settingsDialog select,#feedbackDialog textarea{font-size:16px} .source-choices{grid-template-columns:1fr} } #documentDialog{width:min(900px,96vw);height:min(850px,92dvh);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--panel-border);border-radius:16px;background:var(--panel-bg);color:var(--text);overflow:hidden} #documentDialog[open]{display:flex;flex-direction:column} .document-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:18px 24px;border-bottom:1px solid var(--panel-border);background:var(--panel-bg);max-height:none;overflow:visible} .document-header h2{font-size:20px;margin:0}.document-close{width:36px;height:36px;min-width:36px;padding:0;font-size:24px;line-height:1} .document-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 26px 32px;font-size:14px;line-height:1.65} .document-content h2{font-size:18px;margin:1.6em 0 .6em}.document-content h3{font-size:16px;margin:1.4em 0 .5em} .document-content p,.document-content li{color:var(--text);line-height:1.65}.document-content li{margin:.4em 0}.document-content a,#privacyDoc,#termsDoc{color:var(--accent-bg);text-decoration:underline;text-underline-offset:3px} .document-content nav{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.document-content nav a{padding:4px 8px;border-radius:6px;background:var(--secondary-bg)} .document-content .tip,.document-content .draft{background:var(--secondary-bg);color:var(--text);padding:12px 14px;border:1px solid var(--panel-border);border-radius:8px}.document-content .ph{background:var(--secondary-bg)} .document-content video{display:block;max-width:100%;margin:16px 0}.document-content img{max-width:100%} #settingsDialog .audio-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--panel-border);border-radius:12px} #settingsDialog .audio-section h4{grid-column:1/-1;margin:0 0 2px;font-size:15px;color:var(--accent-bg)} #settingsDialog .audio-section .toggle-row{grid-column:1/-1;padding:10px 12px;gap:6px 10px;grid-template-columns:18px minmax(0,1fr)} #settingsDialog .audio-section .toggle-row>input{width:16px;height:16px;min-height:0;align-self:center} #settingsDialog .audio-section .toggle-row>span{font-size:13px} #settingsDialog .audio-section .toggle-row>small{font-size:11px} #settingsDialog #voiceName:disabled{opacity:.45;cursor:not-allowed} #settingsDialog .audio-section #testVoice,#settingsDialog .audio-section #testSound{justify-self:start;align-self:start;width:auto;min-width:0;min-height:0;height:auto;padding:5px 9px;font-size:12px;line-height:1.3} #settingsDialog #privacyDoc,#settingsDialog #termsDoc{align-self:start;justify-self:start;font-size:13px} #mobileVoice{padding:5px 8px;font-size:12px} @media(max-width:620px){.document-header{padding:14px 16px}.document-content{padding:16px 18px 24px}#settingsDialog .audio-section{grid-template-columns:1fr;padding:12px}#documentDialog{width:calc(100vw - 12px);height:calc(100dvh - 24px)}#mobileVoice{min-height:34px}} #settingsDialog .audio-section label:has(#voiceName){grid-column:1/-1} #settingsDialog .audio-section #voiceName{grid-column:1;grid-row:2} #settingsDialog .audio-section #testVoice{grid-column:2;grid-row:2;align-self:center} @media(max-width:700px){header .brand{width:100%;min-width:0}header .brand-logo{width:36px;height:36px}header .brand h1{font-size:18px}header .brand p{display:none}header .header-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:0;gap:6px}header .header-actions>button,header .header-actions>select,header .header-actions>.support-button{width:100%;min-width:0;margin:0}header .header-actions button{padding:7px 5px;font-size:12px;white-space:nowrap}header .header-actions .icon-button{padding:6px;min-width:44px}header .header-actions #view2d,header .header-actions #view3d,header .header-actions #toggleCamera{min-height:44px}header .header-actions #newGame,header .header-actions #openLichess{grid-column:span 2}header .header-actions #toggleOccupancy{overflow:hidden;text-overflow:ellipsis}.camera-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:6px}.camera-toolbar .camera-icon{display:none}.camera-toolbar button{width:100%;min-width:0;padding-inline:5px}#baseline{width:100%;min-height:44px}} @media(max-width:700px){header .header-actions{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}header .header-actions #mobileVoice,header .header-actions #toggleOccupancy,header .header-actions #uiTheme{display:none!important}header .header-actions #view2d{grid-column:1;grid-row:1}header .header-actions #view3d{grid-column:2;grid-row:1}header .header-actions #toggleCamera{grid-column:3;grid-row:1}header .header-actions #openLichess{grid-column:4;grid-row:1}header .header-actions #newGame{grid-column:1/3;grid-row:2}header .header-actions #languagePicker{display:block;grid-column:3;grid-row:2;width:100%}header .header-actions #languagePicker .lang-current{display:inline-flex;width:100%;min-height:44px;justify-content:center;padding:6px}header .header-actions #openSettings{grid-column:4;grid-row:2}header .header-actions #openHelp{grid-column:1/3;grid-row:3}header .header-actions #openFeedback{grid-column:3/5;grid-row:3}header .header-actions #openHelp,header .header-actions #openFeedback{justify-content:center}.lang-picker .lang-current span{display:none}} @media(max-width:700px){body.app-fullscreen>header{max-height:none;min-height:max-content;overflow:visible}} .legal-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px} :root[data-theme="light"] .board3d-hint{background:#d2dfebed;color:#233548} :root[data-theme="light"] #initialSetupOverlay{background:#10182066;color:var(--text)} :root[data-theme="light"] .video-wrap>#detectionBusy{background:#d2dfebd9;color:var(--text)} .mobile-setup-dialog{width:min(480px,calc(100vw - 24px))} .mobile-setup-dialog .eyebrow{margin:0 0 5px}.mobile-setup-steps{display:grid;gap:12px;margin:18px 0 22px;padding:0;list-style:none;counter-reset:step}.mobile-setup-steps li{position:relative;display:grid;gap:3px;padding:12px 12px 12px 48px;border:1px solid var(--panel-border);border-radius:10px;background:var(--panel-bg);counter-increment:step}.mobile-setup-steps li::before{content:counter(step);position:absolute;left:12px;top:12px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--accent-bg);color:var(--accent-text);font-weight:800}.mobile-setup-steps span{font-size:12px;line-height:1.45;color:var(--text-dim)} .mobile-menu-dialog{width:min(420px,calc(100vw - 24px))}.mobile-menu-dialog form{padding:18px}.mobile-menu-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-menu-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px}.mobile-menu-actions button{min-height:44px;text-align:left} .mobile-experience #view2d,.mobile-experience #view3d,.mobile-experience .piece3d-settings,.mobile-experience #phoneCamera,.mobile-experience #phoneCameraFromOverlay{display:none!important} .mobile-experience .board-stage{grid-template-columns:minmax(0,1fr);width:min(100cqw,100cqh);height:min(100cqh,100cqw)}.mobile-experience #board{grid-column:1}.mobile-experience #moveFlash,.mobile-experience #gameResultOverlay{grid-column:1}.mobile-experience #turnIndicator{position:static;flex:none;width:14px;height:14px;margin:0 2px 0 0;order:-1}.mobile-experience .position>.heading{justify-content:flex-start}.mobile-experience .position>.heading .heading-actions{margin-left:auto} #mobileScan{display:none} .mobile-experience header .header-actions{display:grid;grid-template-columns:38px 32px minmax(72px,1fr) minmax(62px,.8fr) 38px;align-items:stretch;width:100%;margin:0;gap:4px} .mobile-experience header .header-actions>:where(:not(#languagePicker):not(#openSettings):not(#openHelp):not(#openLichess):not(#newGame)){display:none!important} .mobile-experience header .header-actions #languagePicker,.mobile-experience header .header-actions #openSettings,.mobile-experience header .header-actions #openHelp,.mobile-experience header .header-actions #openLichess,.mobile-experience header .header-actions #newGame{display:flex!important;align-items:center;justify-content:center;grid-row:1;grid-column:auto;min-width:0;min-height:44px;width:100%;margin:0;gap:4px} .mobile-experience header .header-actions #languagePicker{grid-column:1} .mobile-experience header .header-actions #openSettings{grid-column:5} .mobile-experience header .header-actions #openHelp{grid-column:2} .mobile-experience header .header-actions #newGame{grid-column:3;grid-row:1;font-size:12px;padding:6px 4px;white-space:nowrap} .mobile-experience header .header-actions #openLichess{grid-column:4;font-size:12px;padding:6px 4px} .mobile-experience #languagePicker .lang-current{width:100%;min-height:44px;justify-content:center} .mobile-experience #languagePicker .lang-current span{display:none} .mobile-experience .lang-menu{left:0;right:auto;max-width:calc(100vw - 24px)} .mobile-experience #leftViews{width:calc(100% + 20px);margin-inline:-10px} .mobile-experience .camera.panel{position:relative;height:auto;max-height:none;display:flex;flex-direction:column;padding:0;border-radius:0;overflow:hidden;min-height:0;flex:none} .mobile-experience .camera>.heading{padding:6px 10px;margin:0} .mobile-experience .video-wrap{position:relative;flex:none;transform:none;border-radius:0;max-height:none;min-height:0;aspect-ratio:auto;margin:0} .mobile-experience .video-wrap>#placeholder,.mobile-experience .video-wrap>#detectionBusy{transform:none} .mobile-experience .video-wrap.mobile-framing{touch-action:pan-y} .mobile-experience .camera-toolbar{position:relative;flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;margin:0;gap:10px} .mobile-experience .camera-toolbar>:not(#mobileScan):not(#mobileHide):not(#mobileDimScreen){display:none!important} .mobile-experience #mobileScan{display:block} .mobile-experience #camera,.mobile-experience #mobileScan,.mobile-experience #mobileHide{min-height:48px;font-size:14px;white-space:normal} #mobileHide{display:none} .mobile-experience #mobileHide{display:block} .mobile-experience #mobileDimScreen{min-height:48px;font-size:14px} body.mobile-experience #countdown{display:block;min-height:1.4em;font-size:13px;color:var(--text-dim)} .mobile-experience main>.camera-toolbar{grid-column:1/-1;grid-row:auto!important;padding:0} body.mobile-experience.mobile-hide-preview #leftViews,body.mobile-experience.mobile-hide-preview.lichess-mode #leftViews:not([hidden]){display:none!important} .mobile-experience .mobile-fade{animation:mobile-fade 2.8s ease-in-out infinite} @keyframes mobile-fade{0%,100%{opacity:1}50%{opacity:.4}} .mobile-experience #camera.coach-pulse{animation:mobile-fade 2.8s ease-in-out infinite!important} .mobile-experience #camera.active{animation:none!important} .mobile-experience #settingsDialog label:has(#pieceSet),.mobile-experience #settingsDialog label:has(#pieceScale){display:none!important} .mobile-experience .occupancy-overlay{pointer-events:none} .mobile-experience #board .piece-white,.mobile-experience #board .piece-black{display:flex;align-items:center;justify-content:center;width:90%;height:90%;transform:none;text-shadow:none} .mobile-piece{display:block;width:100%;height:100%;pointer-events:none} .mobile-experience .dragging-piece,.mobile-experience .moving-piece{transform-origin:center} #mobileOrientationPhoto{width:100%;height:auto;display:block;border-radius:8px} #initialPositionCheck{display:flex;gap:8px;align-items:flex-start;margin-top:12px;line-height:1.4}#initialPositionCheck[hidden]{display:none}#initialPositionCheck input{flex:none;margin-top:4px} .orientation-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px} .orientation-choices [data-side=top]{grid-column:2} .orientation-choices [data-side=left]{grid-column:1;grid-row:2} .orientation-choices [data-side=right]{grid-column:3;grid-row:2} .orientation-choices [data-side=bottom]{grid-column:2;grid-row:3} #mobileMoveChoices #proposal{display:flex;flex-wrap:wrap;gap:10px} #mobileMoveChoices button{min-height:48px;flex:1 1 100%} @media(prefers-reduced-motion:reduce){.mobile-experience .mobile-fade,.mobile-experience #camera.coach-pulse{animation:none!important}} .mobile-experience header .brand{width:100%;min-width:0} .mobile-experience header .brand h1{display:flex;align-items:baseline;gap:6px;white-space:nowrap} #mobileBrandSuffix{font-size:.75em;font-weight:500} .mobile-control-label{display:none} .mobile-experience .mobile-control-label{display:inline} .mobile-experience.app-fullscreen>header{max-height:none;overflow:visible} .mobile-experience.app-fullscreen main{display:flex;flex-direction:column;flex:none;overflow:visible} .mobile-experience #video::-webkit-media-controls{display:none!important} .mobile-experience header .header-actions #openHelp,.mobile-experience header .header-actions #openSettings,.mobile-experience #languagePicker .lang-current{border:0;background:transparent;box-shadow:none;padding:4px;color:var(--text)} .mobile-experience #openHelp .mobile-control-label{display:none} .mobile-document,body.mobile-experience{height:auto;min-height:100dvh;overflow:auto} .mobile-experience .position .board-space{flex:none;width:100%;height:clamp(300px,90vw,600px);min-height:300px} .mobile-experience #board{width:100%;height:100%;max-width:none;margin:0} .mobile-experience .position>.heading{padding-right:0!important} body.mobile-experience.lichess-mode #leftViews:not([hidden]){display:flex!important} body.mobile-experience.lichess-mode main{overflow:visible;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important} body.mobile-experience.lichess-mode #lichessControl{grid-column:auto!important;grid-row:auto!important;overflow:visible} body.mobile-experience.lichess-mode .position{display:flex;flex-direction:column;min-height:0;overflow:visible} body.mobile-experience .history,body.mobile-experience.lichess-mode .position>.history{max-height:none;flex:none;overflow:visible!important} body.mobile-experience.lichess-mode .position>.history{order:10} body.mobile-experience .history #history,body.mobile-experience.lichess-mode .position>.history #history{height:clamp(240px,38dvh,400px);min-height:240px;flex:none;overflow:auto;touch-action:pan-y} .mobile-document{touch-action:pan-y;overscroll-behavior-x:none} .mobile-experience input,.mobile-experience select,.mobile-experience textarea{font-size:16px} .mobile-experience .mobile-device-settings input[type=checkbox]{width:auto} .mobile-saving *,.mobile-dimmed *{animation:none!important;transition:none!important} .mobile-hide-preview #video,.mobile-hide-preview #overlay{visibility:hidden} .mobile-experience.mobile-hide-preview .position{grid-column:1/-1!important} #mobileScreenCurtain{position:fixed;inset:0;z-index:2147483647;width:100%;height:100dvh;border:0;border-radius:0;background:#000;color:#343434;font-size:14px;touch-action:manipulation} #mobileScreenCurtain[hidden]{display:none} .mobile-document,body.mobile-experience{width:100%;max-width:100%;overflow-x:hidden} .mobile-experience .video-wrap{touch-action:pan-y} .mobile-experience #mobileCameraClip{position:absolute;overflow:hidden;touch-action:none} .mobile-experience #board .square,.mobile-experience #board .draggable-piece{touch-action:pan-y} .mobile-experience input[type=range]{touch-action:none} .mobile-document:has(dialog[open]){overflow:hidden} .mobile-experience dialog#settingsDialog{position:fixed;inset:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));margin:0;width:auto;height:auto;max-width:none;max-height:none;box-sizing:border-box;overscroll-behavior:contain} .mobile-experience #settingsDialog .settings-modal{min-width:0;overflow:hidden} .mobile-experience #settingsDialog .settings-tabs{flex-wrap:wrap;overflow:hidden;gap:3px;padding:8px} .mobile-experience #settingsDialog .settings-tabs button{padding:7px 8px;font-size:12px;max-width:100%;white-space:normal} .mobile-experience #settingsDialog .settings-grid{overflow-x:hidden;overflow-y:auto;min-width:0;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:auto;padding:12px} .mobile-experience #settingsDialog .settings-pane,.mobile-experience #settingsDialog .piece3d-settings{grid-template-columns:minmax(0,1fr);min-width:0} .mobile-experience #settingsDialog .settings-grid label{min-width:0;padding:12px} .mobile-experience #settingsDialog .settings-pane>*{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere} .mobile-experience #settingsDialog .delayed-candidate-setting>.delayed-candidate-label{grid-column:2;grid-row:3;font-size:11px;color:var(--text-dim);font-weight:600} .mobile-experience #settingsDialog .delayed-candidate-setting>.delayed-candidate-time{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;grid-column:2;grid-row:4;width:100%} .mobile-experience #settingsDialog .delayed-candidate-time input{grid-column:1;grid-row:1;min-width:0;width:100%;margin:0} .mobile-experience #settingsDialog .delayed-candidate-time output{grid-column:2;grid-row:1;min-width:34px;text-align:right} .mobile-experience .delayed-candidate-setting.is-disabled .delayed-candidate-time{opacity:.55} #delayedCandidateProgress{display:grid;gap:6px;margin:4px 0 10px;text-align:center;color:var(--text,#e8f2ff);font-size:.92em} #delayedCandidateProgress>div{height:8px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--accent,#4aa3df) 22%,transparent);border:1px solid color-mix(in srgb,var(--accent,#4aa3df) 55%,transparent)} #delayedCandidateProgress i{display:block;height:100%;width:0;border-radius:inherit;background:var(--accent,#4aa3df);transition:width .08s linear} .mobile-experience #mobileOrientationDialog{box-sizing:border-box;width:calc(100vw - 24px);max-width:430px;height:min(760px,calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));max-height:none;overflow:hidden} .mobile-experience #mobileOrientationDialog form{box-sizing:border-box;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px;padding:12px;height:100%;min-height:0} .mobile-experience #mobileOrientationDialog h2{font-size:18px;margin:0} .mobile-experience #mobileOrientationDialog p{font-size:13px;margin:0} .mobile-experience #mobileOrientationPhoto{width:100%;height:100%;min-height:0;object-fit:contain} .mobile-experience #mobileOrientationDialog .orientation-choices{margin:0;gap:5px} .mobile-experience #mobileOrientationDialog .orientation-choices button{min-height:44px;padding:6px;font-size:13px} dialog#mobilePortraitGuard{position:fixed;inset:0;margin:0;border:0;border-radius:0;padding:24px;box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;background:var(--panel-bg);color:var(--text);text-align:center;align-content:center;touch-action:none} #mobilePortraitGuard p{font-size:20px} #mobileNeuralChoice{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;max-width:100%}#mobileNeuralInfo{overflow-wrap:anywhere} #cropsConsent:disabled{cursor:not-allowed}label:has(>#cropsConsent:disabled){opacity:.5;cursor:not-allowed} .mobile-experience header .header-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px} .mobile-experience header .header-actions #mobileQuickActions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;grid-column:1;grid-row:1;min-width:0;align-items:stretch} .mobile-experience header .header-actions #mobileQuickActions>:is(#languagePicker,#openHelp,#openSettings){grid-column:auto;grid-row:auto;width:100%;min-width:0;padding:3px;min-height:44px} .mobile-experience #mobileQuickActions .lang-current{padding:3px;min-width:0}.mobile-experience #mobileQuickActions .mobile-control-label{display:none} .mobile-experience header .header-actions #newGame{grid-column:2;grid-row:1}.mobile-experience header .header-actions #openLichess{grid-column:3;grid-row:1} body.mobile-experience>header{border:0;box-shadow:none;background:transparent;border-radius:0;padding:0} .mobile-experience header .header-actions{width:100%;margin-inline:0;gap:10px} .mobile-experience .camera-toolbar :is(#mobileScan,#mobileHide,#mobileDimScreen){white-space:normal;overflow-wrap:normal;line-height:1.15;padding:9px 5px;min-height:52px;font-size:clamp(11px,3.3vw,15px)} .owner-only{display:none!important} .video-wrap{transform:none} .video-wrap>#placeholder{transform:none} .video-wrap>#detectionBusy{transform:translate(-50%,-50%)} body:not(.mobile-experience) #mobileScan,body:not(.mobile-experience) #mobileHide{display:inline-flex;align-items:center;justify-content:center;min-height:36px} body:not(.mobile-experience) .camera-toolbar{display:none} body:not(.mobile-experience) #countdown{display:block;max-height:5em;overflow:auto} body:not(.mobile-experience) #proposal{max-height:30%;min-height:0} body:not(.mobile-experience) #proposal #delayedCandidateProgress{flex:1 0 100%} body:not(.mobile-experience) #mobileOrientationDialog{width:min(480px,calc(100vw - 24px))} body:not(.mobile-experience) #mobileOrientationPhoto{max-height:48dvh;object-fit:contain} .webcam-choice{display:grid;gap:8px;margin:12px 0} #webcamSelect{width:100%;max-width:100%;padding:8px} #settingsDialog .settings-grid label.delayed-candidate-setting>span.delayed-candidate-label{grid-column:2;grid-row:3} #settingsDialog .settings-grid label.delayed-candidate-setting>span.delayed-candidate-time{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;grid-column:2;grid-row:4;width:100%;min-width:0} #settingsDialog .delayed-candidate-time input{grid-column:1;grid-row:1;min-width:0;width:100%} #settingsDialog .delayed-candidate-time output{grid-column:2;grid-row:1;white-space:nowrap} .coming-soon{display:block;margin-top:3px} body.mobile-experience .history #history,body.mobile-experience.lichess-mode .position>.history #history{display:block;height:auto;min-height:0;max-height:clamp(180px,35dvh,360px);line-height:1.5;overflow-y:auto;margin:4px 0;padding-block:0;scrollbar-gutter:stable} body.mobile-experience #history li{margin:0;padding:0;min-height:0;break-inside:avoid;white-space:pre-wrap;font-variant-numeric:tabular-nums} #mobileReadyToast{position:fixed;z-index:10000;left:50%;top:50%;transform:translate(-50%,-50%);padding:18px 24px;border-radius:16px;background:#123c2f;color:#fff;box-shadow:0 8px 40px #0006;font-size:clamp(20px,6vw,30px);font-weight:750;text-align:center;white-space:nowrap;pointer-events:none;animation:ready-play-fade 2s linear forwards} @keyframes ready-play-fade{0%,45%{opacity:1}100%{opacity:0}}