:root {
  --background: #efeee9;
  --text: #222222;
  --primary: #c99076;
  --primary-hover: #ad755d;
  --primary-light: #ead0c1;
  --border: #eaeaea;
  --cream: #f3f2ed;
  --warm-white: #f7f6f1;
  --beige: #f2ded3;
  --brown: #c99076;
  --brown-dark: #222222;
  --charcoal: #222222;
  --muted: #6e746b;
  --rose: #c99076;
  --sage: #c99076;
  --line: #eaeaea;
  --glass: rgba(250, 249, 247, 0.72);
  --shadow: 0 24px 70px rgba(34, 34, 34, 0.1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-float: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 144, 118, 0.28), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(34, 34, 34, 0.08), transparent 34%),
    linear-gradient(135deg, #f5f4ef 0%, var(--background) 46%, #e7e7df 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  letter-spacing: 0;
}

img {
  max-width: 100%;
}

body::selection {
  background: var(--primary);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

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

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
  background:
    radial-gradient(circle at 44% 34%, rgba(201, 144, 118, 0.34), transparent 28%),
    radial-gradient(circle at 50% 58%, rgba(34, 34, 34, 0.08), transparent 34%),
    linear-gradient(135deg, #f5eee7, #d6c9bd);
  overflow: hidden;
  transition: opacity 980ms var(--ease-soft), filter 980ms ease, transform 980ms var(--ease-soft);
}

.intro-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 28%, rgba(247, 246, 241, 0.62), transparent 26%),
    radial-gradient(circle at 66% 66%, rgba(173, 117, 93, 0.28), transparent 30%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1120ms var(--ease-soft), transform 1120ms var(--ease-soft);
}

.intro-screen.is-choosing::before {
  opacity: 1;
  transform: scale(1);
}

.intro-screen.is-opening {
  opacity: 0;
  filter: blur(14px);
  pointer-events: none;
  transform: scale(1.035);
}

.intro-cup {
  position: relative;
  display: grid;
  width: 168px;
  place-items: center;
  filter: drop-shadow(0 26px 34px rgba(34, 34, 34, 0.18));
  transform-origin: center 72%;
  opacity: 0;
  transform: translateY(-82px) scale(0.92);
  animation: introCupIn 900ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-cup::before,
.intro-cup::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -78px;
  z-index: 4;
  width: 20px;
  height: 104px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.72), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  opacity: 0;
  filter: blur(9px);
  transform: translateX(-50%) translateY(22px) scaleX(0.42) scaleY(0.68);
  animation: smokeRise 3.6s 0.4s ease-in-out infinite;
  pointer-events: none;
}

.intro-cup::after {
  left: 54%;
  width: 18px;
  height: 94px;
  animation-delay: 1.45s;
  animation-duration: 4.2s;
}

.intro-screen.is-brewing .intro-cup {
  opacity: 0;
  filter: blur(16px);
  transform: translateY(-82px) scale(0.84);
  animation: none;
}

.intro-screen.is-brewing .intro-title,
.intro-screen.is-brewing .intro-music-panel {
  opacity: 0;
  pointer-events: none;
  filter: blur(12px);
}

.intro-loader {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(18px) scale(0.94);
  filter: blur(10px);
  transition:
    opacity 420ms ease,
    transform 640ms var(--ease-soft),
    filter 420ms ease;
}

.intro-loader p {
  margin: 0;
  color: var(--brown-dark);
  font-family: Caveat, cursive;
  font-size: 1.7rem;
}

.intro-screen.is-brewing .intro-loader {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
  filter: blur(0);
}

.intro-screen.is-choosing .intro-cup {
  opacity: 0.24;
  transform: translateY(-82px) scale(0.82);
  transition: opacity 720ms ease, transform 920ms var(--ease-soft), filter 720ms ease;
  filter:
    blur(14px)
    drop-shadow(0 18px 26px rgba(34, 34, 34, 0.12))
    drop-shadow(0 0 18px rgba(255, 239, 216, 0.54));
  animation: introCupGlow 2.8s ease-in-out infinite;
}

.intro-screen.is-choosing .intro-cup:hover {
  opacity: 1;
  transform: translateY(-82px) scale(1.02);
  filter: blur(0) drop-shadow(0 30px 46px rgba(34, 34, 34, 0.2));
  animation: none;
}

.intro-lid {
  position: relative;
  z-index: 3;
  width: 132px;
  height: 24px;
  margin-bottom: -4px;
  border-radius: 18px 18px 8px 8px;
  background:
    linear-gradient(180deg, #2b2a28, #151514);
  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.08),
    0 12px 20px rgba(34, 34, 34, 0.16);
  transform: translateY(0) rotate(0);
  transform-origin: center bottom;
}

.intro-lid::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -8px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #302f2d, #171716);
}

.intro-lid::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -8px;
  width: 76px;
  height: 12px;
  border-radius: 999px 999px 5px 5px;
  background: #252422;
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.06);
}

.intro-lid-tab {
  display: none;
}

.intro-body {
  position: relative;
  display: block;
  z-index: 2;
  width: 124px;
  height: 154px;
  clip-path: polygon(3% 0, 97% 0, 84% 100%, 16% 100%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 22%, transparent 74%, rgba(120, 76, 58, 0.13)),
    linear-gradient(180deg, #fff1dc 0 22%, #b58a5f 22% 76%, #fff1dc 76% 100%);
  color: var(--text);
  box-shadow:
    inset 12px 0 18px rgba(255, 246, 238, 0.24),
    inset -12px 0 18px rgba(94, 56, 42, 0.12);
}

.intro-body::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 1px;
  right: 1px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(84, 48, 28, 0.42), transparent 58%),
    linear-gradient(180deg, #fff8ec, rgba(255, 230, 214, 0.78));
  box-shadow:
    inset 0 5px 8px rgba(74, 48, 36, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.28);
}

.intro-body::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 28%;
  height: 48%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(77, 50, 28, 0.2) 0 1px,
      transparent 1px 7px
    ),
    linear-gradient(90deg, rgba(255, 244, 228, 0.14), transparent 50%, rgba(75, 48, 28, 0.08));
  opacity: 0.9;
  pointer-events: none;
}

.intro-cup-art {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 56%;
  display: grid;
  width: 92px;
  justify-items: center;
  gap: 14px;
  transform: translate(-50%, -50%);
}

.intro-body strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-align: center;
  transform: translateX(0.16em);
}

.intro-body span {
  font-family: Caveat, cursive;
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
}

.intro-title {
  position: fixed;
  left: 50%;
  top: calc(50% + 118px);
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: "Oooh Baby", Caveat, cursive;
  font-size: clamp(3.5rem, 9vw, 7.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  opacity: 0;
  transform: translate(-50%, 30px) scale(0.94);
  animation: introTitleIn 1250ms 360ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: color 260ms ease, filter 260ms ease, transform 260ms ease;
}

.intro-title:hover {
  color: var(--primary);
  filter: drop-shadow(0 0 20px rgba(201, 144, 118, 0.62));
  transform: translate(-50%, -4px) scale(1.02);
}

.intro-screen.is-choosing .intro-title {
  animation: none;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -92px) scale(0.82);
  filter: blur(14px);
  transition:
    opacity 520ms ease,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms ease;
}

.intro-music-panel {
  position: fixed;
  left: 50%;
  top: calc(50% + 118px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(430px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 34px) scale(0.9);
  filter: blur(12px);
  backdrop-filter: none;
  transition:
    opacity 620ms 260ms ease,
    transform 760ms 220ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms 240ms ease;
}

.intro-screen.is-choosing .intro-music-panel,
.intro-music-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  filter: blur(0);
}

.intro-screen.is-choice-closing .intro-music-panel {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 160ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 160ms ease;
}

.intro-music-panel .eyebrow {
  display: none;
}

.intro-music-panel h2 {
  display: none;
}

.intro-choice-copy {
  display: none;
}

.intro-music-panel .button {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 250, 244, 0.78), rgba(235, 205, 188, 0.5));
  color: var(--text);
  box-shadow:
    0 18px 44px rgba(34, 34, 34, 0.1),
    0 0 0 1px rgba(201, 144, 118, 0.18) inset;
  transform: translateY(10px);
  backdrop-filter: blur(18px);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease,
    transform 260ms ease;
}

.intro-music-panel .button.primary {
  background:
    linear-gradient(145deg, rgba(201, 144, 118, 0.94), rgba(173, 117, 93, 0.82));
  color: white;
  border-color: rgba(255, 255, 255, 0.32);
}

