/* Sha4owX Flow · Guest table menu — Premium dark lacquer (EN) */

.tm-body {
  --tm-ink: #0a0908;
  --tm-ink-soft: #161310;
  --tm-ink-lift: #1c1814;
  --tm-lacquer: #c41e3a;
  --tm-lacquer-deep: #8b1528;
  --tm-lacquer-bright: #d42845;
  --tm-gold: #d4af37;
  --tm-gold-dim: #a8892a;
  --tm-copper: #b87333;
  --tm-jade: #5b8c7a;
  --tm-rice: #f3e9d8;
  --tm-smoke: rgba(243, 233, 216, 0.55);
  --tm-smoke-soft: rgba(243, 233, 216, 0.38);
  --tm-line: rgba(212, 175, 55, 0.28);
  --tm-line-soft: rgba(212, 175, 55, 0.14);
  --tm-highlight: #d4af37;
  --tm-hero-img: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&q=80");
  --tm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tm-radius: 16px;
  --tm-radius-lg: 20px;
  --tm-dock-h: 72px;

  margin: 0;
  min-height: 100dvh;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  color: var(--tm-rice);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(42, 26, 20, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(184, 115, 51, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 60%, rgba(196, 30, 58, 0.05) 0%, transparent 50%),
    linear-gradient(165deg, #12100e 0%, var(--tm-ink) 48%, #100e0c 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.tm-stage {
  position: relative;
  min-height: 100dvh;
}

body.tm-body:has(#tm-stage:not(.is-open):not(.is-open-instant)) {
  overflow: hidden;
  height: 100dvh;
}

/* Subtle smoke / cloud motif */
.tm-clouds {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='100' viewBox='0 0 180 100'%3E%3Cpath fill='%23F3E9D8' d='M20 60c0-12 10-22 22-22 3-10 12-17 23-17 14 0 25 11 26 24 2-1 5-2 8-2 12 0 22 10 22 22H20z'/%3E%3Cpath fill='%23F3E9D8' d='M100 78c0-8 7-15 15-15 2-7 8-12 16-12 10 0 17 7 18 16 1 0 3-1 5-1 8 0 15 7 15 15H100z'/%3E%3C/svg%3E");
  background-size: 180px 100px;
}
.tm-clouds--soft { opacity: 0.04; }

/* ==========================================================================
   COVER — mockup (seal · brand · CTA)
   ========================================================================== */

.tm-cover {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: #050403;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity, filter;
}

.tm-stage.is-open .tm-cover {
  animation: tm-cover-exit 1.05s var(--tm-ease) forwards;
  pointer-events: none;
}
.tm-stage.is-open-instant .tm-cover { display: none; }

@keyframes tm-cover-exit {
  0% { opacity: 1; filter: blur(0); transform: scale(1); }
  100% { opacity: 0; filter: blur(10px); transform: scale(1.1); visibility: hidden; }
}

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

.tm-cover-photo {
  position: absolute;
  inset: -6%;
  background: var(--tm-hero-img) center 40% / cover no-repeat;
  transform: scale(1.06);
  animation: tm-cover-drift 20s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.08) brightness(0.78);
}

@keyframes tm-cover-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -2%, 0); }
}

.tm-cover-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(0, 0, 0, 0.35), transparent 55%),
    linear-gradient(
      180deg,
      rgba(5, 4, 3, 0.55) 0%,
      rgba(5, 4, 3, 0.15) 32%,
      rgba(5, 4, 3, 0.45) 58%,
      rgba(5, 4, 3, 0.88) 78%,
      #050403 100%
    );
}

