:root {
  color-scheme: light;
  --navy: #0c2b68;
  --orange: #ff6a18;
  --red: #ff272d;
  --panel: #fffdfb;
  --muted: #60709a;
  --line: rgba(12, 43, 104, 0.12);
  --mood-a: #ffad7a;
  --mood-b: #ff766d;
  --soft-a: #fff0ec;
  --soft-b: #ffe4dd;
  --shadow: rgba(73, 35, 28, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(145deg, var(--mood-a), var(--mood-b));
  transition: background 320ms ease;
}

body[data-mood="fun"] {
  --mood-a: #6da6f2;
  --mood-b: #2d67d3;
  --soft-a: #edf6ff;
  --soft-b: #dbeaff;
  --shadow: rgba(13, 54, 123, 0.18);
}

body[data-mood="open"] {
  --mood-a: #ffb07d;
  --mood-b: #ff746c;
  --soft-a: #fff1ec;
  --soft-b: #ffe0d9;
  --shadow: rgba(110, 47, 37, 0.16);
}

body[data-mood="spicy"] {
  --mood-a: #9f3d58;
  --mood-b: #5a1638;
  --soft-a: #fff0f2;
  --soft-b: #f8d8df;
  --shadow: rgba(55, 12, 35, 0.24);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #2a78e6;
  outline-offset: 3px;
}

.page-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
}

.experience {
  width: min(100%, 440px);
  height: min(900px, calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom))));
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(190px, 0.95fr) minmax(200px, 1fr) auto auto;
  gap: clamp(7px, 1.25vh, 12px);
  overflow: hidden;
  padding: clamp(16px, 3vh, 28px) clamp(14px, 4vw, 28px) clamp(12px, 2.2vh, 22px);
  border-radius: clamp(24px, 5vw, 38px);
  background: var(--panel);
  box-shadow: 0 24px 70px var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.brand__mark {
  width: clamp(35px, 5.6vh, 52px);
  height: clamp(38px, 6vh, 56px);
  object-fit: contain;
}

