/* =========================================================================
   Archetype Reveal scene (post 2026-04-26 restructure)
   --------------------------------------------------------------------------
   Layout: HERO (kanji + name + Koro dialogue + Dojo CTA) → TAKEAWAY GRID
   (3 cards: email · Koro Weekly · See offers) → SHARE → OFFERS overlay.
   See QUIZ_REVIEW.md jury verdict for the rationale (decluttering, single
   primary action, deferring monetization to a focused offers screen).

   The .blueprint-* styles below are still used by the in-dojo reveal
   overlay (frontend/dojo-reveal.ts) — keep them.
   ========================================================================= */

.reveal-scene {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: url("/assets/environments/archetype_reveal.webp") center / cover no-repeat,
    radial-gradient(ellipse at center, #1a1408 0%, var(--color-bg-deep) 70%);
  overflow-y: auto;
  transition: opacity 0.5s ease;
}

/* --- Celebration interlude (plays before content appears) --- */

.reveal-interlude {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 32px;
  transition: opacity 0.6s ease;
}
.reveal-interlude.interlude-done {
  opacity: 0;
  pointer-events: none;
}
.reveal-koro-run {
  position: relative;
  /* Hero-sized celebrating Koro for the results page — bigger than
     the in-game sprite since this is the moment the user has been
     working toward. */
  width: 220px;
  height: 220px;
  animation: koroRunAcross 2s ease-in-out forwards;
}
@keyframes koroRunAcross {
  0%   { transform: translateX(-60vw) scale(0.8); opacity: 0; }
  15%  { opacity: 1; }
  50%  { transform: translateX(0) scale(1); }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
.reveal-koro-run .koro-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.reveal-koro-run .koro-sprite.koro-active {
  opacity: 1;
  animation: koroBounce 0.6s ease infinite;
}
@keyframes koroBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.reveal-venn-finale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease 0.8s, transform 0.8s cubic-bezier(0.2, 0, 0.2, 1) 0.8s;
}
.reveal-venn-finale.venn-show {
  opacity: 1;
  transform: scale(1);
}
.reveal-venn-finale .ikigai-diagram svg {
  width: 200px;
  height: 200px;
}

/* --- Main reveal layout --- */

.reveal-layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  transition: opacity 0.6s ease;
}

/* --- Hero block --- */

.reveal-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.reveal-kanji-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.reveal-kanji {
  font-family: var(--font-kanji);
  font-size: clamp(72px, 18vw, 140px);
  color: var(--color-gold);
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
  text-shadow:
    0 0 40px rgba(255, 209, 102, 0.4),
    0 0 80px rgba(255, 209, 102, 0.2);
}
.reveal-kanji.reveal-animate {
  opacity: 1;
  transform: scale(1);
}
.reveal-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 2.4vw, 22px);
  color: #ffeac6;
  letter-spacing: 2px;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
  /* Pixel-art letter lift — hard drop shadow + soft halo for legibility
     on the warm reveal background art. */
  text-shadow:
    2px 2px 0 rgba(15, 14, 23, 0.95),
    -1px -1px 0 rgba(15, 14, 23, 0.6),
    0 0 18px rgba(15, 14, 23, 0.7);
}
.reveal-name.reveal-animate {
  opacity: 1;
  transform: translateY(0);
}
.reveal-description {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 19px);
  color: #fff5d6;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
  text-shadow:
    1px 2px 0 rgba(15, 14, 23, 0.9),
    0 0 14px rgba(15, 14, 23, 0.65);
}
.reveal-description.reveal-animate {
  opacity: 1;
  transform: translateY(0);
}

.reveal-koro-dialogue {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 19px);
  font-style: italic;
  color: #fff5d6;
  line-height: 1.55;
  max-width: 540px;
  margin: 8px 0 0;
  padding: 14px 4px;
  border-top: 1px solid rgba(255, 209, 102, 0.28);
  border-bottom: 1px solid rgba(255, 209, 102, 0.28);
  text-shadow:
    1px 2px 0 rgba(15, 14, 23, 0.9),
    0 0 14px rgba(15, 14, 23, 0.65);
}
.reveal-koro-dialogue::before {
  content: "“";
  color: var(--color-gold);
  margin-right: 4px;
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.2em;
}
.reveal-koro-dialogue::after {
  content: "”";
  color: var(--color-gold);
  margin-left: 4px;
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.2em;
}

