/* =========================================================
   SSO'S HUB — 06 오늘 뭐 먹지? 메뉴 추천
   다크 블랙핑크 테마 · 제목·메뉴명은 배달의민족 주아체(Jua)
   ========================================================= */

:root {
  --font-jua: 'Jua', 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.food-page { max-width: 1180px; }

/* 이 페이지는 카드마다 테이프 장식이 있어 오른쪽 책갈피 리본은 숨깁니다 */
.bookmark { display: none; }

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

/* ── 머리말 ──────────────────────────────────────────── */

.subhead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.subhead-note {
  margin: 0;
  max-width: 34ch;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-4);
  word-break: keep-all;
}

.food-page .kicker { letter-spacing: .22em; }

/* 주아체: 제목·메뉴명·큰 숫자에만 */
.food-page .subhead h1 {
  font-family: var(--font-jua);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 46px);
  line-height: 1.16;
  letter-spacing: -.005em;
  color: #fff3f8;
  text-shadow: 0 0 26px rgba(255, 77, 141, .34);
}
.food-page .subhead .sub {
  font-family: var(--font-jua);
  font-size: 20px;
  color: var(--pink-3);
  letter-spacing: 0;
}
.food-page .subhead .sub::before {
  content: "🍽️ ";
  font-size: 17px;
}

/* ── 조건 필터 ───────────────────────────────────────── */

.cond {
  margin: 24px 0 0;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% -20%, rgba(255, 77, 141, .13), transparent 58%),
    linear-gradient(180deg, rgba(27, 21, 34, .92), rgba(18, 14, 23, .92));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.cond-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line-soft);
}
.cond-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  font-family: var(--font-jua);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
}
.cond-title em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--pink-2);
}
.cond-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.cond-count {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.cond-count b {
  font-family: var(--font-jua);
  font-size: 15px;
  font-weight: 400;
  color: var(--pink-2);
}
.cond-reset {
  padding: 7px 12px;
  min-height: 34px;
  border: 1px solid rgba(255, 105, 165, .28);
  border-radius: 999px;
  background: rgba(255, 77, 141, .07);
  color: var(--pink-3);
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}
.cond-reset:hover { background: rgba(255, 77, 141, .16); border-color: var(--line-strong); color: var(--pink-2); }

.cond-body {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}
.cond-row {
  display: flex;
  align-items: flex-start;
  gap: 10px 12px;
  min-width: 0;
}
.cond-label {
  flex: 0 0 74px;
  padding-top: 9px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--text-3);
  letter-spacing: -.01em;
}
.cond-label i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-4);
}
.cond-row--switch {
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 4px;
  border-top: 1px dashed var(--line-soft);
  margin-top: 2px;
}
.cond-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-4);
  word-break: keep-all;
}

/* ── 칩 ─────────────────────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.chip:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 77, 141, .1);
}
.chip:active { transform: scale(.97); }
.chip.is-on {
  border-color: transparent;
  background: linear-gradient(180deg, var(--pink-2), var(--pink));
  color: var(--on-pink);
  font-weight: 600;
  box-shadow: 0 10px 22px -16px var(--pink-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.chip--tag.is-on {
  background: linear-gradient(180deg, rgba(255, 117, 168, .28), rgba(255, 77, 141, .18));
  border-color: rgba(255, 105, 165, .55);
  color: #ffe1ec;
}
.chip--tag.is-on::before { content: "✓"; font-size: 11px; color: var(--pink-2); }
.chips--sm .chip { min-height: 32px; padding: 0 11px; font-size: 11.5px; }

/* ── 스위치 ─────────────────────────────────────────── */

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 23px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  transition: background .2s, border-color .2s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #8d8190;
  transition: transform .2s, background .2s;
}
.switch input:checked + .switch-track {
  border-color: transparent;
  background: linear-gradient(180deg, var(--pink-2), var(--pink));
}
.switch input:checked + .switch-track::after {
  transform: translateX(17px);
  background: #2b0a18;
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--pink-2);
  outline-offset: 3px;
}
.switch-txt {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
  word-break: keep-all;
}

/* ── 추천 방식 탭 ───────────────────────────────────── */

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

