.amara-page {
  background: var(--amara-bg);
  color: var(--amara-warm);
  min-height: 100svh;
}

.amara-page .global-nav {
  background: transparent;
}
.amara-page .global-nav.is-scrolled {
  background: rgba(11, 11, 13, 0.72);
}

.amara-stage {
  position: relative;
  min-height: calc(100svh - 52px);
  overflow: hidden;
  background:
    radial-gradient(80% 50% at 50% 8%, rgba(196, 163, 106, 0.22), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 244, 220, 0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 4px),
    var(--amara-bg);
}

.amara-stage::after {
  content: "";
  position: absolute;
  inset: auto 50% 8% auto;
  width: 420px;
  height: 420px;
  margin-right: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 106, 0.16), transparent 68%);
  pointer-events: none;
  animation: glow-drift 60s linear infinite;
}

@keyframes glow-drift {
  50% { transform: translate3d(12px, -8px, 0); opacity: 0.85; }
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 72px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
  z-index: 1;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.amara-kicker {
  font-size: 12px;
  font-weight: 510;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amara-gold);
}
.amara-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-align: center;
  color: #f6efe3;
  margin: 14px 0 0;
}
.amara-sub {
  margin-top: 14px;
  color: #cbb89a;
  font-size: 17px;
  max-width: 28ch;
  text-align: center;
}
.amara-aside {
  margin-top: 18px;
  color: #8a7a5c;
  font-size: 13px;
}

.btn-amara {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 28px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--amara-gold);
  color: var(--amara-slot);
  font: inherit;
  font-size: 15px;
  font-weight: 510;
  cursor: pointer;
}
.btn-amara:hover { filter: brightness(1.06); }
.btn-amara--ghost {
  background: transparent;
  border: 1px solid var(--amara-gold);
  color: var(--amara-gold);
}

.fan {
  position: relative;
  width: min(340px, 84vw);
  height: 268px;
  margin-bottom: 20px;
}
.card {
  width: min(42vw, 280px);
  aspect-ratio: 2.45 / 4.2;
  border-radius: 10px;
  background: var(--amara-slot);
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(196, 163, 106, 0.35) inset;
  position: relative;
  transform-style: preserve-3d;
}
.card--fan {
  position: absolute;
  left: 50%;
  top: 8px;
  width: min(34vw, 118px);
  margin-left: calc(min(34vw, 118px) / -2);
  transform: translateY(40px) rotate(var(--a));
  opacity: 0;
  transform-origin: 50% 110%;
}
.card--fan-center { z-index: 3; }
.scene.is-active .card--fan {
  animation: fan-in 900ms var(--ease-out) forwards;
}
.scene.is-active .card--fan:nth-child(1) { animation-delay: 0ms; }
.scene.is-active .card--fan:nth-child(2) { animation-delay: 80ms; }
.scene.is-active .card--fan:nth-child(3) { animation-delay: 160ms; }
.scene.is-active .amara-title { animation: rise-in 720ms var(--ease-out) 400ms both; }
.scene.is-active .amara-sub,
.scene.is-active .btn-amara,
.scene.is-active .amara-aside { animation: rise-in 720ms var(--ease-out) 1100ms both; }

@keyframes fan-in {
  to { opacity: 1; transform: translateY(0) rotate(var(--a)); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  border: 2px solid var(--amara-gold);
  box-shadow: inset 0 0 0 1px var(--amara-gold-dim);
  overflow: hidden;
}
.card-face--front {
  transform: none;
  background: var(--amara-slot);
  padding: 6px;
}
#reveal-card .card-face--front { visibility: hidden; }
#reveal-card.is-face-up .card-face--front { visibility: visible; }
#reveal-card.is-face-up .card-face--back { visibility: hidden; }
.card-face--front::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(243, 230, 196, 0.28) 48%, transparent 56%);
  transform: translateX(-80%);
  pointer-events: none;
}
.card.is-revealed .card-face--front::after {
  animation: sheen 480ms ease-in-out 160ms both;
}
@keyframes sheen {
  to { transform: translateX(80%); }
}
.card-face--back {
  background-color: var(--amara-slot);
  background-image:
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(196, 163, 106, 0.14) 9px 10px),
    repeating-linear-gradient(-45deg, transparent 0 9px, rgba(196, 163, 106, 0.14) 9px 10px);
  display: grid;
  place-items: center;
}
.card-face--back span {
  color: var(--amara-gold);
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 510;
}
.card--fan .card-face--front { transform: none; }
.card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(12%) contrast(1.05);
  border-radius: 4px;
  display: block;
}

.card-stage {
  perspective: 1200px;
  min-height: 360px;
  display: grid;
  place-items: center;
}
.card-stage .card {
  opacity: 0;
  transform: translateY(-28px) scale(0.92);
}
.card-stage .card.is-in {
  opacity: 1;
}

