:root {
  --ink: #342326;
  --muted: #735d63;
  --white: #ffffff;
  --hot-pink: #ff2f8e;
  --blue: #28b7d6;
  --mint: #95f0d6;
  --green: #20c875;
  --sun: #ffd25b;
  --coral: #ff7b67;
  --shadow: 0 22px 50px rgba(71, 37, 57, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  padding-bottom: 82px;
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 47, 142, 0.14) 0 16%, transparent 16% 100%),
    linear-gradient(225deg, rgba(40, 183, 214, 0.18) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(45deg, rgba(255, 210, 91, 0.14) 0 8px, transparent 8px 28px),
    linear-gradient(135deg, #fff7fb 0%, #fffef4 46%, #effcff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(240, 79, 155, 0.28) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(40, 183, 214, 0.24) 0 3px, transparent 4px);
  background-position: 18px 22px, 82px 72px;
  background-size: 118px 118px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 22px;
}

.mobile-hero {
  max-width: 720px;
  margin: 0 auto 16px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 9px 14px;
  border: 2px solid rgba(40, 183, 214, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #087c97;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(40, 183, 214, 0.12);
}

h1 {
  margin: 0;
  color: var(--hot-pink);
  font-size: clamp(2.25rem, 12vw, 4.55rem);
  line-height: 0.91;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--white), 6px 6px 0 rgba(40, 183, 214, 0.34);
}

.intro {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 440px);
  gap: 24px;
  align-items: center;
}

.brand-panel,
.order-panel {
  min-width: 0;
}

.brand-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.menu-preview {
  position: relative;
  display: block;
  width: min(390px, 100%);
  aspect-ratio: 0.58;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.menu-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: inherit;
  pointer-events: none;
}

.menu-preview:hover,
.menu-preview:focus-visible {
  transform: rotate(0deg) translateY(-7px) scale(1.01);
  box-shadow: 0 30px 68px rgba(71, 37, 57, 0.24);
}

.menu-preview img,
.menu-modal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-preview span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(33, 25, 31, 0.84);
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(10px);
}

.mini-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #714452;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 10px 22px rgba(71, 37, 57, 0.1);
}

.mini-tags span:nth-child(1) {
  background: #ffe2ef;
}

.mini-tags span:nth-child(2) {
  background: #dff8ff;
}

.mini-tags span:nth-child(3) {
  background: #fff0b9;
}

.order-panel {
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 16px;
  color: #096b55;
  background: linear-gradient(135deg, #d8fff1, var(--mint));
  font-weight: 900;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(32, 200, 117, 0.56);
  animation: pulse 1.6s infinite;
}

.flavor-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.flavor {
  min-height: 48px;
  padding: 8px 10px;
  border: 2px solid rgba(40, 183, 214, 0.22);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(40, 183, 214, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.flavor:hover,
.flavor:focus-visible {
  transform: translateY(-3px);
  border-color: var(--hot-pink);
}

.flavor.is-active {
  border-color: transparent;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #1ca4dd);
  box-shadow: 0 12px 24px rgba(40, 183, 214, 0.28);
}

.actions {
  display: grid;
  gap: 12px;
}

.action-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(71, 37, 57, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  animation: floatButton 3s ease-in-out infinite;
}

.action-button:nth-child(2) {
  animation-delay: -0.4s;
}

.action-button:nth-child(3) {
  animation-delay: -0.8s;
}

.action-button:nth-child(4) {
  animation-delay: -1.2s;
}

.action-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.62) 45%, transparent 56% 100%);
  transform: translateX(-112%);
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 18px 36px rgba(71, 37, 57, 0.2);
  filter: saturate(1.08);
}

.action-button:hover::after,
.action-button:focus-visible::after {
  animation: shine 740ms ease;
}

.action-button span,
.action-button strong {
  position: relative;
  z-index: 1;
}

.action-button span {
  font-weight: 900;
}

.action-button strong {
  justify-self: end;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  white-space: nowrap;
}

.primary {
  color: var(--white);
  background: linear-gradient(135deg, #22d57c, #14a85e);
}

.pink {
  color: var(--white);
  background: linear-gradient(135deg, #ff86c4, var(--hot-pink));
}

.sun {
  background: linear-gradient(135deg, var(--sun), var(--coral));
}

.lilac {
  width: 100%;
  background: linear-gradient(135deg, #efe4ff, #d8f8ff);
}

.helper {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto 18px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #6d5660;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  backdrop-filter: blur(12px);
}

.site-footer p {
  margin: 0;
}

.menu-modal {
  width: min(520px, calc(100% - 24px));
  max-width: 520px;
  height: min(92dvh, 900px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

.menu-modal::backdrop {
  background: rgba(43, 25, 37, 0.64);
  backdrop-filter: blur(7px);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(26, 21, 25, 0.78);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.sticky-order {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: none;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, #21d27c, #10a760);
  box-shadow: 0 14px 32px rgba(22, 157, 91, 0.34);
  font-weight: 900;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 5;
  padding: 12px 16px;
  border-radius: 999px;
  background: #221920;
  color: var(--white);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(32, 200, 117, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(32, 200, 117, 0);
  }
}

@keyframes floatButton {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}

@keyframes shine {
  to {
    transform: translateX(112%);
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .page-shell {
    padding-top: 34px;
  }

  .mobile-hero {
    margin-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 430px);
    padding-top: 12px;
  }

  .mobile-hero {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  .intro {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-panel {
    gap: 12px;
  }

  .menu-preview {
    width: min(330px, 88vw);
    border-radius: 20px;
    aspect-ratio: 0.68;
  }

  .menu-preview span {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px 14px;
  }

  .order-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .flavor-picker {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .flavor {
    min-height: 50px;
  }

  .action-button {
    grid-template-columns: 1fr;
    min-height: 78px;
    gap: 6px;
    padding: 16px;
  }

  .action-button strong {
    justify-self: start;
  }

  .site-footer {
    display: block;
    width: min(100% - 18px, 430px);
    text-align: center;
  }

  .site-footer p + p {
    margin-top: 6px;
  }

  .sticky-order {
    display: flex;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2rem;
  }

  .status-pill,
  .flavor,
  .action-button {
    font-size: 0.94rem;
  }
}

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