/* ============================================================
   Mobile Axe — /play/ throw game
   ============================================================ */

.play-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--nav-h) 1fr;
  background:
    linear-gradient(180deg, rgba(15,26,20,0.9), rgba(15,26,20,0.95)),
    url("../../site-photos/axe-target-detail.jpg") center / cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.play-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(197, 140, 42, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(15, 26, 20, 0.4), transparent 70%);
  pointer-events: none;
}

.play-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  padding: 32px clamp(20px, 5vw, 80px) 56px;
  align-items: start;
}

.play-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.play-heading h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.play-heading p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 620px;
}

.play-stage {
  position: relative;
  background: linear-gradient(180deg, #1c2622, #0f1a14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  padding: 18px;
  box-shadow: var(--shadow-3);
}

/* ----- Mode picker strip ----- */
.play-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 8px;
  background: rgba(15, 26, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  align-items: stretch;
}
.play-mode-btn {
  appearance: none;
  flex: 1 1 150px;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 12px;
  display: grid;
  gap: 2px;
  text-align: left;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.play-mode-btn:hover {
  background: rgba(197, 140, 42, 0.08);
  border-color: rgba(197, 140, 42, 0.4);
  transform: translateY(-1px);
}
.play-mode-btn.is-active {
  background: linear-gradient(135deg, rgba(197, 140, 42, 0.25), rgba(31, 77, 51, 0.4));
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(197, 140, 42, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.play-mode-name {
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: #fff;
}
.play-mode-btn.is-active .play-mode-name { color: var(--gold-soft); }
.play-mode-meta {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.play-mode-bookcta {
  flex: 0 1 auto;
  min-width: 160px;
  padding: 9px 14px;
  border-radius: 10px;
  display: grid;
  gap: 2px;
  background: linear-gradient(135deg, var(--gold), #b07820);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--gold);
  font-weight: 800;
  letter-spacing: -0.005em;
  text-align: left;
  box-shadow: 0 8px 22px rgba(197, 140, 42, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  align-self: stretch;
}
.play-mode-bookcta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(197, 140, 42, 0.45);
}
.play-mode-bookcta span:first-child { font-size: 14px; }
.play-mode-bookcta-sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 26, 20, 0.7);
}

/* ----- Mode status pill (top-center over canvas) ----- */
/* NOTE: no backdrop-filter — it forces a full repaint of the animating
   canvas behind it on every cursor move, which tanks framerate. */
.play-mode-status {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 4;
  display: grid;
  gap: 2px;
  text-align: center;
  padding: 8px 16px;
  background: rgba(15, 26, 20, 0.92);
  border: 1px solid rgba(197, 140, 42, 0.35);
  border-radius: 999px;
  color: #fff;
  pointer-events: none;
  max-width: calc(100% - 24px);
  will-change: transform;
}
.play-mode-status-mode {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.play-mode-status-detail {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.play-mode-status.is-warning .play-mode-status-mode { color: #f3a877; }
.play-mode-status.is-success .play-mode-status-mode { color: #9cd6ad; }

/* ----- Kill shot call toggle (bottom-right over canvas) ----- */
.play-killshot-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 4;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 26, 20, 0.92);
  border: 1px solid rgba(46, 125, 74, 0.55);
  border-radius: 999px;
  color: #c4e6cf;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.play-killshot-toggle:hover { border-color: #4fa572; }
.play-killshot-toggle[aria-pressed="true"] {
  background: rgba(46, 125, 74, 0.85);
  color: #fff;
  border-color: #4fa572;
  box-shadow: 0 0 14px rgba(46, 125, 74, 0.6);
}
.play-killshot-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2e7d4a;
  box-shadow: 0 0 6px rgba(46, 125, 74, 0.8);
  border: 1px solid rgba(250, 247, 238, 0.6);
}
.play-killshot-toggle[aria-pressed="true"] .play-killshot-dot {
  background: #faf7ee;
  box-shadow: 0 0 8px rgba(250, 247, 238, 0.9);
}
.play-killshot-toggle[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.play-killshot-hint {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: none;
  font-size: 10.5px;
}

@media (max-width: 720px) {
  .play-mode-btn { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .play-mode-bookcta { flex: 1 1 100%; }
  .play-mode-status { font-size: 10px; padding: 6px 12px; }
  .play-killshot-toggle { font-size: 10.5px; padding: 6px 10px; }
  .play-killshot-hint { display: none; }
}

.play-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(540px, 62vh);
  background:
    repeating-linear-gradient(180deg, #6d4621 0px, #6d4621 6px, #5b3a1c 6px, #5b3a1c 12px);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: grab;
  touch-action: none;
  /* iOS — kill the elastic overscroll + tap highlight on the game */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: contain;
}
.play-canvas-wrap.is-dragging { cursor: grabbing; }
/* CRITICAL — touch-action does NOT inherit, so the canvas itself
   was letting Safari intercept drags as page scrolls. Set it here
   directly + on the canvas-positioned overlay button so the throw
   game actually receives pointer events on iPhone. */
.play-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(15, 26, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out-quint);
}
.play-overlay.open { opacity: 1; pointer-events: auto; }
.play-overlay-card {
  display: grid;
  gap: 10px;
  padding: 28px 32px;
  max-width: 460px;
}
.play-overlay-card h2 { color: #fff; font-size: 2rem; }
.play-overlay-card p { color: rgba(255, 255, 255, 0.86); }
.play-overlay-card .hero-actions { justify-content: center; margin-top: 8px; }

.play-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}
.play-hud strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.play-hud .play-hud-section { display: inline-flex; gap: 8px; align-items: center; }

.play-side {
  display: grid;
  gap: 16px;
}

.play-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  padding: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
}
.play-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.05rem; }
.play-card p, .play-card li { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; line-height: 1.55; }
.play-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.play-card .button { margin-top: 12px; width: 100%; }

@media (max-width: 900px) {
  .play-main { grid-template-columns: 1fr; padding-top: 24px; }
  .play-canvas-wrap { aspect-ratio: 4/3; }
}

/* ============================================================
   Game library section
   ============================================================ */

.game-library {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 64px) 80px;
  display: grid;
  gap: 36px;
  background:
    linear-gradient(180deg, rgba(15, 26, 20, 0.0), rgba(15, 26, 20, 0.55) 30%, rgba(15, 26, 20, 0.92) 100%),
    radial-gradient(ellipse at top right, rgba(197, 140, 42, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(31, 77, 51, 0.06), transparent 60%),
    var(--ink);
  color: #fff;
  position: relative;
  isolation: isolate;
}

.game-library-head {
  max-width: 880px;
  display: grid;
  gap: 14px;
}
.game-library-head h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.game-library-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold), #f1c87a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.game-library-head p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.55;
  max-width: 720px;
}

/* ------------------------------ Scoring legend ------------------------------ */

.scoring-legend {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(31, 77, 51, 0.32), rgba(15, 26, 20, 0.6)),
    radial-gradient(ellipse at 80% 30%, rgba(197, 140, 42, 0.12), transparent 60%);
  border: 1px solid rgba(197, 140, 42, 0.18);
  border-radius: var(--r-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.scoring-legend-target {
  display: grid;
  place-items: center;
}
.scoring-legend-target svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
}

.scoring-legend-copy h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.012em;
  margin: 4px 0 16px;
}

.scoring-legend-rings {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.scoring-legend-rings li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.scoring-legend-rings strong {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 2px;
}
.scoring-legend-rings span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}
.scoring-legend-rings em {
  font-style: normal;
  color: var(--gold-soft);
  font-weight: 700;
}

.ring-chip {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: #0f1a14;
}
.ring-chip.ring-1 { background: #faf7ee; }
.ring-chip.ring-3 { background: #1f4d33; color: #faf7ee; }
.ring-chip.ring-5 { background: #c58c2a; }
.ring-chip.ring-7 {
  background: #2e7d4a;
  color: #faf7ee;
  box-shadow: 0 0 0 3px rgba(46, 125, 74, 0.4);
}

.scoring-legend-fine {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* ------------------------------ Filter chips ------------------------------ */

.game-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  max-width: 100%;
}
.game-filter {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.game-filter:hover { color: #fff; }
.game-filter.is-active {
  background: var(--gold);
  color: var(--ink);
}
.game-filter .filter-count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-weight: 800;
}
.game-filter.is-active .filter-count {
  background: rgba(15, 26, 20, 0.18);
}

/* ------------------------------ Game grid ------------------------------ */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-card);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  transition:
    opacity 300ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    background 300ms ease,
    box-shadow 320ms ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top left, var(--game-accent, rgba(197,140,42,0.18)), transparent 60%);
  opacity: 0.5;
  z-index: -1;
}

.game-card[data-game-accent="forest"] { --game-accent: rgba(31, 77, 51, 0.32); }
.game-card[data-game-accent="gold"]   { --game-accent: rgba(197, 140, 42, 0.22); }
.game-card[data-game-accent="rust"]   { --game-accent: rgba(161, 72, 38, 0.22); }
.game-card[data-game-accent="steel"]  { --game-accent: rgba(48, 91, 110, 0.28); }

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 140, 42, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

/* Gold corner accent on hover */
.game-card::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0;
  transform: translate(-6px, -6px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.game-card:hover::after {
  opacity: 1;
  transform: none;
}

.game-card.is-hidden {
  display: none;
}

.game-card-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.game-card-target {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.game-card-target svg { width: 100%; height: 100%; display: block; }

.game-card-head h3 {
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -0.008em;
  margin: 4px 0 6px;
}

.game-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  line-height: 1.5;
  font-style: italic;
}
.game-tagline strong {
  color: var(--gold-soft);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  border: 1px solid currentColor;
}
.game-tag-1v1 { color: var(--gold-soft); background: rgba(31, 77, 51, 0.4); border-color: rgba(197, 140, 42, 0.4); }
.game-tag-tournament { color: #f3c5a3; background: rgba(161, 72, 38, 0.32); border-color: rgba(161, 72, 38, 0.5); }
.game-tag-team { color: #c8dde6; background: rgba(48, 91, 110, 0.4); border-color: rgba(48, 91, 110, 0.6); }
.game-tag-party { color: #f1c87a; background: rgba(197, 140, 42, 0.32); border-color: rgba(197, 140, 42, 0.55); }
.game-tag-accuracy { color: #a8d8b8; background: rgba(31, 77, 51, 0.4); border-color: rgba(46, 125, 74, 0.55); }

.game-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.game-stats li {
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.game-stats strong {
  display: block;
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1px;
}

.game-blurb {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  line-height: 1.55;
}

.game-best {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  border-left: 2px solid var(--gold);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  line-height: 1.45;
}
.game-best strong { color: var(--gold-soft); font-weight: 700; }

/* ------------------------------ Bottom CTA ------------------------------ */

.game-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(31, 77, 51, 0.55), rgba(15, 26, 20, 0.8)),
    radial-gradient(ellipse at 100% 100%, rgba(197, 140, 42, 0.18), transparent 60%);
  border: 1px solid rgba(197, 140, 42, 0.22);
  border-radius: var(--r-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.game-cta h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 8px 0 12px;
  letter-spacing: -0.012em;
}
.game-cta p { color: rgba(255, 255, 255, 0.82); margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; }
.game-cta p strong { color: var(--gold-soft); }
.game-cta-fine { color: rgba(255, 255, 255, 0.58) !important; font-size: 12.5px !important; font-style: italic; }
.game-cta-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.game-cta-actions .button { min-width: 220px; }

/* ------------------------------ Game card upgrades ------------------------------ */

/* Card head now wraps tags + lore */
.game-card-meta { display: grid; gap: 6px; min-width: 0; }
.game-card-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.game-lore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.game-lore::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 6px currentColor;
}
.game-lore[data-tone="forest"]::before { background: #4fa572; color: #4fa572; }
.game-lore[data-tone="gold"]::before { background: var(--gold); color: var(--gold); }
.game-lore[data-tone="rust"]::before { background: #d96b3f; color: #d96b3f; }
.game-lore[data-tone="steel"]::before { background: #6ea3ba; color: #6ea3ba; }

/* Skill dots inside stat cell */
.game-stats .game-skill-bar {
  display: inline-flex;
  gap: 3px;
  margin: 2px auto 3px;
  align-items: center;
  justify-content: center;
  width: max-content;
}
.game-stats .game-skill-bar i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.game-stats .game-skill-bar[data-skill="1"] i:nth-child(-n+1),
.game-stats .game-skill-bar[data-skill="2"] i:nth-child(-n+2),
.game-stats .game-skill-bar[data-skill="3"] i:nth-child(-n+3),
.game-stats .game-skill-bar[data-skill="4"] i:nth-child(-n+4) {
  background: var(--gold);
}
.game-card:hover .game-skill-bar[data-skill="1"] i:nth-child(-n+1),
.game-card:hover .game-skill-bar[data-skill="2"] i:nth-child(-n+2),
.game-card:hover .game-skill-bar[data-skill="3"] i:nth-child(-n+3),
.game-card:hover .game-skill-bar[data-skill="4"] i:nth-child(-n+4) {
  box-shadow: 0 0 8px rgba(197, 140, 42, 0.7);
}

/* "On record" stat line */
.game-record {
  margin: -4px 0 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.game-record-label {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(197, 140, 42, 0.1);
  border: 1px solid rgba(197, 140, 42, 0.22);
}

/* Expandable rules / how-it-plays */
.game-rules {
  margin: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}
.game-rules > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  list-style: none;
  user-select: none;
  transition: color 0.18s ease;
}
.game-rules > summary::-webkit-details-marker { display: none; }
.game-rules > summary::marker { content: ""; }
.game-rules > summary:hover { color: var(--gold-soft); }
.game-rules-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.game-rules[open] .game-rules-chevron { transform: rotate(180deg); }
.game-rules[open] > summary { color: var(--gold-soft); margin-bottom: 12px; }

.game-rules-body {
  display: grid;
  gap: 10px;
  animation: gameRulesFade 0.28s ease-out;
}
@keyframes gameRulesFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.game-rules-list {
  margin: 0;
  padding: 0 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
  display: grid;
  gap: 6px;
}
.game-rules-list li::marker {
  color: var(--gold);
  font-weight: 800;
}
.game-tip {
  margin: 2px 0 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(46, 125, 74, 0.2), rgba(31, 77, 51, 0.04));
  border: 1px dashed rgba(46, 125, 74, 0.42);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.game-tip strong {
  color: #c4e6cf;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  margin-right: 6px;
}

/* Card reveal animation */
.game-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease, border-color 0.3s ease;
}
.game-card.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .game-card { opacity: 1; transform: none; transition: none; }
}

/* Filter count visual upgrade */
.game-filter .filter-count {
  transition: background 0.18s ease, color 0.18s ease;
}

/* Random / surprise-me filter button */
.game-filter--random {
  margin-left: auto;
  border-color: rgba(197, 140, 42, 0.35);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.game-filter--random::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: surpriseDot 1.8s ease-in-out infinite;
}
@keyframes surpriseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
.game-filter--random:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 140, 42, 0.1);
}

/* Spotlight pulse when a card is randomly picked */
.game-card.is-spotlight {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  animation: gameSpotlight 1.8s ease-out;
}
@keyframes gameSpotlight {
  0%   { box-shadow: 0 0 0 0 rgba(197, 140, 42, 0.7); }
  50%  { box-shadow: 0 0 0 22px rgba(197, 140, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 140, 42, 0); }
}

/* ------------------------------ Match-me mini quiz ------------------------------ */

.game-matchme {
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(15, 26, 20, 0.72), rgba(31, 77, 51, 0.34)),
    radial-gradient(circle at 0% 100%, rgba(197, 140, 42, 0.22), transparent 60%);
  border: 1px solid rgba(197, 140, 42, 0.24);
  border-radius: var(--r-card);
  display: grid;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.game-matchme-head {
  display: grid;
  gap: 4px;
}
.game-matchme-head h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
}
.game-matchme-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13.5px;
  line-height: 1.5;
}
.matchme-row {
  display: grid;
  gap: 6px;
}
.matchme-row-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.52);
}
.matchme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.matchme-option {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.matchme-option:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-1px);
}
.matchme-option.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.matchme-result {
  margin: 0;
  padding: 14px 16px;
  background: rgba(46, 125, 74, 0.18);
  border: 1px dashed rgba(46, 125, 74, 0.42);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  display: none;
  animation: gameRulesFade 0.32s ease-out;
}
.matchme-result.is-visible { display: block; }
.matchme-result strong { color: var(--gold-soft); font-weight: 800; }
.matchme-result-label {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.matchme-result a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* ------------------------------ Mobile ------------------------------ */

@media (max-width: 880px) {
  .scoring-legend { grid-template-columns: 1fr; }
  .scoring-legend-target svg { max-width: 180px; }
  .game-cta { grid-template-columns: 1fr; }
  .game-cta-actions { flex-direction: row; flex-wrap: wrap; }
  .game-filter--random { margin-left: 0; }
}

@media (max-width: 560px) {
  .game-card-head { grid-template-columns: 60px minmax(0, 1fr); }
  .game-card-target { width: 60px; height: 60px; }
  .game-stats { grid-template-columns: repeat(2, 1fr); }
  .game-cta-actions .button { min-width: auto; flex: 1; }
  .game-lore { font-size: 9px; padding: 2px 7px; }
}

@media print {
  .nav, .play-shell .play-hero, .play-canvas-wrap, .play-toolbar, .play-card, .play-fab,
  .scoring-legend, .game-filters, .game-cta, .game-library-head, footer, .sticky-cta { display: none !important; }
  .game-grid { grid-template-columns: 1fr; gap: 18px; }
  .game-card { break-inside: avoid; opacity: 1 !important; transform: none !important; background: #fff !important; color: #111 !important; box-shadow: none; border: 1px solid #ccc; }
  .game-card * { color: #111 !important; }
  .game-rules:not([open]) > summary { display: none; }
  .game-rules { border-top-color: #ccc; }
  .game-tip { background: #f4f4ef !important; border-color: #999 !important; }
}

/* ====================================================================
   GAMES LIBRARY — V2 COMPACT LAYOUT
   The original cards were too verbose: blurb + on-record + rules +
   best-for all visible by default = each card 600-800px tall. With 9
   games that's 3-5 viewports of scrolling. This collapses the wordy
   parts behind the existing <details> toggle so the default view shows
   just header + stats + a CTA to expand.
==================================================================== */

/* Denser grid */
.game-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 14px !important;
}
.game-card {
  padding: 18px 18px 18px !important;
  gap: 10px !important;
  font-size: 13.5px;
}
.game-card-head { gap: 12px !important; }
.game-card-target { width: 56px !important; height: 56px !important; flex-shrink: 0; }
.game-card-target svg { width: 100% !important; height: 100% !important; }
.game-card-meta h3 {
  font-size: 17px !important;
  line-height: 1.18 !important;
  margin: 4px 0 2px !important;
}
.game-card .game-tagline {
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  margin: 0 !important;
}
.game-card .game-tag, .game-card .game-lore {
  font-size: 9.5px !important;
  padding: 2px 7px !important;
  letter-spacing: 0.1em !important;
}
.game-card .game-stats {
  font-size: 11px !important;
  gap: 8px !important;
  padding-top: 4px !important;
}
.game-card .game-stats li { font-size: 11px !important; }
.game-card .game-stats li strong {
  font-size: 14px !important;
  font-weight: 900 !important;
}

/* Hide the long-form copy by default — surface only when card is expanded */
.game-card .game-blurb,
.game-card .game-record,
.game-card .game-best {
  display: none;
}
.game-card.is-open .game-blurb,
.game-card.is-open .game-record,
.game-card.is-open .game-best,
.game-card .game-rules[open] ~ .game-blurb,
.game-card .game-rules[open] ~ .game-record,
.game-card .game-rules[open] ~ .game-best {
  display: block;
}
/* Since the rules <details> already exists, expand it AND show the prose
   when the user opens the rules — they get one click to see everything. */
.game-card:has(.game-rules[open]) .game-blurb,
.game-card:has(.game-rules[open]) .game-record,
.game-card:has(.game-rules[open]) .game-best {
  display: block;
  margin-top: 10px;
}
.game-card .game-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.game-card .game-record {
  font-size: 11.5px;
  padding: 8px 10px;
  margin-top: 6px !important;
}
.game-card .game-best {
  font-size: 11.5px;
  line-height: 1.45;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tighten the rules summary too */
.game-card .game-rules { margin-top: 4px !important; padding-top: 8px !important; }
.game-card .game-rules summary {
  font-size: 12.5px !important;
  padding: 6px 0 !important;
}
.game-card .game-rules-body {
  font-size: 12.5px !important;
  padding: 8px 0 0 !important;
}
.game-card .game-rules-list li {
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin-bottom: 4px !important;
}
.game-card .game-tip {
  font-size: 11.5px !important;
  padding: 8px 10px !important;
  margin-top: 8px !important;
}

/* Scoring legend — make it tighter horizontally too */
.scoring-legend {
  padding: 22px 24px !important;
  gap: 22px !important;
}
.scoring-legend-target { max-width: 180px !important; }
.scoring-legend-target svg { width: 100% !important; height: auto !important; }
.scoring-legend-copy h3 { font-size: 19px !important; margin-bottom: 10px !important; }
.scoring-legend-rings li {
  font-size: 13px !important;
  padding: 4px 0 !important;
  gap: 8px !important;
}
.scoring-legend-rings li strong { font-size: 13px !important; }
.scoring-legend-rings li span { font-size: 12px !important; line-height: 1.4 !important; }
.scoring-legend-fine { font-size: 12px !important; margin-top: 10px !important; }

/* Game library section padding tightened */
.game-library {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}
.game-library-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem) !important; margin-bottom: 8px !important; }
.game-library-head p { font-size: 14px !important; line-height: 1.5 !important; }
.game-filters { gap: 6px !important; padding: 14px 0 !important; }
.game-filter {
  padding: 7px 12px !important;
  font-size: 11.5px !important;
  border-radius: 999px !important;
}
.filter-count { font-size: 10px !important; padding: 1px 6px !important; }

/* iPhone — collapse the scoring legend stacked + cards full-width */
@media (max-width: 540px) {
  .scoring-legend { flex-direction: column !important; padding: 16px !important; gap: 12px !important; }
  .scoring-legend-target { max-width: 140px !important; }
  .game-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .game-card { padding: 14px !important; }
  .game-card-target { width: 48px !important; height: 48px !important; }
  .game-card-meta h3 { font-size: 15px !important; }
}
