/* Doodle Jump — notebook-paper aesthetic.
   Background: light cream + grid lines (drawn on canvas, not CSS, so
   they scroll with the camera).
   NEVER use bare `canvas {}` — confetti.js injects a global canvas. */

.app {
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
}

.dj-hud {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  justify-content: space-between;
  align-items: center;
}

.hud-cell {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 56px;
}

.hud-cell.hud-power[hidden] { display: none; }

.hud-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Patrick Hand', 'Caveat', 'Bradley Hand', cursive;
}

.hud-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.1;
  margin-top: 2px;
  font-family: 'Patrick Hand', 'Caveat', 'Bradley Hand', cursive;
}

.board-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  overflow: hidden;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
  isolation: isolate;
}

#canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #fbf6e8;
  border-radius: 18px;
  /* Subtle inner rim suggests notebook paper edge */
  box-shadow:
    inset 0 0 0 2px rgba(150, 130, 90, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
  touch-action: none;
  cursor: pointer;
}

body.dark #canvas {
  background: #1e1c18;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.04);
}

.toolbar {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  justify-content: center;
}
.toolbar .btn {
  flex: 1;
  max-width: 160px;
  font-family: 'Patrick Hand', 'Caveat', cursive, var(--font-system);
}

.dj-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
}
.dj-overlay[hidden] { display: none; }

.overlay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: 28px 32px;
  text-align: center;
  min-width: 240px;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.2));
}

.overlay-title {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.overlay-sub {
  font-family: 'Patrick Hand', 'Caveat', cursive;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

#daily-btn.active {
  background: var(--accent);
  color: white;
}
