.food-game { color: var(--ink); }
.food-status-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 22px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; }
.food-status-bar p { margin: 5px 0 0; font-size: 19px; font-weight: 800; }
.food-score { text-align: right; flex: 0 0 auto; }
.food-score > span { display: block; color: var(--muted); font-size: 12px; }
.food-score strong { display: block; font-family: var(--font-heading); font-size: 34px; line-height: 1.3; }
.food-score strong small { font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--muted); }
.food-score-track { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin: 10px 0 19px; padding: 0; list-style: none; }
.food-score-track li { padding: 9px 6px; text-align: center; font-size: 13px; font-weight: 900; color: var(--muted); background: #e8ebe6; border: 1px solid #44251e30; border-radius: 7px; }
.food-score-track .is-current { color: #fff; background: var(--green); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.food-score-track .is-passed { color: #857770; background: #f1efed; text-decoration: line-through; }
.food-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 28px; align-items: start; }
.food-photo-panel { margin: 0; min-width: 0; }
.food-photo-frame { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #e6ebe4; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.food-photo-frame > img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .2s; }
.food-photo-frame.is-loaded > img { opacity: 1; }
.food-image-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; padding: 24px; text-align: center; background: #e6ebe4; }
.food-image-message > span { font-size: 38px; color: var(--green); line-height: 1; }
.food-image-message p { margin: 0; max-width: 270px; color: var(--muted); font-size: 14px; font-weight: 700; }
.food-photo-frame.is-failed .food-image-message > span { color: var(--orange); }
.food-photo-credit { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.food-photo-credit summary { cursor: pointer; width: fit-content; padding: 4px 0; }
.food-photo-credit summary:hover { color: var(--ink); }
.food-photo-credit p { margin: 4px 0 0; padding-left: 14px; overflow-wrap: anywhere; }
.food-photo-credit a, .food-dish-source a { color: var(--orange); text-underline-offset: 3px; }
.food-play-panel { min-width: 0; padding: 22px; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); }
.food-hint-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.food-hint-heading h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.food-hint-heading > span { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #44251e40; border-radius: 5px; color: var(--green); background: var(--soft-green); font-size: 10px; font-weight: 900; }
.food-intro { margin: 13px 0 18px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.food-hints { display: grid; gap: 9px; }
.food-hints:not(:empty) { margin-bottom: 20px; }
.food-hint { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 10px; align-items: start; padding: 12px; background: var(--soft-green); border: 1px solid #587c5040; border-radius: 8px; }
.food-hint-icon { display: grid; place-items: center; width: 32px; height: 32px; font-size: 21px; font-weight: 900; color: var(--green); background: #fff; border: 1px solid #587c5070; border-radius: 7px; }
.food-hint-label { font-size: 10px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .055em; }
.food-hint p { margin: 3px 0 0; font-size: 14px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.food-guess-form > label, .food-select-field > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 900; }
.food-guess-form input, .food-guess-form select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 8px; font-family: var(--font-body); font-size: 16px; }
.food-guess-form input:focus, .food-guess-form select:focus { outline: 3px solid #b7422940; outline-offset: 2px; }
.food-guess-form input[aria-invalid="true"] { border-color: var(--orange); }
.food-guess-form input:disabled, .food-guess-form select:disabled { background: #f3f4f2; color: #8d827c; cursor: wait; }
.food-select-field { margin-top: 14px; }
.food-input-note { margin: 9px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.food-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.food-actions .button { min-height: 44px; }
.food-hint-cost { color: var(--orange); margin-left: 5px; }
.food-feedback { margin: 14px 0 0; min-height: 22px; color: var(--green); font-size: 12px; line-height: 1.6; font-weight: 800; }
.food-feedback.is-error { color: var(--orange); }
.food-guesses:empty { display: none; }
.food-guess-label { display: block; margin-top: 16px; color: var(--muted); font-size: 11px; font-weight: 800; }
.food-guesses ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 7px 0 0; }
.food-guesses li { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #f5e7e0; border-radius: 5px; color: var(--orange); font-size: 11px; font-weight: 800; }
.food-guesses li.is-correct { color: var(--green); background: var(--soft-green); }
.food-results { margin-top: 28px; padding: 26px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.food-result-heading { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 15px; align-items: center; }
.food-result-symbol { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green); background: var(--soft-green); border: 1px solid var(--ink); border-radius: 50%; font-size: 23px; font-weight: 900; }
.food-result-heading h2 { margin: 5px 0 0; font-size: 22px; line-height: 1.3; }
.food-result-score { font-family: var(--font-heading); font-size: 37px; white-space: nowrap; }
.food-result-score small { font-family: var(--font-body); color: var(--muted); font-size: 13px; }
.food-game[data-food-state="lost"] .food-result-symbol { color: var(--orange); background: var(--soft-orange); }
.food-reveal { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 19px; align-items: start; margin-top: 26px; padding-top: 23px; border-top: 1px solid #44251e30; }
.food-result-flag { display: block; width: 64px; height: 44px; padding: 4px; object-fit: contain; border: 1px solid #44251e60; border-radius: 5px; background: #fff; }
.food-result-country { color: var(--green); font-size: 13px; font-weight: 900; }
.food-reveal h3 { margin: 6px 0 10px; font-size: 25px; }
.food-reveal p { max-width: 740px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.food-reveal .food-dish-source { margin-top: 11px; font-size: 12px; }
.food-result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.food-next-day, .food-daily-note { margin: 17px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.food-daily-note { text-align: center; margin: 25px 0 0; }
.food-card .card-art, .card-art.food { background: #f1dfd5; }
.food-card-art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 150px; transform: rotate(-6deg); }
.food-card-art > svg { width: 76%; max-width: 190px; height: auto; overflow: visible; }
.food-art-question { position: absolute; top: 21%; right: 23%; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; background: var(--surface); box-shadow: 2px 2px 0 var(--ink); color: var(--orange); font-family: var(--font-heading); font-size: 22px; transform: rotate(12deg); }
.food-game [hidden] { display: none !important; }
.food-game button:focus-visible, .food-game a:focus-visible, .food-photo-credit summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@media (max-width: 900px) {
  .food-layout { gap: 20px; }
  .food-play-panel { padding: 18px; }
  .food-hint-heading { flex-wrap: wrap; gap: 7px; }
}
@media (max-width: 700px) {
  .food-layout { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .food-status-bar { padding: 17px 18px; gap: 12px; }
  .food-status-bar p { font-size: 16px; }
  .food-score strong { font-size: 30px; }
  .food-score > span { font-size: 10px; }
  .food-score-track { gap: 6px; margin-bottom: 21px; }
  .food-photo-frame { aspect-ratio: 4 / 3; }
  .food-play-panel { padding: 21px; }
  .food-hint-heading { flex-wrap: nowrap; }
  .food-results { padding: 21px; }
  .food-result-heading { grid-template-columns: 36px minmax(0,1fr); gap: 12px; }
  .food-result-symbol { width: 34px; height: 34px; }
  .food-result-heading h2 { font-size: 20px; }
  .food-result-score { grid-column: 2; font-size: 32px; }
  .food-reveal { grid-template-columns: 48px minmax(0,1fr); gap: 13px; }
  .food-result-flag { width: 48px; height: 34px; }
  .food-reveal h3 { font-size: 22px; }
}
@media (max-width: 380px) {
  .food-status-bar { padding: 15px; }
  .food-status-bar .eyebrow { font-size: 9px; }
  .food-status-bar p { font-size: 14px; }
  .food-score strong { font-size: 27px; }
  .food-play-panel { padding: 17px; }
  .food-hint-heading { flex-wrap: wrap; }
  .food-actions { flex-direction: column; }
  .food-actions .button { width: 100%; justify-content: center; }
  .food-results { padding: 17px; }
  .food-result-actions { flex-direction: column; }
  .food-result-actions .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .food-photo-frame > img { transition: none; } }
