:root {
  --ink: #2a1520;
  --ink-soft: #5c3a48;
  --blush: #f3b7c8;
  --rose: #d66b8a;
  --berry: #8b2948;
  --wine: #4a1528;
  --cream: #fff4f7;
  --foam: rgba(255, 244, 247, 0.72);
  --line: rgba(74, 21, 40, 0.12);
  --shadow: 0 24px 60px rgba(42, 21, 32, 0.18);
  --radius: 18px;
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, #ffd6e4 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #f7c4d4 0%, transparent 50%),
    linear-gradient(165deg, #fff7fa 0%, #f8dce6 42%, #ead0da 100%);
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.blob-a {
  width: 420px;
  height: 420px;
  background: #ff9bb8;
  top: -80px;
  left: -60px;
}

.blob-b {
  width: 360px;
  height: 360px;
  background: #e87a9a;
  right: -80px;
  top: 30%;
  animation-delay: -4s;
}

.blob-c {
  width: 480px;
  height: 480px;
  background: #c94f74;
  bottom: -160px;
  left: 25%;
  opacity: 0.28;
  animation-delay: -7s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hearts,
.sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.heart {
  position: absolute;
  bottom: -40px;
  width: var(--size, 18px);
  height: var(--size, 18px);
  color: var(--tint, #e87a9a);
  opacity: 0;
  animation: heartRise var(--dur, 8s) linear forwards;
  filter: drop-shadow(0 4px 10px rgba(201, 79, 116, 0.25));
}

.heart svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes heartRise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: var(--op, 0.7);
  }
  50% {
    transform: translate3d(var(--drift, 40px), -50vh, 0) scale(1) rotate(12deg);
    opacity: var(--op, 0.7);
  }
  100% {
    transform: translate3d(calc(var(--drift, 40px) * -0.4), -110vh, 0) scale(0.85)
      rotate(-8deg);
    opacity: 0;
  }
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffc1d4 40%, transparent 70%);
  opacity: 0;
  animation: sparkleTwinkle var(--dur, 3.5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes sparkleTwinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  40% {
    opacity: 0.85;
    transform: scale(1.2);
  }
  70% {
    opacity: 0.25;
    transform: scale(0.7);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(28px) scale(1.05);
  }
}

/* GATE */
.gate {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  animation: fadeIn 0.7s ease both;
}

.gate-panel {
  width: min(440px, 100%);
  padding: 40px 32px;
  background: var(--foam);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: var(--shadow);
  min-height: 280px;
  animation: panelGlow 4.5s ease-in-out infinite;
}

@keyframes panelGlow {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(232, 122, 154, 0);
  }
  50% {
    box-shadow: var(--shadow), 0 0 40px 4px rgba(232, 122, 154, 0.22);
  }
}

.gate-step {
  display: grid;
  gap: 0;
  animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate-step .field {
  margin-bottom: 22px;
}

.gate-step .gate-error {
  margin: -10px 0 16px;
}

.gate-step .btn {
  margin-top: 4px;
}

.gate-step-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
}

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

.gate-brand,
.hero-brand,
.success-brand {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--wine);
  animation: brandIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate-title,
.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.15;
  color: var(--ink);
}

.gate-title-main {
  margin: 0 0 28px;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  font-weight: 600;
  color: var(--wine);
  text-align: center;
}

.gate-step[data-step="0"] {
  text-align: center;
}

.gate-lead,
.hero-lead,
.section-lead {
  margin: 0 0 28px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 1rem;
}

.gate-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(214, 107, 138, 0.18);
}

.gate-error {
  margin: 0;
  color: #a1183a;
  font-weight: 600;
  font-size: 0.92rem;
  animation: shake 0.4s ease;
}

.btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--berry), var(--wine));
  color: #fff7fa;
  box-shadow: 0 12px 28px rgba(139, 41, 72, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #9d3354, #5a1a30);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--wine);
  border: 1px solid rgba(139, 41, 72, 0.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn-wide {
  width: 100%;
}

.btn-add {
  background: rgba(139, 41, 72, 0.08);
  color: var(--berry);
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn-add:hover {
  background: rgba(139, 41, 72, 0.14);
}

.btn-add.is-in {
  background: linear-gradient(135deg, var(--berry), var(--wine));
  color: #fff;
}

/* SITE */
.site {
  position: relative;
  z-index: 1;
  animation: fadeIn 0.65s ease both;
}

.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 72px) 32px;
  max-width: 720px;
  width: 100%;
  order: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  order: 1;
  position: relative;
  width: 100%;
  min-height: min(52vh, 560px);
  height: min(52vh, 560px);
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-color: #c94f74;
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(74, 21, 40, 0.05) 0%,
    rgba(74, 21, 40, 0.12) 70%,
    rgba(255, 244, 247, 0.55) 100%
  );
}