.reveal-confidence {
  font-family: var(--font-display);
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 1.5px;
  color: var(--color-gold);
  opacity: 0.85;
  text-transform: lowercase;
  margin: 0;
  text-shadow: 1px 1px 0 rgba(15, 14, 23, 0.9);
}
.reveal-hero-cta-sub {
  text-shadow: 1px 1px 0 rgba(15, 14, 23, 0.85);
}

.reveal-hero-cta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.reveal-dojo-cta {
  display: inline-block;
  padding: 18px 40px;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: 2px;
  color: var(--color-bg-deep);
  background: var(--color-gold);
  border: 3px solid var(--color-bg-deep);
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--color-bg-deep), 0 0 0 0 rgba(255, 209, 102, 0.5);
  cursor: pointer;
  min-height: 52px;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease;
  animation: revealCtaPulse 2.8s ease-in-out infinite;
}
.reveal-dojo-cta:hover,
.reveal-dojo-cta:focus-visible {
  background: var(--color-pixel-warm);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-bg-deep), 0 0 24px 4px rgba(255, 209, 102, 0.5);
  outline: none;
}
.reveal-dojo-cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-bg-deep);
}
@keyframes revealCtaPulse {
  0%, 100% { box-shadow: 0 4px 0 var(--color-bg-deep), 0 0 0 0 rgba(255, 209, 102, 0); }
  50%      { box-shadow: 0 4px 0 var(--color-bg-deep), 0 0 18px 3px rgba(255, 209, 102, 0.45); }
}
.reveal-hero-cta-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-pixel-cream);
  opacity: 0.5;
  margin: 0;
}

/* --- Take it with you grid --- */

.reveal-takeaways {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.reveal-takeaways-heading {
  font-family: var(--font-display);
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0;
}
.takeaway-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.takeaway-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  /* Pixel-paper surface — opaque cream so the dark text is readable
     against the busy reveal background. */
  background: rgba(254, 246, 228, 0.96);
  border: 3px solid var(--color-bg-deep);
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(15, 14, 23, 0.5);
  transition: border-color 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.takeaway-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(15, 14, 23, 0.5);
}
.takeaway-card-offer {
  background: rgba(255, 235, 178, 0.96);
  border-color: var(--color-bg-deep);
}
.takeaway-card-offer:hover { border-color: var(--color-bg-deep); }

.takeaway-icon {
  font-size: 28px;
  line-height: 1;
}
.takeaway-title {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 1.2px;
  color: var(--color-bg-deep);
  margin: 0;
}
.takeaway-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: #3a2b18;
  opacity: 0.85;
  line-height: 1.45;
  margin: 0;
  flex-grow: 1;
}
.takeaway-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.takeaway-input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-bg-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(15, 14, 23, 0.25);
  border-radius: 4px;
  outline: none;
  min-height: 40px;
  transition: border-color 0.15s ease;
}
.takeaway-input:focus { border-color: var(--color-teal); }
.takeaway-input::placeholder { color: rgba(15, 14, 23, 0.4); }
.takeaway-cta {
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--color-bg-deep);
  background: var(--color-teal);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-height: 40px;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.takeaway-cta:hover,
.takeaway-cta:focus-visible { background: var(--color-gold); outline: none; }
.takeaway-cta-bright {
  background: var(--color-gold);
  color: var(--color-bg-deep);
}
.takeaway-cta-bright:hover { background: var(--color-pixel-warm); }
.takeaway-status {
  font-family: var(--font-body);
  font-size: 12px;
  color: #2d4a3e;
  min-height: 1.4em;
  margin: 0;
}

/* Confirmed state — replaces the email form once the gate captures
   the user's address so we don't double-ask. */
