/* Daily World Puzzle — brand site */
:root {
  --navy: #0d1b2a;
  --blue: #1e63b7;
  --cyan: #14c8db;
  --lime: #7ed957;
  --sunburst: #ffa52d;
  --orange: #ff7e1b;
  --magenta: #eb4c8a;
  --bg: #f5f7fa;
  --bg-elevated: #ffffff;
  --ink: #0d1b2a;
  --muted: #5a6573;
  --dim: #8a94a3;
  --line: #d8dee6;
  --radius: 16px;
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --header-bg: rgba(245, 247, 250, 0.92);
  --hero-glow:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(20, 200, 219, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(255, 126, 27, 0.16), transparent 45%);
  --card-shadow: 0 8px 28px rgba(13, 27, 42, 0.08);
  --feature-border: transparent;
}

html[data-theme="dark"] {
  --bg: #07111f;
  --bg-elevated: #152536;
  --ink: #f5f7fa;
  --muted: #a8b4c0;
  --dim: #7a8796;
  --line: rgba(20, 200, 219, 0.28);
  --header-bg: rgba(7, 17, 31, 0.9);
  --hero-glow:
    radial-gradient(ellipse 80% 55% at 8% -8%, rgba(20, 200, 219, 0.22), transparent 52%),
    radial-gradient(ellipse 70% 48% at 92% 0%, rgba(255, 126, 27, 0.18), transparent 48%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(30, 99, 183, 0.2), transparent 55%);
  --card-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  --feature-border: rgba(20, 200, 219, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  background: var(--hero-glow), var(--bg);
  line-height: 1.55;
}

body.lang-en .cs-only,
body.lang-cs .en-only {
  display: none !important;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  margin: 0 -20px 28px;
  padding: 12px 20px;
}

.site-header__row {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.12);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand__name .puzzle {
  color: var(--orange);
}

.brand__tag {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: rgba(255, 126, 27, 0.16);
  color: var(--ink);
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--cyan);
}

html[data-theme="dark"] .theme-toggle {
  color: var(--cyan);
}

html[data-theme="dark"] .hero__copy h1 {
  color: var(--ink);
}

html[data-theme="dark"] .hero__art img {
  filter: drop-shadow(0 12px 40px rgba(20, 200, 219, 0.18));
}

html[data-theme="dark"] .feature,
html[data-theme="dark"] .score-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .dl-gate {
  border-color: var(--feature-border);
  box-shadow: var(--card-shadow);
}

html[data-theme="dark"] .btn-ghost {
  background: rgba(21, 37, 54, 0.85);
}

html[data-theme="dark"] .pill {
  background: rgba(20, 200, 219, 0.14);
  color: var(--cyan);
}

html[data-theme="dark"] .page-intro h1,
html[data-theme="dark"] .section h2,
html[data-theme="dark"] .feature h3 {
  color: var(--ink);
  font-weight: 800;
}

.nav-links {
  display: none;
  gap: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

.hero {
  padding: 12px 0 36px;
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero__copy h1 {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__copy h1 .accent {
  color: var(--orange);
}

.hero .lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero__art {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.1);
  background: var(--bg-elevated);
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-intro .cta-row {
  margin-top: 16px;
}

.grow-heading {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.grow-list {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.55;
}

.grow-list li + li {
  margin-top: 0.45rem;
}

.crew-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink);
  line-height: 1.6;
}

.crew-steps li + li {
  margin-top: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: #e86f12;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--cyan);
}

.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section .intro {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 40rem;
}

.story__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.story__brand h2 {
  margin: 0;
}

.story__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--card-shadow);
}

.story__prose {
  max-width: 42rem;
  display: grid;
  gap: 1rem;
}

.story__prose p {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.65;
}

.story__avatars {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.story__avatars-label {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}

.avatar-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
}

.avatar-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 76px;
}

.avatar-row img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 2px solid rgba(20, 200, 219, 0.45);
  box-shadow: 0 4px 14px rgba(13, 27, 42, 0.12);
}

.avatar-row span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
}

.story__avatars-note {
  margin: 16px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--cyan);
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.04);
}

.feature:nth-child(3n + 2) {
  border-top-color: var(--orange);
}

.feature:nth-child(3n) {
  border-top-color: var(--sunburst);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.legal-card h2 {
  margin-top: 1.6em;
  margin-bottom: 0.45em;
  font-size: 1.2rem;
  font-weight: 800;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 1.2em 0 0.4em;
  font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
  color: var(--ink);
}

.legal-card ul {
  padding-left: 1.2em;
}

.legal-card li + li {
  margin-top: 0.35em;
}

.page-intro {
  margin-bottom: 18px;
}

.page-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--ink);
}

.meta {
  font-size: 0.85rem;
  color: var(--dim);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 14px 0 14px 48px;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 126, 27, 0.16);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 200, 219, 0.16);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Scoreboard */
.score-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.score-tab {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.score-tab:hover {
  border-color: var(--cyan);
  color: var(--ink);
}

.score-tab.is-active {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange), var(--sunburst));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 126, 27, 0.35);
}

.score-tab.is-active:hover {
  color: #fff;
  border-color: var(--sunburst);
}

html[data-theme="dark"] .score-tab {
  background: rgba(21, 37, 54, 0.95);
  border-color: rgba(20, 200, 219, 0.4);
  color: #f5f7fa;
}

html[data-theme="dark"] .score-tab:hover {
  border-color: var(--cyan);
  background: rgba(28, 49, 68, 1);
  color: #fff;
}

