.snake-section { padding-top: 56px; padding-bottom: 72px; }
.snake-layout { display: grid; grid-template-columns: .72fr 1.5fr; gap: 64px; align-items: center; }
.snake-copy h2 { margin-top: 0; }
.snake-copy h2 span { color: var(--accent); }
.snake-copy > p:not(.section-label) { color: var(--muted); font-size: 15px; line-height: 1.9; }
.snake-instructions { display: grid; gap: 14px; margin-top: 28px; }
.snake-instructions > div { display: flex; align-items: flex-start; gap: 13px; }
.snake-input-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; background: #9af4de0a; border: 1px solid #9af4de18; border-radius: 10px; color: #9af4de; }
.snake-input-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.snake-instructions strong { display: block; color: #d4e0de; font-size: 12px; font-weight: 650; }
.snake-instructions small { display: block; margin-top: 3px; font-size: 11px; color: #8fa5ab; line-height: 1.7; }
.snake-note { margin-top: 24px; padding-left: 13px; border-left: 2px solid #9af4de30; color: #80959d; font-size: 11px; line-height: 1.9; }
.snake-card { min-width: 0; padding: 16px; background: linear-gradient(135deg, #15242a, #101a22 65%); border: 1px solid #30464a; border-radius: 20px; box-shadow: 0 26px 65px #0003; }
.snake-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 16px; }
.snake-scoreboard { display: flex; align-items: center; gap: 24px; }
.snake-scoreboard > div { display: grid; gap: 1px; }
.snake-scoreboard span { font-size: 8px; color: #8daba9; letter-spacing: 1.5px; font-weight: 650; }
.snake-scoreboard strong { font-family: ui-monospace, monospace; font-size: 23px; font-weight: 500; line-height: 1.3; color: #c4f5e5; }
.snake-actions { display: flex; gap: 7px; }
.snake-actions button { min-height: 35px; padding: 7px 11px; background: #ffffff03; color: #adc4c4; border: 1px solid #40575a; border-radius: 8px; font: inherit; font-size: 10px; cursor: pointer; }
.snake-actions button:hover:not(:disabled) { background: #9af4de0b; border-color: #9af4de66; color: #d8fff0; }
.snake-actions button:disabled { opacity: .35; cursor: default; }
.snake-arena { position: relative; overflow: hidden; border: 1px solid #9af4de15; border-radius: 12px; background: #09151a; }
#snake-canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; cursor: crosshair; touch-action: pan-y; }
#snake-canvas:focus-visible { outline: 2px solid #9af4de; outline-offset: -3px; }
.snake-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; background: #09151aab; backdrop-filter: blur(4px); text-align: center; }
.snake-overlay[hidden] { display: none; }
.snake-overlay-mark { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 2px; border: 1px solid #9af4de35; border-radius: 14px; color: #9af4de; background: #9af4de0b; font-size: 25px; }
.snake-overlay h3 { margin: 0; color: #e3f5ec; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.7px; }
.snake-overlay p { max-width: 260px; color: #9db6ba; margin: 0 0 7px; font-size: 12px; line-height: 1.7; }
.snake-start { min-height: 43px; border: 1px solid #baf7df; border-radius: 9px; background: #9af4de; color: #102e27; padding: 10px 25px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.snake-start:hover { background: #c2ffe9; }
.snake-start:focus-visible, .snake-actions button:focus-visible { outline: 2px solid #9af4de; outline-offset: 4px; }
.snake-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px 0; }
#snake-status { color: #8ca6a8; font-size: 10px; line-height: 1.8; }
.snake-status-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #9af4de; }
.snake-keyboard-hint { color: #6e878c; font-size: 9px; white-space: nowrap; }
.snake-touch-controls { display: none; align-items: center; justify-content: center; gap: 23px; padding-top: 15px; }
.snake-touch-controls > p { max-width: 155px; margin: 0; color: #8aa9aa; font-size: 11px; line-height: 1.8; }
#snake-joystick { position: relative; display: block; width: 112px; height: 112px; flex-shrink: 0; padding: 0; border: 1px solid #a8eadb25; border-radius: 50%; background: radial-gradient(circle, #28433d 0%, #182d2c 52%, #102222 54%, #152a29 72%); box-shadow: inset 0 2px 18px #0005; touch-action: none; user-select: none; -webkit-user-select: none; color: #709d94; cursor: grab; }
#snake-joystick:active { cursor: grabbing; }
#snake-joystick:focus-visible { outline: 2px solid #9af4de; outline-offset: 5px; }
#snake-joystick > span:not(.snake-knob) { position: absolute; font-size: 9px; line-height: 1; pointer-events: none; }
.snake-north { top: 10px; left: 50%; transform: translateX(-50%); }
.snake-south { bottom: 10px; left: 50%; transform: translateX(-50%); }
.snake-west { left: 10px; top: 50%; transform: translateY(-50%); }
.snake-east { right: 10px; top: 50%; transform: translateY(-50%); }
.snake-knob { position: absolute; inset: 50% auto auto 50%; width: 43px; height: 43px; margin: -21.5px 0 0 -21.5px; border: 1px solid #c2f1d965; border-radius: 50%; background: linear-gradient(140deg, #a8dcc7, #548b79); box-shadow: 0 5px 15px #0006, inset 0 1px #e8fff480; pointer-events: none; }
.snake-knob::after { content: ''; position: absolute; inset: 12px; border: 1px solid #17483a40; border-radius: 50%; }
@media (pointer: coarse), (hover: none) { .snake-touch-controls { display: flex; } .snake-keyboard-hint { display: none; } }
@media (max-width: 1000px) { .snake-layout { grid-template-columns: 1fr 1.5fr; gap: 30px; } }
@media (max-width: 760px) { .snake-layout { grid-template-columns: 1fr; gap: 25px; } .snake-section { padding-top: 36px; padding-bottom: 40px; } .snake-copy h2 br { display: none; } .snake-copy h2 { font-size: 31px; margin-bottom: 12px; } .snake-copy > p:not(.section-label) { font-size: 13px; } .snake-instructions { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; } .snake-note { margin-top: 18px; } .snake-touch-controls { display: flex; } .snake-keyboard-hint { display: none; } }
@media (max-width: 420px) { .snake-card { padding: 10px; border-radius: 15px; } .snake-toolbar { padding: 3px 2px 11px; } .snake-scoreboard { gap: 16px; } .snake-scoreboard strong { font-size: 20px; } .snake-scoreboard span { font-size: 7px; } .snake-actions button { padding: 6px 8px; min-height: 33px; font-size: 9px; } .snake-overlay { gap: 5px; padding: 14px; } .snake-overlay-mark { display: none; } .snake-overlay p { font-size: 10px; margin-bottom: 5px; } .snake-start { min-height: 38px; padding: 8px 20px; font-size: 11px; } .snake-input-icon { width: 31px; height: 31px; border-radius: 8px; } .snake-instructions > div { gap: 8px; } .snake-instructions strong { font-size: 10px; } .snake-instructions small { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .snake-section *, .snake-section *::before, .snake-section *::after { transition: none !important; scroll-behavior: auto !important; } }
