:root { font-family: ui-rounded, system-ui, -apple-system, sans-serif; color: #362713; background: #fff9e7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #fff2bb, transparent 35%), #fff9e7; }
main { max-width: 1120px; margin: auto; padding: 28px 24px 38px; }
header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.065em; margin: 0 0 12px; }
h1 span { font-size: .75em; }
header p { margin: 0; font-size: 1.05rem; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .17em; color: #98792a; margin-bottom: 12px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: white; border: 2px solid #e9d9a5; border-radius: 18px; padding: 12px 16px; white-space: nowrap; box-shadow: 0 5px 0 #eddfb9; }
#status-dot { height: 10px; width: 10px; border-radius: 50%; background: #d49b35; }
.status.online #status-dot { background: #48ac66; }
#count { padding-left: 12px; margin-left: 4px; border-left: 1px solid #decfa3; }
.game-panel { position: relative; padding: 10px; border: 3px solid #6b4c22; border-radius: 25px; background: #e6c65a; box-shadow: 0 12px 0 #bc914b, 0 22px 40px #9f793037; }
canvas { width: 100%; height: auto; display: block; border-radius: 15px; background: #f2d877; touch-action: none; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; }
footer p { color: #746447; font-size: .9rem; max-width: 350px; }
form { display: flex; align-items: center; gap: 9px; }
label { font-weight: 750; white-space: nowrap; }
input { min-width: 0; width: 180px; padding: 10px 12px; border: 2px solid #b3995d; border-radius: 10px; background: white; font: inherit; }
button { cursor: pointer; background: #ffcf48; border: 2px solid #6b4c22; border-radius: 10px; padding: 10px 15px; color: inherit; font: inherit; font-weight: 800; }
button:hover { background: #ffe082; }
button:focus-visible, input:focus-visible { outline: 3px solid #4a8dff; outline-offset: 2px; }
#touch-controls { position: absolute; right: 20px; bottom: 20px; display: none; flex-direction: column; align-items: center; gap: 4px; opacity: .9; }
#touch-controls div { display: flex; gap: 4px; }
#touch-controls button { width: 46px; height: 44px; padding: 0; touch-action: none; user-select: none; }
@media (pointer: coarse) { #touch-controls { display: flex; } }
@media (max-width: 700px) { main { padding: 18px 12px 28px; } header, footer { align-items: start; flex-direction: column; } .status { align-self: stretch; } footer { gap: 3px; } .game-panel { padding: 5px; border-radius: 15px; } canvas { border-radius: 8px; } }