.menu {
  padding: 48px clamp(20px, 5vw, 72px) 24px;
  max-width: 980px;
  margin: 0 auto;
}

.menu-section {
  margin-bottom: 56px;
  animation: riseIn 0.7s ease both;
}

.menu-section:nth-child(2) {
  animation-delay: 0.05s;
}
.menu-section:nth-child(3) {
  animation-delay: 0.1s;
}
.menu-section:nth-child(4) {
  animation-delay: 0.15s;
}

.section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--wine);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.menu-item.has-photo {
  align-items: stretch;
  gap: 14px;
  padding: 18px 0;
}

.menu-item-photo {
  flex: 0 0 96px;
  width: 96px;
  min-height: 96px;
  border: none;
  padding: 0;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #e8a0b4;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(74, 21, 40, 0.18);
}

.menu-item-photo:active {
  transform: scale(0.98);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(42, 21, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease both;
  cursor: zoom-out;
}

.lightbox-img {
  max-width: min(92vw, 720px);
  max-height: min(72vh, 72dvh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  cursor: default;
  animation: popIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lightbox-caption {
  margin: 0;
  color: #fff7fa;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  max-width: 90vw;
}

.lightbox-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.menu-item.has-photo .menu-item-body {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.menu-item-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.checkout {
  padding: 24px clamp(20px, 5vw, 72px)
    calc(110px + env(safe-area-inset-bottom, 0px));
}

.checkout-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cart-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row strong {
  font-weight: 700;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--wine);
}

.cart-empty {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.note-field {
  margin-bottom: 18px;
}

.order-type {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}

.order-type legend {
  padding: 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
}

.radio-row input {
  margin-top: 3px;
  accent-color: var(--berry);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.order-status {
  margin: 14px 0 0;
  font-weight: 600;
  color: var(--berry);
}

.fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--berry), var(--wine));
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: popIn 0.35s ease both;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.fab strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}

.success {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(42, 21, 32, 0.45);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease both;
}

.success-card {
  width: min(420px, 100%);
  padding: 36px 28px;
  border-radius: 28px;
  background: var(--cream);
  text-align: center;
  box-shadow: var(--shadow);
  animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-thanks {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 600;
  color: var(--wine);
  line-height: 1.2;
}

.success-card h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

@media (max-width: 860px) {
  .blob-a,
  .blob-b,
  .blob-c {
    filter: blur(28px);
    opacity: 0.4;
  }

  .blob-a {
    width: 260px;
    height: 260px;
  }

  .blob-b {
    width: 220px;
    height: 220px;
  }

  .blob-c {
    width: 280px;
    height: 280px;
  }

  .gate-panel {
    padding: 28px 20px;
    min-height: 0;
    border-radius: 24px;
  }

  .gate-title-main {
    margin-bottom: 22px;
    font-size: clamp(1.45rem, 7.2vw, 1.9rem);
    line-height: 1.2;
    word-break: break-word;
  }

  .gate-title {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  }

  .gate-lead,
  .hero-lead,
  .section-lead {
    margin-bottom: 20px;
    font-size: 0.95rem;
  }

  .hero-visual {
    min-height: 42vh;
    min-height: 42dvh;
    height: 42vh;
    height: 42dvh;
    max-height: 420px;
  }

  .hero-photo {
    background-position: center 22%;
  }

  .hero-brand {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .hero-copy {
    padding: 22px 18px 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .menu {
    padding: 28px 18px 16px;
  }

  .menu-section {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .menu-item:not(.has-photo) {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

  .menu-item:not(.has-photo) .menu-item-body {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-item.has-photo {
    flex-direction: row;
    align-items: stretch;
  }

  .menu-item-photo {
    flex: 0 0 88px;
    width: 88px;
    min-height: 88px;
    border-radius: 14px;
  }

  .menu-item-title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .btn-add {
    width: 100%;
    min-height: 44px;
  }

  .checkout {
    padding: 16px 18px calc(120px + env(safe-area-inset-bottom, 0px));
  }

  .cart-row {
    align-items: flex-start;
    gap: 10px;
  }

  .cart-row > div:first-child {
    min-width: 0;
    flex: 1;
  }

  .cart-row strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .qty button {
    width: 40px;
    height: 40px;
  }

  .fab {
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    justify-content: center;
    width: auto;
  }

  .success {
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .success-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .success-card .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .gate-panel {
    padding: 24px 16px;
  }

  .hero-visual {
    min-height: 38vh;
    min-height: 38dvh;
    height: 38vh;
    height: 38dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .heart,
  .sparkle,
  .gate-panel {
    animation: none !important;
  }
}
