:root {
  --bg: #f7f0eb;
  --bg-soft: #fff9f4;
  --card: rgba(255, 251, 247, 0.88);
  --card-strong: #fffaf5;
  --line: rgba(124, 78, 67, 0.18);
  --text: #432621;
  --muted: #8c655b;
  --accent: #9e3d4f;
  --accent-soft: rgba(158, 61, 79, 0.12);
  --gold: #c18d4b;
  --shadow: 0 24px 80px rgba(79, 42, 34, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 199, 0.75), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 239, 215, 0.9), transparent 32%),
    linear-gradient(180deg, #f9f4ef 0%, #f7ede7 50%, #f4e7df 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.js-enhanced body.is-intro-locked {
  overflow: hidden;
}

.js-enhanced body.is-password-locked {
  overflow: hidden;
}

.js-enhanced body.is-password-locked .page-shell,
.js-enhanced body.is-password-locked .music-toggle,
.js-enhanced body.is-password-locked .chat-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.js-enhanced body.is-intro-locked .page-shell,
.js-enhanced body.is-intro-locked .music-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.js-enhanced .page-shell,
.js-enhanced .music-toggle {
  transition: opacity 480ms ease, visibility 0ms linear;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
  pointer-events: none;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-6) 0 72px;
  position: relative;
  z-index: 1;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  border: 0;
  border-radius: 999px;
  background: rgba(67, 38, 33, 0.78);
  color: #fff8f3;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(67, 38, 33, 0.18);
  backdrop-filter: blur(12px);
  opacity: 0.9;
}

.music-toggle.is-playing {
  background: rgba(158, 61, 79, 0.9);
}

.password-gate,
.hero,
.section,
.final-card {
  backdrop-filter: blur(12px);
}

.password-gate {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 30;
  padding: 32px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 223, 211, 0.9), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(255, 243, 225, 0.92), transparent 26%),
    radial-gradient(circle at 50% 78%, rgba(205, 168, 154, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(251, 246, 242, 0.98), rgba(244, 233, 226, 0.98));
  transition: opacity 540ms ease, visibility 0ms linear 0ms;
}

.js-enhanced .password-gate {
  display: grid;
}

.password-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0ms, 540ms;
}

.password-gate-panel {
  width: min(540px, calc(100vw - 40px));
  padding: 42px 38px 34px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 252, 248, 0.88), rgba(255, 244, 238, 0.9)),
    var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 72px rgba(88, 45, 36, 0.14);
  position: relative;
  overflow: hidden;
}

.password-gate-panel::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 141, 75, 0.2), transparent 68%);
}

.password-gate-kicker,
.password-gate-copy,
.password-label,
.password-feedback {
  margin: 0;
}

.password-gate-kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(140, 101, 91, 0.74);
}

.password-gate-panel h2 {
  margin-top: 12px;
  max-width: 420px;
}

.password-gate-copy {
  margin-top: 16px;
  color: rgba(67, 38, 33, 0.84);
  line-height: 1.78;
}

.password-form {
  margin-top: 28px;
}

.password-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.password-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.password-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(158, 61, 79, 0.16);
  border-radius: 18px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.password-input:focus {
  outline: 2px solid rgba(158, 61, 79, 0.22);
  outline-offset: 2px;
}

.password-input::placeholder {
  color: rgba(140, 101, 91, 0.68);
}

.password-submit {
  flex: 0 0 auto;
  min-width: 104px;
}

.password-feedback {
  margin-top: 14px;
  min-height: 1.8em;
  color: var(--muted);
  line-height: 1.6;
}

.password-feedback.is-error {
  color: var(--accent);
}

.hero {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0 36px;
  position: relative;
  min-height: min(100vh - 64px, 860px);
  display: grid;
  align-items: center;
}

.hero-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px var(--space-9) var(--space-8);
  border-radius: 40px;
  background:
    linear-gradient(145deg, rgba(255, 252, 248, 0.84), rgba(255, 244, 238, 0.86)),
    var(--bg-soft);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -48px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 141, 75, 0.22), transparent 65%);
}

.eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.hero-copy,
.section-heading p,
.daily-quote,
.daily-meta,
.reveal-copy,
.final-card p {
  line-height: 1.8;
}

