:root {
  color-scheme: dark;
  --bg: #16131f;
  --panel: #241d35;
  --panel-2: #2e2841;
  --text: #fff7d6;
  --muted: #c9bfde;
  --line: #4d4564;
  --primary: #2ee6a6;
  --primary-ink: #10231d;
  --accent: #ffcf38;
  --danger: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 207, 56, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(46, 230, 166, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 28px;
  align-items: center;
}

.hero-copy,
.title-panel,
.order-console,
.menu-card,
.order-ticket,
.empty-board,
.menu-editor,
.menu-admin-card {
  border: 2px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
}

.hero-copy,
.title-panel {
  padding: clamp(24px, 5vw, 54px);
  border-radius: 8px;
}

.qr-panel {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  color: #17131f;
  box-shadow: var(--shadow);
}

.qr-panel img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.intro {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.15rem;
}

.button,
.ticket-actions button,
.stepper button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.ghost {
  border: 2px solid var(--line);
  background: transparent;
}

.full {
  width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.app-screen {
  display: grid;
  gap: 24px;
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 22px;
  align-items: start;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading.compact h2 {
  font-size: 2rem;
}

.menu-grid,
.orders-board {
  display: grid;
  gap: 14px;
}

.menu-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
}

.menu-card p {
  color: var(--muted);
}

.meta-row,
.ticket-summary,
.cart-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.meta-row span {
  color: var(--accent);
  font-weight: 800;
}

.pixel-art {
  position: relative;
  width: 82px;
  height: 82px;
  display: block;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: #1d1729;
}

.pixel-art::before,
.pixel-art::after,
.pixel-art span {
  content: "";
  position: absolute;
  display: block;
}

.tosti::before {
  inset: 22px 12px;
  background: #f0b24d;
  transform: skewX(-12deg);
}

.tosti::after {
  inset: 32px 18px 26px;
  background: #ffe27a;
}

.fruit::before {
  width: 24px;
  height: 24px;
  left: 16px;
  top: 28px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 22px -8px 0 #ffcf38, 36px 12px 0 #2ee6a6;
}

.drink::before,
.lemon::before {
  left: 24px;
  top: 14px;
  width: 34px;
  height: 50px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(#9ff5ff 25%, #ff4f9b 25%);
}

.lemon::before {
  background: linear-gradient(#9ff5ff 25%, #ffcf38 25%);
}

.cookie::before {
  left: 17px;
  top: 17px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #c98343;
  box-shadow: inset 9px 10px 0 rgba(80, 35, 18, 0.35);
}

.stepper {
  display: grid;
  grid-template-columns: 44px 32px 44px;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.stepper button {
  background: var(--accent);
  color: #17131f;
}

.stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.order-console {
  position: sticky;
  top: 18px;
  padding: 18px;
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: #17131f;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.cart-lines,
.totals {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.totals {
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.message,
.empty,
.ticket-email {
  color: var(--muted);
}

.kitchen-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.kitchen-header h1 {
  margin-bottom: 0;
}

.orders-board {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.kitchen-section {
  margin-top: 28px;
}

.completed-board .order-ticket {
  opacity: 0.78;
}

.order-ticket,
.empty-board {
  padding: 18px;
  border-radius: 8px;
}

.order-ticket.klaar {
  opacity: 0.72;
}

.order-ticket.geannuleerd .status,
.danger-button {
  background: var(--danger);
  color: #211010;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status {
  align-self: start;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--accent);
  color: #17131f;
  font-weight: 800;
}

.ticket-items {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.ticket-items div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket-actions,
.mail-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.ticket-actions button,
.mail-actions a {
  background: var(--primary);
  color: var(--primary-ink);
}

.mail-actions a {
  min-height: 40px;
  font-size: 0.9rem;
}

.menu-manager {
  display: grid;
  gap: 16px;
}

.menu-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
}

.wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-admin-list {
  display: grid;
  gap: 12px;
}

.menu-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
}

.menu-admin-card p {
  color: var(--muted);
}

.menu-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .hero,
  .menu-layout,
  .menu-editor {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .order-console {
    position: static;
  }
}

@media (max-width: 560px) {
  .screen {
    width: min(100% - 18px, 1120px);
    padding: 12px 0;
  }

  .menu-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pixel-art {
    width: 68px;
    height: 68px;
  }

  .stepper {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr 48px 1fr;
  }

  .kitchen-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-actions,
  .mail-actions {
    grid-template-columns: 1fr;
  }

  .menu-admin-card {
    grid-template-columns: 1fr;
  }

  .menu-admin-actions {
    justify-content: stretch;
  }

  .menu-admin-actions .button {
    flex: 1 1 130px;
  }
}
