* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #131016; color: #f7f0df; font-family: 'Exo', sans-serif; }
#game-shell { position: fixed; inset: 0; background: radial-gradient(circle at 50% 35%, #4d3140, #211725 58%, #09080e 100%); }
.GameHud { position: fixed; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 1.1rem 1.5rem; pointer-events: none; }
.GameHud h1 { margin: 0; font: 700 clamp(1.9rem, 5vw, 3rem) 'Orbitron', sans-serif; color: #fff3d1; text-shadow: 0 0 18px rgba(255, 192, 112, .35); }
#game-subtitle { margin: .25rem 0 0; color: #dfc8c4; }
.GameStats { display: flex; gap: 1rem; font-size: .75rem; text-transform: uppercase; color: #ead7d5; }.GameStats strong { color: #ffd36f; font-size: 1.05rem; }
.GameArea { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 7rem 1rem 3rem; }
.GameStatus { min-height: 1.4rem; margin: 0; color: #ffd38a; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; text-align: center; }
.GameStatus.is-finished { position: fixed; z-index: 40; top: 50%; left: 50%; width: min(34rem, calc(100vw - 2rem)); margin: 0; padding: 1.15rem 1.5rem; transform: translate(-50%, -50%); border: 2px solid #ffe18c; border-radius: 6px; background: rgba(20, 13, 25, .96); box-shadow: 0 0 0 9999px rgba(9, 8, 14, .58), 0 12px 40px rgba(0, 0, 0, .65), 0 0 28px rgba(255, 211, 111, .35); color: #fff3d1; font: 700 clamp(1.35rem, 4vw, 2rem) 'Orbitron', sans-serif; letter-spacing: .08em; pointer-events: none; animation: victory-reveal 320ms ease-out both; }
@keyframes victory-reveal { from { opacity: 0; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.VariantPicker { position: fixed; z-index: 4; top: 8.1rem; left: 50%; display: flex; gap: .7rem; align-items: center; justify-content: center; margin: 0; padding: .45rem .7rem; transform: translateX(-50%); border: 1px solid rgba(236,218,166,.5); border-radius: 6px; background: rgba(20, 13, 25, .9); color: #ead7d5; font-size: .72rem; white-space: nowrap; }
.VariantPicker legend { padding: 0 .35rem; color: #ffd36f; text-transform: uppercase; letter-spacing: .08em; }
.VariantPicker label { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; }.VariantPicker input { accent-color: #ffd36f; }
.Board { position: relative; width: min(720px, 94vw); aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); border: 8px solid #d09a64; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.Square { position: relative; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.05); }.light { background: #ead9b8; }.dark { background: #73454a; }
.Piece { width: 70%; height: 70%; border-radius: 50%; border: 3px solid rgba(255,255,255,.8); box-shadow: inset 0 5px 5px rgba(255,255,255,.22), 0 5px 10px rgba(0,0,0,.4); cursor: pointer; }.Piece.animating-source { visibility: hidden; }.Piece.pendingCapture { z-index: 1; outline: 4px solid #63f2d0; outline-offset: 2px; filter: grayscale(.7) brightness(1.2); box-shadow: inset 0 5px 5px rgba(255,255,255,.22), 0 0 18px rgba(99,242,208,.95); pointer-events: none; animation: captured-pulse 620ms ease-in-out infinite alternate; }.PieceAnimated { position: absolute; z-index: 20; width: 8%; height: 8%; margin: 0; pointer-events: none; cursor: default; }.black { background: #221d29; }.red { background: #da5b69; }.Piece.king::after { content: 'K'; display: grid; place-items: center; height: 100%; color: #ffe18c; font-weight: 900; }.Piece.selected { outline: 4px solid #ffe18c; outline-offset: 2px; }.Square.moveHint::after { content: ''; width: 25%; height: 25%; border-radius: 50%; background: #ffe18c; box-shadow: 0 0 12px #ffe18c; }
@keyframes captured-pulse { from { opacity: .62; } to { opacity: 1; } }
.GameLanguageToggle { position: fixed; z-index: 3; top: 1rem; right: 1.5rem; display: flex; gap: .35rem; margin-top: 3.2rem; }.GameLanguageToggle button, .GameControls button, .GameControls a { border: 1px solid rgba(236,218,166,.7); border-radius: 6px; background: rgba(10,8,14,.8); color: #fff2dc; padding: .5rem .75rem; font: 600 .72rem 'Exo', sans-serif; text-decoration: none; cursor: pointer; }.GameLanguageToggle button.active { background: #ffd36f; color: #241927; }
.GameControls { position: fixed; z-index: 2; right: 1.5rem; bottom: 1.25rem; display: flex; gap: .6rem; }.GameControls button:hover,.GameControls button:focus-visible,.GameControls a:hover,.GameControls a:focus-visible,.GameLanguageToggle button:focus-visible { outline: 2px solid #ffd36f; outline-offset: 3px; }
@media (max-width:700px) { .GameHud { padding: 1rem; }.GameStats { gap: .4rem; font-size: .62rem; }.GameArea { padding-top: 8rem; }.VariantPicker { top: 7.8rem; width: calc(100% - 2rem); min-width: 0; max-width: calc(100% - 2rem); gap: .5rem; justify-content: flex-start; overflow-x: auto; font-size: .65rem; scrollbar-width: thin; }.Board { border-width: 5px; }.GameLanguageToggle { left: 1rem; right: auto; bottom: 1rem; top: auto; margin: 0; }.GameControls { right: 1rem; bottom: 1rem; } }