:root {
  --bg: #f6f7fb;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: #ffffff;
  --text: #13151a;
  --muted: #6d7382;
  --line: rgba(24, 32, 56, 0.08);
  --blue: #4f7cff;
  --blue-2: #7f9bff;
  --mint: #7ce4c5;
  --pink: #ff8fc7;
  --shadow: 0 18px 60px rgba(64, 79, 122, 0.14);
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 228, 197, 0.45), transparent 30%),
    radial-gradient(circle at top right, rgba(127, 155, 255, 0.35), transparent 25%),
    radial-gradient(circle at bottom, rgba(255, 143, 199, 0.2), transparent 28%),
    var(--bg);
}
button, input, select { font: inherit; }
body, button, input, select, h1, h2, h3, p, span, small, label {
  word-break: keep-all;
  overflow-wrap: normal;
}
.page-shell {
  min-height: 100vh;
  padding: 32px;
}
.home-shell, .lunch-shell {
  max-width: 1320px;
  margin: 0 auto;
}
.hero-card, .card {
  backdrop-filter: blur(20px);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  border-radius: 28px;
}
.hero-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.solo-hero { grid-template-columns: 1fr; max-width: 760px; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; margin-bottom: 12px; }
h2 { font-size: 24px; margin-bottom: 10px; }
h3 { font-size: 18px; margin-bottom: 6px; }
.hero-copy, .helper, .status-panel p, .summary-top p, .names-line, .locked-box, .restaurant-menu, .final-choice small { color: var(--muted); }
.status-panel {
  align-self: start;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 20px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-weight: 700;
}
.status-pill.live { background: rgba(124,228,197,0.28); color: #0b6f54; }
.status-pill.pending { background: rgba(79,124,255,0.12); color: #2f57d4; }
.grid.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.card { padding: 24px; }
.inline-space { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.counter-badge, .count-bubble {
  min-width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(79,124,255,0.14), rgba(124,228,197,0.24));
}
.counter-badge.full { background: linear-gradient(135deg, rgba(255,143,199,0.2), rgba(255,196,117,0.32)); }
.field-label {
  display:block;
  margin-bottom:10px;
  font-size: 13px;
  font-weight: 700;
}
.select-input, .text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  padding: 15px 16px;
  outline: none;
}
.restaurant-grid, .final-list {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
.restaurant-tile, .final-choice {
  text-align:left;
  border: 1px solid rgba(24, 32, 56, 0.08);
  background: rgba(255,255,255,0.82);
  border-radius: 22px;
  padding: 16px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.restaurant-tile:hover, .final-choice:hover, .ghost-button:hover, .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(58,74,112,0.12);
}
.restaurant-tile.selected, .final-choice.selected {
  border-color: rgba(79,124,255,0.35);
  background: linear-gradient(135deg, rgba(79,124,255,0.14), rgba(124,228,197,0.14));
}
.restaurant-tile:disabled, .final-choice:disabled { opacity: .48; cursor: not-allowed; }
.restaurant-name { display:block; font-weight: 700; margin-bottom: 8px; }
.selected-strip {
  margin-top: 16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  min-height: 42px;
}
.selected-strip.empty {
  align-items:center;
  color: var(--muted);
}
.chip {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:10px 14px;
  background: rgba(79,124,255,0.1);
  font-weight:700;
}
.ghost-button, .primary-button {
  border: none;
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 700;
  cursor:pointer;
}
.ghost-button { background: rgba(79,124,255,0.1); color: #2f57d4; }
.primary-button { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color:white; }
.accent-card { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(244,248,255,.96)); }
.summary-list { display:grid; gap:12px; margin-top: 18px; }
.summary-list.compact { margin-top: 6px; }
.summary-card {
  border:1px solid var(--line);
  border-radius:22px;
  background: rgba(255,255,255,0.88);
  padding:16px;
}
.summary-card.hot { border-color: rgba(79,124,255,0.14); }
.summary-top { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.names-line { margin-bottom:0; line-height:1.5; }
.locked-box {
  border: 1px dashed rgba(24,32,56,.16);
  border-radius: 22px;
  padding: 24px;
  background: rgba(255,255,255,.5);
  margin-top:16px;
}
.stack-form { display:grid; gap:12px; }
.dimmed { opacity: .92; }
@media (max-width: 980px) {
  .grid.two-up, .hero-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-shell { padding: 16px; }
  .restaurant-grid, .final-list { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
