:root{color-scheme:dark;font-family:system-ui,Arial,sans-serif;background:#0b1220;color:#f8fafc}*{box-sizing:border-box}body{margin:0}main{width:min(96vw,570px);margin:0 auto;padding:12px 0 32px}header h1{margin:10px 0 2px;font-size:1.6rem}header p,.muted,footer{color:#aebbd1;font-size:.87rem}.lobby,.game{background:#151f30;padding:13px;border-radius:12px;margin:12px 0}.controls{display:flex;gap:8px;flex-wrap:wrap}.controls input{flex:1;min-width:120px;background:#0b1220;border:1px solid #546078;border-radius:8px;padding:11px;color:white;font-size:1rem;text-transform:uppercase}.controls button{background:#59b895;color:#071b15;border:0;border-radius:8px;padding:11px 13px;font-size:.95rem;font-weight:700;cursor:pointer}.actions button{flex:1}.top{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px;font-weight:650}.board{display:grid;grid-template-columns:repeat(8,1fr);border:3px solid #65758c;width:100%;aspect-ratio:1}.sq{position:relative;display:flex;justify-content:center;align-items:center;aspect-ratio:1;min-width:0;padding:0;border:0;cursor:pointer;font-family:"DejaVu Sans","Noto Sans Symbols 2",serif;font-size:clamp(24px,9vw,57px);line-height:1}.light{background:#f0d9b5}.dark{background:#b58863}.sq.sel{box-shadow:inset 0 0 0 5px #eab308}.sq.target::after{content:"";position:absolute;width:25%;height:25%;border-radius:50%;background:#167545a8}.sq.capture::after{width:85%;height:85%;background:transparent;border:5px solid #166534aa}.whitepiece{color:#fffef1;text-shadow:0 2px 2px #181818,-1px -1px 1px #191919,1px 1px 1px #191919}.blackpiece{color:#121318;text-shadow:0 1px 1px #eee}.history{white-space:pre-wrap;overflow-wrap:anywhere;color:#b5c2d7;line-height:1.7}.sq:focus-visible,button:focus-visible{outline:3px solid #facc15;outline-offset:-3px}footer{text-align:center;padding-top:10px}
