/* Night Beacon · blissfulife-root
   Direction A — Nocturnal Beacon & Single-Gate Triage
   Local-only. No external fonts, no icon CDN, no 3D. */

:root {
  --bg: #0B0F17;
  --surface: #131B2E;
  --raised: #1C2640;
  --amber: #F59E0B;
  --amber-soft: #FBBF24;
  --amber-deep: #D97706;
  --jade: #10B981;
  --jade-text: #34D399;
  --violet: #A78BFA;
  --violet-deep: #7C6AD8;
  --ink: #1A1206;
  --text: #F8FAFC;
  --body: #CBD5E1;
  --muted: #64748B;
  --muted-strong: #94A3B8;
  --line: rgba(245, 158, 11, 0.18);
  --line-cool: rgba(148, 163, 184, 0.14);
  --wrap: 1180px;
  --radius: 12px;
  --display: ui-serif, "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --ui: system-ui, -apple-system, BlinkMacSystemFont, "PingFang HK", "Microsoft JhengHei", sans-serif;
  --ui-en: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  /* 320px floor only while the content box is at least that wide.
     A classic scrollbar at a 320px window makes clientWidth 305;
     a hard 320px floor then keeps scrollWidth at 320. */
  min-width: min(320px, 100%);
  overflow-x: hidden;
  color: var(--body);
  background:
    radial-gradient(ellipse 62% 36% at 50% -8%, rgba(245, 158, 11, 0.085), transparent 72%),
    radial-gradient(ellipse 45% 30% at 78% 18%, rgba(16, 185, 129, 0.035), transparent 72%),
    radial-gradient(ellipse 48% 32% at 20% 72%, rgba(167, 139, 250, 0.025), transparent 72%),
    var(--bg);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: radial-gradient(rgba(248, 250, 252, 0.7) 0.55px, transparent 0.7px);
  background-size: 5px 5px;
}

::selection { background: rgba(245, 158, 11, 0.25); color: var(--text); }

a { color: inherit; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber-soft);
  outline-offset: 3px;
}

