:root {
  color-scheme: light;
  --cream: #fbf8f3;
  --ink: #292621;
  --muted: #776f65;
  --orange: #b94625;
  --orange-soft: #f8e9df;
  --border: #e8e1d8;
  font-family:
    'Be Vietnam Pro',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--orange);
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  background: #f7eee5;
  border-color: #d4b9a5;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.primary {
  color: white;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 6px 16px #b9462517;
}
.primary:hover {
  color: #fff;
  background: #9e3619;
  border-color: #9e3619;
}
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon-button {
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: transparent;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: #fff;
  padding: 12px;
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
.app {
  max-width: 1120px;
  padding: 0 36px;
  margin: auto;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: white;
  background: var(--orange);
  transform: rotate(-7deg);
}
.brand-mark .icon {
  width: 23px;
  height: 23px;
  transform: rotate(7deg);
}
.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.tools {
  display: flex;
  gap: 8px;
}
.intro {
  padding: 42px 0 24px;
}
.intro-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--orange);
  line-height: 1.7;
}
h1 {
  margin: 12px 0 8px;
  font-size: clamp(32px, 4.3vw, 47px);
  line-height: 1.3;
  letter-spacing: -2px;
  font-weight: 700;
}
p {
  line-height: 1.75;
  color: var(--muted);
}
.intro p {
  font-size: 14px;
  margin: 0;
}
.offline-status {
  font-size: 10px;
  background: #eee8db;
  color: #635232;
  padding: 3px 7px;
  border-radius: 5px;
}
.modes {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}
.modes button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 11px 23px;
}
.modes button[aria-pressed='true'] {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #ebc8b5;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 35px #5d341006;
}
.hero-copy {
  padding: 35px;
  align-self: center;
  min-width: 0;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 600;
}
.feature-tag .icon {
  width: 15px;
  height: 15px;
}
.hero h2 {
  font-size: 33px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 16px 0 12px;
}
.hero-copy p {
  font-size: 13px;
  margin: 0 0 18px;
}
.hero-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}
.price {
  color: var(--orange);
  font-weight: 600;
}
.hero-price .price {
  font-size: 17px;
}
.note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.hero-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.photo-caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid #ffffff50;
  border-radius: 30px;
  color: white;
  background: #2d271e99;
  font-size: 10px;
  backdrop-filter: blur(5px);
}
.find-featured {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 44px;
  font-size: 12px;
  color: var(--orange);
  margin-top: 16px;
}
.find-featured:hover {
  background: transparent;
  text-decoration: underline;
}
.find-featured .icon {
  width: 16px;
  height: 16px;
}
.choose {
  padding: 22px 0 36px;
}
.actions {
  display: flex;
  gap: 10px;
}
.choose .actions button {
  flex: 1;
}
.choose .actions .primary {
  flex: 1.35;
}
.choose-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.unique {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  min-height: 28px;
}
.unique input {
  accent-color: var(--orange);
  width: 17px;
  height: 17px;
  margin: 0;
}
.combo-note {
  font-size: 10px;
  color: var(--muted);
}
.menu-section {
  border-top: 1px solid var(--border);
  padding-top: 35px;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-heading h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin: 7px 0 18px;
  line-height: 1.4;
}
.collection-toggle {
  min-height: 42px;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 30px;
  background: #fff;
  white-space: nowrap;
}
.collection-toggle .icon {
  width: 16px;
  height: 16px;
}
.collection-toggle[aria-pressed='true'] {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: #d9ad94;
}
.progress {
  height: 4px;
  border-radius: 3px;
  background: #e8e1d8;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--orange);
}
#collectionNote {
  margin: 10px 0 20px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 14px;
  background: var(--card-bg, #ffffff);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #9a9084;
}
.search-wrap:focus-within {
  border-color: var(--orange);
}
.search-wrap input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  color: var(--ink);
  font-size: 13px;
  border: 0;
  background: transparent;
  outline: none;
}
.search-wrap input::-webkit-search-cancel-button {
  display: none;
}
.search-wrap .icon-button {
  border: 0;
  min-width: 44px;
}
.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 18px 0 9px;
  scrollbar-width: thin;
}
.filters button {
  font-size: 11px;
  padding: 9px 15px;
  min-height: 40px;
  border-radius: 30px;
  white-space: nowrap;
  background: transparent;
}
.filters button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.menu-status {
  font-size: 11px;
  margin: 8px 0 16px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.dish-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  gap: 0;
  min-width: 0;
  text-align: left;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  background: var(--card-bg, #ffffff);
  color: var(--ink);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.dish-card:hover {
  background: var(--card-bg, #ffffff);
  color: var(--ink);
  box-shadow: 0 9px 24px #4c2e1010;
  transform: translateY(-2px);
}
.dish-thumb {
  display: block;
  position: relative;
}
.dish-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.dish-thumb .dish-source {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: #ffffffed;
  border-radius: 20px;
  font-size: 9px;
  color: #4d443c;
}
.dish-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  flex: 1;
}
.dish-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.dish-body .price {
  font-size: 11px;
  margin-top: auto;
  line-height: 1.6;
}
.dish-source {
  font-size: 10px;
  color: var(--muted);
}
.collected,
.uncollected {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  font-weight: 400;
  color: #82796e;
}
.collected {
  color: #527153;
}
.collected .icon {
  width: 12px;
  height: 12px;
}
.load-more {
  display: flex;
  margin: 25px auto 0;
  padding: 12px 25px;
  font-size: 12px;
}
.maps-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f0e9dc;
  border-radius: 20px;
  padding: 22px;
  margin: 40px 0;
}
.callout-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 15px;
  background: var(--card-bg, #ffffff);
  color: var(--ink);
  color: var(--orange);
  flex-shrink: 0;
}
.maps-callout strong {
  font-size: 13px;
}
.maps-callout p {
  font-size: 11px;
  margin: 6px 0 0;
}
.maps-callout > .icon {
  margin-left: auto;
  color: var(--muted);
}
footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding: 27px 0 30px;
  font-size: 10px;
  color: var(--muted);
}
.footer-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.legal-links {
  display: flex;
  gap: 15px;
  margin-left: auto;
}
.legal-links a {
  color: var(--muted);
}
.mobile-nav {
  display: none;
}
dialog {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  width: min(880px, calc(100% - 32px));
  max-height: calc(100dvh - 36px);
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #29231e80;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  position: sticky;
  top: -24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
  margin: -8px 0 10px;
  background: var(--cream);
}
.dialog-heading h2 {
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.5px;
  margin: 5px 0 0;
}
.dialog-heading > button {
  flex-shrink: 0;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.result-grid.single {
  grid-template-columns: 1fr;
  max-width: 460px;
  margin: auto;
}
.result-card {
  background: var(--card-bg, #ffffff);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}
.result-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.result-card h3 {
  font-size: 21px;
  margin: 0;
  line-height: 1.5;
}
.result-card p {
  font-size: 12px;
  margin: 0;
}
.result-card blockquote {
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  margin: 3px 0;
}
.result-actions {
  margin-top: 22px;
  justify-content: center;
}
.nearby-panel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.nearby-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.nearby-heading h3 {
  margin: 7px 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.google-attribution {
  height: 18px;
  width: auto;
  margin: 10px 0 5px 10px;
}
.places-status {
  font-size: 12px;
  margin: 12px 0;
}
.maps-dish-links {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.maps-dish-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  min-height: 48px;
  background: #fff;
  border: 1px solid #debaa3;
  border-radius: 14px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.7;
}
.maps-dish-link span {
  flex: 1;
}
.maps-dish-link:hover {
  background: var(--orange-soft);
}
.compact-dialog {
  max-width: 480px;
}
.compact-dialog p,
.install-steps {
  font-size: 13px;
  line-height: 1.9;
}
.compact-dialog > .primary {
  width: 100%;
  margin-top: 14px;
}
#shareUrl {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg, #ffffff);
  color: var(--ink);
  padding: 14px;
  color: var(--ink);
  font-size: 13px;
}
.install-steps {
  padding-left: 22px;
  color: var(--muted);
}
.install-steps li {
  padding: 5px 0;
}
.reel-viewport {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f0e5d8;
}
.reel-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 20px 0;
  will-change: transform;
}
.reel-card {
  width: 130px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--card-bg, #ffffff);
  color: var(--ink);
  overflow: hidden;
  border: 1px solid var(--border);
}
.reel-card img {
  width: 130px;
  height: 125px;
  object-fit: cover;
}
.reel-card span {
  display: block;
  padding: 10px;
  font-size: 11px;
}
.needle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  z-index: 1;
}
.needle:before {
  content: '';
  position: absolute;
  top: 0;
  left: -7px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--orange);
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: #292621;
  color: white;
  padding: 13px 20px;
  border-radius: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
}
#toast.show {
  opacity: 1;
}
.legal-page {
  max-width: 760px;
  padding-top: 30px;
  padding-bottom: 45px;
}
.legal-page h1 {
  font-size: 34px;
}
.legal-page h2 {
  font-size: 22px;
  margin-top: 28px;
}
.legal-page li {
  line-height: 1.8;
  color: var(--muted);
}
@media (min-width: 601px) and (max-width: 1000px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-copy {
    padding: 25px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero-photo img {
    min-height: 350px;
  }
  .combo-note {
    display: none;
  }
}
@media (max-width: 600px) {
  :root {
    scroll-padding-top: 12px;
  }
  .app {
    padding: 0 18px;
  }
  .header {
    padding: 16px 0;
  }
  .brand {
    gap: 9px;
    font-size: 19px;
    letter-spacing: -0.6px;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }
  .brand-mark .icon {
    width: 21px;
    height: 21px;
  }
  .brand-sub {
    font-size: 8px;
    margin-top: 4px;
  }
  .tools {
    gap: 3px;
  }
  .tools .icon-button {
    border: 0;
    min-width: 44px;
    min-height: 44px;
  }
  .tools .icon {
    width: 18px;
    height: 18px;
  }
  .intro {
    padding: 26px 0 19px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1.4px;
    margin: 10px 0 8px;
  }
  .intro p {
    font-size: 11px;
    line-height: 1.8;
  }
  .intro .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .modes {
    gap: 6px;
    margin-bottom: 20px;
  }
  .modes button {
    flex: 1;
    padding: 10px 8px;
    min-height: 44px;
    font-size: 11px;
    gap: 7px;
    border-radius: 12px;
  }
  .modes .icon {
    width: 17px;
    height: 17px;
  }
  .hero {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .hero-photo {
    grid-row: 1;
  }
  .hero-photo img {
    min-height: 0;
    height: 170px;
    aspect-ratio: auto;
  }
  .photo-caption {
    font-size: 8px;
    bottom: 10px;
    left: 12px;
    padding: 5px 9px;
  }
  .hero-copy {
    padding: 18px 19px 12px;
  }
  .feature-tag {
    font-size: 8px;
    gap: 5px;
  }
  .feature-tag .icon {
    width: 12px;
    height: 12px;
  }
  .hero h2 {
    font-size: 25px;
    margin: 10px 0 8px;
  }
  .hero-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.8;
    margin-bottom: 10px;
  }
  .hero-price .price {
    font-size: 14px;
  }
  .hero-price .note {
    font-size: 9px;
  }
  .find-featured {
    font-size: 10px;
    min-height: 40px;
    margin-top: 5px;
  }
  .find-featured .icon {
    width: 14px;
    height: 14px;
  }
  .choose {
    padding: 16px 0 26px;
  }
  .choose .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .choose .actions button {
    font-size: 12px;
    min-height: 46px;
    padding: 11px 12px;
  }
  .choose .actions .primary {
    grid-column: 1/-1;
    min-height: 49px;
  }
  .choose-meta {
    justify-content: center;
    margin-top: 11px;
  }
  .unique {
    font-size: 10px;
  }
  .combo-note {
    display: none;
  }
  .menu-section {
    padding-top: 25px;
  }
  .section-heading h2 {
    font-size: 21px;
    letter-spacing: -0.7px;
    margin-bottom: 15px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .collection-toggle {
    min-height: 44px;
    font-size: 10px;
    padding: 9px 11px;
    gap: 6px;
  }
  #collectionNote {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .search-wrap {
    padding-left: 12px;
  }
  .search-wrap input {
    font-size: 16px;
    min-height: 48px;
  }
  .search-wrap input::placeholder {
    font-size: 11px;
  }
  .filters {
    padding-top: 14px;
  }
  .filters button {
    font-size: 10px;
    min-height: 44px;
    padding: 9px 13px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .dish-card {
    border-radius: 15px;
  }
  .dish-body {
    padding: 12px 11px;
    gap: 8px;
  }
  .dish-name {
  color: var(--ink);
    font-size: 12px;
  }
  .dish-body .price {
    font-size: 10px;
  }
  .dish-thumb .dish-source {
    top: 8px;
    left: 8px;
    font-size: 8px;
    padding: 4px 6px;
  }
  .collected,
  .uncollected {
    font-size: 8px;
  }
  .menu-status {
    font-size: 10px;
  }
  .maps-callout {
    padding: 18px;
    gap: 12px;
    margin: 28px 0;
  }
  .maps-callout strong {
    font-size: 11px;
    line-height: 1.6;
  }
  .maps-callout p {
    font-size: 10px;
  }
  .maps-callout > .icon {
    display: none;
  }
  footer {
    padding: 20px 0 calc(95px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  footer > span {
    font-size: 9px;
  }
  .legal-links {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
    background: #fffefaed;
    backdrop-filter: blur(14px);
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  }
  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 49px;
    min-width: 0;
    color: var(--muted);
    border: 0;
    padding: 6px;
    background: transparent;
    text-decoration: none;
    font-size: 9px;
    border-radius: 10px;
    font-weight: 400;
  }
  .mobile-nav [aria-current='page'] {
    color: var(--orange);
    background: var(--orange-soft);
  }
  .mobile-nav .icon {
    width: 20px;
    height: 20px;
  }
  #toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    max-height: 92dvh;
  }
  .dialog-heading {
    top: -20px;
    margin-top: -5px;
    padding-top: 8px;
  }
  .dialog-heading h2 {
    font-size: 18px;
  }
  .dialog-heading .eyebrow {
    font-size: 8px;
  }
  #skipBtn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .result-card > img {
    max-height: 200px;
  }
  .result-card h3 {
    font-size: 20px;
  }
  .result-actions {
    flex-direction: column;
  }
  .result-actions button {
    width: 100%;
  }
  .nearby-heading h3 {
    font-size: 18px;
  }
  .google-attribution {
    height: 16px;
    margin-left: 0;
  }
  .compact-dialog {
    max-width: 100%;
  }
}
@media (max-width: 350px) {
  .app {
    padding: 0 14px;
  }
  .brand-sub {
    display: none;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .tools .icon-button {
    min-width: 44px;
  }
  .hero-copy {
    padding-left: 15px;
    padding-right: 15px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 600px) {
  #shareUrl {
    font-size: 16px;
  }
}
.budget-panel {
  margin: -7px 0 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
}
.budget-panel summary {
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  min-height: 48px;
}
.budget-panel summary strong {
  font-size: 11px;
  color: var(--orange);
}
.budget-content {
  border-top: 1px solid var(--border);
  padding: 16px;
}
.budget-content > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
.budget-input-row {
  display: flex;
  gap: 8px;
}
#budgetInput {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  color: var(--ink);
}
#budgetInput[aria-invalid='true'] {
  border-color: #a72c1a;
}
.budget-input-row button {
  font-size: 11px;
  white-space: nowrap;
  padding: 10px 12px;
}
.budget-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.budget-presets button {
  font-size: 11px;
  min-height: 44px;
  padding: 8px 12px;
}
.budget-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.budget-status {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.7;
}
.budget-status[aria-busy='true'] {
  color: var(--orange);
}
.hero[data-empty='true'] .hero-photo {
  background: var(--orange-soft);
}
.hero[data-empty='true'] .hero-photo img {
  object-fit: contain;
  padding: 45px;
  opacity: 0.7;
}
.result-cost {
  padding: 15px 18px;
  margin-top: 18px;
  background: var(--orange-soft);
  border-radius: 14px;
}
.result-cost > strong {
  font-size: 15px;
}
.result-cost p {
  margin: 8px 0 0;
}
@media (max-width: 600px) {
  .budget-panel summary {
    font-size: 11px;
  }
  .budget-panel summary strong {
    font-size: 10px;
  }
  .budget-content {
    padding: 14px;
  }
  .budget-status {
    font-size: 10px;
  }
}
.image-note {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 5px 0;
}
.photo-credits {
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.9;
}
.photo-credits li {
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.illustration-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff9ef;
  color: #65513d;
  font-size: 9px;
}

