@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #07131f;
  --ink-2: #0b1c27;
  --ink-3: #112b32;
  --ivory: #f4eddd;
  --muted: #aeb8b4;
  --gold: #e8bf72;
  --gold-soft: #b58a45;
  --emerald: #0c5d49;
  --emerald-light: #4bd29c;
  --line: rgba(232, 191, 114, 0.23);
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Noto Sans SC', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% -10%, rgba(18, 96, 74, .22), transparent 34rem),
    linear-gradient(180deg, #06121e 0%, #081723 45%, #06121c 100%);
  font-family: var(--sans);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image: radial-gradient(circle, rgba(255,255,255,.7) 0 1px, transparent 1.5px);
  background-size: 83px 83px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(6, 18, 30, .82);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--serif); }
.brand-mark { color: var(--gold); filter: drop-shadow(0 0 8px rgba(232,191,114,.5)); }
nav { display: flex; gap: 32px; color: #cbd1ce; font-size: 14px; }
nav a:hover { color: var(--gold); }
.sound-toggle {
  justify-self: end;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.sound-toggle span { color: var(--emerald-light); }

.hero {
  position: relative;
  min-height: 820px;
  padding: 110px 20px 40px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(232,191,114,.08), transparent) 50% 610px / min(900px, 90vw) 1px no-repeat,
    radial-gradient(ellipse at 50% 65%, rgba(31, 125, 88, .2), transparent 32rem);
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  top: 80px;
  width: 28vw;
  height: 550px;
  opacity: .28;
  border: 1px solid var(--gold-soft);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.hero::before { left: -17vw; }
.hero::after { right: -17vw; }
.hero-kicker { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); font-size: 12px; letter-spacing: .28em; }
.hero-kicker span { width: 60px; height: 1px; background: var(--gold-soft); }
.hero h1 { margin: 24px 0 18px; font: 600 clamp(48px, 7vw, 92px)/1.16 var(--serif); letter-spacing: .05em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.9; }
.primary-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 28px; padding-bottom: 6px; color: var(--gold); border-bottom: 1px solid var(--gold-soft); font-size: 14px; }

