:root {
  --ink: #2b251f;
  --muted: #6a5d4f;
  --accent: #8d6745;
  --accent-strong: #6d4b30;
  --line: rgba(215, 190, 156, 0.58);
  --glass: rgba(255, 251, 245, 0.4);
  --glass-strong: rgba(255, 251, 245, 0.56);
  --ok-bg: #e8f8ee;
  --ok-ink: #1f5f30;
  --err-bg: #fdecec;
  --err-ink: #862323;
  --mx: 0;
  --my: 0;
  --sy: 0;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --touch-min: 44px;
}

* { box-sizing: border-box; }

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

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

body {
  font-family: "Plus Jakarta Sans", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  padding-bottom: 22px;
  background:
    radial-gradient(1000px 560px at 15% -10%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 60%),
    radial-gradient(960px 580px at 105% 6%, rgba(206, 174, 137, 0.26), rgba(206, 174, 137, 0) 62%),
    linear-gradient(155deg, #f8f1e8 0%, #f2e7d7 48%, #e7d9c4 100%);
}

body.cart-page-open {
  overflow: hidden;
}

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

.video-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 18s linear;
  filter: brightness(0.62) saturate(0.92) contrast(0.95);
}

.bg-video.is-visible {
  opacity: 0.72;
  transform: scale(1.14);
}

.video-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 248, 236, 0.24), rgba(255, 248, 236, 0) 44%),
    linear-gradient(180deg, rgba(24, 18, 13, 0.36) 0%, rgba(40, 30, 21, 0.44) 42%, rgba(23, 17, 12, 0.55) 100%);
}

.parallax-layer {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.2px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.layer-back {
  width: 520px;
  height: 520px;
  left: -130px;
  top: 6%;
  background: radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.56), rgba(212, 173, 129, 0.14) 54%, rgba(212, 173, 129, 0) 74%);
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -14px), 0);
  animation: drift-one 22s ease-in-out infinite;
}

.layer-mid {
  width: 390px;
  height: 390px;
  right: -86px;
  top: 22%;
  background: radial-gradient(circle at 65% 40%, rgba(255, 255, 255, 0.4), rgba(164, 127, 92, 0.15) 58%, rgba(164, 127, 92, 0) 74%);
  transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * -10px), 0);
  animation: drift-two 19s ease-in-out infinite;
}

.layer-front {
  width: 360px;
  height: 360px;
  left: 12%;
  bottom: -160px;
  background: radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.34), rgba(178, 145, 108, 0.24) 60%, rgba(178, 145, 108, 0) 76%);
  transform: translate3d(calc(var(--mx) * -20px), calc(var(--my) * 14px), 0);
  animation: drift-three 24s ease-in-out infinite;
}

.grain-layer {
  position: absolute;
  inset: -120%;
  opacity: 0.06;
  background-image: radial-gradient(#8a6f52 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  animation: grain-shift 12s steps(10) infinite;
}

@keyframes drift-one {
  0%, 100% { transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -14px), 0); }
  50% { transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * -18px), 0); }
}

@keyframes drift-two {
  0%, 100% { transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * -10px), 0); }
  50% { transform: translate3d(calc(var(--mx) * 21px), calc(var(--my) * -13px), 0); }
}

@keyframes drift-three {
  0%, 100% { transform: translate3d(calc(var(--mx) * -20px), calc(var(--my) * 14px), 0); }
  50% { transform: translate3d(calc(var(--mx) * -24px), calc(var(--my) * 18px), 0); }
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(6%, 5%, 0); }
}

.app {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 10px 56px;
}

.hero,
.menu,
.cart,
.success,
.error {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--glass-strong) 0%, rgba(255, 249, 241, 0.26) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 38px rgba(61, 44, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(132, 101, 67, 0.16);
}

.leaf-philosophy {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.leaf-philosophy-teaser,
.leaf-philosophy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--glass-strong) 0%, rgba(255, 249, 241, 0.3) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 14px 32px rgba(61, 44, 24, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.leaf-philosophy-teaser {
  padding: 14px 16px;
}

.leaf-philosophy-teaser h2 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.leaf-philosophy-teaser p {
  margin: 0;
  color: #3f3328;
  line-height: 1.45;
  font-size: 0.95rem;
}

.leaf-philosophy-details {
  display: grid;
  gap: 8px;
}

.leaf-philosophy-trigger {
  width: fit-content;
  list-style: none;
}

.leaf-philosophy-trigger::-webkit-details-marker {
  display: none;
}

.leaf-philosophy-card {
  padding: 14px 16px;
}

.leaf-philosophy-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.leaf-philosophy-card p {
  margin: 0 0 10px;
  line-height: 1.56;
  color: #3b2f24;
  font-size: 0.94rem;
}

.leaf-philosophy-card p:last-child {
  margin-bottom: 0;
}

.leaf-philosophy--quiet {
  margin-top: 16px;
  margin-bottom: 6px;
  gap: 6px;
  opacity: 0.9;
  justify-items: center;
}

.leaf-philosophy--quiet .leaf-philosophy-teaser,
.leaf-philosophy--quiet .leaf-philosophy-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.leaf-philosophy--quiet .leaf-philosophy-teaser {
  padding: 10px 12px;
  text-align: center;
}

.leaf-philosophy--quiet .leaf-philosophy-teaser h2 {
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: #fff;
}

.leaf-philosophy--quiet .leaf-philosophy-teaser p {
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.leaf-philosophy--quiet .leaf-philosophy-trigger {
  font-size: 0.78rem;
  min-height: 34px;
  width: auto;
  min-width: 0;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  margin: 0 auto;
}

.leaf-tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(108, 214, 255, 0.72) !important;
  background:
    linear-gradient(145deg, rgba(11, 40, 60, 0.78), rgba(8, 22, 38, 0.85)) !important;
  color: #def5ff !important;
  box-shadow:
    0 8px 20px rgba(0, 25, 42, 0.45),
    inset 0 0 0 1px rgba(138, 230, 255, 0.26);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaf-tech-badge:hover,
.leaf-tech-badge:focus-visible {
  border-color: rgba(148, 232, 255, 0.92) !important;
  background:
    linear-gradient(145deg, rgba(15, 55, 80, 0.85), rgba(10, 30, 46, 0.9)) !important;
  box-shadow:
    0 10px 24px rgba(0, 31, 55, 0.5),
    0 0 0 2px rgba(84, 197, 255, 0.24),
    inset 0 0 0 1px rgba(162, 237, 255, 0.32);
}

.leaf-philosophy--quiet .leaf-philosophy-card {
  padding: 10px 12px;
  max-width: 760px;
}

.leaf-philosophy--quiet .leaf-philosophy-card h3 {
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: #fff;
  text-align: center;
}

.leaf-philosophy--quiet .leaf-philosophy-card p {
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.philosophy-dialog {
  width: min(700px, 100%);
  max-height: min(86vh, 800px);
  background: #ffffff;
  color: #223329;
  border: 1px solid rgba(190, 163, 130, 0.55);
}

.philosophy-dialog h3 {
  margin: 2px 0 8px;
}

.philosophy-body {
  max-height: min(62vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.philosophy-body p {
  margin: 0 0 10px;
  line-height: 1.56;
  color: #2b3a31;
  font-weight: 450;
}

.philosophy-body p:last-child {
  margin-bottom: 0;
}

.philosophy-body .philosophy-lead {
  font-size: 1rem;
  line-height: 1.62;
}

.philosophy-body strong {
  font-weight: 760;
  color: #1f2f27;
}

.philosophy-body .philosophy-close {
  margin-top: 4px;
}

.philosophy-body .philosophy-signature {
  margin-top: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: right;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 12px;
  isolation: isolate;
}

.hero-top {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 6px 2px 8px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.hero-logo {
  width: 62px;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 6px 14px rgba(18, 56, 36, 0.25));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 32%),
    radial-gradient(500px 240px at 92% 20%, rgba(194, 158, 120, 0.2), rgba(194, 158, 120, 0));
  z-index: -1;
}

.hero::before,
.menu::before,
.cart::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 6px;
  height: 34%;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.menu::before {
  opacity: 0.45;
}

.menu-ad-banner {
  position: relative;
  isolation: isolate;
  z-index: 3;
  margin: 0 0 12px;
  width: 100%;
  border: 1px solid rgba(186, 157, 124, 0.78);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.74);
  box-shadow: 0 10px 24px rgba(95, 69, 39, 0.14);
  transform-origin: 50% 50%;
  will-change: transform, box-shadow;
  animation: ad-banner-pop 2.9s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.menu-ad-banner::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border-radius: inherit;
  z-index: 6;
  border: 2px solid transparent;
  background: linear-gradient(transparent, transparent) padding-box;
  opacity: 0.82;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.42))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.24));
  will-change: opacity, filter;
  animation: ad-banner-edge-glow 3.2s ease-in-out infinite;
}

.menu-ad-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 34%,
    rgba(255, 255, 255, 0.44) 49%,
    rgba(255, 255, 255, 0) 64%
  );
  transform: translate3d(-145%, 0, 0);
  opacity: 0;
  will-change: transform, opacity;
  animation: ad-banner-shimmer 3.8s linear infinite;
}

.menu-ad-banner-image {
  width: 100%;
  aspect-ratio: 4 / 1;
  height: auto;
  display: block;
  object-fit: cover;
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
  animation: ad-banner-jolt 2.9s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.menu-ad-banner-image.is-template-bg {
  opacity: 0.34;
  filter: saturate(0.88) brightness(0.9);
}

.menu-ad-banner-template {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(114deg, rgba(23, 20, 17, 0.68) 0%, rgba(23, 20, 17, 0.36) 55%, rgba(23, 20, 17, 0.2) 100%),
    var(--ad-banner-bg, linear-gradient(120deg, rgba(75, 61, 46, 0.78), rgba(124, 92, 61, 0.68)));
  background-size: cover;
  background-position: center;
}

.menu-ad-banner-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 4px;
  color: #fffdf7;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.42);
}

.menu-ad-banner-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 235, 187, 0.95);
}

.menu-ad-banner-headline {
  font-size: clamp(1rem, 2.9vw, 1.6rem);
  font-weight: 900;
  line-height: 1.06;
  max-width: 88%;
}

.menu-ad-banner-price {
  display: inline-flex;
  width: max-content;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 175, 67, 0.95), rgba(232, 106, 33, 0.95));
  border: 1px solid rgba(255, 215, 154, 0.72);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
}

.menu-ad-banner-slides {
  position: relative;
  min-height: 1.55em;
  margin-top: 2px;
  max-width: 90%;
}

.menu-ad-banner-slide {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.98);
  transition: opacity 420ms ease, transform 420ms ease;
  font-size: clamp(0.82rem, 2.25vw, 1.05rem);
  font-weight: 780;
  letter-spacing: 0.01em;
  color: rgba(255, 251, 236, 0.98);
}

.menu-ad-banner-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.menu-ad-banner-copy.ad-pos-top_left {
  justify-content: start;
  align-content: start;
  text-align: left;
}

.menu-ad-banner-copy.ad-pos-top_center {
  justify-content: center;
  align-content: start;
  text-align: center;
}

.menu-ad-banner-copy.ad-pos-top_right {
  justify-content: end;
  align-content: start;
  text-align: right;
}

.menu-ad-banner-copy.ad-pos-center_left {
  justify-content: start;
  align-content: center;
  text-align: left;
}

.menu-ad-banner-copy.ad-pos-center {
  justify-content: center;
  align-content: center;
  text-align: center;
}

.menu-ad-banner-copy.ad-pos-center_right {
  justify-content: end;
  align-content: center;
  text-align: right;
}

.menu-ad-banner-copy.ad-pos-bottom_left {
  justify-content: start;
  align-content: end;
  text-align: left;
}

.menu-ad-banner-copy.ad-pos-bottom_center {
  justify-content: center;
  align-content: end;
  text-align: center;
}

.menu-ad-banner-copy.ad-pos-bottom_right {
  justify-content: end;
  align-content: end;
  text-align: right;
}

.menu-ad-banner-copy.ad-font-display {
  font-family: "Plus Jakarta Sans", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

.menu-ad-banner-copy.ad-font-elegant {
  font-family: "Cormorant Garamond", "Georgia", serif;
}

.menu-ad-banner-copy.ad-font-modern {
  font-family: "Space Grotesk", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.menu-ad-banner-copy.ad-font-bold {
  font-family: "Archivo Black", "Impact", "Segoe UI", sans-serif;
}

@keyframes ad-banner-shimmer {
  0%, 8% {
    transform: translate3d(-145%, 0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.98;
  }
  30% {
    transform: translate3d(145%, 0, 0);
    opacity: 0;
  }
  56% {
    transform: translate3d(-130%, 0, 0);
    opacity: 0;
  }
  60% {
    opacity: 0.82;
  }
  77% {
    transform: translate3d(130%, 0, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(130%, 0, 0);
    opacity: 0;
  }
}

@keyframes ad-banner-edge-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px rgba(255, 255, 255, 0.36))
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  }
  30% {
    filter:
      drop-shadow(0 0 9px rgba(255, 255, 255, 0.72))
      drop-shadow(0 0 20px rgba(255, 255, 255, 0.45));
  }
  60% {
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.56))
      drop-shadow(0 0 14px rgba(255, 255, 255, 0.3));
  }
}

@keyframes ad-banner-jolt {
  0%, 100% {
    transform: scale(1.02) translate3d(0, 0, 0) rotate(0deg);
  }
  8% {
    transform: scale(1.048) translate3d(-0.5%, -0.3%, 0) rotate(-0.38deg);
  }
  14% {
    transform: scale(1.055) translate3d(0.46%, 0.24%, 0) rotate(0.32deg);
  }
  22% {
    transform: scale(1.036) translate3d(-0.18%, 0.12%, 0) rotate(-0.12deg);
  }
  52% {
    transform: scale(1.03) translate3d(0.15%, -0.1%, 0) rotate(0.08deg);
  }
}

@keyframes ad-banner-pop {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    box-shadow: 0 10px 24px rgba(95, 69, 39, 0.14);
  }
  7% {
    transform: translate3d(0, -1px, 0) scale(1.02) rotate(-0.2deg);
    box-shadow: 0 16px 32px rgba(95, 69, 39, 0.24);
  }
  10% {
    transform: translate3d(0, -2px, 0) scale(1.04) rotate(0.24deg);
    box-shadow: 0 20px 36px rgba(95, 69, 39, 0.28);
  }
  13% {
    transform: translate3d(0, -1px, 0) scale(1.028) rotate(-0.18deg);
    box-shadow: 0 16px 32px rgba(95, 69, 39, 0.24);
  }
  18% {
    transform: translate3d(0, 0, 0) scale(1.012) rotate(0.08deg);
    box-shadow: 0 12px 27px rgba(95, 69, 39, 0.2);
  }
  56% {
    transform: translate3d(0, 0, 0) scale(1.006) rotate(-0.06deg);
    box-shadow: 0 14px 28px rgba(95, 69, 39, 0.2);
  }
}

.hero-service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  min-width: 0;
}

.hero-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 6px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(169, 142, 108, 0.35);
}

.table-pill {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3a2d22;
  width: auto;
  max-width: max-content;
}

.service-status-top {
  grid-column: 1 / -1;
  width: min(100%, 500px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(181, 209, 187, 0.68);
  background: rgba(232, 250, 238, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.service-status-item {
  display: flex;
  align-items: center;
  padding: 1px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #1c5b30;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: none;
}

.service-status-item.flash {
  animation: service-pill-pop 0.34s ease;
}

@keyframes service-pill-pop {
  0% { transform: scale(0.96); opacity: 0.66; }
  100% { transform: scale(1); opacity: 1; }
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  flex-wrap: wrap;
  width: 100%;
}

.lang-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.lang-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 6px 9px;
  font-weight: 700;
  color: var(--ink);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
  font-variant-emoji: emoji;
}

.lang-select option {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
}

.watermark {
  position: absolute;
  right: 14px;
  top: 8px;
  font-size: 2.4rem;
  letter-spacing: 0.24rem;
  color: rgba(122, 95, 61, 0.1);
  font-weight: 700;
  pointer-events: none;
  z-index: 1;
}

.hero-monogram {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 172px;
  height: auto;
  transform: translateY(-50%);
  opacity: 0.075;
  filter: grayscale(1) saturate(0.7) contrast(0.92);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  font-weight: 700;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(215, 191, 159, 0.42);
}

h2 { font-size: 1.5rem; }

p { margin: 0; color: var(--muted); }

.btn {
  border: 1px solid rgba(182, 146, 106, 0.55);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.97), rgba(244, 231, 215, 0.92));
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  box-shadow:
    0 9px 20px rgba(95, 69, 39, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(141, 103, 69, 0.22);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-height: var(--touch-min);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(95, 69, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  padding: 13px 18px;
  background: linear-gradient(160deg, #9b734d 0%, #855f3e 52%, #6a472f 100%);
  color: #fff;
  border-color: rgba(123, 86, 50, 0.72);
  box-shadow:
    0 14px 26px rgba(93, 65, 37, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(63, 42, 25, 0.34);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #a57c55 0%, #8c6643 52%, #6f4a30 100%);
}

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

.btn-compact {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.86rem;
  white-space: nowrap;
}

#btnBill {
  color: #ffffff;
  border-color: rgba(39, 102, 187, 0.9);
  background: linear-gradient(180deg, #4e98ff, #2f6ed3);
}

#btnWaiter {
  color: #ffffff;
  border-color: rgba(22, 61, 122, 0.9);
  background: linear-gradient(180deg, #2f5ea8, #1f4277);
}

#btnCoal {
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.9);
  background: linear-gradient(180deg, #2b2b2b, #000000);
}

#btnShishaMan {
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.9);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 6px,
      rgba(255, 255, 255, 0.04) 6px,
      rgba(255, 255, 255, 0.04) 12px
    ),
    linear-gradient(180deg, #1f1f1f, #000000);
}

.inline-upsell {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(186, 124, 52, 0.78);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 233, 201, 0.56), rgba(255, 233, 201, 0) 42%),
    linear-gradient(165deg, rgba(255, 243, 222, 0.95), rgba(255, 229, 189, 0.88));
  box-shadow: 0 10px 20px rgba(126, 78, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: upsell-pulse 1.1s ease-out 1;
}