.tm-table-chip {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tm-gold);
  border: 1px solid var(--tm-line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(10, 9, 8, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tm-table-chip--cover {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  z-index: 6;
  opacity: 0;
  animation: tm-rise 0.9s var(--tm-ease) 0.25s forwards;
}

.tm-cover-center {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: calc(12vh + env(safe-area-inset-top)) 28px 12px;
  min-height: 0;
}

.tm-spice--left,
.tm-spice--right {
  position: absolute;
  width: 56px;
  height: 64px;
  color: rgba(212, 175, 55, 0.38);
  opacity: 0;
  animation: tm-rise 1.1s var(--tm-ease) 0.9s forwards;
  pointer-events: none;
}
.tm-spice--left {
  left: max(8px, 6%);
  top: 42%;
}
.tm-spice--right {
  right: max(10px, 8%);
  top: 48%;
  width: 42px;
}

/* Seal with sparks */
.tm-seal {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  margin: 0 0 18px;
  border: 2.5px solid #e0455f;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #f0e6d2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(8, 6, 5, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(224, 69, 95, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.45);
  transform: rotate(-6deg) scale(0.94);
  opacity: 0;
  animation: tm-seal-in 1s 0.2s var(--tm-ease) forwards;
  cursor: pointer;
  appearance: none;
  padding: 0;
  transition: transform 0.2s var(--tm-ease), filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.tm-seal-sparks {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 14px;
  pointer-events: none;
}
.tm-seal-sparks i {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0d48a, transparent);
  left: 50%;
  margin-left: -1px;
  transform-origin: bottom center;
}
.tm-seal-sparks i:nth-child(1) { transform: translateX(-9px) rotate(-28deg); height: 8px; }
.tm-seal-sparks i:nth-child(2) { transform: translateX(0) rotate(0deg); height: 12px; }
.tm-seal-sparks i:nth-child(3) { transform: translateX(9px) rotate(28deg); height: 8px; }

.tm-seal-letter {
  position: relative;
  z-index: 2;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.tm-seal-logo {
  position: absolute;
  inset: 8px;
  z-index: 2;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px;
}
.tm-seal-logo[hidden] { display: none !important; }
.tm-seal.has-logo .tm-seal-letter { display: none; }
.tm-seal.has-logo .tm-seal-sparks { display: none; }

.tm-seal:hover { filter: brightness(1.08); }
.tm-seal:active {
  transform: rotate(-6deg) scale(0.92);
  animation: none;
  opacity: 1;
}

@keyframes tm-seal-in {
  to { opacity: 1; transform: rotate(-6deg) scale(1); }
}

.tm-logo,
.tm-cover .tm-logo {
  display: none !important;
}

.tm-cover-brand {
  margin: 0;
  opacity: 0;
  animation: tm-rise 1.15s var(--tm-ease) 0.45s forwards;
}
.tm-cover-main {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 11vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #f7f1e6;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}
.tm-cover-script {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 400;
  color: #e0455f;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.tm-cover-bowl {
  width: 28px;
  height: 28px;
  color: #e0455f;
  flex-shrink: 0;
  margin-top: 6px;
}

.tm-cover-kicker {
  margin: 18px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d4af37;
  opacity: 0;
  animation: tm-rise 1s var(--tm-ease) 0.7s forwards;
}

.tm-tagline {
  margin: 12px 0 0;
  max-width: 26ch;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(247, 241, 230, 0.88);
  opacity: 0;
  animation: tm-rise 1s var(--tm-ease) 0.85s forwards;
}

.tm-cover-foot {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 24px calc(22px + env(safe-area-inset-bottom));
  width: 100%;
}

.tm-cover-cta {
  width: min(100%, 340px);
  appearance: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  color: #fff;
  background: linear-gradient(180deg, #e85a70 0%, #c41e3a 52%, #9a1830 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 14px 32px rgba(196, 30, 58, 0.45);
  opacity: 0;
  transform: translateY(14px);
  animation: tm-rise 1s var(--tm-ease) 1.05s forwards;
  transition: filter 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}
.tm-cover-cta-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tm-cover-cta-icon svg {
  width: 30px;
  height: 26px;
  display: block;
}
.tm-cover-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tm-cover-cta-copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
}
.tm-cover-cta-copy small {
  font-family: "Jost", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0d48a;
}
.tm-cover-cta:hover { filter: brightness(1.06); }
.tm-cover-cta:active { transform: scale(0.985); }

.tm-cover-hint {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  background: rgba(10, 8, 6, 0.55);
  color: var(--tm-gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  animation:
    tm-rise 0.9s var(--tm-ease) 1.25s forwards,
    tm-hint-bob 1.6s 2.1s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
}
.tm-cover-hint-chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
@keyframes tm-hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@keyframes tm-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BROWSE
   ========================================================================== */

.tm-browse {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 calc(var(--tm-dock-h) + 28px + env(safe-area-inset-bottom));
  background: transparent;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  pointer-events: none;
}

.tm-stage.is-opening .tm-browse {
  animation: tm-browse-in 1s var(--tm-ease) 0.15s forwards;
}
.tm-stage.is-open .tm-browse,
.tm-stage.is-open-instant .tm-browse {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

@keyframes tm-browse-in {
  to { opacity: 1; transform: none; filter: none; }
}

.tm-browse-head {
  position: relative;
  padding: calc(16px + env(safe-area-inset-top)) 20px 10px;
}

.tm-browse-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tm-browse-kicker {
  margin: 0 0 4px;
  font-family: "Jost", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tm-jade);
  opacity: 0.9;
}

.tm-browse-brand {
  margin: 0;
  line-height: 1.05;
  color: var(--tm-rice);
}

.tm-brand-main {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tm-rice);
}

.tm-brand-script {
  display: inline-block;
  margin-left: 0.2em;
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.65rem, 6.5vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--tm-gold);
  text-shadow: 0 2px 16px rgba(212, 175, 55, 0.25);
  vertical-align: baseline;
}

/* When JS sets plain text on brand (no spans), still look right */
.tm-browse-brand:not(:has(.tm-brand-main)) {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 600;
}

.tm-browse-table {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tm-gold);
  border: 1px solid var(--tm-line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(212, 175, 55, 0.06);
  white-space: nowrap;
}
.tm-browse-table svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.tm-welcome {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--tm-line-soft);
  border-radius: var(--tm-radius);
  background: rgba(212, 175, 55, 0.07);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--tm-smoke);
}
.tm-welcome[hidden] { display: none !important; }

.tm-footer-note {
  margin: 28px 16px 0;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--tm-smoke-soft);
}
.tm-footer-note[hidden] { display: none !important; }

