/* 꽁밥 전용 구성요소. 색·간격은 style.css 토큰을 그대로 쓴다. */

.notice-banner { background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--rule); }
.notice-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.sync { display: flex; align-items: center; gap: 12px; }

/* event cards */
.ev-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
.date-block { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 8px 0 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--code-bg); align-self: start; line-height: 1.2; }
.date-block span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.date-block strong { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.date-block small { font-size: 12px; color: var(--text-2); }
.ev-card:not(.archived) .date-block strong { color: var(--accent); }
.s-card .summary.benefit { font-size: 15.5px; font-weight: 600; color: var(--text); }
.chips li.ok { background: var(--accent-soft); color: var(--accent); }
.chips li.warn { background: transparent; border: 1px dashed var(--rule-strong); }
.status:not(.closed):not(.unknown):not(.upcoming) { background: var(--accent); color: var(--on-accent); }

/* month calendar */
.cal { margin: 16px 0 6px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); padding: 14px 16px 16px; }
.cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.cal-head .text-button:last-child { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-label { font-size: 12.5px; font-weight: 600; color: var(--text-3); text-align: center; padding-bottom: 4px; }
.cal-cell { min-height: 84px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; padding: 6px; border: 1px solid var(--rule); border-radius: 7px; background: transparent; min-width: 0; font-size: 12px; }
.cal-cell.blank { border: 0; }
.cal-cell:hover { border-color: var(--rule-strong); }
.cal-cell.today { border-color: var(--accent); }
.cal-cell.picked { background: var(--accent-soft); border-color: var(--accent); }
.cal-d { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.cal-cell.has .cal-d { color: var(--text); font-weight: 600; }
.cal-ev { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 1px 5px; border-radius: 4px; background: var(--tag-bg); color: var(--text-2); }
.cal-ev.food { background: var(--accent-soft); color: var(--accent); }
.cal-more, .cal-due { color: var(--text-3); font-size: 11.5px; }

/* weekly card */
.week-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.week-card { max-width: 640px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.wc-head { background: var(--cover); color: #fff; padding: 22px 24px 20px; }
.wc-head .eyebrow { color: var(--cover-ink); margin: 0 0 6px; }
.wc-head h3 { margin: 0; color: #fff; font-size: 24px; letter-spacing: -0.02em; }
.wc-count { margin: 6px 0 0; color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.wc-count strong { color: var(--cover-ink); font-size: 18px; }
.wc-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--rule); }
.wc-date { display: flex; flex-direction: column; line-height: 1.3; }
.wc-date strong { font-size: 18px; }
.wc-date span { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.wc-date span.sans { font-family: var(--sans); }
.wc-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wc-day li { margin: 0; }
.wc-day a { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 10px; text-decoration: none; color: var(--text); }
.wc-day a:hover .wc-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.wc-time { grid-row: span 3; font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.wc-title { font-weight: 650; font-size: 15px; line-height: 1.45; }
.wc-benefit { font-size: 14px; color: var(--text); }
.wc-meta { font-size: 12.5px; color: var(--text-3); }
.wc-foot { padding: 12px 24px 16px; font-size: 12.5px; color: var(--text-3); }
.week-card .tl-empty { padding: 18px 24px; margin: 0; }

/* timetable */
.tt-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.tt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; min-height: 36px; }
@media (pointer: fine) { #draw-mode { display: none; } }
.week-grid { --tt-times-w: 34px; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; user-select: none; -webkit-user-select: none; }
.tt-times span, .tt-col b { display: block; height: 22px; font-size: 12.5px; font-weight: 600; color: var(--text-3); text-align: center; }
.tt-times-body { position: relative; }
.tt-times small { position: absolute; right: 4px; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.tt-times small:first-child { transform: none; }
.tt-col { display: flex; flex-direction: column; min-width: 0; }
/* 1시간 = 42px(1분 0.7px). 굵은 선은 정시, 옅은 선은 30분 */
.tt-body {
  position: relative; border-radius: 6px; cursor: crosshair; touch-action: pan-y;
  background-color: var(--code-bg);
  background-image: linear-gradient(to bottom, var(--rule) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--rule) 45%, transparent) 1px, transparent 1px);
  background-size: 100% 42px, 100% 42px; background-position: 0 0, 0 21px;
}
.week-grid.draw .tt-body, .week-grid.draw .tt-slot { touch-action: none; }
.week-grid.draw { outline: 2px solid var(--accent-soft); }
.tt-slot {
  position: absolute; left: 2px; right: 2px; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; overflow: hidden;
  padding: 3px 5px 7px; border: 0; border-radius: 5px; background: var(--accent); color: var(--on-accent);
  font-size: 11.5px; font-weight: 600; line-height: 1.25; text-align: left; cursor: grab; touch-action: pan-y;
}
.tt-slot:active { cursor: grabbing; }
.tt-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-when { font-family: var(--mono); font-size: 10px; font-weight: 500; opacity: .85; white-space: nowrap; }
.tt-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.tt-resize::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 2px; margin-left: -8px; border-radius: 1px; background: currentColor; opacity: .55; }
.tt-preview {
  position: absolute; left: 2px; right: 2px; z-index: 2; overflow: hidden; pointer-events: none;
  padding: 2px 4px; border: 1.5px dashed var(--accent); border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  font: 600 11px/1.3 var(--mono);
}
.three { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.small-dialog { max-width: 460px; }
.small-dialog .dialog-body { padding-bottom: 8px; }
.slot-list { margin-top: 14px; border-top: 1px solid var(--rule); }
.slot { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.slot-when { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.slot-when b { font-weight: 650; color: var(--text); margin-right: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* notice import */
.import-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.drop { border: 1.5px dashed var(--rule-strong); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.drop p { margin: 0; color: var(--text-2); font-size: 14px; }
.drop small { color: var(--text-3); font-size: 12.5px; }
.image-preview { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin-bottom: 12px; background: var(--surface); }
.image-preview img { display: block; max-height: 240px; width: 100%; object-fit: contain; background: #fff; }
.image-preview div { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 13px; color: var(--text-2); }
.ocr-status { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; background: var(--code-bg); font-size: 13.5px; margin-bottom: 8px; }
.field.inline { flex-direction: row; align-items: center; margin: 0; font-weight: 500; }
.field.inline input { width: 90px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-error { color: var(--accent); font-size: 14px; font-weight: 600; min-height: 1em; }
#draft-form h3 { margin-top: 0; }
#draft-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
#draft-fields .full, #draft-fields .detail-note { grid-column: 1 / -1; }
#draft-fields .detail-note { margin: 0 0 14px; }
#draft-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
#mine { margin-top: 4px; }

/* card kinds (이번 주 · 시즌 묶음 · 행사 한 건) */
.card-kinds { margin: 4px 0 12px; }
.card-picker { min-width: 0; }
.card-picker .segments button .mono { font-size: 12px; opacity: .7; margin-left: 2px; }
.card-picker .field.inline select { max-width: min(460px, 70vw); }
.card-actions { justify-content: flex-end; }
.wc-desc { margin: 4px 0 0; color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.event-card .ec-body { padding: 18px 24px 8px; }
.ec-benefit { margin: 0 0 14px; font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--accent); }
.ec-facts { margin: 0 0 14px; }
.ec-facts div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.ec-facts dt { color: var(--text-3); font-weight: 600; }
.ec-facts dd { margin: 0; }
.ec-note { font-size: 13.5px; color: var(--accent); margin: 0 0 12px; }

/* 학식 */
.cheap-box { margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; background: var(--accent-soft); color: var(--text); font-size: 14.5px; line-height: 1.6; }
.cheap-box strong { color: var(--accent); }
.food-plan { margin: 20px 0 12px; }
.food-gaps { margin: 10px 0 0; font-size: 14.5px; color: var(--text-2); }
.food-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.food-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.food-card.open { border-color: var(--accent); }
.food-card .meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.food-card h3 { margin: 0; font-size: 16.5px; }
.food-card ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.7; }
.food-card li { margin: 0; }
.food-card li b { display: inline-block; min-width: 3.4em; font-weight: 650; }
.food-card .mono { font-size: 13px; }
.food-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 0; }
.food-filters .search { flex: 1 1 280px; height: 42px; }
.food-filters .checkbox { margin: 0; }
.meal { padding: 8px 0; border-top: 1px solid var(--rule); }
.meal:first-of-type { border-top: 0; padding-top: 2px; }
.meal-head { margin: 0 0 4px; font-size: 13.5px; color: var(--text-2); }
.meal-head b { color: var(--text); margin-right: 4px; }
.menu-items { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.55; }
.menu-items li { display: flex; justify-content: space-between; gap: 10px; }
.menu-items li .mono { flex: none; color: var(--text-3); font-size: 12.5px; }
.menu-items li.cheap .mono { color: var(--accent); font-weight: 600; }
.menu-items li.more { display: block; }
.menu-items details summary { cursor: pointer; color: var(--text-3); font-size: 13px; }
.menu-items details ul { list-style: none; margin: 4px 0 0; padding: 0; }
.menu-items details li { display: flex; justify-content: space-between; gap: 10px; }
.meal-note { margin: 4px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.food-fit { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--rule-strong); font-size: 13.5px; color: var(--text-3); }
.food-fit.ok { color: var(--accent); font-weight: 600; }

/* 사진 속 QR코드 */
.qr-list { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--code-bg); font-size: 13.5px; }
.qr-list ul { list-style: none; margin: 6px 0 0; padding: 0; }
.qr-list li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 4px 8px; padding: 6px 0; border-top: 1px solid var(--rule); }
.qr-list li:first-child { border-top: 0; }
.qr-label { font-weight: 600; }
.qr-url { overflow-wrap: anywhere; color: var(--text-2); }
.qr-use { grid-column: 1 / -1; display: flex; gap: 14px; }

/* 제보 상자 */
.tip-box {
  max-width: 760px; margin: 8px 0 0;
  padding: 22px 24px; border: 2px solid var(--accent); border-radius: 14px; background: var(--surface);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 12%, transparent);
}
.tip-help { margin: -6px 0 12px; font-size: 14.5px; color: var(--text-2); }
.tip-input { min-height: 220px; font-size: 15px; line-height: 1.6; resize: vertical; }
.tip-box:focus-within .tip-input { border-color: var(--accent); }
.tip-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 8px 0 10px; font-size: 13.5px; }
.tip-tools .field.inline { font-size: 13px; color: var(--text-3); }
.tip-tools .field.inline input { width: 80px; padding: 3px 6px; font-size: 13px; }
.tip-box .image-preview { margin-top: 4px; }
.draft-wrap { max-width: 760px; }
.tip-box .eyebrow { margin: 0 0 4px; color: var(--accent); }
.tip-box h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; letter-spacing: -0.015em; }
.tip-summary { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--code-bg); font-size: 14px; }
.tip-summary div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 2px 0; }
.tip-summary dt { color: var(--text-3); font-weight: 600; }
.tip-summary dd { margin: 0; overflow-wrap: anywhere; }
.btn-big { width: 100%; justify-content: center; min-height: 54px; font-size: 17px; font-weight: 700; border-radius: 10px; }
.btn-big:disabled { opacity: .45; }
.tip-status { margin: 10px 0 0; min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--accent); }
.tip-alt { margin: 8px 0 0; color: var(--text-3); }
.small-actions { gap: 14px; margin-top: -4px; }
.draft-wrap { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 12px; }
.draft-wrap > summary { cursor: pointer; font-weight: 650; font-size: 15px; padding: 6px 0; }
.draft-wrap[open] > summary { margin-bottom: 10px; }

/* 제보 */
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.draft-actions .btn { flex: 1; justify-content: center; }
#draft-form .draft-actions .btn { width: auto; margin-top: 0; }

/* detail */
.benefit-lead { font-weight: 650; color: var(--text); font-size: 17px; }
.quote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--code-bg); border-radius: 0 6px 6px 0; font-size: 15px; color: var(--text-2); }
.detail-actions .btn:disabled { opacity: .45; }

