:root {
  color-scheme: light;
  --ink: #2f241d;
  --muted: #745f53;
  --soft: rgba(47, 36, 29, 0.68);
  --rose: #b64235;
  --coral: #d47d5d;
  --gold: #c99a43;
  --teal: #6f9b8c;
  --violet: #87635a;
  --wine: #7b2f2a;
  --deep: #f6efe4;
  --paper: #fffaf0;
  --panel: rgba(255, 250, 240, 0.82);
  --panel-strong: rgba(255, 250, 240, 0.94);
  --line: rgba(112, 71, 50, 0.2);
  --shadow: rgba(92, 54, 36, 0.2);
  --header-bg: rgba(255, 250, 240, 0.84);
  --section-bg: rgba(255, 247, 234, 0.78);
  --section-quiet: rgba(247, 237, 222, 0.86);
  --hero-overlay:
    linear-gradient(90deg, rgba(246, 239, 228, 0.92), rgba(246, 239, 228, 0.74) 44%, rgba(246, 239, 228, 0.52)),
    linear-gradient(180deg, rgba(246, 239, 228, 0.28), rgba(246, 239, 228, 0.9));
  --bg-image: url("chinoiserie-courtyard.png");
  --seal-text: #fffaf0;
  --target-symbol: "花";
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --ink: #fff9f6;
  --muted: #f7d8d7;
  --soft: rgba(255, 249, 246, 0.74);
  --rose: #ff6f91;
  --coral: #ff9b73;
  --gold: #ffd184;
  --teal: #7be4d6;
  --violet: #7f6fff;
  --wine: #241226;
  --deep: #130c18;
  --paper: #1f1422;
  --panel: rgba(255, 249, 246, 0.08);
  --panel-strong: rgba(255, 249, 246, 0.12);
  --line: rgba(255, 249, 246, 0.2);
  --shadow: rgba(0, 0, 0, 0.32);
  --header-bg: rgba(19, 12, 24, 0.76);
  --section-bg: rgba(19, 12, 24, 0.84);
  --section-quiet: rgba(36, 18, 38, 0.9);
  --hero-overlay:
    linear-gradient(180deg, rgba(19, 12, 24, 0.32), rgba(19, 12, 24, 0.96)),
    linear-gradient(135deg, rgba(127, 111, 255, 0.16), rgba(123, 228, 214, 0.08) 48%, rgba(255, 111, 145, 0.18));
  --bg-image: url("romance-bg.png");
  --seal-text: #130c18;
  --target-symbol: "♥";
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    var(--hero-overlay),
    var(--bg-image) center / cover fixed,
    var(--deep);
  letter-spacing: 0;
  overflow-x: hidden;
  transition: background-color 220ms ease, color 220ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(112, 71, 50, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 71, 50, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 82%);
}

:root[data-theme="night"] body::before {
  background-image:
    linear-gradient(rgba(255, 249, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 249, 246, 0.05) 1px, transparent 1px);
}

body::after {
  opacity: 0.5;
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(182, 66, 53, 0.08) 47% 53%, transparent 53%),
    linear-gradient(45deg, transparent 0 47%, rgba(111, 155, 140, 0.07) 47% 53%, transparent 53%);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.38) 16%, transparent 62%);
}

:root[data-theme="night"] body::after {
  opacity: 0.2;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 12px clamp(18px, 6%, 82px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(182, 66, 53, 0.26);
  border-radius: 8px;
  color: var(--seal-text);
  background: linear-gradient(135deg, var(--rose), #8f322c);
  box-shadow: inset 0 0 0 4px rgba(255, 250, 240, 0.16), 0 12px 26px var(--shadow);
  font-weight: 900;
}

:root[data-theme="night"] .brand-mark {
  background: linear-gradient(135deg, var(--teal), var(--gold) 48%, var(--rose));
}

.brand strong,
.brand small {
  display: block;
  overflow-wrap: anywhere;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
}

.theme-toggle {
  gap: 8px;
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.52);
  cursor: pointer;
}

:root[data-theme="night"] .theme-toggle {
  background: rgba(255, 249, 246, 0.08);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(182, 66, 53, 0.28);
  color: var(--ink);
  background: rgba(182, 66, 53, 0.08);
  outline: none;
}

.hero,
.page-hero,
.section-band,
.game-section {
  position: relative;
  padding-right: clamp(18px, 6%, 82px);
  padding-left: clamp(18px, 6%, 82px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 5%, 68px);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding-top: 68px;
  padding-bottom: 52px;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--teal));
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: 5.2rem;
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 16px 36px var(--shadow);
}

