/* Nine Lanterns Studio — welcome / game select
   Self-contained; no external fonts or CDNs. */

:root {
  --bg-deep: #070605;
  --bg: #0c0a08;
  --ink: #f3e6c8;
  --ink-muted: #c4b08a;
  --ink-dim: #8a7a5c;
  --gold: #e0b45a;
  --gold-bright: #f0d48a;
  --gold-soft: rgba(224, 180, 90, 0.18);
  --glow: rgba(232, 170, 64, 0.35);
  --panel: rgba(18, 14, 10, 0.72);
  --stroke: rgba(224, 180, 90, 0.28);
  --stroke-strong: rgba(224, 180, 90, 0.55);
  --danger-soft: rgba(90, 40, 60, 0.25);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --focus: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, rgba(90, 55, 18, 0.28), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(20, 10, 5, 0.9), transparent 55%),
    #050403;
  background-color: var(--bg-deep);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--gold);
  color: #1a1208;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus);
}

/* Ambient lantern atmosphere */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  inset: -10%;
  background:
    url("assets/images/lantern-glow-bg.webp") center 40% / cover no-repeat,
    radial-gradient(circle at 50% 45%, rgba(200, 140, 50, 0.22), transparent 55%);
  opacity: 0.55;
  filter: saturate(1.05);
  animation: glow-breathe 8s ease-in-out infinite;
}

.ambient__motes {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(240, 210, 140, 0.45), transparent),
    radial-gradient(1px 1px at 70% 55%, rgba(240, 210, 140, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 40% 75%, rgba(240, 210, 140, 0.28), transparent),
    radial-gradient(1px 1px at 85% 25%, rgba(240, 210, 140, 0.3), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(240, 210, 140, 0.22), transparent);
  opacity: 0.55;
  animation: mote-drift 22s linear infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.48; transform: scale(1); }
  50% { opacity: 0.62; transform: scale(1.03); }
}

@keyframes mote-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-18px); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__glow,
  .ambient__motes,
  .enter-btn__glow {
    animation: none !important;
  }
  .panel {
    transition: none !important;
  }
}

/* Mute control */
.mute-btn {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(12, 10, 8, 0.72);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.mute-btn:hover,
.mute-btn:focus-visible {
  border-color: var(--stroke-strong);
  background: rgba(24, 18, 12, 0.9);
  color: #fff4d4;
}

.mute-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.mute-btn[aria-pressed="true"] {
  color: var(--ink-muted);
}

/* Stage / panels */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  padding-top: clamp(3.5rem, 8vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 5vw, 3rem);
}

.panel {
  width: min(920px, 100%);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    visibility 0.55s;
}

.panel[hidden] {
  display: block !important; /* keep for transition; visibility handled below */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.985);
  position: absolute;
  width: min(920px, calc(100% - 2.5rem));
}

.stage[data-view="welcome"] .panel--games[hidden],
.stage[data-view="games"] .panel--welcome[hidden] {
  /* already styled */
}

.stage[data-view="games"] .panel--games {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
  transform: none;
}

/* Welcome */
.welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.75rem, 2vw, 1.15rem);
}

.logo-plate {
  /* Plate cream/glow is baked into the PNG with feathered edges.
     Size against the content box (not vw) so 390px layouts keep margin. */
  width: min(760px, 100%);
  max-width: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  margin-inline: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

.logo-wordmark {
  width: 100%;
  max-width: 100%;
  line-height: 0;
}

.logo-wordmark img {
  width: 100%;
  height: auto;
  background: transparent;
}

.welcome-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65), 0 0 40px rgba(200, 140, 50, 0.18);
}

.welcome-tagline {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-muted);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.enter-btn {
  position: relative;
  margin-top: clamp(0.85rem, 2.5vw, 1.4rem);
  padding: 0.95rem 2.1rem;
  min-width: 12rem;
  border-radius: 999px;
  color: #1a1206;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  background: linear-gradient(180deg, #f0d48a 0%, #d4a84a 55%, #b8862e 100%);
  border: 1px solid rgba(255, 230, 170, 0.55);
  box-shadow:
    0 0 0 1px rgba(80, 50, 10, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(220, 160, 60, 0.28);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.enter-btn__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 245, 210, 0.55), transparent 55%);
  opacity: 0.35;
  animation: glow-breathe 3.5s ease-in-out infinite;
  pointer-events: none;
}

.enter-btn__label {
  position: relative;
  z-index: 1;
}

.enter-btn:hover,
.enter-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(80, 50, 10, 0.35),
    0 14px 34px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(230, 180, 70, 0.4);
}

.enter-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 14px 34px rgba(0, 0, 0, 0.5);
}

.enter-btn:active {
  transform: translateY(0);
}

/* Games view */
.games-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  text-align: left;
}

.logo-mark {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 0 24px rgba(200, 140, 50, 0.25);
  background: #0a0806;
  /* Secret test-build toggle: look inert — no pointer, hover, or tooltip cue */
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.games-header__text .eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.games-header__text h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.5vw, 1.35rem);
}

.game-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.game-card:hover,
.game-card:focus-within {
  border-color: var(--stroke-strong);
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), 0 0 28px rgba(200, 140, 50, 0.12);
}

.game-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #100c08;
  overflow: hidden;
}

