* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #0a4a76;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f172a;
  touch-action: none; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
.hidden { display: none !important; }

#hud { position: fixed; top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right)); display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none; z-index: 5; }
#score { background: rgba(255,255,255,.88); border-radius: 999px; padding: 6px 14px; font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); }
#score b { font-size: 17px; }
#score .sep { margin: 0 8px; opacity: .5; }
.btns { display: flex; gap: 8px; pointer-events: auto; }
button.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88);
  font-size: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; padding: 0; }
button.round.on { background: #facc15; }

#toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(15,23,42,.82); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 15px;
  z-index: 5; pointer-events: none; text-align: center; max-width: 90vw; }

.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8,47,73,.45); z-index: 10; padding: 16px; touch-action: manipulation; }
.card { background: #fffdf7; border-radius: 22px; padding: 22px 26px; max-width: 460px; width: 100%;
  text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.35); max-height: 100%; overflow: auto; touch-action: pan-y; }
.card.left { text-align: left; }
.card h1 { margin: 2px 0 4px; font-size: 40px; color: #0b5a8e; letter-spacing: .5px; }
.card h2 { margin: 4px 0 12px; color: #0b5a8e; }
.logo { font-size: 46px; line-height: 1; }
.sub { margin: 4px 0 10px; color: #475569; }
.rec { margin: 6px 0 14px; color: #334155; }
.big-num { font-size: 56px; font-weight: 800; margin: 0; color: #0f172a; }
.card ul { padding-left: 20px; margin: 0 0 14px; line-height: 1.45; font-size: 15px; }
.card li { margin-bottom: 6px; }
button.big, button.ghost { display: block; width: 100%; border: 0; border-radius: 14px; font-size: 19px;
  font-weight: 700; padding: 13px; margin-top: 10px; cursor: pointer; }
button.big { background: #f59e0b; color: #fff; box-shadow: 0 4px 0 #b45309; }
button.big:active { transform: translateY(2px); box-shadow: 0 2px 0 #b45309; }
button.ghost { background: #e2e8f0; color: #0f172a; font-weight: 600; font-size: 17px; }
#btnContinue { background: #16a34a; box-shadow: 0 4px 0 #166534; }
.ver { margin: 12px 0 0; font-size: 12px; color: #94a3b8; }
