:root {
  color-scheme: dark;
  --bg: #0f1014;
  --surface: #171820;
  --surface-2: #1f2029;
  --panel: #15161d;
  --line: #303240;
  --line-soft: #252733;
  --text: #f4efe7;
  --muted: #b9b0a4;
  --faint: #837b72;
  --accent: #d8b36a;
  --accent-soft: #2a261b;
  --danger: #d95d6a;
  --ok: #62c79a;
  --warn: #e0a84b;
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line-soft);
  background: #0f1014f2;
}

.nav-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 0 10px;
  white-space: nowrap;
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 16px 44px;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.phone-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-height: 700px;
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .28);
}

.screen {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.is-hidden {
  display: none !important;
}

.chat-stack {
  display: grid;
  gap: 9px;
  margin-bottom: 4px;
}

.bubble {
  width: fit-content;
  max-width: 82%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px 12px;
  color: var(--text);
  line-height: 1.55;
}

.bubble.me {
  justify-self: end;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.bubble small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
  font-weight: 700;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 9em;
}

.hero-copy p:not(.kicker) {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
}

.world-card,
.scene-panel,
.result-panel,
.death-card,
.seo-panel,
.card,
.stat,
.choice,
.share-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.world-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.world-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.world-stats span {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 8px;
  font-size: 11px;
}

.world-stats strong {
  color: var(--text);
  font-size: 15px;
}

.primary,
.ghost,
.text-button,
.share-chip,
.share-action,
.share-copy {
  cursor: pointer;
  min-height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  transition: border-color .16s, background .16s, transform .16s;
}

.primary {
  background: var(--accent);
  color: #14120f;
  font-weight: 850;
}

.primary:hover,
.ghost:hover,
.share-chip:hover,
.share-action:hover,
.share-copy:hover {
  transform: translateY(-1px);
}

.ghost {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.text-button {
  color: var(--muted);
  background: transparent;
}

.share-row,
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar div {
  display: grid;
  gap: 4px;
}

.topbar span,
.scene-label,
.death-card span {
  color: var(--muted);
  font-size: 12px;
}

.topbar strong {
  font-size: 22px;
}

.icon-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  min-height: 60px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 10px;
  overflow: hidden;
}

.stat-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.plain-stat {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 44px;
}

.track {
  height: 8px;
  border-radius: 999px;
  background: rgba(245, 239, 229, .18);
  overflow: hidden;
}

.track i {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .2s;
}

.track i.danger {
  background: var(--danger);
}

.track i.ok {
  background: var(--ok);
}

.stat-grid.npd-stat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: stretch;
  gap: 10px;
}

.npd-hp-stat {
  min-height: 138px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 61, 87, .46);
  border-radius: 8px;
  background: #21181c;
  color: #ff3d57;
  font-weight: 900;
}

.npd-hp-head {
  display: grid;
  gap: 4px;
}

.npd-hp-head span {
  font-size: 14px;
  line-height: 1;
}

.npd-hp-head strong {
  color: #fff8f0;
  font-size: 22px;
  line-height: 1;
}

.npd-hp-track {
  width: 16px;
  height: 78px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 239, 229, .18);
}

.npd-hp-track i {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 4px;
  min-height: 4px;
  border-radius: inherit;
  background: #ff1f3d;
  transition: height .2s;
}

.npd-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.npd-mini-stat {
  min-height: 64px;
  padding: 12px;
  border-color: #403b42;
  background: #211f24;
}

.npd-mini-stat .track {
  background: #343238;
}

.scene-panel {
  padding: 18px;
}

.scene-panel.plain-scene-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.scene-panel h2 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.16;
}

.scene-panel p {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
}

.plain-scene-panel p {
  margin-top: 0;
  font-size: clamp(18px, 4vw, 24px);
}

blockquote {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 25px;
  line-height: 1.32;
}

.quote-prefix {
  color: var(--accent);
  font-size: .78em;
  font-weight: 850;
  margin-right: 4px;
  vertical-align: .08em;
}

.choice-section {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.choice-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  padding: 0 3px;
}

.choice-heading span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.choice-heading strong {
  color: var(--muted);
  font-size: 12px;
}

.choices {
  display: grid;
  gap: 10px;
}