.intro-music-panel .button.secondary {
  color: rgba(173, 117, 93, 0.92);
}

.intro-screen.is-choosing .intro-music-panel .button,
.intro-music-panel.is-visible .button {
  transform: translateY(0);
}

.intro-music-panel .button:hover {
  background:
    linear-gradient(145deg, rgba(255, 250, 244, 0.78), rgba(235, 205, 188, 0.5));
  color: var(--text);
  box-shadow:
    0 22px 54px rgba(173, 117, 93, 0.22),
    0 0 24px rgba(201, 144, 118, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: translateY(-2px);
}

.intro-music-panel .button.primary:hover {
  background:
    linear-gradient(145deg, rgba(201, 144, 118, 0.96), rgba(173, 117, 93, 0.86));
  color: white;
}

.intro-music-panel .button.secondary:hover {
  color: rgba(173, 117, 93, 0.92);
}

.playlist-trigger {
  min-height: 40px;
  border: 1px solid rgba(173, 117, 93, 0.48);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(247, 246, 241, 0.68);
  color: var(--primary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 3px;
  border: 1px solid rgba(173, 117, 93, 0.32);
  border-radius: 999px;
  background: rgba(247, 246, 241, 0.68);
}

.language-option {
  display: grid;
  min-width: 38px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(34, 34, 34, 0.66);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
  background: var(--primary);
  color: white;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.52) inset,
    0 0 18px rgba(201, 144, 118, 0.58),
    0 10px 24px rgba(173, 117, 93, 0.22);
  transform: translateY(-1px);
}

.intro-language-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  box-shadow: 0 16px 40px rgba(34, 34, 34, 0.1);
  backdrop-filter: blur(18px);
}

.playlist-popover {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 40;
  display: grid;
  width: min(330px, calc(100vw - 28px));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(173, 117, 93, 0.44);
  border-radius: 18px;
  background: rgba(247, 246, 241, 0.88);
  box-shadow: 0 26px 70px rgba(34, 34, 34, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  backdrop-filter: blur(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.playlist-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.playlist-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.playlist-close,
.playlist-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  cursor: pointer;
}

.playlist-track {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--primary-light);
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.playlist-track:hover,
.playlist-track.is-active {
  border-color: rgba(173, 117, 93, 0.38);
  box-shadow: 0 12px 26px rgba(34, 34, 34, 0.1);
  transform: translateY(-1px);
}

.playlist-track span,
.playlist-track small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.playlist-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
}

.playlist-play {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.audio-player {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(150px, 220px) auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(173, 117, 93, 0.34);
  border-radius: 999px;
  background: rgba(247, 246, 241, 0.9);
  box-shadow: 0 18px 48px rgba(34, 34, 34, 0.14);
  backdrop-filter: blur(18px);
}

.audio-track-info {
  display: grid;
  gap: 3px;
  padding-left: 10px;
}

.audio-track-info strong {
  font-size: 0.82rem;
  line-height: 1.1;
}

.audio-track-info span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-control,
.playlist-open {
  min-height: 36px;
  border: 1px solid rgba(173, 117, 93, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.audio-control {
  display: grid;
  min-width: 36px;
  padding: 0 10px;
  place-items: center;
}

.audio-play {
  min-width: 64px;
  background: var(--primary);
  color: white;
}

.playlist-open {
  padding: 0 16px;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.audio-control:hover,
.audio-control:focus-visible,
.playlist-open:hover,
.playlist-open:focus-visible {
  background: var(--primary);
  color: white;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 18px rgba(201, 144, 118, 0.5);
  transform: translateY(-1px);
}

.audio-seek {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

@keyframes introTitleIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 34px) scale(0.9);
    filter: blur(8px);
  }
  58% {
    opacity: 1;
    transform: translate(-50%, -8px) scale(1.035);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes introCupIn {
  to {
    opacity: 1;
    transform: translateY(-82px) scale(1);
  }
}

@keyframes introCupGlow {
  0%,
  100% {
    filter:
      blur(14px)
      drop-shadow(0 18px 26px rgba(34, 34, 34, 0.12))
      drop-shadow(0 0 12px rgba(255, 239, 216, 0.34));
  }
  50% {
    filter:
      blur(12px)
      drop-shadow(0 20px 30px rgba(34, 34, 34, 0.14))
      drop-shadow(0 0 34px rgba(255, 229, 198, 0.82));
  }
}

@keyframes smokeRise {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(22px) scaleX(0.38) scaleY(0.62) rotate(-5deg);
  }
  18% {
    opacity: 0.9;
    transform: translateX(-54%) translateY(2px) scaleX(0.62) scaleY(0.86) rotate(3deg);
  }
  55% {
    opacity: 0.56;
    transform: translateX(-74%) translateY(-36px) scaleX(1.35) scaleY(1.05) rotate(9deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-28%) translateY(-88px) scaleX(2.25) scaleY(1.22) rotate(18deg);
  }
}

@keyframes introCupSpin {
  0% {
    transform: translateY(-82px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-82px) rotate(180deg) scale(1.08);
  }
  100% {
    transform: translateY(-82px) rotate(360deg) scale(1);
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1380px, 100%);
  height: 100svh;
  margin: 0 auto;
  padding: clamp(10px, 1.5vw, 16px);
  padding-bottom: 82px;
  gap: 10px;
  overflow: hidden;
}

.app-header {
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(247, 246, 241, 0.84);
  box-shadow: 0 18px 50px rgba(34, 34, 34, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 182px;
  padding-left: 6px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background:
    url("../images/moment-logo-girl.png") center 42% / 165% auto no-repeat,
    rgba(247, 246, 241, 0.88);
  color: transparent;
  overflow: hidden;
  border: 1px solid rgba(173, 117, 93, 0.28);
  box-shadow:
    0 10px 22px rgba(76, 53, 40, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.56) inset;
}

.brand-mark::before {
  content: none;
}

.brand-mark::after {
  content: none;
}

.brand strong {
  display: block;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: Caveat, cursive;
  font-size: 0.88rem;
}

.app-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  position: relative;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  background: transparent;
  color: rgba(34, 34, 34, 0.68);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    background 360ms ease,
    color 360ms ease,
    transform 360ms var(--ease-soft),
    box-shadow 360ms ease;
}

.nav-pill.is-active,
.nav-pill:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(220, 174, 150, 0.28);
  transform: translateY(-1px);
}

.view {
  position: relative;
  z-index: 0;
  display: block;
  grid-row: 2;
  grid-column: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(247, 246, 241, 0.82);
  box-shadow: 0 26px 78px rgba(34, 34, 34, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.992);
  filter: blur(8px);
  transition:
    opacity 620ms ease,
    visibility 0s linear 620ms,
    transform 760ms var(--ease-soft),
    filter 620ms ease;
}

.view.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0s;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.982);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.home-view {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.92fr);
  gap: clamp(18px, 3.2vw, 48px);
  align-items: center;
  padding: clamp(20px, 3.6vw, 46px);
  border-color: rgba(226, 208, 193, 0.34);
  background:
    linear-gradient(135deg, rgba(247, 241, 233, 0.72), rgba(239, 230, 219, 0.5)),
    radial-gradient(circle at 18% 48%, rgba(201, 144, 118, 0.16), transparent 36%),
    radial-gradient(circle at 74% 42%, rgba(255, 250, 242, 0.5), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 26px 78px rgba(76, 53, 40, 0.11);
  backdrop-filter: blur(18px);
}

.home-view.is-active {
  display: grid;
}

.home-view::before,
.home-view::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-view::before {
  inset: -18%;
  z-index: 0;
  background:
    radial-gradient(circle at 24% 50%, rgba(201, 144, 118, 0.24), transparent 29%),
    radial-gradient(circle at 58% 40%, rgba(255, 250, 242, 0.7), transparent 34%),
    radial-gradient(circle at 88% 72%, rgba(173, 117, 93, 0.12), transparent 32%);
  filter: blur(26px);
  opacity: 0.72;
  animation: homeAtmosphere 18s ease-in-out infinite;
}

.home-view::after {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 233, 0.46), transparent 24%, transparent 74%, rgba(247, 241, 233, 0.34)),
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.22) 47% 49%, transparent 50% 100%);
  opacity: 0.46;
}

@keyframes homeAtmosphere {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.98) translate3d(-8px, 4px, 0);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02) translate3d(5px, -3px, 0);
  }
}

.home-view > * {
  position: relative;
  z-index: 1;
}