.altar { position: relative; width: min(610px, 94vw); height: 340px; margin: 36px auto 0; }
.orbit { position: absolute; left: 50%; top: 42%; border: 1px solid rgba(232,191,114,.42); border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
.orbit-one { width: 410px; height: 170px; box-shadow: 0 0 25px rgba(232,191,114,.08); }
.orbit-two { width: 330px; height: 240px; transform: translate(-50%, -50%) rotate(58deg); }
.receipt {
  position: absolute;
  z-index: 3;
  left: 50%; top: 20px;
  width: 176px; height: 242px;
  padding: 38px 28px;
  color: #8d6d38;
  background: linear-gradient(145deg, #fff9e9, #e7d4a9);
  border-radius: 9px 9px 32px 9px;
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 0 30px rgba(255,226,155,.62), inset 0 0 28px rgba(255,255,255,.7);
}
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; background: linear-gradient(135deg, transparent 7px, #e7d4a9 0) 0 0/14px 14px repeat-x; }
.receipt-star { display: block; margin-bottom: 28px; font-size: 24px; }
.receipt i { display: block; width: 100%; height: 6px; margin: 12px 0; border-radius: 9px; background: rgba(141,109,56,.36); }
.receipt i:nth-of-type(2) { width: 72%; }
.receipt i:nth-of-type(3) { width: 86%; }
.receipt strong { display: block; margin-top: 24px; font: 600 14px var(--serif); letter-spacing: .2em; }
.candle { position: absolute; z-index: 4; top: 176px; width: 46px; height: 72px; border: 1px solid rgba(131,255,202,.4); border-radius: 7px; background: linear-gradient(90deg, #0b4639, #148663, #0b4639); box-shadow: 0 0 24px rgba(75,210,156,.22); }
.candle-left { left: 110px; }
.candle-right { right: 110px; }
.candle b, .flame { position: absolute; left: 50%; top: -26px; width: 14px; height: 28px; border-radius: 70% 30% 65% 35%; background: #ffe5a1; transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 18px #f5c45e; animation: flicker 1.6s ease-in-out infinite alternate; }
.altar-base { position: absolute; left: 50%; bottom: 38px; width: 500px; height: 52px; border: 1px solid rgba(232,191,114,.42); border-radius: 50% 50% 12px 12px; background: linear-gradient(#173d37, #081a20); transform: translateX(-50%); box-shadow: 0 18px 35px rgba(0,0,0,.35); }
.disclaimer { color: #71817d; font-size: 11px; letter-spacing: .08em; }

.ritual-section, .lamp-section, .return-section { max-width: 1180px; margin: 0 auto; padding: 110px 28px; }
.section-number { color: var(--gold-soft); font: 500 12px var(--serif); letter-spacing: .2em; }
.section-heading { max-width: 620px; margin: 10px 0 38px; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading p { margin: 0 0 8px; color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.section-heading h2 { margin: 0 0 14px; font: 600 clamp(34px, 5vw, 60px)/1.25 var(--serif); }
.section-heading span { color: var(--muted); line-height: 1.9; }

.wish-picker { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 9px 17px; color: #cbd5d0; border: 1px solid rgba(232,191,114,.28); border-radius: 999px; background: transparent; cursor: pointer; transition: .2s ease; }
.chip:hover, .chip.active { color: #fff5dc; border-color: var(--gold); background: rgba(13,106,78,.7); box-shadow: 0 0 18px rgba(75,210,156,.13); }
.custom-wish { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 0 16px; border: 1px solid rgba(232,191,114,.22); border-radius: 9px; color: var(--gold); background: #07151f; }
.custom-wish input { width: 100%; padding: 14px 0; color: var(--ivory); border: 0; outline: 0; background: transparent; }
.custom-wish input::placeholder { color: #71817d; }

.woodfish-card { position: relative; display: grid; grid-template-columns: 220px 1fr 220px; align-items: center; min-height: 440px; margin-top: 28px; padding: 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 50% 46%, rgba(29,113,82,.26), transparent 270px), #081822; }
.woodfish-card::before { content: ''; position: absolute; inset: 24px; border: 1px solid rgba(232,191,114,.08); border-radius: 50%; pointer-events: none; }
.mantra span { display: block; margin-bottom: 10px; color: var(--gold-soft); font-size: 11px; letter-spacing: .16em; }
.mantra strong { font: 500 22px/1.7 var(--serif); }
.woodfish { position: relative; width: 300px; height: 270px; margin: auto; border: 0; background: transparent; cursor: pointer; }
.woodfish:active .woodfish-body { transform: translate(-50%, -50%) scale(.96); }
.woodfish-body { position: absolute; left: 50%; top: 52%; width: 220px; height: 174px; border-radius: 55% 48% 52% 48%; background: radial-gradient(circle at 37% 31%, #e4b866, #ad7135 46%, #673c20 78%); transform: translate(-50%, -50%); transition: transform .08s; box-shadow: inset -16px -20px 24px rgba(55,28,12,.45), 0 24px 40px rgba(0,0,0,.35), 0 0 35px rgba(232,191,114,.12); }
.woodfish-body::before { content: ''; position: absolute; left: 42px; top: 28px; width: 116px; height: 86px; border: 5px solid rgba(83,44,19,.45); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-18deg); }
.woodfish .cut { position: absolute; right: 22px; top: 64px; width: 84px; height: 11px; border-radius: 12px; background: #4c2a19; transform: rotate(-7deg); box-shadow: inset 0 3px 4px #28130c; }
.woodfish .eye { position: absolute; left: 65px; top: 49px; width: 9px; height: 9px; border-radius: 50%; background: #3d2114; box-shadow: 0 0 0 5px rgba(255,213,127,.16); }
.woodfish-body b { position: absolute; left: 50%; bottom: 27px; color: rgba(255,239,204,.75); font: 500 11px var(--serif); letter-spacing: .18em; transform: translateX(-50%); }
.mallet { position: absolute; right: 8px; top: 20px; width: 36px; height: 112px; border-radius: 20px; background: linear-gradient(90deg,#cc9850,#8a542b); transform: rotate(-44deg); transform-origin: 50% 90%; transition: transform .12s; box-shadow: 0 8px 15px rgba(0,0,0,.28); }
.mallet i { position: absolute; left: 12px; top: 90px; width: 12px; height: 140px; border-radius: 8px; background: #96613a; }
.woodfish.hit .mallet { transform: rotate(-72deg); }
.woodfish-shine { position: absolute; inset: 16px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,130,.2), transparent 62%); }
.tap-progress { text-align: right; }
.progress-copy strong { font: 600 52px var(--serif); color: var(--gold); }
.progress-copy span { color: var(--muted); }
.progress-track { height: 4px; margin: 14px 0; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.08); }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--emerald-light), var(--gold)); transition: width .2s ease; }
.tap-progress p { color: #71817d; font-size: 12px; }
.blessing-burst span { position: absolute; left: 50%; top: 44%; z-index: 4; color: #ffe2a0; font: 500 15px var(--serif); pointer-events: none; animation: rise 1s ease-out forwards; }

.lamp-section { max-width: none; border-top: 1px solid rgba(232,191,114,.09); border-bottom: 1px solid rgba(232,191,114,.09); background: linear-gradient(180deg, rgba(6,18,27,.6), rgba(12,39,41,.44)); }
.lamp-section > * { max-width: 1124px; margin-left: auto; margin-right: auto; }
.lamp-stage { position: relative; display: flex; justify-content: center; align-items: center; gap: 90px; min-height: 420px; }
.lamp-halo { position: absolute; left: calc(50% - 180px); top: 50%; width: 430px; height: 430px; border: 1px solid rgba(232,191,114,.18); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: inset 0 0 90px rgba(75,210,156,.06); }
.main-lamp { position: relative; width: 250px; height: 270px; filter: drop-shadow(0 0 24px rgba(75,210,156,.18)); }
.main-lamp .flame { top: 21px; width: 24px; height: 47px; }
.wick { position: absolute; left: 50%; top: 63px; width: 2px; height: 20px; background: #d7c7a3; }
.lamp-glass { position: absolute; left: 50%; top: 75px; width: 168px; height: 150px; border: 1px solid rgba(137,255,208,.4); border-radius: 32px 32px 18px 18px; background: linear-gradient(90deg, #07382e, #13805e 45%, #07503e 75%, #062d29); transform: translateX(-50%); box-shadow: inset 0 0 30px rgba(174,255,219,.13), 0 0 45px rgba(75,210,156,.2); }
.lamp-glass::after { content: ''; position: absolute; left: 16px; top: 15px; width: 24px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.09); }
.lamp-glass b { position: absolute; left: 50%; top: 50%; font: 500 26px var(--serif); color: #ffe7ac; transform: translate(-50%,-50%); }
.lamp-foot { position: absolute; left: 50%; bottom: 20px; width: 220px; height: 38px; border: 1px solid var(--gold-soft); border-radius: 50%; background: linear-gradient(#735129,#21180e); transform: translateX(-50%); }
.lamp-copy { max-width: 330px; }
.lamp-copy p { font: 500 28px/1.5 var(--serif); }
.gold-button { padding: 14px 28px; color: #10241f; border: 0; border-radius: 999px; background: linear-gradient(135deg, #f1d18d, #c18b42); box-shadow: 0 8px 24px rgba(193,139,66,.18); font-weight: 700; cursor: pointer; }
.gold-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gold-button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.lamp-copy small { display: block; margin-top: 16px; color: #7f8c88; }
.lamp-sea-wrap { padding-top: 42px; }
.lamp-sea-header { display: flex; align-items: end; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lamp-sea-header span, .lamp-sea-header strong { display: block; }
.lamp-sea-header span { color: var(--gold); font: 500 13px var(--serif); letter-spacing: .15em; }
.lamp-sea-header strong { margin-top: 6px; color: var(--muted); font-weight: 400; font-size: 12px; }
.text-button { color: #8c9c96; border: 0; border-bottom: 1px solid #50615c; background: transparent; cursor: pointer; }
.lamp-sea { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; min-height: 130px; padding: 28px 0; }
.mini-lamp { position: relative; height: 70px; border-radius: 18px 18px 7px 7px; background: linear-gradient(90deg, #082d27, #0d684d, #082d27); opacity: .62; box-shadow: 0 0 14px rgba(75,210,156,.14); }
.mini-lamp::before { content: ''; position: absolute; left: 50%; top: -13px; width: 8px; height: 16px; border-radius: 80% 20% 70% 30%; background: #ffd882; transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 10px #efbc5c; }
.mini-lamp.user-lamp { opacity: 1; border: 1px solid var(--gold); }
.mini-lamp.passed { background: linear-gradient(90deg, #49371f, #b27c35, #49371f); animation: passGlow 2.6s ease-in-out infinite alternate; }

.return-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; min-height: 760px; }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.outcome-grid button { padding: 13px; color: #b9c4c0; border: 1px solid rgba(232,191,114,.2); border-radius: 8px; background: rgba(255,255,255,.025); cursor: pointer; }
.outcome-grid button:hover, .outcome-grid button.active { color: var(--gold); border-color: var(--gold); background: rgba(232,191,114,.07); }
.gold-button.wide { width: 100%; margin-top: 16px; }
.return-visual { position: relative; min-height: 520px; padding: 350px 40px 30px; overflow: hidden; text-align: center; border: 1px solid var(--line); border-radius: 240px 240px 20px 20px; background: radial-gradient(circle at 50% 36%, rgba(75,210,156,.13), transparent 180px), rgba(255,255,255,.018); }
.arch { position: absolute; inset: 28px 28px 0; border: 1px solid rgba(232,191,114,.16); border-bottom: 0; border-radius: 220px 220px 0 0; }
.floating-lamp { position: absolute; left: 50%; top: 150px; width: 90px; height: 100px; transform: translateX(-50%); transition: 1.4s cubic-bezier(.22,.7,.25,1); }
.floating-lamp .flame { top: -22px; }
.floating-lamp div { height: 90px; border: 1px solid rgba(105,240,185,.4); border-radius: 20px 20px 8px 8px; background: linear-gradient(90deg,#07342b,#0d6b4f,#07342b); box-shadow: 0 0 35px rgba(75,210,156,.22); }
.return-visual.sent .floating-lamp { top: 62px; left: 78%; transform: translateX(-50%) scale(.55); opacity: .75; }
.return-visual p { position: relative; margin: 0 auto 18px; color: #d4d9d6; font: 500 18px/1.7 var(--serif); }
.next-person { position: relative; color: var(--gold-soft); font-size: 12px; }
.next-person i { margin-left: 8px; font-style: normal; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 38px clamp(20px,5vw,80px); color: #71817d; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }

@keyframes flicker { to { transform: translateX(-50%) rotate(39deg) scale(.88,1.08); opacity: .84; } }
@keyframes rise { from { transform: translate(-50%,0) scale(.85); opacity: 0; } 20% { opacity: 1; } to { transform: translate(-50%,-110px) scale(1.08); opacity: 0; } }
@keyframes passGlow { to { box-shadow: 0 0 28px rgba(232,191,114,.5); } }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: 760px; padding-top: 80px; }
  .woodfish-card { grid-template-columns: 1fr; padding: 26px; }
  .mantra, .tap-progress { text-align: center; }
  .mantra { order: 1; }
  .woodfish { order: 2; }
  .tap-progress { order: 3; width: min(300px,100%); margin: auto; }
  .lamp-stage { flex-direction: column; gap: 10px; padding: 40px 0; text-align: center; }
  .lamp-halo { left: 50%; top: 38%; width: 330px; height: 330px; }
  .lamp-sea { grid-template-columns: repeat(8, 1fr); }
  .return-section { grid-template-columns: 1fr; gap: 30px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p:last-child { text-align: center; }
}

@media (max-width: 540px) {
  .site-header { height: 64px; padding: 0 16px; }
  .brand { font-size: 18px; }
  .sound-toggle { font-size: 12px; }
  .hero { min-height: 690px; }
  .hero h1 { font-size: 46px; }
  .hero-copy { font-size: 14px; }
  .altar { transform: scale(.75); transform-origin: center top; margin-bottom: -80px; }
  .ritual-section, .lamp-section, .return-section { padding: 80px 18px; }
  .section-heading h2 { font-size: 36px; }
  .chip { padding: 8px 12px; font-size: 12px; }
  .woodfish { width: 260px; transform: scale(.88); }
  .lamp-sea { grid-template-columns: repeat(6, 1fr); }
  .outcome-grid { grid-template-columns: 1fr; }
  .return-visual { min-height: 470px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
