/* The menu picker (.eat*, the magazine's #what) and the cafeteria summary (.kaist-*,
   #kaistToday) in mukbang.html. choose.html only redirects there. */

.choose-picker {
  margin-top: var(--space-8);
}

.eat {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px 36px;
  align-items: start;
  min-width: 0;
}

.eat-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8402a;
  margin-bottom: 10px;
}

.eat-copy h2,
.eat-question {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.eat-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #6b655d;
}

.eat-panel {
  min-width: 0;
}

/* Until js/food-picker.js has drawn the picker (after its dish packs load), the panel keeps the picker's
   height, so the board below does not jump; choose.html opens the page right here (owner 2026-10-16,
   layout shift). */
.eat-panel:empty {
  min-height: 378px;
}

.eat-home {
  min-width: 0;
}

.eat-hunger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.eat-hchip {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(30, 29, 26, 0.14);
  background: #fffdf8;
  color: #1e1d1a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  border-radius: 2px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.eat-hchip.is-on,
.eat-hchip[aria-pressed="true"],
.eat-fb.is-on {
  border-color: #1e1d1a;
  box-shadow: inset 3px 0 0 #f45e45;
  background: #fff8f1;
}

.eat-hchip:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(30, 29, 26, 0.38);
}

.eat-hchip:disabled,
.eat-spinbtn:disabled {
  cursor: default;
  opacity: 0.7;
}

.eat-hchip:focus-visible,
.eat-spinbtn:focus-visible,
.eat-btn:focus-visible,
.eat-textbtn:focus-visible,
.eat-fb:focus-visible,
.eat-alt:focus-visible {
  outline: 2px solid #c8402a;
  outline-offset: 2px;
}

.eat-wheel {
  width: min(100%, 420px);
  margin: 2px auto 0;
  user-select: none;
}

.eat-slot-host {
  width: 100%;
}

.eat-slot {
  --slot-nudge: 0px;
  position: relative;
  margin: 0 auto;
  padding: 14px 14px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #6a5230 0%, #3f2a1c 18%, #2a1c14 100%);
  box-shadow:
    0 18px 40px rgba(46, 33, 25, 0.18),
    inset 0 1px 0 rgba(212, 184, 122, 0.35);
  transform: translateX(var(--slot-nudge));
  transition: transform 180ms ease;
}

.eat-slot-top,
.eat-slot-bottom {
  height: 10px;
  margin: 0 8px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c4ae72, #9a7c45 55%, #6a522c);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.35);
}

.eat-slot-bottom {
  margin: 10px 8px 0;
  height: 8px;
  opacity: 0.85;
}

.eat-slot-face {
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, #1e1b17, #141210);
  box-shadow: inset 0 0 0 1px rgba(185, 154, 82, 0.28);
}

.eat-slot-window {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  height: 168px;
  perspective: 900px;
  transform-style: preserve-3d;
  overflow: hidden;
  border-radius: 12px;
  background: #fcfaf5;
}

.eat-reel {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.eat-reel-ring {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 54px;
  margin-top: -27px;
  transform-style: preserve-3d;
  transform: rotateX(0deg);
}

.eat-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  padding: 0 8px;
  color: #191714;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1.25;
}

.eat-reel[data-reel="1"] .eat-symbol {
  font-size: 15px;
  font-weight: 800;
}

.eat-reel.is-fast .eat-symbol {
  filter: blur(0.55px);
  opacity: 0.72;
}

.eat-payline {
  pointer-events: none;
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.eat-payline span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b94632;
  box-shadow: 0 0 0 3px rgba(185, 70, 50, 0.12);
}

.eat-payline b {
  flex: 1;
  height: 1px;
  margin: 0 6px;
  background: rgba(185, 154, 82, 0.55);
}

.eat-slot.is-spinning .eat-payline {
  opacity: 0.35;
}

.eat-slot.is-payline .eat-payline b {
  background: #b94632;
  opacity: 1;
}

.eat-slot.is-hit-0 { --slot-nudge: 0.5px; }
.eat-slot.is-hit-1 { --slot-nudge: 0.8px; }
.eat-slot.is-hit-2 { --slot-nudge: 1.4px; }

.eat-hero--slot {
  animation: eatSlotReveal 320ms ease;
}

@keyframes eatSlotReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .eat-hero--slot,
  .eat-slot {
    animation: none;
    transition: none;
  }
}

.eat-wheel-hint {
  margin: 6px auto 0;
  max-width: 22rem;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: #3f3a34;
}