.inline-upsell-text {
  margin: 0 0 10px;
  color: #5a2f12;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.inline-upsell-actions {
  display: grid;
  gap: 6px;
}

.inline-upsell-actions .btn {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.84rem;
  border-color: rgba(168, 112, 45, 0.75);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(255, 238, 212, 0.94));
}

.inline-upsell-no {
  border-style: dashed;
  color: #795f43;
  background: rgba(255, 250, 243, 0.92);
}

.inline-upsell-no-top {
  border-style: solid;
  border-width: 2px;
  border-color: rgba(140, 74, 43, 0.8) !important;
  color: #5a2414 !important;
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.98), rgba(252, 232, 220, 0.95)) !important;
  font-weight: 700;
}

@keyframes upsell-pulse {
  0% {
    transform: scale(0.985);
    box-shadow: 0 0 0 rgba(126, 78, 28, 0);
  }
  60% {
    transform: scale(1.004);
    box-shadow: 0 0 0 4px rgba(219, 152, 75, 0.18), 0 10px 20px rgba(126, 78, 28, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(126, 78, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}

.service-btn-wrap {
  position: relative;
}

.btn-compact .service-btn-label {
  display: inline-block;
  min-width: 0;
}

.btn-compact .service-btn-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 7px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.btn-compact .service-btn-indicator::before {
  content: '';
}

.btn-compact.service-btn-active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(165deg, #ff8d8d 0%, #e24a4a 48%, #a81f1f 100%);
  border-color: rgba(138, 24, 24, 0.95);
  color: #fff;
  box-shadow: 0 0 16px rgba(204, 36, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  animation: service-btn-pulse 1.2s ease-in-out infinite;
}

.btn-compact.flash {
  animation: service-btn-pop 0.34s ease;
}

.btn-compact.service-btn-sending {
  filter: saturate(1.05);
}

.btn-compact.service-btn-sending .service-btn-indicator {
  opacity: 1;
  transform: scale(1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: service-spinner 0.72s linear infinite;
}

.btn-compact.service-btn-sent .service-btn-indicator,
.btn-compact.service-btn-cooldown .service-btn-indicator,
.btn-compact.service-btn-error .service-btn-indicator {
  opacity: 1;
  transform: scale(1);
  animation: service-indicator-pop 0.28s ease;
}

.btn-compact.service-btn-sent .service-btn-indicator {
  background: rgba(23, 134, 55, 0.92);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.btn-compact.service-btn-sent .service-btn-indicator::before {
  content: '✓';
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.btn-compact.service-btn-cooldown .service-btn-indicator {
  background: rgba(214, 135, 18, 0.94);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.btn-compact.service-btn-cooldown .service-btn-indicator::before {
  content: '⏱';
  color: #fff;
  font-size: 0.66rem;
  line-height: 1;
}

.btn-compact.service-btn-error .service-btn-indicator {
  background: rgba(168, 29, 29, 0.94);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.btn-compact.service-btn-error .service-btn-indicator::before {
  content: '!';
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.service-toast {
  display: none;
}

.service-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.btn-burning {
  background: linear-gradient(165deg, #ffb347 0%, #ff6a00 45%, #c62828 100%);
  border-color: rgba(164, 37, 22, 0.9);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 111, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  animation: coal-burn 1.2s ease-in-out infinite;
}

@keyframes coal-burn {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 14px rgba(255, 111, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(255, 68, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }
}

@keyframes service-btn-pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(204, 36, 36, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 42, 42, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}

@keyframes service-btn-pop {
  0% { transform: scale(0.97); opacity: 0.72; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes service-spinner {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1) rotate(360deg); }
}

@keyframes service-indicator-pop {
  0% { transform: scale(0.66); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.menu,
.cart,
.success,
.error {
  margin-top: 12px;
  padding: 12px;
  animation: enter-up 0.55s ease both;
}

.menu { animation-delay: 0.03s; }
.cart { animation-delay: 0.08s; }
.menu {
  overflow: hidden;
}

#menuSection > h2 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #645445;
}

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

.cart {
  transition: opacity 0.2s ease, filter 0.2s ease;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(250, 241, 229, 0.82));
}

body.cart-page-open .cart {
  position: fixed;
  inset: 12px;
  z-index: 80;
  margin: 0;
  overflow: auto;
  max-width: none;
  animation: none;
}

.cart.is-empty {
  opacity: 1;
  filter: none;
}

.cart-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(176, 148, 113, 0.45);
}

.btn-cart-close {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cart-meta {
  margin: -4px 0 10px;
  font-size: 0.92rem;
  color: #4f4030;
  font-weight: 700;
}

.cart-price-note {
  margin: 8px 0 10px;
  font-size: 0.82rem;
  color: #6b5b49;
  font-weight: 600;
}

.cart-review-hint {
  margin: 8px 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3f3328;
}

.cart-group-title {
  margin: 14px 0 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 0;
  border-left: 7px solid #9f7b56;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(95, 71, 42, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #35281d;
}

.cart-group-drink {
  border-left-color: #2b7eb8;
  background: linear-gradient(90deg, rgba(232, 246, 255, 0.95), rgba(255, 255, 255, 0.92));
  color: #0f4f7b;
}

.cart-group-food {
  border-left-color: #d17a33;
  background: linear-gradient(90deg, rgba(255, 240, 225, 0.95), rgba(255, 255, 255, 0.92));
  color: #7a3b0f;
}

.cart-group-shisha {
  border-left-color: #6f59b8;
  background: linear-gradient(90deg, rgba(238, 233, 255, 0.95), rgba(255, 255, 255, 0.92));
  color: #3b2d77;
}

.cart-group-other {
  border-left-color: #6e7786;
  background: linear-gradient(90deg, rgba(239, 243, 248, 0.95), rgba(255, 255, 255, 0.92));
  color: #33404c;
}

.upsell-banner-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(186, 124, 52, 0.82);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 233, 201, 0.56), rgba(255, 233, 201, 0) 42%),
    linear-gradient(165deg, rgba(255, 243, 222, 0.95), rgba(255, 229, 189, 0.88));
  box-shadow:
    0 10px 20px rgba(126, 78, 28, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: upsell-pulse 1.1s ease-out 1;
}

.upsell-banner-kicker {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8c4a23;
}

.upsell-banner-title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: #5a2f12;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.28;
}

.category {
  margin-top: 14px;
}

.category-anchor {
  scroll-margin-top: 94px;
}

.category-title {
  position: static;
  margin: 2px 0 10px;
  padding: 2px 2px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.happy-hour-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(138, 85, 28, 0.28);
  border-radius: 10px;
  background: rgba(255, 244, 226, 0.92);
  color: #6a3f1a;
  font-weight: 700;
  font-size: 0.92rem;
}

.happy-hour-builder {
  display: grid;
  gap: 12px;
}

.happy-hour-promo-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(52, 103, 70, 0.34);
  border-radius: 14px;
  padding: 12px 14px 12px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(198, 233, 206, 0.55), transparent 52%),
    linear-gradient(165deg, rgba(241, 249, 244, 0.98), rgba(224, 240, 229, 0.94));
  box-shadow: 0 8px 18px rgba(32, 77, 52, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.happy-hour-promo-content {
  min-width: 0;
}

.happy-hour-promo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(44, 95, 61, 0.34);
  background: rgba(255, 255, 255, 0.86);
  color: #1f5a38;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.happy-hour-promo-title {
  margin: 8px 0 2px;
  color: #18452d;
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.22rem, 1rem + 0.55vw, 1.56rem);
  line-height: 1.16;
}

.happy-hour-promo-subtitle {
  margin: 0;
  color: #1f3f2d;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.32;
}

.happy-hour-promo-note {
  margin: 6px 0 0;
  color: #2a5a3e;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.34;
}

.happy-hour-promo-price-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 90px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(43, 98, 62, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(238, 248, 241, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 10px rgba(22, 77, 49, 0.12);
}

.happy-hour-promo-price-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #356648;
  line-height: 1.1;
}

.happy-hour-promo-price-value {
  margin-top: 2px;
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  font-size: 1.36rem;
  font-weight: 700;
  color: #16472e;
  line-height: 1;
}

.happy-hour-wizard-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.happy-hour-wizard-head h4 {
  margin: 0;
}

.happy-hour-wizard-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(141, 110, 76, 0.38);
  background: rgba(255, 251, 245, 0.88);
  color: #5f4934;
  font-size: 0.74rem;
  font-weight: 800;
}

.happy-hour-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.happy-hour-grid-readonly {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.happy-hour-grid-wizard.is-review-step {
  grid-template-columns: minmax(0, 1fr);
}

.happy-hour-group {
  border: 1px solid rgba(141, 110, 76, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
}

.happy-hour-group h4 {
  margin: 0 0 8px;
}

.happy-hour-drink-head {
  padding: 0;
  border: 0;
  background: transparent;
}

.happy-hour-drink-head h4 {
  margin: 0;
  padding: 0 2px;
}

.happy-hour-options {
  display: grid;
  gap: 8px;
}

.happy-hour-drink-groups {
  display: grid;
  gap: 10px;
}

.happy-hour-brand-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(165, 140, 111, 0.35);
}

.happy-hour-brand-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.happy-hour-brand-group h5 {
  margin: 0 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5f4934;
}

.happy-hour-option {
  --variant-bg-a: rgba(255, 255, 255, 0.96);
  --variant-bg-b: rgba(248, 239, 226, 0.92);
  --variant-border: rgba(176, 143, 105, 0.62);
  --variant-ink: #2f241a;
  border: 1px solid rgba(141, 110, 76, 0.35);
  border-radius: 10px;
  background: linear-gradient(170deg, var(--variant-bg-a), var(--variant-bg-b));
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  color: var(--variant-ink);
  border-color: var(--variant-border);
  min-width: 0;
  position: relative;
}

.happy-hour-option-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.happy-hour-option-right {
  flex: 0 0 auto;
}

.happy-hour-option-image {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(185, 162, 134, 0.45);
  object-fit: contain;
  object-position: center;
  display: block;
  background: #ffffff;
}

.happy-hour-option[data-variant-tone="rb-original"] { --variant-bg-a: #f0e7dd; --variant-bg-b: #e3d2bf; --variant-border: #b79a79; --variant-ink: #2e241b; }
.happy-hour-option[data-variant-tone="rb-white"] { --variant-bg-a: #ffffff; --variant-bg-b: #f4f2ef; --variant-border: #c9c6c0; --variant-ink: #2a2a2a; }
.happy-hour-option[data-variant-tone="rb-sugarfree"] { --variant-bg-a: #ececec; --variant-bg-b: #d9d9d9; --variant-border: #adadad; --variant-ink: #222; }
.happy-hour-option[data-variant-tone="rb-green"] { --variant-bg-a: #e8f7ea; --variant-bg-b: #cdeecf; --variant-border: #84b98a; --variant-ink: #1e4f27; }
.happy-hour-option[data-variant-tone="rb-blueberry"] { --variant-bg-a: #e6f0ff; --variant-bg-b: #cdddff; --variant-border: #86a6da; --variant-ink: #1d3762; }
.happy-hour-option[data-variant-tone="rb-white-peach"] { --variant-bg-a: #fff1f7; --variant-bg-b: #ffdceb; --variant-border: #d8a6be; --variant-ink: #5c2f45; }
.happy-hour-option[data-variant-tone="rb-orange"] { --variant-bg-a: #fff0e3; --variant-bg-b: #ffd7b5; --variant-border: #d9a172; --variant-ink: #5a3719; }
.happy-hour-option[data-variant-tone="rb-juneberry"] { --variant-bg-a: #ece8ff; --variant-bg-b: #d8d0ff; --variant-border: #9d93d4; --variant-ink: #352f6b; }
.happy-hour-option[data-variant-tone="rb-default"] { --variant-bg-a: #f4ede4; --variant-bg-b: #eadcc8; --variant-border: #b69b78; --variant-ink: #33271f; }
.happy-hour-option[data-variant-tone="eb-lemon"] { --variant-bg-a: #fff9d9; --variant-bg-b: #ffeeb2; --variant-border: #d6bd67; --variant-ink: #5d4c0f; }
.happy-hour-option[data-variant-tone="eb-mango-pineapple"] { --variant-bg-a: #fff3d8; --variant-bg-b: #ffd8a3; --variant-border: #d8a065; --variant-ink: #5f3c1a; }
.happy-hour-option[data-variant-tone="eb-pomegranate"] { --variant-bg-a: #ffe9ed; --variant-bg-b: #ffc7d1; --variant-border: #d48d9b; --variant-ink: #5f2431; }
.happy-hour-option[data-variant-tone="eb-blueberry"] { --variant-bg-a: #e7efff; --variant-bg-b: #cddcff; --variant-border: #8fa7d8; --variant-ink: #213a67; }
.happy-hour-option[data-variant-tone="eb-peach"] { --variant-bg-a: #fff1e6; --variant-bg-b: #ffd8bf; --variant-border: #d4a281; --variant-ink: #5d3a22; }
.happy-hour-option[data-variant-tone="eb-peach-zero"] { --variant-bg-a: #fff5fb; --variant-bg-b: #ffe3f4; --variant-border: #d6acc8; --variant-ink: #593249; }
.happy-hour-option[data-variant-tone="eb-watermelon"] { --variant-bg-a: #ffe9ee; --variant-bg-b: #ffc6d3; --variant-border: #d38d9e; --variant-ink: #5d2534; }
.happy-hour-option[data-variant-tone="eb-cherry"] { --variant-bg-a: #ffe8ef; --variant-bg-b: #ffcad8; --variant-border: #d78ea5; --variant-ink: #5e2637; }
.happy-hour-option[data-variant-tone="eb-passionfruit"] { --variant-bg-a: #fff0dd; --variant-bg-b: #ffd3a6; --variant-border: #d6a06a; --variant-ink: #593a1c; }
.happy-hour-option[data-variant-tone="eb-default"] { --variant-bg-a: #eef3ff; --variant-bg-b: #dbe5ff; --variant-border: #a3b6df; --variant-ink: #2b3f6d; }
.happy-hour-option[data-variant-tone="fz-original"] { --variant-bg-a: #f0e6dc; --variant-bg-b: #dec7ad; --variant-border: #b3916e; --variant-ink: #32251a; }
.happy-hour-option[data-variant-tone="fz-sugarfree"] { --variant-bg-a: #f0f0f0; --variant-bg-b: #dddddd; --variant-border: #adadad; --variant-ink: #242424; }
.happy-hour-option[data-variant-tone="fz-superzero"] { --variant-bg-a: #ececec; --variant-bg-b: #d7d7d7; --variant-border: #a2a2a2; --variant-ink: #222; }
.happy-hour-option[data-variant-tone="fz-mischmasch"] { --variant-bg-a: #fff3db; --variant-bg-b: #ffd6a2; --variant-border: #d9a170; --variant-ink: #5f3a1b; }
.happy-hour-option[data-variant-tone="fz-apple-elder"] { --variant-bg-a: #ecf7e9; --variant-bg-b: #d4ebcf; --variant-border: #92bb8f; --variant-ink: #254c2f; }
.happy-hour-option[data-variant-tone="fz-orange"] { --variant-bg-a: #fff2e0; --variant-bg-b: #ffd6ab; --variant-border: #d9a170; --variant-ink: #5c381a; }
.happy-hour-option[data-variant-tone="fz-lemon"] { --variant-bg-a: #fffadf; --variant-bg-b: #fff0b9; --variant-border: #d3c06d; --variant-ink: #5c4c12; }
.happy-hour-option[data-variant-tone="fz-melon"] { --variant-bg-a: #eff9ea; --variant-bg-b: #d7efcc; --variant-border: #98c18e; --variant-ink: #285132; }
.happy-hour-option[data-variant-tone="fz-default"] { --variant-bg-a: #f5efe5; --variant-bg-b: #eadcc8; --variant-border: #b79a78; --variant-ink: #33271f; }
.happy-hour-option[data-variant-tone="water-default"] { --variant-bg-a: #eef7ff; --variant-bg-b: #dff0ff; --variant-border: #9ec4de; --variant-ink: #244865; }
.happy-hour-option[data-variant-tone="shisha-default"] { --variant-bg-a: #f9f2e7; --variant-bg-b: #eddcc3; --variant-border: #b89a6f; --variant-ink: #3b2b1a; }
.happy-hour-option[data-variant-tone="rx-default"] { --variant-bg-a: #eef1ff; --variant-bg-b: #d9e0ff; --variant-border: #9ba9dd; --variant-ink: #2e3a6b; }
.happy-hour-option[data-variant-tone="ga-default"] { --variant-bg-a: #fff5e7; --variant-bg-b: #ffe0b4; --variant-border: #d9ab73; --variant-ink: #5a3a1b; }

.happy-hour-builder .happy-hour-option {
  --variant-bg-a: #fffefd;
  --variant-bg-b: #f8f4ee;
  --variant-border: rgba(140, 112, 80, 0.38);
  --variant-ink: #2f241a;
}

.happy-hour-option.is-selected {
  border-color: #1f7a38;
  box-shadow: 0 0 0 3px rgba(31, 122, 56, 0.22);
  background: #f5fff8;
}

.happy-hour-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #1f7a38;
  background: #e9f9ef;
  color: #165a2c;
  font-weight: 900;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.happy-hour-option-name {
  font-weight: 700;
  font-size: 1.02rem;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.happy-hour-surcharge {
  font-weight: 800;
  color: #185a2d;
  font-size: 0.85em;
}

.happy-hour-summary {
  border: 1px solid rgba(141, 110, 76, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
  display: grid;
  gap: 5px;
}

.happy-hour-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.happy-hour-selected-drink {
  margin-bottom: 8px;
  border-color: rgba(31, 122, 56, 0.5);
  background: linear-gradient(180deg, rgba(237, 255, 245, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 8px 18px rgba(22, 90, 44, 0.12);
}

.happy-hour-selected-picks {
  display: grid;
  gap: 12px;
}

.happy-hour-selected-pick {
  border: 1px solid rgba(31, 122, 56, 0.28);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.93);
}

.happy-hour-selected-drink-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.happy-hour-selected-drink-head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1d5f34;
}

.happy-hour-back-btn {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 0.72rem;
  border-radius: 8px;
  font-weight: 700;
  opacity: 0.9;
}

.happy-hour-selected-drink-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.happy-hour-selected-image {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(185, 162, 134, 0.55);
}

.happy-hour-builder .happy-hour-summary {
  margin-top: 6px;
}

.happy-hour-builder .happy-hour-actions {
  margin-top: 4px;
}

.happy-hour-shisha-picker {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(165, 140, 111, 0.34);
}

.happy-hour-shisha-picker-readonly {
  margin-top: 0;
}

.happy-hour-summary-item {
  font-weight: 800;
  color: #1f2f24;
  font-size: 1.03rem;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .happy-hour-promo-banner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .happy-hour-promo-price-chip {
    align-items: flex-start;
    min-width: 0;
  }

  .happy-hour-grid {
    grid-template-columns: 1fr;
  }

  .happy-hour-selected-drink-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .happy-hour-back-btn {
    width: 100%;
  }

  .happy-hour-actions {
    justify-content: stretch;
  }
  .happy-hour-actions .btn {
    flex: 1 1 auto;
  }

  .happy-hour-shisha-picker {
    margin-top: 14px;
    padding-top: 12px;
  }
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  gap: 8px;
  padding: 4px 0 12px;
  margin-bottom: 8px;
  background: transparent;
  justify-items: center;
  isolation: isolate;
}

.category-tabs::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -10px;
  right: -10px;
  height: 78px;
  border-radius: 20px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(245, 235, 220, 0.38), rgba(245, 235, 220, 0));
  pointer-events: none;
  z-index: -1;
}

.main-category-grid {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.main-category-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(204, 171, 150, 0.92);
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 10px;
  background:
    linear-gradient(175deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 246, 0.92));
  color: #3b2b23;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  box-shadow:
    0 2px 8px rgba(96, 71, 54, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px) saturate(1.04);
  -webkit-backdrop-filter: blur(6px) saturate(1.04);
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.main-category-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 28%, rgba(248, 222, 209, 0.48) 48%, rgba(255, 255, 255, 0) 68%);
  background-size: 210% 100%;
  background-position: 130% 0;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.main-category-btn:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(187, 144, 117, 0.95);
  box-shadow:
    0 7px 16px rgba(113, 79, 57, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.main-category-btn:hover::before {
  animation: main-btn-sheen 1.1s ease;
}

.main-category-btn.active {
  background: linear-gradient(170deg, #2f6b45 0%, #25593a 100%);
  color: #f6fff9;
  border-color: rgba(34, 87, 57, 0.95);
  box-shadow:
    0 0 0 2px rgba(54, 120, 80, 0.28),
    0 10px 20px rgba(40, 83, 57, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#btnCoal:active,
#btnBill:active,
#btnWaiter:active,
#btnShishaMan:active {
  color: #ffffff;
  border-color: rgba(138, 24, 24, 0.95) !important;
  background: linear-gradient(165deg, #ff8d8d 0%, #e24a4a 48%, #a81f1f 100%) !important;
  box-shadow: 0 0 16px rgba(204, 36, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.main-category-label {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sub-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 7px 0 0;
  margin-top: 1px;
  border: 0;
  background: transparent;
}

.sub-category-row::before {
  content: "";
  flex: 0 0 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(190, 154, 116, 0), rgba(190, 154, 116, 0.62), rgba(190, 154, 116, 0));
}

.sub-category-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(177, 141, 101, 0.64);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 38px;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(246, 237, 224, 0.78));
  color: #503a27;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  backdrop-filter: blur(6px) saturate(1.04);
  -webkit-backdrop-filter: blur(6px) saturate(1.04);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sub-category-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0) 36%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 64%);
  transform: translateX(120%);
  pointer-events: none;
}

.sub-category-btn.active {
  background: linear-gradient(170deg, rgba(232, 247, 237, 0.99) 0%, rgba(210, 236, 220, 0.97) 100%);
  border-color: rgba(49, 112, 76, 0.86);
  color: #1f4b32;
  box-shadow: 0 6px 14px rgba(41, 86, 59, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.sub-category-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 105, 61, 0.9);
}

.sub-category-btn:hover::before {
  animation: sub-btn-sheen 0.9s ease;
}

@keyframes main-btn-sheen {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

@keyframes sub-btn-sheen {
  0% { transform: translateX(120%); }
  100% { transform: translateX(-120%); }
}

.items {
  display: grid;
  gap: 8px;
}

.menu-mini-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
  color: #5f4934;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-mini-group::before,
.menu-mini-group::after {
  content: "";
  height: 1px;
  background: rgba(165, 140, 111, 0.35);
  flex: 1 1 auto;
}

.menu-mini-group > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.item {
  --item-row-h: 172px;
  --item-image-size: var(--item-row-h);
  position: relative;
  border: 0;
  border-bottom: 1px solid rgba(197, 170, 135, 0.46);
  border-radius: 0;
  padding: 10px 2px;
  background: transparent;
  display: grid;
  grid-template-columns: var(--item-image-size) minmax(0, 1fr);
  gap: 10px;
  box-shadow: none;
  transition: none;
  align-items: stretch;
  min-height: var(--item-row-h);
  height: auto;
  overflow: visible;
  content-visibility: visible;
}

.item:not(.is-open) {
  height: var(--item-row-h);
}

.item.has-addon-editor:not(.is-open) {
  height: auto;
  min-height: var(--item-row-h);
}

.item:hover {
  transform: none;
  box-shadow: none;
}

.item.is-unavailable {
  opacity: 0.82;
}

.item.is-unavailable.item-comment-only {
  grid-template-columns: var(--item-image-size) minmax(0, 1fr);
  min-height: var(--item-row-h);
  height: auto;
  padding: 10px 2px;
}

.item.is-unavailable .item-image {
  filter: grayscale(1) saturate(0.18) brightness(0.92);
  opacity: 0.64;
}

.item.is-unavailable.item-comment-only .item-image {
  align-self: start;
  height: var(--item-row-h);
  min-height: var(--item-row-h);
  max-height: var(--item-row-h);
}

.item.is-unavailable.item-comment-only .item-body {
  min-height: var(--item-row-h);
  grid-template-rows: auto;
}

.item-body.item-body-unavailable-only {
  padding: 12px 14px;
  border: 1px dashed rgba(132, 109, 82, 0.52);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(188, 163, 132, 0.18) 0,
      rgba(188, 163, 132, 0.18) 8px,
      rgba(236, 226, 210, 0.72) 8px,
      rgba(236, 226, 210, 0.72) 16px
    ),
    linear-gradient(180deg, rgba(247, 239, 228, 0.82), rgba(239, 228, 211, 0.78));
}

.item-body.item-body-unavailable-only .item-meta.item-unavailable {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed rgba(121, 93, 63, 0.48);
  background: rgba(255, 250, 244, 0.9);
}

.item.is-open {
  height: auto;
  align-items: start;
}

.item.is-open .item-image {
  height: var(--item-row-h);
  min-height: var(--item-row-h);
  max-height: var(--item-row-h);
  align-self: start;
}

.item-family-compact {
  margin-top: 2px;
  min-height: var(--item-row-h);
  height: auto;
  grid-template-columns: var(--item-image-size) minmax(0, 1fr);
  border-bottom: 1px solid rgba(197, 170, 135, 0.46);
  padding: 10px 2px;
}

.item-body.item-family-body {
  width: 100%;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 174, 138, 0.42);
  background:
    linear-gradient(180deg, rgba(247, 239, 228, 0.64), rgba(239, 228, 211, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.item-family-compact.has-family-image {
  grid-template-columns: var(--item-image-size) minmax(0, 1fr);
  grid-template-areas:
    "media body"
    "variants variants";
  gap: 10px;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid rgba(197, 170, 135, 0.46);
  border-radius: 0;
  padding: 10px 2px;
  background: transparent;
  overflow: visible;
}

.item-family-compact.has-family-image .family-variants-wrap {
  grid-area: variants;
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}

.item-family-compact.has-family-image > .item-image.family-main-image {
  grid-area: media;
}

.item-family-compact.has-family-image > .item-body.item-family-body {
  grid-area: body;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 6px;
  min-height: 0;
  height: 100%;
}

.item-family-compact.has-family-image .btn-variant-toggle {
  margin-top: auto;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(176, 143, 105, 0.68);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(246, 235, 220, 0.86));
  color: #3a2c20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.item-family-compact.has-family-image .btn-variant-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(165, 129, 90, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 12px rgba(110, 79, 49, 0.13);
}

.item-family-compact:not(.is-open) {
  height: var(--item-row-h);
  min-height: var(--item-row-h);
}

.item-family-compact.has-family-image:not(.is-open) {
  height: auto;
  min-height: var(--item-row-h);
  align-items: start;
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.item-family-compact:not(.is-open) .item-body.item-family-body {
  min-height: 0;
  height: 100%;
}

.item-family-compact.has-family-image:not(.is-open) > .item-body.item-family-body {
  min-height: var(--item-row-h);
  height: auto;
  border: 1px solid rgba(201, 174, 138, 0.42);
  background: linear-gradient(180deg, rgba(247, 239, 228, 0.64), rgba(239, 228, 211, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
}

.item-family-compact.is-open {
  height: auto;
}

.item-family-compact.is-open {
  align-items: start;
}

.item-family-compact.is-open .item-body.item-family-body {
  height: 100%;
  min-height: 0;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 174, 138, 0.42);
  background: linear-gradient(180deg, rgba(247, 239, 228, 0.64), rgba(239, 228, 211, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.item-family-compact.is-open .item-image.family-main-image {
  height: var(--item-row-h);
  min-height: var(--item-row-h);
  max-height: var(--item-row-h);
  align-self: start;
}

.item-image.family-main-image {
  width: 100%;
  height: var(--item-row-h);
  min-height: var(--item-row-h);
  max-height: var(--item-row-h);
  align-self: start;
  object-fit: cover;
  object-position: center;
}

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

.family-title-wrap {
  min-width: 0;
}

.family-title-wrap strong {
  display: block;
  color: #2a1f17;
  font-size: 1.02rem;
  line-height: 1.18;
}

.family-sub {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #70583f;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.family-note {
  color: #4b3d2f;
  font-size: 0.82rem;
  margin: 0;
  max-height: 2.55em;
  overflow: hidden;
}

.family-variants-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.family-variants-wrap.single-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.family-variants-wrap.single-line .family-variant-btn {
  flex: 0 0 auto;
  min-width: 186px;
}

.family-variant-btn {
  --variant-bg-a: rgba(255, 255, 255, 0.96);
  --variant-bg-b: rgba(248, 239, 226, 0.92);
  --variant-border: rgba(176, 143, 105, 0.62);
  --variant-ink: #2f241a;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--variant-border);
  background: linear-gradient(170deg, var(--variant-bg-a), var(--variant-bg-b));
  color: var(--variant-ink);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.family-variant-btn:hover {
  border-color: #8e6944;
  box-shadow: 0 4px 10px rgba(78, 55, 28, 0.1);
}

.family-variant-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.family-variant-stepper {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  border: 1px solid rgba(165, 134, 98, 0.86);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 235, 220, 0.92));
  color: #3c2e22;
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.family-variant-btn[data-variant-tone="rb-original"] { --variant-bg-a: #f0e7dd; --variant-bg-b: #e3d2bf; --variant-border: #b79a79; --variant-ink: #2e241b; }
.family-variant-btn[data-variant-tone="rb-white"] { --variant-bg-a: #ffffff; --variant-bg-b: #f4f2ef; --variant-border: #c9c6c0; --variant-ink: #2a2a2a; }
.family-variant-btn[data-variant-tone="rb-sugarfree"] { --variant-bg-a: #ececec; --variant-bg-b: #d9d9d9; --variant-border: #adadad; --variant-ink: #222; }
.family-variant-btn[data-variant-tone="rb-green"] { --variant-bg-a: #e8f7ea; --variant-bg-b: #cdeecf; --variant-border: #84b98a; --variant-ink: #1e4f27; }
.family-variant-btn[data-variant-tone="rb-blueberry"] { --variant-bg-a: #e6f0ff; --variant-bg-b: #cdddff; --variant-border: #86a6da; --variant-ink: #1d3762; }
.family-variant-btn[data-variant-tone="rb-white-peach"] { --variant-bg-a: #fff1f7; --variant-bg-b: #ffdceb; --variant-border: #d8a6be; --variant-ink: #5c2f45; }
.family-variant-btn[data-variant-tone="rb-orange"] { --variant-bg-a: #fff0e3; --variant-bg-b: #ffd7b5; --variant-border: #d9a172; --variant-ink: #5a3719; }
.family-variant-btn[data-variant-tone="rb-juneberry"] { --variant-bg-a: #ece8ff; --variant-bg-b: #d8d0ff; --variant-border: #9d93d4; --variant-ink: #352f6b; }
.family-variant-btn[data-variant-tone="rb-default"] { --variant-bg-a: #f4ede4; --variant-bg-b: #eadcc8; --variant-border: #b69b78; --variant-ink: #33271f; }

.family-variant-btn[data-variant-tone="eb-lemon"] { --variant-bg-a: #fff9d9; --variant-bg-b: #ffeeb2; --variant-border: #d6bd67; --variant-ink: #5d4c0f; }
.family-variant-btn[data-variant-tone="eb-mango-pineapple"] { --variant-bg-a: #fff3d8; --variant-bg-b: #ffd8a3; --variant-border: #d8a065; --variant-ink: #5f3c1a; }
.family-variant-btn[data-variant-tone="eb-pomegranate"] { --variant-bg-a: #ffe9ed; --variant-bg-b: #ffc7d1; --variant-border: #d48d9b; --variant-ink: #5f2431; }
.family-variant-btn[data-variant-tone="eb-blueberry"] { --variant-bg-a: #e7efff; --variant-bg-b: #cddcff; --variant-border: #8fa7d8; --variant-ink: #213a67; }
.family-variant-btn[data-variant-tone="eb-peach"] { --variant-bg-a: #fff1e6; --variant-bg-b: #ffd8bf; --variant-border: #d4a281; --variant-ink: #5d3a22; }
.family-variant-btn[data-variant-tone="eb-peach-zero"] { --variant-bg-a: #fff5fb; --variant-bg-b: #ffe3f4; --variant-border: #d6acc8; --variant-ink: #593249; }
.family-variant-btn[data-variant-tone="eb-watermelon"] { --variant-bg-a: #ffe9ee; --variant-bg-b: #ffc6d3; --variant-border: #d38d9e; --variant-ink: #5d2534; }
.family-variant-btn[data-variant-tone="eb-cherry"] { --variant-bg-a: #ffe8ef; --variant-bg-b: #ffcad8; --variant-border: #d78ea5; --variant-ink: #5e2637; }
.family-variant-btn[data-variant-tone="eb-passionfruit"] { --variant-bg-a: #fff0dd; --variant-bg-b: #ffd3a6; --variant-border: #d6a06a; --variant-ink: #593a1c; }
.family-variant-btn[data-variant-tone="eb-default"] { --variant-bg-a: #eef3ff; --variant-bg-b: #dbe5ff; --variant-border: #a3b6df; --variant-ink: #2b3f6d; }

.family-variant-btn[data-variant-tone="fz-original"] { --variant-bg-a: #f0e6dc; --variant-bg-b: #dec7ad; --variant-border: #b3916e; --variant-ink: #32251a; }
.family-variant-btn[data-variant-tone="fz-sugarfree"] { --variant-bg-a: #f0f0f0; --variant-bg-b: #dddddd; --variant-border: #adadad; --variant-ink: #242424; }
.family-variant-btn[data-variant-tone="fz-superzero"] { --variant-bg-a: #ececec; --variant-bg-b: #d7d7d7; --variant-border: #a2a2a2; --variant-ink: #222; }
.family-variant-btn[data-variant-tone="fz-mischmasch"] { --variant-bg-a: #fff3db; --variant-bg-b: #ffd6a2; --variant-border: #d9a170; --variant-ink: #5f3a1b; }
.family-variant-btn[data-variant-tone="fz-apple-elder"] { --variant-bg-a: #ecf7e9; --variant-bg-b: #d4ebcf; --variant-border: #92bb8f; --variant-ink: #254c2f; }
.family-variant-btn[data-variant-tone="fz-orange"] { --variant-bg-a: #fff2e0; --variant-bg-b: #ffd6ab; --variant-border: #d9a170; --variant-ink: #5c381a; }
.family-variant-btn[data-variant-tone="fz-lemon"] { --variant-bg-a: #fffadf; --variant-bg-b: #fff0b9; --variant-border: #d3c06d; --variant-ink: #5c4c12; }
.family-variant-btn[data-variant-tone="fz-melon"] { --variant-bg-a: #eff9ea; --variant-bg-b: #d7efcc; --variant-border: #98c18e; --variant-ink: #285132; }
.family-variant-btn[data-variant-tone="fz-default"] { --variant-bg-a: #f5efe5; --variant-bg-b: #eadcc8; --variant-border: #b79a78; --variant-ink: #33271f; }

.family-variant-stepper.plus {
  background: linear-gradient(180deg, rgba(167, 127, 83, 0.96), rgba(138, 103, 65, 0.96));
  border-color: rgba(114, 82, 49, 0.9);
  color: #fff8ef;
}

.family-variant-stepper:active {
  transform: translateY(1px);
}

.family-variant-btn.is-unavailable {
  opacity: 0.62;
  display: block;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(188, 163, 132, 0.2) 0,
      rgba(188, 163, 132, 0.2) 8px,
      rgba(243, 232, 216, 0.86) 8px,
      rgba(243, 232, 216, 0.86) 16px
    ),
    linear-gradient(170deg, rgba(255, 251, 245, 0.92), rgba(244, 233, 218, 0.84));
  border-style: dashed;
}

.family-variant-comment {
  display: block;
  font-size: 0.78rem;
  line-height: 1.26;
  color: #4a3726;
  font-weight: 700;
}

.family-variant-name {
  min-width: 0;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.family-variant-qty {
  min-width: 24px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #4ca869;
  background: #dcf7e5;
  color: #124e24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 6px;
}

.item-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  background: rgba(236, 226, 210, 0.45);
  align-self: stretch;
}

/* Keep regular menu item images at a stable size, even when the card expands. */
.item:not(.item-family-compact) .item-image {
  height: var(--item-row-h);
  min-height: var(--item-row-h);
  max-height: var(--item-row-h);
  align-self: start;
}

.item-image.has-image {
  object-fit: cover;
  padding: 0;
}

.item-image.has-image.is-png {
  background: #fff;
}

.item-image.has-image.is-portrait {
  object-fit: contain;
  background: rgba(236, 226, 210, 0.45);
  padding: 2px;
}

.item-image.has-image.is-png.is-portrait {
  background: #fff;
}

.item-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #f4ead8, #f4ead8 8px, #efe2cf 8px, #efe2cf 16px);
}

.item-image.placeholder span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #6f5d47;
}

.item-body {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  row-gap: 3px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(247, 239, 228, 0.64), rgba(239, 228, 211, 0.5));
  border: 1px solid rgba(201, 174, 138, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  margin-left: 0;
  overflow: visible;
}

.item-family-compact .item-body {
  min-height: 0;
  height: 100%;
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.item-header strong {
  color: #2a1f17;
  display: block;
  font-size: 0.98rem;
  line-height: 1.18;
  max-height: 3.54em;
  overflow: hidden;
}

.price {
  font-weight: 400;
}

.price.price-text {
  font-weight: 700;
  color: #6d4f2e;
}

.price-now {
  color: #1d5a31;
  font-weight: 400;
}

.price-old {
  margin-left: 4px;
  font-size: 0.8rem;
  color: #7f6f5b;
  text-decoration: line-through;
  font-weight: 400;
}

.price-old-inline {
  color: #705a43;
  font-weight: 400;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  margin: 2px 0 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(141, 184, 126, 0.72);
  background: rgba(231, 248, 226, 0.8);
  color: #2f6a2a;
  font-size: 0.72rem;
  font-weight: 700;
}

.item-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.35rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 93, 63, 0.32);
  background: rgba(245, 237, 227, 0.9);
  color: #6d4f2e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.item-tag-easter_egg {
  background: rgba(245, 237, 227, 0.9);
  color: #6d4f2e;
  border-color: rgba(120, 93, 63, 0.24);
}

.item-tag-neu {
  background: rgba(224, 247, 228, 0.95);
  color: #1c6b35;
  border-color: rgba(30, 110, 52, 0.35);
}

.item-tag-spezial {
  background: rgba(255, 239, 214, 0.95);
  color: #7f4c12;
  border-color: rgba(138, 90, 30, 0.35);
}

.item-meta {
  font-size: 0.84rem;
  color: #4a3d30;
  font-weight: 500;
  margin: 2px 0;
  line-height: 1.28;
}

.item-body .item-desc {
  display: block;
  max-height: none;
  overflow: visible;
}

.item-body .item-allergen {
  font-size: 0.78rem;
  font-weight: 400;
  color: #6d5d4b;
  letter-spacing: 0.01em;
  white-space: normal;
  line-height: 1.18;
  max-height: 2.36em;
  overflow: hidden;
}

.item-meta.item-unavailable {
  margin-top: 4px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px dashed rgba(132, 109, 82, 0.46);
  background: rgba(233, 224, 212, 0.86);
  color: rgba(81, 62, 43, 0.95);
  font-size: 0.82rem;
  font-weight: 700;
}

.item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: auto;
  justify-self: end;
  align-self: end;
}

/* Keep quantity left of steppers and prevent layout jumps when qty changes. */
.item-actions [data-item-qty] {
  order: 1;
}

.item-actions .item-stepper.minus {
  order: 2;
}

.item-actions .item-stepper.plus {
  order: 3;
}

.item-actions [data-item-draft-qty] {
  order: 4;
}

.item-actions [data-item-qty].hidden {
  display: inline-flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.item-actions.item-actions-inline {
  justify-content: flex-end;
  margin-top: 2px;
}

.item-variant-row {
  margin-top: 6px;
}

.btn-variant {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.customize-item-btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.item-actions-with-addon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: auto;
}

.customize-item-btn-inline {
  margin-top: 0;
  width: auto;
  min-height: 36px;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-actions-with-addon [data-item-qty] {
  min-width: 42px;
  width: 42px;
  max-width: 42px;
  padding: 0;
}

.variant-options {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.variant-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(191, 157, 118, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #2f261f;
}

.variant-option input[type="radio"] {
  width: 18px;
  height: 18px;
}

.variant-inline-list {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.variant-inline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(198, 173, 141, 0.55);
  border-radius: 10px;
  background: rgba(255, 251, 245, 0.75);
}

.variant-inline-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4c3928;
  line-height: 1.1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.variant-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.variant-inline-actions .item-stepper,
.variant-inline-actions .item-count-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  font-size: 1rem;
}

.variant-compact-row {
  margin-top: 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(198, 173, 141, 0.55);
  border-radius: 10px;
  background: rgba(255, 251, 245, 0.75);
  max-height: 92px;
  overflow: hidden;
}

.fritz-dropdown-row {
  width: 100%;
  max-height: none;
  overflow: visible;
}

.variant-compact-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b3a29;
  white-space: nowrap;
}

.variant-select {
  min-height: 34px;
  border: 1px solid rgba(176, 143, 105, 0.75);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #2f261f;
  font-size: 0.84rem;
  font-weight: 600;
}

.variant-compact-actions {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.variant-accordion {
  margin-top: 6px;
  min-width: 0;
}

.btn-variant-toggle {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(176, 143, 105, 0.68);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(246, 235, 220, 0.86));
  color: #3a2c20;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-variant-toggle > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-toggle-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(140, 106, 69, 0.58);
  background: rgba(255, 252, 246, 0.92);
  color: #5c442e;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.variant-panel {
  margin-top: 8px;
  min-width: 0;
}

.variant-chip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.variant-chip-btn {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(176, 143, 105, 0.62);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(248, 239, 226, 0.92));
  color: #3a2c20;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.variant-chip-btn:hover {
  border-color: rgba(131, 94, 56, 0.78);
  box-shadow: 0 4px 10px rgba(78, 55, 28, 0.1);
}

.variant-chip-name {
  min-width: 0;
  display: block;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.variant-chip-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.variant-chip-stepper {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  border: 1px solid rgba(165, 134, 98, 0.86);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 235, 220, 0.92));
  color: #3c2e22;
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.variant-chip-stepper.plus {
  background: linear-gradient(180deg, rgba(167, 127, 83, 0.96), rgba(138, 103, 65, 0.96));
  border-color: rgba(114, 82, 49, 0.9);
  color: #fff8ef;
}

.variant-chip-stepper:active {
  transform: translateY(1px);
}

.variant-chip-qty {
  min-width: 24px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #4ca869;
  background: #dcf7e5;
  color: #124e24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 6px;
}

.variant-total-row {
  margin-top: 4px;
}

.item-total-badge {
  border-color: #4e8bbd;
  background: #dceffd;
  color: #163f63;
}

.item-count-badge.item-draft-badge {
  border-color: #d7a23a;
  background: #fff3cf;
  color: #6f4a00;
  min-width: 68px;
  padding: 0 10px;
  font-size: 0.88rem;
}

.menu-legend {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(179, 151, 116, 0.52);
  color: #5a4a39;
}

.menu-price-note {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.menu-allergen-title {
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.menu-allergen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.item-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 8px;
  border: 2px solid #4ca869;
  background: #dcf7e5;
  color: #124e24;
  font-size: 1rem;
  font-weight: 700;
}

.item-stepper {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 176, 143, 0.8);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 238, 223, 0.9));
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(90, 67, 40, 0.12);
}

.item-stepper.plus {
  background: linear-gradient(165deg, #9a7550, #7f6142);
  border-color: #765536;
  color: #fff;
}

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

.qty span {
  font-weight: 500;
  color: #4b3d31;
}

.qty button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(191, 157, 118, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 236, 220, 0.92));
  color: #2c2118;
  font-weight: 700;
  cursor: pointer;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px 8px;
  border: 1px solid rgba(202, 179, 147, 0.38);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.72);
  margin-bottom: 6px;
  color: #2f261f;
}

.cart-main-block {
  margin-bottom: 8px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  padding: 0;
}

.cart-main-block .cart-item {
  margin-bottom: 0;
}

.cart-bundle-summary {
  margin-top: 6px;
  margin-left: 18px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(95, 150, 70, 0.58);
  background: linear-gradient(90deg, rgba(236, 250, 230, 0.95), rgba(247, 255, 244, 0.9));
  display: grid;
  gap: 6px;
}

.cart-bundle-row {
  display: grid;
  gap: 2px;
}

.cart-bundle-entry {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(116, 164, 94, 0.4);
  background: rgba(245, 255, 241, 0.82);
}

.cart-bundle-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #2d5b2a;
}

.cart-bundle-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f261f;
  line-height: 1.25;
}

.cart-item-main {
  border-color: rgba(187, 153, 111, 0.35);
  background: rgba(255, 251, 245, 0.78);
  box-shadow: 0 1px 0 rgba(88, 66, 39, 0.06);
}

.cart-item-bundle {
  margin-bottom: 6px;
}

.cart-item-addon {
  margin-top: 6px;
  margin-left: 18px;
  border-style: dashed;
  border-color: rgba(95, 150, 70, 0.72);
  background: linear-gradient(90deg, rgba(234, 250, 226, 0.96), rgba(246, 255, 242, 0.92));
}

.cart-addon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(104, 151, 77, 0.72);
  background: rgba(228, 245, 217, 0.95);
  color: #2d5a28;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.cart-item strong {
  color: #241c16;
}

.cart-item small {
  color: #3e3227;
  font-size: 0.9rem;
  font-weight: 400;
}

.cart-bundle-detail {
  display: inline-block;
  margin-top: 3px;
}

.cart-bundle-addons {
  margin: 4px 0 0;
  padding-left: 18px;
}

.cart-bundle-addons li {
  margin: 2px 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2f261f;
}

.cart-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cart-total-label {
  font-weight: 700;
  color: #2f261f;
}

.cart-add-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #daf4e1;
  color: #1d5b2d;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-add-badge.bump {
  animation: cart-bump 0.35s ease;
}

@keyframes cart-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

textarea {
  width: 100%;
  border: 1px solid rgba(201, 176, 143, 0.72);
  border-radius: 10px;
  padding: 10px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.success {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.error {
  background: var(--err-bg);
  color: var(--err-ink);
}

.hidden { display: none; }

.app.ordering-disabled .item-actions,
.app.ordering-disabled .customize-item-btn,
.app.ordering-disabled .family-variant-controls,
.app.ordering-disabled .hero-actions,
.app.ordering-disabled .service-status-top,
.app.ordering-disabled .inline-upsell-actions,
.app.ordering-disabled .upsell-banner-card,
.app.ordering-disabled #cartSection,
.app.ordering-disabled #floatingCartBtn {
  display: none !important;
}

.app.ordering-disabled .variant-chip-controls,
.app.ordering-disabled .variant-total-row {
  display: none !important;
}

.order-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.order-confirm-modal.hidden {
  display: none;
}

.order-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 17, 12, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.order-confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: min(86vh, 760px);
  border: 1px solid rgba(168, 133, 98, 0.68);
  border-radius: 16px;
  padding: 16px 14px;
  background: linear-gradient(170deg, rgba(249, 255, 251, 0.98), rgba(235, 251, 241, 0.96));
  box-shadow: 0 20px 45px rgba(24, 16, 11, 0.36);
  color: #1c4b2a;
  display: flex;
  flex-direction: column;
}

.feedback-dialog {
  width: min(520px, 100%);
  padding: 18px 16px 14px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.99), rgba(251, 251, 251, 0.98));
  color: #214734;
}

.addon-editor-dialog {
  width: min(640px, 100%);
  max-height: min(88vh, 860px);
}

.addon-editor-options {
  margin: 6px 0 12px;
  max-height: min(54vh, 460px);
  overflow: auto;
  padding-right: 4px;
}

.addon-editor-group + .addon-editor-group {
  margin-top: 12px;
}

.addon-editor-group-title {
  margin: 0 0 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #5b3a1f;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.addon-editor-list {
  grid-template-columns: 1fr;
}

.addon-editor-chip {
  min-height: 52px;
  padding: 10px 12px;
}

.addon-editor-chip[data-addon-editor-chip-add],
.addon-editor-chip[data-custom-ing-chip-add] {
  cursor: pointer;
}

.addon-editor-chip.is-selected {
  border-color: rgba(74, 137, 88, 0.82);
  background: linear-gradient(170deg, rgba(229, 247, 234, 0.95), rgba(214, 239, 221, 0.92));
  color: #1f5a2f;
}

.addon-choice-btn {
  justify-content: flex-start;
  text-align: left;
  min-height: 44px;
  padding: 10px 12px;
}

.addon-choice-btn.is-selected {
  border-color: rgba(74, 137, 88, 0.82);
  background: linear-gradient(170deg, rgba(229, 247, 234, 0.95), rgba(214, 239, 221, 0.92));
  color: #1f5a2f;
}

.order-confirm-dialog h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: #146331;
}

.order-confirm-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.order-tab-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 103, 69, 0.35);
  background: rgba(255, 255, 255, 0.8);
  color: #355b45;
  font-size: 0.85rem;
  font-weight: 700;
}

.order-tab-btn.is-active {
  background: #e2f4e8;
  border-color: rgba(56, 113, 73, 0.55);
  color: #174d2a;
}

.order-tab-panel {
  display: none;
  min-height: 0;
}

.order-tab-panel.is-active {
  display: block;
}

.order-summary-scroll {
  max-height: min(44vh, 360px);
  overflow: auto;
  padding-right: 4px;
}

.order-confirm-meta {
  margin: 0 0 10px;
  color: #275438;
  font-weight: 700;
}

.order-confirm-items {
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.order-confirm-items-heading {
  margin: 6px 0 8px;
  color: #2b2118;
  font-size: 0.92rem;
  font-weight: 800;
}

.order-confirm-items li {
  margin: 4px 0;
  color: #193d2a;
  font-weight: 700;
  line-height: 1.3;
}

.order-summary-group {
  border: 1px solid rgba(177, 149, 114, 0.5);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.78);
  padding: 8px 10px;
}

.order-summary-group-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-summary-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-summary-group-list {
  margin: 0;
  padding-left: 18px;
}

.order-main-row {
  color: #173f2b;
  font-weight: 800;
}

.order-summary-addon-list {
  margin: 6px 0 2px;
  padding-left: 18px;
  list-style: circle;
}

.order-addon-prefix {
  list-style: none;
  margin-left: -16px;
}

.order-summary-addon-list li {
  margin: 4px 0;
  color: #234f37;
  font-weight: 700;
}

.order-addon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 8px;
  margin-right: 6px;
  border-radius: 999px;
  border: 1px solid rgba(95, 150, 70, 0.65);
  background: rgba(229, 246, 221, 0.92);
  color: #2d5b2a;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.order-addon-orphan-row {
  color: #2d513d;
}

.order-group-drink {
  border-left: 5px solid #4e8bbd;
  background: rgba(232, 244, 255, 0.75);
}

.order-group-drink .order-summary-group-title {
  color: #1f4a6b;
}

.order-group-food {
  border-left: 5px solid #bd7b4e;
  background: rgba(255, 238, 223, 0.78);
}

.order-group-food .order-summary-group-title {
  color: #6a3b1f;
}

.order-group-shisha {
  border-left: 5px solid #7b68b3;
  background: rgba(239, 232, 252, 0.78);
}

.order-group-shisha .order-summary-group-title {
  color: #43306f;
}

.order-group-other {
  border-left: 5px solid #77808a;
  background: rgba(239, 241, 244, 0.78);
}

.order-group-other .order-summary-group-title {
  color: #3a4652;
}

.order-group-happy-hour {
  border-left: 5px solid #1c7c45;
  border-color: rgba(28, 124, 69, 0.45);
  background: linear-gradient(160deg, rgba(233, 250, 239, 0.92), rgba(218, 244, 229, 0.88));
}

.order-group-happy-hour .order-summary-group-title {
  color: #165a34;
}

.order-hh-bundle-list {
  list-style: none;
  padding-left: 0;
}

.order-hh-bundle-item {
  border: 1px solid rgba(28, 124, 69, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 10px;
}

.order-hh-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
}

.order-hh-row span {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1a5c36;
}

.order-hh-row strong {
  color: #173f2b;
  font-weight: 900;
}

.order-hh-row em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 900;
  color: #155a32;
  border: 1px solid rgba(28, 124, 69, 0.5);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(232, 248, 238, 0.95);
}

.order-hh-footer {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #155a32;
}

.order-confirm-note {
  margin: 0 0 12px;
  color: #2a5d3c;
  font-weight: 700;
}

.order-confirm-close {
  width: 100%;
  margin-top: 10px;
  flex-shrink: 0;
}

.btn-feedback-head {
  align-self: flex-start;
}

.hero-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.btn-quiz {
  position: relative;
  border-color: rgba(146, 81, 194, 0.72);
  background: linear-gradient(130deg, #ff8a5b 0%, #ff5f95 35%, #9b5de5 70%, #4cc9f0 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(120, 66, 150, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-quiz:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(146, 81, 194, 0.9);
}

.btn-games {
  border-color: rgba(57, 129, 185, 0.7);
  background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 46%, #4361ee 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(40, 84, 161, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-games:hover {
  transform: translateY(-1px);
  border-color: rgba(57, 129, 185, 0.92);
}

.quiz-dialog {
  width: min(560px, 100%);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.98));
}

.games-dialog {
  width: min(680px, 100%);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.99), rgba(246, 251, 255, 0.99));
}

#gamesModal .games-lounge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#gamesModal .games-head-top-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#gamesModal .games-head-close {
  width: auto !important;
  margin-top: 0 !important;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.games-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

#gamesModal.games-compact-mode .games-tabs {
  display: none;
}

.games-tab-btn {
  min-height: 38px;
  font-size: 0.84rem;
  font-weight: 700;
}

.games-tab-btn.is-active {
  border-color: #2d7bbb;
  color: #19496f;
  background: linear-gradient(170deg, #ecf6ff, #dcefff);
}

.games-stage {
  border: 1px solid rgba(169, 141, 109, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
  min-height: 320px;
}

.games-panel {
  display: none;
}

.games-panel.is-active {
  display: grid;
  gap: 10px;
}

.games-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #5b4330;
  min-height: 22px;
}


#snakeState {
  min-width: 108px;
  text-align: right;
  white-space: nowrap;
}

.tic-mood {
  margin: -2px 0 4px;
  min-height: 20px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tic-mood.is-win {
  color: #1f7a3c;
  animation: tic-mood-pop 0.34s ease;
}

.tic-mood.is-lose {
  color: #8b3e2d;
  animation: tic-mood-pop 0.34s ease;
}

.tic-mood.is-draw {
  color: #5e503f;
}

.tic-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-radius: 12px;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.tic-board.result-win {
  background: rgba(50, 170, 84, 0.12);
  box-shadow: 0 0 0 2px rgba(50, 170, 84, 0.38), 0 0 18px rgba(50, 170, 84, 0.22);
}

.tic-board.result-lose {
  background: rgba(184, 88, 68, 0.12);
  box-shadow: 0 0 0 2px rgba(184, 88, 68, 0.35), 0 0 16px rgba(184, 88, 68, 0.2);
}

.tic-board.result-draw {
  background: rgba(141, 103, 69, 0.1);
  box-shadow: 0 0 0 1px rgba(141, 103, 69, 0.28);
}

.tic-cell {
  min-height: 66px;
  border-radius: 12px;
  border: 1px solid rgba(167, 132, 93, 0.66);
  background: linear-gradient(160deg, #fffaf2, #efe1cc);
  color: #3c2a1b;
  font-size: 1.6rem;
  font-weight: 900;
}

.tic-cell.is-filled {
  border-color: rgba(74, 129, 79, 0.7);
  background: linear-gradient(160deg, #eef7ef, #d8eadb);
}

.tic-cell.is-winning {
  transform: scale(1.08);
  z-index: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 14px rgba(53, 144, 69, 0.34);
  animation: tic-win-pulse 0.95s ease-in-out infinite;
}

.tic-cell.is-winning.winner-x {
  border-color: rgba(33, 132, 56, 0.86);
  background: linear-gradient(165deg, #e8f9eb, #caebd2);
  color: #0f5b26;
}

.tic-cell.is-winning.winner-o {
  border-color: rgba(180, 80, 58, 0.86);
  background: linear-gradient(165deg, #fbe9e4, #f3d1c8);
  color: #7c2d1e;
}

.connect4-drop-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.connect4-board {
  position: relative;
  overflow: visible;
}

.connect4-drop-btn {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(156, 123, 84, 0.66);
  background: linear-gradient(160deg, #fffaf2, #efe1cc);
  color: #3f2f20;
  font-weight: 900;
}

.connect4-drop-btn:disabled {
  opacity: 0.45;
}

.connect4-drop-btn.is-flash {
  animation: connect4-col-flash 0.32s ease;
}

.connect4-drop-btn.is-flash.flash-you {
  border-color: rgba(78, 151, 82, 0.9);
  box-shadow: 0 0 0 2px rgba(78, 151, 82, 0.24), 0 0 14px rgba(78, 151, 82, 0.35);
}

.connect4-drop-btn.is-flash.flash-ai {
  border-color: rgba(183, 75, 75, 0.9);
  box-shadow: 0 0 0 2px rgba(183, 75, 75, 0.2), 0 0 14px rgba(183, 75, 75, 0.35);
}

.connect4-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(160deg, #dce9ff, #c3d8fb);
  border: 1px solid rgba(117, 146, 188, 0.56);
}

.connect4-cell {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(110, 136, 175, 0.72);
  background: linear-gradient(160deg, #f8fbff, #e8f0ff);
  display: grid;
  place-items: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.connect4-cell.col-flash {
  animation: connect4-col-flash 0.32s ease;
}

.connect4-cell.col-flash.flash-you {
  border-color: rgba(78, 151, 82, 0.66);
  background: rgba(234, 248, 236, 0.96);
  box-shadow: inset 0 0 0 1px rgba(78, 151, 82, 0.2), 0 0 10px rgba(78, 151, 82, 0.2);
}

.connect4-cell.col-flash.flash-ai {
  border-color: rgba(183, 75, 75, 0.64);
  background: rgba(252, 238, 238, 0.97);
  box-shadow: inset 0 0 0 1px rgba(183, 75, 75, 0.2), 0 0 10px rgba(183, 75, 75, 0.18);
}

.connect4-disc {
  width: 78%;
  aspect-ratio: 1/1;
  border-radius: 999px;
  border: 1px solid rgba(123, 101, 74, 0.42);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84) 24%, rgba(231, 219, 200, 0.9) 100%);
  box-shadow: inset 0 -2px 4px rgba(61, 47, 30, 0.15);
}

.connect4-cell.is-yellow .connect4-disc {
  background: radial-gradient(circle at 30% 28%, #fffce6 0%, #fff3a6 30%, #f2cc36 72%, #d5a70c 100%);
  border-color: rgba(150, 109, 17, 0.58);
}

.connect4-cell.is-red .connect4-disc {
  background: radial-gradient(circle at 30% 28%, #ffe9e4 0%, #ffc3b5 30%, #ea5b46 72%, #ba2f23 100%);
  border-color: rgba(133, 39, 29, 0.58);
}

.connect4-fall-token {
  position: absolute;
  z-index: 8;
  border-radius: 999px;
  border: 1px solid rgba(123, 101, 74, 0.42);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84) 24%, rgba(231, 219, 200, 0.9) 100%);
  box-shadow: inset 0 -2px 4px rgba(61, 47, 30, 0.15), 0 5px 10px rgba(29, 36, 56, 0.2);
  pointer-events: none;
  transform: translate(0, 0);
  transition: transform var(--c4-fall-ms, 900ms) cubic-bezier(0.18, 0.7, 0.22, 1);
  will-change: transform;
}

.connect4-fall-token.is-yellow {
  background: radial-gradient(circle at 30% 28%, #fffce6 0%, #fff3a6 30%, #f2cc36 72%, #d5a70c 100%);
  border-color: rgba(150, 109, 17, 0.58);
}

.connect4-fall-token.is-red {
  background: radial-gradient(circle at 30% 28%, #ffe9e4 0%, #ffc3b5 30%, #ea5b46 72%, #ba2f23 100%);
  border-color: rgba(133, 39, 29, 0.58);
}

.connect4-board[data-c4-theme="alt"] .connect4-fall-token.is-red {
  background: radial-gradient(circle at 30% 28%, #e8f2ff 0%, #c3dcff 30%, #5f95ea 72%, #2a5eb8 100%);
  border-color: rgba(37, 82, 160, 0.62);
}

.connect4-cell.is-winning {
  position: relative;
  transform: scale(1.05);
  z-index: 1;
}

.connect4-cell.is-winning::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 10px;
  border: 2px solid rgba(45, 255, 180, 0.98);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 14px rgba(45, 255, 180, 0.78),
    inset 0 0 10px rgba(45, 255, 180, 0.35);
  pointer-events: none;
}

.connect4-cell.is-winning .connect4-disc {
  animation: connect4-win-pulse 0.72s ease-in-out infinite;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.94),
    0 0 18px rgba(45, 255, 180, 0.72),
    0 0 30px rgba(45, 255, 180, 0.38);
}

.connect4-cell.is-winning.winner-yellow .connect4-disc {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.96),
    0 0 18px rgba(45, 255, 180, 0.72),
    0 0 30px rgba(45, 255, 180, 0.38);
}

.connect4-cell.is-winning.winner-red .connect4-disc {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.96),
    0 0 18px rgba(45, 255, 180, 0.72),
    0 0 30px rgba(45, 255, 180, 0.38);
}

.connect4-board[data-c4-theme="alt"] .connect4-cell.is-red .connect4-disc {
  background: radial-gradient(circle at 30% 28%, #e8f2ff 0%, #c3dcff 30%, #5f95ea 72%, #2a5eb8 100%);
  border-color: rgba(37, 82, 160, 0.62);
}

.connect4-board[data-c4-theme="alt"] .connect4-cell.is-winning.winner-red .connect4-disc {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.96),
    0 0 18px rgba(45, 255, 180, 0.72),
    0 0 30px rgba(45, 255, 180, 0.38);
}

@keyframes tic-mood-pop {
  0% { transform: scale(0.98); opacity: 0.45; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tic-win-pulse {
  0%, 100% { transform: scale(1.06); }
  50% { transform: scale(1.12); }
}

@keyframes connect4-win-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes disc-fall {
  0%   { transform: translateY(calc(var(--drop-rows, 1) * -145%)); animation-timing-function: ease-in; }
  78%  { transform: translateY(5%); animation-timing-function: ease-out; }
  90%  { transform: translateY(-3%); }
  100% { transform: translateY(0); }
}

.connect4-cell.is-dropping .connect4-disc {
  animation: disc-fall calc(var(--drop-rows, 1) * 120ms + 260ms) cubic-bezier(0.2, 0.75, 0.2, 1);
  will-change: transform;
}

@keyframes connect4-col-flash {
  0% { filter: brightness(1); }
  45% { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}

.snake-canvas {
  width: min(100%, 320px);
  aspect-ratio: 1/1;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(170, 139, 101, 0.52);
  background: #f8f0e3;
  justify-self: center;
}

.snake-canvas.is-lost {
  border-color: rgba(164, 66, 52, 0.6);
  box-shadow: 0 0 0 2px rgba(164, 66, 52, 0.28), 0 0 14px rgba(164, 66, 52, 0.2);
}

.snake-controls {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(2, 56px);
  gap: 8px;
  max-width: none;
  justify-self: center;
  justify-content: center;
  align-content: center;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.games-panel[data-games-panel="snake"].is-running {
  grid-template-rows: auto 1fr auto;
}

.games-panel[data-games-panel="snake"].is-running .snake-controls {
  margin-top: auto;
}

.snake-dir.up { grid-column: 2; grid-row: 1; }
.snake-dir.left { grid-column: 1; grid-row: 2; }
.snake-dir.down { grid-column: 2; grid-row: 2; }
.snake-dir.right { grid-column: 3; grid-row: 2; }

.snake-dir {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 900;
  border-radius: 16px;
  border: 1px solid rgba(136, 103, 68, 0.48);
  background: linear-gradient(170deg, #fbf4e8, #e9d7bf);
  box-shadow: 0 8px 16px rgba(77, 53, 31, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.snake-dir:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 8px rgba(77, 53, 31, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#btnSnakeStart.is-hidden-keep-space {
  visibility: hidden;
  pointer-events: none;
}

#gamesModal.snake-focus .games-tabs {
  display: none;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.memory-card {
  min-height: 54px;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  line-height: 1;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(168, 136, 99, 0.65);
  background: linear-gradient(160deg, #fffaf2, #f0e3cf);
  color: #5f432a;
  font-size: 1.24rem;
  font-weight: 800;
}

.memory-card.is-open {
  border-color: rgba(63, 142, 86, 0.72);
  background: linear-gradient(160deg, #eef9f1, #dcefdc);
  color: #205433;
}

.memory-card-bg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#gamesModal .games-beta-badge,
#gamesModal .games-lounge-bg {
  display: none;
}

#gamesModal.games-beta-enabled .games-dialog {
  position: relative;
  width: min(1080px, 96vw);
  max-height: min(calc(100dvh - 24px), 900px);
  border: 1px solid rgba(76, 128, 236, 0.35);
  border-radius: 28px;
  padding: 16px;
  background:
    radial-gradient(120% 100% at 6% 0%, rgba(50, 74, 145, 0.4), rgba(50, 74, 145, 0) 46%),
    radial-gradient(120% 100% at 92% 100%, rgba(111, 39, 130, 0.26), rgba(111, 39, 130, 0) 52%),
    linear-gradient(166deg, rgba(12, 18, 40, 0.95) 0%, rgba(12, 18, 40, 0.9) 42%, rgba(9, 14, 31, 0.96) 100%);
  color: #e5ecff;
  box-shadow:
    0 40px 120px rgba(2, 7, 20, 0.62),
    0 0 0 1px rgba(88, 150, 255, 0.24),
    inset 0 1px 0 rgba(172, 203, 255, 0.25);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#gamesModal.games-beta-enabled .games-lounge-bg {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#gamesModal.games-beta-enabled .glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.66;
}

#gamesModal.games-beta-enabled .orb-a {
  width: 300px;
  height: 300px;
  left: -84px;
  top: -102px;
  background: radial-gradient(circle at 35% 35%, rgba(77, 164, 255, 0.84), rgba(77, 164, 255, 0));
  animation: games-orb-drift-a 11s ease-in-out infinite;
}

#gamesModal.games-beta-enabled .orb-b {
  width: 280px;
  height: 280px;
  right: -70px;
  top: 20%;
  background: radial-gradient(circle at 50% 50%, rgba(167, 86, 255, 0.72), rgba(167, 86, 255, 0));
  animation: games-orb-drift-b 14s ease-in-out infinite;
}

#gamesModal.games-beta-enabled .orb-c {
  width: 380px;
  height: 380px;
  left: 30%;
  bottom: -220px;
  background: radial-gradient(circle at 50% 50%, rgba(46, 212, 186, 0.56), rgba(46, 212, 186, 0));
  animation: games-orb-drift-c 13s ease-in-out infinite;
}

#gamesModal.games-beta-enabled .grid-raster {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(98, 145, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 145, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 40%, black 42%, transparent 95%);
  opacity: 0.45;
}

#gamesModal.games-beta-enabled .games-lounge-head,
#gamesModal.games-beta-enabled .games-tabs,
#gamesModal.games-beta-enabled .games-lounge-stage,
#gamesModal.games-beta-enabled .quiz-actions {
  position: relative;
  z-index: 2;
}

#gamesModal.games-beta-enabled .games-lounge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#gamesModal.games-beta-enabled .games-head-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#gamesModal.games-beta-enabled .games-head-close {
  width: auto;
  margin-top: 0;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
}

#gamesModal.games-beta-enabled .games-dialog h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  letter-spacing: 0.02em;
  color: #f4f8ff;
}

#gamesModal.games-beta-enabled #gamesIntro {
  margin: 4px 0 0;
  color: rgba(214, 226, 255, 0.86);
}

#gamesModal.games-beta-enabled .games-beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #d9e8ff;
  border: 1px solid rgba(86, 146, 255, 0.55);
  background: linear-gradient(140deg, rgba(49, 94, 202, 0.5), rgba(127, 61, 214, 0.45));
  box-shadow: 0 8px 22px rgba(22, 63, 170, 0.35);
}

#gamesModal.games-beta-enabled .games-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

#gamesModal.games-beta-enabled .games-tab-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(101, 145, 240, 0.35);
  color: rgba(219, 230, 255, 0.92);
  background: linear-gradient(180deg, rgba(23, 39, 80, 0.82), rgba(16, 29, 62, 0.88));
  box-shadow: inset 0 1px 0 rgba(166, 199, 255, 0.17), 0 8px 16px rgba(7, 16, 42, 0.34);
}

#gamesModal.games-beta-enabled .games-tab-btn.is-active {
  border-color: rgba(93, 243, 255, 0.68);
  color: #ebffff;
  background: linear-gradient(165deg, rgba(40, 104, 224, 0.94), rgba(95, 51, 188, 0.9));
  box-shadow: 0 0 0 1px rgba(95, 243, 255, 0.32), 0 0 24px rgba(63, 130, 255, 0.36);
}

#gamesModal.games-beta-enabled .games-lounge-stage {
  border-radius: 20px;
  border: 1px solid rgba(92, 136, 228, 0.3);
  background:
    linear-gradient(180deg, rgba(14, 24, 53, 0.92), rgba(10, 18, 40, 0.95));
  min-height: clamp(430px, 72vh, 760px);
  padding: clamp(12px, 2vw, 18px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#gamesModal.games-beta-enabled .games-panel.is-active {
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  animation: game-panel-pop 0.28s ease;
}

#gamesModal.games-beta-enabled .games-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  color: #dce8ff;
}

#gamesModal.games-beta-enabled .games-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(112, 158, 255, 0.34);
  background: linear-gradient(165deg, rgba(34, 58, 116, 0.82), rgba(27, 43, 88, 0.88));
  box-shadow: inset 0 1px 0 rgba(198, 221, 255, 0.12);
}

#gamesModal.games-beta-enabled .tic-mood {
  margin: 0;
}

#gamesModal.games-beta-enabled .tic-board {
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(103, 148, 238, 0.34);
  background: linear-gradient(160deg, rgba(24, 40, 83, 0.7), rgba(15, 26, 58, 0.82));
  box-shadow: inset 0 1px 0 rgba(177, 208, 255, 0.14);
}

#gamesModal.games-beta-enabled[data-active-game="tic"] .tic-board,
#gamesModal.games-beta-enabled[data-active-game="connect4"] .connect4-grid,
#gamesModal.games-beta-enabled[data-active-game="snake"] .snake-canvas,
#gamesModal.games-beta-enabled[data-active-game="memory"] .memory-board {
  box-shadow:
    0 0 0 1px rgba(125, 224, 255, 0.28),
    0 0 28px rgba(78, 142, 255, 0.26),
    inset 0 1px 0 rgba(191, 227, 255, 0.16);
}

#gamesModal.games-beta-enabled .tic-cell {
  min-height: clamp(78px, 10vh, 106px);
  border: 1px solid rgba(104, 152, 252, 0.52);
  background: linear-gradient(160deg, #2f4f96, #263f79);
  color: #e7f4ff;
  text-shadow: 0 0 8px rgba(198, 246, 255, 0.35);
  box-shadow: 0 10px 18px rgba(5, 14, 38, 0.38), inset 0 1px 0 rgba(202, 230, 255, 0.18);
}

#gamesModal.games-beta-enabled .tic-cell.is-filled {
  border-color: rgba(111, 230, 255, 0.58);
  background: linear-gradient(160deg, #2e5da0, #23457a);
}

#gamesModal.games-beta-enabled .connect4-drop-btn {
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(109, 166, 255, 0.46);
  background: linear-gradient(160deg, #2a4d8f, #1f3b72);
  color: #dff3ff;
}

#gamesModal.games-beta-enabled .connect4-grid {
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(102, 148, 234, 0.44);
  background: linear-gradient(155deg, #183064, #0f224d 70%);
}

#gamesModal.games-beta-enabled .connect4-cell {
  min-height: clamp(52px, 7vh, 72px);
  border: 1px solid rgba(91, 134, 219, 0.64);
  background: linear-gradient(160deg, #254681, #1d3768);
}

#gamesModal.games-beta-enabled .connect4-disc {
  box-shadow:
    inset 0 -3px 5px rgba(10, 23, 57, 0.44),
    0 6px 14px rgba(3, 9, 25, 0.48);
}

#gamesModal.games-beta-enabled .snake-canvas {
  width: min(100%, 460px);
  border-radius: 16px;
  border: 1px solid rgba(101, 160, 248, 0.52);
  background: linear-gradient(165deg, #122b5c, #0f2148);
  box-shadow: 0 20px 44px rgba(4, 11, 30, 0.58), inset 0 1px 0 rgba(170, 204, 255, 0.2);
}

#gamesModal.games-beta-enabled .snake-controls {
  grid-template-columns: repeat(3, 62px);
  grid-template-rows: repeat(2, 62px);
  gap: 10px;
}

#gamesModal.games-beta-enabled .snake-dir {
  width: 62px;
  height: 62px;
  min-height: 62px;
  border: 1px solid rgba(102, 154, 247, 0.56);
  background: linear-gradient(165deg, #2f569b, #294a88);
  color: #e8f2ff;
}

#gamesModal.games-beta-enabled .memory-board {
  gap: 10px;
}

#gamesModal.games-beta-enabled .memory-card {
  min-height: clamp(64px, 8vh, 90px);
  border-radius: 12px;
  border: 1px solid rgba(108, 160, 251, 0.56);
  background: linear-gradient(160deg, #2b4e91, #223f77);
  color: #e7f4ff;
  box-shadow: 0 9px 18px rgba(5, 14, 36, 0.4), inset 0 1px 0 rgba(182, 211, 255, 0.16);
}

#gamesModal.games-beta-enabled .memory-card.is-open {
  border-color: rgba(92, 246, 239, 0.62);
  background: linear-gradient(160deg, #2f6a91, #235777);
  box-shadow: 0 0 0 1px rgba(92, 246, 239, 0.24), 0 0 24px rgba(39, 185, 177, 0.34);
}

#gamesModal.games-beta-enabled .memory-card-bg {
  min-height: 0;
}

#gamesModal.games-beta-enabled .btn.btn-primary,
#gamesModal.games-beta-enabled .quiz-actions .btn {
  border: 1px solid rgba(88, 145, 251, 0.66);
  background: linear-gradient(170deg, #3773d5, #2f5bb7);
  color: #f2f7ff;
  box-shadow: 0 12px 24px rgba(8, 25, 67, 0.4), inset 0 1px 0 rgba(187, 216, 255, 0.24);
}

#gamesModal.games-beta-enabled .quiz-actions {
  margin-top: 12px;
}

.btn-games.is-beta {
  position: relative;
  border-color: rgba(95, 236, 255, 0.76);
  background: linear-gradient(135deg, #285fd0 0%, #3f48c5 45%, #7b36b4 100%);
  box-shadow: 0 14px 28px rgba(28, 42, 117, 0.36), 0 0 18px rgba(66, 180, 255, 0.25), inset 0 1px 0 rgba(232, 247, 255, 0.24);
}

.btn-games.is-beta::after {
  content: "BETA";
  position: absolute;
  top: -7px;
  right: -8px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #eff8ff;
  background: linear-gradient(135deg, #43b7ff, #8260ff);
  border: 1px solid rgba(192, 228, 255, 0.46);
  box-shadow: 0 4px 12px rgba(22, 64, 152, 0.4);
}

@keyframes games-orb-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, 16px, 0); }
}

@keyframes games-orb-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-10px, -8px, 0); }
}

@keyframes games-orb-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(14px, -10px, 0); }
}

@keyframes game-panel-pop {
  from {
    opacity: 0.65;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  #gamesModal.games-beta-enabled .games-dialog {
    width: min(760px, 96vw);
    padding: 12px;
    border-radius: 22px;
  }

  #gamesModal.games-beta-enabled .games-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #gamesModal.games-beta-enabled .games-dialog {
    width: min(560px, 96vw);
    max-height: calc(100dvh - 14px);
    padding: 10px;
    border-radius: 18px;
  }

  #gamesModal.games-beta-enabled .games-lounge-head {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 8px;
  }

  #gamesModal.games-beta-enabled #gamesIntro {
    display: none;
  }

  #gamesModal.games-beta-enabled .games-tabs {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    margin-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }

  #gamesModal.games-beta-enabled .games-tab-btn {
    flex: 0 0 auto;
    min-width: 108px;
    min-height: 36px;
    font-size: 0.78rem;
    padding: 6px 9px;
  }

  #gamesModal.games-beta-enabled .games-lounge-stage {
    min-height: 0;
    padding: 10px;
    max-height: calc(100dvh - 170px);
  }

  #gamesModal.games-beta-enabled .connect4-cell {
    min-height: 32px;
  }

  #gamesModal.games-beta-enabled .connect4-drop-btn {
    min-height: 30px;
    font-size: 0.84rem;
  }

  #gamesModal.games-beta-enabled .snake-canvas {
    width: min(100%, 260px);
  }

  #gamesModal.games-beta-enabled .games-panel.is-active {
    gap: 8px;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    min-height: 0;
  }

  #gamesModal.games-beta-enabled .snake-controls {
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(2, 50px);
    gap: 6px;
  }

  #gamesModal.games-beta-enabled .snake-dir {
    width: 50px;
    height: 50px;
    min-height: 50px;
    font-size: 0.95rem;
  }

  #gamesModal.games-beta-enabled .games-panel[data-games-panel="snake"].is-running .games-meta,
  #gamesModal.games-beta-enabled .games-panel[data-games-panel="connect4"] .games-meta {
    display: none;
  }

  #gamesModal.games-beta-enabled .games-beta-badge {
    display: none;
  }

  #gamesModal.games-beta-enabled .games-head-top-actions {
    margin-left: auto;
  }
}

@media (max-width: 430px), (max-height: 760px) {
  #gamesModal.order-confirm-modal {
    padding: 6px;
  }

  #gamesModal.games-beta-enabled .games-dialog {
    padding: 8px;
    border-radius: 14px;
  }

  #gamesModal.games-beta-enabled .games-tabs {
    gap: 6px;
    margin-bottom: 8px;
  }

  #gamesModal.games-beta-enabled .games-tab-btn {
    min-height: 34px;
    min-width: 96px;
    font-size: 0.74rem;
    padding: 6px 8px;
  }

  #gamesModal.games-beta-enabled .games-lounge-stage {
    padding: 8px;
  }

  #gamesModal.games-beta-enabled .tic-cell {
    min-height: 62px;
  }

  #gamesModal.games-beta-enabled .connect4-grid {
    gap: 5px;
    padding: 8px;
  }

  #gamesModal.games-beta-enabled .connect4-cell {
    min-height: 28px;
  }

  #gamesModal.games-beta-enabled .snake-canvas {
    width: min(100%, 224px);
  }

  #gamesModal.games-beta-enabled .memory-board {
    gap: 7px;
  }

  #gamesModal.games-beta-enabled .memory-card {
    min-height: 48px;
  }

  #gamesModal.games-beta-enabled .snake-controls {
    grid-template-columns: repeat(3, 46px);
    grid-template-rows: repeat(2, 46px);
    gap: 5px;
  }

  #gamesModal.games-beta-enabled .snake-dir {
    width: 46px;
    height: 46px;
    min-height: 46px;
    font-size: 0.9rem;
  }

  #gamesModal.games-beta-enabled .games-head-close {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

}

.quiz-intro {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #3b4a54;
}

.quiz-progress {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #855f45;
}

.quiz-question {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #33424d;
}

.quiz-comment {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(190, 154, 118, 0.52);
  background: rgba(255, 255, 255, 0.95);
  color: #5b4330;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

.quiz-answers {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 255px;
  margin: 2px 0 4px;
}

.quiz-flower {
  --flower-size: 220px;
  position: relative;
  width: var(--flower-size);
  height: var(--flower-size);
  animation: flower-pop 0.3s ease-out;
}

.quiz-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  margin-top: -52px;
  margin-left: -52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2b6 0%, #f4c85e 54%, #c78b31 100%);
  border: 2px solid rgba(161, 106, 44, 0.54);
  display: grid;
  place-items: center;
  padding: 10px;
  box-shadow: 0 7px 14px rgba(41, 27, 13, 0.24);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.quiz-core.is-love {
  background: radial-gradient(circle at 35% 30%, #fff4c7 0%, #ffd37d 55%, #d39738 100%);
  border-color: rgba(167, 102, 29, 0.7);
  box-shadow: 0 9px 18px rgba(193, 114, 20, 0.35);
}

.quiz-core.is-not-love {
  background: radial-gradient(circle at 35% 30%, #f7edf0 0%, #d8c9cf 55%, #ab949c 100%);
  border-color: rgba(125, 102, 110, 0.62);
  box-shadow: 0 8px 14px rgba(91, 74, 80, 0.28);
}

.quiz-core-text {
  display: block;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.1;
  font-weight: 800;
  color: #5e3b1f;
}

.quiz-core.anim-love {
  animation: quiz-love-pop 0.5s ease;
}

.quiz-core.anim-sad {
  animation: quiz-sad-drop 0.45s ease;
}

.quiz-petal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 70px;
  margin-left: -26px;
  margin-top: -35px;
  border: 0;
  background: transparent;
  transform: rotate(var(--a)) translateY(-90px) rotate(calc(-1 * var(--a)));
  transform-origin: center;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}

.quiz-petal:hover {
  transform: rotate(var(--a)) translateY(-96px) rotate(calc(-1 * var(--a))) scale(1.06);
}

.quiz-petal.is-plucked {
  opacity: 0;
  pointer-events: none;
  transform: rotate(var(--a)) translateY(-120px) rotate(calc(-1 * var(--a))) scale(0.6);
  filter: blur(1px);
}

.quiz-result {
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(195, 153, 112, 0.6);
  background: linear-gradient(160deg, #fff8ef, #fff2df);
  color: #5f4128;
  font-weight: 800;
}

.quiz-result p {
  margin: 0;
}

.quiz-result.quiz-result-win {
  background: linear-gradient(160deg, #fff7db, #ffe9bf);
  border-color: rgba(180, 132, 64, 0.75);
  color: #5f3f1f;
}

.quiz-result.quiz-result-loss {
  background: linear-gradient(160deg, #f7f0f2, #ecdfe4);
  border-color: rgba(162, 130, 140, 0.72);
  color: #5a4750;
}

.quiz-actions {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

@keyframes flower-pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes quiz-love-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes quiz-sad-drop {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(3px) scale(0.97); }
  70% { transform: translateY(1px) scale(0.985); }
  100% { transform: translateY(0) scale(1); }
}

.feedback-panel {
  margin-top: 12px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(187, 154, 118, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.order-confirm-dialog .feedback-panel {
  margin-bottom: 12px;
}

.feedback-text {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.42;
  font-weight: 600;
  color: #4f3b28;
  white-space: pre-line;
}

.feedback-nudge {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(188, 148, 100, 0.46);
  background: linear-gradient(165deg, rgba(255, 246, 226, 0.92), rgba(246, 227, 193, 0.86));
  color: #6f4d2c;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.feedback-nudge.is-pop {
  animation: feedback-nudge-pop 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes feedback-nudge-pop {
  0% {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feedback-order-recap {
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(150, 118, 82, 0.5);
  background: rgba(255, 250, 240, 0.92);
  color: #5a4631;
  font-size: 0.83rem;
  line-height: 1.35;
}

.feedback-stars {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.feedback-star {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(176, 138, 93, 0.78);
  background: rgba(255, 255, 255, 0.9);
  color: #8f785e;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-star:hover {
  border-color: #8d6745;
}

.feedback-star:focus-visible {
  outline: 2px solid rgba(141, 103, 69, 0.42);
  outline-offset: 2px;
}

.feedback-star.active {
  background: linear-gradient(165deg, #9c7650, #7f6142 62%, #674a2f);
  color: #fff5dc;
  border-color: #7a5a3b;
}

#orderFeedbackStars {
  gap: 10px;
  margin-bottom: 12px;
}

#orderFeedbackStars .feedback-star {
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(188, 144, 95, 0.2), 0 4px 12px rgba(121, 84, 45, 0.18);
  animation: order-stars-invite 1.9s ease-in-out infinite;
}

#orderFeedbackStars .feedback-star.active {
  animation: none;
  box-shadow: 0 0 0 2px rgba(255, 234, 188, 0.58), 0 8px 16px rgba(111, 79, 46, 0.24);
}

@keyframes order-stars-invite {
  0%, 100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-2px);
    filter: brightness(1.08);
  }
}

.feedback-dialog textarea,
#cartFeedbackComment,
#orderFeedbackComment {
  margin-bottom: 8px;
  min-height: 84px;
}

.feedback-actions {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.feedback-actions .btn {
  min-height: 42px;
}

.feedback-panel.is-submitted .feedback-stars,
.feedback-panel.is-submitted textarea,
.feedback-panel.is-submitted button {
  display: none;
}

.feedback-panel.is-submitted .feedback-text {
  margin-bottom: 0;
  color: #2a5d3c;
  font-weight: 700;
}

.feedback-thankyou {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #2a5d3c;
}

#btnHeaderFeedbackSubmit,
#btnCartFeedbackSubmit,
#btnOrderFeedbackSubmit {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#btnHeaderFeedbackSubmit.is-ready,
#btnCartFeedbackSubmit.is-ready,
#btnOrderFeedbackSubmit.is-ready {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px rgba(255, 228, 177, 0.44), 0 10px 18px rgba(148, 97, 47, 0.24);
  filter: saturate(1.05);
  animation: feedback-submit-ready 1.2s ease-in-out infinite;
}

@keyframes feedback-submit-ready {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(255, 228, 177, 0.4), 0 8px 16px rgba(148, 97, 47, 0.2);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(255, 228, 177, 0.64), 0 12px 22px rgba(148, 97, 47, 0.3);
  }
}

.order-confirm-open {
  overflow: hidden;
}

.legal-footer {
  margin-top: 0;
  margin-bottom: 26px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.legal-footer-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(242, 228, 205, 0.92);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.legal-footer-link:hover,
.legal-footer-link:focus-visible {
  color: #f7ead5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-btn {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.leaf-digital-mark {
  position: static;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 0.78rem;
  color: rgba(196, 186, 168, 0.96);
  pointer-events: auto;
  user-select: none;
  white-space: normal;
}

.leaf-digital-mark-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  white-space: nowrap;
}

.leaf-digital-mark-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.leaf-digital-mark-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.leaf-digital-mark-link:hover,
.leaf-digital-mark-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leaf-digital-mark-claim {
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: rgba(229, 218, 198, 0.97);
  max-width: min(90vw, 420px);
}


.floating-cart {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  border: 2px solid rgba(125, 87, 49, 0.88);
  background: linear-gradient(165deg, #9c7650, #7f6142 62%, #674a2f);
  color: #fff;
  border-radius: 14px;
  padding: 11px 12px;
  min-width: 220px;
  box-shadow: 0 16px 34px rgba(47, 34, 19, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-align: left;
  overflow: visible;
  transition: transform 0.26s ease, background-color 0.26s ease, color 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

body.cart-page-open .floating-cart {
  display: none !important;
}

body.order-confirm-open .floating-cart {
  display: none !important;
}

.floating-cart-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  opacity: 0.92;
}

.floating-cart-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.floating-cart-meta {
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff8ef;
  text-shadow: 0 1px 0 rgba(42, 25, 11, 0.32);
}

.floating-cart-count {
  font-weight: 700;
}

.floating-cart-sep {
  opacity: 0.75;
  font-weight: 500;
}

.floating-cart-price {
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.94;
}

.floating-cart:not(.is-empty) {
  animation: none;
}

.floating-cart.is-empty {
  border-color: #b7aa96;
  background: #c8bcaa;
  color: #f7f3ed;
  animation: none;
}

.floating-cart:disabled,
.floating-cart[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.78;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(47, 34, 19, 0.2);
}

.floating-cart.feedback {
  animation: none;
}

.floating-cart.receive {
  transform: scale(1.09);
  background: linear-gradient(165deg, #ffffff, #f4efe7);
  color: #3b2a1b;
  border-color: rgba(101, 74, 45, 0.95);
  box-shadow: 0 20px 38px rgba(47, 34, 19, 0.34);
}

.floating-cart.receive .floating-cart-title,
.floating-cart.receive .floating-cart-meta,
.floating-cart.receive .floating-cart-count,
.floating-cart.receive .floating-cart-price,
.floating-cart.receive .floating-cart-icon {
  color: #3b2a1b;
  text-shadow: none;
}

.floating-cart-hint {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(177, 223, 194, 0.9);
  background: rgba(236, 252, 242, 0.97);
  color: #17512b;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(31, 77, 45, 0.16);
}

.cart-focus {
  animation: cart-focus 0.8s ease;
}

@keyframes cart-focus {
  0% { box-shadow: 0 0 0 rgba(143, 111, 70, 0); }
  45% { box-shadow: 0 0 0 3px rgba(152, 115, 77, 0.32), 0 18px 38px rgba(61, 44, 24, 0.14); }
  100% { box-shadow: 0 18px 38px rgba(61, 44, 24, 0.14); }
}

.cart-fly-token {
  position: fixed;
  z-index: 65;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 999px;
  border: 1px solid rgba(128, 92, 56, 0.7);
  background: rgba(255, 248, 238, 0.96);
  color: #5f432a;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(53, 37, 20, 0.24);
  pointer-events: none;
  opacity: 1;
  transition: transform 0.52s cubic-bezier(.2,.86,.2,1), opacity 0.52s ease;
}

@media (max-width: 760px) {
  .app {
    padding: 12px 6px 120px;
  }

  .hero {
    padding: 6px 8px 8px;
  }

  .hero-top {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 6px;
    padding: 0;
    margin-bottom: 4px;
    border-radius: 0;
  }

  .hero-logo {
    width: 42px;
  }

  .hero-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .hero-service-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .lang-row {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  .lang-label {
    font-size: 0.72rem;
    margin: 0;
  }

  .lang-select {
    width: 62px;
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.9rem;
  }

  .btn-compact {
    min-height: 32px;
    padding: 5px 7px;
    font-size: 0.74rem;
    border-radius: 8px;
    line-height: 1;
    white-space: normal;
  }

  .hero-tools {
    gap: 4px;
  }

  .quiz-answers {
    grid-template-columns: 1fr;
  }

  .service-btn-wrap {
    min-width: 0;
  }

  .main-category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding-bottom: 0;
    max-width: 100%;
    overflow: visible;
  }

  .main-category-grid::-webkit-scrollbar {
    height: auto;
  }

  .main-category-grid::-webkit-scrollbar-thumb {
    background: rgba(162, 122, 68, 0.55);
    border-radius: 999px;
  }

  .main-category-grid::-webkit-scrollbar-track {
    background: transparent;
    gap: 8px;
  }

  .main-category-btn {
    min-height: 38px;
    min-width: 0;
    padding: 6px 10px;
    width: auto;
  }

  .main-category-label {
    font-size: 0.8rem;
  }

  .sub-category-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding-bottom: 0;
    width: 100%;
  }

  .sub-category-row::-webkit-scrollbar {
    height: auto;
  }

  .sub-category-row::-webkit-scrollbar-thumb {
    background: rgba(162, 122, 68, 0.5);
    border-radius: 999px;
  }

  .sub-category-btn {
    flex: 0 1 auto;
    font-size: 0.82rem;
    min-height: 34px;
    min-width: 0;
    padding: 6px 10px;
  }

  .table-pill {
    font-size: 0.74rem;
    padding: 2px 0;
  }

  .menu h2 {
    font-size: 1.08rem;
    margin-bottom: 8px;
  }

  .menu-ad-banner {
    margin-bottom: 9px;
    border-radius: 12px;
  }

  .menu-ad-banner-copy {
    left: 10px;
    right: 10px;
    gap: 3px;
  }

  .menu-ad-banner-kicker {
    font-size: 0.62rem;
  }

  .menu-ad-banner-price {
    padding: 3px 8px;
    font-size: 0.74rem;
  }

  .menu-ad-banner-headline {
    max-width: 100%;
  }

  .menu-ad-banner-slides {
    max-width: 100%;
  }

  .service-status-top {
    width: 100%;
    min-height: 26px;
    padding: 4px 6px;
  }

  .service-status-item {
    font-size: 0.79rem;
  }

  .item {
    --item-row-h: 146px;
    --item-image-size: 116px;
    grid-template-columns: var(--item-image-size) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 0 10px;
    margin-bottom: 10px;
  }

  .item-family-compact {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .item:not(.is-open),
  .item-family-compact:not(.is-open) {
    height: auto;
    min-height: var(--item-row-h);
  }

  .item-body {
    padding: 7px 8px;
    margin-left: 0;
    min-height: var(--item-row-h);
    height: auto;
    min-width: 0;
  }

  .item-body::before {
    content: none;
  }

  .item-image {
    width: 100%;
    height: var(--item-row-h);
    min-height: var(--item-row-h);
    max-height: var(--item-row-h);
    align-self: start;
    border-radius: 10px;
  }

  .item-image.has-image {
    background: rgba(236, 226, 210, 0.45);
    object-fit: cover;
    padding: 0;
  }

  .item-image.has-image.is-portrait {
    object-fit: cover;
    object-position: center center;
    padding: 0;
  }

  .item-header {
    gap: 8px;
  }

  .item-header strong {
    font-size: 0.96rem;
    line-height: 1.15;
    max-height: 3.45em;
  }

  .price {
    font-size: 1rem;
    white-space: nowrap;
  }

  .item-meta {
    font-size: 0.81rem;
    margin: 2px 0;
    line-height: 1.2;
  }

  .menu-allergen-grid {
    grid-template-columns: 1fr;
    font-size: 0.76rem;
  }

  .feedback-panel {
    margin-top: 10px;
    padding: 10px 10px 8px;
    border-radius: 12px;
  }

  .feedback-text {
    margin-bottom: 8px;
    font-size: 0.86rem;
    line-height: 1.36;
  }

  .feedback-stars {
    gap: 6px;
    margin-bottom: 8px;
  }

  .feedback-star {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .feedback-dialog textarea,
  #cartFeedbackComment,
  #orderFeedbackComment {
    min-height: 72px;
    margin-bottom: 7px;
  }

  .feedback-actions {
    gap: 5px;
  }

  .item-body .item-allergen {
    display: block;
    font-size: 0.66rem;
    font-weight: 400;
    max-height: 2.3em;
  }

  .item-body .item-desc {
    max-height: none;
    overflow: visible;
  }

  .item-actions {
    gap: 6px;
    min-width: 0;
  }

  .customize-item-btn-inline {
    max-width: 54%;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .btn-variant {
    min-height: var(--touch-min);
    font-size: 0.86rem;
    padding: 8px 10px;
  }

  .variant-inline-name {
    font-size: 0.78rem;
  }

  .variant-inline-actions .item-stepper,
  .variant-inline-actions .item-count-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.95rem;
  }

  .variant-compact-row {
    padding: 6px 7px;
    gap: 6px;
  }

  .variant-compact-label {
    font-size: 0.74rem;
  }

  .variant-select {
    min-height: 32px;
    font-size: 0.8rem;
    padding: 4px 7px;
  }

  .item-stepper,
  .item-count-badge {
    width: var(--touch-min);
    height: var(--touch-min);
    min-width: var(--touch-min);
    font-size: 1.12rem;
    border-radius: 9px;
  }

  .watermark {
    font-size: 1.85rem;
    letter-spacing: 0.16rem;
    opacity: 0.6;
  }

  .hero-monogram {
    width: 126px;
    right: 12px;
    opacity: 0.06;
  }

  body.cart-page-open .cart {
    inset: 0;
    border-radius: 0;
  }

  .floating-cart {
    right: 12px;
    left: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    min-width: 0;
    max-width: none;
    width: auto;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .floating-cart-title {
    font-size: 0.86rem;
  }

  .floating-cart-meta {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .hero-top {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 4px;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .btn-compact {
    min-height: 30px;
    padding: 4px 6px;
    font-size: 0.71rem;
  }

  .hero-logo {
    width: 34px;
  }

  .lang-select {
    width: 52px;
    min-height: 24px;
    font-size: 0.74rem;
    padding: 2px 6px;
  }

  .watermark,
  .hero-monogram {
    display: none;
  }

  .order-summary-group {
    padding: 8px 9px;
  }

  .order-summary-group-title {
    font-size: 0.94rem;
  }

  .order-summary-group-count {
    min-width: 24px;
    height: 20px;
    font-size: 0.74rem;
  }
}

@media (max-width: 620px) {
  .app {
    padding-left: 4px;
    padding-right: 4px;
  }

  .item {
    --item-row-h: 136px;
    --item-image-size: 108px;
    grid-template-columns: var(--item-image-size) minmax(0, 1fr);
    min-height: var(--item-row-h);
    height: auto;
  }

  .item-body {
    min-height: var(--item-row-h);
    height: auto;
    row-gap: 4px;
  }

  .item-family-compact {
    min-height: var(--item-row-h);
    height: auto;
    grid-template-columns: var(--item-image-size) minmax(0, 1fr);
  }

  .item-family-compact.has-family-image {
    grid-template-columns: var(--item-image-size) minmax(0, 1fr);
    gap: 8px;
  }

  .item-family-compact.has-family-image {
    padding: 7px;
  }

  .item-family-compact.has-family-image .family-variants-wrap {
    margin-top: 4px;
    padding-top: 0;
  }

  .item-image.family-main-image {
    height: var(--item-row-h);
    min-height: var(--item-row-h);
    max-height: var(--item-row-h);
    align-self: start;
  }

  .item-body.item-family-body {
    min-height: var(--item-row-h);
    height: auto;
    row-gap: 4px;
  }

  .item-family-compact.has-family-image > .item-body.item-family-body {
    height: 100%;
  }

  .family-variants-wrap,
  .variant-chip-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .variant-chip-stepper {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 0.95rem;
  }

  .variant-chip-controls {
    gap: 4px;
  }

  .family-variants-wrap.single-line {
    display: flex;
    flex-wrap: nowrap;
  }

  .family-variants-wrap.single-line .family-variant-btn {
    min-width: 164px;
  }

  .family-sub {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .btn-variant-toggle > span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
  }

  .happy-hour-grid-wizard {
    grid-template-columns: 1fr;
  }

  #gamesModal .games-lounge-head {
    align-items: center;
    justify-content: space-between;
    padding-right: 0;
    margin-bottom: 6px;
  }

  #gamesModal .games-head-top-actions {
    position: static;
    margin-left: auto;
    gap: 0;
    flex: 0 0 auto;
  }

  #gamesModal #gamesIntro {
    display: none;
  }

  #gamesModal .games-tabs {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    margin-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }

  #gamesModal .games-tab-btn {
    flex: 0 0 auto;
    min-width: 106px;
    min-height: 34px;
    font-size: 0.76rem;
    padding: 6px 8px;
  }

  #gamesModal .games-stage {
    min-height: 0;
    max-height: calc(100dvh - 190px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  #gamesModal .games-head-close {
    width: auto !important;
    white-space: nowrap;
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  #gamesModal .games-beta-badge {
    display: none;
  }

  .games-dialog h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  #gamesIntro {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .games-tab-btn {
    font-size: 0.9rem;
    min-height: 38px;
    padding: 8px 10px;
  }

  .games-meta {
    font-size: 0.78rem;
  }

  .tic-cell {
    min-height: 56px;
    font-size: 1.35rem;
  }

  .connect4-cell {
    min-height: 36px;
  }

  .snake-controls {
    grid-template-columns: repeat(3, minmax(0, 64px));
    grid-template-rows: repeat(2, minmax(0, 56px));
    gap: 8px;
    width: auto;
  }

  .snake-dir {
    width: 64px;
    height: 52px;
    min-height: 52px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .snake-controls .snake-dir {
    grid-column: auto;
    grid-row: auto;
  }

  .snake-controls .snake-dir.up { grid-column: 2; grid-row: 1; }
  .snake-controls .snake-dir.left { grid-column: 1; grid-row: 2; }
  .snake-controls .snake-dir.down { grid-column: 2; grid-row: 2; }
  .snake-controls .snake-dir.right { grid-column: 3; grid-row: 2; }

  .memory-card {
    min-height: 48px;
    font-size: 1.12rem;
  }
}

/* Typography reset to previous simple look */
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.category-title,
.category-title h2,
.category-title .category-name {
  font-family: inherit;
}

@media (max-width: 430px) {
  .item {
    --item-row-h: 108px;
    --item-image-size: 84px;
    grid-template-columns: var(--item-image-size) minmax(0, 1fr);
    gap: 6px;
  }

  .item-header strong {
    font-size: 0.9rem;
  }

  .leaf-philosophy-teaser,
  .leaf-philosophy-card {
    border-radius: 14px;
  }

  .variant-inline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .variant-inline-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .variant-inline-actions .item-stepper,
  .variant-inline-actions .item-count-badge {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.9rem;
  }

  .family-variant-btn {
    min-height: 38px;
    font-size: 0.78rem;
    padding: 7px 9px;
  }

  .item-family-compact.has-family-image {
    grid-template-columns: var(--item-image-size) minmax(0, 1fr);
    gap: 6px;
  }

  .item-family-compact.has-family-image .family-variants-wrap {
    margin-top: 3px;
    padding-top: 0;
  }

  .item-image.family-main-image {
    height: var(--item-row-h);
    min-height: var(--item-row-h);
    max-height: var(--item-row-h);
    align-self: start;
  }

  .btn-variant-toggle,
  .variant-chip-btn {
    min-height: 36px;
    font-size: 0.78rem;
    padding: 7px 9px;
  }

  .family-variants-wrap.single-line .family-variant-btn {
    min-width: 150px;
  }
}

@media (max-width: 390px), (max-height: 700px) {
  #gamesModal .games-dialog,
  #gamesModal.games-beta-enabled .games-dialog {
    padding: 7px;
    border-radius: 12px;
    max-height: calc(100dvh - 8px);
  }

  #gamesModal .games-lounge-head {
    justify-content: space-between;
    padding-right: 0;
    margin-bottom: 4px;
    gap: 4px;
  }

  #gamesModal .games-head-top-actions {
    position: static;
    margin-left: auto;
    gap: 0;
    flex: 0 0 auto;
  }

  #gamesModal .games-dialog h3 {
    font-size: 1.02rem;
  }

  #gamesModal .games-head-close {
    width: auto !important;
    white-space: nowrap;
    min-height: 28px;
    padding: 3px 7px;
    font-size: 0.68rem;
  }

  #gamesModal .games-tabs {
    gap: 4px;
    margin-bottom: 6px;
    padding-bottom: 1px;
  }

  #gamesModal .games-tab-btn {
    min-width: 90px;
    min-height: 30px;
    padding: 4px 7px;
    font-size: 0.7rem;
    border-radius: 9px;
  }

  #gamesModal .games-stage,
  #gamesModal.games-beta-enabled .games-lounge-stage {
    padding: 6px;
    min-height: 0;
    max-height: calc(100dvh - 148px);
  }

  #gamesModal .games-panel.is-active {
    gap: 6px;
  }

  #gamesModal .games-meta {
    gap: 4px;
    font-size: 0.7rem;
  }

  #gamesModal .games-meta > span {
    min-height: 24px;
    padding: 3px 7px;
  }

  #gamesModal .tic-cell,
  #gamesModal.games-beta-enabled .tic-cell {
    min-height: 46px;
    font-size: 1.06rem;
  }

  #gamesModal .connect4-drop-btn,
  #gamesModal.games-beta-enabled .connect4-drop-btn {
    min-height: 26px;
    font-size: 0.74rem;
    border-radius: 8px;
  }

  #gamesModal .connect4-grid,
  #gamesModal.games-beta-enabled .connect4-grid {
    gap: 4px;
    padding: 6px;
  }

  #gamesModal .connect4-cell,
  #gamesModal.games-beta-enabled .connect4-cell {
    min-height: 24px;
  }

  #gamesModal .snake-canvas,
  #gamesModal.games-beta-enabled .snake-canvas {
    width: min(100%, 196px);
  }

  #gamesModal .snake-controls,
  #gamesModal.games-beta-enabled .snake-controls {
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(2, 40px);
    gap: 4px;
  }

  #gamesModal .snake-dir,
  #gamesModal.games-beta-enabled .snake-dir {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 10px;
    font-size: 0.84rem;
  }

  #gamesModal #btnSnakeStart,
  #gamesModal #btnTicStart,
  #gamesModal #btnConnect4Start,
  #gamesModal #btnMemoryStart {
    min-height: 32px;
    font-size: 0.76rem;
    padding: 5px 8px;
  }

  #gamesModal .memory-board,
  #gamesModal.games-beta-enabled .memory-board {
    gap: 5px;
  }

  #gamesModal .memory-card,
  #gamesModal.games-beta-enabled .memory-card {
    min-height: 40px;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-ad-banner::before,
  .menu-ad-banner::after {
    animation: none !important;
  }

  .menu-ad-banner,
  .menu-ad-banner-image {
    animation: none !important;
  }

  #gamesModal.games-beta-enabled .orb-a,
  #gamesModal.games-beta-enabled .orb-b,
  #gamesModal.games-beta-enabled .orb-c,
  .btn-games.is-beta::after {
    animation: none !important;
    transition: none !important;
  }

  .parallax-layer,
  .grain-layer,
  .menu,
  .cart,
  .item,
  .btn,
  .floating-cart,
  .main-category-btn,
  .sub-category-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .hero,
  .hero-service-panel,
  .main-category-btn,
  .sub-category-btn,
  .item-body,
  .floating-cart {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Games Modal Responsive Hardening */
#gamesModal.order-confirm-modal {
  padding: clamp(6px, 2.2vw, 14px);
}