.home-copy {
  position: relative;
  max-width: 580px;
}

.home-copy::before {
  content: "";
  position: absolute;
  inset: -42px -34px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.42), transparent 30%),
    radial-gradient(circle at 68% 42%, rgba(201, 144, 118, 0.2), transparent 36%);
  filter: blur(10px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  color: var(--text);
  font-family: "Oooh Baby", Caveat, cursive;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-moment-word {
  position: relative;
  display: inline-block;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
  transform: translateZ(0);
  transition:
    color 240ms ease,
    filter 240ms ease,
    text-shadow 240ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-moment-word::after {
  content: "";
  position: absolute;
  right: -0.08em;
  bottom: 0.06em;
  left: -0.08em;
  z-index: -1;
  height: 0.28em;
  border-radius: 999px;
  opacity: 0.72;
  transition:
    opacity 240ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms ease;
}

.hero-title-az .hero-moment-word,
.hero-title-en .hero-moment-word,
.hero-title-ru .hero-moment-word {
  color: #ad755d;
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  font-style: normal;
  letter-spacing: 0;
  text-shadow: 0 14px 28px rgba(173, 117, 93, 0.22);
}

.hero-title-az .hero-moment-word::after,
.hero-title-en .hero-moment-word::after,
.hero-title-ru .hero-moment-word::after {
  background: rgba(234, 208, 193, 0.86);
}

.hero-title-az .hero-moment-word:hover,
.hero-title-az .hero-moment-word:focus-visible,
.hero-title-en .hero-moment-word:hover,
.hero-title-en .hero-moment-word:focus-visible,
.hero-title-ru .hero-moment-word:hover,
.hero-title-ru .hero-moment-word:focus-visible {
  color: #c99076;
  filter: drop-shadow(0 0 18px rgba(201, 144, 118, 0.62));
  text-shadow:
    0 14px 28px rgba(173, 117, 93, 0.28),
    0 0 26px rgba(201, 144, 118, 0.46);
  transform: translateY(-0.08em) scale(1.035);
}

.hero-title-az .hero-moment-word:hover::after,
.hero-title-az .hero-moment-word:focus-visible::after,
.hero-title-en .hero-moment-word:hover::after,
.hero-title-en .hero-moment-word:focus-visible::after,
.hero-title-ru .hero-moment-word:hover::after,
.hero-title-ru .hero-moment-word:focus-visible::after {
  opacity: 1;
  box-shadow: 0 0 24px rgba(201, 144, 118, 0.45);
  transform: scaleX(1.08) translateY(0.04em);
}

.hero-moment-word:focus-visible {
  outline: 2px solid rgba(201, 144, 118, 0.58);
  outline-offset: 0.12em;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 5.15rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.1vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.home-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(34, 34, 34, 0.72);
  font-size: clamp(0.94rem, 1.35vw, 1.08rem);
  line-height: 1.72;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 19px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition:
    transform 320ms var(--ease-soft),
    background 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.primary:hover {
  background: var(--primary-hover);
}

.button.secondary {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
}

.button.secondary:hover {
  background: var(--primary-light);
}

.full {
  width: 100%;
}

.hero-photo-wrap {
  position: relative;
  height: min(58vh, 560px);
  min-height: 380px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(66, 47, 35, 0.18);
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(0.98);
  opacity: 0;
  transform: scale(1.06) translateX(22px);
  transition:
    opacity 1450ms ease,
    transform 1800ms var(--ease-soft),
    filter 1450ms ease;
}

.hero-photo:first-child {
  object-position: 72% center;
}

.hero-photo.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1.075) translateX(0);
}

.hero-photo.is-leaving {
  opacity: 0;
  transform: scale(1.045) translateX(-18px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(247, 246, 241, 0.48);
  color: var(--text);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%) scale(0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 34px rgba(34, 34, 34, 0.13);
  transition:
    opacity 360ms ease,
    transform 360ms var(--ease-soft),
    background 360ms ease,
    color 360ms ease;
}

.hero-photo-wrap:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.hero-arrow:hover {
  background: var(--primary);
  color: white;
}

.hero-arrow-prev {
  left: 16px;
}

.hero-arrow-next {
  right: 16px;
}

.floating-note {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  min-width: 154px;
  padding: 13px 15px;
  border: 1px solid rgba(220, 174, 150, 0.24);
  border-radius: 18px;
  background: var(--primary-light);
  color: var(--text);
  box-shadow: 0 20px 40px rgba(34, 34, 34, 0.09);
  backdrop-filter: blur(16px);
}

.floating-note span {
  font-family: Caveat, cursive;
  font-size: 1.2rem;
}

.floating-note small {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.builder-view,
.moments-view,
.about-view {
  padding: clamp(14px, 2vw, 22px);
}

.builder-view {
  background:
    linear-gradient(135deg, rgba(247, 241, 233, 0.9), rgba(236, 227, 217, 0.82)),
    var(--builder-bg, linear-gradient(135deg, var(--background), var(--primary-light)));
  transition: background 980ms var(--ease-soft), box-shadow 980ms ease;
}

.builder-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, var(--theme-glow-a, rgba(217, 172, 160, 0.22)), transparent 32%),
    radial-gradient(circle at 84% 76%, var(--theme-glow-b, rgba(159, 175, 152, 0.2)), transparent 36%);
  opacity: 0.86;
  pointer-events: none;
  transition: opacity 980ms ease, filter 980ms ease;
}

.builder-view.theme-fade::before {
  animation: themeBloom 980ms var(--ease-soft);
}

@keyframes themeBloom {
  0% {
    opacity: 0;
    filter: blur(18px);
  }
  100% {
    opacity: 0.86;
    filter: blur(0);
  }
}

.builder-view > * {
  position: relative;
  z-index: 1;
}

.builder-view.theme-default {
  --builder-bg: linear-gradient(135deg, #f6eee6, #ece3d9);
  --stage-bg:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.58), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(201, 144, 118, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(247, 241, 233, 0.96), rgba(238, 229, 218, 0.92));
  --theme-glow-a: rgba(220, 174, 150, 0.22);
  --theme-glow-b: rgba(220, 228, 216, 0.32);
}

.builder-view.theme-her {
  --builder-bg: linear-gradient(135deg, #faf9f7 0%, #dce4d8 55%, #f2f5f0 100%);
  --stage-bg:
    linear-gradient(135deg, rgba(250, 249, 247, 0.92), rgba(220, 228, 216, 0.66)),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.72), transparent 28%);
  --theme-glow-a: rgba(220, 174, 150, 0.36);
  --theme-glow-b: rgba(220, 228, 216, 0.58);
}

.builder-view.theme-birthday {
  --builder-bg: linear-gradient(135deg, #faf9f7 0%, #dce4d8 58%, #faf9f7 100%);
  --stage-bg:
    linear-gradient(135deg, rgba(250, 249, 247, 0.92), rgba(220, 174, 150, 0.34)),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.74), transparent 28%);
  --theme-glow-a: rgba(220, 174, 150, 0.3);
  --theme-glow-b: rgba(220, 228, 216, 0.52);
}