/* Current table order panel */
.tm-current {
  margin: 12px 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--tm-line-soft);
  border-radius: var(--tm-radius-lg);
  background: rgba(243, 233, 216, 0.035);
}
.tm-current[hidden] { display: none !important; }
.tm-current-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tm-current-label {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tm-gold);
  font-weight: 600;
}
.tm-current-head strong { font-size: 1rem; color: var(--tm-rice); }
#tm-current-status {
  display: block;
  font-size: 0.88rem;
  margin-top: 2px;
  font-weight: 400;
  color: var(--tm-smoke);
}
#tm-current-total {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--tm-gold);
}
.tm-current-rounds { display: flex; flex-direction: column; gap: 10px; }
.tm-current-round {
  padding-top: 10px;
  border-top: 1px dashed rgba(243, 233, 216, 0.1);
}
.tm-current-round:first-child { border-top: 0; padding-top: 0; }
.tm-current-round-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tm-current-pill {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tm-smoke);
}
.tm-current-pill.is-new { background: rgba(212, 175, 55, 0.2); color: var(--tm-gold); }
.tm-current-pill.is-preparing { background: rgba(91, 140, 122, 0.22); color: #9ec4b5; }
.tm-current-pill.is-ready { background: rgba(52, 180, 120, 0.2); color: #6ee7b7; }
.tm-current-pill.is-served { background: rgba(255, 255, 255, 0.08); color: #c8c0b4; }
.tm-current-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.85rem;
  color: var(--tm-smoke);
}
.tm-current-items em {
  font-style: normal;
  font-weight: 700;
  color: var(--tm-gold);
  margin-right: 4px;
}
.tm-current-hint {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: rgba(243, 233, 216, 0.4);
}

/* ==========================================================================
   CATEGORY ICONS — horizontal scroll
   ========================================================================== */

.tm-cats {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 18px 12px;
  position: sticky;
  top: 0;
  z-index: 8;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.97) 0%, rgba(10, 9, 8, 0.92) 72%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tm-cats::-webkit-scrollbar { display: none; }

.tm-subcats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 18px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tm-subcats[hidden] { display: none !important; }
.tm-subcats::-webkit-scrollbar { display: none; }
.tm-subcat {
  appearance: none;
  border: 1px solid rgba(243, 233, 216, 0.18);
  background: rgba(243, 233, 216, 0.06);
  color: rgba(243, 233, 216, 0.72);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.tm-subcat em {
  font-style: normal;
  opacity: 0.55;
  margin-left: 4px;
}
.tm-subcat.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.55);
  color: #f3e9d8;
}
.tm-subsection-title {
  margin: 14px 18px 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(212, 175, 55, 0.9);
}

.tm-cat {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 72px;
  cursor: pointer;
  color: var(--tm-smoke);
  font-family: "Jost", sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

/* Icon tile — explicit or generated */
.tm-cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--tm-ink-lift);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  color: var(--tm-gold);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    transform 0.15s var(--tm-ease);
}
.tm-cat-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: currentColor;
}

