/* Daily Holes — Notebook Graph-Paper Golf Styles (extends /extraplot/extraplot.css) */

.dh-stage {
  margin: 18px 0 28px;
  border: 2px dashed rgba(31, 41, 55, 0.34);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.dh-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dh-modes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dh-mode-btn,
.dh-club-btn {
  font-family: 'Patrick Hand', cursive, sans-serif;
  font-size: 0.96rem;
  min-height: 44px;
  border: 1.8px solid rgba(31, 41, 55, 0.28);
  background: #fffdf8;
  color: #1f2937;
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.dh-mode-btn:hover,
.dh-club-btn:hover {
  transform: translateY(-1px);
  border-color: #1f2937;
}

.dh-mode-btn.is-active,
.dh-club-btn.is-active {
  background: #1f2937;
  color: #f9fafb;
  border-color: #1f2937;
}

.dh-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dh-pill {
  font-family: 'Patrick Hand', cursive, sans-serif;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 41, 55, 0.2);
  background: #f5f0e8;
  color: #1f2937;
}

.dh-pill strong {
  color: #15803d;
}

.dh-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  border: 2px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f0e8;
  touch-action: none;
  cursor: crosshair;
}

.dh-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dh-banner {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  background: rgba(31, 41, 55, 0.92);
  color: #fffdf8;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Patrick Hand', cursive, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dh-banner[hidden] {
  display: none;
}

.dh-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.dh-clubs { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.dh-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.dh-nudge-btn {
  font-family: 'Patrick Hand', cursive, sans-serif;
  font-size: 0.95rem;
  min-height: 44px;
  border: 1.6px solid rgba(31, 41, 55, 0.3);
  background: #f5f0e8;
  color: #1f2937;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

.dh-primary-btn {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  min-height: 44px;
  border: 2px solid #14532d;
  background: #15803d;
  color: #fffdf8;
  border-radius: 10px;
  padding: 6px 18px;
  cursor: pointer;
  min-width: 138px;
}

.dh-primary-btn:hover { background: #166534; }
.dh-primary-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.dh-secondary-btn {
  font-family: 'Patrick Hand', cursive, sans-serif;
  font-size: 0.96rem;
  min-height: 44px;
  border: 1.8px solid rgba(31, 41, 55, 0.32);
  background: #fffdf8;
  color: #1f2937;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
}

.dh-telemetry {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.dh-stat {
  border: 1.5px dashed rgba(31, 41, 55, 0.24);
  border-radius: 10px;
  background: #f9f6ef;
  padding: 8px 10px;
  text-align: center;
}

.dh-stat-k {
  display: block;
  font-size: 0.78rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dh-stat-v {
  display: block;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2px;
}

.dh-scorecard-wrap { margin-top: 12px; overflow-x: auto; min-height: 100px; }

.dh-scorecard {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fffdf8;
}

.dh-scorecard th,
.dh-scorecard td {
  border: 1px solid rgba(31, 41, 55, 0.22);
  padding: 5px 7px;
  text-align: center;
  white-space: nowrap;
}

.dh-scorecard th {
  background: #f5f0e8;
  font-weight: 700;
}

.dh-hole-pick {
  font: inherit;
  min-width: 30px;
  min-height: 36px;
  background: none;
  border: 0;
  color: #15803d;
  text-decoration: underline;
  cursor: pointer;
}

.dh-scorecard td.is-current {
  background: #fef3c7;
  font-weight: 700;
}

.dh-scorecard td.is-under {
  color: #15803d;
  font-weight: 700;
}

.dh-scorecard td.is-over {
  color: #b91c1c;
  font-weight: 700;
}

.dh-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border: 2px solid #15803d;
  border-radius: 12px;
  background: #f0fdf4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dh-summary[hidden] { display: none; }

.dh-summary-text {
  margin: 0;
  font-size: 1rem;
  color: #14532d;
}

@media (max-width: 720px) {
  .dh-stage {
    padding: 12px;
  }
  .dh-canvas-wrap {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }
  .dh-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dh-primary-btn {
    flex: 1 1 140px;
  }
}
