:root {
  --bg1: #70c5ff;
  --bg2: #d4f1ff;
  --ink: #0d2238;
  --card: rgba(255,255,255,.72);
  --line: rgba(13,34,56,.2);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--ink);
}
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  max-width: 560px;
  margin: 0 auto;
}
.top, .hud, .help {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.top { display: flex; align-items: center; justify-content: space-between; }
.top h1 { margin: 0; font-size: clamp(1.05rem, 4.8vw, 1.5rem); letter-spacing: .06em; }
.btn {
  border: 1px solid #376a8f;
  background: #fff;
  color: #173b57;
  border-radius: 10px;
  font-weight: 700;
  padding: 7px 10px;
}
.hud { display: flex; gap: 8px; }
.chip { flex: 1; text-align: center; font-weight: 700; }
#game {
  width: 100%;
  height: 100%;
  min-height: 62svh;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #7ecfff 0%, #c4ebff 75%);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  touch-action: manipulation;
}
.help { text-align: center; font-size: 12px; }