.game-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1206;
  background: linear-gradient(180deg, #f0d48a, #c9963a);
  border: 1px solid rgba(255, 230, 170, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.game-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.game-card__body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.game-card__body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 700px) {
  .stage {
    padding-top: clamp(3rem, 10vw, 4rem);
    align-content: center;
  }

  .welcome-inner {
    gap: 0.7rem;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .games-header {
    flex-direction: column;
    text-align: center;
  }

  .logo-plate {
    width: min(360px, 100%);
  }

  .welcome-title {
    font-size: clamp(1.25rem, 6.2vw, 1.65rem);
    padding-inline: 0.25rem;
  }

  .enter-btn {
    width: min(100%, 18rem);
  }

  .panel[hidden] {
    width: min(920px, calc(100% - 2rem));
  }

  .games-header {
    margin-bottom: 0.9rem;
    gap: 0.65rem;
  }

  .logo-mark {
    width: 56px;
    height: 56px;
  }

  .games-header__text h2 {
    font-size: 1.4rem;
  }

  .game-card__body {
    padding: 0.8rem 0.9rem 0.95rem;
  }

  .game-card__body h3 {
    font-size: 1.1rem;
  }

  .game-card__body p {
    font-size: 0.86rem;
  }

  .stage[data-view="games"] {
    place-items: start center;
    padding-top: 3.25rem;
  }
}

@media (max-width: 400px) {
  .stage {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  .logo-plate {
    width: min(100%, calc(100vw - 1.75rem));
    max-width: 362px;
  }

  .mute-btn {
    width: 40px;
    height: 40px;
  }

  .logo-mark {
    width: 64px;
    height: 64px;
  }
}

/* —— Standalone pages: About / Team —— */
.site-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: max(0.85rem, env(safe-area-inset-top)) 0 0.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-brand:hover,
.site-brand:focus-visible {
  color: var(--gold-bright);
}

.site-brand:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

.site-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 0 16px rgba(200, 140, 50, 0.22);
  background: #0a0806;
  flex: 0 0 auto;
}

.site-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-brand__name {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--stroke-strong);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.site-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.page-stage {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 max(2.5rem, env(safe-area-inset-bottom));
}

.page-intro {
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.page-intro .eyebrow,
.content-panel .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-intro h1,
.content-panel h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.page-lede {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.content-panel {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1.1rem, 3vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.content-panel h1 {
  margin-bottom: 1rem;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prose p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.page-actions {
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.9rem;
}

.page-actions--footer {
  justify-content: center;
  margin-top: 2rem;
}

.text-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--stroke);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.text-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 3px;
}

.dot {
  color: var(--ink-dim);
}

/* Team grid */
.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.member-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.member-card:hover,
.member-card:focus-within {
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), 0 0 28px rgba(200, 140, 50, 0.12);
}

.member-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #100c08;
  overflow: hidden;
}

.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.level-boss-badge {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  width: auto;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #1a1206;
  background: linear-gradient(180deg, #f0d48a, #c9963a);
  border: 1px solid rgba(255, 230, 170, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  line-height: 1.25;
}

.member-card__body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.member-card__body h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.member-card__title {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.member-card__blurb {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Games-screen studio nav */
.studio-links {
  list-style: none;
  margin: clamp(1.1rem, 3vw, 1.6rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.25rem;
}

.studio-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.studio-links a:hover,
.studio-links a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--stroke-strong);
}

.studio-links a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 3px;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-top {
    flex-direction: column;
    align-items: flex-start;
    width: min(1080px, calc(100% - 1.7rem));
  }

  .page-stage {
    width: min(1080px, calc(100% - 1.7rem));
  }

  .site-nav {
    width: 100%;
  }

  .member-card__body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .member-card__body h2 {
    font-size: 1.02rem;
  }

  .member-card__blurb {
    font-size: 0.8rem;
  }

  .level-boss-badge {
    font-size: 0.56rem;
    padding: 0.22rem 0.4rem;
  }
}

@media (max-width: 400px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .site-brand__name {
    font-size: 0.9rem;
  }
}

.member-card__ai {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(226, 190, 120, 0.85);
}

/* Playable game card (2026-11-05: Spellblade web demo). The Play link stretches over the whole card. */
.game-card--playable {
  position: relative;
}

.play-btn {
  align-self: flex-start;
  margin-top: 0.45rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  color: #1a1206;
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(180deg, #f0d48a 0%, #d4a84a 55%, #b8862e 100%);
  border: 1px solid rgba(255, 230, 170, 0.55);
  box-shadow: 0 0 0 1px rgba(80, 50, 10, 0.35), 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 22px rgba(220, 160, 60, 0.22);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.play-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
}

.game-card--playable:hover .play-btn,
.play-btn:focus-visible {
  /* no filter/transform here: either would make the button the containing block of the card-wide ::after */
  background: linear-gradient(180deg, #f6dd9c 0%, #dcb25a 55%, #c2903a 100%);
  box-shadow: 0 0 0 1px rgba(80, 50, 10, 0.35), 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 30px rgba(230, 180, 70, 0.38);
}

.play-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* Hidden test builds (revealed by logo click). Sit above the card-wide play hit area. */
.test-builds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
  position: relative;
  z-index: 3;
}

.test-builds[hidden] {
  display: none !important;
}

.play-btn--test {
  align-self: flex-start;
  margin-top: 0;
  position: relative;
  z-index: 3;
  color: var(--gold-bright);
  background: rgba(18, 14, 10, 0.85);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 0 0 1px rgba(80, 50, 10, 0.25), 0 6px 16px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.08em;
}

.play-btn--test::after {
  content: none;
}

.game-card--playable:hover .play-btn--test,
.play-btn--test:focus-visible {
  background: rgba(28, 22, 14, 0.95);
  color: #fff4d4;
  box-shadow: 0 0 0 1px rgba(80, 50, 10, 0.3), 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 18px rgba(200, 140, 50, 0.18);
}

.play-btn--test:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
