﻿:root {
  color-scheme: only light;
  --bg: #f4f2ec;
  --bg-2: #edf2ea;
  --bg-3: #dfe6dc;
  --ink: #243126;
  --forest: #4f6f5b;
  --forest-deep: #2d3b32;
  --leaf: #a7c4b5;
  --wood: #d9cbb6;
  --shadow: rgba(22, 36, 28, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Noto Sans SC", "Noto Sans", sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  color: var(--ink);
}

.page {
  width: min(1100px, 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: min(74vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.2rem);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(244, 242, 236, 0.92) 60%,
    rgba(236, 240, 232, 0.96) 100%
  );
  box-shadow: 0 30px 60px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background:
    radial-gradient(closest-side, rgba(79, 111, 91, 0.12), transparent 70%),
    radial-gradient(closest-side, rgba(79, 111, 91, 0.1), transparent 70%);
  transform: translateY(-10%);
  filter: blur(2px);
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.6), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(167, 196, 181, 0.35), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(217, 203, 182, 0.4), transparent 45%);
  opacity: 0.8;
}

.mist {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: screen;
  opacity: 0.6;
  transform: translateY(6px);
  animation: mist-drift 6s ease-in-out infinite;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: float-in 0.9s ease-out both;
}

.content-wide {
  max-width: 860px;
}

.hero-split {
  align-items: flex-start;
}

.section-title {
  margin: 0.8rem 0 0.4rem;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  color: var(--forest-deep);
}

.section-title.light {
  color: #f0f4ef;
}

.reason-block {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid rgba(79, 111, 91, 0.2);
  box-shadow: 0 18px 36px rgba(42, 63, 50, 0.12);
}

.reason-cards {
  display: grid;
  gap: 1rem;
  margin-top: 0.6rem;
}

.reason-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(79, 111, 91, 0.18);
  box-shadow: 0 12px 24px rgba(42, 63, 50, 0.1);
}

.reason-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #2d4c3c;
}

.reason-card p {
  margin: 0.5rem 0;
  line-height: 1.75;
  color: #2c3a31;
}

.panel-switch {
  margin-top: 0.8rem;
  display: inline-flex;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.35rem;
  border: 1px solid rgba(79, 111, 91, 0.25);
}

.panel-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  color: #415246;
  cursor: pointer;
}

.panel-btn.is-active {
  background: #3f5d4b;
  color: #f5f3ee;
  box-shadow: 0 8px 18px rgba(36, 58, 46, 0.3);
}

.panel-track {
  margin-top: 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.6rem;
}

.panel {
  scroll-snap-align: start;
}

.reason-block p {
  margin: 0.6rem 0;
  line-height: 1.75;
  color: #2c3a31;
}

.reason-cta {
  margin-top: 0.9rem;
  font-weight: 600;
  color: #2d4c3c;
}