.fmode {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, #1b1622, #141019);
  color: var(--text-2);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, color .18s, box-shadow .18s;
}
.fmode:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: linear-gradient(180deg, #241c2d, #171220);
  color: var(--text);
}
.fmode-ico { flex: 0 0 auto; font-size: 21px; line-height: 1; }
.fmode-txt { display: block; min-width: 0; }
.fmode-txt b {
  display: block;
  font-family: var(--font-jua);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fmode-txt i {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fmode.is-on {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 117, 168, .26), rgba(255, 77, 141, .13));
  box-shadow: 0 14px 30px -22px var(--pink-glow), inset 0 0 0 1px rgba(255, 105, 165, .5);
}
.fmode.is-on .fmode-txt b { color: #fff2f7; }
.fmode.is-on .fmode-txt i { color: var(--pink-3); }

/* ── 무대 ───────────────────────────────────────────── */

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 14px;
  align-items: start;
}

.stage-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background:
    radial-gradient(110% 120% at 50% -20%, rgba(255, 77, 141, .12), transparent 60%),
    linear-gradient(180deg, rgba(26, 21, 33, .96), rgba(16, 13, 21, .96));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.pane { animation: pane-in .26s ease both; }
@keyframes pane-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.pane-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.btn--lg {
  min-height: 50px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: 999px;
}
.btn--sm { min-height: 36px; padding: 0 13px; font-size: 12px; }

.pane-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-4);
  word-break: keep-all;
}

.pane-empty {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 105, 165, .34);
  border-radius: 14px;
  background: rgba(255, 77, 141, .07);
  color: var(--pink-3);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
}

/* ── 룰렛 ───────────────────────────────────────────── */

.wheel-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 16px;
  align-items: center;
}

.wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  cursor: pointer;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, .55));
  touch-action: manipulation;
}
.wheel-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.wheel-wrap::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.wheel-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  z-index: 3;
  width: 0; height: 0;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 19px solid var(--pink);
  filter: drop-shadow(0 3px 8px rgba(255, 77, 141, .75));
  pointer-events: none;
}
.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #2c2130, #140f19 72%);
  box-shadow:
    0 0 0 1px rgba(255, 105, 165, .4),
    0 0 0 6px rgba(11, 9, 16, .7),
    0 10px 24px -12px #000;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.wheel-side { min-width: 0; }
.wheel-title {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-3);
}
.wheel-title em {
  font-style: normal;
  font-family: var(--font-jua);
  font-size: 13px;
  color: var(--pink-2);
}
.wheel-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.wheel-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-2);
  min-width: 0;
}
.wheel-list li .wl-no {
  flex: 0 0 15px;
  font-family: var(--font-jua);
  font-size: 11px;
  color: var(--pink-2);
}
.wheel-list li .wl-emoji { flex: 0 0 auto; font-size: 13px; }
.wheel-list li .wl-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wheel-list li.is-win {
  background: rgba(255, 77, 141, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 105, 165, .45);
  color: #fff1f6;
}

/* ── 빠른 뽑기 ──────────────────────────────────────── */

.draw-stage {
  display: grid;
  place-items: center;
  padding: 6px 0 2px;
}

.draw-card {
  position: relative;
  width: min(100%, 300px);
  padding: 26px 20px 24px;
  border: 1px solid rgba(255, 105, 165, .34);
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 50% -18%, rgba(255, 77, 141, .2), transparent 62%),
    linear-gradient(170deg, #1e1727, #120f17);
  text-align: center;
  box-shadow: 0 26px 50px -34px #000, inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: box-shadow .2s, border-color .2s;
}
.draw-card::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 64px; height: 13px;
  transform: translateX(-50%) rotate(-1.5deg);
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0) 0 6px, rgba(255, 255, 255, .12) 6px 12px),
    linear-gradient(180deg, rgba(255, 77, 141, .46), rgba(255, 77, 141, .26));
}
.draw-card.is-fresh { animation: draw-pop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes draw-pop {
  0% { transform: rotate(-3deg) scale(.92); opacity: .4; }
  60% { transform: rotate(1.2deg) scale(1.02); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.draw-card.is-win {
  border-color: rgba(255, 105, 165, .62);
  box-shadow: 0 30px 60px -32px var(--pink-glow), inset 0 0 0 1px rgba(255, 105, 165, .34);
}

.draw-kicker {
  margin: 0 0 10px;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink-2);
}
.draw-emoji {
  display: block;
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
}
.draw-name {
  margin: 12px 0 0;
  font-family: var(--font-jua);
  font-size: 27px;
  line-height: 1.25;
  color: #fff3f8;
  word-break: keep-all;
}
.draw-meta {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--text-3);
  word-break: keep-all;
}

/* ── 메뉴 월드컵 ────────────────────────────────────── */

.cup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.cup-round {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink-2), var(--pink));
  color: var(--on-pink);
  font-family: var(--font-jua);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 20px -14px var(--pink-glow);
}
.cup-progress {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 90px;
}
.cup-progress span {
  flex: 1 1 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  transition: background .2s;
}
.cup-progress span.is-done { background: var(--pink); box-shadow: 0 0 8px rgba(255, 77, 141, .6); }
.cup-progress span.is-now { background: rgba(255, 117, 168, .55); }
.cup-left {
  margin: 0;
  font-size: 11px;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
}

