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

:root {
  --bg: #f6f5f2;
  --ink: #111111;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e4e2dc;
  --surface: #ffffff;
  --green: #19c37d;
  --green-soft: #e8faf1;
  --font: "DM Sans", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.accent {
  color: var(--green);
}

.site-shell {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 4rem;
  overflow: visible;
}

/* —— Nav —— */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 1.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}

.brand-mark-icon {
  display: block;
  width: auto;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center top;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: #2a2a2a;
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 0.25rem 0 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.hero .lede {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}

/* —— Product entry —— */
.product-entry {
  position: relative;
  max-width: 560px;
  margin: 0 auto 2.75rem;
  overflow: visible;
}

.product-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.35rem 0.35rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: visible;
}

.product-icon {
  display: inline-flex;
  color: var(--faint);
  flex-shrink: 0;
}

.product-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.65rem 0.25rem;
}

.product-field input::placeholder {
  color: var(--faint);
}

.enter-wrap {
  position: relative;
  flex-shrink: 0;
}

.enter-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.enter-btn:hover {
  background: #2a2a2a;
}

.product-note {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--faint);
}

.product-form.hidden,
.product-preview.hidden,
.product-selected.hidden,
.product-preview-edit.hidden,
.product-preview-view.hidden,
.board-rank-line.hidden,
.board-pagination.hidden,
.hidden {
  display: none !important;
}

.product-preview {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.product-preview-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.product-preview-avatar {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.product-preview-avatar .board-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.product-preview-body {
  flex: 1;
  min-width: 0;
}

.product-preview-view strong,
#preview-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.product-preview-desc {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-preview-desc:empty {
  display: none;
}

.product-preview-domain {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--faint);
}

.product-preview-edit {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-preview-edit input,
.product-preview-edit textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  outline: none;
  resize: vertical;
}

.product-preview-edit input:focus,
.product-preview-edit textarea:focus {
  border-color: #b8b6ae;
}

.product-preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.product-preview-edit-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.product-preview-edit-btn:hover {
  color: var(--ink);
  background: #f0eee8;
}