#gamesModal .games-dialog,
#gamesModal.games-beta-enabled .games-dialog {
  box-sizing: border-box;
  width: min(980px, calc(100vw - 12px)) !important;
  max-width: calc(100vw - 12px) !important;
  max-height: calc(100dvh - 12px) !important;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

#gamesModal .games-lounge-head,
#gamesModal.games-beta-enabled .games-lounge-head {
  margin: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
}

#gamesModal .games-lounge-head > div {
  min-width: 0;
}

#gamesModal .games-lounge-head h3,
#gamesModal.games-beta-enabled .games-lounge-head h3 {
  margin: 0;
  line-height: 1.1;
}

#gamesModal #gamesIntro,
#gamesModal.games-beta-enabled #gamesIntro {
  margin: 2px 0 0;
}

#gamesModal .games-head-top-actions,
#gamesModal.games-beta-enabled .games-head-top-actions {
  position: static;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

#gamesModal .games-head-close,
#gamesModal.games-beta-enabled .games-head-close {
  margin: 0 !important;
  width: auto !important;
  white-space: nowrap;
}

#gamesModal .games-head-back {
  display: none;
  margin: 0 !important;
  width: auto !important;
  white-space: nowrap;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.72rem;
}

#gamesModal.games-in-game .games-head-back {
  display: inline-flex;
}