.board {
  width: min(420px, 92vw);
}
.ob-count {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #8a7a5c;
  margin-bottom: 10px;
}
.ob-ticks {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
}
.ob-ticks i {
  display: block;
  width: 28px;
  height: 2px;
  background: #2a2418;
}
.ob-ticks i.is-on { background: var(--amara-gold); }
.ob-panel {
  transition: opacity 280ms ease, transform 280ms ease;
}
.ob-panel.is-out {
  opacity: 0;
  transform: translateY(-8px);
}
.ob-panel.is-in {
  opacity: 1;
  transform: translateY(0);
}
.ob-panel h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f6efe3;
  line-height: 1.15;
  margin-bottom: 10px;
}
.ob-help {
  color: #8a7a5c;
  font-size: 14px;
  margin-bottom: 22px;
}
.ob-choices { display: flex; flex-direction: column; gap: 10px; }
.choice,
.time-row input[type="time"] {
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #2a2418;
  background: #14110c;
  color: var(--amara-warm);
  font: inherit;
  cursor: pointer;
}
.choice:hover { border-color: var(--amara-gold); }
.time-row { display: flex; flex-direction: column; gap: 14px; }
.time-row input[type="time"] {
  color-scheme: dark;
  cursor: text;
}

.orb-wrap {
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
}
.orb {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 36%, #fff6d8 0 18%, var(--amara-warm) 32%, var(--amara-gold) 58%, rgba(196, 163, 106, 0.2) 72%, transparent 76%);
  box-shadow: 0 0 80px 40px rgba(196, 163, 106, 0.28);
  transform: scale(0.8);
  opacity: 0;
}
.orb.is-on { opacity: 1; transform: scale(1); transition: opacity 360ms ease, transform 360ms var(--ease-out); }
.breath-label {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amara-warm);
}
.breath-count {
  margin-top: 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: #8a7a5c;
}

.reveal-grid {
  width: min(1120px, 94vw);
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 420px);
  gap: 48px;
  align-items: center;
  justify-content: center;
}
.card-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #f6efe3;
  margin: 8px 0 22px;
}
.read-block {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
}
.read-block.is-in,
.align-word.is-in,
.reveal-copy .phone.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.read-block h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amara-gold);
  margin-bottom: 6px;
}
.read-block p,
.read-block div {
  color: #d8c9a8;
  font-size: 16px;
  line-height: 1.47;
}
.read-block p + p { margin-top: 8px; }
.align-word {
  margin: 8px 0 22px;
  font-size: 13px;
  font-weight: 510;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amara-gold);
  opacity: 0;
}
.wait-link {
  display: inline-block;
  margin-top: 16px;
  color: #8a7a5c;
  font-size: 13px;
}

.phone {
  width: min(220px, 56vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  border: 1px solid #2a2418;
  background: #12100c;
  padding: 18px 14px;
  position: relative;
  z-index: 1;
}
.phone--mini {
  width: 168px;
  aspect-ratio: 9 / 12;
  border-radius: 28px;
  opacity: 0;
  transform: translateY(8px);
}
.amara-widget {
  position: relative;
  min-height: 118px;
  border-radius: 16px;
  overflow: hidden;
}
.amara-widget__state {
  position: absolute;
  inset: 0;
  padding: 14px;
  text-align: left;
  transition: opacity 400ms ease;
}
.amara-widget__state--dim {
  background: #16130e;
  color: #8a7a5c;
  opacity: 1;
}
.amara-widget__state--lit {
  background: #f3ead8;
  color: #1a140c;
  opacity: 0;
}
.amara-widget.is-lit .amara-widget__state--dim { opacity: 0; }
.amara-widget.is-lit .amara-widget__state--lit { opacity: 1; }
.amara-widget small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.amara-widget strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.amara-widget em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  opacity: 0.72;
}

.reset-day {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  background: none;
  border: 0;
  color: #6a5a40;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.amara-foot {
  position: relative;
  z-index: 3;
  padding: 0 20px 28px;
  text-align: center;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.5;
}
.amara-foot p + p { margin-top: 4px; }

@media (max-width: 800px) {
  .reveal-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
  }
  .card-name { font-size: 22px; }
  .orb { width: 148px; height: 148px; }
  .card-stage .card { width: min(72vw, 260px); }
  .fan { height: 200px; }
  .fan .card.card--fan {
    width: 92px;
    margin-left: -46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amara-stage::after { animation: none; }
  .scene.is-active .card--fan,
  .scene.is-active .amara-title,
  .scene.is-active .amara-sub,
  .scene.is-active .btn-amara,
  .scene.is-active .amara-aside {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .card--fan { opacity: 1; transform: rotate(var(--a)); }
  .card.is-revealed .card-face--front::after { animation: none; }
  .orb { opacity: 1; transform: none; }
}
