* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, #fdfbf5 0%, #e9f7f1 100%);
  color: #33413c;
  min-height: 100vh;
}
.site-header {
  display: flex; align-items: center; gap: 14px;
  max-width: 560px; margin: 0 auto; padding: 20px 16px 6px;
}
.header-icon { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid #bfe8dd; background: #fff; }
.site-header h1 { margin: 0; font-size: 1.65rem; letter-spacing: .02em; }
.tagline { margin: 4px 0 0; color: #6b7f78; font-size: .92rem; }
main { max-width: 560px; margin: 0 auto; padding: 10px 14px 30px; }
.game-card {
  background: #fff; border-radius: 20px; padding: 16px 14px 12px;
  box-shadow: 0 8px 28px rgba(80, 140, 120, .14);
}
.hud { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.hud-item { background: #f0faf6; border-radius: 12px; padding: 6px 10px; font-weight: 700; font-size: 1rem; min-width: 70px; text-align: center; }
.hud-label { display: block; font-size: .68rem; color: #7a9189; font-weight: 600; }
.battery-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.battery-label { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.battery-bar { flex: 1; height: 18px; background: #e6efec; border-radius: 999px; overflow: hidden; border: 2px solid #cfe6dd; }
#battery-fill { height: 100%; width: 50%; background: linear-gradient(90deg, #ffd66e, #7fe0b2); border-radius: 999px; transition: width .15s ease; }
#battery-num { font-weight: 700; min-width: 44px; text-align: right; }
.combo { min-height: 1.3em; text-align: center; margin: 8px 0 2px; color: #e08a00; font-weight: 700; }
.canvas-wrap { position: relative; margin-top: 6px; }
canvas {
  display: block; width: 100%; height: auto; border-radius: 16px;
  background: linear-gradient(180deg, #26355e 0%, #3d5a80 55%, #79a6a0 100%);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.overlay {
  position: absolute; inset: 0; border-radius: 16px;
  background: rgba(24, 34, 58, .72); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; gap: 10px;
}
.overlay.hidden { display: none; }
.overlay-title { font-size: 1.35rem; font-weight: 800; margin: 0; }
.overlay-text { margin: 0; line-height: 1.7; font-size: .95rem; }
.overlay-sub { margin: 0; font-size: .8rem; opacity: .85; }
#start-btn {
  background: #ffd66e; color: #5b4300; border: none; border-radius: 999px;
  font-size: 1.1rem; font-weight: 800; padding: 13px 34px; cursor: pointer;
  box-shadow: 0 4px 0 #d9a92f;
}
#start-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #d9a92f; }
.controls-row { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.mini-btn {
  background: #eef6f3; border: 2px solid #cfe6dd; color: #33413c;
  border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer;
}
.hint-text { text-align: center; color: #7a9189; font-size: .82rem; margin: 10px 0 4px; }
.ad-slot { min-height: 0; margin: 18px 0; text-align: center; }
.text-section { background: #fff; border-radius: 20px; padding: 20px 22px; margin-top: 18px; box-shadow: 0 8px 28px rgba(80,140,120,.10); line-height: 1.85; }
.text-section h2 { font-size: 1.2rem; margin: 22px 0 8px; }
.text-section h2:first-child { margin-top: 0; }
.text-section h3 { font-size: 1rem; margin: 16px 0 4px; }
.text-section p, .text-section ul { margin: 6px 0; }
.text-section a { color: #1d8a68; font-weight: 700; }
.site-footer { text-align: center; color: #8aa39a; font-size: .8rem; padding: 18px 10px 28px; }
@media (max-width: 480px) {
  .site-header h1 { font-size: 1.35rem; }
  .hud-item { min-width: 62px; font-size: .92rem; padding: 5px 7px; }
}