.timeline-block {
  margin-top: 0;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border-radius: 24px;
  background: linear-gradient(160deg, #0b0b14 0%, #161325 55%, #1b1f33 100%);
  color: #e7ece8;
  box-shadow: 0 20px 40px rgba(10, 15, 12, 0.5);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  border-radius: 18px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item p {
  margin: 0.5rem 0;
  line-height: 1.7;
}

.timeline-heading {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.timeline-heading span {
  opacity: 0.75;
  font-weight: 500;
}

.timeline-item.highlighted,
.timeline-item .highlight {
  color: #f4f2ff;
}

.tone-seduction {
  border-color: rgba(160, 124, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(160, 124, 255, 0.25);
}

.tone-tragedy {
  border-color: rgba(220, 58, 72, 0.55);
  box-shadow: inset 0 0 0 1px rgba(220, 58, 72, 0.3);
}

.tone-betrayal {
  border-color: rgba(120, 168, 138, 0.35);
  box-shadow: inset 0 0 0 1px rgba(120, 168, 138, 0.2);
}

.tone-funeral {
  border-color: rgba(200, 200, 220, 0.3);
  box-shadow: inset 0 0 0 1px rgba(200, 200, 220, 0.18);
}

.quote-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0.2rem;
  color: #c7b6ff;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.quote-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  background: #111815;
  color: #f1f6f2;
  box-shadow: 0 20px 40px rgba(8, 12, 10, 0.6);
}

.quote-dialog::backdrop {
  background: rgba(6, 10, 8, 0.6);
}

.quote-dialog-inner {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.quote-label {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #9fb3a7;
}

.quote-text {
  margin: 0;
  font-size: 1.1rem;
}

.disclaimer {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: #4b5a50;
}

.disclaimer p {
  margin: 0.3rem 0;
}

.link-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.link-card {
  border-radius: 18px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(79, 111, 91, 0.2);
  box-shadow: 0 14px 26px rgba(42, 63, 50, 0.12);
}

.link-footer {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
}

.link-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #2d4c3c;
}

.link-note {
  margin: 0.45rem 0 0.35rem;
  color: #4f5c52;
  font-size: 0.95rem;
}

.link-url {
  display: inline-block;
  color: #2f5c46;
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.report-cards {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.report-switch {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 111, 91, 0.25);
  background: rgba(79, 111, 91, 0.12);
}

.report-btn {
  border: none;
  background: transparent;
  color: #355043;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.report-btn.is-active {
  background: linear-gradient(180deg, #4f6f5b, #3e5a4a);
  color: #f6f3ed;
  box-shadow: 0 8px 18px rgba(47, 77, 60, 0.28);
}

.report-btn:hover {
  transform: translateY(-1px);
}

.report-btn:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

.report-card {
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(79, 111, 91, 0.2);
  box-shadow: 0 18px 34px rgba(42, 63, 50, 0.12);
}

.report-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.report-title {
  margin: 0;
  font-size: 1.25rem;
  color: #2d4c3c;
}

.report-desc {
  margin: 0;
  color: #4b5a50;
  font-size: 0.98rem;
}

.report-source {
  margin: 0;
  color: #6b7b72;
  font-size: 0.85rem;
}

.report-section {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 111, 91, 0.18);
}

.report-section-title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #2d4c3c;
}

.report-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.report-link {
  color: #2f5c46;
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.report-hint {
  margin: 0;
  color: #5a6b61;
  font-size: 0.92rem;
}

.report-steps,
.report-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: #3c5244;
  font-size: 0.95rem;
}

.report-steps li,
.report-list li {
  margin: 0.35rem 0;
}

.template-warning {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(79, 111, 91, 0.12);
  border: 1px dashed rgba(79, 111, 91, 0.4);
  font-weight: 700;
  font-size: 1.02rem;
  color: #2d4c3c;
}

.template-block {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(79, 111, 91, 0.2);
}

.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: #4f6f5b;
  font-weight: 600;
  font-size: 0.9rem;
}

.copy-btn {
  border: 1px solid rgba(79, 111, 91, 0.35);
  background: rgba(255, 255, 255, 0.7);
  color: #2d4c3c;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(42, 63, 50, 0.12);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

.copy-status {
  font-size: 0.8rem;
  color: #6c7d72;
  min-height: 1em;
}

.template-block pre {
  margin: 0.6rem 0 0;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 111, 91, 0.15);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: #2b3f33;
}

.checkin-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 111, 91, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: #2f5c46;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.checkin-btn svg {
  width: 26px;
  height: 26px;
  transform: rotate(-90deg);
}

.checkin-btn .track {
  fill: none;
  stroke: rgba(79, 111, 91, 0.2);
  stroke-width: 3.5;
}

.checkin-btn .progress {
  fill: none;
  stroke: #4f6f5b;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 0.1s linear;
}

.checkin-btn.is-done {
  color: #2d4c3c;
  border-color: rgba(79, 111, 91, 0.4);
  background: rgba(230, 240, 234, 0.9);
}

.checkin-btn.is-done .progress {
  stroke-dashoffset: 0;
}

.checkin-msg {
  font-size: 0.9rem;
  color: #355043;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
}

.checkin-msg.show {
  opacity: 1;
  transform: translateX(0);
}

.hidden-card {
  display: none;
  background: rgba(242, 236, 224, 0.92);
  border-style: dashed;
}

.hidden-card.is-visible {
  display: block;
}

.action-card.hidden-card {
  display: none;
}

.action-card.hidden-card.is-visible {
  display: block;
}

.link-cta {
  margin-top: 0.6rem;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  background: #3f5d4b;
  color: #f5f3ee;
  font-weight: 600;
  cursor: pointer;
}


.confetti-burst {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
}

.confetti-burst span {
  position: absolute;
  width: 6px;
  height: 10px;
  background: linear-gradient(180deg, #f5b971, #d26b5e);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  opacity: 0;
  animation: confetti-fly 0.9s ease forwards;
}

.confetti-burst span:nth-child(2n) {
  background: linear-gradient(180deg, #b7d5c1, #6aa58c);
}

.confetti-burst span:nth-child(3n) {
  background: linear-gradient(180deg, #c9b5ff, #7a6bd6);
}

@keyframes confetti-fly {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), calc(var(--y) - 40px)) rotate(var(--r));
  }
}

.letter-dialog {
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: 520px;
  width: calc(100% - 32px);
  background: #f7efe2;
  color: #3a2f25;
  box-shadow: 0 24px 48px rgba(30, 20, 10, 0.3);
}

.letter-dialog::backdrop {
  background: rgba(30, 20, 10, 0.35);
}

.letter-inner {
  padding: 1.8rem 1.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 235, 221, 0.95)),
    repeating-linear-gradient(180deg, rgba(140, 110, 80, 0.12) 0px, rgba(140, 110, 80, 0.12) 1px, transparent 1px, transparent 28px);
  border: 1px solid rgba(120, 88, 60, 0.28);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.letter-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b4e34;
  font-weight: 700;
}