.takeaway-confirmed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 0;
}
.takeaway-confirmed-line {
  font-family: var(--font-body);
  font-size: 13px;
  color: #2d4a3e;
  font-weight: 700;
  margin: 0;
}
.takeaway-confirmed-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(15, 14, 23, 0.6);
  margin: 0;
}

/* --- Soft-gate modal — intercepts the Dojo CTA once. --- */
.reveal-gate {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay, 200) + 40);
  background: rgba(15, 14, 23, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: revealGateIn 220ms ease;
}
@keyframes revealGateIn { from { opacity: 0; } to { opacity: 1; } }

.reveal-gate-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-pixel-cream, #fef6e4);
  color: var(--color-bg-deep, #0f0e17);
  border: 2px solid var(--color-gold, #ffd166);
  border-radius: 8px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: revealGateCardIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes revealGateCardIn {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)     scale(1);    opacity: 1; }
}
.reveal-gate-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(15, 14, 23, 0.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.reveal-gate-close:hover { color: var(--color-bg-deep); }

.reveal-gate-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--color-bg-deep);
}
.reveal-gate-sub {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(15, 14, 23, 0.7);
}
.reveal-gate-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
.reveal-gate-input {
  background: #fff;
  border: 1px solid rgba(15, 14, 23, 0.2);
  color: var(--color-bg-deep);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 4px;
}
.reveal-gate-input:focus { outline: none; border-color: var(--color-teal); }
.reveal-gate-cta {
  width: 100%;
  background: var(--color-gold);
  color: var(--color-bg-deep);
  border: 2px solid var(--color-gold);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 160ms ease;
}
.reveal-gate-cta:hover { background: var(--color-pixel-warm, #ffeac6); }

.reveal-gate-skip-link {
  background: transparent;
  border: 0;
  color: rgba(15, 14, 23, 0.55);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reveal-gate-skip-link:hover { color: var(--color-bg-deep); }

.reveal-gate-status {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-teal);
  min-height: 14px;
}

/* --- Hero scroll cue — bouncy chevron pinned to the viewport so it's
       always visible when there's content below the fold. Fades once
       the user has scrolled past the hero so it doesn't nag. --- */
.reveal-scroll-cue {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-overlay, 200) + 5);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  background: rgba(15, 14, 23, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 999px;
  color: rgba(254, 246, 228, 0.85);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  transition: opacity 320ms ease, transform 160ms ease, background 160ms ease;
}
.reveal-scroll-cue:hover,
.reveal-scroll-cue:focus-visible {
  color: var(--color-gold);
  background: rgba(15, 14, 23, 0.8);
  border-color: var(--color-gold);
  outline: none;
  transform: translateX(-50%) translateY(-2px);
}
.reveal-scroll-cue.is-faded {
  opacity: 0;
  pointer-events: none;
}
.reveal-scroll-cue-chevron {
  font-size: 18px;
  line-height: 1;
  animation: revealCueBounce 1.6s ease-in-out infinite;
}
@keyframes revealCueBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.7; }
  50%      { transform: translateY(6px); opacity: 1;   }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-gate,
  .reveal-gate-card,
  .reveal-scroll-cue-chevron {
    animation: none !important;
  }
}

/* --- Share section (below the grid) --- */

