* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #0b0b12; color: #e8e4d8; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
#hud { position: fixed; top: env(safe-area-inset-top, 0); left: 0; right: 0; text-align: center; pointer-events: none; padding-top: 12px; }
#hud-score { font-size: 40px; font-weight: 700; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
#hud-best { font-size: 12px; opacity: .7; margin-top: 4px; letter-spacing: .08em; }
#overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.panel { pointer-events: auto; background: rgba(11,11,18,.72); border-radius: 10px; padding: 24px 20px; width: min(88vw, 360px); text-align: center; }
h1 { font-size: 28px; letter-spacing: .06em; margin-bottom: 6px; }
.sub { font-size: 13px; opacity: .75; margin-bottom: 18px; line-height: 1.6; }
.best { font-size: 14px; opacity: .85; margin: 8px 0; }
.label { font-size: 12px; opacity: .7; letter-spacing: .1em; }
.big { font-size: 56px; font-weight: 700; line-height: 1.1; margin: 4px 0; }
.cta { font-size: 16px; margin: 18px 0 14px; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.row { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 8px; }
button { font: inherit; font-size: 14px; color: #e8e4d8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 10px 14px; min-height: 44px; min-width: 44px; cursor: pointer; }
button:active { transform: scale(.965); }
#btn-howto-close { margin-top: 14px; width: 100%; }
#howto-page { min-height: 150px; font-size: 15px; line-height: 1.7; }
#howto-page .pic { font-size: 44px; margin-bottom: 8px; }
#howto-dots span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); margin: 0 4px; }
#howto-dots span.on { background: #e8e4d8; }
#result-new { color: #f0ce7e; font-weight: 700; margin-left: 6px; }
#version { position: fixed; left: 8px; bottom: calc(env(safe-area-inset-bottom, 0) + 6px); font-size: 11px; opacity: .45; pointer-events: none; }