/* Fallback tile when JS renders text-only cats */
.tm-cat:not(:has(.tm-cat-icon))::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(145deg, #2a2218 0%, var(--tm-ink-lift) 100%);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.15s var(--tm-ease);
}

.tm-cat-label,
.tm-cat > span:first-child:not(.tm-cat-icon):not(.en):not(.tm-cat-count) {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(243, 233, 216, 0.72);
}

.tm-cat-count,
.tm-cat .en {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(243, 233, 216, 0.38);
  margin-top: -2px;
}

.tm-cat.active {
  color: var(--tm-rice);
}
.tm-cat.active .tm-cat-icon {
  color: #fff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(160deg, var(--tm-lacquer-bright), var(--tm-lacquer-deep));
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(196, 30, 58, 0.5),
    0 10px 24px rgba(196, 30, 58, 0.42);
}
.tm-cat.active:not(:has(.tm-cat-icon))::before {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(160deg, var(--tm-lacquer-bright), var(--tm-lacquer-deep));
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(196, 30, 58, 0.5),
    0 10px 24px rgba(196, 30, 58, 0.42);
}
.tm-cat.active .tm-cat-label,
.tm-cat.active > span:first-child:not(.tm-cat-icon):not(.en) {
  color: var(--tm-rice);
  font-weight: 600;
}
.tm-cat.active .tm-cat-count,
.tm-cat.active .en {
  color: rgba(243, 233, 216, 0.55);
}
.tm-cat:active .tm-cat-icon,
.tm-cat:active:not(:has(.tm-cat-icon))::before {
  transform: scale(0.94);
}

/* ==========================================================================
   MENU SECTIONS
   ========================================================================== */

.tm-menu {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px;
  gap: 4px;
}

.tm-section {
  margin-top: 4px;
}

.tm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 18px 12px;
}

.tm-section-head h3,
.tm-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tm-gold);
}

/* Legacy section title (JS) */
.tm-section > .tm-section-title {
  margin: 18px 18px 12px;
}
.tm-section > .tm-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--tm-line), transparent);
}

.tm-section-head .tm-section-ico,
.tm-section-head svg {
  width: 16px;
  height: 16px;
  color: var(--tm-gold);
  opacity: 0.85;
  flex-shrink: 0;
}

.tm-view-all {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tm-lacquer);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}
.tm-view-all:hover { opacity: 0.8; }

/* Horizontal beverage rail */
.tm-section.is-rail .tm-rail,
.tm-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tm-rail::-webkit-scrollbar { display: none; }

.tm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 14px 8px;
}
.tm-grid .tm-tile {
  flex: none;
  width: 100%;
}

.tm-tile {
  flex: 0 0 156px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--tm-ink-soft);
  border: 1px solid rgba(243, 233, 216, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  position: relative;
}

.tm-tile-img,
.tm-tile > img,
.tm-tile-ph {
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: linear-gradient(145deg, #2a2218, #14110e);
  display: block;
}

.tm-tile-body {
  padding: 10px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}

.tm-tile-name {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tm-rice);
}

.tm-tile-desc {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--tm-smoke-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px 12px;
}

.tm-tile-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tm-gold);
}

.tm-tile .tm-add {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.tm-tile .tm-add .tm-step-inc {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.35);
}
.tm-tile .tm-add:not(.has-qty) .tm-step-add-label { display: none; }
.tm-tile .tm-add:not(.has-qty) .tm-step-add-plus { display: inline; }