/* Shared motion language: tactile controls, quiet depth, quick transitions. */
button,
.mobile-nav a,
.maps-dish-link {
  position: relative;
  isolation: isolate;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease;
}
button:not(.dish-card) {
  overflow: hidden;
}
button:disabled {
  cursor: not-allowed;
  box-shadow: none;
}
button.is-pressing:not(:disabled),
button:active:not(:disabled) {
  transform: translateY(1px) scale(0.975);
}
.primary {
  background-image: linear-gradient(140deg, #ffffff0b, transparent 65%);
  box-shadow:
    0 4px 8px #ad432515,
    0 10px 24px #ad43251a,
    inset 0 1px 0 #ffffff26;
}
.modes button[aria-pressed='true'] {
  box-shadow:
    0 2px 5px #a14c0c08,
    inset 0 1px 0 #fff9;
}
.filters button[aria-pressed='true'] {
  box-shadow: 0 4px 10px #29262116;
}
.search-wrap,
#budgetInput {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.search-wrap:focus-within,
#budgetInput:focus {
  box-shadow: 0 0 0 4px #b946250d;
}
.progress > div {
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.dish-thumb {
  overflow: hidden;
}
.dish-thumb img,
.hero-photo img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.result-card {
  border-radius: 18px;
  overflow: hidden;
}
.budget-status[aria-busy='true']::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  vertical-align: -1px;
  border: 1.5px solid #e7c1af;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: budget-turn 0.7s linear infinite;
}
@keyframes budget-turn {
  to {
    transform: rotate(360deg);
  }
}
dialog::backdrop {
  background: #241a1459;
  backdrop-filter: blur(5px);
}
.mobile-nav {
  box-shadow: 0 -5px 30px #492c0b08;
}
.mobile-nav a,
.mobile-nav button {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.18s ease;
}
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled):not(.icon-button):not(.dish-card):not(.find-featured) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px #4b2b1110;
  }
  .primary:hover:not(:disabled) {
    box-shadow: 0 7px 20px #ad43252b;
  }
  .dish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #4c2e1017;
  }
  .dish-card:hover img {
    transform: scale(1.045);
  }
  .tools .icon-button:hover {
    transform: translateY(-2px);
  }
  .find-featured:hover .icon:last-child {
    transform: translate(2px, -2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  button.is-pressing,
  button:active:not(:disabled),
  .dish-card:hover,
  .dish-card:hover img {
    transform: none !important;
  }
}
/* Keep horizontal pill navigation scrollable when ripple clipping is enabled. */
.filters button,
.modes button,
.budget-presets button,
.budget-input-row button,
.collection-toggle {
  flex-shrink: 0;
}
.menu-empty {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
}
.menu-empty p {
  margin: 0 0 14px;
}
.menu-empty button {
  font-size: 12px;
  margin: 4px 6px 0 0;
}
.budget-preview-note {
  padding: 13px 16px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 8px;
  font-size: 12px;
}
.offline-readiness {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.maps-callout {
  text-decoration: none;
  color: var(--ink);
}
.maps-callout:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 12px;
}
#budgetHelp,
.result-cost .note {
  font-size: 12px;
}
@media (max-width: 600px) {
  .intro {
    padding-top: 28px;
  }
  .hero-photo img {
    min-height: 0;
    max-height: 185px;
  }
  .hero-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
/* Signature controls: custom listboxes, check marks and restrained motion. */
:root {
  --control-surface: #fffdfb;
  --control-shadow: 0 8px 16px #3028200a, 0 24px 64px #3028201a;
}
:root[data-appearance='dark'] {
  --control-surface: #242a32;
  --control-shadow: 0 12px 38px #0007;
}
.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.custom-select select.select-source {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.custom-select-trigger {
  width: 100%;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 14px;
  text-align: left;
  background: var(--control-surface);
  border-color: var(--border);
  color: var(--ink);
  gap: 12px;
}
.custom-select-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.control-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  flex-shrink: 0;
  margin-right: 3px;
  transition: transform 0.18s ease;
  opacity: 0.65;
}
.custom-select-trigger[aria-expanded='true'] {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 12%, transparent);
}
.custom-select-trigger[aria-expanded='true'] .control-chevron {
  transform: translateY(2px) rotate(225deg);
}
.custom-select-list {
  position: fixed;
  z-index: 80;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--control-surface);
  color: var(--ink);
  box-shadow: var(--control-shadow);
  scrollbar-width: thin;
  transform-origin: top center;
}
.custom-select-list [role='option'] {
  position: relative;
  padding: 12px 38px 12px 12px;
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
  transition:
    background-color 0.14s ease,
    color 0.14s ease;
}
.custom-select-list [role='option'][data-active],
.custom-select-list [role='option']:hover {
  background: var(--orange-soft);
}
.custom-select-list [aria-selected='true'] {
  color: var(--orange);
  font-weight: 600;
}
.custom-select-list [aria-selected='true']::after {
  content: '';
  position: absolute;
  right: 15px;
  width: 6px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.custom-select-list [aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
}
.personal-view .custom-select {
  max-width: 340px;
}
.unique input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1.5px solid var(--muted);
  border-radius: 7px;
  background: var(--control-surface);
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.unique input[type='checkbox']::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg) scale(0.4);
  opacity: 0;
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease;
}
.unique input[type='checkbox']:checked {
  background: var(--orange);
  border-color: var(--orange);
}
.unique input[type='checkbox']:checked::after {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}
:root[data-appearance='dark'] .unique input[type='checkbox']::after {
  border-color: #211b17;
}
.unique input:disabled {
  opacity: 0.45;
  cursor: wait;
}
.disclosure-body {
  min-width: 0;
}
.dish-more summary,
.personal-more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.dish-more summary::-webkit-details-marker,
.personal-more summary::-webkit-details-marker {
  display: none;
}
.dish-more summary::before,
.personal-more summary::before {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.dish-more[open] > summary::before,
.personal-more[open] > summary::before {
  transform: rotate(45deg) translateY(-2px);
}
button.is-pressing:not(:disabled),
button:active:not(:disabled) {
  transform: translateY(1px) scale(0.986);
}
.reel-viewport {
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reel-card {
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.reel-card.reel-card-mystery {
  width: 130px;
  height: 165px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #121826, #1e293b);
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-card-back {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  user-select: none;
}
.reel-card-pattern {
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  pointer-events: none;
}
.reel-card-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
  margin-bottom: 6px;
  animation: reelPulse 1.6s ease-in-out infinite alternate;
}
.reel-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  margin-bottom: 2px;
}
.reel-card-q {
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}
@keyframes reelPulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; }
}
.reel-card[data-winner='true'] {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.6), 0 0 20px rgba(245, 158, 11, 0.5);
}
@supports (transition-behavior: allow-discrete) {
  dialog {
    opacity: 0;
    transition:
      opacity 0.14s ease,
      display 0.14s allow-discrete,
      overlay 0.14s allow-discrete;
  }
  dialog[open] {
    opacity: 1;
  }
  dialog::backdrop {
    opacity: 0;
    transition:
      opacity 0.14s ease,
      display 0.14s allow-discrete,
      overlay 0.14s allow-discrete;
  }
  dialog[open]::backdrop {
    opacity: 1;
  }
  @starting-style {
    dialog[open]::backdrop {
      opacity: 0;
    }
  }
}
@media (max-width: 600px) {
  .personal-view .custom-select {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .control-chevron,
  .custom-select-list [role='option'],
  .unique input[type='checkbox'],
  .unique input[type='checkbox']::after,
  .dish-more summary::before,
  .personal-more summary::before,
  dialog,
  dialog::backdrop {
    transition: none !important;
  }
}

.custom-select-list {
  scrollbar-color: var(--border) transparent;
}
.custom-select-list::-webkit-scrollbar {
  width: 6px;
}
.custom-select-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
}
@media (forced-colors: active) {
  .unique input[type='checkbox']:checked {
    background: Highlight;
    forced-color-adjust: none;
  }
  .unique input[type='checkbox']:checked::after {
    border-color: HighlightText;
  }
}