h2 {
  font-size: 2.44rem;
  line-height: 1.05;
  font-weight: 880;
}

.lead,
.body-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.lead {
  width: min(660px, 100%);
  font-size: 1.22rem;
}

.body-copy {
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 148px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--seal-text);
  background: linear-gradient(135deg, var(--rose), var(--coral));
  box-shadow: 0 14px 32px rgba(182, 66, 53, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(182, 66, 53, 0.28);
  outline: none;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.62);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

:root[data-theme="night"] .button.secondary {
  background: rgba(255, 249, 246, 0.09);
}

.compact-button {
  min-width: 112px;
  min-height: 42px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(182, 66, 53, 0.24);
  border-radius: 50%;
  color: var(--seal-text);
  background: radial-gradient(circle at 35% 28%, #f7ddbd, var(--rose) 56%, #86322b);
  box-shadow: 0 20px 44px var(--shadow);
  cursor: pointer;
}

:root[data-theme="night"] .icon-button {
  color: var(--deep);
  background: linear-gradient(135deg, var(--teal), var(--gold) 42%, var(--rose));
}

.icon-button span {
  font-weight: 900;
}

.hero-note {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: end;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(255, 250, 240, 0.64)),
    var(--panel);
  box-shadow: 0 22px 60px var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-note::before,
.fortune-panel::before,
.letter-card::before,
.capsule-card::before,
.note-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(182, 66, 53, 0.14);
  border-radius: 6px;
  pointer-events: none;
}

:root[data-theme="night"] .hero-note {
  background:
    linear-gradient(180deg, rgba(255, 249, 246, 0.14), rgba(255, 249, 246, 0.06)),
    rgba(19, 12, 24, 0.42);
}

.hero-note span {
  color: var(--rose);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-note strong {
  max-width: 12ch;
  font-size: 2.1rem;
  line-height: 1.12;
}

.page-hero {
  display: grid;
  gap: 20px;
  min-height: 360px;
  padding-top: 72px;
  padding-bottom: 54px;
  align-content: end;
}

.page-hero.compact h1 {
  max-width: 12ch;
  font-size: 4.2rem;
}

.section-band,
.game-section {
  padding-top: 72px;
  padding-bottom: 78px;
  background: linear-gradient(180deg, var(--section-bg), rgba(255, 250, 240, 0.76));
}

:root[data-theme="night"] .section-band,
:root[data-theme="night"] .game-section {
  background: linear-gradient(180deg, rgba(19, 12, 24, 0.82), rgba(36, 18, 38, 0.94));
}

.section-band.quiet {
  background: linear-gradient(180deg, var(--section-quiet), rgba(246, 239, 228, 0.92));
}

:root[data-theme="night"] .section-band.quiet {
  background: linear-gradient(180deg, rgba(36, 18, 38, 0.92), rgba(19, 12, 24, 0.94));
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.promise-grid,
.site-map,
.letter-grid,
.moment-row,
.capsule-grid,
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.promise-card,
.panel,
.panel-link,
.letter-card,
.moment-card,
.capsule-card,
.note-card,
.fortune-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px var(--shadow);
  backdrop-filter: blur(12px);
}

.promise-card,
.panel,
.panel-link,
.letter-card,
.moment-card,
.capsule-card,
.note-card {
  padding: 20px;
}

.panel-link {
  display: grid;
  gap: 12px;
  min-height: 206px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.panel-link:hover,
.panel-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(182, 66, 53, 0.34);
  background: var(--panel-strong);
  outline: none;
}

.promise-card,
.panel,
.letter-card,
.moment-card,
.capsule-card,
.note-card {
  position: relative;
  display: grid;
  gap: 12px;
}

.promise-card span,
.panel span,
.panel-link span,
.letter-card time,
.moment-card time,
.capsule-card span,
.note-card span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promise-card strong,
.panel strong,
.panel-link strong,
.letter-card strong,
.moment-card strong,
.capsule-card strong,
.note-card strong {
  font-size: 1.22rem;
  line-height: 1.28;
}

.promise-card p,
.panel p,
.panel-link p,
.letter-card p,
.moment-card p,
.capsule-card p,
.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.letter-card {
  min-height: 226px;
}

.fortune-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: clamp(22px, 5%, 64px);
  align-items: center;
}