/* Default list cards */
.tm-card,
.tm-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 14px;
  row-gap: 10px;
  align-items: start;
  margin: 0 14px 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(22, 19, 16, 0.92);
  border: 1px solid rgba(243, 233, 216, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, transform 0.15s var(--tm-ease), border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tm-card:active,
.tm-row:active {
  background: rgba(28, 24, 20, 0.98);
  border-color: rgba(212, 175, 55, 0.16);
  transform: scale(0.985);
}

.tm-card-img,
.tm-card > img,
.tm-card-ph,
.tm-row-thumb,
.tm-row-ph {
  grid-row: 1 / span 2;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(145deg, #2a2218, #1a1510);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.tm-card-main,
.tm-row-copy {
  min-width: 0;
  padding-right: 56px;
  grid-column: 2;
  grid-row: 1;
}

.tm-card-name,
.tm-row-copy strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--tm-rice);
  line-height: 1.2;
}

.tm-card-desc,
.tm-row-desc {
  display: -webkit-box;
  margin-top: 4px;
  color: rgba(243, 233, 216, 0.45);
  font-size: 0.74rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.tm-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(240, 230, 210, 0.18);
  background: rgba(240, 230, 210, 0.08);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tm-smoke-soft);
  line-height: 1;
  opacity: 1;
  animation: none;
  pointer-events: none;
}
.tm-badge.tm-veg,
.tm-badge.tm-spice {
  position: static;
  width: auto;
  height: auto;
  color: var(--tm-smoke-soft);
}
.tm-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.tm-badge.tm-veg {
  border-color: rgba(61, 155, 106, 0.45);
  background: rgba(61, 155, 106, 0.12);
  color: #7dcea0;
}
.tm-badge.tm-veg::before {
  background: #3d9b6a;
  box-shadow: 0 0 0 1.5px rgba(61, 155, 106, 0.35);
}
.tm-badge.tm-spice {
  border-color: rgba(196, 30, 58, 0.4);
  background: rgba(196, 30, 58, 0.12);
  color: #e8a0ab;
}
.tm-badge.tm-spice::before {
  background: var(--tm-lacquer);
  box-shadow: 0 0 0 1.5px rgba(196, 30, 58, 0.35);
}

.tm-card-price,
.tm-row-price {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tm-gold);
  white-space: nowrap;
}

/* Legacy row side column → absolute controls */
.tm-row-side {
  position: absolute;
  right: 12px;
  bottom: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.tm-row-side .tm-row-price {
  position: static;
}
.tm-row-side .tm-step {
  pointer-events: auto;
}

.tm-card-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: end;
}

/* Add / stepper */
.tm-add,
.tm-step {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(196, 30, 58, 0.3);
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.12);
  pointer-events: auto;
}

.tm-add-dec,
.tm-add-qty,
.tm-step-dec,
.tm-step-qty {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.6);
  transition: width 0.25s var(--tm-ease), opacity 0.2s ease, transform 0.25s var(--tm-ease);
}

.tm-add.has-qty .tm-add-dec,
.tm-step.has-qty .tm-step-dec { width: 32px; opacity: 1; transform: none; }
.tm-add.has-qty .tm-add-qty,
.tm-step.has-qty .tm-step-qty { width: 22px; opacity: 1; transform: none; }

.tm-add-dec,
.tm-step-dec {
  appearance: none;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tm-rice);
  font-size: 1.15rem;
  cursor: pointer;
}

.tm-add-qty,
.tm-step-qty {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tm-rice);
}

.tm-add-inc,
.tm-step-inc {
  appearance: none;
  height: 36px;
  min-width: 72px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--tm-lacquer);
  color: var(--tm-rice);
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.28);
}
.tm-add-inc:active,
.tm-step-inc:active { transform: scale(0.94); filter: brightness(1.08); }

.tm-add.has-qty .tm-add-inc,
.tm-step.has-qty .tm-step-inc {
  padding: 0;
  min-width: 32px;
  box-shadow: none;
}
.tm-add.has-qty .tm-add-label,
.tm-step.has-qty .tm-step-add-label { display: none; }

.tm-add-plus,
.tm-step-add-plus {
  display: none;
  font-size: 1.25rem;
  line-height: 1;
}
.tm-add.has-qty .tm-add-plus,
.tm-step.has-qty .tm-step-add-plus { display: inline; }

.tm-tile .tm-add.has-qty {
  border: 1px solid rgba(196, 30, 58, 0.35);
  background: rgba(196, 30, 58, 0.14);
  padding: 3px;
}

.tm-muted {
  color: var(--tm-smoke);
  font-size: 0.85rem;
  text-align: center;
  padding: 28px 16px;
}

/* ==========================================================================
   SPOTLIGHT — dish reel
   ========================================================================== */

.tm-spotlight {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--tm-ink);
  display: flex;
  flex-direction: column;
}
.tm-spotlight[hidden] { display: none !important; }

.tm-spot-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 233, 216, 0.2);
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.55);
  color: var(--tm-rice);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.tm-spot-close:hover { background: rgba(10, 9, 8, 0.75); }