@media (max-width: 1000px) {
  .tt-layout, .import-grid { grid-template-columns: minmax(0, 1fr); }
  .tip-box { position: static; }
}
@media (max-width: 600px) {
  .tabbar .wrap { scrollbar-width: none; }
  .tabbar .wrap::-webkit-scrollbar { display: none; }
  .week-toolbar .actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .week-toolbar .actions .btn { flex: 1; justify-content: center; }
  .ev-row { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .date-block strong { font-size: 21px; }
  .cal { padding: 10px 8px; }
  .cal-cell { min-height: 54px; padding: 4px; }
  .cal-ev { display: none; }
  .cal-cell.has::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .cal-more, .cal-due { display: none; }
  .wc-day { grid-template-columns: 1fr; gap: 6px; padding: 12px 16px; }
  .wc-date { flex-direction: row; gap: 8px; align-items: baseline; }
  .wc-head { padding: 18px 16px; }
  .wc-foot { padding: 12px 16px; }
  .week-grid { --tt-times-w: 26px; padding: 8px 6px; gap: 3px; }
  .tt-slot { padding: 2px 3px 7px; font-size: 11px; }
  .tt-when { display: none; }
  .tt-toolbar { flex-wrap: wrap; }
  .small-dialog { height: auto; max-height: 100dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .slot { grid-template-columns: 1fr auto; }
  .slot-when { grid-column: 1 / -1; }
  .notice-banner .wrap { flex-direction: column; align-items: flex-start; }
}

/* 확인 출처 묶음 */
.src-group { border-top: 1px solid var(--rule); }
.src-group:last-child { border-bottom: 1px solid var(--rule); }
.src-group > summary { cursor: pointer; padding: 10px 2px; font-size: 15px; }
.src-group > summary .muted { font-size: 14px; margin-left: 4px; }
.src-group[open] > summary { margin-bottom: 2px; }
.src-group .table-wrap { margin-bottom: 14px; }

/* 날짜를 고른 목록 */
.day-head { font-size: 15px; font-weight: 650; margin: 10px 0 -2px; padding-top: 12px; border-top: 1px solid var(--rule); }
.day-head .muted, .day-more summary .muted { font-weight: 400; font-size: 14px; }
.day-none { margin: 0; padding: 14px 16px; border: 1px dashed var(--rule-strong); border-radius: 8px; color: var(--text-3); font-size: 14px; }
.day-more { border-top: 1px solid var(--rule); padding-top: 12px; }
.day-more > summary { cursor: pointer; font-size: 15px; font-weight: 650; }
.day-more[open] > summary { margin-bottom: 14px; }

/* 음식 태그 */
.food-tag { display: inline-block; padding: 0 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.6; }

/* 오늘의 꽁밥 */
.today-strip { margin: 0 0 18px; padding: 14px 16px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.ts-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.ts-head p { margin: 0; font-size: 15px; }
.ts-head .muted { font-size: 13.5px; margin-left: 4px; }
.ts-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ts-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px dashed var(--rule); }
.ts-list li.done { opacity: .55; }
.ts-time { font-size: 13px; color: var(--text-2); padding-top: 2px; }
.ts-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ts-title { all: unset; cursor: pointer; font-weight: 600; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.ts-title:hover { color: var(--accent); }
.ts-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.ts-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; }
.ts-more { margin-top: 6px; font-size: 13.5px; }

/* 꽁밥 지도 */
.campus { --m-bg: #efebe5; --m-campus: #faf8f5; --m-bld: #dcd4c9; --m-bld-line: #c9bfb1; --m-road: #d2c8ba; --m-path: #e2dbd0; margin: 0 0 18px; }
@media (prefers-color-scheme: dark) {
  .campus { --m-bg: #141619; --m-campus: #1b1e22; --m-bld: #30353c; --m-bld-line: #3c424a; --m-road: #3b4048; --m-path: #272b30; }
}
.campus-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.campus-bar .segments button .mono { font-size: 11.5px; opacity: .75; }
.campus-box { position: relative; height: min(640px, 72vh); min-height: 420px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--m-bg); touch-action: none; }
#map-svg { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; -webkit-user-select: none; }
#map-svg.dragging { cursor: grabbing; }
.m-campus { fill: var(--m-campus); stroke: var(--m-bld-line); stroke-width: 1; }
.m-path { fill: none; stroke: var(--m-path); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.m-road { fill: none; stroke: var(--m-road); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m-bld { fill: var(--m-bld); stroke: var(--m-bld-line); stroke-width: .6; }
.m-mark, .m-cafe { cursor: pointer; outline: none; }
.m-mark circle { fill: var(--text); stroke: var(--m-campus); stroke-width: 2; vector-effect: non-scaling-stroke; }
.m-mark.food circle { fill: var(--accent); }
.m-mark.sel circle { stroke: var(--text); stroke-width: 3; }
.m-mark text { fill: var(--bg); font-family: var(--mono); font-weight: 700; text-anchor: middle; pointer-events: none; }
.m-mark .m-lbl { fill: var(--text); font-family: var(--sans); font-weight: 650; paint-order: stroke; stroke: var(--m-campus); stroke-width: 3px; vector-effect: non-scaling-stroke; }
.m-mark:hover circle, .m-mark:focus-visible circle { stroke: var(--text); stroke-width: 3; }
.m-cafe rect { fill: var(--m-campus); stroke: var(--text-3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.m-cafe.open rect { stroke: var(--accent); stroke-width: 2.5; }
.m-cafe text { fill: var(--text-2); font-weight: 700; text-anchor: middle; pointer-events: none; }
.m-cafe:hover rect, .m-cafe:focus-visible rect { stroke: var(--text); }
.campus-ctrl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.campus-ctrl button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--surface); font-size: 17px; line-height: 1; cursor: pointer; }
.campus-ctrl button:hover { border-color: var(--text-3); }
.campus-foot { margin: 8px 2px 0; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
@media (max-width: 700px) {
  .campus-box { height: 400px; min-height: 0; }
  .ts-list li { grid-template-columns: 52px minmax(0, 1fr); }
}

/* 뭐 먹지 */
.pick-box { margin: 0 0 18px; }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.pick-opts { display: flex; flex-direction: column; gap: 10px; }
.pick-opts h3 { margin-bottom: 2px; }
.pick-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.pick-checks .field { margin: 0; flex-direction: row; align-items: center; gap: 8px; }
.pick-checks .field select { width: auto; }
.checkbox.off { opacity: .5; }
.segments button[disabled] { opacity: .4; cursor: not-allowed; }
.segments button .mono { font-size: 11.5px; opacity: .75; margin-left: 2px; }
.reel { min-height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; border: 1px dashed var(--rule-strong); border-radius: 12px; background: var(--code-bg); text-align: center; }
.reel strong { font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.reel-emoji { font-size: 40px; line-height: 1; }
.reel-sub { color: var(--text-2); font-size: 13.5px; }
.reel.spinning strong { color: var(--text-3); }
.reel.landed { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.reel-wrap .actions { margin-top: 12px; }
.opt-label { margin: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.cup-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cup-opts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 6px 0 12px; }
.cup-progress p { margin: 0 0 6px; font-size: 15px; }
.cup-progress .bar { height: 5px; border-radius: 3px; background: var(--tag-bg); overflow: hidden; }
.cup-progress .bar span { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }
.cup-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; margin: 16px 0 10px; }
.cup-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 200px; padding: 20px 14px; border: 1px solid var(--rule-strong); border-radius: 14px; background: var(--surface); text-align: center; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.cup-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cup-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cup-card.chosen { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.02); }
.cup-card strong { font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.cup-emoji { font-size: 44px; line-height: 1; }
.cup-emoji.big { font-size: 56px; }
.cup-meta { color: var(--text-2); font-size: 13.5px; }
.cup-price { font-size: 13px; color: var(--text-3); }
.cup-more { font-size: 12px; color: var(--accent); }
.cup-vs-mark { align-self: center; font-family: var(--mono); font-weight: 700; color: var(--text-3); font-size: 15px; }
.cup-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13.5px; }
.cup-win { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.cup-win h4 { margin: 2px 0 4px; font-size: 24px; line-height: 1.3; }
.cup-win p { margin: 0; }
.cup-sub { margin: 18px 0 6px; font-size: 14px; }
.cup-where { list-style: none; margin: 0 0 4px; padding: 0; font-size: 14px; }
.cup-where li { padding: 6px 0; border-top: 1px dashed var(--rule); }
.cup-where .ok { color: var(--accent); font-weight: 600; }
.cup-history { margin-top: 16px; }
.cup-history .chips { margin: 0; }
@media (max-width: 760px) {
  .pick-row { grid-template-columns: minmax(0, 1fr); }
  .cup-vs { grid-template-columns: minmax(0, 1fr); }
  .cup-vs-mark { justify-self: center; }
  .cup-card { min-height: 128px; flex-direction: row; flex-wrap: wrap; text-align: left; justify-content: flex-start; padding: 14px 16px; }
  .cup-card strong { flex: 1 1 60%; }
  .cup-card .cup-meta, .cup-card .cup-price, .cup-card .cup-more { flex-basis: 100%; }
  .cup-emoji { font-size: 34px; }
  .cup-win { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cup-card, .cup-progress .bar span { transition: none; }
}

/* 천식 월드컵 */
.cup-intro { margin: 4px 0 12px; color: var(--text-2); font-size: 14px; }
.cup-board { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cup-board .cup-sub { margin-top: 0; }
.board { list-style: none; margin: 8px 0 10px; padding: 0; }
.board li { display: grid; grid-template-columns: 26px minmax(0, 1.4fr) minmax(60px, 1fr) 38px; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.board li.mine .b-name { color: var(--accent); font-weight: 700; }
.b-rank { color: var(--text-3); text-align: right; }
.b-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-bar { height: 8px; border-radius: 4px; background: var(--tag-bg); overflow: hidden; }
.b-bar span { display: block; height: 100%; background: var(--accent); }
.board li:not(:first-child) .b-bar span { opacity: .55; }
.b-n { text-align: right; color: var(--text-2); }
.b-detail { display: block; font-size: 12px; color: var(--text-3); font-weight: 400; }
.board li { align-items: start; }
.board .b-bar { margin-top: 7px; }