.fortune-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(247, 237, 222, 0.82)),
    var(--panel);
}

:root[data-theme="night"] .fortune-panel {
  background: var(--panel);
}

.fortune-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1.55;
}

.oracle-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.oracle-cup {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.74), rgba(255, 239, 216, 0.84)),
    var(--panel);
  box-shadow: 0 20px 52px var(--shadow);
  overflow: hidden;
}

:root[data-theme="night"] .oracle-cup {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 209, 132, 0.1), transparent 32%),
    var(--panel);
}

.oracle-cup::before {
  content: "";
  position: absolute;
  width: 118px;
  height: 210px;
  border: 1px solid rgba(182, 66, 53, 0.28);
  border-radius: 18px 18px 44px 44px;
  background: linear-gradient(180deg, rgba(182, 66, 53, 0.9), rgba(132, 48, 42, 0.92));
  box-shadow: inset 0 0 0 8px rgba(255, 250, 240, 0.12), 0 28px 48px var(--shadow);
}

.oracle-cup::after {
  content: "签";
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--rose);
  background: var(--paper);
  font-size: 1.48rem;
  font-weight: 900;
}

.fortune-stick {
  position: relative;
  min-height: 330px;
  padding: 30px;
}

.fortune-stick strong {
  display: block;
  color: var(--rose);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.fortune-stick p {
  font-size: 1.5rem;
}

.capsule-card {
  min-height: 218px;
  cursor: pointer;
  text-align: left;
}

.capsule-card[aria-pressed="true"] {
  border-color: rgba(182, 66, 53, 0.44);
  background: var(--panel-strong);
}

.capsule-card strong::after {
  content: " · 未拆";
  color: var(--muted);
  font-size: 0.86rem;
}

.capsule-card[aria-pressed="true"] strong::after {
  content: " · 已拆";
  color: var(--rose);
}

.note-card {
  min-height: 224px;
}

.note-card p {
  font-size: 1.18rem;
  color: var(--ink);
}

.game-section {
  display: grid;
  gap: 22px;
}

.game-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 8px;
  width: min(360px, 100%);
}

.stat {
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.stat strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.game-board {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(182, 66, 53, 0.1), rgba(111, 155, 140, 0.12)),
    rgba(255, 250, 240, 0.58);
  box-shadow: inset 0 0 0 10px rgba(255, 250, 240, 0.22), 0 20px 52px var(--shadow);
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
}

:root[data-theme="night"] .game-board {
  background:
    linear-gradient(135deg, rgba(255, 111, 145, 0.16), rgba(123, 228, 214, 0.08)),
    rgba(255, 249, 246, 0.06);
}

.game-board::before {
  content: "花";
  position: absolute;
  right: clamp(18px, 5%, 52px);
  bottom: clamp(18px, 5%, 46px);
  color: rgba(182, 66, 53, 0.08);
  font-size: 8rem;
  font-weight: 900;
  line-height: 0.8;
}

:root[data-theme="night"] .game-board::before {
  content: "520";
  color: rgba(255, 249, 246, 0.06);
}