.hero-copy {
  max-width: 720px;
  margin: var(--space-5) 0 var(--space-7);
  font-size: 18px;
  text-wrap: pretty;
  color: rgba(67, 38, 33, 0.84);
}

.primary-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #a74057, #7d3244);
  color: #fffaf7;
  font: inherit;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(125, 50, 68, 0.28);
  white-space: nowrap;
}

.chat-intro {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 216, 205, 0.92), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(255, 242, 220, 0.94), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(225, 198, 191, 0.34), transparent 40%),
    linear-gradient(180deg, rgba(251, 246, 242, 0.98), rgba(243, 231, 224, 0.98));
  backdrop-filter: blur(18px) saturate(1.08);
  transition: opacity 680ms ease, transform 820ms cubic-bezier(0.22, 0.7, 0.2, 1), visibility 0ms linear 0ms;
}

.chat-intro::before,
.chat-intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(12px);
}

.chat-intro::before {
  inset: 10% 12% auto;
  height: min(40vw, 300px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
}

.chat-intro::after {
  width: min(48vw, 520px);
  height: min(20vw, 180px);
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 84, 68, 0.12), rgba(129, 84, 68, 0));
}

.js-enhanced .chat-intro {
  display: grid;
}

.chat-intro:focus-visible {
  outline: 2px solid rgba(158, 61, 79, 0.55);
  outline-offset: 10px;
}

.chat-intro.is-finished {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0ms, 0ms, 680ms;
}

.chat-intro-scene {
  position: relative;
  width: min(760px, calc(100vw - 64px));
  min-height: min(72vh, 620px);
  filter: drop-shadow(0 34px 72px rgba(88, 45, 36, 0.12));
}

.chat-intro-scene::before {
  content: "";
  position: absolute;
  inset: 18% 22% 16%;
  border-radius: 40px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.chat-intro-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(18vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 250, 246, 0.95) 0 20%, rgba(255, 220, 203, 0.72) 38%, rgba(198, 118, 92, 0.22) 62%, rgba(198, 118, 92, 0) 100%);
  transform: translate(-50%, -50%) scale(0.58);
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
  z-index: 1;
  transition:
    transform 1120ms cubic-bezier(0.16, 0.84, 0.22, 1),
    opacity 620ms ease 180ms,
    filter 1120ms ease;
}

.chat-bubble,
.chat-intro-core {
  position: absolute;
  border-radius: 30px;
  transition:
    transform 1560ms cubic-bezier(0.16, 0.84, 0.2, 1),
    opacity 620ms ease 680ms,
    box-shadow 1360ms ease;
}

.chat-bubble {
  max-width: min(290px, 42vw);
  padding: 18px 20px 16px;
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 34px rgba(104, 68, 56, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  animation: bubbleDrift 5.6s ease-in-out infinite;
  transform-origin: center center;
  --intro-converge-x: 0px;
  --intro-converge-y: 14px;
  --intro-converge-scale: 0.68;
}

.chat-bubble::after {
  content: "";
  position: absolute;
  bottom: 12px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border-radius: 4px;
  z-index: -1;
}

.chat-bubble-left {
  left: 3%;
  --intro-converge-x: 238px;
}

.chat-bubble-right {
  right: 3%;
  --intro-converge-x: -238px;
}

.chat-bubble-soft {
  background: linear-gradient(180deg, rgba(255, 251, 248, 0.92), rgba(248, 237, 229, 0.9));
  border: 1px solid rgba(162, 117, 95, 0.14);
}

.chat-bubble-soft::after {
  left: 18px;
  background: rgba(247, 236, 228, 0.96);
}

.chat-bubble-strong {
  background: linear-gradient(180deg, rgba(221, 249, 208, 0.95), rgba(188, 234, 175, 0.92));
  border: 1px solid rgba(101, 168, 92, 0.16);
}

.chat-bubble-strong::after {
  right: 18px;
  background: rgba(197, 237, 183, 0.98);
}

.chat-bubble-small {
  max-width: min(240px, 34vw);
  padding-top: 15px;
  padding-bottom: 14px;
}

.chat-bubble-pos-1 {
  top: 5%;
  left: 6%;
  animation-delay: 0s;
}

.chat-bubble-pos-2 {
  top: 8%;
  right: 6%;
  animation-delay: -0.8s;
}

.chat-bubble-pos-3 {
  top: 27%;
  left: 2%;
  animation-delay: -1.6s;
}

.chat-bubble-pos-4 {
  top: 30%;
  right: 2%;
  animation-delay: -2.4s;
}

.chat-bubble-pos-5 {
  bottom: 28%;
  left: 4%;
  animation-delay: -3.2s;
}

.chat-bubble-pos-6 {
  bottom: 31%;
  right: 4%;
  animation-delay: -4s;
}

.chat-bubble-pos-7 {
  bottom: 8%;
  left: 8%;
  animation-delay: -4.8s;
}

.chat-bubble-pos-8 {
  bottom: 10%;
  right: 8%;
  animation-delay: -5.4s;
}

.chat-bubble p,
.chat-bubble-label,
.chat-intro-kicker,
.chat-intro-line,
.chat-intro-hint {
  margin: 0;
}

.chat-bubble-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(120, 90, 80, 0.66);
}

