* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --paper: #fbf7ee;
  --white: #fffdf8;
  --ink: #203a2b;
  --muted: #526257;
  --line: #dddace;
  --orange: #e96533;
  --lime: #d9ef84;
  --pitch: #2b4b39;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 16px/1.55 var(--body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; }
h2 { font-size: clamp(2.5rem,6vw,3.75rem); letter-spacing: -.015em; }
h3 { font-size: 1.75rem; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #bb4b25; outline-offset: 4px; }
.site-width { width: min(100% - 40px, 1060px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 10px; background: var(--lime); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header-inner { min-height: 68px; }
.brand { display: inline-flex; text-decoration: none; align-items: center; gap: 8px; font: 800 1.9rem/1 var(--display); white-space: nowrap; }
.brand span { margin-left: -7px; color: #a5401c; }
nav { display: flex; align-items: center; gap: clamp(14px, 3.4vw, 34px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .86rem; font-weight: 700; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.arena { padding: 33px 0 32px; color: var(--paper); background-color: var(--pitch); background-image:
  radial-gradient(circle at 50% 34%,transparent 0 167px,#f4f4dc17 168px 169px,transparent 170px),
  repeating-linear-gradient(90deg,#ffffff04 0 9%,#00000006 9% 18%);
  position: relative; isolation: isolate; }
.arena::before { position: absolute; content: ""; pointer-events: none; inset: 24px max(12px, calc((100% - 1350px) / 2)); border: 1px solid #fbf7ee22; border-radius: 8px; z-index: -1; }
.hero { margin: 0 auto 26px; text-align: center; }
.hero-label { text-transform: uppercase; color: var(--lime); font-size: .72rem; letter-spacing: .18em; font-weight: 800; }
.hero h1 { font-size: clamp(4.4rem, 10vw, 7.5rem); line-height: .88; margin: .06em 0 .12em; letter-spacing: -.035em; }
.hero h1 span { color: #fa885c; }
.hero > p:last-child { font-size: clamp(.88rem, 2vw, 1.05rem); }
.game-board { color: var(--ink); max-width: 850px; margin-inline: auto; padding: 16px 19px 12px; background: var(--paper); border: 1px solid #fff8; border-radius: 23px; box-shadow: 0 12px 32px #0c281f50; }
.game-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.game-utilities { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.game-utilities .text-button { padding-inline: 8px; }
#invite-button { color: #294e38; text-decoration: underline; text-underline-offset: 3px; }
.mode-picker { display: flex; gap: 3px; background: #efebe0; padding: 3px; border-radius: 12px; }
.mode-picker button, .text-button { border: none; border-radius: 8px; padding: 0 13px; min-height: 44px; background: none; color: var(--ink); font-size: .81rem; font-weight: 800; }
.mode-picker button[aria-pressed=true] { background: var(--ink); color: white; }
.mode-picker button[aria-pressed=false]:hover, .text-button:hover { background: #e2e7d9; }
.scoreboard { min-height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: var(--muted); font-size: .77rem; font-weight: 800; }
#score-label { text-align: right; white-space: nowrap; }
#score-label strong { color: var(--ink); font-size: .97rem; }
.rounds { margin: 0; padding: 0; display: flex; gap: 5px; list-style: none; }
.rounds li { width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center; background: #e7e5d8; line-height: 1; color: white; font-size: .68rem; }
.rounds li[aria-current] { outline: 2px solid var(--ink); outline-offset: 1px; }
.rounds li.correct { background: #306242; }
.rounds li.missed { background: #a94631; }
.match-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); position: relative; gap: 17px; }
.match-pair::after { position: absolute; top: 43%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; content: "VS"; background: var(--lime); color: var(--ink); display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--paper); width: 43px; height: 43px; font: 800 1.2rem/1 var(--display); }
.dish { border: 2px solid transparent; background: var(--white); padding: 0; min-width: 0; color: inherit; text-align: left; border-radius: 15px; overflow: hidden; outline-offset: 2px; box-shadow: 0 0 0 1px var(--line); transition: border-color .15s, box-shadow .15s; }
.dish:not(:disabled):hover { border-color: #436a48; box-shadow: 0 3px 10px #203a2b26; }
.dish.winner { border-color: #397550; }
.dish.loser.picked { border-color: #a94631; }
.dish-photo, .photo-placeholder { aspect-ratio: 1.8; background: #ddd5be; display: block; position: relative; overflow: hidden; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-key, .rating { position: absolute; background: var(--white); color: var(--ink); font-weight: 800; border-radius: 8px; padding: 3px 8px; top: 9px; left: 9px; font-size: .82rem; box-shadow: 0 2px 6px #172e2233; }
.rating { left: auto; right: 9px; }
.dish-badges { display: flex; flex-wrap: wrap; gap: 4px; position: absolute; bottom: 8px; left: 8px; right: 8px; }
.dish-badges > span { border-radius: 5px; padding: 2px 6px; font-size: .68rem; font-weight: 800; background: var(--white); color: var(--ink); }
.dish-badges .winner-badge { background: var(--lime); }
.winner .rating { background: var(--lime); }
.loser.picked .rating { background: #f7c4b6; }
.dish-details { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 13px; }
.dish-name { font: 800 clamp(1.22rem, 4vw, 2rem)/.98 var(--display); }
.dish-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; color: var(--muted); font-size: .78rem; }
.dish-prices { display: grid; justify-items: end; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish-prices strong { color: var(--ink); font-size: .94rem; }
.local-price { font-size: .72rem; }
.match-bottom { min-height: 80px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.match-bottom p { font-size: .84rem; font-weight: 700; }
.match-bottom .round-note { color: var(--muted); font-weight: 500; }
#next:disabled { visibility: hidden; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 44px; padding: 8px 14px; border-radius: 9px; font-size: .84rem; font-weight: 800; text-decoration: none; }
.primary-button { background: var(--lime); color: var(--ink); border: 1px solid #a8bb68; }
.primary-button:hover { background: #c9e66a; }
.secondary-button { background: var(--white); color: var(--ink); border: 1px solid #babfb1; }
.secondary-button:hover { background: #e8ebde; }
#next { flex-shrink: 0; }
.game-foot { max-width: 850px; margin: 9px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: .71rem; color: #e0e8db; }
.result { text-align: center; display: grid; justify-items: center; gap: 10px; min-height: 365px; align-content: center; padding: 16px 0; }
.result-label { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-size: .73rem; font-weight: 800; }
.result h2 { font-size: clamp(2.5rem,7vw,3.5rem); }
.final-score { font: 800 5rem/.9 var(--display); }
.result-rounds li { width: 22px; height: 22px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#share-status { min-height: 1.4em; font-size: .82rem; }
.manual-share { max-width: 100%; font-size: .8rem; }
.manual-share input { display: block; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); }
dialog { width: min(420px, calc(100% - 36px)); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 25px; }
dialog::backdrop { background: #0d241acc; }
dialog h2 { font-size: 2.3rem; }
.dialog-close { position: absolute; right: 7px; top: 7px; font-size: 1.3rem; }
dialog dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
dialog dl div { background: var(--white); padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
dialog dd { margin: 0; font: 800 1.8rem/1 var(--display); }
dialog > p, .script-note { font-size: .8rem; color: var(--muted); }
#invite > p, #restart > p { margin-top: 12px; }
.invite-field { display: block; margin: 14px 0 4px; font-size: .8rem; font-weight: 800; }
#invite-link { display: block; width: 100%; padding: 9px; border: 1px solid #babfb1; border-radius: 6px; margin-bottom: 10px; }
#invite-status { min-height: 1.25em; }
.restart-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.content-band { padding: 55px 0; }
.content-band h2 + p { margin-top: 13px; }
.content-band p, .legal p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; margin: 24px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--white); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 11px; border-radius: 50%; background: var(--lime); font: 800 1.2rem/1 var(--display); }
.steps h3, .article-grid h3 { margin-bottom: 8px; }
.strategy { background: #ecefdf; border-block: 1px solid #d9decb; }
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 34px; margin-top: 24px; }
.article-grid p + p { margin-top: 10px; }
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 25px; }
.faq-layout h2 { margin-bottom: 14px; }
details { border-bottom: 1px solid var(--line); padding: 0 0 5px; }
details p { margin: 0 0 12px; }
summary { min-height: 47px; padding: 11px 0; font-weight: 800; cursor: pointer; }
.site-footer { padding: 25px 0; border-top: 1px solid var(--line); background: #efeadf; }
.site-footer p { color: var(--muted); margin-top: 5px; font-size: .81rem; }
.legal { padding: 55px 0 75px; max-width: 770px; }
.legal h1 { font-size: clamp(3rem,8vw,5rem); margin-bottom: 18px; }
.legal h2 { font-size: 2rem; margin: 26px 0 8px; }
.legal p + p { margin-top: 12px; }
@media (max-width: 660px) {
  .site-width { width: calc(100% - 28px); }
  .header-inner { min-height: 56px; gap: 8px; }
  .brand { font-size: 1.55rem; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { margin-left: -5px; }
  nav { gap: 10px; }
  nav a { font-size: .72rem; }
  .arena { padding: 25px 0 20px; }
  .arena::before { inset: 12px 6px; }
  .hero { margin-bottom: 19px; }
  .game-board { padding: 9px 9px 5px; border-radius: 16px; }
  .game-bar { padding-bottom: 7px; }
  .mode-picker button, .text-button { padding-inline: 8px; }
  .scoreboard { min-height: 45px; font-size: .69rem; gap: 5px; }
  .rounds { gap: 3px; }
  .rounds li { width: 10px; height: 11px; font-size: .57rem; }
  .match-pair { gap: 9px; }
  .match-pair::after { width: 31px; height: 31px; font-size: .85rem; }
  .dish { border-radius: 10px; }
  .dish-photo, .photo-placeholder { aspect-ratio: 1.07; }
  .dish-details { padding: 8px 7px 9px; gap: 5px; }
  .dish-meta, .match-bottom p { font-size: .73rem; }
  .match-bottom { grid-template-columns: 1fr; grid-template-rows: minmax(58px, auto) 44px; gap: 5px; padding: 6px 0; align-items: start; }
  .round-feedback { align-self: center; }
  .match-bottom #next { width: 100%; }
  .dish-badges { bottom: 5px; left: 5px; right: 5px; }
  .dish-badges > span { padding-inline: 4px; }
  .dish-key, .rating { font-size: .72rem; padding: 2px 5px; top: 5px; }
  .dish-key { left: 5px; }
  .rating { right: 5px; }
  .result-rounds li { width: 18px; height: 18px; }
  .content-band { padding: 37px 0; }
  .steps, .article-grid, .faq-layout { grid-template-columns: 1fr; gap: 13px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