#gamesModal.games-selection-mode .games-stage {
  display: none !important;
}

#gamesModal.games-selection-mode .games-tabs {
  display: grid !important;
}

#gamesModal.games-in-game .games-tabs {
  display: none !important;
}

#gamesModal .games-stage,
#gamesModal.games-beta-enabled .games-lounge-stage {
  min-height: 0 !important;
  height: 100%;
  max-height: none !important;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#gamesModal .games-panel,
#gamesModal .games-panel.is-active {
  min-width: 0;
}

#gamesModal .games-panel.is-active,
#gamesModal.games-beta-enabled .games-panel.is-active {
  min-height: 0;
  align-content: start;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

#gamesModal .games-meta,
#gamesModal.games-beta-enabled .games-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#gamesModal .games-meta > span,
#gamesModal.games-beta-enabled .games-meta > span {
  min-width: 0;
}

#gamesModal .connect4-board,
#gamesModal .connect4-grid,
#gamesModal .tic-board,
#gamesModal .memory-board {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

#gamesModal .memory-card,
#gamesModal.games-beta-enabled .memory-card {
  aspect-ratio: 1 / 1;
}

@media (max-width: 760px) {
  #gamesModal .games-dialog,
  #gamesModal.games-beta-enabled .games-dialog {
    padding: 8px !important;
    border-radius: 14px !important;
    gap: 6px;
  }

  #gamesModal .games-beta-badge,
  #gamesModal.games-beta-enabled .games-beta-badge {
    display: none !important;
  }

  #gamesModal #gamesIntro,
  #gamesModal.games-beta-enabled #gamesIntro {
    display: none;
  }

  #gamesModal .games-tabs,
  #gamesModal.games-beta-enabled .games-tabs {
    display: flex !important;
    flex-wrap: nowrap;
    grid-template-columns: none !important;
    min-width: 0;
    margin: 0;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  #gamesModal .games-tab-btn,
  #gamesModal.games-beta-enabled .games-tab-btn {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  #gamesModal .games-head-close,
  #gamesModal.games-beta-enabled .games-head-close {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  #gamesModal .tic-cell,
  #gamesModal.games-beta-enabled .tic-cell {
    min-height: clamp(48px, 12vw, 68px);
  }

  #gamesModal .connect4-cell,
  #gamesModal.games-beta-enabled .connect4-cell {
    min-height: clamp(26px, 6.2vw, 40px);
  }

  #gamesModal .connect4-drop-btn,
  #gamesModal.games-beta-enabled .connect4-drop-btn {
    min-height: clamp(26px, 6vw, 34px);
  }

  #gamesModal .snake-canvas,
  #gamesModal.games-beta-enabled .snake-canvas {
    width: min(100%, 260px);
  }

  #gamesModal .snake-controls,
  #gamesModal.games-beta-enabled .snake-controls {
    grid-template-columns: repeat(3, 46px);
    grid-template-rows: repeat(2, 46px);
    gap: 5px;
  }

  #gamesModal .snake-dir,
  #gamesModal.games-beta-enabled .snake-dir {
    width: 46px;
    height: 46px;
    min-height: 46px;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px), (max-height: 740px) {
  #gamesModal .games-dialog,
  #gamesModal.games-beta-enabled .games-dialog {
    padding: 7px !important;
    border-radius: 12px !important;
    gap: 5px;
  }

  #gamesModal .games-tab-btn,
  #gamesModal.games-beta-enabled .games-tab-btn {
    min-width: 88px;
    min-height: 30px;
    font-size: 0.7rem;
    padding: 4px 7px;
  }

  #gamesModal .games-head-close,
  #gamesModal.games-beta-enabled .games-head-close {
    min-height: 28px;
    font-size: 0.68rem;
    padding: 3px 7px;
  }

  #gamesModal .games-meta,
  #gamesModal.games-beta-enabled .games-meta {
    font-size: 0.72rem;
    gap: 4px;
  }

  #gamesModal .games-meta > span,
  #gamesModal.games-beta-enabled .games-meta > span {
    min-height: 24px;
    padding: 3px 7px;
  }

  #gamesModal .snake-canvas,
  #gamesModal.games-beta-enabled .snake-canvas {
    width: min(100%, 210px);
  }
}