.game-message {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.28), rgba(255, 250, 240, 0.08));
  pointer-events: none;
}

:root[data-theme="night"] .game-message {
  background: linear-gradient(180deg, rgba(20, 8, 20, 0.34), rgba(20, 8, 20, 0.14));
}

.game-message strong {
  display: block;
  color: var(--rose);
  font-size: 1.56rem;
}

:root[data-theme="night"] .game-message strong {
  color: var(--gold);
}

.heart-target {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border: 0;
  border-radius: 50%;
  color: var(--seal-text);
  background: radial-gradient(circle at 34% 26%, #f8d9b8, var(--rose) 58%, #8e322c);
  box-shadow: 0 12px 28px rgba(182, 66, 53, 0.26), 0 0 0 8px rgba(182, 66, 53, 0.08);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.86);
  animation: heartIn 240ms ease forwards, heartPulse 940ms ease-in-out infinite;
}

:root[data-theme="night"] .heart-target {
  color: var(--deep);
  background: linear-gradient(135deg, var(--gold), var(--coral), var(--rose));
  box-shadow: 0 12px 28px rgba(255, 111, 145, 0.34), 0 0 0 8px rgba(255, 249, 246, 0.06);
}

.heart-target::before {
  content: var(--target-symbol);
  font-size: calc(var(--size) * 0.42);
  line-height: 1;
}

.heart-target.is-hit {
  animation: hitPop 280ms ease forwards;
  pointer-events: none;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.game-result {
  min-height: 28px;
  margin: 0;
  color: var(--rose);
  font-weight: 700;
  line-height: 1.6;
}

:root[data-theme="night"] .game-result {
  color: var(--gold);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px var(--shadow);
}

.timeline-item time {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.secret {
  position: fixed;
  right: clamp(18px, 4%, 42px);
  bottom: clamp(18px, 4%, 42px);
  z-index: 20;
  width: min(360px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 22px 60px var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.secret.is-lit {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.secret strong {
  color: var(--rose);
}

.secret p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.spark {
  position: fixed;
  left: var(--x);
  top: var(--y);
  z-index: 30;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(201, 154, 67, 0.74);
  pointer-events: none;
  animation: spark 820ms ease-out forwards;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 24px clamp(18px, 6%, 82px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--header-bg);
}

@keyframes heartIn {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes heartPulse {
  50% {
    box-shadow: 0 16px 36px rgba(182, 66, 53, 0.34), 0 0 0 14px rgba(182, 66, 53, 0.04);
  }
}

@keyframes hitPop {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes spark {
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.12);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.18rem;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .site-nav a {
    flex: 1 1 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-note {
    min-height: 260px;
  }

  .promise-grid,
  .site-map,
  .moment-row,
  .capsule-grid,
  .note-grid {
    grid-template-columns: 1fr 1fr;
  }

  .letter-grid,
  .fortune-layout,
  .oracle-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    position: static;
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    width: 100%;
  }

  .site-nav {
    justify-content: stretch;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 8px);
  }

  .hero,
  .page-hero,
  .section-band,
  .game-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    padding-top: 44px;
  }

  h1,
  .page-hero.compact h1 {
    max-width: 100%;
    font-size: 3rem;
  }

  h2 {
    font-size: 1.76rem;
  }

  .lead {
    font-size: 1.06rem;
  }

  .actions,
  .game-controls {
    align-items: stretch;
  }

  .button {
    flex: 1 1 100%;
  }

  .promise-grid,
  .site-map,
  .letter-grid,
  .moment-row,
  .capsule-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .game-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .game-stats {
    width: 100%;
  }

  .game-board {
    min-height: min(430px, 58svh);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h1,
  .page-hero.compact h1 {
    font-size: 2.48rem;
  }

  .hero-note strong {
    max-width: 100%;
    font-size: 1.58rem;
  }

  .fortune-panel p,
  .fortune-stick p {
    font-size: 1.18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
