* { box-sizing: border-box; }
:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #eff6ff; background: #101827; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #254366 0, transparent 35%), radial-gradient(circle at 92% 90%, #3a2853 0, transparent 36%), #101827; }
button { font: inherit; cursor: pointer; }
.shell { max-width: 1150px; margin: auto; padding: 28px 24px 18px; }
.header { display: flex; align-items: end; flex-wrap: wrap; gap: 4px 28px; margin: 0 0 24px; }
.eyebrow { width: 100%; color: #88a6c8; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.075em; font-weight: 900; }
h1 span { color: #6ce2c4; }
.header nav { display: flex; flex-wrap: wrap; gap: 9px; margin-left: auto; padding-bottom: 5px; }
.header a { color: #bfd5ec; text-decoration: none; font-size: 12px; font-weight: 750; padding: 10px 12px; border: 1px solid #3c516b; border-radius: 9px; }
.header a:hover { background: #253b56; }
.game-layout { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 336px) minmax(190px, 1fr); gap: 20px; align-items: start; }
.panel { background: #18263b; border: 1px solid #37506c; border-radius: 16px; padding: 20px; box-shadow: 0 18px 36px #060c1880; }
.section-label { font-size: 11px; font-weight: 850; color: #74dfc3; letter-spacing: .17em; margin-bottom: 18px; }
.stat { border-bottom: 1px solid #33465f; padding-bottom: 13px; margin-bottom: 16px; }
.stat small, .preview small { display: block; color: #96acc5; font-size: 11px; font-weight: 800; letter-spacing: .15em; margin-bottom: 5px; }
.stat strong { font-size: clamp(22px, 3vw, 31px); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.split { display: flex; gap: 20px; }
.split .stat { flex: 1; }
.split .stat strong { font-size: 23px; }
.preview { min-height: 133px; border: 1px solid #3b536f; border-radius: 11px; padding: 10px 12px; background: #122034; }
.preview canvas { display: block; width: 120px; height: 90px; max-width: 100%; margin: auto; }
.preview kbd { float: right; }
.play-area { max-width: 336px; width: 100%; justify-self: center; border: 1px solid #52718b; padding: 10px; border-radius: 17px; background: #1d3047; box-shadow: 0 24px 55px #030916a8; }
.screen-top, .screen-bottom { display: flex; justify-content: space-between; padding: 6px 5px 12px; font-size: 11px; font-weight: 850; letter-spacing: .13em; color: #a9bed2; }
.screen-top span:first-child { color: #79e4c6; }
.screen-bottom { justify-content: center; padding: 12px 0 5px; }
.board-wrap { position: relative; width: 100%; background: #0d1726; border: 2px solid #5c7791; border-radius: 8px; overflow: hidden; }
#gameCanvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: #091525d9; text-align: center; }
.overlay[hidden] { display: none; }
.overlay-content { max-width: 250px; }
.mini-blocks { display: flex; gap: 3px; justify-content: center; margin-bottom: 24px; }
.mini-blocks i { width: 22px; height: 22px; border-radius: 4px; background: #6ce2c4; box-shadow: inset -4px -4px #239779, inset 3px 3px #aeffe7; }
.mini-blocks i:nth-child(2) { background: #ffcb75; box-shadow: inset -4px -4px #ca8847, inset 3px 3px #ffe6a9; }
.mini-blocks i:nth-child(3) { background: #9a9cf9; box-shadow: inset -4px -4px #6667b6, inset 3px 3px #c9caff; }
.mini-blocks i:nth-child(4) { background: #fc778b; box-shadow: inset -4px -4px #bf465e, inset 3px 3px #ffb9c4; }
.overlay small { color: #74dfc3; letter-spacing: .12em; font-size: 10px; font-weight: 850; }
.overlay h2 { font-size: 29px; letter-spacing: -.055em; margin: 12px 0; }
.overlay p { color: #c4d3e1; line-height: 1.55; font-size: 13px; margin: 0 0 24px; }
.overlay button { border: 0; border-radius: 10px; background: #71e8ca; color: #12312c; font-weight: 850; padding: 13px 18px; width: 100%; }
.overlay button span { float: right; }
.overlay button:hover { background: #a4ffe5; }
.guide .next { margin-bottom: 24px; }
.controls-label { margin-bottom: 11px; }
.control { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid #33465f; padding: 11px 0; color: #c6d6e8; font-size: 12px; }
kbd { display: inline-block; min-width: 24px; padding: 4px 5px; border: 1px solid #5b7390; border-radius: 5px; background: #263b55; color: white; text-align: center; font: 750 10px ui-sans-serif, system-ui; }
.restart { width: 100%; margin-top: 20px; padding: 12px; color: #e4f5ff; border: 1px solid #58728e; border-radius: 9px; background: #29435f; font-weight: 750; }
.restart:hover { background: #365576; }
.touch-controls { display: none; }
footer { text-align: center; color: #718ba8; font-size: 10px; font-weight: 850; letter-spacing: .2em; padding-top: 23px; }
footer span { color: #74dfc3; margin: 0 8px; }
@media (max-width: 780px) { .game-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 336px); } .guide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; } .guide .section-label, .guide .next, .guide .restart { grid-column: 1 / -1; } .guide .next { min-height: 100px; } }
@media (max-width: 560px) { .shell { padding: 16px 10px 24px; } .header { justify-content: center; text-align: center; } .header nav { margin: 12px auto 0; } .game-layout { display: flex; flex-direction: column; align-items: center; gap: 12px; } .stats { width: min(100%, 336px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; padding: 12px; } .stats .section-label { grid-column: 1 / -1; margin: 0 0 10px; } .stats .stat { margin: 0 0 8px; padding-bottom: 7px; } .stats .stat strong { font-size: 20px; } .stats .split { gap: 9px; } .stats .preview { grid-column: 1 / -1; min-height: auto; display: flex; align-items: center; justify-content: space-between; } .stats .preview canvas { height: 45px; width: 70px; margin: 0; } .play-area { width: min(100%, 336px); } .guide { display: none; } .touch-controls { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 430px; margin: 14px auto 0; } .touch-controls button { min-height: 46px; padding: 0; border: 1px solid #6482a0; border-radius: 8px; background: #294862; color: white; font-size: 22px; font-weight: 800; touch-action: manipulation; } .touch-controls button:active { background: #6ce2c4; color: #102c2a; } footer { padding-top: 18px; } }

.privacy-link{display:inline-block;margin-left:12px;color:inherit;text-decoration:underline;text-underline-offset:3px}
