.chess-live-screen{height:var(--app-height);width:100%;max-width:640px;margin:auto;background:radial-gradient(ellipse at 50% 15%,#39445455,transparent 65%),#080f17;color:#efe2c4;overflow:hidden}.chess-live-screen .game.world-chess{height:100%;width:100%;padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;justify-content:flex-start;gap:12px;overflow:hidden;position:relative}
.chess-nav{display:flex;justify-content:space-between;align-items:center;margin:0;gap:10px;flex:none}.chess-nav button{min-height:44px;font-size:14px;border:1px solid #b69861;border-radius:25px;padding:8px 12px;color:#edcf8e}.chess-nav strong{font-size:20px;letter-spacing:.04em;color:#ffe4a8;font-style:italic;white-space:nowrap}
.chess-task{flex:none;text-align:center}.chess-task-number{font-size:12px;letter-spacing:.2em;color:#bdac8c;margin:0 0 5px}.game.world-chess .chess-task h2{font-size:24px;color:#ffe1a3;font-weight:600;letter-spacing:0;margin:0 0 5px}.chess-objective{font-size:16px;margin:0;color:#d9dce1;line-height:1.35}
.chess-live-screen .game.world-chess .chessboard{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);aspect-ratio:1;width:min(100%,calc(var(--app-height) - 330px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));height:auto;max-width:460px;margin:0 auto;border:3px solid #ad8d58;flex:none;box-shadow:0 0 0 1px #e3c88e66,0 8px 24px #0008;overflow:hidden}
.chess-live-screen .square{position:relative;display:block;padding:0;min-width:0;min-height:0;border:0;border-radius:0;outline-offset:-3px;font-size:0;box-shadow:none;aspect-ratio:1;transition:background .1s;touch-action:manipulation;overflow:hidden;filter:none;text-shadow:none}.chess-live-screen .square.light{background:#d8c59f}.chess-live-screen .square.dark{background:#715d46}.chess-live-screen .square.selected{background:#b29c56;box-shadow:inset 0 0 0 3px #ffe4a0}.chess-live-screen .square.last-move{background:#a99360}.chess-live-screen .square.possible:after{content:'';position:absolute;inset:38%;border-radius:50%;background:#223f36aa;pointer-events:none}.chess-live-screen .square.possible:has(.chess-vector-piece:not([hidden])):after{inset:5%;border:3px solid #7fbd88;background:transparent}.chess-live-screen .square.checked{background:#af6555}
.chess-vector-piece{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;margin:0;border:0;pointer-events:none;filter:none}.chess-vector-piece[hidden]{display:none}.chess-live-screen .square small{position:absolute;top:2px;left:2px;color:#332c20;font-size:9px;font-weight:700;line-height:1;pointer-events:none}.chess-live-screen .square.dark small{color:#ece1c7}
.chess-feedback{flex:1;min-height:40px;max-height:88px;overflow:auto;align-content:center;font-size:14px;line-height:1.4;margin:0;padding:8px 12px;border:1px solid #b59c6044;border-radius:9px;background:#ffffff05;color:#e3ddcf;text-align:center}.chess-task-controls{display:flex;gap:8px;flex:none}.chess-task-controls button{flex:1;padding:8px 6px;min-height:44px;font-size:14px;border:1px solid #a48a56;border-radius:9px;color:#f5dcab;background:#151e2a}.chess-task-controls button:disabled{opacity:.35}.chess-live-screen .chess-success{left:16px;right:16px;top:25%;padding:22px;border-color:#e1c892;background:#0d1826fa;backdrop-filter:none}.chess-success p{font-size:16px;line-height:1.5}
@media(max-height:700px){.chess-live-screen .game.world-chess{gap:8px}.game.world-chess .chess-task h2{font-size:20px}.chess-task-number{display:none}.chess-live-screen .game.world-chess .chessboard{width:min(100%,calc(var(--app-height) - 350px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))}.chess-feedback{font-size:14px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.chess-live-screen .square{transition:none}}