.control-tooltip {
  position: fixed;
  z-index: 90;
  max-width: min(240px, calc(100vw - 24px));
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--control-surface);
  color: var(--ink);
  box-shadow: var(--control-shadow);
  font-size: 11px;
  line-height: 1.6;
  pointer-events: none;
}
.tools .icon-button.is-pressing:not(:disabled) {
  transform: translateY(1px) scale(0.986);
}

/* ==========================================================================
   3D Flip Card Animation (Emil Kowalski Spring Physics & TCG Aesthetic)
   ========================================================================== */
.flip-card {
  perspective: 1200px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  display: block;
  outline: none;
  border-radius: var(--radius-lg, 16px);
}

.flip-card:focus-visible {
  outline: 3px solid var(--accent, #f26419);
  outline-offset: 4px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 400px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.flip-card[data-flipped='true'] .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-back,
.flip-card-front {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
}

.flip-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, var(--surface-card, #232830), var(--surface, #14171c));
  border: 2px solid var(--accent-gold, #e5b158);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(229, 177, 88, 0.12);
  z-index: 2;
  min-height: 380px;
}

.card-back-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.card-back-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(229, 177, 88, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: cardPulse 3s ease-in-out infinite alternate;
}

@keyframes cardPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.card-back-symbol {
  font-size: 38px;
  line-height: 1;
  color: var(--accent-gold, #e5b158);
  filter: drop-shadow(0 2px 8px rgba(229, 177, 88, 0.5));
}

.card-back-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  margin-top: 4px;
}

.card-back-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9aa5b1;
  text-transform: uppercase;
}

.card-back-hint {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold, #e5b158);
  background: rgba(229, 177, 88, 0.15);
  border: 1px solid rgba(229, 177, 88, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: cardBounce 2s ease-in-out infinite;
}

@keyframes cardBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.flip-card-front {
  transform: rotateY(180deg);
  display: flex;
}

.flip-card-front .result-card {
  width: 100%;
  margin: 0;
}

/* Custom Wheel Styling */
.custom-wheel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--surface-card, #232830);
  border: 1.5px solid var(--accent, #f26419);
  color: var(--ink, #fff);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.custom-wheel-btn:hover {
  background: var(--surface-hover, #2c323c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 100, 25, 0.2);
}

.custom-wheel-btn:active {
  transform: translateY(1px) scale(0.98);
}

.custom-wheel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 16px;
}

.custom-wheel-desc {
  font-size: 13px;
  color: var(--muted, #9aa5b1);
  line-height: 1.5;
  margin: 0;
}

.custom-wheel-input-area textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface, #14171c);
  border: 1px solid var(--border, #333a44);
  color: var(--ink, #fff);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}

.custom-wheel-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--ink, #fff);
  font-size: 12px;
  cursor: pointer;
  min-height: 36px;
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.custom-wheel-count-info {
  font-size: 12px;
  color: var(--accent-gold, #e5b158);
  font-weight: 500;
}

.custom-wheel-spin-action {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}

/* ==========================================================================
   Add Custom Dish Form & UI
   ========================================================================== */
.menu-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.add-dish-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 10px;
  background: var(--surface-card, #232830);
  border: 1px solid var(--accent, #f26419);
  color: var(--accent, #f26419);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-dish-btn:hover {
  background: var(--accent, #f26419);
  color: #fff;
  transform: translateY(-1px);
}

.add-dish-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #fff);
}

.form-group .required {
  color: #e55353;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group input[type='text'],
.form-group input[type='number'],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface, #14171c);
  border: 1px solid var(--border, #333a44);
  color: var(--ink, #fff);
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input[type='file'] {
  font-size: 13px;
  color: var(--muted, #9aa5b1);
}

.image-preview-box {
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border, #333a44);
  margin-top: 6px;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-img {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* 08. Sub-filters for Drinks */
.drink-sub-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 12px;
  margin-top: 6px;
  margin-bottom: 8px;
}
.drink-sub-filters::-webkit-scrollbar {
  display: none;
}
.drink-sub-btn {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--surface-card, #1e242c);
  border: 1px solid var(--border, #333a44);
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-snap-align: start;
  min-height: 38px;
}
.drink-sub-btn:hover {
  border-color: var(--accent-gold, #e5b158);
  color: var(--text-primary, #f1f5f9);
}
.drink-sub-btn[aria-pressed="true"] {
  background: var(--accent-gold, #e5b158);
  color: #1a1a1a;
  border-color: var(--accent-gold, #e5b158);
  font-weight: 600;
}


/* ==========================================================================
   Custom Wheel Alert & Universe Dish Dialog
   ========================================================================== */
.custom-wheel-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  animation: wheelAlertShake 0.4s ease-in-out;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.custom-wheel-alert[hidden] {
  display: none !important;
}

@keyframes wheelAlertShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.custom-wheel-universe-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(56, 189, 248, 0.15));
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-weight: 600;
}

.custom-wheel-universe-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(56, 189, 248, 0.25));
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
}

/* Universe Dish Dialog Modal */
.universe-dish-dialog {
  width: min(680px, 94vw);
  max-height: 85vh;
  border-radius: 16px;
  padding: 20px;
  background: var(--surface-card, #1a202c);
  color: var(--ink, #fff);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.universe-dish-dialog[open] {
  display: flex;
}

.universe-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  margin-top: 10px;
}

.universe-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.universe-search-bar input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  background: var(--surface, #10141d);
  border: 1px solid var(--border, #2d3748);
  color: var(--ink, #fff);
  font-size: 14px;
  box-sizing: border-box;
}

.universe-search-icon {
  position: absolute;
  left: 12px;
  color: var(--muted, #94a3b8);
  pointer-events: none;
}

.universe-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.universe-tab {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: var(--muted, #94a3b8);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.universe-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink, #fff);
}

.universe-tab.active {
  background: var(--orange, #f26419);
  color: #fff;
  font-weight: 600;
}

.universe-quick-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 0 4px;
}

.universe-link-btn {
  background: none;
  border: none;
  color: var(--accent-gold, #38bdf8);
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  font-size: 12px;
}

.universe-divider {
  margin: 0 4px;
  color: var(--muted, #64748b);
}

.universe-selected-badge {
  color: var(--accent-gold, #f59e0b);
  font-weight: 600;
}

.universe-dish-list {
  flex: 1;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--border, #2d3748);
  background: rgba(0, 0, 0, 0.22);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 380px;
}

.universe-dish-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface, #1e2633);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.universe-dish-item:hover {
  background: var(--surface-hover, #2a3447);
  border-color: rgba(255, 255, 255, 0.15);
}

.universe-dish-item.selected {
  background: rgba(242, 100, 25, 0.15);
  border-color: rgba(242, 100, 25, 0.6);
}

.universe-dish-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--orange, #f26419);
  cursor: pointer;
  flex-shrink: 0;
}

.universe-dish-item img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.universe-dish-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  gap: 2px;
}

.universe-dish-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink, #fff);
}

.universe-dish-meta {
  font-size: 11px;
  color: var(--muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.universe-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.price-disclaimer {
  display: block;
  font-size: 11px;
  font-style: italic;
  color: var(--muted, #94a3b8);
  margin-top: 4px;
}


/* ==========================================================================
   SEO Information Section & Structured Card UI
   ========================================================================== */
.seo-intro {
  margin: 48px auto 24px;
  padding: 28px 24px;
  border-radius: 18px;
  background: var(--surface-card, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 1040px;
  box-sizing: border-box;
}

.seo-intro-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--orange, #f26419);
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.seo-intro-content > p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted, #94a3b8);
  margin-bottom: 24px;
}

.seo-intro-content > p strong {
  color: var(--ink, #fff);
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.seo-feature-item {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface, rgba(0, 0, 0, 0.22));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.seo-feature-item:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 100, 25, 0.35);
}

.seo-feature-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.seo-feature-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #fff);
  margin-bottom: 6px;
}

.seo-feature-item p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted, #94a3b8);
  margin: 0;
}

/* Compact mobile composition. All selectors keep the existing feature/state IDs. */
.selection-options {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.selection-options .unique {
  min-height: 44px;
  font-size: 12px;
}
.selection-options .combo-note {
  display: block;
  font-size: 11px;
  margin: 6px 0;
  line-height: 1.7;
}
.offline-readiness {
  flex-basis: 100%;
  margin: 0;
}
.home-section > .budget-panel {
  margin-top: 0;
  margin-bottom: 28px;
}
.budget-panel summary::after {
  content: '+';
  font-size: 19px;
  line-height: 1;
  width: 18px;
  text-align: center;
  color: var(--muted);
}
.budget-panel[open] summary::after {
  content: '−';
}
.budget-panel summary > strong {
  margin-left: auto;
}
.budget-panel summary {
  gap: 8px;
}
.budget-panel summary:focus-visible,
.dish-more summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.dish-more {
  width: 100%;
  min-width: 0;
}
.dish-more summary {
  cursor: pointer;
  color: var(--orange);
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 0;
  min-height: 44px;
}
.dish-more p {
  margin: 4px 0 10px;
}
.dish-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
}
#resultDialog[open] {
  display: flex;
  flex-direction: column;
  height: min(800px, calc(100dvh - 36px));
  overflow: hidden;
}
#resultDialog .dialog-heading {
  position: static;
  flex: 0 0 auto;
  margin-bottom: 0;
  padding-bottom: 12px;
}
.result-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.result-cost {
  margin: 0 0 14px;
}
#resultDialog .result-actions {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.result-card .dish-body {
  gap: 7px;
}
.result-card .price {
  margin-top: 0;
}
@media (max-width: 600px) {
  .header {
    padding: 10px 0;
  }
  .brand-sub {
    display: none;
  }
  .intro {
    padding: 18px 0 14px;
  }
  .intro h1 {
    font-size: 28px;
    margin: 7px 0 0;
  }
  .intro > p {
    display: none;
  }
  .intro .eyebrow {
    font-size: 9px;
    letter-spacing: 0.65px;
  }
  .intro-kicker {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .modes {
    margin-bottom: 12px;
  }
  .modes button {
    font-size: 12px;
    padding: 8px 6px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 104px;
    border-radius: 17px;
    align-items: stretch;
  }
  .hero-photo {
    grid-row: auto;
  }
  .hero-photo img {
    height: 100%;
    min-height: 130px;
    max-height: none;
    aspect-ratio: auto;
  }
  .hero-copy {
    padding: 12px 14px 6px;
  }
  .feature-tag {
    font-size: 9px;
    letter-spacing: 0.4px;
  }
  .hero h2 {
    font-size: 19px;
    line-height: 1.35;
    margin: 5px 0;
    overflow-wrap: anywhere;
  }
  .hero-copy > p {
    display: none;
  }
  .hero-price {
    gap: 3px 7px;
  }
  .hero-price .price {
    font-size: 12px;
  }
  .hero-price .note {
    font-size: 10px;
  }
  .find-featured {
    min-height: 44px;
    font-size: 11px;
    margin-top: 2px;
    gap: 5px;
  }
  .find-featured .icon:last-child {
    display: none;
  }
  .photo-caption {
    bottom: 7px;
    left: 6px;
    right: 6px;
    font-size: 9px;
    line-height: 1.5;
    border-radius: 8px;
    padding: 4px 6px;
  }
  .choose {
    padding: 12px 0;
  }
  .choose .actions {
    gap: 8px;
  }
  .choose .actions button,
  .choose .actions .primary {
    min-height: 48px;
    font-size: 13px;
    padding: 10px;
  }
  .budget-status {
    margin: 9px 0 0;
    font-size: 11px;
    line-height: 1.6;
  }
  .home-section > .budget-panel {
    margin-bottom: 22px;
  }
  .budget-panel summary {
    padding: 12px;
    font-size: 12px;
  }
  .budget-panel summary > strong {
    font-size: 11px;
  }
  .budget-content {
    padding: 12px;
  }
  .budget-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .budget-presets button {
    min-width: 0;
    padding: 8px 3px;
    font-size: 10px;
  }
  .budget-options {
    display: grid;
    gap: 4px;
    font-size: 11px;
  }
  .budget-preview-note {
    margin: 12px 0 0;
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  #collectionNote {
    font-size: 11px;
    line-height: 1.6;
  }
  .dish-name {
    font-size: 13px;
  }
  .dish-body .price {
    font-size: 11px;
  }
  .collected,
  .uncollected {
    font-size: 10px;
  }
  .menu-status {
    font-size: 11px;
  }
  #resultDialog[open] {
    height: min(820px, calc(100dvh - 12px));
    max-height: calc(100dvh - 12px);
    padding: 16px 14px max(14px, env(safe-area-inset-bottom));
  }
  #resultDialog .dialog-heading {
    margin-top: 0;
    padding: 0 0 12px;
  }
  #resultDialog .dialog-heading .eyebrow {
    display: none;
  }
  #resultDialog .dialog-heading h2 {
    font-size: 19px;
    margin: 0;
  }
  .result-scroll {
    scrollbar-gutter: auto;
    padding: 0 1px;
  }
  .result-cost {
    padding: 12px;
  }
  .result-cost > strong {
    font-size: 13px;
    line-height: 1.6;
  }
  .result-grid {
    gap: 10px;
  }
  .result-grid:not(.single) .result-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
  }
  .result-grid:not(.single) .result-card > img {
    width: 78px;
    height: 104px;
    aspect-ratio: auto;
    border-radius: 12px;
    margin: 10px 0 0 8px;
  }
  .result-grid:not(.single) .dish-body {
    padding: 10px 12px 4px 16px;
    gap: 4px;
  }
  .result-grid:not(.single) h3 {
    font-size: 16px;
  }
  .result-card .price {
    font-size: 12px;
    line-height: 1.7;
  }
  .result-card .collected {
    font-size: 10px;
  }
  .result-grid.single .result-card > img {
    height: 160px;
    max-height: 160px;
    aspect-ratio: auto;
  }
  .result-grid.single .dish-body {
    padding: 14px;
  }
  .result-grid.single h3 {
    font-size: 21px;
  }
  .result-card .image-note {
    font-size: 10px;
    margin: 0;
  }
  .result-card .dish-more summary {
    font-size: 11px;
    padding: 11px 0;
  }
  .result-card .dish-more p {
    font-size: 12px;
    line-height: 1.8;
  }
  #resultDialog .result-actions {
    flex-direction: row;
    gap: 8px;
    padding-top: 12px;
  }
  #resultDialog .result-actions button {
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    font-size: 13px;
  }
  .nearby-panel {
    margin-top: 18px;
    padding-top: 12px;
  }
  .nearby-heading .eyebrow {
    display: none;
  }
  .nearby-heading h3 {
    font-size: 17px;
    margin: 4px 0;
  }
  .nearby-heading {
    gap: 4px;
  }
  .places-status {
    font-size: 11px;
    margin: 8px 0;
  }
  .maps-dish-links {
    gap: 8px;
    margin: 12px 0;
  }
  .maps-dish-link {
    padding: 10px 12px;
    font-size: 12px;
  }
}
@media (max-width: 350px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 88px;
  }
  .hero-copy {
    padding-left: 11px;
    padding-right: 9px;
  }
  .hero h2 {
    font-size: 18px;
  }
  .budget-panel summary {
    font-size: 11px;
    gap: 6px;
  }
  .budget-panel summary > strong {
    font-size: 10px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  dialog {
    max-height: calc(100dvh - 16px);
  }
  #resultDialog[open] {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
  }
  #resultDialog .dialog-heading {
    padding-top: 0;
    padding-bottom: 8px;
  }
  #resultDialog .dialog-heading .eyebrow {
    display: none;
  }
  #resultDialog .dialog-heading h2 {
    font-size: 18px;
  }
  #resultDialog .result-actions {
    padding-top: 8px;
  }
}
html.dialog-open,
html.dialog-open body {
  overflow: hidden;
}
html {
  scrollbar-gutter: stable;
}
.result-save-notice {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.8;
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .header {
    padding: 6px 0;
  }
  .home-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
  }
  .intro {
    grid-column: 1/-1;
    padding: 8px 0 10px;
  }
  .intro h1 {
    font-size: 24px;
    margin: 5px 0 0;
  }
  .intro > p {
    display: none;
  }
  .intro .eyebrow {
    font-size: 9px;
  }
  .modes {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
    gap: 5px;
  }
  .modes button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 6px 4px;
    gap: 5px;
    font-size: 11px;
  }
  .modes .icon {
    width: 15px;
    height: 15px;
  }
  .hero {
    grid-column: 2;
    grid-row: 2/4;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-self: start;
    border-radius: 16px;
  }
  .hero-copy {
    padding: 12px 10px 6px;
  }
  .hero h2 {
    font-size: 19px;
    margin: 6px 0;
  }
  .hero-copy > p {
    display: none;
  }
  .feature-tag {
    font-size: 9px;
  }
  .hero-photo {
    grid-row: auto;
  }
  .hero-photo img {
    height: 100%;
    min-height: 150px;
    max-height: none;
    aspect-ratio: auto;
  }
  .hero-price .price {
    font-size: 12px;
  }
  .hero-price .note {
    font-size: 10px;
  }
  .find-featured {
    font-size: 11px;
    min-height: 44px;
    margin-top: 2px;
    gap: 5px;
  }
  .find-featured .icon:last-child {
    display: none;
  }
  .photo-caption {
    bottom: 6px;
    left: 5px;
    right: 5px;
    padding: 4px 5px;
    font-size: 8px;
    border-radius: 8px;
  }
  .choose {
    grid-column: 1;
    grid-row: 3;
    padding: 8px 0;
  }
  .choose .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .choose .actions button {
    font-size: 12px;
    min-height: 44px;
    padding: 7px;
  }
  .choose .actions .primary {
    grid-column: 1/-1;
    min-height: 44px;
  }
  .budget-status {
    font-size: 10px;
    line-height: 1.5;
    margin-top: 6px;
  }
  .home-section > .budget-panel {
    grid-column: 1;
    grid-row: 4;
    margin: 0 0 18px;
  }
  .home-section > .budget-panel[open] {
    grid-column: 1/-1;
  }
  .budget-panel summary {
    font-size: 11px;
    padding: 10px;
  }
  .budget-panel summary > strong {
    font-size: 10px;
  }
  .mobile-nav {
    padding-top: 4px;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }
  .mobile-nav a,
  .mobile-nav button {
    flex-direction: row;
    min-height: 36px;
    padding: 4px;
    font-size: 10px;
    gap: 6px;
  }
  .mobile-nav .icon {
    width: 17px;
    height: 17px;
  }
}
/* Respect display cut-outs and home indicators in browser and installed PWA. */
.app {
  padding-left: max(36px, env(safe-area-inset-left));
  padding-right: max(36px, env(safe-area-inset-right));
}
.header {
  padding-top: calc(var(--header-top-space, 26px) + env(safe-area-inset-top));
}
dialog,
#resultDialog[open] {
  padding-left: max(var(--dialog-gutter, 24px), env(safe-area-inset-left));
  padding-right: max(var(--dialog-gutter, 24px), env(safe-area-inset-right));
}
@media (max-width: 600px) {
  :root {
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .app {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .header {
    --header-top-space: 10px;
  }
  dialog {
    --dialog-gutter: 18px;
  }
  #resultDialog {
    --dialog-gutter: 14px;
  }
  #resultDialog[open] {
    height: min(820px, calc(100dvh - max(12px, env(safe-area-inset-top))));
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
  }
  .hero[data-empty='true'] .hero-photo img {
    padding: 18px;
  }
  #budgetInput,
  #dishSearch {
    scroll-margin-bottom: 100px;
  }
  .mobile-nav {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}
@media (max-width: 350px) {
  .app {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .header {
    --header-top-space: 6px;
  }
}

/* Refined visual system: warm surfaces, clear selection, consistent card rhythm. */
:root {
  --cream: #fcf9f5;
  --ink: #302820;
  --muted: #70665c;
  --orange: #af4023;
  --orange-soft: #faeade;
  --border: #e9e0d6;
  --surface-shadow: 0 3px 12px #53351d06, 0 14px 36px #53351d05;
}
body {
  background: radial-gradient(ellipse at 90% 0%, #f7e9d766, transparent 42%), var(--cream);
}
.header {
  border-bottom-color: #e9e0d6b3;
}
.tools {
  gap: 6px;
}
.tools .icon-button {
  background: #ffffffa6;
  border-color: var(--border);
}
#soundBtn[aria-pressed='true'] {
  background: #eee8e1;
  color: var(--muted);
}
.modes {
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #f2ede6;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
}
.modes button {
  border-radius: 12px;
}
.modes button[aria-pressed='true'] {
  background: #fff;
  border-color: #e8d4c4;
  box-shadow: 0 2px 6px #53351d0b;
}
.hero {
  box-shadow: var(--surface-shadow);
}
.hero-copy {
  background: linear-gradient(120deg, #fff, #fffaf5);
}
.primary {
  background-color: var(--orange);
}
.choose .actions > button:not(.primary) {
  background: #fffdfb;
  border-color: #ddcbbd;
  color: #70452d;
}
.choose .actions > button:not(.primary) .icon {
  color: var(--orange);
}
.budget-panel {
  box-shadow: 0 2px 8px #53351d04;
}
.budget-panel[open] {
  border-color: #d9b79e;
}
.budget-panel summary {
  list-style: none;
}
.budget-panel summary::-webkit-details-marker {
  display: none;
}
.budget-panel summary::after {
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.budget-presets button {
  background: #fcf8f3;
}
.budget-presets button[aria-pressed='true'] {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
}
.search-wrap {
  box-shadow: 0 2px 8px #53351d03;
}
.filters button {
  min-height: 44px;
}
.menu-grid {
  align-items: stretch;
}
.dish-card {
  box-shadow: 0 3px 12px #53351d05;
  border-color: #e7ddd2;
}
.dish-thumb {
  width: 100%;
}
.dish-thumb::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #23180f12);
  pointer-events: none;
}
.dish-thumb .dish-source {
  z-index: 1;
  box-shadow: 0 2px 8px #23180f0c;
}
.dish-card .dish-name {
  min-height: 3.1em;
}
.dish-card .dish-body {
  width: 100%;
}
.collected {
  color: #426746;
}
.dish-card .collected,
.dish-card .uncollected {
  border-top: 1px solid #eee7df;
  padding-top: 8px;
  width: 100%;
}
.result-card {
  box-shadow: 0 3px 12px #53351d05;
}
.result-cost {
  border: 1px solid #edcfba;
  background: #fcf0e5;
}
.dish-more {
  border-top: 1px solid #eee7df;
}
.dish-more summary {
  font-weight: 600;
}
.maps-dish-link {
  background: #fffefa;
  border-color: #ddcbbd;
}
.maps-callout {
  background: #f1ebe1;
  border: 1px solid #e7ddce;
}
.mobile-nav {
  background: #fffcf9f5;
  backdrop-filter: blur(16px);
}
.mobile-nav [aria-current='page'] {
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 13px;
}
#toast {
  box-shadow: 0 8px 30px #30282020;
  max-width: min(440px, calc(100vw - 32px));
  line-height: 1.65;
}
@media (min-width: 901px) {
  .menu-grid {
    gap: 20px;
  }
  .dish-card .dish-body {
    padding: 16px;
  }
  .dish-card .price {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .modes {
    width: 100%;
  }
  .modes button {
    flex: 1;
    min-width: 0;
  }
  .menu-grid {
    gap: 12px;
  }
  .dish-card {
    border-radius: 16px;
  }
  .dish-card .dish-body {
    padding: 11px;
    gap: 7px;
  }
  .dish-thumb .dish-source {
    left: 7px;
    top: 7px;
    font-size: 9px;
    padding: 4px 7px;
  }
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .modes {
    padding: 3px;
    width: 100%;
  }
  .modes button {
    min-height: 38px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .dish-card:hover {
    border-color: #d4b49b;
    transform: translateY(-3px);
  }
  .maps-dish-link:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 14px #53351d09;
  }
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .modes {
    padding: 0;
    border: 0;
  }
}
/* Longer student-menu names must keep the main actions above the bottom bar. */
@media (max-width: 350px) {
  .hero h2 {
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.45px;
  }
}
/* Taste controls remain inside optional settings; personal actions use real buttons. */
.taste-options {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.taste-options > label:first-child,
.personal-view label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.taste-options select,
.personal-view select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.personal-view {
  margin: 16px 0;
}
.dish-personal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin: 6px 0;
}
.dish-personal-actions button {
  min-height: 44px;
  font-size: 11px;
  padding: 8px;
  line-height: 1.5;
}
.dish-personal-actions button:last-child {
  grid-column: 1/-1;
}
.dish-personal-actions button[aria-pressed='true'] {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}
.personal-badges {
  font-size: 10px;
  line-height: 1.6;
  color: var(--orange);
}
@media (min-width: 601px) {
  .personal-view {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .personal-view label {
    margin: 0;
    flex-shrink: 0;
  }
  .personal-view select {
    max-width: 340px;
  }
}
.personal-more {
  width: 100%;
}
.personal-more summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1.6;
}
.personal-more summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ==========================================================================
   1. KHUNG QUẢNG CÁO DẠNG KỆ ĐỒ VẬT (SHELF AD CONTAINER)
   Không sử dụng icon, gif, hình ảnh - Thuần CSS
   ========================================================================== */
.ad-shelf-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.2rem 0 2.5rem;
  padding: 0 1rem;
}

.ad-shelf-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #70665c);
  margin-bottom: 8px;
}

.ad-shelf-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
}

/* Khung đặt vật phẩm / banner ngồi trên kệ */
.ad-shelf-display {
  width: 300px;
  height: 250px;
  background: var(--surface, #fffdf9);
  border: 1px solid var(--border, #e0d6cb);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 -2px 6px rgba(60, 40, 20, 0.03);
  position: relative;
  z-index: 1;
}

.ad-shelf-display iframe {
  display: block;
  border: none;
  margin: 0;
  padding: 0;
}

/* Tấm ván gỗ nằm ngang của kệ */
.ad-shelf-plank {
  width: 100%;
  height: 14px;
  background: linear-gradient(180deg, #d8bc98 0%, #b89369 45%, #9a7348 100%);
  border-radius: 3px 3px 4px 4px;
  box-shadow: 0 5px 12px rgba(50, 30, 10, 0.16), 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* Hai chốt ke đỡ kệ gắn vào tường (Wall Brackets) */
.ad-shelf-brackets {
  width: 250px;
  display: flex;
  justify-content: space-between;
  margin-top: -1px;
}

.ad-shelf-bracket {
  width: 12px;
  height: 20px;
  background: linear-gradient(180deg, #8a653d 0%, #5d4224 100%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   2. DÂY LEO CỐ ĐỊNH KÉO DÀI TOÀN MÀN HÌNH (TỪ HEADER XUỐNG FOOTER)
   Thuần code vector SVG + CSS, mềm mại tự nhiên, tiệp 100% giao diện
   ========================================================================== */
.side-vine-slot {
  position: fixed;
  top: 0;
  bottom: 0;
  height: 100vh;
  width: 160px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.side-vine-slot.left {
  left: max(16px, calc(50vw - 560px - 175px));
}

.side-vine-slot.right {
  right: max(16px, calc(50vw - 560px - 175px));
}

.side-vine-slot.right .vine-svg {
  transform: scaleX(-1);
}

/* Dây leo vector kéo dài trọn vẹn 100% chiều cao màn hình */
.vine-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(60, 40, 20, 0.06));
}

/* Khay treo banner được cành lá ôm giữ ở giữa màn hình */
.vine-card {
  position: relative;
  z-index: 2;
  width: 160px;
  background: var(--surface, #fffdf9);
  border: 1px solid var(--border, #ded3c5);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(70, 48, 25, 0.08), 0 2px 6px rgba(70, 48, 25, 0.04);
  pointer-events: auto;
}

.vine-card-600 {
  height: 600px;
  min-height: 600px;
}

.vine-card-300 {
  height: 300px;
  min-height: 300px;
}

.vine-card iframe {
  display: block;
  border: none;
  margin: 0;
  padding: 0;
}

.vine-card-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #556b4b;
  background: #edf3ea;
  padding: 2.5px 7px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.vine-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink, #302820);
  line-height: 1.35;
  margin: 0 0 4px;
}

.vine-card-size {
  font-size: 10px;
  font-weight: 600;
  color: #8c5b3c;
  margin: 0 0 10px;
}

.vine-card-divider {
  width: 24px;
  height: 1.5px;
  background: #e2d7c9;
  margin-bottom: 10px;
}

.vine-card-desc {
  font-size: 9.5px;
  color: var(--muted, #7c6f62);
  line-height: 1.4;
  margin: 0;
  max-width: 120px;
}

/* ĐẢM BẢO 100% KHÔNG GIAN CHO NGƯỜI DÙNG:
   Tự động ẩn hoàn toàn trên màn hình dưới 1420px (điện thoại, tablet, laptop nhỏ) */
@media (max-width: 1419px) {
  .side-vine-slot {
    display: none !important;
  }
}

/* User-selected palettes retain dark text on light surfaces. */
:root {
  --accent-hover: #90321b;
  --ambient: #f7e9d766;
}
:root[data-theme='green'] {
  --cream: #f5faf6;
  --orange: #286743;
  --orange-soft: #e3f1e7;
  --border: #d8e6dc;
  --accent-hover: #1d5133;
  --ambient: #dbeee066;
}
:root[data-theme='blue'] {
  --cream: #f5f9fc;
  --orange: #245f93;
  --orange-soft: #e2eef9;
  --border: #d8e3ed;
  --accent-hover: #194b76;
  --ambient: #dceafa66;
}
:root[data-theme='rose'] {
  --cream: #fcf6f8;
  --orange: #9d355f;
  --orange-soft: #f7e4ed;
  --border: #eadbe1;
  --accent-hover: #7c2549;
  --ambient: #f2ddea66;
}
body {
  background: radial-gradient(ellipse at 90% 0%, var(--ambient), transparent 42%), var(--cream);
}
.primary:hover:not(:disabled) {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}
.hero-copy {
  background: linear-gradient(120deg, #fff, var(--cream));
}
.modes,
.maps-callout {
  background: color-mix(in srgb, var(--orange-soft) 45%, var(--cream));
  border-color: var(--border);
}
.modes button[aria-pressed='true'],
.budget-panel[open],
.collection-toggle[aria-pressed='true'],
.maps-dish-link {
  border-color: color-mix(in srgb, var(--orange) 35%, var(--border));
}
.choose .actions > button:not(.primary) {
  color: var(--orange);
  border-color: var(--border);
}
.result-cost {
  background: var(--orange-soft);
  border-color: var(--border);
}
.mobile-nav {
  background: color-mix(in srgb, var(--cream) 95%, transparent);
}
.theme-settings {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.theme-settings h3 {
  font-size: 12px;
  margin: 0 0 10px;
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.theme-options button {
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
  gap: 7px;
}
.theme-options button[aria-pressed='true'] {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fcc75d 0%, #ffa600 50%, #38bdf8 100%);
}
[data-theme-choice='system'] .theme-dot {
  background: linear-gradient(135deg, #fcc75d 0%, #ffa600 50%, #38bdf8 100%);
}
[data-theme-choice='orange'] .theme-dot {
  background: #af4023;
}
[data-theme-choice='green'] .theme-dot {
  background: #286743;
}
[data-theme-choice='blue'] .theme-dot {
  background: #245f93;
}
[data-theme-choice='rose'] .theme-dot {
  background: #9d355f;
}
@media (max-width: 600px) {
  .theme-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.appearance-heading {
  font-size: 13px;
  margin: 14px 0 10px;
}
.appearance-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
}
.appearance-options button {
  font-size: 12px;
  padding: 8px;
  min-width: 0;
}
.appearance-options [aria-pressed='true'] {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange);
}
.tools {
  flex-shrink: 0;
}
@media (max-width: 380px) {
  .brand-wordmark {
    display: none;
  }
  .header {
    gap: 8px;
  }
}
:root[data-appearance='dark'] {
  color-scheme: dark;
  --cream: #181c21;
  --card-bg: #23282f;
  --ink: #f1ece6;
  --muted: #b8b2ab;
  --border: #3d4249;
  --orange: #ff944d;
  --orange-soft: #3e2c26;
  --accent-hover: #ffc3a6;
  --ambient: #35292366;
}
:root[data-appearance='dark'][data-theme='green'] {
  --orange: #96d9ab;
  --orange-soft: #253b2d;
  --accent-hover: #b7ecc6;
  --ambient: #20372b66;
}
:root[data-appearance='dark'][data-theme='blue'] {
  --orange: #98ccff;
  --orange-soft: #263747;
  --accent-hover: #bedfff;
  --ambient: #22334866;
}
:root[data-appearance='dark'][data-theme='rose'] {
  --orange: #f5a8ca;
  --orange-soft: #402b37;
  --accent-hover: #ffc6df;
  --ambient: #39243366;
}
:root[data-appearance='dark']
  :where(
    button,
    .hero,
    .dish-card,
    .result-card,
    .budget-panel,
    .search-wrap,
    .menu-empty,
    .maps-dish-link,
    #budgetInput,
    #shareUrl,
    .callout-icon
  ) {
  background: #23282f;
  border-color: var(--border);
  color: var(--ink);
}
:root[data-appearance='dark'] .hero-copy {
  background: #23282f;
}
:root[data-appearance='dark'] .primary {
  background: var(--orange);
  color: #211b17;
  border-color: var(--orange);
}
:root[data-appearance='dark'] .primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #211b17;
}
:root[data-appearance='dark']
  :is(
    .modes button[aria-pressed='true'],
    .filters button[aria-pressed='true'],
    .collection-toggle[aria-pressed='true'],
    .theme-options button[aria-pressed='true'],
    .appearance-options button[aria-pressed='true'],
    .budget-presets button[aria-pressed='true']
  ) {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: var(--orange);
}
:root[data-appearance='dark'] :is(.tools .icon-button, .choose .actions > button:not(.primary)) {
  background: #23282f;
  color: var(--orange);
  border-color: var(--border);
}
:root[data-appearance='dark'] button:hover:not(:disabled):not(.primary) {
  background: #343b44;
}
:root[data-appearance='dark']
  :is(
    .dish-more,
    .selection-options,
    .theme-settings,
    .dish-card .collected,
    .dish-card .uncollected,
    .header,
    .maps-callout
  ) {
  border-color: var(--border);
}
:root[data-appearance='dark'] .dish-thumb .dish-source {
  background: #20262feb;
  color: var(--ink);
}
:root[data-appearance='dark'] .collected {
  color: #a4d6b0;
}
:root[data-appearance='dark'] .uncollected {
  color: var(--muted);
}
:root[data-appearance='dark'] .reel-viewport {
  background: #242b33;
}
:root[data-appearance='dark'] .reel-card {
  background: #303740;
  color: var(--ink);
}
:root[data-appearance='dark'] .result-save-notice {
  background: #49391f;
  color: #ffda91;
}
:root[data-appearance='dark'] .progress {
  background: var(--border);
}
:root[data-appearance='dark'] .brand-mark {
  color: #211b17;
}


/* -------------------------------------------------------------
   GIAO DIỆN THEO TỪNG BUỔI TRONG NGÀY
   - Sáng (4h-11h): Vàng nhạt chuyển sang vàng đậm (#FCC75D)
   - Trưa & Chiều (11h-17h): Cam nhạt chuyển sang cam đậm (#FFA600)
   - Tối (17h-22h): Xanh đen nhạt chuyển sang đậm, không đen tuyền
   - Khuya (sau 22h-4h): Giữ màu đậm buổi tối, chuyển sang sáng lúc 4h
   ------------------------------------------------------------- */
:root:not([data-appearance='dark']):is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='morning'] {
  --cream: #fffdf5;
  --ink: #302613;
  --muted: #786a4e;
  --orange: #fcc75d;
  --orange-soft: #fef5dc;
  --border: #eedaa4;
  --accent-hover: #e5b24c;
  --ambient: rgba(252, 199, 93, 0.45);
}
:root:not([data-appearance='dark']):is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='morning'] body {
  background: radial-gradient(ellipse at 85% 0%, var(--ambient), transparent 52%),
              linear-gradient(180deg, #fffdf8 0%, #fef8eb 50%, #fef4dc 100%);
}

:root:not([data-appearance='dark']):is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='lunch'],
:root:not([data-appearance='dark']):is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='afternoon'] {
  --cream: #fffbf5;
  --ink: #382405;
  --muted: #7f633d;
  --orange: #ffa600;
  --orange-soft: #fff1db;
  --border: #f8d39f;
  --accent-hover: #e69500;
  --ambient: rgba(255, 166, 0, 0.42);
}
:root:not([data-appearance='dark']):is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='lunch'] body,
:root:not([data-appearance='dark']):is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='afternoon'] body {
  background: radial-gradient(ellipse at 85% 0%, var(--ambient), transparent 52%),
              linear-gradient(180deg, #fffdfa 0%, #fff4e5 50%, #ffe9cc 100%);
}

:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='dinner'] {
  color-scheme: dark;
  --cream: #101c2e;
  --card-bg: #17263c;
  --ink: #f0f6fc;
  --muted: #94a9c4;
  --orange: #38bdf8;
  --orange-soft: #182d49;
  --border: #223a5c;
  --accent-hover: #60a5fa;
  --ambient: rgba(27, 61, 104, 0.5);
}
:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='dinner'] body {
  background: radial-gradient(ellipse at 85% 0%, rgba(56, 189, 248, 0.22), transparent 50%),
              linear-gradient(180deg, #182a44 0%, #122137 50%, #0c182b 100%);
}
:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='dinner']
  :where(button, .hero, .dish-card, .result-card, .budget-panel, .search-wrap, .menu-empty, .maps-dish-link, #budgetInput, #shareUrl, .callout-icon) {
  background: #17263c;
  border-color: var(--border);
  color: var(--ink);
}
:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='dinner'] .hero-copy {
  background: #17263c;
}

:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='latenight'] {
  color-scheme: dark;
  --cream: #0c1728;
  --card-bg: #132238;
  --ink: #f0f6fc;
  --muted: #90a5c2;
  --orange: #38bdf8;
  --orange-soft: #14253c;
  --border: #1e3555;
  --accent-hover: #60a5fa;
  --ambient: rgba(22, 54, 94, 0.55);
}
:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='latenight'] body {
  background: radial-gradient(ellipse at 85% 0%, rgba(56, 189, 248, 0.2), transparent 50%),
              linear-gradient(180deg, #14233a 0%, #0e1b2f 50%, #091322 100%);
}
:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='latenight']
  :where(button, .hero, .dish-card, .result-card, .budget-panel, .search-wrap, .menu-empty, .maps-dish-link, #budgetInput, #shareUrl, .callout-icon) {
  background: #132238;
  border-color: var(--border);
  color: var(--ink);
}
:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='latenight'] .hero-copy {
  background: #132238;
}

/* Banner nhắc nhở ăn nhẹ đêm khuya */
.latenight-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(252, 199, 93, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(252, 199, 93, 0.6);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: latenight-pulse 2.8s infinite ease-in-out;
}
.latenight-star {
  font-size: 15px;
}
.latenight-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fcc75d;
}
@keyframes latenight-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 22px rgba(252, 199, 93, 0.32);
  }
}