.builder-view.theme-luck {
  --builder-bg: linear-gradient(135deg, #faf9f7 0%, #dce4d8 56%, #faf9f7 100%);
  --stage-bg:
    linear-gradient(135deg, rgba(250, 247, 233, 0.92), rgba(159, 175, 152, 0.5)),
    radial-gradient(circle at 24% 72%, rgba(255, 255, 255, 0.68), transparent 30%);
  --theme-glow-a: rgba(159, 175, 152, 0.42);
  --theme-glow-b: rgba(218, 226, 204, 0.58);
}

.builder-view.theme-morning {
  --builder-bg: linear-gradient(135deg, #fff8e9 0%, #e4c08f 54%, #fff4df 100%);
  --stage-bg:
    linear-gradient(135deg, rgba(255, 249, 232, 0.92), rgba(226, 191, 143, 0.5)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.72), transparent 28%);
  --theme-glow-a: rgba(226, 191, 143, 0.42);
  --theme-glow-b: rgba(255, 236, 197, 0.6);
}

.builder-view.theme-miss {
  --builder-bg: linear-gradient(135deg, #eee6dc 0%, #4a423b 58%, #1b1917 100%);
  --stage-bg:
    linear-gradient(135deg, rgba(255, 250, 242, 0.72), rgba(58, 53, 47, 0.74)),
    radial-gradient(circle at 74% 20%, rgba(255, 250, 242, 0.22), transparent 28%);
  --theme-glow-a: rgba(255, 250, 242, 0.18);
  --theme-glow-b: rgba(34, 34, 34, 0.34);
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: clamp(12px, 2vw, 22px);
  height: 100%;
}

.builder-panel {
  overflow: auto;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(226, 208, 193, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.74), rgba(240, 230, 220, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  scrollbar-width: thin;
}

.panel-head {
  margin-bottom: 12px;
}

.flow-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.flow-dot {
  height: 6px;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.08);
  transition: background 360ms ease, transform 420ms var(--ease-soft);
}

.flow-dot.is-active {
  background: var(--primary);
  transform: scaleY(1.35);
}

.centered {
  max-width: 660px;
  margin: 0 auto 18px;
  text-align: center;
}

.builder-step {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(226, 208, 193, 0.44);
  border-radius: 14px;
  background: rgba(250, 246, 238, 0.56);
  transition: opacity 420ms ease, transform 520ms var(--ease-soft);
}

.builder-step.is-flow-hidden {
  display: none;
}

.step-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 10px;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

.step-toggle::after {
  content: "+";
  color: var(--primary);
  font-size: 1.2rem;
}

.builder-step.is-open .step-toggle::after {
  content: "-";
}

.step-body {
  display: none;
  padding: 0 14px 14px;
}

.builder-step.is-open .step-body {
  display: block;
  animation: stepIn 420ms var(--ease-soft);
}

.step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.step-actions .button:only-child {
  grid-column: 1 / -1;
}

.flow-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(220, 174, 150, 0.32);
  border-radius: 14px;
  background: rgba(250, 249, 247, 0.78);
}

.flow-summary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.flow-summary strong {
  color: var(--text);
  text-align: right;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: rgba(34, 34, 34, 0.68);
  font-size: 0.8rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 249, 247, 0.94);
  color: var(--text);
  outline: none;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 72px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(220, 174, 150, 0.68);
  box-shadow: 0 0 0 4px rgba(220, 174, 150, 0.16);
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.symbol-grid button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 249, 247, 0.74);
  color: var(--primary);
  cursor: pointer;
  font-size: 1.18rem;
}

.symbol-grid button:hover {
  background: var(--primary);
  color: white;
}

.photo-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.photo-controls label {
  margin: 0;
  gap: 6px;
  color: rgba(34, 34, 34, 0.58);
  font-size: 0.68rem;
}

.photo-controls input {
  min-height: 22px;
  padding: 0;
  accent-color: var(--primary);
}

.cup-controls {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.cup-controls label {
  margin: 0;
  gap: 6px;
  color: rgba(34, 34, 34, 0.58);
  font-size: 0.68rem;
}

.cup-controls input,
.cup-controls select {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  accent-color: var(--primary);
  font-size: 0.72rem;
}

.swatches,
.cup-size-options,
.cup-template-options,
.coffee-options,
.payment-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.swatches {
  grid-template-columns: repeat(4, 1fr);
}

.swatch {
  min-height: 38px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #dfcdb6;
  cursor: pointer;
}

.swatch.rose {
  background: var(--rose);
}

.swatch.sage {
  background: var(--sage);
}

.swatch.ink {
  background: var(--text);
}

.swatch.is-selected {
  border-color: var(--primary);
  outline: 3px solid rgba(220, 174, 150, 0.18);
}

.cup-size-options,
.cup-template-options,
.coffee-options,
.payment-options {
  grid-template-columns: repeat(2, 1fr);
}

.cup-size-option,
.cup-template-option,
.coffee-option,
.payment-option {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.84);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.cup-size-option.is-selected,
.cup-size-option:hover,
.cup-template-option.is-selected,
.cup-template-option:hover,
.coffee-option.is-selected,
.coffee-option:hover,
.payment-option.is-selected,
.payment-option:hover {
  background: var(--primary);
  color: white;
}

.toggle-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 249, 247, 0.9);
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.treat-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.treat-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(250, 249, 247, 0.86);
  color: var(--text);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 9px;
  text-align: left;
  line-height: 1.18;
  overflow-wrap: anywhere;
  white-space: normal;
}

.treat-option::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #bb7f45;
  box-shadow: inset -4px -4px 7px rgba(80, 45, 24, 0.2);
}

.treat-option[data-treat="almond"]::before {
  background:
    radial-gradient(ellipse at 58% 36%, #7f5532 0 4px, transparent 5px),
    #d9a45e;
}

.treat-option[data-treat="truffle"]::before {
  background: #4b2d22;
  box-shadow:
    -7px 5px 0 -2px #6b4030,
    7px 5px 0 -2px #6b4030;
}

.treat-option[data-treat="madeleine"]::before {
  width: 24px;
  border-radius: 70% 70% 54% 54% / 86% 86% 42% 42%;
  background: linear-gradient(90deg, #e2b66f, #b9793f);
}

.treat-option[data-treat="macaron"]::before {
  width: 24px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eab9b3 0 42%, #f7ded9 43% 55%, #d99b95 56% 100%);
}

.treat-option[data-treat="donut"]::before {
  background:
    radial-gradient(circle at center, rgba(255, 250, 242, 0.9) 0 4px, transparent 5px),
    #d68a9a;
}

.treat-option[data-treat="croissant"]::before {
  width: 25px;
  height: 18px;
  border-radius: 55% 55% 44% 44% / 70% 70% 48% 48%;
  background: linear-gradient(90deg, #bf7b3d 0 18%, #e2ad61 19% 37%, #c57c3e 38% 51%, #e1a759 52% 70%, #b86d37 71% 100%);
}

.treat-option.is-selected,
.treat-option:hover {
  background: var(--primary);
  color: white;
}

.map-picker {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.72);
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.map-head span {
  color: rgba(34, 34, 34, 0.64);
  font-size: 0.76rem;
  font-weight: 800;
}

.map-head button,
.map-picker a {
  border: 1px solid rgba(220, 174, 150, 0.34);
  border-radius: 999px;
  background: rgba(250, 249, 247, 0.78);
  color: var(--primary);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.map-head button {
  min-height: 32px;
  padding: 0 12px;
}

.map-picker iframe {
  width: 100%;
  height: 168px;
  border: 0;
  border-radius: 12px;
  filter: saturate(0.82) contrast(0.96);
}

.map-picker a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0 12px;
}

.map-status {
  min-height: 16px;
  color: rgba(34, 34, 34, 0.58);
  font-size: 0.7rem;
  font-weight: 700;
}

.cup-zone {
  display: grid;
  min-height: 0;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.cup-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 208, 193, 0.42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 244, 222, 0.72), transparent 28%),
    linear-gradient(110deg, rgba(94, 58, 31, 0.12), transparent 34%),
    linear-gradient(180deg, #e6d2b8 0%, #b6804f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 22px 58px rgba(76, 53, 40, 0.08);
  transition: background 780ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 780ms ease;
}

.cup-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.22) 41% 43%, transparent 44% 100%),
    radial-gradient(ellipse at 18% 12%, rgba(255, 250, 242, 0.68), transparent 28%),
    radial-gradient(ellipse at 78% 82%, rgba(72, 43, 22, 0.24), transparent 38%),
    repeating-linear-gradient(7deg, rgba(81, 47, 23, 0.045) 0 1px, transparent 1px 12px);
  opacity: 0.82;
  pointer-events: none;
}

.cup-stage > * {
  position: relative;
  z-index: 1;
}

.theme-fade .cup-stage {
  animation: stageFade 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stageFade {
  0% {
    opacity: 0.58;
    transform: scale(0.992);
    filter: blur(10px) saturate(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) saturate(1);
  }
}

.cup-shadow {
  position: absolute;
  bottom: 12%;
  width: 340px;
  height: 46px;
  border-radius: 50%;
  background: rgba(23, 18, 14, 0.3);
  filter: blur(20px);
}

.cup {
  position: relative;
  z-index: 1;
  width: min(38vw, 318px);
  min-width: 244px;
  filter: drop-shadow(0 34px 42px rgba(35, 25, 18, 0.34));
  perspective: 900px;
  transition: width 300ms ease, transform 300ms ease, filter 300ms ease;
}

.cup.is-brewing {
  animation: cupBounce 900ms ease;
}

@keyframes cupBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  45% {
    transform: translateY(-18px) rotate(-3deg);
  }
  70% {
    transform: translateY(7px) rotate(2deg);
  }
}