.chat-bubble p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--text);
}

.chat-intro-core {
  left: 50%;
  top: 50%;
  width: min(440px, calc(100vw - 88px));
  padding: 30px 34px;
  transform: translate(-50%, -50%);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.88), rgba(255, 244, 239, 0.84));
  border: 1px solid rgba(160, 117, 96, 0.12);
  box-shadow:
    0 24px 48px rgba(122, 82, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px);
  z-index: 2;
}

.chat-intro-kicker {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(140, 101, 91, 0.74);
}

.chat-intro-line {
  margin-top: 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.28;
  color: var(--text);
  text-wrap: balance;
}

.chat-intro-hint {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(140, 101, 91, 0.84);
  transition: opacity 320ms ease, transform 320ms ease;
}

.chat-intro.is-opening .chat-intro-scene::after {
  animation: introCorePulse 1.84s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.chat-intro.is-opening .chat-intro-hint {
  opacity: 0;
  transform: translateY(-12px);
}

.chat-intro.is-opening .chat-bubble {
  animation: introConverge 1.84s cubic-bezier(0.2, 0.74, 0.16, 1) forwards;
  box-shadow:
    0 10px 24px rgba(104, 68, 56, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 28px rgba(201, 125, 98, 0.18);
}

.chat-intro.is-opening .chat-bubble-left {
  transform: translate(var(--intro-converge-x), var(--intro-converge-y)) scale(var(--intro-converge-scale));
}

.chat-intro.is-opening .chat-bubble-right {
  transform: translate(var(--intro-converge-x), var(--intro-converge-y)) scale(var(--intro-converge-scale));
}

.chat-intro.is-opening .chat-intro-core {
  animation: introMessageCollapse 1.84s cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  box-shadow:
    0 10px 22px rgba(122, 82, 66, 0.06),
    0 0 42px rgba(211, 140, 116, 0.26);
}

@keyframes introConverge {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  62% {
    transform: translate(calc(var(--intro-converge-x) * 0.72), calc(var(--intro-converge-y) * 0.72)) scale(0.84);
    opacity: 1;
  }

  78% {
    transform: translate(calc(var(--intro-converge-x) * 0.88), calc(var(--intro-converge-y) * 0.88)) scale(0.78);
    opacity: 0.9;
  }

  92% {
    transform: translate(calc(var(--intro-converge-x) * 0.975), calc(var(--intro-converge-y) * 0.975)) scale(0.72);
    opacity: 0.58;
  }

  100% {
    transform: translate(var(--intro-converge-x), var(--intro-converge-y)) scale(var(--intro-converge-scale));
    opacity: 0;
  }
}

@keyframes introCorePulse {
  0% {
    transform: translate(-50%, -50%) scale(0.58);
    opacity: 0;
    filter: blur(4px);
  }

  40% {
    transform: translate(-50%, -50%) scale(1.02);
    opacity: 0.72;
    filter: blur(6px);
  }

  84% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
    filter: blur(8px);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.52);
    opacity: 1;
    filter: blur(10px);
  }
}

@keyframes introMessageCollapse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  64% {
    transform: translate(-50%, -50%) scale(0.97);
    opacity: 0.92;
  }

  92% {
    transform: translate(-50%, -50%) scale(0.93);
    opacity: 0.46;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
}