.brand__name {
  font-size: clamp(17px, 2.9vh, 24px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  font-size: clamp(29px, 5.1vh, 45px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.mood-picker {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
}

.mood-carousel {
  min-height: 0;
  margin-inline: calc(clamp(14px, 4vw, 28px) * -1);
  overflow: hidden;
  touch-action: pan-y;
}

.mood-track {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 10px;
  will-change: transform;
  transition: transform 360ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.mood-card {
  flex: 0 0 72%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 58% 42%;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 29px 29px 29px 10px;
  color: var(--navy);
  background: #f3f6fb;
  box-shadow: 0 8px 22px rgba(12, 43, 104, 0.08);
  opacity: 0.68;
  transform: scale(0.92);
  transition: opacity 280ms ease, transform 280ms ease, border-color 280ms ease;
  font: inherit;
  text-align: left;
}

.mood-card.is-active {
  border-color: var(--orange);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 11px 30px rgba(255, 79, 33, 0.16);
}

.mood-card__image {
  display: block;
  overflow: hidden;
  background: #dce8f5;
}

.mood-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.mood-card--fun .mood-card__image img {
  object-position: 50% 75%;
}

.mood-card--open .mood-card__image img {
  object-position: 50% 74%;
}

.mood-card--spicy .mood-card__image img {
  object-position: 50% 78%;
}

.mood-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 0;
  padding: 7px 14px 9px;
  background: linear-gradient(135deg, #eef6ff, #dfeeff);
}

.mood-card--open .mood-card__copy {
  background: linear-gradient(135deg, #fff0eb, #ffc8ba);
}

.mood-card--spicy .mood-card__copy {
  background: linear-gradient(135deg, #ffe9ed, #f5b5c3);
}

.mood-card strong,
.mood-card small {
  display: block;
}

.mood-card strong {
  font-size: clamp(17px, 2.55vh, 22px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.mood-card small {
  overflow: hidden;
  font-size: clamp(11px, 1.55vh, 14px);
  line-height: 1.18;
  color: #52648c;
}

.mood-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.mood-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #efc0ba;
}

.mood-dots button.is-active {
  background: var(--orange);
  transform: scale(1.18);
}

.question-flow {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(78px, 1fr) 19px auto auto;
  align-items: center;
}

.question-flow h2 {
  margin: 0 0 4px;
  text-align: center;
  font-size: clamp(16px, 2.3vh, 21px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.question-bubble {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  padding: 10px 22px 14px;
  border-radius: 27px 27px 27px 10px;
  background: linear-gradient(135deg, var(--soft-a), var(--soft-b));
  transition: background 300ms ease;
}

.question-bubble::after {
  content: "";
  width: 22px;
  height: 22px;
  position: absolute;
  right: 16%;
  bottom: -7px;
  border-radius: 3px 0 12px;
  background: var(--soft-b);
  transform: rotate(34deg);
}

.question-bubble p {
  margin: 0;
  text-align: center;
  font-size: clamp(18px, 2.8vh, 25px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.question-bubble.is-changing p {
  opacity: 0;
  transform: translateY(4px);
}

.question-bubble p {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.delivery-branch {
  height: 19px;
  position: relative;
}

.delivery-branch::before,
.delivery-branch::after,
.delivery-branch span {
  content: "";
  position: absolute;
  border-color: color-mix(in srgb, var(--mood-b) 55%, white);
}

.delivery-branch span {
  width: 1px;
  height: 9px;
  left: 50%;
  top: 0;
  border-left: 1.5px solid;
}

.delivery-branch::before,
.delivery-branch::after {
  width: 31%;
  height: 10px;
  top: 8px;
  border-top: 1.5px solid;
}

.delivery-branch::before {
  left: 19%;
  border-left: 1.5px solid;
  border-radius: 12px 0 0;
}

.delivery-branch::after {
  right: 19%;
  border-right: 1.5px solid;
  border-radius: 0 12px 0 0;
}

.delivery-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--soft-a), var(--soft-b));
}

.delivery-chip__icon {
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 20px;
  transform: rotate(-24deg);
}

.delivery-chip span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  white-space: nowrap;
  font-size: clamp(12px, 1.8vh, 15px);
  line-height: 1.05;
}

.delivery-chip strong {
  font-weight: 750;
}

.delivery-chip small {
  color: var(--muted);
  font-size: inherit;
}

.reveal-note {
  margin: 6px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: clamp(11px, 1.65vh, 14px);
}

.reveal-note span {
  display: inline-block;
  margin-right: 4px;
  color: var(--navy);
  transform: rotate(180deg);
}

.telegram-cta {
  min-height: clamp(48px, 7vh, 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(100deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(255, 64, 30, 0.22);
  text-align: center;
  text-decoration: none;
  font-size: clamp(16px, 2.55vh, 22px);
  line-height: 1.05;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.telegram-cta:active {
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 8px 18px rgba(255, 64, 30, 0.18);
}

.legal-consent {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: clamp(10px, 1.4vh, 12px);
  line-height: 1.22;
}

.legal-consent a {
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 2px;
}

@media (max-height: 720px) {
  .experience {
    grid-template-rows: auto auto minmax(150px, 0.9fr) minmax(170px, 1fr) auto auto;
    padding-top: 13px;
    padding-bottom: 10px;
    gap: 6px;
  }

  .brand__mark {
    width: 32px;
    height: 35px;
  }

  .brand__name {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(27px, 5.3vh, 36px);
  }

  .mood-card {
    grid-template-rows: 56% 44%;
  }

  .mood-card__copy {
    padding: 5px 11px 7px;
  }

  .question-flow {
    grid-template-rows: auto minmax(66px, 1fr) 14px auto auto;
  }

  .delivery-branch {
    height: 14px;
  }

  .delivery-branch::before,
  .delivery-branch::after {
    top: 5px;
    height: 8px;
  }

  .delivery-branch span {
    height: 6px;
  }

  .delivery-chip {
    padding-block: 6px;
  }
}

@media (max-height: 620px) {
  .experience {
    grid-template-rows: auto auto minmax(126px, 0.82fr) minmax(148px, 0.95fr) auto auto;
    gap: 4px;
    padding-top: 9px;
    padding-bottom: 8px;
  }

  .brand {
    min-height: 28px;
  }

  .brand__mark {
    width: 27px;
    height: 29px;
  }

  .brand__name {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(24px, 5.2vh, 30px);
    line-height: 0.95;
  }

  .mood-card {
    border-radius: 22px 22px 22px 8px;
  }

  .mood-card strong {
    font-size: 15px;
  }

  .mood-card small {
    font-size: 10px;
  }

  .question-flow {
    grid-template-rows: auto minmax(54px, 1fr) 10px auto auto;
  }

  .question-flow h2 {
    margin-bottom: 2px;
    font-size: 14px;
  }

  .question-bubble {
    padding: 7px 16px 9px;
    border-radius: 21px 21px 21px 8px;
  }

  .question-bubble p {
    font-size: clamp(15px, 2.8vh, 18px);
  }

  .delivery-branch {
    height: 10px;
  }

  .delivery-chip {
    padding-block: 4px;
  }

  .delivery-chip__icon {
    font-size: 15px;
  }

  .delivery-chip span:last-child {
    font-size: 11px;
  }

  .reveal-note {
    margin-top: 3px;
    font-size: 10px;
  }

  .telegram-cta {
    min-height: 42px;
    font-size: 15px;
  }

  .legal-consent {
    font-size: 10px;
  }
}

@media (max-width: 350px) {
  .experience {
    padding-inline: 12px;
  }

  .delivery-chip {
    gap: 4px;
    padding-inline: 6px;
  }

  .delivery-chip__icon {
    font-size: 16px;
  }

  .telegram-cta {
    font-size: 15px;
  }
}

@media (min-width: 700px) {
  .page-shell {
    padding: 20px;
  }
}

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