.image-note, .illustration-tag { display: none !important; opacity: 0 !important; visibility: hidden !important; }


/* =============================================================
   INTERACTIVE CONTROLS & THEME ADAPTATION
   Nổi bật rực rỡ, độ tương phản cao, chuyển đổi mượt mà theo
   mọi chủ đề (Orange, Green, Blue, Rose) và chế độ Sáng/Tối.
   ============================================================= */

/* 1. Nút bấm chính (.primary) */
.primary {
  background-color: var(--orange);
  color: #ffffff;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--orange) 35%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}
.primary:hover:not(:disabled) {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--orange) 50%, transparent);
  transform: translateY(-1px);
}
.primary:active:not(:disabled) {
  transform: translateY(1px);
}
:root[data-appearance='dark'] .primary {
  background-color: var(--orange);
  color: #121820;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
:root[data-appearance='dark'] .primary:hover:not(:disabled) {
  background-color: var(--accent-hover);
  color: #121820;
}

/* 2. Thanh danh mục (.modes) */
.modes {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: color-mix(in srgb, var(--orange-soft) 70%, var(--cream));
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}
.modes button {
  flex: 1;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modes button[aria-pressed='false'] {
  background: transparent;
  color: var(--ink);
  opacity: 0.88;
}
.modes button[aria-pressed='false']:hover {
  background: color-mix(in srgb, var(--orange-soft) 80%, transparent);
  color: var(--orange);
  opacity: 1;
  transform: translateY(-1px);
}
.modes button[aria-pressed='true'] {
  background-color: var(--orange);
  color: #ffffff;
  border-color: color-mix(in srgb, var(--orange) 75%, #ffffff);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--orange) 40%, transparent);
  transform: scale(1.02);
}
:root[data-appearance='dark'] .modes {
  background: #1c232d;
  border-color: var(--border);
}
:root[data-appearance='dark'] .modes button[aria-pressed='false'] {
  background: #252e3b;
  color: var(--ink);
  border-color: #333e4f;
}
:root[data-appearance='dark'] .modes button[aria-pressed='true'] {
  background-color: var(--orange);
  color: #121820;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* 3. Các nút tương tác phụ */
.choose .actions > button:not(.primary) {
  background: color-mix(in srgb, var(--cream) 70%, #ffffff);
  color: var(--ink);
  border: 1.5px solid var(--border);
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.18s ease;
}
.choose .actions > button:not(.primary):hover:not(:disabled) {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-1px);
}
:root[data-appearance='dark'] .choose .actions > button:not(.primary) {
  background: #232a35;
  color: var(--ink);
  border-color: var(--border);
}
:root[data-appearance='dark'] .choose .actions > button:not(.primary):hover:not(:disabled) {
  background: #2d3644;
  color: var(--orange);
  border-color: var(--orange);
}

/* 4. Nút nhạc nền BGM */
#bgmBtn.is-playing,
#bgmBtn[aria-pressed='true'] {
  background: color-mix(in srgb, var(--orange) 22%, transparent);
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 12px color-mix(in srgb, var(--orange) 45%, transparent);
  animation: bgm-pulse 2s infinite ease-in-out;
}

/* 5. Tùy chọn ngôn ngữ & Múi giờ */
.lang-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
}
.lang-options button {
  min-height: 42px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.lang-options button:hover {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: var(--orange);
}
.lang-options button[aria-pressed='true'] {
  background-color: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--orange) 35%, transparent);
}
:root[data-appearance='dark'] .lang-options button {
  background: #232a35;
  border-color: var(--border);
}
:root[data-appearance='dark'] .lang-options button[aria-pressed='true'] {
  color: #121820;
}

.timezone-select-wrap {
  position: relative;
  margin-top: 6px;
}
.timezone-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.timezone-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--orange) 30%, transparent);
}
:root[data-appearance='dark'] .timezone-select {
  background: #232a35;
  color: var(--ink);
  border-color: var(--border);
}
.timezone-clock {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Nút múi giờ nhỏ trên trang chủ */
.tz-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: color-mix(in srgb, var(--orange-soft) 85%, var(--cream));
  color: var(--orange);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
}
.tz-pill:hover {
  background: var(--orange-soft);
  border-color: var(--orange);
  transform: translateY(-1px);
}
.tz-pill .icon {
  width: 12px;
  height: 12px;
}