.eat-spinbtn {
  width: min(100%, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #191714;
  color: #fffaf0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(25, 23, 20, 0.12);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.eat-spinbtn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  transition: transform 160ms ease;
}

.eat-spinbtn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #24211c;
  box-shadow: 0 10px 20px rgba(25, 23, 20, 0.16);
}

.eat-spinbtn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(25, 23, 20, 0.12);
}

.eat-spinbtn:hover:not(:disabled) .eat-spinbtn-icon {
  transform: translateX(3px);
}

.eat--result {
  grid-template-columns: minmax(0, 1fr);
}

.eat--result .eat-copy {
  display: none;
}

.eat-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eat-textbtn {
  padding: 0;
  border: none;
  background: transparent;
  color: #6b655d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.eat-textbtn:hover {
  color: #c8402a;
}

.eat-btn:hover,
.eat-alt:hover {
  border-color: rgba(30, 29, 26, 0.38);
  transform: translateY(-2px);
}

.eat-hero h3 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.eat-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #6b655d;
  margin-bottom: 8px;
}

.eat-whyline {
  margin-top: 12px;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.6;
  color: #5c5850;
}

.eat-hero h3:focus {
  outline: none;
}

.eat-hero h3:focus-visible {
  outline: 2px solid #1e1d1a;
  outline-offset: 4px;
}

.eat-reasons-label {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6d665e;
}

.eat-reasons {
  margin: 6px 0 0;
  padding: 0 0 0 18px;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.6;
  color: #1e1d1a;
}

.eat-scope {
  margin-top: 12px;
  max-width: 34rem;
  padding: 8px 10px;
  border-left: 3px solid #d9c9b5;
  background: #f5f1e8;
  font-size: 13px;
  line-height: 1.55;
  color: #5c5850;
}

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

.eat-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.eat-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(30, 29, 26, 0.18);
  background: #fffdf8;
  color: #1e1d1a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.eat-btn--main {
  background: #1e1d1a;
  color: #fffdf8;
  border-color: #1e1d1a;
}

.eat-btn[aria-disabled="true"] {
  cursor: default;
  transform: none;
}

.eat-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.eat-fb {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(30, 29, 26, 0.14);
  background: #fffdf8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.eat-alts-label {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b655d;
}

.eat-alts {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid rgba(30, 29, 26, 0.12);
}

.eat-alt {
  display: flex;
  gap: 14px;
  align-items: baseline;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(30, 29, 26, 0.12);
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.eat-alt span {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #6b655d;
}

.eat-alt strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.eat-empty {
  color: #6b655d;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .eat-hchip,
  .eat-spinbtn,
  .eat-btn {
    transition: none;
  }
  .eat-hchip:hover,
  .eat-spinbtn:hover,
  .eat-btn:hover,
  .eat-alt:hover {
    transform: none;
  }
  .eat-spinbtn:hover:not(:disabled) .eat-spinbtn-icon {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .eat {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 360px) {
  .eat-hunger {
    grid-template-columns: minmax(0, 1fr);
  }
}

.kaist-today {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(30, 29, 26, 0.12);
}

.kaist-head h2 {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.kaist-date {
  margin-top: 6px;
  color: #5c564c;
  font-size: 14px;
}

.kaist-date.is-stale {
  display: inline-block;
  padding: 6px 10px;
  border-left: 3px solid #b45309;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 600;
}

.kaist-resto:focus-visible,
.kaist-meal:focus-visible,
.kaist-links a:focus-visible {
  outline: 2px solid #1e1d1a;
  outline-offset: 2px;
}

.kaist-restos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.kaist-resto,
.kaist-meal {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(30, 29, 26, 0.14);
  background: #fffdf8;
  color: #191714;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 12px;
}

.kaist-resto.is-on,
.kaist-meal.is-on {
  background: #191714;
  color: #fffaf0;
  border-color: #191714;
}

.kaist-meals {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.kaist-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fcfaf5;
  box-shadow: 0 8px 24px rgba(46, 33, 25, 0.06);
}

.kaist-card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.kaist-card li {
  padding: 4px 0;
  line-height: 1.45;
}

.kaist-meta {
  margin-top: 10px;
  color: #5c564c;
  font-size: 13px;
}

.kaist-empty {
  margin-top: 16px;
  color: #5c564c;
}

.kaist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 12px;
}

.kaist-to-hub,
.kaist-to-slot {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.kaist-to-hub {
  color: #1e1d1a;
}

.kaist-to-hub:hover,
.kaist-to-slot:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
