/* ZeroDepression games: shared shell. Uses the site's tokens from /assets/css/site.css. */

.play-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

/* ---------- slim branded bar ---------- */
.play-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 3vw, 28px);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.play-bar__logo img { height: 40px; width: auto; }
.play-bar__nav { display: flex; align-items: center; gap: 8px; }
.play-bar__link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
}
.play-bar__link:hover { background: var(--sand); }
.play-help-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: var(--amber);
  padding: 10px 16px;
  border-radius: 999px;
  min-height: 44px;
}
.play-help-btn:hover { background: var(--amber-deep); }
@media (max-width: 420px) {
  .play-bar__logo img { height: 32px; }
  .play-bar__link { padding: 10px 8px; }
  .play-help-btn { padding: 10px 12px; }
}

/* ---------- sheets (help, share) ---------- */
.play-sheet {
  border: 0;
  padding: 0;
  width: min(440px, calc(100vw - 32px));
  border-radius: 24px;
  background: var(--white);
  color: var(--ink-soft);
  box-shadow: var(--shadow-lg);
}
.play-sheet::backdrop { background: rgba(16, 33, 63, 0.55); }
.play-sheet__body { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.play-sheet h2 { margin: 0; font-size: 1.5rem; color: var(--ink); }
.play-sheet p { margin: 0; }
.play-sheet__close {
  align-self: flex-end;
  font: inherit;
  font-weight: 700;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 4px 0;
  min-height: 44px;
}
.play-sheet__actions { display: grid; gap: 10px; }
.play-sheet__actions .btn { justify-content: center; width: 100%; }
.play-sheet__note { font-size: 0.9rem; color: var(--muted); }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.share-grid a, .share-grid button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; color: var(--ink); background: var(--sand); border: 0; cursor: pointer;
}
.share-grid a:hover, .share-grid button:hover { background: var(--line); }
.share-grid .share-wa { background: #25d366; color: #0b2e18; }
.share-grid .share-wa:hover { background: #1fb457; }

/* ---------- common game furniture ---------- */
.game-stage { flex: 1; display: flex; flex-direction: column; }
.game-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 40px) clamp(16px, 4vw, 24px) 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.game-panel h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.02; color: var(--ink); }
.game-panel .lead { margin: 0; font-size: 1.1rem; }
.game-tag { font-weight: 700; color: var(--amber-text); margin: 0; }
.game-panel .btn { justify-content: center; }
.mood-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mood-row button {
  font: inherit; border: 2px solid var(--line); background: var(--white); border-radius: 16px;
  padding: 10px 4px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink); font-size: 0.8rem; font-weight: 600; min-height: 72px;
}
.mood-row button span { font-size: 1.7rem; line-height: 1; }
.mood-row button[aria-pressed="true"] { border-color: var(--ink); background: var(--sand); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row button {
  font: inherit; font-weight: 700; border: 2px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 10px 16px; cursor: pointer; min-height: 44px;
}
.choice-row button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.result-card {
  background: var(--white); border-radius: 24px; padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.result-card p { margin: 0; }
.result-card .big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-row div { background: var(--sand); border-radius: 16px; padding: 12px 14px; }
.stat-row strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.stat-row span { font-size: 0.9rem; }
.game-foot {
  margin-top: auto; padding: 14px 16px 18px; text-align: center; font-size: 0.9rem; color: var(--muted);
}
.game-foot a { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- /play/ hub ---------- */
.play-hub-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(16px, 3vw, 28px); background: var(--sand); }
.play-hub-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1; max-width: 14ch; margin: 8px 0 18px; color: var(--ink); }
.play-hub-hero .lead { max-width: 52ch; margin: 0 0 24px; }
.play-hub-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.play-hub-games { padding-top: clamp(28px, 5vw, 48px); }
.game-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
@media (max-width: 760px) { .game-grid { grid-template-columns: minmax(0, 1fr); } }
.game-card__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-card__art { width: 100%; height: auto; aspect-ratio: 8 / 5; }
.game-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card__body h3 { margin: 0; font-size: 1.7rem; color: var(--ink); }
.game-card__body p { margin: 0; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.game-card__meta span { font-size: 0.85rem; font-weight: 700; color: var(--ink); background: var(--sand); padding: 4px 12px; border-radius: 999px; }
.game-card__cta { margin-top: auto; align-self: flex-start; }
.play-hub-note { padding-bottom: clamp(48px, 7vw, 80px); }
.play-hub-note__inner { background: var(--ink); color: var(--sand); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.play-hub-note__inner h2 { color: var(--cream); margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.play-hub-note__inner p { margin: 0; max-width: 52ch; }
.play-hub-note__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.play-hub-note .btn-dark { background: var(--cream); color: var(--ink); }
[hidden] { display: none !important; }

.play-hub-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.play-hub-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; transform: rotate(-3deg); }
.play-hub-mosaic div { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.play-hub-mosaic div:nth-child(2) { transform: translateY(22px); }
.play-hub-mosaic div:nth-child(4) { transform: translateY(22px); }
.mosaic-art { width: 160%; height: 100%; max-width: none; margin-left: -30%; }
@media (max-width: 820px) {
  .play-hub-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .play-hub-mosaic { display: none; }
}
