:root {
  color-scheme: dark;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  background: #07111b;
  color: #f5eee3;
  font-synthesis: none;
  --gold: #d7a869;
  --gold-light: #f4d6a7;
  --muted: rgba(245, 238, 227, 0.62);
  --line: rgba(255, 239, 213, 0.18);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; overflow: hidden; }

button, input { font: inherit; }

button { color: inherit; }

.app {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #06101a;
}

.app[data-mode="sutra"] {
  --gold: #c99a59;
  --gold-light: #ecd1a2;
}

.app[data-mode="guided"] {
  --gold: #92aeb3;
  --gold-light: #d3e3df;
}

.scene,
.veil,
.sound-wave {
  position: absolute;
  inset: 0;
}

.scene {
  z-index: -3;
  background: url("./assets/singing-bowl-night.jpg") center 58% / cover no-repeat;
  transform: scale(1.015);
  transition: transform 12s ease-out, filter 2s ease;
}

.scene::before,
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.scene::before { background: url("./assets/guided-ocean-night.jpg") center 55% / cover no-repeat; }
.scene::after { background: url("./assets/diamond-sutra-night.jpg") center 58% / cover no-repeat; }

.app[data-mode="sutra"] .scene::after { opacity: 1; }
.app[data-mode="sutra"] .sound-wave { display: none; }
.app[data-mode="guided"] .scene::before { opacity: 1; }

.veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 8, 14, 0.45), transparent 34%, transparent 68%, rgba(1, 8, 14, 0.28)),
    linear-gradient(180deg, rgba(1, 8, 14, 0.42), transparent 24%, transparent 64%, rgba(1, 8, 14, 0.8));
}

.sound-wave { z-index: -1; pointer-events: none; }

.sound-wave i {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 34vw;
  aspect-ratio: 1;
  border: 1px solid rgba(221, 171, 105, 0.26);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
}

.app.is-ringing .sound-wave i { animation: ripple 6s cubic-bezier(.2,.58,.25,1) forwards; }
.app.is-ringing .sound-wave i:nth-child(2) { animation-delay: .55s; }
.app.is-ringing .sound-wave i:nth-child(3) { animation-delay: 1.1s; }
.app.is-ringing .sound-wave i:nth-child(4) { animation-delay: 1.65s; }

