/* ============================================================
   Archery Master — page-specific styles
   Shares the same panel/HUD/lives/gameover chrome pattern used on
   the Alphabet Gunfire page, so every game page reads consistently.
   ============================================================ */

.arc-wrap { position: relative; }

.ag-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.ag-sub { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 16px; }

/* ---- Intro panel ---- */
.arc-intro h2 { font-size: 21px; margin-bottom: 6px; }
.arc-rules {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.arc-rules li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}
.arc-rules li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

/* ---- Shared HUD chrome ---- */
.arc-stage-wrap { padding: 18px; }

.ag-hud {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.ag-hud-item { display: flex; flex-direction: column; line-height: 1.2; }
.ag-hud-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ag-hud-value { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); }

.arc-wind-value { display: inline-flex; align-items: center; gap: 4px; color: var(--purple); }
#arcWindArrow { display: inline-block; transition: transform 0.2s ease; }

.ag-lives { display: flex; gap: 4px; margin-left: 4px; }
.ag-life { width: 20px; height: 20px; color: var(--pink); transition: transform 0.2s ease, opacity 0.2s ease; }
.ag-life.lost { opacity: 0.18; transform: scale(0.7); color: var(--muted); }

.ag-icon-btn {
  margin-left: auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.ag-icon-btn:hover { border-color: var(--purple); }

.ag-quit {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
}
.ag-quit:hover { border-color: var(--purple); color: var(--purple); }

/* ---- Canvas ---- */
.arc-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 460;
  display: block;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: linear-gradient(180deg, #eef2ff 0%, #f7f5fb 55%, #eef7ef 100%);
  cursor: crosshair;
  touch-action: none;
}

.arc-hint {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .ag-life, #arcWindArrow { transition: none !important; }
}

/* ---- Game over (shared pattern) ---- */
.ag-gameover {
  position: fixed;
  inset: 0;
  background: rgba(20,21,43,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.ag-gameover[hidden] { display: none; }
.ag-gameover-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(20,21,43,0.25);
}
.ag-gameover-card h2 { font-size: 24px; margin-bottom: 10px; }
.ag-gameover-card p { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.ag-newbest { color: var(--pink); font-weight: 800 !important; }
.ag-gameover-actions { display: flex; gap: 10px; margin-top: 20px; }
.ag-gameover-actions .btn { flex: 1; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .ag-hud { gap: 14px; }
  .ag-hud-value { font-size: 16px; }
}