.cup-lid {
  position: relative;
  z-index: 2;
  width: 92%;
  height: 60px;
  margin: 0 auto -13px;
  border-radius: 50% 50% 17px 17px / 36% 36% 18px 18px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.16), transparent 48%),
    radial-gradient(ellipse at 50% 18%, #26231f 0 38%, transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 22%, rgba(255, 255, 255, 0.12) 52%, transparent 78%),
    linear-gradient(180deg, #34302c 0%, #11100f 68%, #2b2926 100%);
  border: 1px solid rgba(255, 250, 242, 0.14);
  box-shadow:
    inset 0 8px 12px rgba(255, 255, 255, 0.1),
    inset 0 -12px 16px rgba(0, 0, 0, 0.38),
    0 8px 14px rgba(23, 22, 20, 0.22);
}

.lid-cream .cup-lid {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 24%, rgba(255, 255, 255, 0.24) 54%, transparent 80%),
    linear-gradient(180deg, #fff3df 0%, #dac8ad 72%, #bda98b 100%);
  border-color: rgba(76, 53, 40, 0.14);
}

.lid-cream .cup-lid::after {
  background: linear-gradient(180deg, #ead8bc, #a99273);
}

.lid-brown .cup-lid {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 24%, rgba(255, 255, 255, 0.14) 54%, transparent 80%),
    linear-gradient(180deg, #6b4a35 0%, #2f2119 72%, #5b3a29 100%);
}

.lid-brown .cup-lid::after {
  background: linear-gradient(180deg, #714f39, #2d211a);
}

.cup-lid::after {
  content: "";
  position: absolute;
  left: -7%;
  right: -7%;
  bottom: -10px;
  height: 20px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #4c4842, #151412);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.22),
    0 5px 7px rgba(23, 22, 20, 0.22);
}

.cup-body {
  position: relative;
  display: grid;
  min-height: var(--cup-height, 372px);
  justify-items: center;
  align-content: start;
  padding: 54px 34px 34px;
  clip-path: var(--cup-shape, polygon(5% 0, 95% 0, 80% 100%, 20% 100%));
  color: #2a211a;
  background:
    radial-gradient(ellipse at 50% -2%, rgba(255, 244, 226, 0.78), transparent 25%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 24%, transparent 72%, rgba(102, 62, 36, 0.16)),
    linear-gradient(180deg, #f6dfbd 0%, #edca9d 100%);
  box-shadow:
    inset 22px 0 28px rgba(92, 54, 27, 0.16),
    inset -22px 0 28px rgba(255, 240, 205, 0.17),
    0 24px 60px rgba(23, 22, 20, 0.18);
  transform: rotateX(0deg);
  transition:
    background 240ms ease,
    color 240ms ease,
    min-height 300ms ease,
    clip-path 300ms ease,
    padding 300ms ease;
}

.cup-size-tall .cup-body {
  --cup-height: 362px;
  --cup-shape: polygon(5% 0, 95% 0, 80% 100%, 20% 100%);
}

.cup-size-grande .cup-body {
  --cup-height: 420px;
  --cup-shape: polygon(5% 0, 95% 0, 78% 100%, 22% 100%);
}

.cup-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 18%, transparent 74%, rgba(73, 42, 23, 0.15)),
    radial-gradient(circle at 48% 30%, rgba(255, 246, 222, 0.2), transparent 42%),
    repeating-linear-gradient(45deg, rgba(101, 63, 37, 0.045) 0 1px, transparent 1px 6px);
  mix-blend-mode: multiply;
  opacity: 0.82;
}

.cup-body::after {
  content: none;
}

.design-soft {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 24%, transparent 74%, rgba(120, 76, 58, 0.08)),
    linear-gradient(180deg, #fff8ef 0%, #f2dfc8 100%);
}

.design-rose {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent 24%, transparent 74%, rgba(120, 76, 58, 0.08)),
    linear-gradient(180deg, #fff8ef 0%, #f2dfc8 100%);
}

.design-sage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent 24%, transparent 74%, rgba(120, 76, 58, 0.08)),
    linear-gradient(180deg, #fff8ef 0%, #f2dfc8 100%);
}

.design-ink {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent 24%, transparent 74%, rgba(120, 76, 58, 0.08)),
    linear-gradient(180deg, #fff8ef 0%, #f2dfc8 100%);
  color: #2a211a;
}

.cup-logo {
  position: relative;
  z-index: 2;
  order: 1;
  margin-top: 0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.38em;
  opacity: 0.76;
  text-align: center;
  transform: translateX(0.18em);
}

.cup-photo {
  position: relative;
  z-index: 2;
  order: 2;
  width: 124px;
  height: 144px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(68, 43, 28, 0.16);
  border-radius: 24px;
  background: url("../images/moment-hero.png") center / 128% auto no-repeat;
  box-shadow:
    0 0 0 5px rgba(108, 74, 48, 0.08),
    0 0 0 7px rgba(255, 239, 214, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 24px rgba(23, 22, 20, 0.14);
  filter: saturate(0.94) contrast(0.96);
  opacity: 0.94;
  transition:
    opacity 360ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 360ms ease,
    border-radius 360ms ease;
}

.print-clean .cup-photo {
  width: 124px;
  height: 144px;
  border-radius: 24px;
  transform: rotate(0deg);
}

.print-clean .cup-message {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.print-photo .cup-photo {
  width: 132px;
  height: 150px;
  border-radius: 25px;
  background-size: 126% auto;
}

.print-photo .cup-message {
  margin-top: 16px;
}

.cup-photo.has-photo {
  animation: photoBloom 620ms cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.94;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.01);
}

@keyframes photoBloom {
  0% {
    opacity: 0;
    transform: scale(0.82) rotate(4deg);
    filter: blur(10px) saturate(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.07) rotate(-2deg);
    filter: blur(0) saturate(1.04);
  }
  100% {
    opacity: 0.94;
    transform: scale(1.02);
    filter: blur(0) saturate(1.02) contrast(1.01);
  }
}

.cup-message {
  position: relative;
  z-index: 2;
  order: 3;
  margin: 20px 0 0;
  font-family: Caveat, cursive;
  font-size: 1.7rem;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 240, 210, 0.18);
  cursor: text;
  outline: none;
  min-width: 190px;
  max-width: 214px;
  padding: 2px 7px;
  border-radius: 999px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.cup-message.font-caveat {
  font-family: Caveat, cursive;
}

.cup-message.font-hello-honey {
  font-family: "Hello Honey", "Oooh Baby", Caveat, cursive;
}

.cup-message.font-brittany {
  font-family: "Brittany Signature", Allura, Caveat, cursive;
}

.cup-message.font-sacramento {
  font-family: Sacramento, Caveat, cursive;
}

.cup-message.font-allura {
  font-family: Allura, Caveat, cursive;
}

.cup-message.font-great-vibes {
  font-family: "Great Vibes", Caveat, cursive;
}

.cup-message.font-playlist {
  font-family: "Playlist Script", "Great Vibes", Caveat, cursive;
}

.cup-message strong {
  display: inline-block;
  font: inherit;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cup-message:has(strong) {
  white-space: nowrap;
}

.cup-message:focus {
  background: rgba(255, 250, 242, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 250, 242, 0.16);
}

.message-symbol {
  display: inline-block;
  margin: 0 0.08em;
  font-family: "Times New Roman", serif;
  font-size: 0.78em;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-0.02em) rotate(-4deg);
  vertical-align: 0.03em;
}

.message-symbol.heart-symbol {
  margin: 0 0.06em;
  font-family: Caveat, "Times New Roman", serif;
  font-size: 0.88em;
  transform: translateY(0.08em) rotate(-13deg) scaleX(0.9);
  vertical-align: -0.05em;
}

.cup-date {
  position: relative;
  z-index: 2;
  order: 4;
  margin: 15px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.78;
  min-height: 1em;
  cursor: text;
  outline: none;
  padding: 2px 6px;
  border-radius: 999px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.cup-date:focus {
  background: rgba(255, 250, 242, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 250, 242, 0.14);
}

.cup-heart {
  position: relative;
  z-index: 2;
  order: 5;
  margin-top: 8px;
  color: rgba(42, 33, 26, 0.78);
  font-family: Caveat, cursive;
  font-size: 1.28rem;
  line-height: 1;
}

.cup-layout-brand-bottom .cup-logo {
  order: 5;
  margin-top: 23px;
  font-size: 0.76rem;
}

.cup-layout-brand-bottom .cup-photo {
  order: 1;
  width: 146px;
  height: 150px;
  margin-top: 4px;
  border-radius: 24px;
}

.cup-layout-brand-bottom .cup-message {
  order: 2;
  margin-top: 24px;
  font-size: 1.58rem;
}

.cup-layout-brand-bottom .cup-date {
  display: none;
}

.cup-layout-brand-bottom .cup-heart {
  display: none;
}

.cup-stage .gift-note,
.cup-stage .cookie-pack {
  display: none;
}

.gift-note {
  position: absolute;
  right: clamp(24px, 8vw, 128px);
  top: clamp(20px, 6vh, 48px);
  display: grid;
  width: 178px;
  min-height: 138px;
  align-content: start;
  gap: 13px;
  padding: 18px 17px 16px;
  border: 1px solid rgba(220, 174, 150, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 32%),
    linear-gradient(145deg, rgba(255, 250, 242, 0.98), rgba(234, 221, 207, 0.94));
  box-shadow:
    0 24px 52px rgba(76, 53, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: rotate(3.2deg);
  cursor: text;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
}

.gift-note:hover,
.gift-note:focus-within {
  transform: rotate(1.4deg) translateY(-3px);
  box-shadow:
    0 30px 62px rgba(76, 53, 40, 0.2),
    0 0 0 4px rgba(255, 250, 242, 0.38);
}

.gift-note strong {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
}

.gift-note span {
  color: rgba(34, 34, 34, 0.72);
  font-family: Caveat, cursive;
  font-size: 1.28rem;
  line-height: 1.02;
  outline: none;
  white-space: pre-wrap;
}

.gift-note span:empty::before {
  content: "Sweet little something for you";
  color: rgba(34, 34, 34, 0.34);
}

.gift-note small {
  align-self: end;
  color: var(--primary);
  font-size: 1.1rem;
}

.cookie-pack {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(16px, 4vh, 42px);
  display: grid;
  width: 194px;
  height: 148px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.42)),
    linear-gradient(45deg, transparent 0 38%, rgba(255, 255, 255, 0.58) 40% 42%, transparent 44% 100%);
  box-shadow:
    0 20px 44px rgba(76, 53, 40, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-pack.treat-pop .cookie-wrap {
  animation: treatPop 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes treatPop {
  0% {
    opacity: 0;
    transform: scale(0.78) rotate(7deg);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: blur(0);
  }
}

.cookie-pack::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  pointer-events: none;
}

.pack-glare {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.pack-glare::before,
.pack-glare::after {
  content: "";
  position: absolute;
  top: -20px;
  width: 32px;
  height: 188px;
  background: rgba(255, 255, 255, 0.46);
  filter: blur(0.5px);
  transform: rotate(28deg);
}

.pack-glare::before {
  left: 36px;
}

.pack-glare::after {
  right: 28px;
  opacity: 0.58;
}

.cookie-pack.is-hidden,
.gift-note.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.96) rotate(0deg);
  pointer-events: none;
}

.cookie-wrap {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 35%, #4e3022 0 7px, transparent 8px),
    radial-gradient(circle at 34% 62%, #5a3525 0 6px, transparent 7px),
    radial-gradient(circle at 48% 24%, #714d36 0 5px, transparent 6px),
    radial-gradient(circle at 72% 66%, #6b4030 0 4px, transparent 5px),
    radial-gradient(circle at 42% 42%, rgba(255, 222, 166, 0.35), transparent 42%),
    #bb7f45;
  box-shadow:
    inset -14px -12px 20px rgba(80, 45, 24, 0.22),
    inset 12px 12px 20px rgba(255, 225, 172, 0.2),
    0 12px 24px rgba(76, 53, 40, 0.22);
  transition: width 260ms ease, height 260ms ease, border-radius 260ms ease, background 260ms ease;
}

.treat-choco .cookie-wrap {
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 35%, #4e3022 0 7px, transparent 8px),
    radial-gradient(circle at 34% 62%, #5a3525 0 6px, transparent 7px),
    radial-gradient(circle at 48% 24%, #714d36 0 5px, transparent 6px),
    radial-gradient(circle at 72% 66%, #6b4030 0 4px, transparent 5px),
    radial-gradient(circle at 42% 42%, rgba(255, 222, 166, 0.35), transparent 42%),
    #bb7f45;
}

.cookie-bite {
  position: absolute;
  right: 4px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.62);
}

.treat-almond .cookie-wrap {
  width: 92px;
  height: 92px;
  border-radius: 48% 52% 46% 54%;
  background:
    radial-gradient(ellipse at 30% 30%, #8b5f35 0 8px, transparent 9px),
    radial-gradient(ellipse at 62% 34%, #7a512e 0 8px, transparent 9px),
    radial-gradient(ellipse at 42% 66%, #8d633a 0 7px, transparent 8px),
    linear-gradient(135deg, rgba(255, 238, 186, 0.42), transparent 42%),
    #d9a45e;
}

.treat-almond .cookie-wrap::before,
.treat-almond .cookie-wrap::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 12px;
  border-radius: 50%;
  background: #f1d39a;
  box-shadow: inset -3px -2px 4px rgba(126, 82, 43, 0.18);
  transform: rotate(-24deg);
}

.treat-almond .cookie-wrap::before {
  left: 22px;
  top: 42px;
}

.treat-almond .cookie-wrap::after {
  right: 18px;
  bottom: 22px;
  transform: rotate(18deg);
}

.treat-truffle .cookie-wrap {
  width: 74px;
  height: 74px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 245, 222, 0.24), transparent 45%),
    #4b2d22;
}

.treat-truffle .cookie-wrap::before,
.treat-truffle .cookie-wrap::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #6b4030;
  box-shadow: inset -8px -8px 16px rgba(0, 0, 0, 0.18);
}

.treat-truffle .cookie-wrap::before {
  left: -28px;
  top: 18px;
}

.treat-truffle .cookie-wrap::after {
  right: -28px;
  top: 18px;
}

.treat-madeleine .cookie-wrap {
  width: 96px;
  height: 74px;
  border-radius: 70% 70% 54% 54% / 86% 86% 42% 42%;
  background:
    linear-gradient(90deg, transparent 0 13%, rgba(119, 78, 42, 0.16) 14% 16%, transparent 17% 31%, rgba(119, 78, 42, 0.14) 32% 34%, transparent 35% 49%, rgba(119, 78, 42, 0.13) 50% 52%, transparent 53% 67%, rgba(119, 78, 42, 0.14) 68% 70%, transparent 71%),
    radial-gradient(circle at 48% 22%, rgba(255, 235, 176, 0.5), transparent 38%),
    linear-gradient(160deg, #e2b66f, #b9793f 72%);
}

.treat-madeleine .cookie-wrap::before {
  content: "";
  position: absolute;
  inset: 10px 12px 14px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(92, 54, 27, 0.16) 15% 17%, transparent 18% 32%, rgba(92, 54, 27, 0.13) 33% 35%, transparent 36% 50%, rgba(92, 54, 27, 0.13) 51% 53%, transparent 54% 68%, rgba(92, 54, 27, 0.13) 69% 71%, transparent 72%);
  opacity: 0.9;
}

.treat-almond .cookie-bite,
.treat-truffle .cookie-bite,
.treat-madeleine .cookie-bite,
.treat-macaron .cookie-bite,
.treat-donut .cookie-bite,
.treat-croissant .cookie-bite {
  display: none;
}

.treat-macaron .cookie-wrap {
  width: 92px;
  height: 58px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #eab9b3 0 42%, #f7ded9 43% 55%, #d99b95 56% 100%);
  box-shadow:
    inset 0 10px 16px rgba(255, 255, 255, 0.28),
    inset 0 -10px 14px rgba(125, 62, 54, 0.15),
    0 12px 24px rgba(76, 53, 40, 0.18);
}

.treat-macaron .cookie-wrap::before,
.treat-macaron .cookie-wrap::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(125, 62, 54, 0.16);
}

.treat-macaron .cookie-wrap::before {
  top: 17px;
}

.treat-macaron .cookie-wrap::after {
  bottom: 16px;
}

.treat-donut .cookie-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.72) 0 17px, transparent 18px),
    radial-gradient(circle at 60% 34%, #fff4e9 0 3px, transparent 4px),
    radial-gradient(circle at 38% 62%, #fff4e9 0 3px, transparent 4px),
    radial-gradient(circle at 72% 64%, #fff4e9 0 2px, transparent 3px),
    linear-gradient(150deg, #d68a9a 0 48%, #b56c7b 100%),
    #c58a4f;
}

.treat-donut .cookie-wrap::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 50%;
  background: #c78a4f;
}

.treat-croissant .cookie-wrap {
  width: 110px;
  height: 72px;
  border-radius: 55% 55% 44% 44% / 70% 70% 48% 48%;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(255, 250, 242, 0.5) 0 18px, transparent 19px),
    linear-gradient(90deg, #bf7b3d 0 18%, #e2ad61 19% 37%, #c57c3e 38% 51%, #e1a759 52% 70%, #b86d37 71% 100%);
  box-shadow:
    inset 0 12px 18px rgba(255, 226, 165, 0.28),
    inset 0 -16px 20px rgba(96, 49, 23, 0.18),
    0 12px 24px rgba(76, 53, 40, 0.2);
}

.treat-croissant .cookie-wrap::before,
.treat-croissant .cookie-wrap::after {
  content: "";
  position: absolute;
  top: 36px;
  width: 34px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.58);
}

.treat-croissant .cookie-wrap::before {
  left: -4px;
}

.treat-croissant .cookie-wrap::after {
  right: -4px;
}

.summary-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.summary-card div {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.moment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  height: calc(100% - 112px);
  align-items: stretch;
}

.moment-card {
  position: relative;
  display: flex;
  min-height: 250px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.72), rgba(255, 250, 242, 0.46)),
    var(--card-bg, #efe2d6);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 420ms ease, border-color 420ms ease;
}

.moment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.74), transparent 26%),
    linear-gradient(180deg, transparent 52%, rgba(34, 34, 34, 0.06));
  opacity: 0.88;
  pointer-events: none;
}

.moment-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(220, 174, 150, 0.38);
  box-shadow: 0 28px 60px rgba(34, 34, 34, 0.1);
}

