:root {
  --purple: #750f6d;
  --purple-dark: #4f0949;
  --purple-soft: #f3e8f1;
  --gold: #dda300;
  --gold-deep: #805e00;
  --gold-soft: #f4dfb0;
  --paper: #fbf7ee;
  --surface: #fffaf2;
  --ink: #221815;
  --muted: #756a72;
  --line: #e7d9d9;
  --error: #9a473d;
  --shadow: 0 18px 55px rgba(117, 15, 109, .09);
  --radius: 18px;
  --font-sans: "Avenir Next", Avenir, "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, textarea { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: white; transition: top .2s ease; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(221, 163, 0, .65); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: minmax(245px, 1fr) auto minmax(245px, 1fr); align-items: center; height: 72px; padding: 0 clamp(24px, 4vw, 64px); border-bottom: 1px solid rgba(117, 15, 109, .11); background: rgba(251, 247, 238, .92); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--purple); color: var(--gold); font-family: "STKaiti", "KaiTi", serif; font-size: 21px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.brand b, .brand small { display: block; }
.brand b { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .14em; }
.desktop-nav { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(117, 15, 109, .05); }
.desktop-nav button { min-width: 66px; padding: 9px 14px; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .18s ease, color .18s ease, transform .18s ease; }
.desktop-nav button:hover { color: var(--purple); }
.desktop-nav button:active { transform: scale(.97); }
.desktop-nav button.active { background: var(--surface); color: var(--purple); box-shadow: 0 3px 14px rgba(117,15,109,.08); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.search-trigger { padding: 9px 12px; background: transparent; color: var(--muted); font-size: 13px; }
.search-trigger span { margin-right: 5px; color: var(--purple); font-size: 18px; }
.auth-button, .primary-action { min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--purple); color: white; font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform .18s ease, background .18s ease; }
.auth-button:hover, .primary-action:hover { background: var(--purple-dark); }
.auth-button:active, .primary-action:active { transform: scale(.98); }
.auth-button.verified { background: var(--purple-soft); color: var(--purple); }

main { min-height: calc(100dvh - 72px); }
.page { display: none; width: min(1440px, 100%); margin: 0 auto; padding: 34px clamp(24px, 4vw, 64px) 90px; animation: page-in .35s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero { position: relative; display: grid; grid-template-columns: minmax(360px, .84fr) minmax(520px, 1.16fr); min-height: min(660px, calc(100dvh - 140px)); overflow: hidden; border-radius: 26px; background: var(--purple); color: white; box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 88px); }
.hero-kicker { color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.hero h1 { max-width: 620px; margin: 18px 0 0; font-size: clamp(48px, 5.2vw, 76px); font-weight: 720; letter-spacing: -.055em; line-height: 1.02; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p { max-width: 430px; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; }
.hero-search { display: grid; grid-template-columns: 1fr auto; width: min(520px, 100%); margin-top: 34px; padding: 7px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 20px 50px rgba(50,0,45,.2); }
.hero-search input { min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.hero-search button { padding: 0 20px; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 750; }
.hero-image { position: relative; min-height: 440px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--purple) 0, rgba(117,15,109,.55) 20%, transparent 60%); }
.hero-badge { position: absolute; right: 26px; bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(34,24,21,.78); color: white; backdrop-filter: blur(12px); }
.hero-badge b { font-size: 24px; font-variant-numeric: tabular-nums; }
.hero-badge span { color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.45; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 62px 0 22px; }
.section-heading h2, .page-heading h1 { margin: 0; font-size: clamp(30px, 3vw, 43px); letter-spacing: -.04em; line-height: 1.1; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); line-height: 1.65; }
.text-action { padding: 8px 0; background: transparent; color: var(--purple); font-size: 14px; font-weight: 700; }
.text-action:hover { color: var(--purple-dark); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 20px; }
.course-feature { display: grid; grid-template-columns: 1fr 220px; min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.course-feature-copy { display: flex; flex-direction: column; padding: 32px; }
.course-code { color: var(--gold-deep); font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.course-feature h3 { margin: 14px 0 4px; font-size: 31px; letter-spacing: -.035em; }
.english-name { color: var(--muted); font-size: 13px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { padding: 6px 9px; border-radius: 7px; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 650; }
.course-feature .text-action { width: max-content; margin-top: auto; }
.feature-score { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--gold); color: var(--ink); }
.feature-score strong { font-size: 70px; font-weight: 650; letter-spacing: -.07em; line-height: 1; font-variant-numeric: tabular-nums; }
.feature-score span { margin-top: 8px; font-size: 12px; font-weight: 700; }
.review-rail { display: grid; gap: 12px; }
.review-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,250,242,.62); }
.review-top { display: flex; justify-content: space-between; gap: 16px; }
.review-target { font-size: 13px; font-weight: 700; }
.review-context, .review-date { margin-top: 5px; color: var(--muted); font-size: 11px; }
.stars { color: var(--gold-deep); letter-spacing: .04em; white-space: nowrap; }
.review-card p { margin: 18px 0 0; color: #51474d; line-height: 1.7; }

.dish-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dish-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: transform .22s ease, box-shadow .22s ease; }
.dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dish-photo { height: 210px; overflow: hidden; background: var(--gold-soft); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.dish-card:hover img { transform: scale(1.025); }
.dish-card-copy { padding: 20px; }
.dish-card h3 { margin: 0; font-size: 20px; }
.dish-sub { margin-top: 7px; color: var(--muted); font-size: 12px; }
.dish-foot { display: flex; justify-content: space-between; margin-top: 18px; color: var(--gold-deep); font-weight: 700; }

.page-heading { display: grid; grid-template-columns: 1fr minmax(320px, 470px); gap: 60px; align-items: end; margin: 18px 0 32px; }
.page-heading p { max-width: 620px; margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
.page-heading .heading-image { height: 180px; overflow: hidden; border-radius: var(--radius); }
.page-heading .heading-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.filter-bar { position: sticky; top: 88px; z-index: 10; display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 12px; padding: 12px; border: 1px solid rgba(117,15,109,.12); border-radius: 16px; background: rgba(255,250,242,.94); box-shadow: 0 12px 35px rgba(117,15,109,.06); backdrop-filter: blur(14px); }
.search-input { display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.search-input span { color: var(--purple); font-size: 20px; }
.search-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.select-wrap select { height: 44px; min-width: 160px; padding: 0 34px 0 13px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.results-meta { display: flex; justify-content: space-between; align-items: center; margin: 26px 2px 15px; color: var(--muted); font-size: 13px; }
.sort-buttons { display: flex; gap: 16px; }
.sort-buttons button { padding: 4px 0; background: transparent; color: var(--muted); }
.sort-buttons button.active { color: var(--purple); font-weight: 700; }
.course-list { border-top: 1px solid var(--line); }
.course-row { display: grid; grid-template-columns: 120px minmax(220px, 1.1fr) minmax(210px, .8fr) 150px 90px; gap: 20px; align-items: center; min-height: 128px; padding: 22px 10px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .18s ease, padding .18s ease; }
.course-row:hover { padding-left: 18px; padding-right: 18px; background: rgba(255,250,242,.7); }
.course-row h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.course-row .english-name { margin-top: 4px; }
.course-row .instructor { color: var(--muted); line-height: 1.55; }
.course-row .instructor b { display: block; color: var(--ink); font-size: 13px; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.row-rating { text-align: right; }
.row-rating strong { display: block; color: var(--purple); font-size: 30px; font-variant-numeric: tabular-nums; }
.row-rating span { color: var(--muted); font-size: 11px; }

.dining-lead { display: grid; grid-template-columns: minmax(340px, .72fr) minmax(520px, 1.28fr); min-height: 410px; overflow: hidden; border-radius: 24px; background: var(--gold); }
.dining-lead-copy { display: flex; flex-direction: column; justify-content: center; padding: 54px; }
.dining-lead h1 { max-width: 460px; margin: 0; font-size: clamp(42px, 5vw, 68px); letter-spacing: -.055em; line-height: 1; }
.dining-lead p { max-width: 420px; margin: 20px 0 0; line-height: 1.7; }
.dining-lead .hero-search { margin-top: 28px; box-shadow: none; }
.dining-lead-image img { width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.hall-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 16px; }
.hall-card { min-height: 270px; padding: 28px; border-radius: var(--radius); cursor: pointer; transition: transform .22s ease; }
.hall-card:hover { transform: translateY(-3px); }
.hall-card.purple { background: var(--purple); color: white; }
.hall-card.gold { background: var(--gold); }
.hall-card.cream { border: 1px solid var(--line); background: var(--surface); }
.hall-number { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; opacity: .65; }
.hall-card h3 { margin: 50px 0 6px; font-size: 28px; }
.hall-card p { margin: 0; opacity: .7; }
.hall-card footer { display: flex; justify-content: space-between; margin-top: 42px; padding-top: 18px; border-top: 1px solid currentColor; font-size: 12px; opacity: .78; }

.profile-layout { display: grid; grid-template-columns: minmax(280px, .42fr) minmax(500px, 1fr); gap: 22px; margin-top: 22px; }
.profile-card { min-height: 390px; padding: 36px; border-radius: 22px; background: var(--purple); color: white; }
.profile-avatar { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid rgba(255,255,255,.28); border-radius: 18px; background: rgba(255,255,255,.1); color: var(--gold); font-size: 34px; font-weight: 700; }
.profile-card h2 { margin: 28px 0 8px; font-size: 30px; }
.profile-card p { margin: 0; color: rgba(255,255,255,.65); line-height: 1.6; }
.verify-inline { margin-top: 30px; background: var(--gold); color: var(--ink); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.17); }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.profile-stats span { margin-top: 4px; color: rgba(255,255,255,.55); font-size: 11px; }
.profile-content { min-height: 390px; padding: 8px 26px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.profile-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.profile-tabs button { padding: 20px 2px 15px; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 650; }
.profile-tabs button.active { border-color: var(--purple); color: var(--purple); }
.saved-list { display: grid; gap: 0; }
.saved-item { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); }
.saved-item h3 { margin: 0; font-size: 16px; }
.saved-item p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.saved-item .text-action { font-size: 12px; }
.empty-state { display: grid; place-items: center; min-height: 260px; padding: 40px; text-align: center; }
.empty-state b { display: block; font-size: 19px; }
.empty-state p { max-width: 420px; margin: 10px auto 0; color: var(--muted); line-height: 1.65; }
.empty-state button { margin-top: 20px; }

.overlay, .modal-wrap, .search-dialog { position: fixed; inset: 0; z-index: 70; }
.overlay-backdrop, .modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(34,24,21,.5); backdrop-filter: blur(4px); }
.detail-panel { position: absolute; top: 0; right: 0; width: min(620px, 92vw); height: 100%; overflow-y: auto; padding: 58px 42px 70px; background: var(--paper); box-shadow: -20px 0 60px rgba(34,24,21,.16); animation: panel-in .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes panel-in { from { transform: translateX(100%); } to { transform: none; } }
.close-button { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(117,15,109,.08); color: var(--purple); font-size: 24px; }
.detail-visual { height: 230px; margin: 0 0 28px; overflow: hidden; border-radius: var(--radius); background: var(--purple); }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-kicker, .modal-kicker { color: var(--gold-deep); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.detail-panel h2, .modal h2 { margin: 11px 0 6px; font-size: 34px; letter-spacing: -.035em; }
.detail-subtitle, .modal-subtitle { margin: 0; color: var(--muted); line-height: 1.6; }
.detail-rating { display: flex; align-items: end; justify-content: space-between; margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-rating strong { color: var(--purple); font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.detail-rating span { color: var(--muted); font-size: 12px; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 9px; margin-top: 22px; }
.score-cell { padding: 15px 10px; border-radius: 11px; background: var(--purple-soft); text-align: center; }
.score-cell b, .score-cell span { display: block; }
.score-cell b { color: var(--purple); font-size: 21px; }
.score-cell span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 24px; }
.detail-actions .primary-action { min-height: 48px; }
.favorite-button { width: 48px; height: 48px; border: 1px solid var(--purple); border-radius: 50%; background: transparent; color: var(--purple); font-size: 22px; }
.detail-reviews { margin-top: 34px; }
.detail-reviews h3 { margin: 0 0 14px; }

.modal-wrap { display: grid; place-items: center; padding: 22px; }
.modal { position: relative; z-index: 1; width: min(540px, 100%); max-height: calc(100dvh - 44px); overflow-y: auto; padding: 38px; border-radius: 22px; background: var(--surface); box-shadow: 0 30px 80px rgba(34,24,21,.24); animation: modal-in .25s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal form { margin-top: 26px; }
.rating-field { margin: 0 0 22px; padding: 0; border: 0; }
.rating-field legend, .field > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.rating-picker { display: flex; gap: 6px; }
.rating-picker button { width: 45px; height: 45px; border-radius: 10px; background: var(--purple-soft); color: #c9bdc6; font-size: 24px; }
.rating-picker button.active { background: var(--gold); color: var(--ink); }
.field { position: relative; display: block; margin-top: 18px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; outline: 0; transition: border .18s ease, box-shadow .18s ease; }
.field input { height: 46px; padding: 0 13px; }
.field textarea { min-height: 150px; padding: 13px; resize: vertical; line-height: 1.65; }
.field input:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(117,15,109,.1); }
.field small { position: absolute; right: 10px; bottom: 9px; color: var(--muted); font-size: 10px; }
.field-error { display: block; min-height: 16px; margin: 6px 0 0; color: var(--error); font-size: 11px; font-style: normal; }
.privacy-note, .demo-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal .primary-action { width: 100%; min-height: 48px; margin-top: 12px; }
.auth-seal { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px; border-radius: 15px; background: var(--purple); color: var(--gold); font-size: 28px; font-weight: 700; }
.demo-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }

.search-dialog { padding-top: 96px; }
.search-sheet { position: relative; z-index: 1; width: min(760px, calc(100% - 32px)); max-height: min(640px, calc(100dvh - 130px)); margin: 0 auto; overflow: hidden auto; border-radius: 18px; background: var(--surface); box-shadow: 0 30px 80px rgba(34,24,21,.25); }
.search-sheet > label { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.search-sheet label > span { color: var(--purple); font-size: 25px; }
.search-sheet input { height: 44px; border: 0; outline: 0; background: transparent; font-size: 18px; }
kbd { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 9px; }
.search-group { padding: 20px; }
.search-group + .search-group { border-top: 1px solid var(--line); }
.search-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.search-result { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 10px; border-radius: 9px; background: transparent; text-align: left; }
.search-result:hover, .search-result.active { background: var(--purple-soft); }
.search-result b, .search-result span { display: block; }
.search-result span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.search-result > em { color: var(--purple); font-size: 12px; font-style: normal; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: white; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }
.skeleton { overflow: hidden; border-radius: 8px; background: #eadfe5; }
.skeleton::after { content: ""; display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.15s infinite; }
@keyframes shimmer { from { transform: translateX(-120%); } to { transform: translateX(280%); } }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 46px; }
  .hero h1 { font-size: clamp(43px, 6vw, 64px); }
  .home-grid { grid-template-columns: 1fr; }
  .review-rail { grid-template-columns: repeat(2, 1fr); }
  .course-row { grid-template-columns: 100px 1fr 180px 90px; }
  .course-row .row-tags { display: none; }
  .hall-grid { grid-template-columns: 1.15fr .85fr; }
  .hall-card:last-child { grid-column: 1 / -1; min-height: 200px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 70px; }
  .site-header { position: static; height: 64px; padding: 0 16px; }
  .brand small, .header-actions .search-trigger { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .auth-button { min-height: 36px; padding: 0 13px; font-size: 11px; }
  .page { padding: 16px 16px 58px; }
  .hero { display: flex; min-height: 620px; flex-direction: column; border-radius: 20px; }
  .hero-copy { order: 2; padding: 34px 24px 38px; }
  .hero h1 { margin-top: 12px; font-size: 46px; }
  .hero-copy > p { font-size: 14px; }
  .hero-image { order: 1; min-height: 230px; }
  .hero-image::before { background: linear-gradient(0deg, var(--purple), transparent 55%); }
  .hero-badge { right: 14px; bottom: 14px; }
  .hero-search { margin-top: 24px; }
  .section-heading { display: block; margin-top: 42px; }
  .section-heading p { margin-top: 10px; }
  .section-heading .text-action { margin-top: 8px; }
  .course-feature { grid-template-columns: 1fr; }
  .feature-score { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 22px 30px; }
  .feature-score strong { font-size: 45px; }
  .review-rail { grid-template-columns: 1fr; }
  .dish-strip { display: flex; margin-right: -16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .dish-card { min-width: 82%; scroll-snap-align: start; }
  .page-heading { display: block; margin-top: 8px; }
  .page-heading .heading-image { height: 150px; margin-top: 22px; }
  .filter-bar { top: 8px; grid-template-columns: 1fr 1fr; }
  .filter-bar .search-input { grid-column: 1 / -1; }
  .select-wrap select { width: 100%; min-width: 0; }
  .course-row { grid-template-columns: 80px 1fr 60px; gap: 12px; min-height: 110px; }
  .course-row .instructor, .course-row .row-tags { display: none; }
  .row-rating strong { font-size: 25px; }
  .dining-lead { display: flex; min-height: 560px; flex-direction: column; }
  .dining-lead-copy { order: 2; padding: 32px 24px; }
  .dining-lead h1 { font-size: 46px; }
  .dining-lead-image { order: 1; height: 230px; }
  .hall-grid { grid-template-columns: 1fr; }
  .hall-card:last-child { grid-column: auto; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-content { padding-inline: 18px; }
  .detail-panel { width: 100%; padding: 56px 20px 80px; }
  .modal { padding: 32px 22px; }
  .search-dialog { padding-top: 72px; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); height: 62px; padding: 5px; border: 1px solid rgba(117,15,109,.12); border-radius: 18px; background: rgba(255,250,242,.95); box-shadow: 0 16px 42px rgba(117,15,109,.18); backdrop-filter: blur(18px); }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 13px; background: transparent; color: var(--muted); font-size: 10px; }
  .mobile-nav button span { font-size: 16px; font-weight: 700; }
  .mobile-nav button.active { background: var(--purple); color: white; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