@keyframes bubbleDrift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.reveal-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(158, 61, 79, 0.16);
  color: var(--muted);
  font-family: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 24px;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.reveal-char.active {
  color: var(--accent);
  background: rgba(255, 244, 240, 0.95);
  transform: translateY(-2px);
}

main {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-5);
}

.section {
  padding: 36px;
  border-radius: 32px;
  background: rgba(255, 252, 248, 0.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.daily-section,
.reveal-section {
  min-height: 340px;
}

.daily-section,
.reveal-section,
.final-section {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0 var(--space-6);
}

.daily-panel,
.reveal-panel,
.final-card {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-7);
}

.daily-panel {
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.section-heading {
  max-width: 760px;
  margin-bottom: var(--space-6);
}

.section-heading p {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.daily-card {
  position: relative;
  padding: var(--space-5);
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(158, 61, 79, 0.11);
  box-shadow: 0 18px 38px rgba(94, 58, 48, 0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease, border-color 220ms ease;
  overflow: hidden;
}

.daily-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.daily-card:hover {
  border-color: rgba(158, 61, 79, 0.28);
}

.daily-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.daily-sender {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.daily-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(94, 58, 48, 0.12);
}

.daily-sender-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.daily-date {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.2;
}

.daily-char {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(167, 64, 87, 0.16), rgba(193, 141, 75, 0.12));
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 30px;
}

.daily-quote {
  margin: var(--space-4) 0 var(--space-3);
  font-size: 19px;
  line-height: 1.62;
  word-break: break-word;
  color: var(--text);
}

.daily-highlight {
  color: var(--accent);
  background: rgba(255, 231, 220, 0.86);
  border-radius: 0.35em;
  padding: 0 0.15em;
}

.daily-meta {
  display: flex;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  justify-content: flex-end;
}

.speaker-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(193, 141, 75, 0.12);
}

.reveal-panel {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.95), rgba(255, 244, 238, 0.9));
  border: 1px solid rgba(158, 61, 79, 0.14);
}

.reveal-panel .section-heading {
  margin-bottom: var(--space-5);
}

.reveal-characters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.reveal-copy {
  margin: var(--space-5) 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.final-card {
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(193, 141, 75, 0.18), transparent 30%),
    linear-gradient(140deg, rgba(86, 40, 50, 0.95), rgba(131, 58, 77, 0.9));
  color: #fff7f2;
  box-shadow: 0 24px 80px rgba(88, 37, 49, 0.26);
}

.final-card > * {
  max-width: 760px;
}

.final-card .eyebrow,
.final-card p {
  color: rgba(255, 244, 238, 0.84);
}

.final-confession {
  font-family: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.24;
  color: #fffaf7;
  margin: var(--space-5) 0 var(--space-2);
}

.final-note {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 16px, 1120px);
    padding: var(--space-3) 0 var(--space-8);
  }

  .hero,
  .section,
  .final-card {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .hero {
    padding: 0 var(--space-4);
    min-height: min(100vh - 32px, 760px);
  }

  .music-toggle {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 12px;
  }

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

  .chat-intro {
    padding: 24px;
  }

  .chat-intro-scene {
    width: min(680px, calc(100vw - 48px));
    min-height: min(70vh, 560px);
  }

  .chat-bubble {
    max-width: min(260px, 44vw);
  }

  .chat-intro-core {
    width: min(400px, calc(100vw - 72px));
    padding: 26px 28px;
  }

  main {
    gap: var(--space-5);
    margin-top: var(--space-4);
  }

  .section {
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 24px;
  }

  .daily-section,
  .reveal-section {
    min-height: 320px;
  }

  .daily-section,
  .reveal-section,
  .final-section {
    padding: 0 var(--space-4);
  }

  .section-heading {
    margin-bottom: var(--space-5);
  }

  .daily-panel,
  .reveal-panel,
  .final-card {
    padding: var(--space-7) 28px;
  }

  .daily-grid {
    gap: var(--space-4);
  }

  .daily-card {
    padding: 22px 20px 18px;
  }
}