.reveal-share-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.share-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 2;
  background: radial-gradient(ellipse at center, #1a1408, var(--color-bg-deep));
  border: 2px solid rgba(255, 209, 102, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.share-card-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; }
.share-card-koro { image-rendering: pixelated; }
.share-card-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff5d6;
  opacity: 1;
  text-shadow:
    1px 2px 0 rgba(15, 14, 23, 0.9),
    0 0 12px rgba(15, 14, 23, 0.6);
}
.share-card-kanji {
  font-family: var(--font-kanji);
  font-size: 56px;
  color: var(--color-gold);
  line-height: 1;
  text-shadow:
    2px 2px 0 rgba(15, 14, 23, 0.95),
    0 0 24px rgba(255, 209, 102, 0.3);
}
.share-card-name {
  font-family: var(--font-display);
  font-size: 13px;
  color: #ffeac6;
  letter-spacing: 1.5px;
  text-shadow:
    1px 2px 0 rgba(15, 14, 23, 0.95),
    0 0 12px rgba(15, 14, 23, 0.6);
}
.share-actions { display: flex; gap: 12px; }
.share-btn {
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 1px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.share-btn-copy { background: transparent; color: var(--color-pixel-cream); }
.share-btn-copy:hover { border-color: var(--color-teal); background: rgba(46, 196, 182, 0.1); }
.share-btn-download { background: var(--color-teal); color: var(--color-bg-deep); border-color: var(--color-teal); }
.share-btn-download:hover { background: var(--color-gold); border-color: var(--color-gold); }

/* --- Offers screen (overlay opened from "See offers" card) --- */

.reveal-offers {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) + 5);
  background: radial-gradient(ellipse at center, #1a1408 0%, var(--color-bg-deep) 80%);
  overflow-y: auto;
  padding: 64px 20px;
  animation: revealOffersIn 0.35s ease;
}
@keyframes revealOffersIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-offers-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--color-pixel-cream);
  background: rgba(15, 14, 23, 0.7);
  border: 2px solid rgba(255, 209, 102, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.reveal-offers-close:hover { background: rgba(15, 14, 23, 0.95); transform: scale(1.06); }

.reveal-offers-stack {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.reveal-offers-heading {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--color-pixel-cream);
  letter-spacing: 1.5px;
  margin: 0;
  text-align: center;
}
.reveal-offers-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-pixel-cream);
  opacity: 0.6;
  margin: 0;
  text-align: center;
}

.offers-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.offer-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  /* Pixel-paper surface to match the takeaway cards. */
  background: rgba(254, 246, 228, 0.96);
  border: 3px solid var(--color-bg-deep);
  border-radius: 12px;
  box-shadow: 0 6px 0 rgba(15, 14, 23, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(15, 14, 23, 0.5);
}
.offer-card-kit {}
.offer-card-call {
  background: rgba(255, 235, 178, 0.96);
}

.offer-tier {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: #5a4a1f;
  opacity: 0.85;
}
.offer-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 1px;
  color: var(--color-bg-deep);
  margin: 0;
}
.offer-price {
  font-family: var(--font-kanji);
  font-size: 56px;
  line-height: 1;
  color: var(--color-bg-deep);
  margin: 0;
  text-shadow: 2px 2px 0 rgba(255, 209, 102, 0.6);
}
.offer-price span {
  font-size: 28px;
  vertical-align: super;
  margin-right: 2px;
}
.offer-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #3a2b18;
  opacity: 0.92;
  margin: 0;
}
.offer-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offer-bullets li {
  font-family: var(--font-body);
  font-size: 13px;
  color: #3a2b18;
  opacity: 0.92;
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.offer-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2d4a3e;
  font-weight: bold;
}
.offer-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--color-bg-deep);
  background: var(--color-teal);
  border: 2px solid var(--color-bg-deep);
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 4px 0 var(--color-bg-deep);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.offer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-bg-deep);
}
.offer-cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-bg-deep);
}
.offer-cta-bright {
  background: var(--color-gold);
}
.offer-fineprint {
  font-family: var(--font-body);
  font-size: 11px;
  color: #3a2b18;
  opacity: 0.65;
  margin: 0;
  text-align: center;
}

/* --- Blueprint cards (kept for in-dojo reveal overlay) --- */

.blueprint-cards { display: flex; flex-direction: column; gap: 16px; }
.blueprint-card {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 20px 24px;
  transition: border-color 0.2s ease;
}
.blueprint-card:hover { border-color: var(--color-teal); }
.blueprint-locked { position: relative; overflow: hidden; }
.blueprint-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(15, 14, 23, 0.5);
}
.blueprint-title {
  font-family: var(--font-display);
  font-size: clamp(10px, 1.2vw, 13px);
  color: var(--color-pixel-cream);
  margin: 0 0 8px;
  letter-spacing: 1px;
}
.blueprint-desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--color-pixel-cream);
  opacity: 0.8;
  line-height: 1.5;
  margin: 0 0 12px;
}
.blueprint-meta { display: flex; gap: 16px; font-family: var(--font-body); font-size: 13px; opacity: 0.6; }
.blueprint-feature { color: var(--color-teal); }
.blueprint-time { color: var(--color-pixel-cream); }
.blueprint-prompt {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.blueprint-prompt code {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-pixel-cream);
  opacity: 0.9;
  line-height: 1.5;
  word-break: break-word;
}
.blueprint-blur {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--color-gold);
  letter-spacing: 1px;
  text-align: center;
  padding: 8px;
  position: relative;
  z-index: 1;
}
.try-zo-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--color-bg-deep);
  background: var(--color-teal);
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.try-zo-cta:hover { background: var(--color-gold); }