/* Lưới chọn múi giờ trong dialog */
.timezone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 12px 0 16px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}
.tz-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.tz-card:hover {
  background: var(--orange-soft);
  border-color: var(--orange);
  transform: translateY(-1px);
}
.tz-card[aria-pressed='true'] {
  background: color-mix(in srgb, var(--orange-soft) 90%, var(--cream));
  border-color: var(--orange);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--orange) 30%, transparent);
}
.tz-card[aria-pressed='true'] .tz-city {
  color: var(--orange);
}
.tz-flag {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}
.tz-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tz-city {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.tz-desc {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tz-time {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
:root[data-appearance='dark'] .tz-card {
  background: #232a35;
  border-color: var(--border);
}
:root[data-appearance='dark'] .tz-card[aria-pressed='true'] {
  background: #2a3442;
  border-color: var(--orange);
}

/* Language modal card styles */
.lang-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 16px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}
.lang-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.lang-card:hover {
  background: var(--orange-soft);
  border-color: var(--orange);
  transform: translateY(-1px);
}
.lang-card[aria-pressed='true'] {
  background: color-mix(in srgb, var(--orange-soft) 90%, var(--cream));
  border-color: var(--orange);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--orange) 30%, transparent);
}
.lang-card[aria-pressed='true'] .lang-name {
  color: var(--orange);
}
.lang-flag {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.lang-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lang-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.lang-sub {
  font-size: 11px;
  color: var(--muted);
}
:root[data-appearance='dark'] .lang-card {
  background: #232a35;
  border-color: var(--border);
}
:root[data-appearance='dark'] .lang-card[aria-pressed='true'] {
  background: #2a3442;
  border-color: var(--orange);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.legal-lang-select {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}


/* Result Dialog Actions Styling */
.actions.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.result-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

#rerollBtn.result-action-btn {
  background: color-mix(in srgb, var(--cream) 70%, #ffffff);
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#rerollBtn.result-action-btn:hover:not(:disabled) {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-1px);
}

#resultDoneBtn.result-done-btn {
  background: var(--orange);
  color: #ffffff;
  border: 1.5px solid var(--orange);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  min-width: 140px;
}

#resultDoneBtn.result-done-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

:root[data-appearance='dark'] #rerollBtn.result-action-btn {
  background: #232a35;
  color: var(--ink);
  border-color: var(--border);
}