/* Games Modal Auto-Responsive via Container Queries */
#gamesModal .games-dialog,
#gamesModal.games-beta-enabled .games-dialog {
  container-type: inline-size;
}

#gamesModal .games-tabs,
#gamesModal.games-beta-enabled .games-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

#gamesModal .games-tab-btn,
#gamesModal.games-beta-enabled .games-tab-btn {
  min-width: 0;
  width: 100%;
}

#gamesModal .games-panel .btn.btn-primary {
  width: 100%;
  max-width: 360px;
  justify-self: center;
}

@container (max-width: 760px) {
  #gamesModal .games-tabs,
  #gamesModal.games-beta-enabled .games-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #gamesModal .games-tab-btn,
  #gamesModal.games-beta-enabled .games-tab-btn {
    min-height: 38px;
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  #gamesModal .games-lounge-head,
  #gamesModal.games-beta-enabled .games-lounge-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@container (max-width: 520px) {
  #gamesModal .games-tabs,
  #gamesModal.games-beta-enabled .games-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  #gamesModal .games-tab-btn,
  #gamesModal.games-beta-enabled .games-tab-btn {
    min-height: 34px;
    font-size: 0.76rem;
    padding: 6px 8px;
  }

  #gamesModal .games-meta,
  #gamesModal.games-beta-enabled .games-meta {
    font-size: 0.74rem;
    gap: 5px;
  }
}