.moment-card > span:not(.moment-symbol),
.moment-card small,
.mini-scene,
.moment-symbol {
  position: relative;
  z-index: 1;
}

.moment-card > span:not(.moment-symbol) {
  display: block;
  font-size: clamp(0.96rem, 1.25vw, 1.18rem);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.moment-card small {
  display: block;
  max-width: 180px;
  color: rgba(34, 34, 34, 0.64);
  line-height: 1.45;
  font-size: 0.78rem;
  font-weight: 600;
}

.moment-symbol {
  align-self: flex-end;
  color: var(--primary);
  font-family: Caveat, cursive;
  font-size: 1.8rem;
}

.mini-scene {
  display: grid;
  min-height: 126px;
  place-items: center;
  margin: 2px 0 6px;
}

.mini-cup {
  position: relative;
  display: grid;
  width: 68px;
  height: 94px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 17px 12px 10px;
  clip-path: polygon(9% 0, 91% 0, 76% 100%, 24% 100%);
  background: linear-gradient(160deg, #fff8ef, rgba(255, 255, 255, 0.2)), var(--cup-bg, #d9aca0);
  color: rgba(34, 34, 34, 0.72);
  box-shadow: 0 18px 40px rgba(76, 53, 40, 0.18);
  text-align: center;
}

.mini-cup::before {
  content: "";
  position: absolute;
  top: -12px;
  width: 52px;
  height: 18px;
  border-radius: 16px 16px 6px 6px;
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid rgba(220, 174, 150, 0.22);
}

.mini-cup strong,
.mini-cup em,
.mini-cup small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-cup strong {
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.mini-cup em {
  font-family: Caveat, cursive;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.mini-cup small {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
}

.mini-photo,
.mini-cookie,
.mini-ribbon,
.mini-spark,
.mini-sun,
.mini-moon {
  position: absolute;
  display: block;
}

.mini-photo {
  width: 31px;
  height: 31px;
  border: 5px solid rgba(255, 250, 242, 0.8);
  border-radius: 50%;
  background: url("../images/moment-hero.png") center / cover;
  transform: translateY(14px);
}

.mini-cookie {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 32%, #6e4c39 0 3px, transparent 4px),
    radial-gradient(circle at 35% 64%, #6e4c39 0 3px, transparent 4px),
    #c99668;
  transform: translate(44px, 44px);
  box-shadow: 0 12px 26px rgba(76, 53, 40, 0.18);
}

.mini-cookie.mini-macaron {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #eab9b3 0 42%, #f7ded9 43% 57%, #d99b95 58% 100%);
}

.mini-cookie.mini-madeleine {
  width: 42px;
  height: 28px;
  border-radius: 70% 70% 54% 54% / 86% 86% 42% 42%;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(119, 78, 42, 0.18) 19% 22%, transparent 23% 42%, rgba(119, 78, 42, 0.14) 43% 46%, transparent 47% 66%, rgba(119, 78, 42, 0.14) 67% 70%, transparent 71%),
    linear-gradient(160deg, #e2b66f, #b9793f 72%);
}

.mini-cookie.mini-truffle {
  width: 30px;
  height: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 245, 222, 0.24), transparent 45%),
    #4b2d22;
}

.mini-cookie.mini-croissant {
  width: 45px;
  height: 28px;
  border-radius: 55% 55% 44% 44% / 70% 70% 48% 48%;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(255, 250, 242, 0.5) 0 8px, transparent 9px),
    linear-gradient(90deg, #bf7b3d 0 18%, #e2ad61 19% 37%, #c57c3e 38% 51%, #e1a759 52% 70%, #b86d37 71% 100%);
}

.mini-cookie.mini-almond {
  border-radius: 48% 52% 46% 54%;
  background:
    radial-gradient(ellipse at 30% 30%, #8b5f35 0 4px, transparent 5px),
    radial-gradient(ellipse at 62% 34%, #7a512e 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(255, 238, 186, 0.42), transparent 42%),
    #d9a45e;
}

.mini-ribbon {
  width: 42px;
  height: 14px;
  border-radius: 999px;
  background: rgba(220, 174, 150, 0.78);
  transform: translateY(30px) rotate(-8deg);
}

.mini-spark {
  width: 34px;
  height: 34px;
  transform: translate(-42px, 30px);
}

.mini-spark::before {
  content: "✦";
  color: rgba(76, 53, 40, 0.58);
  font-size: 1.55rem;
}

.mini-sun {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(220, 174, 150, 0.34);
  transform: translate(-42px, -30px);
}

.mini-moon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: -12px 0 0 rgba(255, 250, 242, 0.72);
  transform: translate(-36px, -28px);
}

.moment-her {
  --card-bg: linear-gradient(145deg, #faeee9, #dcc6be);
  --cup-bg: #d9aca0;
}

.moment-birthday {
  --card-bg: linear-gradient(145deg, #fff4e7, #dfcdb6);
  --cup-bg: #dfcdb6;
}

.moment-luck {
  --card-bg: linear-gradient(145deg, #f4f1e5, #bbc8ad);
  --cup-bg: #9faf98;
}

.moment-love {
  --card-bg: linear-gradient(145deg, #fff1ee, #e8c5bd);
  --cup-bg: #d9aca0;
}

.moment-self {
  --card-bg: linear-gradient(145deg, #f4f1e5, #d6c7a6);
  --cup-bg: #9faf98;
}

.moment-morning {
  --card-bg: linear-gradient(145deg, #fff5df, #ddb98e);
  --cup-bg: #e2bf8f;
}

.moment-miss {
  --card-bg: linear-gradient(145deg, #dfd7cb, #3a352f);
  --cup-bg: #28231f;
  color: var(--warm-white);
}

.moment-miss small,
.moment-miss .moment-symbol {
  color: rgba(255, 250, 242, 0.72);
}

.about-view {
  display: grid;
  place-items: center;
}

.about-view.is-active {
  display: grid;
}

.about-card {
  max-width: 820px;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(250, 249, 247, 0.72);
  text-align: center;
}

.about-card p:last-child {
  margin: 24px auto 0;
  max-width: 660px;
  color: rgba(34, 34, 34, 0.72);
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

.script {
  margin: 0 0 10px;
  color: var(--primary);
  font-family: Caveat, cursive;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: rgba(250, 249, 247, 0.58);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  backdrop-filter: blur(22px) saturate(0.96);
  transition:
    opacity 360ms ease,
    transform 520ms var(--ease-soft),
    backdrop-filter 520ms ease;
}

.loader.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.loader-cup {
  display: grid;
  width: 104px;
  place-items: center;
  animation: spinCup 950ms cubic-bezier(0.62, 0, 0.28, 1) infinite;
}

.loader-lid {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 22px;
  margin-bottom: -6px;
  border-radius: 18px 18px 7px 7px;
  background: #222;
  border: 1px solid var(--line);
}

.loader-body {
  display: grid;
  width: 78px;
  height: 96px;
  place-items: center;
  clip-path: polygon(9% 0, 91% 0, 76% 100%, 24% 100%);
  background: linear-gradient(160deg, #f1cbb8, #c1876d);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.loader p {
  margin: 0;
  color: var(--brown-dark);
  font-family: Caveat, cursive;
  font-size: 1.7rem;
}

@keyframes spinCup {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
    overflow-x: hidden;
    padding-bottom: 112px;
  }

  .app-shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .app-header {
    position: sticky;
    top: 10px;
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .app-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-pill {
    width: 100%;
    padding: 8px 10px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .audio-player {
    grid-template-columns: 1fr auto;
    border-radius: 22px;
  }

  .audio-track-info,
  .audio-seek {
    grid-column: 1 / -1;
  }

  .playlist-open {
    justify-self: end;
  }

  .view {
    overflow: visible;
  }

  .home-view.is-active,
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .home-view {
    min-height: auto;
  }

  .home-copy {
    max-width: 680px;
  }

  .hero-photo-wrap {
    height: clamp(320px, 48svh, 460px);
    min-height: 320px;
  }

  .builder-grid {
    height: auto;
  }

  .builder-panel {
    max-height: none;
  }

  .cup-zone {
    min-height: auto;
  }

  .cup-stage {
    min-height: clamp(520px, 72svh, 660px);
  }

  .gift-note {
    right: 22px;
    top: 22px;
    width: 150px;
    min-height: 120px;
  }

  .summary-card,
  .moment-grid {
    grid-template-columns: 1fr;
  }

  .moment-grid {
    height: auto;
  }

  .moment-card {
    min-height: 150px;
  }

  .mini-scene {
    min-height: 96px;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 154px;
  }

  .app-shell {
    padding: 10px;
    gap: 8px;
  }

  .app-header {
    top: 8px;
    gap: 10px;
    padding: 8px;
  }

  .intro-music-panel {
    grid-template-columns: 1fr;
    top: calc(50% + 100px);
  }

  .intro-title {
    top: calc(50% + 100px);
  }

  .intro-cup {
    width: 132px;
  }

  .intro-body {
    width: 106px;
    height: 136px;
  }

  .intro-lid {
    width: 114px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .view {
    border-radius: 18px;
  }

  .home-view,
  .builder-view,
  .moments-view,
  .about-view {
    padding: 14px;
  }

  .brand small {
    display: none;
  }

  .app-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-pill {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .audio-player {
    right: 8px;
    bottom: 8px;
    left: 8px;
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 20px;
  }

  .audio-controls {
    justify-content: center;
  }

  .playlist-open {
    width: 100%;
  }

  .playlist-popover {
    right: 8px;
    bottom: 156px;
    width: calc(100vw - 16px);
  }

  h1 {
    font-size: 2.75rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.7rem;
  }

  .home-copy p:not(.eyebrow) {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .button {
    width: 100%;
  }

  .hero-photo-wrap {
    height: 300px;
    min-height: 300px;
    border-radius: 16px;
  }

  .floating-note {
    right: 12px;
    bottom: 12px;
    min-width: 0;
    max-width: calc(100% - 24px);
    padding: 11px 12px;
    border-radius: 14px;
  }

  .builder-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .step-toggle {
    min-height: 46px;
    padding: 0 12px;
  }

  .step-body {
    padding: 0 12px 12px;
  }

  input,
  select {
    min-height: 44px;
  }

  .photo-controls,
  .cup-template-options,
  .cup-controls {
    grid-template-columns: 1fr;
  }

  .map-head {
    align-items: stretch;
    flex-direction: column;
  }

  .map-actions {
    width: 100%;
  }

  .map-actions button {
    flex: 1 1 150px;
  }

  .map-head button,
  .map-picker a {
    width: 100%;
    justify-content: center;
  }

  .map-picker iframe {
    height: 220px;
  }

  .coffee-options {
    grid-template-columns: 1fr;
  }

  .treat-options {
    grid-template-columns: 1fr;
  }

  .symbol-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .symbol-grid button {
    min-height: 42px;
    padding: 0;
  }

  .cup-stage {
    min-height: 500px;
    border-radius: 16px;
    overflow: hidden;
  }

  .cup {
    width: min(72vw, 276px);
    min-width: 218px;
  }

  .cup-body {
    min-height: 344px;
    padding: 48px 25px 28px;
  }

  .cup-photo {
    width: 112px;
    height: 128px;
    border-radius: 21px;
  }

  .print-clean .cup-photo {
    width: 112px;
    height: 128px;
  }

  .print-photo .cup-photo {
    width: 120px;
    height: 134px;
  }

  .cup-message {
    min-width: 164px;
    font-size: 1.42rem;
  }

  .gift-note {
    top: 14px;
    right: 14px;
    width: 132px;
    min-height: 108px;
    padding: 13px;
  }

  .gift-note span {
    font-size: 1.08rem;
  }

  .cookie-pack {
    right: 12px;
    bottom: 14px;
    width: 176px;
    height: 124px;
    padding-left: 16px;
  }

  .cookie-wrap {
    width: 76px;
    height: 76px;
  }

  .summary-card {
    gap: 8px;
  }

  .summary-card div {
    min-height: 58px;
  }

  .moment-card {
    min-height: 142px;
    border-radius: 16px;
  }

  .about-card {
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding: 8px;
  }

  h1 {
    font-size: 2.38rem;
  }

  .home-view,
  .builder-view,
  .moments-view,
  .about-view {
    padding: 12px;
  }

  .nav-pill {
    padding: 8px 7px;
    font-size: 0.74rem;
  }

  .symbol-grid {
    gap: 6px;
  }

  .cup-stage {
    min-height: 492px;
  }

  .cup {
    width: min(74vw, 244px);
    min-width: 204px;
  }

  .cup-body {
    min-height: 326px;
    padding-inline: 22px;
  }

  .gift-note {
    width: 118px;
  }

  .cookie-pack {
    width: 158px;
    height: 112px;
  }
}
.account-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.account-nav__form {
  margin: 0;
}

.account-nav__link,
.account-nav__button,
.account-nav__user {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: rgba(32, 22, 16, 0.78);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.account-nav__button {
  cursor: pointer;
}

.account-nav__link--primary {
  border-color: #c58b45;
  background: #c58b45;
  color: #1f160f;
}

.intro-auth-nav {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
}

.intro-auth-nav__form {
  margin: 0;
}

.intro-auth-nav__link,
.intro-auth-nav__button,
.intro-auth-nav__user {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  color: #3a2418;
  box-shadow: 0 14px 32px rgba(83, 55, 35, 0.14);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.intro-auth-nav__button {
  cursor: pointer;
}

.intro-auth-nav__link--primary {
  background: #d99b7d;
  color: #fff;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.auth-modal:target,
.auth-modal.is-open {
  display: flex;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 22, 15, 0.42);
  backdrop-filter: blur(16px);
}

.auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 430px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 28px 80px rgba(39, 24, 16, 0.28);
  color: #211813;
}

.auth-modal__panel--wide {
  width: min(94vw, 520px);
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efe3d4;
  color: #3a2418;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.auth-modal__eyebrow {
  margin: 0 0 8px;
  color: #8a5a3b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-modal h2 {
  margin: 0 0 20px;
  font-size: 30px;
  letter-spacing: 0;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field > label {
  display: block;
  margin-bottom: 6px;
  color: #211813;
  font-weight: 800;
}

.auth-field input,
.auth-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbb8a2;
  border-radius: 6px;
  background: #fff;
  color: #211813;
  font: inherit;
}

.auth-help {
  display: block;
  margin-top: 5px;
  color: #705f52;
  font-size: 13px;
}

.auth-errors {
  margin-top: 7px;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.auth-errors ul {
  margin: 0;
  padding-left: 18px;
}

.auth-radio-list {
  display: grid;
  gap: 8px;
}

.auth-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e0d2bf;
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
}

.auth-radio-option input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.auth-form button[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: #7b3f26;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.auth-modal__links a {
  color: #7b3f26;
  font-weight: 800;
}

@media (max-width: 640px) {
  .account-nav {
    gap: 6px;
  }

  .account-nav__link,
  .account-nav__button,
  .account-nav__user {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .intro-auth-nav {
    top: 88px;
    left: 12px;
    gap: 6px;
  }

  .intro-auth-nav__link,
  .intro-auth-nav__button,
  .intro-auth-nav__user {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .auth-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .auth-modal__panel {
    padding: 22px;
  }
}
