:root {
  --bg: #0e0d0b; --surface: #172522; --surface-2: #16372e;
  --line: #2c3d38; --text: #f3ede3; --muted: #ced8d2; --muted-2: #5e6c68;
  --accent: #a5e541; --accent-text: #0e0d0b; --warn: #f5a623; --danger: #ff6a00;
  --radius: 14px;
  font: 1rem/1.4 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --title: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: dark;
}
body { background: var(--bg); color: var(--text); margin: 0;
  -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
.page { max-width: 640px; margin: 0 auto; padding: 0 16px 120px; overflow-x: hidden; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 0 8px; }
.venue-name { font: bold 1.6rem/1.1 var(--title); flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.table-label { font-size: 0.8rem; color: var(--muted); }
.lang-switch { font-size: 0.75rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.notice { border-radius: var(--radius); padding: 10px 14px; margin: 8px 0 16px; font-size: 0.85rem; border: 1px solid var(--muted-2); }
.notice.demo { border-color: var(--warn); color: var(--warn); }
.notice.paused { border-color: var(--danger); color: var(--danger); }
.category { margin: 24px 0 12px; }
.category h2 { font: 700 0.85rem/1 var(--title); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.category .item + .item { margin-top: 10px; }
.category h2 + .item { margin-top: 12px; }
.item.sold-out { opacity: 0.5; pointer-events: none; }
.item .name { font-weight: 700; overflow-wrap: anywhere; }
.item .desc { font-size: 0.8rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.item .price { font-weight: 700; color: var(--accent); text-align: right; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.age { color: var(--warn); }
.stepper { display: inline-flex; align-items: center; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stepper button { width: 40px; height: 40px; font-size: 1.2rem; background: var(--surface); border: none; color: var(--text); cursor: pointer; }
.stepper button.plus { background: var(--accent); color: var(--accent-text); font-weight: 700; }
.stepper span { width: 36px; text-align: center; font-weight: 600; }
.btn { display: block; width: 100%; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); font: inherit; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; border: 1px solid var(--line); background: none; color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.secondary { background: transparent; border-color: var(--line); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.cart-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); max-width: 640px; width: 100%; background: var(--surface-2); box-shadow: 0 -2px 12px rgba(0,0,0,0.5); padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; z-index: 100; animation: slide-up 0.25s ease-out; }
.cart-bar .btn { width: auto; flex: 0 0 auto; }
.cart-bar #cart-count { font-weight: 700; color: var(--accent); }
.cart-bar #cart-total { margin-left: auto; font-weight: 700; font-size: 1.1rem; }
@keyframes slide-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes slide-up-sheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent); } 50% { box-shadow: 0 0 12px 2px var(--accent); } }
.sheet { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow-y: auto; padding: 16px; transform: translateY(100%); animation: slide-up-sheet 0.25s ease-out forwards; }
.sheet h2 { font: 700 1.4rem/1.2 var(--title); margin: 0 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: inherit; font-size: 16px; }
.field textarea { min-height: 80px; resize: vertical; }
.tips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); cursor: pointer; font: inherit; }
.chip.selected { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.9rem; }
.summary-line > :first-child { min-width: 0; overflow-wrap: anywhere; }
.summary-line > :last-child { white-space: nowrap; }
.summary-total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 20px; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s; z-index: 300; pointer-events: none; }
.toast.show, .toast:not([hidden]) { opacity: 1; }
.status-card { background: var(--surface); border-radius: var(--radius); padding: 24px; text-align: center; }
.order-number { font: 700 4rem/1 var(--title); color: var(--accent); margin: 0; }
.status-text { font-size: 1.2rem; font-weight: 700; margin: 8px 0 20px; }
.steps { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.step { width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.step.done { background: var(--accent); }
.pickup-code { font-family: 'Courier New', monospace; font-size: 1.8rem; letter-spacing: 0.15em; padding: 12px 24px; border-radius: var(--radius); background: var(--text); color: var(--bg); display: inline-block; margin: 16px 0; }
.status-card.ready { animation: pulse 2s infinite; }
.powered { text-align: center; font-size: 0.7rem; color: var(--muted-2); padding: 24px 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
.item .info { min-width: 0; display: grid; gap: 4px; }
.item .info .price { text-align: left; }
.item .stepper { align-self: center; }
.notice.current-order { display: block; border-color: var(--accent); color: var(--accent); text-decoration: none; font-weight: 700; }
.notice.current-order[hidden] { display: none; }
.lang-switch { text-decoration: none; display: inline-flex; align-items: center; }
.loyalty-card { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.loyalty-card h2 { font: 700 1.4rem/1.2 var(--title); color: var(--accent); margin: 0 0 8px; }
.loyalty-card p { margin: 0 0 16px; font-size: 0.9rem; }
.loyalty-card #loy-done { text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; margin-bottom: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