.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(11, 15, 23, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.site-header.is-scrolled {
  background: rgba(11, 15, 23, 0.96);
  border-bottom-color: rgba(245, 158, 11, 0.18);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 50%;
  color: var(--amber-soft);
  background: rgba(245, 158, 11, 0.055);
}
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-name {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-en {
  font-family: var(--ui-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.brand-micro {
  color: var(--muted-strong);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  white-space: nowrap;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn svg { flex: 0 0 auto; }

.btn-amber {
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-soft), var(--amber-deep));
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-outline {
  color: var(--text);
  background: transparent;
  border-color: rgba(148, 163, 184, 0.28);
}
.btn-ghost {
  color: var(--body);
  background: rgba(248, 250, 252, 0.025);
  border-color: rgba(148, 163, 184, 0.20);
}
.btn-violet {
  color: #171226;
  background: linear-gradient(180deg, #C4B5FD, var(--violet));
  border-color: rgba(196, 181, 253, 0.55);
}
.btn-violet-outline {
  color: #DDD6FE;
  background: rgba(167, 139, 250, 0.055);
  border-color: rgba(167, 139, 250, 0.35);
}

.return-btn {
  min-width: 108px;
  padding: 6px 13px;
  flex-direction: column;
  gap: 1px;
}
.return-main { font-size: 12.5px; font-weight: 700; color: var(--text); }
.return-sub {
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.start-btn { min-width: 174px; }
.start-short { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 56px 0 76px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.22), transparent);
}

.hero-beam {
  position: absolute;
  top: -160px;
  left: 50%;
  z-index: -1;
  width: 1150px;
  height: 780px;
  max-width: 150vw;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.82;
  background:
    radial-gradient(ellipse 28% 35% at 50% 0%, rgba(251, 191, 36, 0.16), transparent 72%),
    conic-gradient(from 164deg at 50% 0%, transparent 0deg, rgba(245, 158, 11, 0.075) 20deg, transparent 44deg, transparent 316deg, rgba(245, 158, 11, 0.055) 340deg, transparent 360deg);
  filter: blur(18px);
}
.hero-beam::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 250px;
  height: 640px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.16), rgba(245, 158, 11, 0.02) 60%, transparent);
  clip-path: polygon(46% 0, 54% 0, 91% 100%, 9% 100%);
  filter: blur(24px);
}

.hero-wrap { position: relative; }

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: rise-in 180ms ease both;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 15px;
  color: var(--muted-strong);
  font-family: var(--ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.5;
}
.pulse-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10);
}
.eyebrow-sep { color: rgba(148, 163, 184, 0.42); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 17px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(3.1rem, 6.2vw, 4.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 .accent {
  position: relative;
  color: var(--amber-soft);
  white-space: nowrap;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto;
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  text-wrap: balance;
}
.hero-sub strong { color: var(--jade-text); font-weight: 600; }

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.hero-note svg { color: var(--muted); }

.tonight {
  max-width: 1080px;
  margin: 48px auto 0;
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 11px;
}
.mini-label {
  margin: 0;
  color: var(--amber-soft);
  font-family: var(--ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}
.board-line {
  margin: 0;
  color: var(--muted-strong);
  font-family: var(--ui-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.door-card {
  position: relative;
  min-height: 174px;
  display: flex;
  flex-direction: column;
  padding: 15px 14px 13px;
  overflow: hidden;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 38, 64, 0.42), rgba(19, 27, 46, 0.92));
  color: var(--text);
  text-decoration: none;
  animation: rise-in 180ms ease both;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.door-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(245, 158, 11, 0.08) 78%, transparent);
}
.door-card:nth-child(2) { animation-delay: 30ms; }
.door-card:nth-child(3) { animation-delay: 60ms; }
.door-card:nth-child(4) { animation-delay: 90ms; }
.door-card:nth-child(5) { animation-delay: 120ms; }

.door-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.door-no {
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.door-en {
  color: rgba(203, 213, 225, 0.58);
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.door-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--text);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.22;
}
.door-name span {
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.door-pain {
  flex: 1 1 auto;
  margin: 0 0 13px;
  color: var(--body);
  font-size: 12.5px;
  line-height: 1.55;
}
.door-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  color: var(--amber-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.door-cta svg { color: var(--amber); }

.hero-utility {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.guide-callout {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(16, 185, 129, 0.30);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(16, 185, 129, 0.075), rgba(16, 185, 129, 0.018) 62%, transparent);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.guide-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 50%;
  color: var(--jade-text);
}
.guide-copy { display: grid; gap: 1px; min-width: 0; }
.guide-copy .mini-label { color: var(--jade-text); font-size: 9px; letter-spacing: 0.13em; }
.guide-copy strong {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.4;
}
.guide-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--jade-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.return-line {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: right;
}
.return-line a {
  color: var(--body);
  text-decoration: underline;
  text-decoration-color: rgba(203, 213, 225, 0.28);
  text-underline-offset: 3px;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 76px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.18), transparent 36%);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.3vw, 2.55rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head > p:last-child {
  margin: 0 auto;
  max-width: 650px;
  color: var(--muted-strong);
  font-size: 14.5px;
  line-height: 1.75;
  text-wrap: pretty;
}

/* ---------- Dual doors ---------- */

.doors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  overflow: hidden;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 38, 64, 0.34), rgba(19, 27, 46, 0.90));
}
.portal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(245, 158, 11, 0.04) 70%);
}
.portal-teacher { border-color: rgba(167, 139, 250, 0.18); }
.portal-teacher::before { background: linear-gradient(90deg, var(--violet), rgba(167, 139, 250, 0.04) 70%); }

.portal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 21px;
}
.portal-no {
  flex: 0 0 auto;
  color: var(--amber-soft);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}
.portal-teacher .portal-no { color: var(--violet); }
.portal-head .mini-label { margin-bottom: 4px; color: var(--muted-strong); font-size: 9px; }
.portal-teacher .mini-label { color: #C4B5FD; }
.portal-head h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.door-points {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  list-style: none;
}
.door-points li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}
.door-points strong { color: var(--text); font-size: 12.5px; font-weight: 650; }
.door-points span { color: var(--muted-strong); font-size: 12px; line-height: 1.6; }

.teacher-steps {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  list-style: none;
}
.teacher-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}
.step-no {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 50%;
  color: #C4B5FD;
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 700;
}
.teacher-steps div { display: grid; gap: 1px; }
.teacher-steps strong { color: var(--text); font-size: 12.5px; font-weight: 650; }
.teacher-steps span:not(.step-no) { color: var(--muted-strong); font-size: 12px; line-height: 1.6; }

