.food-game {
  --food-peach: #f3d7aa;
  --food-green: #a5c6b5;
  max-width: 1200px;
  margin: 0 auto;
}
.food-game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 30px;
}
.food-game-heading h1 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -2px;
  margin: 8px 0 12px;
}
.food-game-heading h1 span {
  color: var(--accent);
}
.food-game-heading p {
  margin: 0;
}
.food-game-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.food-preferences {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.food-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.food-section-heading h2 {
  margin: 0;
  font-size: 23px;
}
.food-section-heading .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.food-preferences fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.food-pref-group {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.food-pref-group h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.food-pref-group p {
  font-size: 12px;
  margin: 0;
}
.food-options {
  flex-wrap: wrap;
  overflow: visible;
  padding: 10px 0 0;
}
.food-options button {
  font-size: 12px;
}
.food-options button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
}
.avoid-options button[aria-pressed='true'] {
  background: #f8e8df;
  color: #8d382a;
  border-color: #cb8e77;
  text-decoration: line-through;
}
.food-pref-group p.help {
  margin-top: 10px;
  font-size: 11px;
}
.food-prefs-toggle {
  display: none;
}
.food-roulette {
  position: relative;
  text-align: center;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 35%, #f5eddd 0%, #eeeee6 60%, #e8ede6);
  border: 1px solid #e3e4d8;
  padding: 28px 24px 24px;
  overflow: hidden;
}
.wheel-scene {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  margin: 24px auto 20px;
  z-index: 0;
}
.food-wheel {
  position: absolute;
  inset: 8%;
  border: 9px solid #fffaf0;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px #243d371a,
    0 20px 40px #243d3720;
  will-change: transform;
}
.food-wheel.is-idle {
  animation: wheel-hello 5s ease-in-out infinite;
}
.wheel-pointer {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 36px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--accent);
  z-index: 4;
  filter: drop-shadow(0 3px 3px #0002);
}
.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 102px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-110px)
    rotate(calc(-1 * var(--angle)));
  text-align: center;
  overflow-wrap: normal;
}
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75px;
  height: 75px;
  transform: translate(-50%, -50%);
  background: var(--paper);
  border: 6px solid white;
  border-radius: 50%;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  box-shadow: 0 4px 12px #243d3726;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -4px;
  padding-right: 5px;
}
.wheel-hub b {
  color: var(--accent);
}
.wheel-orbit {
  position: absolute;
  border: 1px dashed #243d3730;
  border-radius: 50%;
  inset: 1%;
  z-index: -1;
}
.orbit-two {
  inset: -4%;
  border: 1px solid #243d370b;
}
.spin-status {
  min-height: 44px;
  font-size: 14px;
  margin: 0 0 12px;
}
.spin-button {
  min-height: 58px;
  border-radius: 18px;
  width: min(100%, 330px);
  font-size: 18px;
  justify-content: space-between;
  padding: 14px 22px;
  box-shadow: 0 8px 20px #b7482f24;
}
.spin-button span {
  font-size: 26px;
}
.spin-disclaimer {
  max-width: 360px;
  margin: 14px auto 0;
  font-size: 11px;
}
.food-result {
  scroll-margin-top: 24px;
}
.food-result:empty {
  display: none;
}
.food-celebration {
  position: relative;
  text-align: center;
  padding: 46px 20px 24px;
  overflow: hidden;
}
.food-celebration h2 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 500;
  margin: 12px 0;
}
.food-celebration .eyebrow {
  color: var(--accent);
}
.food-celebration p {
  font-size: 15px;
}
.food-result .eat-card {
  max-width: 850px;
  margin: 0 auto;
}
.food-result .eat-card h3 {
  font-size: 24px;
}
.food-result .eat-card .eat-copy {
  padding: 24px;
}
.food-result .eat-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.food-nearby {
  margin: 48px 0 30px;
}
.food-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.food-dish-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}
.food-nearby-item {
  min-width: 0;
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  left: calc(8% + var(--i) * 7%);
  top: -10px;
  width: 7px;
  height: 12px;
  background: var(--confetti);
  animation: confetti-fall 1.6s ease-out both;
  animation-delay: calc(var(--i) * 25ms);
}
@keyframes wheel-hello {
  0%,
  100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}
@keyframes confetti-fall {
  from {
    transform: translateY(-10px) rotate(0);
    opacity: 1;
  }
  to {
    transform: translateY(160px) rotate(200deg);
    opacity: 0;
  }
}
@media (max-width: 800px) {
  .food-game-heading {
    margin: 10px 0 18px;
    gap: 10px;
  }
  .food-game-heading h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }
  .food-game-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .food-game-heading p {
    font-size: 12px;
  }
  .food-game-heading > a {
    font-size: 11px;
    padding: 8px;
    white-space: nowrap;
  }
  .food-game-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .food-game-layout > section {
    width: 100%;
  }
  .food-prefs-toggle {
    display: inline-flex;
    font-size: 12px;
    margin-bottom: 14px;
    width: 100%;
    justify-content: space-between;
  }
  .food-preferences {
    padding: 18px;
    max-height: 60svh;
    overflow: auto;
  }
  .food-preferences .food-prefs-toggle {
    margin: 0;
  }
  .food-preferences .actions {
    flex-wrap: wrap;
  }
  .food-roulette {
    padding: 20px 16px;
    border-radius: 24px;
  }
  .food-roulette > .eyebrow {
    font-size: 9px;
  }
  .wheel-scene {
    max-width: 320px;
    margin: 12px auto;
  }
  .wheel-label {
    font-size: 10px;
    width: 76px;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-82px)
      rotate(calc(-1 * var(--angle)));
  }
  .wheel-hub {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }
  .spin-status {
    font-size: 12px;
    min-height: 36px;
  }
  .spin-button {
    min-height: 52px;
    font-size: 16px;
  }
  .food-result .eat-card {
    display: block;
  }
  .food-result .eat-card .eat-media {
    max-height: 180px;
  }
  .food-result .eat-card .eat-cover {
    height: 180px;
  }
  .food-result .eat-copy {
    padding: 18px;
  }
  .food-result .eat-copy .actions > * {
    flex: 1;
  }
  .food-section-heading h2 {
    font-size: 20px;
  }
  .food-section-heading button {
    font-size: 11px;
    padding: 8px;
  }
  .food-nearby-grid {
    grid-template-columns: 1fr;
  }
  .food-nearby {
    margin-top: 32px;
  }
}
@media (max-width: 350px) {
  .wheel-label {
    font-size: 9px;
    width: 66px;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-67px)
      rotate(calc(-1 * var(--angle)));
  }
  .food-wheel {
    border-width: 7px;
  }
  .wheel-hub {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
  .food-game-heading h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .food-wheel.is-idle,
  .confetti i {
    animation: none;
  }
  .confetti {
    display: none;
  }
}
