:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #17251f;
  background: #f5f1e8;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.experience-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: radial-gradient(circle at 7% 6%, rgba(205, 242, 108, 0.26), transparent 24%), #f5f1e8;
}

.embedded-experience .experience-shell {
  min-height: 100vh;
  display: block;
}

.embedded-experience .experience-header,
.embedded-experience .experience-footer {
  display: none;
}

.embedded-experience .story-layout {
  width: min(100% - 32px, 1500px);
  min-height: 100vh;
  padding-block: 16px;
}

.experience-header,
.experience-footer,
.story-layout {
  width: min(100% - 56px, 1500px);
  margin-inline: auto;
}

.experience-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 37, 31, 0.15);
}

.experience-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.experience-mark { position: relative; width: 27px; height: 27px; }
.experience-mark i {
  position: absolute;
  left: 1px;
  width: 21px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px 10px 10px 4px;
  transform: skewX(-9deg);
}
.experience-mark i:first-child { top: 0; }
.experience-mark i:last-child { bottom: 0; left: 5px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-layout {
  min-height: 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(560px, 1.45fr);
  gap: 28px;
  align-items: stretch;
}

.story-copy {
  padding: clamp(28px, 4.5vw, 72px) clamp(4px, 2vw, 30px) 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-index {
  margin-bottom: 30px;
  color: #788078;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.story-index span { color: #17251f; }

.story-kicker {
  color: #c84f35;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-copy h1 {
  max-width: 600px;
  margin: 14px 0 22px;
  font-size: clamp(48px, 5.3vw, 84px);
  font-weight: 710;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}

.story-copy > p {
  max-width: 510px;
  min-height: 78px;
  margin: 0;
  color: #647069;
  font-size: 15px;
  line-height: 1.65;
}

.journey-steps {
  max-width: 560px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(23, 37, 31, 0.18);
}

.journey-step {
  position: relative;
  min-width: 0;
  padding: 17px 10px 16px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.journey-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: #d85d3f;
  transition: width 350ms ease;
}
.journey-step.is-active::before { width: calc(100% - 12px); }
.journey-step span, .journey-step b { display: block; }
.journey-step span { color: #92998f; font-size: 8px; letter-spacing: 0.12em; }
.journey-step b {
  overflow: hidden;
  margin-top: 7px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-actions { margin-top: 28px; display: flex; align-items: center; gap: 20px; }
.primary-action, .replay-action { border: 0; cursor: pointer; }
.primary-action {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: white;
  background: #183f38;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(24, 63, 56, 0.18);
}
.primary-action .action-arrow { transition: transform 180ms ease; }
.primary-action:hover .action-arrow { transform: translateX(4px); }
.replay-action { color: #6f7972; background: transparent; font-size: 11px; font-weight: 750; }

.scene-panel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(236,231,219,.42)), #ece6da;
  box-shadow: inset 0 0 0 1px rgba(23, 37, 31, 0.08);
}

#food-court-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 400ms ease;
}
.webgl-ready #food-court-scene { opacity: 1; }

.scene-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #65716a;
}
.webgl-ready .scene-fallback { display: none; }
.fallback-counter {
  position: absolute;
  top: 22%; right: 17%;
  width: 42%;
  padding: 18px;
  border-radius: 8px;
  color: white;
  background: #d85d3f;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.fallback-queue {
  position: absolute;
  top: 42%; right: 20%;
  width: 45%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fallback-queue i { width: 22px; height: 36px; border-radius: 50% 50% 10px 10px; background: #89958e; }
.fallback-user, .fallback-pickup {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.fallback-user { left: 20%; bottom: 18%; background: #cef36c; }
.fallback-pickup { top: 32%; left: 16%; color: white; background: #183f38; }

.scene-label, .scene-badge, .phone-card, .scene-flow-copy { position: absolute; z-index: 2; pointer-events: none; }
.scene-label {
  padding: 9px 12px;
  border: 1px solid rgba(23, 37, 31, 0.11);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #58655e;
  background: rgba(250, 248, 242, 0.9);
  font-size: 9px;
  font-weight: 750;
  transition: opacity 250ms ease;
}
.scene-label span { width: 7px; height: 7px; border-radius: 50%; background: #d85d3f; }
.scene-label-queue { right: 5%; bottom: 7%; }
.scene-label-pickup { top: 8%; left: 45%; opacity: 0.45; }
.scene-label-pickup span { background: #183f38; }

.scene-flow-copy {
  top: 4%;
  left: 4%;
  width: 41%;
  height: 140px;
  overflow: hidden;
}
.scene-flow-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms ease, transform 620ms cubic-bezier(.22, 1, .36, 1);
}
.scene-flow-message span {
  margin-bottom: 12px;
  color: #d85d3f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scene-flow-message strong {
  max-width: 360px;
  color: #17332d;
  font-size: clamp(25px, 2.5vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.scene-panel[data-phase="1"] .scene-flow-order,
.scene-panel[data-phase="2"] .scene-flow-pickup {
  opacity: 1;
  transform: translateY(0);
}
.scene-panel[data-phase="2"] .scene-flow-order {
  opacity: 0;
  transform: translateY(-24px);
}

.scene-badge {
  top: 26px; right: 26px;
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  background: #d85d3f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 250ms ease;
}

.phone-card {
  left: 5%; bottom: 7%;
  width: 168px;
  padding: 15px;
  border-radius: 20px;
  color: white;
  background: #142f2b;
  box-shadow: 0 18px 40px rgba(20, 47, 43, 0.24);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 350ms ease, transform 350ms ease;
}
.phone-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.phone-top {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 10px;
  font-weight: 800;
}
.phone-top i { width: 7px; height: 7px; border-radius: 50%; background: #cef36c; }
.phone-card small, .phone-card b { display: block; }
.phone-card small { margin-top: 13px; color: #8fa19b; font-size: 8px; text-transform: uppercase; }
.phone-card b { margin-top: 5px; font-size: 16px; }
.phone-progress { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.phone-progress i { display: block; width: 74%; height: 100%; border-radius: inherit; background: #cef36c; }

.scene-panel[data-phase="1"] .scene-badge,
.scene-panel[data-phase="2"] .scene-badge { background: #183f38; }
.scene-panel[data-phase="1"] .scene-label-queue,
.scene-panel[data-phase="2"] .scene-label-queue { opacity: 0.4; }
.scene-panel[data-phase="1"] .scene-label-pickup,
.scene-panel[data-phase="2"] .scene-label-pickup { opacity: 1; }

.experience-footer {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(23, 37, 31, 0.15);
  color: #7b847d;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

button:focus-visible, a:focus-visible { outline: 3px solid rgba(216,93,63,.35); outline-offset: 3px; }

@media (max-width: 980px) {
  .experience-shell { overflow: visible; }
  .story-layout { grid-template-columns: 1fr; }
  .story-copy { padding: 45px 0 14px; }
  .story-copy h1 { max-width: 720px; }
  .scene-panel { min-height: 570px; }
  .scene-flow-copy { width: 46%; }

  .embedded-experience .story-layout {
    min-height: auto;
    padding-block: 24px;
  }

  .embedded-experience .story-copy {
    padding-top: 24px;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .experience-header { min-height: 76px; }
  .experience-footer { min-height: 50px; }
  .story-layout { padding-block: 20px; }
  .story-copy { padding-block: 18px; }
  .story-index { margin-bottom: 18px; }
  .story-copy h1 { margin-block: 11px 17px; font-size: clamp(46px, 4.8vw, 70px); }
  .story-copy > p { min-height: 68px; }
  .journey-steps { margin-top: 24px; }
  .story-actions { margin-top: 17px; }
  .scene-panel { min-height: calc(100svh - 166px); }
}

@media (max-width: 640px) {
  .experience-header, .experience-footer, .story-layout { width: min(100% - 32px, 1500px); }
  .experience-header { min-height: 76px; }
  .experience-brand { font-size: 20px; }
  .back-link { font-size: 9px; }
  .story-copy h1 { font-size: clamp(47px, 14vw, 68px); }
  .story-copy > p { min-height: 100px; }
  .journey-steps { margin-top: 28px; }
  .journey-step b { font-size: 9px; }
  .story-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .scene-panel { min-height: 460px; border-radius: 22px; }
  .phone-card { width: 145px; }
  .scene-label { display: none; }
  .scene-flow-copy { top: 7%; width: 58%; height: 125px; }
  .scene-flow-message strong { font-size: 24px; }
  .experience-footer { min-height: 70px; gap: 12px; }

  .embedded-experience .story-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .embedded-experience .story-copy > p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