.cup-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.cup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 154px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background:
    radial-gradient(120% 110% at 50% -20%, rgba(255, 77, 141, .14), transparent 64%),
    linear-gradient(180deg, #1e1826, #141019);
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s, background .16s;
}
.cup-card:hover:not([disabled]) {
  transform: translateY(-3px);
  border-color: rgba(255, 105, 165, .6);
  box-shadow: 0 20px 36px -26px var(--pink-glow);
}
.cup-card:active:not([disabled]) { transform: translateY(-1px) scale(.99); }
.cup-card[disabled] { cursor: default; opacity: .72; }
.cup-emoji { font-size: 40px; line-height: 1; }
.cup-name {
  font-family: var(--font-jua);
  font-size: clamp(16px, 2.4vw, 21px);
  line-height: 1.25;
  color: #fff3f8;
  word-break: keep-all;
  text-align: center;
}
.cup-meta {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-4);
  text-align: center;
  word-break: keep-all;
}
.cup-vs {
  align-self: center;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px dashed rgba(255, 105, 165, .5);
  border-radius: 50%;
  background: rgba(255, 77, 141, .1);
  color: var(--pink-2);
  font-family: var(--font-jua);
  font-size: 11px;
}

.cup-champ {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 105, 165, .45);
  border-radius: 18px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(255, 77, 141, .26), transparent 70%),
    linear-gradient(180deg, #241a2c, #150f1c);
  text-align: center;
  animation: draw-pop .5s cubic-bezier(.3, 1.4, .5, 1) both;
}
.cup-champ-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--pink-2);
}
.cup-champ-name {
  margin: 6px 0 0;
  font-family: var(--font-jua);
  font-size: 27px;
  line-height: 1.2;
  color: #fff3f8;
}
.cup-champ-meta {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ── 결과 카드 ──────────────────────────────────────── */

.result {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 110% at 100% -10%, rgba(255, 77, 141, .2), transparent 58%),
    linear-gradient(165deg, #1c1424 0%, #14101a 60%, #100c15 100%);
  box-shadow: 0 30px 60px -42px #000, inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.result::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 70px; height: 14px;
  transform: translateX(-50%) rotate(-1.5deg);
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0) 0 6px, rgba(255, 255, 255, .12) 6px 12px),
    linear-gradient(180deg, rgba(255, 77, 141, .48), rgba(255, 77, 141, .26));
}

.result-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 8px;
  border: 1px dashed rgba(255, 105, 165, .3);
  border-radius: 16px;
  text-align: center;
}
.result-empty .result-emoji { font-size: 44px; filter: grayscale(.35); opacity: .8; }
.result-empty-txt {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
  word-break: keep-all;
}

.result-full.is-pop { animation: draw-pop .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.result-kicker {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink-2);
}
.result-emoji {
  display: block;
  margin: 10px 0 4px;
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5));
}
.result-name {
  margin: 6px 0 0;
  font-family: var(--font-jua);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  color: #fff3f8;
  word-break: keep-all;
}
.result-meta {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--pink-3);
}
.result-desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
  word-break: keep-all;
}
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.result-tags span {
  padding: 3px 9px;
  border: 1px solid rgba(255, 105, 165, .3);
  border-radius: 999px;
  background: rgba(255, 77, 141, .1);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--pink-3);
}
.result-actions {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}
.result-actions .btn { min-height: 44px; }
.result-foot {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-4);
  text-align: center;
  word-break: keep-all;
}

/* ── 내 메뉴판 · 최근 ───────────────────────────────── */

.shelf {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 21, 33, .82), rgba(15, 12, 20, .82));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-soft);
}
.shelf-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  font-family: var(--font-jua);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
}
.shelf-title em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--pink-2);
}
.shelf-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.shelf-count {
  font-size: 11.5px;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shelf-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-4);
  word-break: keep-all;
}
.shelf-note b { color: var(--pink-3); font-weight: 500; }