:root[data-appearance='dark'] #rerollBtn.result-action-btn:hover:not(:disabled) {
  background: #2d3644;
  color: var(--orange);
  border-color: var(--orange);
}

:root[data-appearance='dark'] #resultDoneBtn.result-done-btn {
  background: var(--orange);
  color: #121820;
  font-weight: 800;
}

@media (max-width: 480px) {
  .actions.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 12px;
  }
  .result-action-btn {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    min-width: 0;
  }
}

/* ==========================================================================
   Hero Section Gradient Image Reveal Effect
   Left copy sits cleanly on solid web theme surface; moving right smoothly
   reveals the dish illustration through a gradient fade.
   ========================================================================== */
.hero {
  position: relative !important;
  display: block !important;
  background: var(--hero-surface, #fff) !important;
  border-radius: 25px;
  overflow: hidden !important;
  border: 1px solid var(--border);
  box-shadow: 0 10px 35px rgba(93, 52, 16, 0.05);
  min-height: 380px;
}

:root[data-appearance='dark'] .hero {
  --hero-surface: #23282f;
}

:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='dinner'] .hero {
  --hero-surface: #17263c;
}

:root[data-appearance='dark']:is([data-theme='system'], [data-theme='orange'], :not([data-theme]))[data-time-period='latenight'] .hero {
  --hero-surface: #132238;
}