/* Phone landscape: compress the celebration interlude, hero block, and
   offers screen so they fit a 393-tall viewport without scroll. The
   200px sprites and 56-80px layout padding eat too much vertical space
   on phone landscape; shrink everything proportionally while keeping
   the desktop hierarchy intact. Desktop is unaffected (gate doesn't
   match). */
@media (orientation: landscape) and (max-height: 500px) {
  /* --- Celebration interlude --- */
  .reveal-koro-run {
    width: 80px;
    height: 80px;
  }
  .reveal-venn-finale .ikigai-diagram svg {
    width: 80px;
    height: 80px;
  }
  .reveal-interlude {
    gap: 8px;
    min-height: 100svh;
  }

  /* --- Hero block (kanji, name, description, CTA) --- */
  .reveal-layout {
    padding: 8px 20px 16px;
    gap: 12px;
  }
  .reveal-hero {
    gap: 6px;
  }
  .reveal-kanji-block {
    gap: 2px;
  }
  .reveal-kanji {
    font-size: 44px;
  }
  .reveal-name {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  .reveal-description {
    font-size: 12px;
    line-height: 1.35;
    max-width: 540px;
  }
  .reveal-koro-dialogue {
    font-size: 12px;
    line-height: 1.3;
    padding: 6px 4px;
    margin: 2px 0 0;
  }
  .reveal-confidence {
    font-size: 8px;
  }
  .reveal-hero-cta {
    margin-top: 2px;
    gap: 4px;
  }
  .reveal-dojo-cta {
    padding: 8px 20px;
    min-height: 32px;
    font-size: 10px;
  }
  .reveal-hero-cta-sub {
    font-size: 11px;
  }

  /* --- Takeaway grid (below fold is acceptable, but compress) --- */
  .takeaway-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .takeaway-card {
    padding: 12px 10px;
    gap: 6px;
  }
  .takeaway-title {
    font-size: 10px;
  }
  .takeaway-desc {
    font-size: 11px;
  }

  /* --- Offers screen ("Dive deeper with Koro") --- */
  .reveal-offers {
    padding: 10px 16px;
  }
  .reveal-offers-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
  .reveal-offers-stack {
    gap: 8px;
  }
  .reveal-offers-heading {
    font-size: 13px;
    letter-spacing: 1.2px;
  }
  .reveal-offers-sub {
    font-size: 11px;
  }
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 4px;
  }
  .offer-card {
    padding: 10px 12px;
    gap: 4px;
  }
  .offer-tier {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .offer-name {
    font-size: 13px;
  }
  .offer-price {
    font-size: 36px;
  }
  .offer-price span {
    font-size: 20px;
  }
  .offer-desc {
    font-size: 11px;
  }
  .offer-cta {
    padding: 8px 16px;
    min-height: 36px;
    font-size: 10px;
  }
}

/* --- Mobile --- */

@media (max-width: 720px) {
  .reveal-layout {
    padding: 36px 16px 56px;
    gap: 40px;
  }
  .takeaway-grid {
    grid-template-columns: 1fr;
  }
  .offers-grid {
    grid-template-columns: 1fr;
  }
  .reveal-offers {
    padding: 48px 16px;
  }
  .reveal-koro-run {
    width: 140px;
    height: 140px;
  }
  .reveal-venn-finale .ikigai-diagram svg {
    width: 140px;
    height: 140px;
  }
  .share-actions {
    flex-direction: column;
    width: 100%;
  }
  .share-btn {
    width: 100%;
    text-align: center;
  }
}
