:root {
  --ink: #17211b;
  --muted: #647069;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #dfe6df;
  --green: #176b45;
  --green-dark: #0e4d31;
  --mint: #e4f4ea;
  --orange: #ffb451;
  --shadow: 0 14px 35px rgba(23, 33, 27, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
button, select { font: inherit; }
button, select, a { outline-offset: 4px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100% - 1120px) / 2));
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 900; text-decoration: none; letter-spacing: -0.04em; }

select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.language-control select { width: auto; }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1rem 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, var(--mint), transparent 55%);
}

.hero h1 {
  max-width: 760px;
  margin: 0.25rem auto 1rem;
  font-size: clamp(2.65rem, 9vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p:not(.eyebrow) { max-width: 620px; margin: 0 auto 1.6rem; color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green); background: var(--mint); }
.button:disabled { cursor: wait; opacity: 0.55; }

.ad-placeholder {
  display: grid;
  place-items: center;
  max-width: 760px;
  min-height: 80px;
  margin: 1rem auto;
  color: #89918c;
  background: #f3f3ef;
  border: 1px dashed #c9cec9;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.section-shell, .decision-grid, .page-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-heading { margin-bottom: 1.25rem; }
.section-heading h2, .decision-card h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -0.045em; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.result-count { color: var(--muted); font-weight: 800; white-space: nowrap; }

.filter-grid {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.filter-grid label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.filter-grid .button { width: 100%; align-self: end; }

.restaurant-grid, .district-grid { display: grid; gap: 1rem; }

.restaurant-card, .decision-card, .district-card {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.restaurant-card h3 { margin: 0.35rem 0; font-size: 1.3rem; letter-spacing: -0.03em; }
.restaurant-card p { color: var(--muted); }
.restaurant-meta { color: var(--green); font-size: 0.8rem; font-weight: 900; }
.recommended { padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.9rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
.tags li { padding: 0.25rem 0.55rem; background: var(--mint); border-radius: 999px; color: var(--green-dark); font-size: 0.72rem; font-weight: 800; }

.decision-grid { display: grid; gap: 1rem; }
.decision-card { min-height: 300px; background: var(--mint); }
.decision-card p:not(.eyebrow) { color: var(--muted); }
.roulette-card { background: #fff1db; }
.decision-result { min-height: 70px; margin-top: 1.2rem; padding: 1rem; background: rgba(255, 255, 255, 0.72); border-radius: 12px; font-weight: 900; }
.roulette-result.is-spinning { animation: pulse 0.35s ease-in-out infinite alternate; }

.district-card { display: grid; gap: 0.25rem; color: var(--green-dark); text-decoration: none; }
.district-card span { font-size: 1.3rem; font-weight: 900; }
.district-card small { color: var(--muted); }

.header-nav { display: flex; align-items: center; gap: 0.8rem; }
.header-nav a { color: var(--muted); font-size: 0.85rem; font-weight: 800; text-decoration: none; }
.header-nav a:hover { color: var(--green); }

.page-hero { padding-top: 4.5rem; padding-bottom: 4rem; background: radial-gradient(circle at 20% 30%, var(--mint), transparent 48%); }
.page-hero h1 { max-width: 850px; margin: 0.25rem 0 1rem; font-size: clamp(2.65rem, 9vw, 5.5rem); line-height: 0.98; letter-spacing: -0.07em; }
.page-hero p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.1rem; }

.content-grid, .internal-link-grid, .featured-restaurant-grid { display: grid; gap: 1rem; }
.info-card, .cta-panel {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.info-card h3 { margin-top: 0; }
.info-card p { color: var(--muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; list-style: none; }
.pill-list li { padding: 0.45rem 0.7rem; color: var(--green-dark); background: var(--mint); border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.featured-restaurant-grid .restaurant-card { display: flex; flex-direction: column; }
.featured-restaurant-grid .restaurant-card .button { margin-top: auto; align-self: flex-start; }
.cta-panel { text-align: center; background: var(--mint); }
.cta-panel h2 { margin-top: 0; font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -0.045em; }
.internal-link-grid .district-card { min-height: 110px; }

.empty-state { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; }

footer { margin-top: 3rem; padding: 2rem 1rem; text-align: center; color: var(--muted); background: var(--ink); }
footer strong { color: white; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes pulse { from { transform: scale(0.98); } to { transform: scale(1.02); } }

@media (min-width: 700px) {
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .restaurant-grid, .district-grid { grid-template-columns: repeat(3, 1fr); }
  .decision-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .internal-link-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-restaurant-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .filter-grid { grid-template-columns: repeat(6, 1fr); }
  .filter-grid .button { grid-column: 1 / -1; width: auto; justify-self: end; }
  .featured-restaurant-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