.hero-copy {
  position: relative !important;
  z-index: 3 !important;
  max-width: 54% !important;
  padding: 38px !important;
  background: transparent !important;
  box-sizing: border-box;
}

.hero-photo {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 66% !important;
  height: 100% !important;
  z-index: 1 !important;
  overflow: hidden !important;
  pointer-events: none;
}

.hero-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  display: block;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 26%, rgba(0, 0, 0, 0.8) 55%, #000 82%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 26%, rgba(0, 0, 0, 0.8) 55%, #000 82%);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--hero-surface, #fff) 0%,
    color-mix(in srgb, var(--hero-surface, #fff) 80%, transparent) 26%,
    color-mix(in srgb, var(--hero-surface, #fff) 30%, transparent) 55%,
    transparent 80%
  );
  pointer-events: none;
}

@media (max-width: 760px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto;
  }
  .hero-copy {
    max-width: 100% !important;
    padding: 24px 20px 20px !important;
  }
  .hero-photo {
    position: relative !important;
    width: 100% !important;
    height: 240px !important;
  }
  .hero-photo img {
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 30%, #000 70%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 30%, #000 70%);
  }
  .hero-photo::before {
    background: linear-gradient(to bottom, var(--hero-surface, #fff) 0%, transparent 45%);
  }
}

/* Custom Color Picker in Theme Dialog */
.custom-color-picker-wrap {
  margin-top: 12px;
  padding: 8px 14px;
  background: var(--orange-soft, rgba(0, 0, 0, 0.04));
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.custom-color-picker-wrap:hover {
  border-color: var(--orange);
}
.custom-color-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  width: 100%;
  color: var(--ink);
}
.custom-color-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border), 0 2px 6px rgba(0, 0, 0, 0.15);
  background-color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.custom-color-label:hover .custom-color-preview {
  transform: scale(1.12);
}
#customThemeColor {
  cursor: pointer;
  border: none;
  background: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
}


/* Guaranteed high contrast card background and typography across all themes */
.dish-card, button.dish-card {
  background: var(--card-bg, #ffffff);
  color: var(--ink);
  border-color: var(--border);
}
.dish-card:hover, button.dish-card:hover {
  background: var(--card-bg, #ffffff);
}
.dish-card .dish-name {
  color: var(--ink);
}
.dish-card .dish-body {
  color: var(--ink);
}


/* ==========================================================================
   GLOBAL HIGH-CONTRAST TYPOGRAPHY & THEME CONTRAST GUARANTEE (WCAG AAA)
   Ensures 100% crystal-clear readability across every combination of:
   Theme: system, orange, green, blue, rose, custom
   Appearance: light, dark, system, auto
   ========================================================================== */

:root {
  --primary-ink: #ffffff;
}

:root[data-appearance='dark'] {
  --primary-ink: #0b1320;
}

/* 1. Universal Theme Action Buttons with --orange background */
.primary,
.modes button[aria-pressed='true'],
.filters button[aria-pressed='true'],
.drink-sub-btn[aria-pressed='true'],
.theme-options button[aria-pressed='true'],
.appearance-options button[aria-pressed='true'],
.lang-options button[aria-pressed='true'],
.budget-presets button[aria-pressed='true'],
#resultDoneBtn.result-done-btn,
.custom-wheel-spin-action,
.universe-tab.active {
  background-color: var(--orange) !important;
  color: var(--primary-ink, #ffffff) !important;
  border-color: var(--orange) !important;
  font-weight: 700 !important;
}

/* 2. Theme & Appearance Dialog Options */
.theme-options button,
.appearance-options button {
  background: var(--card-bg, #ffffff) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border) !important;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.18s ease;
}

.theme-options button:hover,
.appearance-options button:hover {
  background: var(--orange-soft) !important;
  color: var(--orange) !important;
  border-color: var(--orange) !important;
}

.theme-options button[aria-pressed='true'],
.appearance-options button[aria-pressed='true'] {
  background-color: var(--orange) !important;
  color: var(--primary-ink, #ffffff) !important;
  border-color: var(--orange) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

/* 3. Dialogs, Modals, Headings & Descriptions */
dialog,
.compact-dialog,
.universe-dish-dialog {
  background: var(--card-bg, #ffffff) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border) !important;
}

dialog-heading h2,
.dialog-heading h2,
dialog h2,
dialog h3,
.theme-settings h3,
.appearance-heading {
  color: var(--ink) !important;
}

dialog-heading .eyebrow,
.dialog-heading .eyebrow,
.eyebrow {
  color: var(--orange) !important;
  font-weight: 700;
}

dialog p,
.custom-wheel-desc,
.universe-dish-meta {
  color: var(--muted) !important;
}

/* 4. Text Inputs, Textarea, Search bars */
textarea,
input[type='text'],
input[type='search'],
input[type='number'],
#customWheelInput,
#searchDishInput,
#budgetInput,
.universe-search-bar input {
  background: var(--surface, #f8fafc) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border) !important;
  box-sizing: border-box;
}

textarea:focus,
input[type='text']:focus,
input[type='search']:focus,
input[type='number']:focus,
#customWheelInput:focus,
#searchDishInput:focus {
  border-color: var(--orange) !important;
  outline: none;
}

textarea::placeholder,
input::placeholder,
#customWheelInput::placeholder,
#searchDishInput::placeholder {
  color: var(--muted) !important;
  opacity: 0.85;
}

/* 5. Category Filters & Sub-filters */
.filters button {
  background: var(--surface, #f8fafc) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border) !important;
  font-weight: 600;
}

.filters button:hover {
  background: var(--orange-soft) !important;
  color: var(--orange) !important;
  border-color: var(--orange) !important;
}

.filters button[aria-pressed='true'] {
  background-color: var(--orange) !important;
  color: var(--primary-ink, #ffffff) !important;
  border-color: var(--orange) !important;
  font-weight: 700 !important;
}

.drink-sub-btn {
  background: var(--surface-card, #ffffff) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.drink-sub-btn:hover {
  background: var(--orange-soft) !important;
  color: var(--orange) !important;
  border-color: var(--orange) !important;
}

.drink-sub-btn[aria-pressed='true'] {
  background-color: var(--orange) !important;
  color: var(--primary-ink, #ffffff) !important;
  border-color: var(--orange) !important;
  font-weight: 700 !important;
}

/* 6. Late Night Banner Contrast */
:root:not([data-appearance='dark']) .latenight-banner {
  background: #fef3c7 !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18) !important;
}
:root:not([data-appearance='dark']) .latenight-text {
  color: #92400e !important;
  font-weight: 700 !important;
}
:root[data-appearance='dark'] .latenight-banner {
  background: rgba(245, 158, 11, 0.16) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}
:root[data-appearance='dark'] .latenight-text {
  color: #fde68a !important;
  font-weight: 700 !important;
}

/* 7. Custom Wheel Alert */
:root:not([data-appearance='dark']) .custom-wheel-alert {
  background: #fee2e2 !important;
  border: 1.5px solid #f87171 !important;
  color: #991b1b !important;
}
:root[data-appearance='dark'] .custom-wheel-alert {
  background: rgba(239, 68, 68, 0.22) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.6) !important;
  color: #fecaca !important;
}

/* 8. Universe Dish List Items */
.universe-dish-item {
  background: var(--surface, #f8fafc) !important;
  border: 1px solid var(--border) !important;
}
.universe-dish-item:hover {
  background: var(--surface-hover, #f1f5f9) !important;
}
.universe-dish-name {
  color: var(--ink) !important;
  font-weight: 600;
}
.universe-tab {
  background: var(--surface, #f8fafc) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border) !important;
}

/* 9. Header Icon Buttons */
:is(.tools .icon-button) {
  background: var(--surface-card, #ffffff);
  color: var(--ink);
  border: 1px solid var(--border);
}
:is(.tools .icon-button):hover {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: var(--orange);
}

/* 10. Dish Card Typography & Price Notes */
.dish-card, button.dish-card {
  background: var(--card-bg, #ffffff) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border) !important;
}
.dish-card .dish-name {
  color: var(--ink) !important;
  font-weight: 700;
}
.dish-card .dish-quote {
  color: var(--muted) !important;
}
.dish-card .dish-cost {
  color: var(--orange) !important;
  font-weight: 700;
}
.dish-price-note {
  color: var(--muted) !important;
  font-style: italic;
  font-size: 11px;
}

