/* PROPOSED review-only loading. Not an approved yonō design-system source. */

:root {
  --black: #000000;
  --ghost: #1a1a1a;
  --gold: #e5a04e;
  --gold-bar: #c5a059;
  --ink-on-dark: #f7f3ee;
  --cream: #f7f2ec;
  --navy: #0a1724;
  --ink: #16110e;
  --ink-soft: #4a433c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", "Hiragino Sans", system-ui,
    sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #070707;
  color: var(--ink-on-dark);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.3;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
}

.skip-link:focus {
  top: 12px;
}

.proto-rail {
  display: none;
  width: min(320px, 34vw);
  align-self: center;
  color: #ece7df;
  font-size: 0.92rem;
}

.proto-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
}

.proto-rail p {
  margin: 0 0 14px;
  color: #c9c2b6;
}

.proto-help {
  font-size: 0.78rem !important;
}

.proto-help code {
  font-size: 0.78rem;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}

.loader {
  position: absolute;
  inset: 0;
  background: var(--black);
  transition: opacity 640ms var(--ease), visibility 640ms;
}

.beat {
  position: absolute;
  inset: 0;
}

.beat-black {
  background: var(--black);
  z-index: 3;
  opacity: 1;
  transition: opacity 420ms var(--ease);
}

.beat-mark {
  z-index: 4;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 520ms var(--ease);
}

.yono-ghost {
  margin: 0;
  font-family: var(--font-rounded);
  font-size: clamp(2.6rem, 12vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ghost);
  line-height: 1;
}

.yono-o {
  position: relative;
  display: inline-block;
}

.yono-o::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.18em;
  width: 0.78em;
  height: 0.145em;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.beat-venue {
  z-index: 2;
  opacity: 0;
  transition: opacity 640ms var(--ease);
}

.venue-photo {
  position: absolute;
  inset: 0;
  background-color: #050505;
  background-image: url("./assets/splash-table.jpg");
  /* Zoom into the table so baked extract type at the edges is cropped out. */
  background-size: 178% auto;
  background-position: center 54%;
  background-repeat: no-repeat;
}

.venue-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #000 0%,
    #000 16%,
    rgba(0, 0, 0, 0.2) 28%,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.15) 74%,
    #000 90%,
    #000 100%
  );
  pointer-events: none;
}

.venue-lockup {
  position: absolute;
  left: 0;
  right: 0;
  top: max(52px, calc(env(safe-area-inset-top) + 44px));
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #fff;
}

.mo-m {
  color: #fff;
  display: block;
}

.mo-bar {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-bar);
}

.mo-o {
  width: 54px;
  height: 54px;
  border: 2.15px solid #fff;
  border-radius: 50%;
  margin-top: 2px;
}

.mo-bistro {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: lowercase;
}

.powered {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 22px));
  display: grid;
  justify-items: center;
  gap: 8px;
}

.powered-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.yono-word {
  margin: 0;
  font-family: var(--font-rounded);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.yono-o--light::after {
  background: var(--gold);
}

/* Beats */
.loader[data-beat="black"] .beat-black {
  opacity: 1;
}

.loader[data-beat="mark"] .beat-black,
.loader[data-beat="venue"] .beat-black {
  opacity: 0;
  pointer-events: none;
}

.loader[data-beat="mark"] .beat-mark {
  opacity: 1;
}

.loader[data-beat="venue"] .beat-mark {
  opacity: 0;
  pointer-events: none;
}

.loader[data-beat="venue"] .beat-venue {
  opacity: 1;
}

.phone[data-screen="welcome"] .loader,
.phone[data-screen="next"] .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 640ms var(--ease), visibility 640ms;
}

.welcome {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  padding: calc(env(safe-area-inset-top) + 28px) 24px 0;
}

.welcome[hidden],
.next[hidden] {
  display: none !important;
}

.welcome-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mo-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mo-inline-mark {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--navy);
}

.mo-m--ink {
  color: var(--navy);
}

.mo-bar--ink {
  width: 16px;
  height: 2px;
  background: var(--gold-bar);
}

.mo-o--ink {
  width: 22px;
  height: 22px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  margin-top: 0;
}

.mo-bistro--ink {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.welcome-location {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}

.welcome-mascot-slot {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.welcome-mascot {
  width: min(58vw, 236px);
  height: auto;
  transform-origin: center bottom;
  animation: welcome-arrive 780ms var(--ease) both;
}

.welcome-copy {
  text-align: center;
  padding: 8px 4px 0;
  animation: welcome-rise 620ms var(--ease) 180ms both;
}

.welcome-copy h1 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.brand {
  color: var(--gold-bar);
}

.lede {
  margin: 8px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.body {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.welcome-cta {
  padding: 22px 0 calc(env(safe-area-inset-bottom) + 22px);
  animation: welcome-rise 620ms var(--ease) 280ms both;
}

.btn-started {
  appearance: none;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fbf7f1;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-started:active {
  transform: scale(0.985);
}

.next {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--cream);
}

.phone[data-screen="welcome"],
.phone[data-screen="next"] {
  background: var(--cream);
}

@keyframes welcome-arrive {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.9);
    filter: blur(6px);
  }
  60% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes welcome-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-height: 620px) {
  .welcome-mascot {
    width: min(46vw, 168px);
  }

  .welcome-copy h1 {
    font-size: 1.4rem;
  }
}

@media (min-width: 720px) {
  body {
    padding: 28px;
  }

  .proto-rail {
    display: block;
  }

  .phone {
    width: 390px;
    height: min(844px, calc(100dvh - 56px));
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