.portal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: auto;
}
.text-link {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.28);
  text-underline-offset: 3px;
}
.portal-teacher .text-link { color: #C4B5FD; text-decoration-color: rgba(167, 139, 250, 0.28); }

/* ---------- Four halls ---------- */

.halls-shell {
  overflow: hidden;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 38, 64, 0.30), rgba(19, 27, 46, 0.82));
}

.hall-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(11, 15, 23, 0.28);
}
.hall-tab {
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 17px;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  background: transparent;
  color: var(--muted-strong);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.hall-tab:last-child { border-right: 0; }
.hall-tab small {
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.hall-tab[aria-selected="true"] {
  color: var(--text);
  background: rgba(245, 158, 11, 0.055);
}
.hall-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(245, 158, 11, 0.18));
}
.hall-tab[aria-selected="true"] small { color: var(--amber-soft); }

.hall-panel { padding: 24px 24px 22px; }
.hall-panel:focus-visible { outline-offset: -3px; }

.panel-lede {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted-strong);
  font-size: 13.5px;
  line-height: 1.7;
}

.subject-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.subject-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 9px 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms ease;
}
.subject-list a:nth-child(1),
.subject-list a:nth-child(2) { border-top-color: rgba(245, 158, 11, 0.16); }
@media (min-width: 721px) {
  .subject-list a:last-child { grid-column: 1 / -1; }
}
.list-no {
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 9px;
  font-weight: 600;
}
.list-main { display: grid; gap: 1px; min-width: 0; }
.list-main strong {
  color: var(--text);
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}
.list-main em {
  margin-left: 4px;
  color: var(--muted-strong);
  font-family: var(--display);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.list-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 2px 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 4px;
  color: var(--muted-strong);
  font-family: var(--ui);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-plan { color: var(--amber-soft); border-color: rgba(245, 158, 11, 0.26); background: rgba(245, 158, 11, 0.045); }
.tag-live { color: var(--jade-text); border-color: rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.045); }
.tag-pro { color: #C4B5FD; border-color: rgba(167, 139, 250, 0.27); background: rgba(167, 139, 250, 0.05); }
.tag-explore { color: var(--muted-strong); border-color: rgba(148, 163, 184, 0.22); background: rgba(148, 163, 184, 0.035); }
.tag-here { color: var(--amber-soft); border-color: rgba(245, 158, 11, 0.26); background: rgba(245, 158, 11, 0.045); }

.panel-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.hall-feature {
  display: grid;
  gap: 4px;
  max-width: 760px;
  padding: 20px 20px 17px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(110deg, rgba(167, 139, 250, 0.06), transparent 65%),
    rgba(11, 15, 23, 0.24);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.hall-feature:hover { border-color: rgba(167, 139, 250, 0.38); }
.feature-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.feature-title {
  margin-top: 2px;
  color: var(--text);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.feature-title em { margin-left: 7px; color: #C4B5FD; font-size: 15px; font-style: normal; }
.feature-desc {
  max-width: 610px;
  margin-top: 2px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.7;
}
.feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
}
.feature-link { color: var(--amber-soft); font-size: 11.5px; font-weight: 700; }

.spirit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.spirit-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid var(--line-cool);
  border-radius: 10px;
  background: rgba(11, 15, 23, 0.22);
  color: var(--body);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.spirit-card strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}
.spirit-card strong em { margin-left: 5px; color: var(--muted-strong); font-size: 12px; font-style: normal; }
.spirit-card > span:last-child { color: var(--muted-strong); font-size: 11.5px; line-height: 1.65; }

/* ---------- Academic Station × Life Station ---------- */

.station-stack {
  display: grid;
  gap: 14px;
}

.station-block {
  position: relative;
  padding: 24px 24px 20px;
  overflow: hidden;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 38, 64, 0.34), rgba(19, 27, 46, 0.88));
}
.station-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(245, 158, 11, 0.04) 70%);
}
.station-block--life {
  border-color: rgba(167, 139, 250, 0.18);
}
.station-block--life::before {
  background: linear-gradient(90deg, var(--violet), rgba(167, 139, 250, 0.04) 70%);
}