.tm-spot-close svg { width: 18px; height: 18px; }

.tm-spot-counter {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  right: 16px;
  z-index: 4;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--tm-gold);
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--tm-line);
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tm-spot-track {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tm-spot-track::-webkit-scrollbar { display: none; }

.tm-dish {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.tm-dish-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.16);
  transition: transform 6.5s linear;
}
.tm-dish.is-active .tm-dish-photo { transform: scale(1); }
.tm-dish-photo.is-empty {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(196, 30, 58, 0.22), transparent 55%),
    radial-gradient(80% 60% at 90% 80%, rgba(212, 175, 55, 0.08), transparent 50%),
    linear-gradient(155deg, #201410 0%, #12100d 60%, #0a0908 100%);
}

.tm-dish-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(10, 9, 8, 0.4) 0%,
      transparent 28%,
      rgba(10, 9, 8, 0.55) 58%,
      var(--tm-ink) 100%
    );
}

.tm-dish-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 26px calc(40px + env(safe-area-inset-bottom));
}
.tm-dish-body > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.7s var(--tm-ease);
}
.tm-dish.is-active .tm-dish-body > * { opacity: 1; transform: none; }
.tm-dish.is-active .tm-dish-cat { transition-delay: 0.05s; }
.tm-dish.is-active .tm-dish-name { transition-delay: 0.12s; }
.tm-dish.is-active .tm-dish-desc { transition-delay: 0.2s; }
.tm-dish.is-active .tm-dish-foot { transition-delay: 0.28s; }

.tm-dish-cat {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  color: var(--tm-gold);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-dish-name {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--tm-rice);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.tm-dish-desc {
  margin: 14px 0 0;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 300;
  color: rgba(243, 233, 216, 0.78);
}

.tm-dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.tm-dish-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--tm-gold);
  white-space: nowrap;
}

.tm-dish-add {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(196, 30, 58, 0.35);
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tm-dish-dec,
.tm-dish-qty {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.6);
  transition: width 0.28s var(--tm-ease), opacity 0.2s ease, transform 0.28s var(--tm-ease);
}
.tm-dish-add.has-qty .tm-dish-dec { width: 42px; opacity: 1; transform: none; }
.tm-dish-add.has-qty .tm-dish-qty { width: 30px; opacity: 1; transform: none; }
.tm-dish-dec {
  appearance: none;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tm-rice);
  font-size: 1.4rem;
  cursor: pointer;
}
.tm-dish-qty {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tm-rice);
}
.tm-dish-inc {
  appearance: none;
  height: 42px;
  min-width: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--tm-lacquer);
  color: var(--tm-rice);
  font-family: "Jost", sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}
.tm-dish-add.has-qty .tm-dish-inc { padding: 0; }
.tm-dish-add.has-qty .tm-dish-add-label { display: none; }
.tm-dish-add-plus { display: none; font-size: 1.5rem; line-height: 1; }
.tm-dish-add.has-qty .tm-dish-add-plus { display: inline; }

/* ==========================================================================
   DOCK — cart + checkout bar
   ========================================================================== */

.tm-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: var(--tm-dock-h);
  padding: 0 0 env(safe-area-inset-bottom);
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, #4a1a22 0%, #2e1016 42%, #1a0a0e 100%);
  box-shadow:
    0 -12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(243, 233, 216, 0.08);
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  overflow: hidden;
}
.tm-dock[hidden] { display: none !important; }

.tm-dock-cart {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 18px;
  border: 0;
  background: transparent;
  color: var(--tm-rice);
  font-family: "Jost", sans-serif;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.tm-dock-cart:active { background: rgba(255, 255, 255, 0.04); }

.tm-dock-bag {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(243, 233, 216, 0.08);
  color: var(--tm-rice);
  flex-shrink: 0;
}
.tm-dock-bag em,
.tm-dock-bag #tm-fab-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tm-gold);
  color: var(--tm-ink);
  font-family: "Jost", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  font-style: normal;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tm-dock-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tm-dock-meta strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tm-rice);
}
.tm-dock-meta span {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(243, 233, 216, 0.55);
  letter-spacing: 0.02em;
}

.tm-dock-checkout {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 10px 10px 0;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--tm-lacquer-bright), var(--tm-lacquer-deep));
  color: var(--tm-rice);
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(196, 30, 58, 0.4);
  transition: filter 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.tm-dock-checkout strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}