.choice {
  min-height: 62px;
  width: 100%;
  text-align: left;
  color: var(--text);
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--accent);
}

.choice b {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.choice span {
  line-height: 1.45;
}

.result-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.result-panel h2 {
  font-size: 30px;
  line-height: 1.18;
}

.title-badge {
  display: block;
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.16;
}

.success-rank-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.success-rank-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-copy {
  color: var(--muted);
  line-height: 1.7;
}

.cards-grid,
.category-grid {
  display: grid;
  gap: 12px;
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 150px;
  padding: 14px;
  display: grid;
  gap: 8px;
  border-color: color-mix(in srgb, var(--card-accent, var(--accent)) 38%, var(--line));
}

.card:hover {
  border-color: var(--card-accent, var(--accent));
}

.card .tag {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent, var(--accent));
  background: #111217;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--accent)) 30%, var(--line));
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.card strong {
  font-size: 21px;
  line-height: 1.16;
}

.card p,
.card small {
  color: var(--muted);
  line-height: 1.55;
}

.card small {
  font-size: 12px;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.card-meta span {
  min-height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
}

.side-panel {
  display: grid;
  gap: 14px;
}

.side-panel .intro-card {
  border-left: 4px solid var(--accent);
}

.seo-content {
  width: min(940px, 100%);
  margin: 30px auto 0;
  display: grid;
  gap: 14px;
}

.seo-panel {
  padding: 22px;
}

.seo-panel h2,
.seo-panel h3 {
  line-height: 1.3;
  margin-bottom: 10px;
}

.seo-panel h2 {
  font-size: 25px;
}

.seo-panel h3 {
  font-size: 20px;
}

.seo-panel p,
.seo-panel li,
.faq p {
  color: #d1c8bd;
  line-height: 1.86;
}

.seo-panel p + p {
  margin-top: 12px;
}

.seo-list {
  margin: 0;
  padding-left: 1.2em;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
}

.faq summary::-webkit-details-marker,
.faq summary::marker {
  display: none;
  content: "";
}

.faq summary::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%2018%206-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%2018%206-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(0deg);
  transition: transform .16s ease;
}

.faq details[open] summary::before {
  transform: rotate(90deg);
}

.faq p {
  margin-top: 9px;
}

.share-chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.share-chip img,
.share-copy img {
  width: 18px;
  height: 18px;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.share-modal.show {
  display: flex;
}

.share-dialog {
  width: min(430px, 100%);
  padding: 18px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .36);
}

.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.share-head h2 {
  font-size: 18px;
}

.share-close {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.share-action {
  min-height: 78px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  padding: 8px;
}

.share-action img {
  width: 34px;
  height: 34px;
}

.share-copy {
  width: 100%;
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #15161d;
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
}

.share-toast.show {
  display: block;
}

.footer {
  width: min(760px, 100%);
  margin: 0 auto;
  border-top: 1px solid #30272b;
  background: var(--bg);
  padding: 24px clamp(18px, 6vw, 64px) 42px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .phone-shell,
  .screen {
    min-height: 640px;
  }

  .side-panel {
    order: 2;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    align-items: start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;
  }

  .page {
    padding: 12px 10px 34px;
  }

  .screen {
    padding: 16px;
  }

  h1 {
    font-size: 34px;
  }

  blockquote,
  .scene-panel h2,
  .result-panel h2 {
    font-size: 24px;
  }

  .world-stats,
  .category-grid,
  .card-meta,
  .actions,
  .share-row {
    grid-template-columns: 1fr;
  }

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

  .share-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Static index/category layout */
html,
body {
  background: #171114;
}

.site-home,
.site-inner {
  --bg: #171114;
}

.site-home .page,
.site-inner .page {
  width: min(760px, 100%);
  background: #171114;
  padding: 34px clamp(18px, 6vw, 64px) 54px;
}

.home-page,
.category-page {
  display: grid;
  gap: 34px;
}

.home-page {
  gap: 22px;
}

.home-hero,
.category-hero {
  display: grid;
  gap: 14px;
}

.home-hero {
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.home-hero h1,
.category-hero h1 {
  max-width: 100%;
  font-size: clamp(48px, 10vw, 72px);
  line-height: 1.08;
  color: #fff8f0;
}

.home-hero h1 {
  font-size: clamp(32px, 8vw, 48px);
}

.category-hero h1 {
  font-size: clamp(34px, 7vw, 48px);
}

.home-hero p:not(.kicker),
.category-hero p:not(.kicker) {
  max-width: 620px;
  color: #c8bbb4;
  font-size: clamp(22px, 4.4vw, 30px);
  line-height: 1.7;
}

.home-hero p:not(.kicker) {
  max-width: 560px;
  font-size: clamp(15px, 3.6vw, 20px);
  line-height: 1.55;
}

.category-hero p:not(.kicker) {
  max-width: 520px;
  font-size: clamp(17px, 3.8vw, 22px);
  line-height: 1.55;
}

.home-section,
.category-faq {
  display: grid;
  gap: 20px;
}

.home-section {
  gap: 12px;
}

.section-title {
  color: var(--accent);
  font-size: 25px;
  line-height: 1.2;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.collection-card {
  min-height: 154px;
  align-content: start;
  padding: 16px;
}

.collection-card strong {
  margin-top: 6px;
  font-size: clamp(21px, 5vw, 32px);
  line-height: 1.12;
  white-space: pre-line;
}

.collection-card em {
  margin-top: auto;
  color: #9b9088;
  font-style: normal;
  font-weight: 800;
}

.collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.collection-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--accent)) 20%, transparent);
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 10%, #1d1718);
  color: #e5d8cc;
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.challenge-list {
  display: grid;
  gap: 20px;
}

.challenge-card {
  min-height: 270px;
  padding: 28px;
}

.challenge-card strong {
  font-size: clamp(32px, 7vw, 46px);
}

.challenge-card small {
  font-size: clamp(20px, 4vw, 28px);
}

.challenge-card p {
  font-size: clamp(16px, 3vw, 22px);
}

.challenge-card .tag,
.collection-card .tag {
  border: 0;
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 20%, #21191a);
  font-size: 16px;
  color: color-mix(in srgb, var(--card-accent, var(--accent)) 82%, white);
}

.challenge-card .card-meta {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.challenge-card .card-meta span {
  min-height: 32px;
  border-radius: 8px;
  padding: 0 8px;
  font-size: clamp(12px, 2.3vw, 15px);
  white-space: nowrap;
}

.category-page .chat-stack {
  gap: 14px;
}

.category-page .bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-color: #655357;
  background: #3b3034;
  font-size: clamp(17px, 4vw, 22px);
}

.category-page .bubble.me {
  justify-self: end;
  background: #4a3429;
  border-color: #765949;
}

.category-page .bubble small {
  color: #9e928d;
  font-size: 13px;
}

.category-topbar {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 12px;
}

.category-topbar strong {
  justify-self: center;
  color: #f4efe7;
  font-size: 17px;
  letter-spacing: 0;
}

.mini-top-button {
  width: 54px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #5b5358;
  border-radius: 8px;
  background: #231f25;
  color: #d8ccc5;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.back-mini {
  justify-self: end;
  font-size: 24px;
  line-height: 1;
}

.category-page .challenge-card {
  min-height: 230px;
}

.category-page .challenge-card .card-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.category-page .challenge-card .card-meta span {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 6px;
  font-size: clamp(11px, 2.5vw, 13px);
  white-space: nowrap;
}

.challenge-page {
  display: grid;
  gap: 38px;
}

.challenge-detail-layout {
  display: grid;
}

.challenge-page .phone-shell {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.challenge-page .screen {
  min-height: 0;
  padding: 0;
}

.challenge-home-screen {
  gap: 24px;
}

.challenge-page .chat-stack {
  gap: 14px;
}

.challenge-page .bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-color: #655357;
  background: #3b3034;
  font-size: clamp(17px, 4vw, 22px);
}

.challenge-page .bubble.me {
  justify-self: end;
  background: #4a3429;
  border-color: #765949;
}

.challenge-page .bubble small {
  color: #9e928d;
  font-size: 13px;
}

.challenge-page .hero-copy {
  display: grid;
  gap: 8px;
}

.challenge-page .hero-copy h1 {
  max-width: 100%;
  font-size: clamp(30px, 6.2vw, 42px);
  line-height: 1.08;
  color: #fff8f0;
}

.challenge-page .hero-copy p:not(.kicker) {
  max-width: 520px;
  color: #c8bbb4;
  font-size: clamp(15px, 3.4vw, 19px);
  line-height: 1.55;
}

.challenge-page .start-card {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.challenge-page .world-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.challenge-page .world-stats span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  padding: 0 6px;
  color: #d7ccc4;
  font-size: clamp(11px, 2.5vw, 13px);
  line-height: 1;
  white-space: nowrap;
}

.challenge-page .world-stats strong {
  font-size: inherit;
  line-height: 1;
}

.challenge-page .primary {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
}

.challenge-page [data-screen="playing"] > .stat-grid:not(.npd-stat-layout),
.challenge-page [data-role="ending-stats"]:not(.npd-stat-layout) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.challenge-page [data-screen="playing"] > .stat-grid:not(.npd-stat-layout) {
  border: 1px solid #332e3a;
  border-radius: 8px;
  background: rgba(20, 21, 28, .36);
  padding: 14px;
}

.challenge-page [data-screen="playing"] > .stat-grid:not(.npd-stat-layout) .plain-stat {
  min-height: 34px;
  gap: 4px;
}

.challenge-page .result-panel .actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.challenge-related {
  margin-top: 18px;
}

.challenge-page .seo-content {
  display: grid;
  gap: 20px;
}

.home-page .seo-panel,
.category-page .seo-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.home-page .faq details,
.category-page .faq details {
  background: #21191a;
}

.site-inner[data-page-type="challenge"] .page,
.site-inner[data-page-type="npd"] .page {
  display: grid;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .5s ease forwards;
}

.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .45s; }
.delay-3 { animation-delay: .85s; }
.delay-4 { animation-delay: 1.22s; }
.delay-5 { animation-delay: 1.42s; }
.delay-6 { animation-delay: 1.62s; }
.delay-7 { animation-delay: 1.82s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOnly {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
    animation-name: fadeOnly;
    animation-duration: .35s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
  }
}

@media (max-width: 720px) {
  .site-home .page,
  .site-inner .page {
    padding-inline: 30px;
  }

  .site-home .page {
    padding-top: 20px;
  }

  .collection-grid {
    gap: 10px;
  }

  .collection-card {
    min-height: 142px;
    padding: 14px;
  }

  .collection-card .tag {
    font-size: 12px;
    padding: 4px 7px;
  }

  .collection-card strong {
    font-size: clamp(20px, 5.3vw, 26px);
  }

  .collection-meta span {
    font-size: 12px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
  }

  .collection-card em {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .site-home .page,
  .site-inner .page {
    padding-inline: 18px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .site-home .home-hero .kicker {
    margin-bottom: 2px;
  }

  .site-home .home-hero h1 {
    font-size: clamp(30px, 8.2vw, 36px);
  }

  .site-home .home-hero p:not(.kicker) {
    font-size: 15px;
    line-height: 1.48;
  }

  .site-home .collection-card {
    min-height: 132px;
    padding: 12px;
  }

  .site-home .collection-card strong {
    font-size: 21px;
  }

  .site-home .collection-card em {
    display: none;
  }

  .site-home .collection-meta {
    gap: 6px;
  }

  .site-home .collection-meta span {
    width: fit-content;
    min-height: 23px;
    font-size: 11px;
    padding: 0 7px;
  }

  .site-home .challenge-card .card-meta span,
  .category-page .challenge-card .card-meta span {
    min-height: 30px;
    font-size: 12px;
    padding: 0 6px;
  }

  .challenge-card {
    min-height: 230px;
    padding: 22px;
  }

  .category-page .bubble {
    max-width: 92%;
    padding: 16px 18px;
  }

  .category-page .bubble {
    padding: 13px 15px;
    font-size: 17px;
  }

  .category-page .bubble small {
    font-size: 12px;
  }

  .category-hero {
    gap: 8px;
  }

  .category-hero h1 {
    font-size: 33px;
  }

  .category-hero p:not(.kicker) {
    font-size: 16px;
  }

  .category-topbar {
    grid-template-columns: 50px 1fr 50px;
  }

  .mini-top-button {
    width: 50px;
    min-height: 36px;
    font-size: 12px;
  }

  .back-mini {
    font-size: 22px;
  }
}