@media (max-width: 560px) {
  .password-gate {
    padding: 16px;
  }

  .password-gate-panel {
    width: min(100%, calc(100vw - 32px));
    padding: 28px 20px 22px;
    border-radius: 24px;
  }

  .password-row {
    flex-direction: column;
    align-items: stretch;
  }

  .password-input {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

  .password-submit {
    width: 100%;
    min-width: 0;
  }

  .password-feedback {
    font-size: 14px;
  }

  .hero {
    padding: 0 16px;
    min-height: min(100vh - 20px, 680px);
  }

  .hero-card {
    padding: 56px 20px 28px;
    border-radius: 28px;
  }

  .chat-intro {
    padding: 16px;
  }

  .chat-intro-scene {
    width: min(100%, calc(100vw - 32px));
    min-height: 520px;
  }

  .chat-intro-scene::before {
    inset: 22% 10% 18%;
  }

  .chat-bubble {
    max-width: min(236px, 68vw);
    padding: 14px 16px 12px;
    border-radius: 22px;
  }

  .chat-bubble::after {
    width: 14px;
    height: 14px;
    bottom: 10px;
  }

  .chat-bubble-left {
    left: 0;
  }

  .chat-bubble-right {
    right: 0;
  }

  .chat-bubble-pos-1 {
    top: 6%;
    left: 1%;
  }

  .chat-bubble-pos-2 {
    top: 13%;
    right: 1%;
  }

  .chat-bubble-pos-3 {
    top: 29%;
    left: 0;
  }

  .chat-bubble-pos-4 {
    top: 37%;
    right: 0;
  }

  .chat-bubble-pos-5 {
    bottom: 28%;
    left: 2%;
  }

  .chat-bubble-pos-6 {
    bottom: 26%;
    right: 2%;
  }

  .chat-bubble-pos-7 {
    bottom: 9%;
    left: 3%;
  }

  .chat-bubble-pos-8 {
    bottom: 11%;
    right: 3%;
  }

  .chat-bubble-label {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .chat-bubble p {
    font-size: 14px;
    line-height: 1.5;
  }

  .chat-intro-core {
    width: min(100%, calc(100vw - 40px));
    padding: 22px 18px;
    border-radius: 24px;
  }

  .chat-intro-line {
    font-size: clamp(22px, 7vw, 29px);
    line-height: 1.32;
  }

  .chat-intro-hint {
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .chat-intro.is-opening .chat-bubble-left {
    --intro-converge-x: 128px;
    --intro-converge-y: 10px;
    --intro-converge-scale: 0.7;
  }

  .chat-intro.is-opening .chat-bubble-right {
    --intro-converge-x: -128px;
    --intro-converge-y: 10px;
    --intro-converge-scale: 0.7;
  }

  .eyebrow {
    margin-bottom: var(--space-2);
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.16;
  }

  h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.22;
  }

  .hero-copy,
  .section-heading p,
  .reveal-copy,
  .final-card p {
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-copy {
    margin: var(--space-3) 0 var(--space-5);
  }

  .primary-button {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
  }

  .section {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .daily-section,
  .reveal-section {
    min-height: 300px;
  }

  .daily-section,
  .reveal-section,
  .final-section {
    padding: 0 16px;
  }

  .daily-panel,
  .reveal-panel,
  .final-card {
    padding: 32px 20px 24px;
  }

  .daily-card {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .daily-topline {
    align-items: flex-start;
    gap: 10px;
  }

  .daily-sender {
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .daily-avatar {
    width: 38px;
    height: 38px;
  }

  .daily-sender-meta {
    gap: 4px;
  }

  .daily-date {
    font-size: 12px;
  }

  .speaker-badge {
    padding: 3px 8px;
    font-size: 12px;
  }

  .daily-char {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 21px;
    flex: 0 0 auto;
  }

  .daily-quote {
    margin: var(--space-3) 0 var(--space-2);
    font-size: 16px;
    line-height: 1.6;
  }

  .daily-meta {
    font-size: 12px;
  }

  .daily-panel,
  .reveal-panel,
  .final-card {
    border-radius: 20px;
  }

  .reveal-characters {
    gap: 10px;
  }

  .reveal-char {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .final-confession {
    margin: var(--space-4) 0 var(--space-2);
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.28;
  }

  .music-toggle {
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 999px;
    opacity: 0.82;
  }
}

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

  .js-enhanced .hero-card,
  .chat-intro,
  .chat-bubble,
  .chat-intro-core,
  .daily-card,
  .reveal-char {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
