/* ============================================================================
   ACE — daily hole-in-one golf. Game-specific styles only; page chrome
   (.topbar/.brand/.btn/.sheet/.dots/.share-grid/.score-num/.stat) is base.css.
   Art direction: TV BROADCAST REALISM. The chrome leans into a sunlit, premium
   broadcast feel — a thin "scoreboard" HUD over a framed canvas "feed".
   ============================================================================ */

#stage {
  display: block;
}

/* ---- the broadcast HUD bar above the feed ---- */
.golf-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--r) var(--r) 0 0;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, var(--surface)), var(--bg-2));
  position: relative;
  overflow: hidden;
}
/* thin accent rule under the hud, broadcast lower-third feel */
.golf-hud::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.65;
}
.golf-hud .hud-pin {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.golf-hud .hud-pin .wind {
  color: var(--ink-dim);
  font-weight: 500;
}
.golf-hud .hud-closest {
  text-align: right;
  white-space: nowrap;
}
.golf-hud .hud-closest .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  line-height: 1;
}
.golf-hud .hud-closest .val {
  font-size: 1.12rem;
  color: var(--accent);
  line-height: 1.1;
}

/* ---- the canvas "broadcast feed" frame ---- */
.golf-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r);
  overflow: hidden;
  background: #0a1410;
  box-shadow: var(--shadow);
  line-height: 0;
}
.golf-frame canvas {
  display: block;
  width: 100%;
  height: 380px; /* JS overrides per dpr/clientWidth */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
/* a faint vignette over the feed for that lensed broadcast look */
.golf-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 60px -10px rgba(0, 0, 0, 0.55);
}

/* feed flash feedback (ace / water) */
.golf-frame.flash-ace canvas { animation: feedAce 0.55s var(--ease); }
.golf-frame.flash-bad canvas { animation: feedBad 0.5s var(--ease); }
@keyframes feedAce {
  0% { filter: brightness(1.8) saturate(1.3); }
  100% { filter: none; }
}
@keyframes feedBad {
  0% { filter: brightness(0.7) saturate(0.6); }
  100% { filter: none; }
}

/* ---- shot pips + prompt + big control button ---- */
.golf-controls {
  margin-top: 14px;
}
.golf-pipline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.golf-pipline .dots { flex: 0 0 auto; }
.golf-pipline .shotlabel {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.gprompt {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.98rem;
  min-height: 1.5em;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.gprompt b { color: var(--ink); font-weight: 700; }
.gprompt.is-ace { color: var(--accent); font-weight: 700; }
.gprompt.is-bad { color: var(--bad); font-weight: 700; }

.bigbtn {
  /* inherits .btn .btn-primary .btn-block from base.css; this just tunes size */
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  height: 54px;
}

/* the legend / help strip under the button */
.golf-help {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
.golf-help .free-chip {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--warn);
  border: 1px solid color-mix(in oklab, var(--warn) 40%, transparent);
  border-radius: var(--r-pill);
  padding: 3px 11px;
}

/* ============================================================================
   RESULT SHEET CONTENTS (the .sheet shell is base.css)
   ============================================================================ */
.sheet-head {
  text-align: center;
  margin-bottom: 16px;
}
.sheet-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.sheet-headline.ace { color: var(--accent); text-shadow: 0 0 28px var(--accent-glow); }
.sheet-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.sheet .share-grid {
  text-align: center;
  margin: 16px 0 4px;
  font-size: 1.5rem;
  line-height: 1.5;
}
.sheet .share-grid .share-title {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.sheet .share-grid .share-best {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  margin-top: 6px;
}

.golf-legend {
  margin: 14px 0 4px;
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.7;
  text-align: center;
}

.sheet .stats { margin: 18px 0; }

.sheet-count {
  text-align: center;
  margin: 4px 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
}
.sheet-count b { color: var(--accent); font-variant-numeric: tabular-nums; }

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sheet-actions .btn-primary { grid-column: 1 / -1; }

@media (max-width: 360px) {
  .sheet-headline { font-size: 2.4rem; }
  .golf-hud .hud-pin { font-size: 0.72rem; }
}
