/* 한글날 미니게임 공용 틀 */
@font-face { font-family: 'Pretendard'; src: url('/fonts/PretendardVariable.woff2') format('woff2'); font-weight: 45 920; font-display: swap; }
@font-face { font-family: 'NanumBrush'; src: url('/fonts/NanumBrushScript-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root { --deep: #24372D; --sea: #315B46; --aqua: #8EBB8C; --sun: #E2B44F; --coral: #B64A42; --sand: #EFE1BE; --foam: #FFF9E9; --ink: #252119; --mute: #E6D7B5;
  --font: Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background-color: #E8D8B5; background-image: repeating-linear-gradient(3deg, rgba(78,58,34,.035) 0 1px, transparent 1px 6px), radial-gradient(circle at 12% 15%, rgba(255,255,255,.55), transparent 32%), radial-gradient(circle at 86% 80%, rgba(111,75,38,.08), transparent 38%); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; min-height: 100%; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
.sea-head { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 6px; border-top: 3px solid var(--coral); }
.sea-head a { color: #26392E; text-decoration: none; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; background: rgba(255,249,233,.72); border: 1px solid rgba(49,91,70,.28); }
.sea-head a img { width: 26px; height: 26px; }
.sea-head .sp { flex: 1; }
.sea-head .ttl { margin: 0; font: 400 25px/1 NanumBrush, var(--font); letter-spacing: 0; color: #4D2D22; }
.sea-wrap { display: flex; padding: 0 8px; }
.sea-stage { position: relative; flex: 1; height: calc(100dvh - 64px); min-height: 520px; max-width: 760px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  background: linear-gradient(#40634E, #2D4D3C 55%, #21392F); border: 1px solid rgba(63,86,57,.45); }
.sea-stage canvas { position: absolute; left: 0; top: 48px; width: 100%; height: calc(100% - 48px); display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.sea-honest { max-width: 760px; margin: 10px auto 0; padding: 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--mute); }
.sea-honest b { color: var(--foam); }
.sea-foot { max-width: 760px; margin: 8px auto 18px; padding: 0 14px; font-size: 11.5px; color: #8CC2D3; }
body.playing .sea-honest, body.playing .sea-foot { display: none; }
@media (max-width: 420px) { .sea-wrap { padding: 0 4px; } .sea-stage { border-radius: 16px; } }