html[data-theme="dark"] .score-tab.is-active {
  border-color: var(--sunburst);
  background: linear-gradient(135deg, #ff7e1b, #ffa52d);
  color: #0d1b2a;
  box-shadow: 0 4px 18px rgba(255, 165, 45, 0.35);
}

html[data-theme="dark"] .score-tab.is-active:hover {
  color: #0d1b2a;
}

.scoreboard {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.scoreboard__meta {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.scoreboard__meta strong {
  color: var(--cyan);
}

/* Flex, not grid: the podium badge only exists on the top three rows, and as a
   grid item it pushed the stats onto a second line. */
.score-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.score-row:last-child {
  border-bottom: 0;
}

.score-row__rank {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  background: rgba(216, 222, 230, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--ink);
}

.score-row__rank.gold {
  background: linear-gradient(135deg, #ffd54f, #b8860b);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 165, 45, 0.45);
}
.score-row__rank.silver {
  background: linear-gradient(135deg, #e8eef4, #6b7a89);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  box-shadow: 0 2px 10px rgba(107, 122, 137, 0.4);
}
.score-row__rank.bronze {
  background: linear-gradient(135deg, #e0a06a, #8b5a2b);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  box-shadow: 0 2px 10px rgba(212, 146, 74, 0.4);
}

.score-row__podium {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.score-row__podium.gold { color: #b8860b; }
.score-row__podium.silver { color: #6b7a89; }
html[data-theme="dark"] .score-row__podium.silver { color: #c5cdd6; }
.score-row__podium.bronze { color: #c47b3a; }

.score-row__player {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.score-row__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.score-row__avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(216, 222, 230, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 5px rgba(12, 24, 40, 0.22);
}

.score-row__flag {
  position: absolute;
  right: -4px;
  bottom: -3px;
  font-size: 0.78rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.score-row__ident {
  min-width: 0;
}

.score-row__name {
  font-weight: 800;
}

.score-row__streak {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--accent-warm, #f2a03d);
  background: rgba(242, 160, 61, 0.16);
  border: 1px solid rgba(242, 160, 61, 0.5);
}

.score-row__sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.score-row__stats {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  font-weight: 700;
}

.score-row__stats span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.score-empty,
.score-error {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

/* Leaderboard picker */
.lb-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.lb-picker[hidden] {
  display: none !important;
}

.lb-picker__image {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
}

.lb-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  flex: 0 0 auto;
}

.lb-select {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color-scheme: inherit;
}

.lb-select option {
  background: var(--bg-elevated);
  color: var(--ink);
}

.lb-diffs {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.lb-diff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border-right: 1px solid var(--line);
}

.lb-diff:last-child {
  border-right: 0;
}

.lb-diff:hover {
  color: var(--ink);
  background: rgba(20, 200, 219, 0.08);
}

.lb-diff[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--orange), var(--sunburst));
  color: #fff;
}

html[data-theme="dark"] .lb-diff[aria-pressed="true"] {
  color: #0d1b2a;
}

.medal {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.medal--bronze {
  background: linear-gradient(135deg, #e0a06a, #8b5a2b);
}

.medal--silver {
  background: linear-gradient(135deg, #e8eef4, #6b7a89);
}

.medal--gold {
  background: linear-gradient(135deg, #ffd54f, #b8860b);
}

.medal--diamond {
  background: linear-gradient(135deg, #b8f3ff, #14c8db);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border-radius: 0;
  border: 0;
  box-shadow: 0 0 6px rgba(20, 200, 219, 0.55);
}

/* Scene pages (scores / leaderboards) — app crest backdrop */
.page-scores {
  background:
    linear-gradient(
      180deg,
      rgba(7, 17, 31, 0.55) 0%,
      rgba(7, 17, 31, 0.35) 45%,
      rgba(7, 17, 31, 0.72) 100%
    ),
    url("/brand/bg_scores.png") center top / cover no-repeat fixed,
    var(--bg);
}

html:not([data-theme="dark"]) .page-scores {
  background:
    linear-gradient(
      180deg,
      rgba(245, 247, 250, 0.82) 0%,
      rgba(245, 247, 250, 0.72) 50%,
      rgba(245, 247, 250, 0.88) 100%
    ),
    url("/brand/bg_scores.png") center top / cover no-repeat fixed,
    var(--bg);
}

.page-scores .scoreboard,
.page-scores .lb-picker,
.page-scores .page-intro {
  position: relative;
  z-index: 1;
}

.page-scores .lb-picker {
  padding: 14px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

/* Form controls — always theme-aware (never hardcode navy on dark) */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

select option {
  background: var(--bg-elevated);
  color: var(--ink);
}

html[data-theme="dark"] .dl-status--error {
  color: #ff8a80;
}

/* Full downloads page */
.dl-auth {
  margin-bottom: 20px;
}

.dl-gate {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.dl-gate--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dl-tier {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.dl-status {
  min-height: 1.4em;
  margin: 8px 0 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.dl-status--error {
  color: #b42318;
}

.archive-page .archive-art,
.play-board {
  display: block;
  width: min(100%, 560px);
  margin: 16px 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.archive-art {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.archive-spoiler {
  max-width: 560px;
  margin: 16px 0 24px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
}

.archive-story {
  max-width: 40rem;
}

.archive-fun {
  color: var(--muted);
}

.archive-list {
  padding-left: 1.2rem;
  max-width: 40rem;
}

.archive-list li {
  margin: 0.35rem 0;
}

.play-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  aspect-ratio: 1 / 1;
}

.play-tile {
  border: 0;
  padding: 0;
  border-radius: 8px;
  background-image: var(--play-image);
  background-size: 300% 300%;
  cursor: pointer;
  min-height: 0;
}

.play-tile--empty {
  background: transparent;
  cursor: default;
}

.play-meta {
  font-weight: 700;
  color: var(--muted);
}