@keyframes ripple {
  0% { opacity: .52; transform: translate(-50%, -50%) scale(.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
}

.topbar,
.footer {
  position: absolute;
  z-index: 5;
  left: clamp(22px, 4vw, 64px);
  right: clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity .9s ease, transform .9s ease;
}

.topbar { top: max(24px, env(safe-area-inset-top)); }
.footer { bottom: max(20px, env(safe-area-inset-bottom)); color: rgba(245,238,227,.42); font-size: 12px; letter-spacing: .12em; }

.brand { color: #f5eee3; text-decoration: none; display: flex; gap: 12px; align-items: center; font-size: 15px; letter-spacing: .18em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(244,214,167,.55); border-radius: 50%; color: var(--gold-light); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.nav-link {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(245,238,227,.68);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.nav-link:hover { color: #fff; background: rgba(5,14,23,.38); border-color: var(--line); }
.follow-link { color: var(--gold-light); border-color: rgba(244,214,167,.22); background: rgba(5,14,23,.24); backdrop-filter: blur(12px); }
.follow-link span { margin-left: 6px; font-family: ui-sans-serif, system-ui, sans-serif; }

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 14, 23, .24);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.intro {
  position: absolute;
  z-index: 2;
  top: 16%;
  left: clamp(28px, 8vw, 140px);
  max-width: 520px;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.eyebrow { margin: 0 0 18px; color: var(--gold-light); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .34em; }
h1 { margin: 0; font-size: clamp(42px, 5.4vw, 82px); font-weight: 400; line-height: 1.17; letter-spacing: .08em; text-shadow: 0 3px 30px rgba(0,0,0,.35); }
.subcopy { color: var(--muted); margin: 22px 0 0; font-size: 15px; letter-spacing: .16em; }

.ritual-panel {
  position: absolute;
  z-index: 4;
  right: clamp(28px, 7vw, 120px);
  top: 49%;
  width: min(420px, calc(100vw - 56px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(7, 17, 27, .72), rgba(7, 17, 27, .38));
  box-shadow: 0 28px 70px rgba(0,0,0,.25);
  backdrop-filter: blur(20px) saturate(115%);
  transform: translateY(-44%);
  transition: opacity .9s ease, transform .9s ease;
}

.personal-stats { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,239,213,.12); }
.stats-heading { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; font-family: ui-sans-serif, system-ui, sans-serif; }
.stats-heading span { color: rgba(245,238,227,.72); font-size: 12px; letter-spacing: .13em; }
.stats-heading small { color: rgba(245,238,227,.34); font-size: 9px; font-weight: 400; letter-spacing: .06em; }
.stats-values { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; gap: 18px; }
.stats-values i { width: 1px; height: 30px; background: rgba(255,239,213,.14); }
.stats-values p { margin: 0; }
.stats-values p:last-child { text-align: right; }
.stats-values span,
.stats-values strong { display: block; }
.stats-values span { margin-bottom: 6px; color: rgba(245,238,227,.4); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; letter-spacing: .1em; }
.stats-values strong { color: var(--gold-light); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 17px; font-weight: 400; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.field-label { margin: 0 0 16px; color: rgba(245,238,227,.72); font-size: 13px; letter-spacing: .12em; }
.mode-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode-option {
  min-height: 62px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  color: rgba(245,238,227,.62);
  cursor: pointer;
  transition: .25s ease;
}
.mode-symbol { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid rgba(245,238,227,.2); border-radius: 50%; color: var(--gold-light); }
.mode-option strong, .mode-option small { display: block; }
.mode-option strong { font-size: 13px; font-weight: 500; letter-spacing: .1em; }
.mode-option small { margin-top: 4px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; letter-spacing: .08em; opacity: .55; }
.mode-option:hover { background: rgba(255,255,255,.08); color: #fff; }
.mode-option.is-selected { border-color: rgba(224,177,113,.55); background: rgba(199,145,77,.14); color: var(--gold-light); }
.mode-option.is-selected .mode-symbol { border-color: rgba(244,214,167,.55); background: rgba(199,145,77,.13); }
.guide-block { margin-top: 18px; }
.guide-heading { display: flex; align-items: center; justify-content: space-between; }
.guide-heading .field-label { margin-bottom: 10px; }
.guide-heading small { margin-bottom: 10px; color: rgba(245,238,227,.36); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; letter-spacing: .1em; }
.guide-list { display: grid; gap: 8px; }
.guide-option {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,239,213,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.04);
  color: rgba(245,238,227,.7);
  text-align: left;
  cursor: pointer;
  transition: .25s ease;
}
.guide-option:hover { background: rgba(255,255,255,.075); color: #fff; }
.guide-option.is-selected { border-color: rgba(211,227,223,.5); background: rgba(122,158,164,.14); color: var(--gold-light); }
.guide-play { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(245,238,227,.2); border-radius: 50%; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; }
.guide-copy { min-width: 0; }
.guide-copy strong, .guide-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-copy strong { font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.guide-copy small { margin-top: 5px; color: rgba(245,238,227,.44); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; letter-spacing: .04em; }
.guide-time { color: rgba(245,238,227,.5); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; white-space: nowrap; }
.guide-credit { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(245,238,227,.4); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; letter-spacing: .04em; }
.guide-credit a { color: rgba(211,227,223,.72); text-decoration: none; }
.guide-credit a:hover { color: #fff; }
.duration-block { margin-top: 21px; }
.duration-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.duration {
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: rgba(245,238,227,.68);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: .25s ease;
}
.duration span { font-size: 9px; letter-spacing: .08em; opacity: .55; }
.duration:hover { background: rgba(255,255,255,.08); color: #fff; }
.duration.is-selected { border-color: rgba(224,177,113,.58); background: rgba(199,145,77,.15); color: var(--gold-light); box-shadow: inset 0 0 18px rgba(215,168,105,.05); }
.guided-duration { min-height: 50px; margin: 0; display: flex; align-items: center; padding: 0 16px; border: 1px solid rgba(211,227,223,.18); border-radius: 14px; background: rgba(122,158,164,.08); color: rgba(245,238,227,.62); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; letter-spacing: .06em; }
.app[data-mode="guided"] .personal-stats { display: none; }

.start-button {
  width: 100%;
  height: 58px;
  margin-top: 22px;
  border: 1px solid rgba(244,214,167,.52);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(154,99,45,.88), rgba(218,166,96,.9));
  box-shadow: 0 10px 34px rgba(163,108,47,.22), inset 0 1px rgba(255,255,255,.25);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  letter-spacing: .2em;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.start-button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.start-button:active { transform: translateY(0) scale(.99); }
.start-icon { width: 10px; height: 10px; border-radius: 50%; background: #fff1d9; box-shadow: 0 0 0 5px rgba(255,241,217,.12); }
.headphone-note { margin: 14px 0 -2px; color: rgba(245,238,227,.38); text-align: center; font-size: 10px; letter-spacing: .12em; }

.timer-view,
.completion {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 18%;
  width: min(620px, calc(100vw - 48px));
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.timer-label { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: .28em; }
.timer { font-family: ui-sans-serif, system-ui, sans-serif; font-size: clamp(48px, 7vw, 88px); font-weight: 200; letter-spacing: .09em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.breath-copy { color: var(--gold-light); margin: 10px 0 0; font-size: 13px; letter-spacing: .22em; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .42; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }

.session-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  width: min(510px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .9s ease, transform .9s ease;
}
.control-button,
.hold-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5,14,23,.44);
  backdrop-filter: blur(14px);
  min-height: 42px;
  padding: 0 18px;
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
}
.hold-button { position: relative; overflow: hidden; min-width: 105px; }
.hold-button span { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: rgba(215,168,105,.26); }
.hold-button.is-holding span { animation: hold 1s linear forwards; }
@keyframes hold { to { transform: scaleX(1); } }
.volume-control { display: flex; align-items: center; gap: 10px; flex: 1; }
.volume-control svg { width: 18px; fill: none; stroke: rgba(245,238,227,.65); stroke-width: 1.4; }
input[type="range"] { width: 100%; accent-color: var(--gold); }

.about-dialog {
  width: min(880px, calc(100vw - 40px));
  max-width: 880px;
  max-height: min(780px, calc(100svh - 40px));
  padding: 0;
  border: 1px solid rgba(244,214,167,.22);
  border-radius: 28px;
  background: rgba(7,17,27,.94);
  color: #f5eee3;
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
  overflow: auto;
  overscroll-behavior: contain;
  backdrop-filter: blur(28px) saturate(120%);
}
.about-dialog::backdrop { background: rgba(0,5,10,.7); backdrop-filter: blur(10px); }
.about-page { position: relative; padding: clamp(34px, 6vw, 70px); }
.about-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: rgba(245,238,227,.7);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}
.about-page h2 { max-width: 650px; margin: 0; font-size: clamp(32px, 4.8vw, 58px); font-weight: 400; line-height: 1.25; letter-spacing: .06em; }
.about-lead { max-width: 690px; margin: 22px 0 32px; color: rgba(245,238,227,.63); font-size: 14px; line-height: 2; letter-spacing: .08em; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.benefit-grid article { min-height: 180px; padding: 18px; border: 1px solid rgba(255,239,213,.11); border-radius: 18px; background: rgba(255,255,255,.025); }
.benefit-grid article > span { color: rgba(244,214,167,.4); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; letter-spacing: .16em; }
.benefit-grid h3 { margin: 30px 0 10px; color: var(--gold-light); font-size: 15px; font-weight: 400; letter-spacing: .1em; }
.benefit-grid p { margin: 0; color: rgba(245,238,227,.5); font-size: 12px; line-height: 1.8; }
.about-start { margin-top: 28px; padding: 22px 24px; border-left: 1px solid rgba(244,214,167,.45); background: linear-gradient(90deg, rgba(199,145,77,.09), transparent); }
.about-start > p { margin: 0 0 14px; color: var(--gold-light); font-size: 13px; letter-spacing: .12em; }
.about-start ol { margin: 0; padding-left: 20px; display: flex; flex-wrap: wrap; gap: 10px 36px; color: rgba(245,238,227,.58); font-size: 12px; line-height: 1.8; }
.about-note { margin: 24px 0 0; color: rgba(245,238,227,.34); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; line-height: 1.8; letter-spacing: .04em; }

.toys-dialog { width: min(960px, calc(100vw - 40px)); max-width: 960px; }
.toys-page h2 { max-width: 720px; }
.toy-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toy-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,239,213,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
  color: #f5eee3;
  text-decoration: none;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.toy-card:hover { transform: translateY(-4px); border-color: rgba(244,214,167,.38); box-shadow: 0 22px 54px rgba(0,0,0,.28); }
.toy-card-visual { position: relative; height: 188px; display: block; overflow: hidden; }
.toy-card-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 60%; background: linear-gradient(transparent, rgba(7,17,27,.86)); }
.toy-card-visual > b { position: absolute; z-index: 2; left: 28px; top: 29px; color: #f7e6c7; font-size: 52px; font-weight: 400; letter-spacing: .08em; }
.toy-card-visual > small { position: absolute; z-index: 2; left: 30px; bottom: 21px; color: rgba(245,238,227,.65); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; letter-spacing: .14em; }
.toy-card-cicada .toy-card-visual {
  background:
    radial-gradient(ellipse at 75% 26%, rgba(255,234,171,.25) 0 2%, transparent 25%),
    linear-gradient(112deg, rgba(9,23,22,.22), rgba(30,70,55,.72)),
    repeating-linear-gradient(89deg, transparent 0 73px, rgba(185,221,166,.06) 74px 76px),
    #0c2420;
}
.toy-card-cicada .toy-card-visual i { position: absolute; right: 18%; top: -16%; width: 82px; height: 135%; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(255,233,170,.3), transparent); transform: rotate(-13deg); filter: blur(5px); }
.toy-card-finance .toy-card-visual { background: radial-gradient(circle at 76% 34%, rgba(227,165,92,.18), transparent 34%), linear-gradient(135deg, #291a18, #151b2a 70%); }
.toy-card-finance .toy-card-visual > b { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 44px; font-weight: 200; letter-spacing: .06em; }
.toy-card-finance .toy-card-visual > small { top: 88px; bottom: auto; }
.toy-card-finance svg { position: absolute; left: 28px; right: 26px; bottom: 22px; width: calc(100% - 54px); height: 78px; fill: none; stroke: #dfa866; stroke-width: 2; filter: drop-shadow(0 0 7px rgba(223,168,102,.28)); }
.toy-card-body { min-height: 226px; padding: 23px 25px 24px; display: flex; flex-direction: column; }
.toy-kicker { color: var(--gold-light); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; letter-spacing: .15em; }
.toy-card-body > strong { margin-top: 13px; font-size: 24px; font-weight: 400; letter-spacing: .06em; }
.toy-card-body > span { margin-top: 13px; color: rgba(245,238,227,.55); font-size: 12px; line-height: 1.9; letter-spacing: .045em; }
.toy-card-body em { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 7px; font-style: normal; font-family: ui-sans-serif, system-ui, sans-serif; }
.toy-card-body em span { padding: 6px 9px; border: 1px solid rgba(255,239,213,.1); border-radius: 999px; color: rgba(245,238,227,.42); font-size: 9px; }
.toy-card-body em b { margin-left: auto; color: var(--gold-light); font-size: 11px; font-weight: 400; letter-spacing: .06em; }
.toys-follow { margin-top: 18px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(255,239,213,.1); border-radius: 16px; background: rgba(255,255,255,.025); }
.toys-follow span { color: rgba(245,238,227,.5); font-size: 12px; letter-spacing: .08em; }
.toys-follow a { flex: 0 0 auto; color: var(--gold-light); text-decoration: none; font-size: 12px; letter-spacing: .08em; }

.completion h2 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 56px); font-weight: 400; letter-spacing: .08em; }
.completion > p:not(.eyebrow) { color: var(--muted); letter-spacing: .1em; }
.text-button { margin-top: 18px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(244,214,167,.5); background: transparent; color: var(--gold-light); letter-spacing: .16em; cursor: pointer; }

.app[data-state="running"] .intro,
.app[data-state="paused"] .intro,
.app[data-state="ending"] .intro,
.app[data-state="running"] .ritual-panel,
.app[data-state="paused"] .ritual-panel,
.app[data-state="ending"] .ritual-panel,
.app[data-state="running"] .footer,
.app[data-state="paused"] .footer,
.app[data-state="ending"] .footer { opacity: 0; pointer-events: none; transform: translateY(14px); }
.app[data-state="running"] .timer-view,
.app[data-state="paused"] .timer-view,
.app[data-state="ending"] .timer-view,
.app[data-state="running"] .session-controls,
.app[data-state="paused"] .session-controls,
.app[data-state="ending"] .session-controls { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.app[data-state="running"] .scene,
.app[data-state="paused"] .scene,
.app[data-state="ending"] .scene { transform: scale(1.06); filter: brightness(.86); }
.app[data-state="paused"] .breath-copy { animation-play-state: paused; opacity: .45; }
.app[data-state="ending"] .breath-copy { animation: none; opacity: .62; }
.control-button:disabled { opacity: .35; cursor: default; }
.app[data-state="complete"] .intro,
.app[data-state="complete"] .ritual-panel { opacity: 0; pointer-events: none; }
.app[data-state="complete"] .completion { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

button:focus-visible,
input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 760px) {
  .topbar { left: 20px; right: 20px; }
  .top-actions { gap: 4px; }
  .nav-link { min-height: 34px; padding: 0 8px; font-size: 10px; }
  .icon-button { width: 36px; height: 36px; }
  .scene { background-position: 51% 67%; }
  .scene::before { background-position: 58% 55%; }
  .scene::after { background-position: 50% 62%; }
  .veil { background: linear-gradient(180deg, rgba(2,9,15,.42), rgba(2,9,15,.03) 42%, rgba(2,9,15,.78)); }
  .intro { top: 11%; left: 28px; right: 28px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .subcopy { font-size: 13px; }
  .ritual-panel { top: auto; right: 20px; bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px)); width: calc(100vw - 40px); padding: 18px; transform: none; }
  .personal-stats { margin-bottom: 15px; padding-bottom: 14px; }
  .stats-heading { margin-bottom: 9px; }
  .stats-values strong { font-size: 15px; }
  .mode-option { min-height: 55px; padding: 8px 10px; }
  .mode-symbol { width: 27px; height: 27px; flex-basis: 27px; }
  .duration-block { margin-top: 16px; }
  .field-label { margin-bottom: 11px; }
  .duration { height: 52px; }
  .footer { display: none; }
  .timer-view, .completion { top: 13%; }
  .sound-wave i { top: 67%; width: 65vw; }
  .session-controls { bottom: max(24px, env(safe-area-inset-bottom)); }
  .volume-control { display: none; }
  .control-button, .hold-button { flex: 1; }
  .about-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); border-radius: 22px; }
  .about-page { padding: 44px 22px 30px; }
  .about-close { top: 14px; right: 14px; }
  .about-page h2 { font-size: 32px; }
  .about-lead { margin: 18px 0 24px; line-height: 1.85; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-grid article { min-height: 155px; padding: 15px; }
  .benefit-grid h3 { margin-top: 20px; }
  .about-start ol { display: block; }
  .toy-gallery { grid-template-columns: 1fr; }
  .toy-card-visual { height: 142px; }
  .toy-card-body { min-height: 200px; padding: 20px; }
  .toy-card-visual > b { left: 20px; top: 22px; font-size: 40px; }
  .toy-card-visual > small { left: 22px; bottom: 16px; }
  .toy-card-finance svg { left: 20px; width: calc(100% - 40px); bottom: 10px; }
  .toys-follow { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-height: 700px) and (max-width: 760px) {
  .intro { top: 11%; }
  .subcopy { display: none; }
  .ritual-panel { bottom: 12px; }
  .personal-stats { margin-bottom: 10px; padding-bottom: 9px; }
  .stats-heading { display: none; }
  .stats-values span { margin-bottom: 3px; }
  .headphone-note { display: none; }
  .mode-option { min-height: 48px; }
  .duration { height: 45px; }
  .start-button { height: 50px; margin-top: 14px; }
}

@media (max-width: 430px) {
  .brand { font-size: 0; gap: 0; }
  .brand-mark { font-size: 15px; }
  .about-page h2 { font-size: 28px; }
  .top-actions .nav-link { padding-inline: 6px; font-size: 9px; }
}

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