:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #f1eee8;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body::before {
  position: fixed;
  inset: -20% auto auto -8%;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 160, 30, .065), transparent 67%);
  content: "";
  pointer-events: none;
}

.restaurant-menu {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(24px, 3.1vw, 54px) clamp(30px, 5vw, 92px) clamp(28px, 4vw, 68px);
}

.screen-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  color: rgba(215, 181, 82, .76);
  font-size: clamp(11px, .72vw, 14px);
  font-weight: 600;
  letter-spacing: .22em;
}

.screen-topline::after {
  position: absolute;
  top: clamp(58px, 6.1vw, 102px);
  right: clamp(30px, 5vw, 92px);
  left: clamp(30px, 5vw, 92px);
  height: 1px;
  background: linear-gradient(90deg, rgba(215, 181, 82, .4), rgba(255, 255, 255, .08) 55%, transparent);
  content: "";
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 29vw);
  gap: clamp(24px, 3.2vw, 58px);
  height: calc(100% - 38px);
  padding-top: clamp(30px, 4.2vw, 68px);
}

.menu-catalog {
  min-width: 0;
}

.menu-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(16px, 2.1vw, 34px);
}

.menu-kicker,
.order-heading span,
.order-notes > span,
.order-total > span {
  color: #c1a01e;
  font-size: clamp(11px, .72vw, 14px);
  font-weight: 600;
  letter-spacing: .2em;
}

.menu-heading h1 {
  margin: 2px 0 0;
  color: #f5f5f5;
  font-size: clamp(42px, 4.3vw, 76px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .9;
}

.menu-heading h1 span {
  color: #d7b552;
}

.menu-heading p {
  max-width: 320px;
  margin: 0 0 3px;
  color: #899198;
  font-size: clamp(13px, .9vw, 16px);
  font-weight: 300;
  line-height: 1.55;
  text-align: right;
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 52px);
}

.menu-category + .menu-category {
  margin-top: clamp(20px, 2.2vw, 34px);
}

.menu-category h2 {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 0 7px;
  color: #d7b64b;
  font-size: clamp(13px, .9vw, 16px);
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.menu-category h2 span {
  color: #50575b;
  font-size: .78em;
  letter-spacing: .08em;
}

.menu-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: clamp(46px, 4vw, 66px);
  padding: 8px 5px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}

.menu-item div {
  min-width: 0;
}

.menu-item strong {
  display: block;
  color: #eeeae3;
  font-size: clamp(15px, 1.02vw, 18px);
  font-weight: 400;
  line-height: 1.25;
}

.menu-item small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #697277;
  font-size: clamp(11px, .75vw, 13px);
  font-weight: 300;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item > b {
  color: #c8c3b9;
  font-size: clamp(14px, .92vw, 17px);
  font-weight: 400;
  white-space: nowrap;
}

.menu-item.is-selected {
  padding-right: 42px;
  padding-left: 12px;
  border-color: rgba(215, 181, 82, .5);
  background: linear-gradient(90deg, rgba(215, 181, 82, .14), rgba(215, 181, 82, .025));
}

.menu-item.is-selected strong,
.menu-item.is-selected > b {
  color: #ffe197;
}

.quantity-badge {
  position: absolute;
  top: 50%;
  right: 7px;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(215, 181, 82, .55);
  border-radius: 50%;
  background: #c1a01e;
  color: #090806;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  transform: translateY(-50%);
}

.menu-item.is-selected .quantity-badge { display: grid; }

.order-panel {
  display: flex;
  min-height: 0;
  padding: clamp(24px, 2.4vw, 42px);
  border: 1px solid rgba(215, 181, 82, .27);
  background: linear-gradient(155deg, rgba(29, 25, 15, .88), rgba(10, 10, 9, .94) 48%, rgba(18, 18, 18, .9));
  box-shadow: 0 28px 72px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .035);
  flex-direction: column;
}

.order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-heading b {
  color: #697277;
  font-size: clamp(11px, .7vw, 13px);
  font-weight: 400;
}

.order-panel > h2 {
  margin: clamp(10px, 1.1vw, 18px) 0 0;
  color: #f1eee8;
  font: 300 clamp(30px, 2.7vw, 48px)/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.045em;
}

.order-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin: auto 0;
  color: #697277;
  text-align: center;
  flex-direction: column;
}

.order-empty i {
  position: relative;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid rgba(215, 181, 82, .35);
  border-radius: 50%;
}

.order-empty i::before,
.order-empty i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(215, 181, 82, .55);
  content: "";
  transform: translate(-50%, -50%);
}

.order-empty i::before { width: 15px; height: 1px; }
.order-empty i::after { width: 1px; height: 15px; }

.order-empty strong {
  color: #aaa69e;
  font-size: clamp(14px, .92vw, 17px);
  font-weight: 400;
}

.order-empty span {
  max-width: 220px;
  margin-top: 7px;
  font-size: clamp(12px, .76vw, 14px);
  font-weight: 300;
  line-height: 1.45;
}

.order-empty[hidden] { display: none; }

.order-list {
  min-height: 0;
  margin: clamp(20px, 2vw, 30px) 0 16px;
  overflow: auto;
  scrollbar-color: rgba(215, 181, 82, .28) transparent;
  scrollbar-width: thin;
  flex: 1;
}

.order-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.order-row > b {
  color: #d7b552;
  font-size: 14px;
  font-weight: 500;
}

.order-row strong {
  display: block;
  color: #e8e4dc;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.order-row small {
  display: block;
  margin-top: 4px;
  color: #90791e;
  font-size: 12px;
  line-height: 1.3;
}

.order-row > span {
  color: #c8c3b9;
  font-size: 14px;
  white-space: nowrap;
}

.order-notes {
  padding: 18px 0;
  border-top: 1px solid rgba(215, 181, 82, .2);
}

.order-notes p {
  margin: 7px 0 0;
  color: #85898d;
  font-size: clamp(12px, .82vw, 15px);
  font-weight: 300;
  line-height: 1.45;
}

.order-notes.has-note p { color: #d6dcde; }

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 181, 82, .38);
}

.order-total strong {
  color: #f5d177;
  font-size: clamp(26px, 2vw, 38px);
  font-weight: 300;
  letter-spacing: -.04em;
}

.menu-hint {
  position: absolute;
  right: clamp(30px, 5vw, 92px);
  bottom: clamp(8px, 1.35vw, 22px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(215, 181, 82, .62);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.menu-hint kbd {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(215, 181, 82, .45);
  border-radius: 50%;
  background: rgba(215, 181, 82, .08);
  color: #d7b552;
  font: inherit;
}

@media (max-width: 1100px) {
  .restaurant-menu { padding-right: 34px; padding-left: 34px; }
  .screen-topline::after { right: 34px; left: 34px; }
  .menu-layout { grid-template-columns: minmax(0, 1fr) minmax(275px, 31vw); gap: 24px; }
  .menu-columns { gap: 24px; }
  .menu-heading p { display: none; }
  .order-panel { padding: 24px; }
}

@media (max-height: 720px) {
  .restaurant-menu { padding-top: 20px; padding-bottom: 34px; }
  .screen-topline::after { top: 54px; }
  .menu-layout { padding-top: 27px; }
  .menu-heading { margin-bottom: 13px; }
  .menu-heading h1 { font-size: 43px; }
  .menu-category + .menu-category { margin-top: 15px; }
  .menu-item { min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
  .menu-item strong { font-size: 14px; }
  .menu-item small { font-size: 10px; }
  .order-panel { padding-top: 22px; padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-item { transition-duration: 1ms; }
}