.letter-body {
  margin: 0.8rem 0 1.2rem;
  line-height: 1.75;
  white-space: pre-wrap;
  font-style: italic;
}

.warn-note {
  margin-top: 1.2rem;
  color: #7a3f2f;
  font-size: 0.92rem;
  background: rgba(230, 210, 198, 0.5);
  border: 1px solid rgba(175, 120, 96, 0.35);
  padding: 0.8rem 1rem;
  border-radius: 14px;
}

.title {
  margin: 0;
  font-family: "Noto Sans SC", "Noto Sans", sans-serif;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #1a2c23;
  animation: title-flicker 2s ease-in-out infinite;
}

.subtitle {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  color: var(--forest);
}

.subtitle-en {
  margin: 0;
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  color: #526557;
}

.note {
  margin: 0.6rem 0 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #3c4a3f;
}

.note-en {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1.05rem);
  color: #5d6b5f;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.kicker {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5b6a60;
}

.action-list {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.action-card {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(79, 111, 91, 0.22);
  box-shadow: 0 12px 26px rgba(42, 63, 50, 0.12);
  color: var(--forest-deep);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-card.tone-1 {
  background: rgba(255, 255, 255, 0.92);
}

.action-card.tone-2 {
  background: rgba(236, 242, 233, 0.96);
}

.action-card.tone-3 {
  background: rgba(230, 241, 242, 0.96);
}

.action-card.tone-4 {
  background: rgba(240, 232, 220, 0.96);
}

.action-card.tone-5 {
  background: rgba(232, 240, 226, 0.96);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 111, 91, 0.38);
  box-shadow: 0 16px 30px rgba(42, 63, 50, 0.16);
}

.action-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.action-footer {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.action-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.action-note {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: #4f5c52;
}

.back-link {
  margin-top: 1.4rem;
  color: #4f6f5b;
  text-decoration: none;
  font-weight: 600;
}

.back-links {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #4f6f5b;
}

.back-sep {
  opacity: 0.5;
}

.back-link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #4f6f5b, #3e5a4a);
  color: #f6f3ed;
  box-shadow: 0 10px 24px rgba(47, 77, 60, 0.35);
  border: 1px solid rgba(79, 111, 91, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: #355043;
  border: 1px solid rgba(79, 111, 91, 0.35);
  backdrop-filter: blur(4px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mist-drift {
  0% {
    transform: translate3d(0, 6px, 0);
  }
  50% {
    transform: translate3d(12px, 0, 0);
  }
  100% {
    transform: translate3d(0, 6px, 0);
  }
}

@keyframes title-flicker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.86;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  body {
    padding: 10px;
  }

  .hero {
    min-height: 82vh;
  }

  .content {
    max-width: 100%;
    gap: 0.5rem;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .hero {
    padding: 14px;
  }

  .content-wide {
    max-width: 100%;
  }

  .panel-track {
    padding-right: 4px;
  }

  .report-switch {
    width: 100%;
    justify-content: space-between;
  }

  .report-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.6rem;
  }

  .report-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    padding-right: 8px;
  }

  .report-card {
    scroll-snap-align: start;
  }

  .report-card {
    padding: 1rem;
  }

  .report-section {
    padding: 0.8rem;
  }

  .template-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content,
  .mist {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