.tm-dock-checkout svg {
  opacity: 0.9;
  flex-shrink: 0;
}
.tm-dock-checkout:hover { filter: brightness(1.06); }
.tm-dock-checkout:active { transform: scale(0.97); }

/* Legacy FAB (if any) */
.tm-fab {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 0.9rem 1.45rem;
  background: linear-gradient(180deg, var(--tm-lacquer-bright), var(--tm-lacquer-deep));
  color: var(--tm-rice);
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 32px rgba(196, 30, 58, 0.4);
  cursor: pointer;
}
.tm-fab[hidden] { display: none !important; }
.tm-fab span {
  display: inline-block;
  min-width: 1.4em;
  margin-right: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--tm-gold);
  color: var(--tm-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   CART SHEET
   ========================================================================== */

.tm-cart {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.tm-cart[hidden] { display: none !important; }

.tm-cart-sheet {
  width: min(100%, 430px);
  max-height: 84dvh;
  overflow: auto;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(42, 26, 20, 0.5), transparent 60%),
    var(--tm-ink-soft);
  color: var(--tm-rice);
  border: 1px solid var(--tm-line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
  animation: tm-sheet-up 0.45s var(--tm-ease);
  scrollbar-width: thin;
}

@keyframes tm-sheet-up {
  from { transform: translateY(40px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

.tm-cart-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(243, 233, 216, 0.22);
  margin: 4px auto 12px;
}

.tm-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.tm-cart-head strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.tm-link {
  appearance: none;
  border: 0;
  background: none;
  color: var(--tm-gold);
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.tm-link:hover { opacity: 0.75; }

.tm-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.tm-cart-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.tm-cart-line:last-child { border-bottom: 0; }
.tm-cart-line strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.tm-cart-line .qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tm-cart-line button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(196, 30, 58, 0.4);
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.14);
  color: var(--tm-rice);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease;
}
.tm-cart-line button:active { background: rgba(196, 30, 58, 0.28); }

.tm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--tm-smoke);
}
.tm-field input {
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: "Jost", sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tm-rice);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tm-field input::placeholder { color: rgba(243, 233, 216, 0.28); }
.tm-field input:focus {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.tm-field em {
  font-style: normal;
  font-weight: 400;
  color: rgba(243, 233, 216, 0.4);
  font-size: 0.72rem;
}

.tm-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 14px;
  padding-top: 4px;
}
.tm-total-row span {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tm-smoke);
}
.tm-total-row strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--tm-gold);
}

.tm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tm-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 0.75rem;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.tm-btn:active { transform: scale(0.98); }
.tm-btn-primary {
  background: linear-gradient(180deg, var(--tm-lacquer-bright), var(--tm-lacquer-deep));
  color: var(--tm-rice);
  box-shadow: 0 8px 20px rgba(196, 30, 58, 0.32);
}
.tm-btn-primary:hover { filter: brightness(1.05); }
.tm-btn-secondary {
  background: transparent;
  color: var(--tm-rice);
  border: 1px solid var(--tm-line);
}
.tm-btn-secondary:hover { background: rgba(212, 175, 55, 0.06); }
.tm-btn[hidden] { display: none !important; }
.tm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   TOAST + SUCCESS
   ========================================================================== */

.tm-toast {
  position: fixed;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--tm-ink-soft);
  color: var(--tm-rice);
  border: 1px solid var(--tm-line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.85rem;
  max-width: 90vw;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.tm-toast[hidden] { display: none !important; }

.tm-success {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(42, 26, 20, 0.55), transparent 65%),
    rgba(10, 9, 8, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tm-success[hidden] { display: none; }

.tm-success-inner {
  width: min(100%, 360px);
  text-align: center;
}

.tm-success-check {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 18px rgba(34, 160, 90, 0.28));
  transform: scale(0.4);
  opacity: 0;
}
.tm-success-ring { fill: #22a05a; stroke: none; }
.tm-success-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.tm-success-title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--tm-rice);
  opacity: 0;
  transform: translateY(10px);
}

.tm-success-sub {
  margin: 0 auto 22px;
  max-width: 32ch;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 300;
  color: var(--tm-smoke);
  opacity: 0;
  transform: translateY(10px);
}