.product-preview-confirm {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.product-preview-confirm:hover {
  background: #2a2a2a;
}

.product-field.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.enter-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.product-selected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.55rem 0.65rem 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.product-selected-avatar {
  display: inline-flex;
  flex-shrink: 0;
}

.product-selected-avatar .board-avatar {
  width: 32px;
  height: 32px;
}

.product-selected-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.product-selected-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-selected-text span {
  font-size: 0.82rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-change {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.product-change:hover {
  color: var(--ink);
  background: #f0eee8;
}

.product-change:disabled,
.product-play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-change:disabled:hover {
  color: var(--muted);
  background: transparent;
}

.product-play {
  flex-shrink: 0;
  border: none;
  background: #1a3326;
  color: #7dff9a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.product-play:hover {
  background: #234032;
}

.product-play:disabled:hover {
  background: #1a3326;
}

.product-pay {
  flex-shrink: 0;
  border: none;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.product-pay:hover {
  background: #2a2a2a;
}

.product-pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-pay.hidden {
  display: none;
}

.product-dev-unlock {
  flex-shrink: 0;
  border: 1px dashed #c4b8a0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.product-dev-unlock:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.product-dev-unlock.hidden {
  display: none;
}

/* Anchored to Enter: label to the right, arrow curves up-left into the button */
.product-nudge {
  position: absolute;
  left: calc(100% + 46px);
  top: calc(50% + 78px);
  pointer-events: none;
  z-index: 3;
}

.nudge-arrow {
  position: absolute;
  left: -68px;
  top: -46px;
  width: 72px;
  height: 58px;
  color: #6a6a6a;
  overflow: visible;
}

.nudge-label {
  display: inline-block;
  transform: translateY(-45%);
  color: #7a7a7a;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* —— Game —— */
.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.score-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 2.5rem;
  width: 100%;
}

.score-stat {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.stat-label {
  color: var(--muted);
  font-weight: 500;
}

.stat-label::after {
  content: ":";
}

.stat-value {
  color: var(--green);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.game-stage-wrap {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 700;
  max-height: min(70vh, 660px);
  border-radius: 16px;
  overflow: hidden;
  background: #13261c;
  border: 1px solid #1a2e22;
}

.game-frame [data-outscore-game],
.game-frame #game-wrap {
  width: 100%;
  height: 100%;
}

.game-underbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  text-align: center;
}

.controls-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--faint);
  text-align: center;
  white-space: nowrap;
}

.focus-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.focus-link:hover {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.focus-link svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.game-load-error {
  padding: 2rem 1.25rem 0.35rem;
  text-align: center;
  color: rgba(232, 255, 232, 0.7);
  font-size: 0.95rem;
}

.game-load-error-detail {
  margin: 0;
  padding: 0 1.25rem 2rem;
  text-align: center;
  color: rgba(232, 255, 232, 0.4);
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-word;
}

.controls-hint kbd {
  display: inline-block;
  min-width: 1.35rem;
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
}

.hint-sep {
  margin: 0 0.35rem;
  color: var(--line);
}

/* —— Leaderboard —— */
.board-section {
  margin-bottom: 3rem;
  padding: 1.5rem 1.35rem 0.5rem;
  background: var(--surface);
  border-radius: 16px;
}

.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.board-head-main {
  min-width: 0;
}

.board-head-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  flex-shrink: 0;
}

.board-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.board-heading-meta {
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.board-rank-line {
  margin-top: 0.45rem;
}

.board-rank-jump {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(25, 195, 125, 0.35);
}

.board-rank-jump:hover {
  text-decoration-color: var(--green);
}

.board-action {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.7;
}

.board-list {
  display: flex;
  flex-direction: column;
}

.board-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.15rem;
  border-top: 1px solid #f0eee8;
  transition: background 0.15s ease;
}

.board-row:first-child {
  border-top: none;
}

.board-row.is-link {
  cursor: pointer;
  border-radius: 10px;
  margin: 0 -0.35rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.board-row.is-link:hover {
  background: rgba(0, 0, 0, 0.025);
}

.board-row.is-link:focus-visible {
  outline: 2px solid rgba(25, 195, 125, 0.35);
  outline-offset: 2px;
}

.board-row.is-you.is-link:hover {
  background: rgba(25, 195, 125, 0.1);
}

.board-rank {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.board-row.is-top .board-rank {
  background: var(--green);
  color: #fff;
}

.board-row.is-podium:not(.is-top) .board-rank {
  background: rgba(25, 195, 125, 0.12);
  color: var(--green);
}

.board-row.is-top .board-name,
.board-row.is-top .board-score,
.board-row.is-podium .board-name,
.board-row.is-podium .board-score {
  color: var(--green);
}

.board-row.is-podium:not(.is-top) .board-name,
.board-row.is-podium:not(.is-top) .board-score {
  color: var(--ink);
  font-weight: 700;
}

.board-row.is-you {
  background: rgba(25, 195, 125, 0.06);
  border-radius: 10px;
  margin: 0 -0.35rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.board-row.is-flash {
  animation: board-row-flash 1.25s ease;
}

@keyframes board-row-flash {
  0% {
    background: rgba(25, 195, 125, 0.22);
  }
  100% {
    background: transparent;
  }
}

.board-row.is-you.is-flash {
  animation-name: board-row-flash-you;
}

@keyframes board-row-flash-you {
  0% {
    background: rgba(25, 195, 125, 0.28);
  }
  100% {
    background: rgba(25, 195, 125, 0.06);
  }
}

.you-tag {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  margin-left: 0.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.board-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.board-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
  background: #f0eee8;
  flex-shrink: 0;
}

.board-avatar.letter {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

/* [hidden] must win over .board-avatar.letter { display: grid } */
.board-avatar.letter[hidden],
.board-avatar.letter.hidden {
  display: none !important;
}

.board-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.board-name {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-row-meta {
  font-size: 0.75rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-url {
  font-size: 0.82rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-score {
  font-size: 0.98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.board-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0 1.25rem;
}

.board-pagination-top {
  justify-content: flex-end;
  padding: 0;
  max-width: 100%;
}

.board-pagination-top .board-page-btn {
  min-width: 1.85rem;
  height: 1.85rem;
  font-size: 0.8rem;
}

.board-page-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.board-page-btn:hover:not(:disabled):not(.is-current) {
  color: var(--ink);
  background: #f5f3ee;
}

.board-page-btn.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  cursor: default;
}

.board-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.board-page-ellipsis {
  color: var(--faint);
  font-size: 0.85rem;
  padding: 0 0.15rem;
  user-select: none;
}

.board-row.is-empty .muted,
.muted {
  color: var(--faint);
  font-weight: 500;
}

/* —— How it works —— */
.how-section {
  padding: 1.75rem 0 0.5rem;
}

.how-heading {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

.how-steps li {
  min-width: 0;
}

.how-step-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.how-step-copy {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--faint);
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--ink);
}

.product-pay-hint {
  max-width: 560px;
  margin: 0.65rem auto 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.product-pay-hint.hidden {
  display: none;
}

/* —— Rules page —— */
.rules-page {
  padding: 0.5rem 0 2rem;
  max-width: 38rem;
}

.rules-page h1 {
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.rules-lede {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 2rem;
}

.rules-page h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.55rem;
}

.rules-page p,
.rules-page li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

.rules-page p + p {
  margin-top: 0.65rem;
}

.rules-page ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}

.rules-page li {
  margin: 0.3rem 0;
  color: var(--muted);
}

.rules-page li strong,
.rules-page p strong {
  color: var(--ink);
  font-weight: 600;
}

.rules-page a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Focus / play page —— */
body.play-page {
  overflow: hidden;
  height: 100%;
  background: var(--bg);
}

.play-shell {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1100px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding-bottom: 0.75rem;
}

.play-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.play-bar .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.play-bar .btn-ghost:hover {
  color: var(--ink);
}

.play-bar-meta {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.play-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 1rem;
  min-height: 0;
  align-items: start;
}

.play-stage .game-column {
  min-height: 0;
  height: 100%;
  display: flex;
  align-self: stretch;
}

.play-stage .game-frame {
  max-width: min(520px, 100%);
  width: 100%;
  max-height: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0 auto;
}

.play-side {
  align-self: start;
  width: 100%;
  padding: 1rem 0.85rem;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.play-side.is-populated {
  max-height: 100%;
  overflow: auto;
}

.play-side h2 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

@media (max-width: 960px) {
  .product-nudge {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: calc(100% - 1.5rem);
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .board-head {
    flex-direction: column;
    align-items: stretch;
  }

  .board-head-aside {
    align-items: flex-start;
    width: 100%;
  }

  .board-pagination-top {
    justify-content: flex-start;
  }

  .board-action {
    align-self: flex-start;
  }

  .play-stage {
    grid-template-columns: 1fr;
  }

  .play-side {
    display: none;
  }

  .play-stage .game-frame {
    width: min(100%, 480px);
    height: auto;
    max-height: calc(100dvh - 4.5rem);
    aspect-ratio: 400 / 700;
  }
}

@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero .lede br {
    display: none;
  }

  .product-field {
    padding-left: 0.75rem;
  }

  .product-field input {
    font-size: 0.9rem;
  }

  .score-strip {
    gap: 0.75rem 1.25rem;
  }

  .board-section {
    padding: 1.15rem 0.9rem 0.25rem;
  }
}
