.spanish-chess{--chess-cyan:#46e5f2;--chess-ink:#092c35;color:#f1f8f7;background:radial-gradient(ellipse at 5% 10%,#325c59 0,transparent 48%),linear-gradient(125deg,#20576a,#102d34);border:2px solid #437a80;border-radius:16px;overflow:hidden;padding:20px;isolation:isolate}.spanish-chess *{box-sizing:border-box}.spanish-chess h3{color:#ffe008;font:950 clamp(32px,5vw,60px)/1.1 system-ui,sans-serif;text-shadow:0 4px 0 #745918,0 7px 12px #0006;margin:10px 0 18px}.spanish-chess button,.chess-question button{background:linear-gradient(#5ad5e7,#158db1);color:#fff;border:1px solid #91e5ed;border-radius:12px;font-weight:800;padding:10px 16px;box-shadow:0 3px 0 #07536b;cursor:pointer}.spanish-chess button:hover,.chess-question button:hover{filter:brightness(1.1)}.spanish-chess button:focus-visible,.chess-question button:focus-visible{outline:3px solid #ffde35;outline-offset:2px}.spanish-chess .chess-secondary,.chess-question .chess-secondary{background:#245363;box-shadow:0 3px 0 #092e39}.chess-layout{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(210px,1fr);gap:24px}.chess-player{font-size:19px;letter-spacing:1px;font-weight:900;margin:0 0 15px}.chess-you{text-align:right;margin:16px 0 0;color:#fff}.chess-board-frame{padding:7px;background:#153b42;border:3px double #7b9995;box-shadow:0 8px 28px #00181f70}.chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:1}.spanish-chess .chess-square{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none;aspect-ratio:1;overflow:visible}.spanish-chess .chess-square.light{background:#c1c5b6}.spanish-chess .chess-square.dark{background:#467582}.spanish-chess .chess-square:disabled{opacity:1;cursor:default}.spanish-chess .chess-square.selected{background:#d8b741;outline:3px solid #ffe045;outline-offset:-3px}.spanish-chess .chess-square.last-move{box-shadow:inset 0 0 0 4px #ffe00855}.spanish-chess .chess-square.legal:after{content:'';position:absolute;width:26%;height:26%;background:#0c364a99;border:2px solid #d2fff5;border-radius:50%;pointer-events:none}.chess-piece{font-family:'DejaVu Sans','Arial Unicode MS','Segoe UI Symbol',serif;font-size:clamp(24px,5.1vw,65px);font-weight:400;line-height:1;filter:drop-shadow(3px 5px 2px #001b2990);pointer-events:none}.white-piece{color:#f8fbf2;-webkit-text-stroke:.6px #66757a;text-shadow:0 2px 0 #9ca9aa}.black-piece{color:#111b20;-webkit-text-stroke:.6px #051116;text-shadow:0 1px 0 #5c6e70}.chess-file,.chess-rank{position:absolute;font:700 11px system-ui;color:#fff;text-shadow:0 1px 3px #001f2d;pointer-events:none}.chess-file{bottom:2px;left:4px}.chess-rank{right:4px;top:2px}.chess-sidebar{text-align:center;display:flex;flex-direction:column;gap:12px;padding:0 4px}.chess-topic{color:#d7eced;font-size:14px;margin:0}.chess-instructions{border:1px solid #8dc6cf;border-radius:16px;padding:10px;background:#386871}.chess-instructions summary{font-weight:900;cursor:pointer}.chess-instructions p{text-align:left;font-size:14px;line-height:1.5}.chess-status{min-height:60px;background:#092f3e80;padding:12px;border-radius:12px;font-weight:650;margin:0;line-height:1.4}.chess-clock{padding:8px 10px 12px;background:linear-gradient(120deg,#12292b,#1b3b40);border:4px double #628b8c;box-shadow:0 4px 0 #071b22,inset 0 0 22px #0009;border-radius:8px}.chess-clock span{display:block;font-size:15px;letter-spacing:2px;font-weight:850;color:#c5d4d0}.chess-clock strong{display:block;color:#becfcf;font:800 clamp(32px,4vw,52px)/1.2 ui-monospace,monospace}.chess-clock.active{border-color:#5ce8f2;background:radial-gradient(ellipse,#2a6264,#0c2930)}.chess-clock.active strong{color:#49f1ff;text-shadow:0 0 18px #37e6f777}.chess-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.chess-welcome{max-width:900px;margin:auto;padding:36px 20px;text-align:center;background:radial-gradient(ellipse at 10% 55%,#d58c1966,transparent 40%),radial-gradient(ellipse at 90% 10%,#b5e5d533,transparent 55%)}.chess-welcome h3{font-size:clamp(65px,10vw,110px);letter-spacing:4px;margin-top:0}.chess-hero-pieces{font:clamp(60px,14vw,150px)/1.2 Georgia,serif;letter-spacing:14px;color:#eee9cf;text-shadow:4px 8px 0 #05232d,0 0 40px #ffc12f80;transform:rotate(-7deg);margin:10px 0 25px}.chess-eyebrow{letter-spacing:2px;font-size:12px;font-weight:850}.chess-settings{background:#f7faf8;color:#153b44;text-align:left;padding:22px;border-radius:20px;max-width:620px;margin:26px auto;box-shadow:0 8px 0 #072d3c}.chess-settings label{display:block;font-weight:750}.chess-settings strong{float:right}.chess-settings input[type=range]{display:block;width:100%;accent-color:#16a7d2;margin:24px 0 10px}.chess-level-labels{display:flex;justify-content:space-between;font-size:12px;margin-bottom:24px}.chess-difficulty-description{min-height:2.8em;margin:-12px 0 20px;color:#305560;font-size:14px;line-height:1.4}.chess-settings select{padding:8px;border-radius:7px;margin-left:12px}.spanish-chess .chess-start{font-size:22px;padding:17px 40px;border-radius:40px;text-transform:uppercase}.chess-question{max-width:min(580px,94vw);max-height:90vh;overflow:auto;background:#f4f8f6;color:#102f39;border:5px solid #49d8ee;border-radius:16px;padding:24px;box-shadow:0 20px 80px #0008}.chess-question::backdrop{background:#041920bb}.chess-question h3{font-size:24px;margin-top:4px}.chess-question label{display:block;margin:16px 0}.chess-question input{display:block;width:100%;font-size:18px;padding:12px;border:1px solid #427d8e;border-radius:7px;margin-top:8px}.chess-answer-choices{display:flex;flex-wrap:wrap;gap:8px}.chess-answer-choices button{font-weight:600}.chess-answer-choices [aria-pressed=true]{outline:3px solid #a98200;background:#17687e}.chess-accent-keys{display:flex;flex-wrap:wrap;gap:8px}.chess-accent-keys button{padding:7px 13px}.chess-feedback{line-height:1.5;color:#76491c;font-weight:650}.chess-question details{margin:12px 0}.chess-question .chess-actions{margin-top:18px}.spanish-chess details p{overflow-wrap:anywhere}@media(max-width:760px){.spanish-chess{padding:12px}.chess-layout{grid-template-columns:1fr;gap:18px}.chess-sidebar{display:grid;grid-template-columns:1fr 1fr}.chess-sidebar h3,.chess-sidebar .chess-topic,.chess-status,.chess-sidebar .chess-actions,.chess-instructions,.chess-sidebar>p,.chess-sidebar>details,.chess-sidebar>h4{grid-column:1/-1}.chess-piece{font-size:clamp(27px,8.3vw,65px)}.chess-clock strong{font-size:36px}.chess-player{font-size:15px}.chess-welcome{padding:15px 0}.chess-settings{padding:18px 12px}.chess-level-labels{font-size:10px}.chess-question{padding:18px}}@media(prefers-reduced-motion:reduce){.chess-hero-pieces{transform:none}}
@media(min-width:761px){.chess-layout{grid-template-columns:minmax(0,min(64%,calc(100svh - 185px))) minmax(210px,1fr)}}

.chess-review-feedback{background:#fff1cc;color:#503709;border:2px solid #e2b94c;border-radius:12px;padding:12px 14px;text-align:left;line-height:1.5;font-size:14px;margin:0;overflow-wrap:anywhere}@media(max-width:760px){.chess-review-feedback{grid-column:1/-1}}
.chess-check-alert{background:#fff1c2;color:#573600;border:3px solid #ffce3e;font-size:18px}.chess-result{position:fixed;text-align:center;overflow:hidden;padding:38px 28px}.chess-result h3{position:relative;font-size:30px;color:#123d49}.chess-winner{position:relative;font-size:23px;font-weight:900;color:#1c6c55}.chess-result .chess-actions{position:relative}.chess-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.chess-confetti i{position:absolute;left:var(--x);top:-25px;width:9px;height:22px;background:var(--color);border-radius:2px;animation:chess-party 3s var(--delay) ease-in infinite}@keyframes chess-party{to{transform:translateY(620px) rotate(620deg)}}@media(prefers-reduced-motion:reduce){.chess-confetti i{animation:none;top:calc(var(--x) * .5);transform:rotate(25deg)}}