.tm-kot-card {
  text-align: left;
  background: var(--tm-ink-lift);
  border: 1px solid var(--tm-line-soft);
  border-radius: var(--tm-radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(18px);
}
.tm-kot-head {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tm-gold);
}
.tm-kot-items { display: flex; flex-direction: column; gap: 8px; }
.tm-kot-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--tm-rice);
}
.tm-kot-qty {
  flex-shrink: 0;
  min-width: 2.2ch;
  font-weight: 700;
  color: var(--tm-gold);
}
.tm-kot-bill {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--tm-smoke);
}
.tm-kot-bill strong { color: var(--tm-rice); }

.tm-success-done {
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
}

.tm-success.is-in .tm-success-check {
  animation: tm-check-pop 0.55s cubic-bezier(0.22, 1.35, 0.36, 1) forwards;
}
.tm-success.is-in .tm-success-tick {
  animation: tm-tick-draw 0.4s ease 0.28s forwards;
}
.tm-success.is-in .tm-success-title {
  animation: tm-fade-up 0.4s ease 0.22s forwards;
}
.tm-success.is-in .tm-success-sub {
  animation: tm-fade-up 0.4s ease 0.32s forwards;
}
.tm-success.is-in .tm-kot-card {
  animation: tm-fade-up 0.45s ease 0.42s forwards;
}
.tm-success.is-in .tm-success-done {
  animation: tm-fade-up 0.4s ease 0.55s forwards;
}

@keyframes tm-check-pop {
  0% { transform: scale(0.35); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes tm-tick-draw { to { stroke-dashoffset: 0; } }
@keyframes tm-fade-up { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .tm-cover-photo,
  .tm-stage.is-open .tm-cover,
  .tm-stage.is-opening .tm-browse,
  .tm-vert-menu,
  .tm-table-chip,
  .tm-seal,
  .tm-seal-ring,
  .tm-cover-rule,
  .tm-logo,
  .tm-cover-title,
  .tm-cover-en,
  .tm-tagline,
  .tm-cover-cta,
  .tm-cover-hint,
  .tm-cart-sheet,
  .tm-success.is-in .tm-success-check,
  .tm-success.is-in .tm-success-tick,
  .tm-success.is-in .tm-success-title,
  .tm-success.is-in .tm-success-sub,
  .tm-success.is-in .tm-kot-card,
  .tm-success.is-in .tm-success-done {
    animation: none !important;
  }

  .tm-vert-menu,
  .tm-table-chip,
  .tm-seal,
  .tm-cover-rule,
  .tm-logo,
  .tm-cover-title,
  .tm-cover-en,
  .tm-tagline,
  .tm-cover-cta,
  .tm-cover-hint,
  .tm-success-check,
  .tm-success-title,
  .tm-success-sub,
  .tm-kot-card,
  .tm-success-done {
    opacity: 1 !important;
    transform: none !important;
  }

  .tm-seal {
    transform: translate(-50%, -50%) rotate(-8deg) !important;
  }
  .tm-success-tick { stroke-dashoffset: 0 !important; }

  .tm-dish-photo {
    transform: scale(1) !important;
    transition: none !important;
  }
  .tm-dish-body > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .tm-add-dec,
  .tm-add-qty,
  .tm-step-dec,
  .tm-step-qty,
  .tm-dish-dec,
  .tm-dish-qty {
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 420px) {
  .tm-browse { max-width: 460px; }
  .tm-cover-title { font-size: clamp(2.6rem, 8vw, 3.6rem); }
  .tm-seal { width: 96px; height: 96px; font-size: 2rem; }
  .tm-card,
  .tm-row { grid-template-columns: 80px 1fr; }
  .tm-card-img,
  .tm-card > img,
  .tm-row-thumb,
  .tm-row-ph {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
  .tm-cat-icon,
  .tm-cat:not(:has(.tm-cat-icon))::before {
    width: 68px;
    height: 68px;
  }
  .tm-tile { flex-basis: 158px; }
}

@media (min-width: 768px) {
  .tm-browse {
    max-width: 480px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .tm-dock {
    left: 50%;
    right: auto;
    width: min(480px, 100%);
    transform: translateX(-50%);
    border-radius: 22px 22px 0 0;
  }
  .tm-cart-sheet { width: min(100%, 480px); }
  .tm-add-inc,
  .tm-step-inc {
    height: 40px;
    min-width: 78px;
  }
  .tm-brand-main { font-size: 2.45rem; }
  .tm-brand-script { font-size: 2.2rem; }
}