.station-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}
.station-kicker {
  margin: 0 0 4px;
  color: var(--amber-soft);
  font-family: var(--ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
}
.station-block--life .station-kicker { color: #C4B5FD; }
.station-head h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.station-head h3 em {
  color: var(--muted-strong);
  font-family: var(--display);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.station-count {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 4px;
  color: var(--amber-soft);
  background: rgba(245, 158, 11, 0.04);
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.station-block--life .station-count {
  border-color: rgba(167, 139, 250, 0.26);
  color: #C4B5FD;
  background: rgba(167, 139, 250, 0.045);
}
.station-lede {
  max-width: 790px;
  margin: 0 0 18px;
  color: var(--muted-strong);
  font-size: 12.5px;
  line-height: 1.7;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.station-card {
  position: relative;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 14px 13px 12px;
  overflow: hidden;
  border: 1px solid var(--line-cool);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(28, 38, 64, 0.44), rgba(11, 15, 23, 0.48));
  color: var(--body);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.station-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.72), rgba(245, 158, 11, 0.04));
}
.station-card--life::before {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.70), rgba(167, 139, 250, 0.04));
}
.station-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.station-no {
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
}
.station-en {
  overflow: hidden;
  color: rgba(203, 213, 225, 0.52);
  font-family: var(--ui-en);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-name {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: 0.005em;
}
.station-name em {
  margin-left: 4px;
  color: var(--muted-strong);
  font-family: var(--display);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
}
.station-desc {
  flex: 1 1 auto;
  color: var(--muted-strong);
  font-size: 10.8px;
  line-height: 1.58;
}
.station-meta {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 9px;
}
.station-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  color: var(--amber-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.station-card--life .station-cta { color: #C4B5FD; }
.station-cta svg { flex: 0 0 auto; color: var(--amber); }
.station-card--life .station-cta svg { color: var(--violet); }

.station-note {
  margin: 16px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

/* ---------- Fleet index ---------- */

.os-index {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}
.os-index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.os-index-head .mini-label { margin-bottom: 3px; color: var(--muted-strong); }
.os-index-head h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.status-key { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 0; }

.os-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.os-grid li {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.os-grid a {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 55px;
  padding: 8px 2px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms ease;
}
.os-no { color: var(--muted); font-family: var(--ui-en); font-size: 8.5px; font-weight: 600; }
.os-main { display: grid; gap: 0; min-width: 0; }
.os-main strong { color: var(--body); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.os-main strong em { margin-left: 4px; color: var(--muted); font-family: var(--display); font-size: 11px; font-style: normal; }
.os-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.index-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.os-groups {
  display: grid;
  gap: 20px;
}
.os-group + .os-group {
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.os-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.os-group-head h4 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 0;
  color: var(--body);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.os-group-head h4 em {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.os-group-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--ui-en);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.os-group-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

/* ---------- Plans ---------- */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 21px 19px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 38, 64, 0.26), rgba(19, 27, 46, 0.80));
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(148, 163, 184, 0.16);
}
.plan-featured {
  border-color: rgba(245, 158, 11, 0.32);
  background:
    radial-gradient(ellipse 80% 35% at 50% 0%, rgba(245, 158, 11, 0.075), transparent 72%),
    linear-gradient(180deg, rgba(28, 38, 64, 0.42), rgba(19, 27, 46, 0.92));
}
.plan-featured::before { height: 2px; background: linear-gradient(90deg, var(--amber), rgba(245, 158, 11, 0.14)); }
.plan-promax { border-color: rgba(167, 139, 250, 0.18); }
.plan-promax::before { background: linear-gradient(90deg, rgba(167, 139, 250, 0.55), rgba(167, 139, 250, 0.06)); }

.plan-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 7px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 4px;
  color: var(--amber-soft);
  background: rgba(245, 158, 11, 0.05);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.plan-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.plan h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0 0 2px;
  color: var(--text);
  font-family: var(--ui-en);
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.plan-price > span:first-child { color: var(--muted-strong); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.plan-price .per { margin-left: 1px; color: var(--muted-strong); font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.plan-credits { margin: 0 0 15px; color: var(--muted-strong); font-size: 11.5px; }
.plan-credits strong { color: var(--text); font-weight: 650; }
.plan-featured .plan-credits strong { color: var(--amber-soft); }

.plan-list {
  display: grid;
  gap: 7px;
  margin: 0 0 20px;
  padding: 13px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  list-style: none;
}
.plan-list li {
  position: relative;
  padding-left: 13px;
  color: var(--muted-strong);
  font-size: 11.5px;
  line-height: 1.55;
}
.plan-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.58);
}
.plan-promax .plan-list li::before { background: rgba(167, 139, 250, 0.65); }
.plan .btn { width: 100%; margin-top: auto; }
.plan-foot { margin: 9px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; text-align: center; }

.fuel-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 17px 20px;
  border: 1px dashed rgba(245, 158, 11, 0.30);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.04), transparent 64%),
    rgba(11, 15, 23, 0.38);
}
.fuel-kicker {
  margin: 0 0 2px;
  color: var(--amber-soft);
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.fuel-copy h3 {
  margin: 0 0 2px;
  color: var(--text);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.fuel-copy p { margin: 0; color: var(--muted-strong); font-size: 11.5px; line-height: 1.6; }
.fuel-copy p strong { color: var(--amber-soft); }
.fuel-price {
  color: var(--text);
  font-family: var(--ui-en);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.fuel-price > span { margin-right: 1px; color: var(--muted-strong); font-size: 12px; }
.fuel-price small { color: var(--muted-strong); font-family: var(--ui); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
.fuel-btn { min-height: 42px; white-space: nowrap; }

.gate-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  max-width: 820px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
  text-align: center;
}
.gate-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--muted-strong); }
.gate-note strong { color: var(--muted-strong); font-weight: 600; }

/* ---------- Trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.trust-card {
  padding: 21px 21px 19px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 38, 64, 0.24), rgba(19, 27, 46, 0.66));
}
.trust-no {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-soft);
  font-family: var(--ui-en);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
}
.trust-card h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.trust-card p { margin: 0; color: var(--muted-strong); font-size: 11.5px; line-height: 1.7; }

.trust-boundary {
  margin-top: 13px;
  padding: 14px 18px;
  border: 1px solid rgba(16, 185, 129, 0.20);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.035);
}
.trust-boundary p { margin: 0; color: var(--muted-strong); font-size: 11.5px; line-height: 1.7; }
.trust-boundary strong { color: var(--jade-text); font-weight: 600; }
.trust-boundary a { color: var(--text); text-decoration-color: rgba(248, 250, 252, 0.30); text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  background: #080C13;
  padding: 32px 0 calc(30px + env(safe-area-inset-bottom));
}
.footer-inner { display: grid; justify-items: center; gap: 10px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--amber-soft); }
.footer-mark { display: grid; place-items: center; opacity: 0.78; }
.footer-brand p { margin: 0; color: var(--muted-strong); font-family: var(--display); font-size: 12px; letter-spacing: 0.03em; }
.operator-line {
  margin: 2px 0 0;
  color: var(--muted-strong);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}
.operator-line a {
  color: var(--body);
  text-decoration: underline;
  text-decoration-color: rgba(203, 213, 225, 0.26);
  text-underline-offset: 3px;
}
.footer-small { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: 0.03em; }

/* ---------- Hover-capable pointers only ---------- */

@media (hover: hover) and (pointer: fine) {
  .btn-amber:hover { background: linear-gradient(180deg, #FCD34D, var(--amber)); transform: translateY(-1px); }
  .btn-outline:hover { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.035); }
  .btn-ghost:hover { border-color: rgba(148, 163, 184, 0.38); background: rgba(248, 250, 252, 0.045); }
  .btn-violet:hover { background: linear-gradient(180deg, #DDD6FE, #B9A5FC); transform: translateY(-1px); }
  .btn-violet-outline:hover { border-color: rgba(167, 139, 250, 0.55); background: rgba(167, 139, 250, 0.09); }
  .door-card:hover { transform: translateY(-3px); border-color: rgba(245, 158, 11, 0.30); background: linear-gradient(180deg, rgba(28, 38, 64, 0.60), rgba(19, 27, 46, 0.98)); }
  .station-card:hover { transform: translateY(-2px); border-color: rgba(245, 158, 11, 0.30); background: linear-gradient(180deg, rgba(28, 38, 64, 0.58), rgba(11, 15, 23, 0.58)); }
  .station-card--life:hover { border-color: rgba(167, 139, 250, 0.32); }
  .guide-callout:hover { border-color: rgba(16, 185, 129, 0.52); background: linear-gradient(100deg, rgba(16, 185, 129, 0.10), rgba(16, 185, 129, 0.02) 62%, transparent); }
  .subject-list a:hover { background: rgba(245, 158, 11, 0.035); }
  .spirit-card:hover { border-color: rgba(167, 139, 250, 0.32); background: rgba(167, 139, 250, 0.045); }
  .os-grid a:hover { background: rgba(148, 163, 184, 0.035); }
  .trust-card:hover { border-color: rgba(245, 158, 11, 0.22); }
}

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber-soft);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .header-inner { gap: 16px; }
  .subject-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .door-card { min-height: 160px; }
  .door-card:nth-child(5) { grid-column: span 2; }
  .hero-utility { grid-template-columns: 1fr; gap: 9px; }
  .return-line { text-align: center; }
  .plans-grid { gap: 10px; }
  .plan { padding: 20px 18px 17px; }
}

@media (max-width: 860px) {
  .wrap { width: min(calc(100% - 36px), var(--wrap)); }
  .site-header { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-name { font-size: 14.5px; }
  .brand-en { display: none; }
  .header-inner { min-height: 64px; }
  .start-btn { min-width: 148px; padding-inline: 13px; }
  .return-btn { min-width: 84px; padding-inline: 10px; }
  .hero { padding: 38px 0 54px; }
  .tonight { margin-top: 34px; }
  .section { padding: 58px 0; }
  .doors-grid { grid-template-columns: 1fr; }
  .portal { padding: 23px 21px 21px; }
  .plans-grid { grid-template-columns: 1fr; gap: 10px; }
  .plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 22px; align-items: start; }
  .plan-badge { grid-column: 1 / -1; }
  .plan-kicker, .plan h3, .plan-credits, .plan-foot { grid-column: 1; }
  .plan-price { grid-column: 2; grid-row: 2 / span 2; justify-self: end; align-self: center; }
  .plan-list { grid-column: 1 / -1; }
  .plan .btn { grid-column: 1 / -1; }
  .plan-foot { text-align: left; }
  .fuel-strip { grid-template-columns: 1fr auto; gap: 10px 18px; }
  .fuel-copy { grid-column: 1 / -1; }
  .fuel-btn { justify-self: end; }
  .os-grid { gap: 0 20px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 24px); }

  .header-inner {
    min-height: 58px;
    gap: 7px;
  }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .brand-name { font-size: 12.5px; letter-spacing: 0.02em; line-height: 1.3; }
  .brand-micro { font-size: 7.7px; letter-spacing: 0.025em; line-height: 1.35; }
  .header-actions { gap: 5px; }
  .btn { min-height: 48px; padding-inline: 9px; font-size: 11.5px; border-radius: 7px; }
  .return-btn { min-width: 86px; padding: 4px 7px; }
  .return-main { font-size: 11px; letter-spacing: 0; }
  .return-sub { font-size: 7px; letter-spacing: 0.04em; }
  .start-btn { min-width: 78px; padding-inline: 8px; }
  .start-long { display: none; }
  .start-short { display: inline; font-size: 11.5px; }

  .hero { padding: 15px 0 28px; }
  .hero-beam { top: -110px; width: 700px; height: 540px; opacity: 0.66; filter: blur(15px); }
  .eyebrow { gap: 6px; margin-bottom: 8px; font-size: 8.8px; letter-spacing: 0.075em; }
  .pulse-dot { width: 4px; height: 4px; flex-basis: 4px; }
  h1 {
    margin-bottom: 8px;
    font-size: clamp(1.78rem, 8.4vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
  }
  .hero-sub { max-width: 360px; font-size: 12.2px; line-height: 1.6; }
  .hero-note { display: none; }
  .tonight { margin-top: 17px; }

  .section-kicker { margin-bottom: 6px; }
  .mini-label { font-size: 8px; letter-spacing: 0.11em; }
  .board-line { font-size: 7.5px; letter-spacing: 0.08em; }

  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .door-card {
    min-height: 88px;
    padding: 8px 9px 7px;
    border-radius: 10px;
    animation: none;
  }
  .door-top { margin-bottom: 3px; }
  .door-no { font-size: 8px; }
  .door-en { font-size: 7px; letter-spacing: 0.08em; }
  .door-name { margin-bottom: 3px; font-size: 17px; line-height: 1.2; }
  .door-name span { display: none; }
  .door-pain { margin-bottom: 6px; font-size: 10.2px; line-height: 1.42; }
  .door-cta { gap: 4px; padding-top: 5px; font-size: 10px; line-height: 1.2; }
  .door-cta svg { width: 11px; height: 11px; }

  .door-card:last-child {
    grid-column: 1 / -1;
    min-height: 66px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 8px;
    padding: 8px 10px;
  }
  .door-card:last-child .door-top {
    grid-column: 1;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 0;
  }
  .door-card:last-child .door-name { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  .door-card:last-child .door-pain { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
  .door-card:last-child .door-cta {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    border: 0;
    white-space: nowrap;
  }

  .hero-utility { margin-top: 7px; gap: 5px; }
  .guide-callout { min-height: 54px; gap: 8px; padding: 8px 10px; border-radius: 10px; }
  .guide-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .guide-icon svg { width: 18px; height: 18px; }
  .guide-copy .mini-label { font-size: 7.5px; letter-spacing: 0.06em; }
  .guide-copy strong { font-size: 12px; }
  .guide-cta { gap: 3px; font-size: 9.8px; }
  .guide-cta svg { width: 11px; height: 11px; }
  .return-line { font-size: 9.5px; line-height: 1.45; }

  .section { padding: 40px 0; }
  .section-head { margin-bottom: 22px; text-align: left; }
  .section-head .eyebrow { justify-content: flex-start; margin-bottom: 8px; font-size: 9px; }
  .section-head h2 { font-size: clamp(1.38rem, 6.4vw, 1.8rem); line-height: 1.3; margin-bottom: 7px; }
  .section-head > p:last-child { font-size: 11.5px; line-height: 1.65; }

  .portal { padding: 18px 16px 17px; }
  .portal-head { gap: 10px; margin-bottom: 14px; }
  .portal-no { font-size: 24px; }
  .portal-head h3 { font-size: 17px; }
  .door-points, .teacher-steps { margin-bottom: 16px; }
  .door-points li { grid-template-columns: 88px minmax(0, 1fr); padding: 8px 0; gap: 8px; }
  .door-points strong, .teacher-steps strong { font-size: 11.5px; }
  .door-points span, .teacher-steps span:not(.step-no) { font-size: 10.5px; }
  .teacher-steps li { padding: 8px 0; }
  .portal-actions { align-items: stretch; flex-direction: column; gap: 9px; }
  .portal-actions .btn { width: 100%; }
  .text-link { font-size: 10.5px; text-align: center; }

  .halls-shell { border-radius: 10px; }
  .hall-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hall-tab {
    min-height: 50px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 7px 7px;
    font-size: 12.5px;
  }
  .hall-tab small { font-size: 7px; }
  .hall-panel { padding: 16px 13px 14px; }
  .panel-lede { margin-bottom: 12px; font-size: 11px; line-height: 1.6; }
  .subject-list { grid-template-columns: 1fr; gap: 0; }
  .subject-list a { min-height: 50px; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px; padding: 7px 2px; }
  .list-main strong { font-size: 12px; }
  .list-main em { font-size: 10.5px; }
  .list-main small { font-size: 9px; }
  .tag { font-size: 7.5px; padding: 1px 4px; }
  .panel-note { margin-top: 11px; padding-top: 9px; font-size: 9px; }
  .hall-feature { padding: 14px 13px 12px; }
  .feature-title { font-size: 19px; }
  .feature-title em { font-size: 12px; }
  .feature-desc { font-size: 11px; line-height: 1.6; }
  .spirit-grid { grid-template-columns: 1fr; }
  .spirit-card { min-height: 0; padding: 13px; gap: 5px; }
  .spirit-card strong { font-size: 17px; }
  .spirit-card > span:last-child { font-size: 10.5px; }

  .os-index { margin-top: 24px; padding-top: 18px; }
  .os-index-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 9px; }
  .os-index-head h3 { font-size: 15px; }
  .status-key { gap: 4px; }
  .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .os-grid a {
    grid-template-columns: 17px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0 4px;
    min-height: 47px;
    padding: 6px 1px;
  }
  .os-no { grid-row: 1; font-size: 7px; padding-top: 2px; }
  .os-main { grid-column: 2; grid-row: 1; gap: 1px; }
  .os-main strong { font-size: 10.5px; line-height: 1.35; }
  .os-main strong em { font-size: 9px; }
  .os-main small { display: none; }
  .os-grid .tag {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 2px;
    font-size: 6.8px;
    padding: 0 3px;
  }
  .index-note { font-size: 9px; }

  .plans-grid { grid-template-columns: 1fr; }
  .plan { display: flex; padding: 17px 15px 15px; }
  .plan-kicker, .plan h3, .plan-credits, .plan-foot { grid-column: auto; }
  .plan h3 { font-size: 17px; margin-bottom: 6px; }
  .plan-price { grid-column: auto; grid-row: auto; justify-self: start; align-self: auto; font-size: 37px; }
  .plan-list { grid-column: auto; margin-bottom: 15px; padding-top: 10px; gap: 5px; }
  .plan .btn { grid-column: auto; }
  .plan-foot { grid-column: auto; text-align: center; }
  .fuel-strip { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; }
  .fuel-copy h3 { font-size: 16px; }
  .fuel-copy p { font-size: 10.5px; }
  .fuel-price { font-size: 23px; }
  .fuel-btn { min-height: 44px; padding-inline: 10px; font-size: 10.5px; }
  .gate-note { justify-content: flex-start; margin-top: 13px; font-size: 9.5px; text-align: left; }

  .trust-grid { grid-template-columns: 1fr; gap: 8px; }
  .trust-card { padding: 15px 14px 13px; }
  .trust-no { margin-bottom: 4px; font-size: 7.5px; }
  .trust-card h3 { font-size: 15px; }
  .trust-card p { font-size: 10.5px; line-height: 1.65; }
  .trust-boundary { margin-top: 9px; padding: 11px 12px; }
  .trust-boundary p { font-size: 10px; }

  .site-footer { padding: 24px 0 calc(22px + env(safe-area-inset-bottom)); }
  .footer-inner { gap: 8px; }
  .footer-brand p { font-size: 10.5px; }
  .operator-line { max-width: 340px; font-size: 9.5px; line-height: 1.9; }
  .footer-small { font-size: 8.5px; }
}

@media (max-width: 1080px) {
  .station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .station-card { min-height: 196px; }
  .station-card:last-child { grid-column: span 2; }
}

@media (max-width: 720px) {
  .station-block { padding: 17px 13px 14px; border-radius: 10px; }
  .station-head { align-items: flex-start; gap: 8px; margin-bottom: 5px; }
  .station-kicker { margin-bottom: 3px; font-size: 7.8px; letter-spacing: 0.10em; }
  .station-head h3 { display: block; font-size: 22px; line-height: 1.2; }
  .station-head h3 em { display: block; margin: 2px 0 0; font-size: 11px; }
  .station-count { margin-top: 1px; padding: 2px 5px; font-size: 7px; }
  .station-lede { margin-bottom: 12px; font-size: 10.5px; line-height: 1.6; }
  .station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .station-card { min-height: 178px; padding: 9px 9px 8px; border-radius: 9px; }
  .station-card:last-child { grid-column: auto; }
  .station-top { margin-bottom: 5px; }
  .station-no { font-size: 7px; }
  .station-en { font-size: 6.5px; letter-spacing: 0.05em; }
  .station-name { margin-bottom: 4px; font-size: 16.5px; line-height: 1.24; }
  .station-name em { display: block; margin: 1px 0 0; font-size: 10px; line-height: 1.3; }
  .station-desc { font-size: 9.8px; line-height: 1.45; }
  .station-meta { padding-top: 6px; }
  .station-meta .tag { font-size: 7px; padding: 1px 4px; }
  .station-cta { margin-top: 5px; padding-top: 5px; font-size: 9.5px; }
  .station-cta svg { width: 11px; height: 11px; }
  .station-note { margin-top: 11px; padding-top: 8px; font-size: 9px; line-height: 1.55; }

  .os-groups { gap: 16px; }
  .os-group + .os-group { padding-top: 14px; }
  .os-group-head { margin-bottom: 3px; }
  .os-group-head h4 { font-size: 14px; }
  .os-group-head h4 em { font-size: 9px; }
  .os-group-note { margin-top: 7px; font-size: 8.8px; }
}

@media (max-width: 370px) {
  .brand-micro { display: none; }
  .brand-mark { display: none; }
  .brand-name { font-size: 12px; }
  .return-btn { min-width: 62px; }
  .start-btn { min-width: 72px; }
  .door-pain { font-size: 9.2px; }
  .guide-cta { font-size: 8.8px; }
  .os-main strong { font-size: 10px; }
}

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

@keyframes rise-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