/* 추가 폼 */
.addform {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(255, 105, 165, .34);
  border-radius: 18px;
  background: rgba(255, 77, 141, .055);
  animation: pane-in .22s ease both;
}
.addform-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 10px;
}
.field { display: block; min-width: 0; }
.field-label {
  display: block;
  margin: 0 2px 5px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-3);
}
.field-label i {
  font-style: normal;
  font-size: 10px;
  color: var(--text-4);
}
.field-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.field-input::placeholder { color: var(--text-4); }
.field-input:focus {
  outline: none;
  border-color: rgba(255, 105, 165, .6);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, .14);
}
select.field-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pink-3) 50%),
    linear-gradient(135deg, var(--pink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.addform-tags {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}
.tagchecks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tagcheck { position: relative; cursor: pointer; }
.tagcheck input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.tagcheck span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--text-2);
  font-size: 12px;
  transition: background .16s, border-color .16s, color .16s;
}
.tagcheck input:checked + span {
  border-color: rgba(255, 105, 165, .55);
  background: linear-gradient(180deg, rgba(255, 117, 168, .28), rgba(255, 77, 141, .16));
  color: #ffe1ec;
}
.tagcheck input:focus-visible + span { outline: 2px solid var(--pink-2); outline-offset: 2px; }
.addform-error {
  min-height: 16px;
  margin: 8px 2px 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #ff8fa3;
}
.addform-foot { display: flex; gap: 8px; margin-top: 6px; }

/* 메뉴판 목록 */
.board-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
}
.search { flex: 1 1 180px; min-width: 0; }
.search input {
  width: 100%;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
}
.search input::placeholder { color: var(--text-4); }
.search input:focus {
  outline: none;
  border-color: rgba(255, 105, 165, .55);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, .13);
}

.board {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.board-group {
  margin: 10px 0 4px;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--pink-2);
  text-transform: uppercase;
}
.board-group:first-child { margin-top: 0; }