@container (max-width: 390px) {
  #gamesModal .games-tabs,
  #gamesModal.games-beta-enabled .games-tabs {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #gamesModal .games-tab-btn,
  #gamesModal.games-beta-enabled .games-tab-btn {
    min-height: 32px;
    font-size: 0.74rem;
  }
}

/* Family Card Consistency (collapsible vs non-collapsible) */
.item.item-family-compact.has-family-image,
.item.item-family-compact.has-family-image:not(.is-open),
.item.item-family-compact.has-family-image.is-open {
  grid-template-columns: var(--item-image-size) minmax(0, 1fr) !important;
  grid-template-areas:
    "media body"
    "variants variants" !important;
  gap: 8px !important;
  align-items: stretch !important;
  padding: 8px 0 !important;
  margin: 0 !important;
}

.item.item-family-compact.has-family-image > .item-image.family-main-image {
  grid-area: media;
  width: 100%;
  height: var(--item-row-h) !important;
  min-height: var(--item-row-h) !important;
  max-height: var(--item-row-h) !important;
  align-self: start;
  object-fit: cover;
  object-position: center;
}

.item.item-family-compact.has-family-image > .item-body.item-family-body,
.item.item-family-compact.has-family-image.is-open > .item-body.item-family-body,
.item.item-family-compact.has-family-image:not(.is-open) > .item-body.item-family-body {
  grid-area: body;
  min-height: var(--item-row-h) !important;
  height: auto !important;
  border: 1px solid rgba(201, 174, 138, 0.42) !important;
  background: linear-gradient(180deg, rgba(247, 239, 228, 0.64), rgba(239, 228, 211, 0.5)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  padding: 8px 10px !important;
  border-radius: var(--radius-md);
  gap: 4px;
}

.item.item-family-compact.has-family-image .family-variants-wrap {
  grid-area: variants;
  margin-top: 4px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

@media (max-width: 620px) {
  .item.item-family-compact.has-family-image,
  .item.item-family-compact.has-family-image:not(.is-open),
  .item.item-family-compact.has-family-image.is-open {
    gap: 6px !important;
  }

  .item.item-family-compact.has-family-image > .item-body.item-family-body,
  .item.item-family-compact.has-family-image.is-open > .item-body.item-family-body,
  .item.item-family-compact.has-family-image:not(.is-open) > .item-body.item-family-body {
    padding: 7px 8px !important;
  }
}

/* Edge-minimal mobile layout for maximum image width */
@media (max-width: 760px) {
  .app {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .hero {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .menu,
  .cart {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}

@media (max-width: 620px) {
  .app {
    padding-left: 1px !important;
    padding-right: 1px !important;
  }

  .menu,
  .cart {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

/* No duplicate category heading in content area */
.category-title {
  display: none !important;
}