.mrow {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 11px;
  transition: background .14s;
}
.mrow:hover { background: rgba(255, 255, 255, .04); }
.mrow-emoji { font-size: 17px; line-height: 1; text-align: center; }
.mrow-text { min-width: 0; }
.mrow-name {
  display: block;
  font-family: var(--font-jua);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mrow-sub {
  display: block;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mrow--mine .mrow-name::after {
  content: "내 메뉴";
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 77, 141, .16);
  border: 1px solid rgba(255, 105, 165, .34);
  font-family: var(--font-body);
  font-size: 9px;
  color: var(--pink-3);
  vertical-align: 2px;
}
.mrow-btn {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.mrow-btn:hover { border-color: var(--line); background: rgba(255, 77, 141, .12); color: var(--pink-3); }
.mrow-btn--on {
  border-color: rgba(255, 80, 110, .4);
  background: rgba(255, 60, 90, .12);
  color: #ff9fb0;
}
.mrow-del {
  width: 36px;
  padding: 0;
  font-size: 12px;
}
.mrow.is-out { opacity: .55; }
.mrow.is-out .mrow-name { text-decoration: line-through; color: var(--text-3); }

.board-empty {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px dashed rgba(255, 105, 165, .28);
  border-radius: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  word-break: keep-all;
}
.board-empty b { color: var(--pink-3); }

/* 최근 목록 */
.recent-list {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.rrow {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .03);
}
.rrow-emoji { font-size: 16px; line-height: 1; text-align: center; }
.rrow-text { min-width: 0; }
.rrow-name {
  display: block;
  font-family: var(--font-jua);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}
.rrow-sub {
  display: block;
  font-size: 10.5px;
  color: var(--text-4);
}
.rrow-again {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.rrow-again:hover { border-color: var(--line); color: var(--pink-3); background: rgba(255, 77, 141, .12); }
.rrow-del {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-4);
  font-size: 11px;
  cursor: pointer;
}
.rrow-del:hover { color: #ff9fb0; border-color: rgba(255, 80, 110, .34); background: rgba(255, 60, 90, .1); }
.recent-empty {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px dashed rgba(255, 105, 165, .26);
  border-radius: 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  word-break: keep-all;
}
.recent-empty b { color: var(--pink-3); }

/* 두 메뉴판을 나란히 */
.food-page .shelves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* ── 화면 크기별 ────────────────────────────────────── */

@media (max-width: 980px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; min-height: 0; }
  .result-empty { flex-direction: row; text-align: left; justify-content: flex-start; gap: 14px; }
  .result-empty .result-emoji { font-size: 34px; }
  .result-full { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; }
  .result-full .result-kicker { grid-column: 1 / -1; }
  .result-full .result-emoji { grid-row: 2 / span 2; align-self: center; margin: 0; font-size: 44px; text-align: center; }
  .result-full .result-name { grid-column: 2; margin-top: 2px; }
  .result-full .result-meta { grid-column: 2; }
  .result-full .result-desc { grid-column: 2; }
  .result-full .result-tags { grid-column: 2; }
  .result-full .result-actions { grid-column: 1 / -1; grid-template-columns: 1.5fr 1fr; }
  .result-full .result-foot { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .food-page .shelves { grid-template-columns: minmax(0, 1fr); }
  .wheel-stage { grid-template-columns: minmax(0, 1fr); }
  .wheel-wrap { max-width: 330px; }
  .wheel-side { margin-top: 10px; }
  .wheel-list {
    display: flex;
    flex-wrap: wrap;
    max-height: none;
    gap: 5px;
  }
  .wheel-list li { padding: 4px 9px; }
  .wheel-list li .wl-name { max-width: 10ch; }
}

@media (max-width: 700px) {
  .cond { padding: 14px 14px 12px; border-radius: 20px; }
  .cond-row { flex-direction: column; align-items: stretch; gap: 7px; }
  .cond-row .chips { width: 100%; }
  .cond-label { flex: none; padding-top: 0; }
  .cond-label i { display: inline; margin-left: 5px; }
  .cond-row--switch { flex-direction: row; align-items: center; }
  .cond-note { display: none; }
  .chips { flex-wrap: wrap; gap: 6px; padding-bottom: 0; }
  .chip { min-height: 44px; padding: 0 15px; }
  .chip--tag.is-on::before { content: "✓"; }

  .modes { gap: 6px; }
  .fmode { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 11px; min-height: 72px; }
  .fmode-ico { font-size: 19px; }
  .fmode-txt b { font-size: 13.5px; }
  .fmode-txt i { display: none; }

  .stage-card { padding: 14px 12px 16px; border-radius: 20px; }
  .wheel-wrap { max-width: 300px; }
  .wheel-hub { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 17px; }
  .wheel-pin { border-left-width: 9px; border-right-width: 9px; border-top-width: 18px; }
  .pane-foot .btn { flex: 1 1 auto; }
  .btn--lg { min-height: 48px; padding: 0 18px; font-size: 14px; }

  .cup-arena { gap: 6px; }
  .cup-card { min-height: 132px; padding: 12px 8px; border-radius: 16px; }
  .cup-emoji { font-size: 32px; }
  .cup-vs { width: 28px; height: 28px; font-size: 10px; }

  .shelf { padding: 14px 12px; border-radius: 20px; }
  .shelf-title { font-size: 17px; }
  .addform-row { grid-template-columns: minmax(0, 1fr); }
  .board { max-height: 380px; }
  .mrow { grid-template-columns: 22px minmax(0, 1fr) auto auto; padding: 5px 4px; }
  .mrow-btn { min-height: 44px; padding: 0 12px; }
  .mrow-del { width: 44px; }
  .rrow-again { min-height: 40px; }
  .rrow-del { width: 40px; min-height: 40px; }
  .board-tools .chips { flex-wrap: nowrap; }
}

@media (max-width: 420px) {
  .food-page .subhead h1 { font-size: 30px; }
  .food-page .subhead .sub { font-size: 17px; }
  .cond-count { font-size: 11px; }
  .fmode-txt b { font-size: 12.5px; }
  .draw-card { padding: 22px 16px 20px; }
  .draw-name { font-size: 24px; }
  .result-actions .btn { min-height: 46px; font-size: 13px; }
}

/* 폰 가로(높이 500 이하) — 세로 스크롤을 줄인다 */
@media (max-height: 500px) and (orientation: landscape) {
  .wheel-wrap { max-width: 250px; }
  .wheel-list { display: none; }
  .cup-card { min-height: 110px; }
  .draw-card { padding: 16px; }
  .draw-emoji { font-size: 38px; }
  .draw-name { font-size: 21px; }
  .result { min-height: 0; }
  .chip { min-height: 44px; }
  .mrow-btn { min-height: 44px; }
  .rrow-again, .rrow-del { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .pane, .result-full, .draw-card, .cup-champ, .addform { animation: none !important; }
}
