:root {
  --ink: #1b2430;
  --muted: #5d6874;
  --line: rgba(22, 36, 56, 0.08);
  --gold: #ffd15c;
  --navy: #16324f;
  --violet: #6a4bff;
  --paper: #ffffff;
  --shadow: 0 16px 40px rgba(22, 40, 70, 0.16);
  font-family: "Noto Sans KR", "Outfit", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
a { color: inherit; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 5px 20px 5px 28px;
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
body:has(.hero) .nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
body:not(:has(.hero)) .nav,
.login-page .nav {
  background: rgba(23, 32, 51, 0.9);
  border-bottom-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, #5b46ff 0%, #7a5cff 60%, #9a6bff 100%);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(98, 72, 255, 0.28);
}
.brand:hover { filter: brightness(1.05); }

img, picture, .hero, .card, .hero-art {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
img, picture {
  pointer-events: none;
}
.brand-ko {
  font-family: "Noto Sans KR", Outfit, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 0.92; }
.brand-name {
  font-family: Outfit, "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  gap: 48px;
  margin-left: 48px;
  margin-right: 24px;
  min-width: 0;
}
.nav-links a {
  text-decoration: none;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(12, 20, 40, 0.45);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.menu-btn { display: none; }

.search-panel input {
  width: min(240px, 42vw);
  border: 1px solid #d7dee7;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
}

.login-link {
  text-decoration: none;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 800;
  color: #fff;
  padding: 2px 2px;
  text-shadow: 0 1px 8px rgba(12, 20, 40, 0.45);
}
.signup-link,
html.is-signed-in .signup-link,
.signup-link[hidden] {
  display: none !important;
}
html.is-guest .signup-link {
  display: inline-block !important;
}
.nav-actions .text-link {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(12, 20, 40, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(100deg, #5b46ff 0%, #7a5cff 60%, #9a6bff 100%);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(98, 72, 255, 0.28);
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost {
  background: #fff;
  color: #5b46ff;
  border: 1px solid #c9c2ff;
  box-shadow: none;
}
.btn.is-static,
.btn.is-disabled {
  cursor: default;
  pointer-events: none;
}
.btn.is-disabled {
  background: #e7e9ee;
  color: #8b93a1;
  box-shadow: none;
  cursor: default;
}
.btn.is-static:hover, .btn.is-disabled:hover { filter: none; }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 741;
  object-fit: cover;
}
.hero-scrim,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-scrim {
  background: linear-gradient(180deg, rgba(8, 28, 58, 0.28), transparent 28%, transparent 58%, rgba(8, 28, 58, 0.34));
}
.hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 0 12px;
}
#worlds {
  flex: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  transform: none;
}
.hero .worlds-head { flex: none; }
.hero .card-row {
  flex: none;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 1.15%;
  align-items: stretch;
  overflow: visible;
  padding: 0 2.2% 0;
}
.hero .card {
  aspect-ratio: 2 / 3.05;
  height: auto;
  min-height: 0;
  border: 1px solid #fff;
}
.hero .card-row .card:nth-child(n + 7) { display: none; }
.hero .search-empty { color: #fff; margin: 8px 4vw 0; }
#worlds { scroll-margin-top: 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
  padding: 12px 6vw 0;
}
.hero h1 {
  margin: 0;
  font-family: Outfit, "Noto Sans KR", sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 5.6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-shadow: 0 8px 28px rgba(8, 24, 48, 0.28);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-ko {
  margin: 18px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.hero-en {
  margin: 8px 0 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}
.hero .btn { margin-top: 22px; }
.hero-aside {
  justify-self: end;
  text-align: right;
  padding-top: 8px;
}
.script {
  margin: 0;
  font-family: Caveat, cursive;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.95;
  color: #173f86;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.script span { display: block; }
.pullquote {
  margin: 14px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.worlds-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 0;
  padding: 0 4vw 12px;
}
.worlds-head h2,
.worlds-head p,
.worlds-head a {
  text-shadow: 0 2px 14px rgba(8, 24, 48, 0.45);
}
.worlds-head h2 {
  margin: 0;
  font-family: Outfit, "Noto Sans KR", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
}
.worlds-head p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.9); }
.worlds-head a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.worlds {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 18px 4vw 12px;
  background: #fff;
  scroll-margin-top: 84px;
}
.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.card {
  position: relative;
  display: flex;
  min-height: 268px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.card[hidden] { display: none; }
.card:hover {
  transform: translateY(-8px);
  filter: brightness(1.14);
  box-shadow:
    0 0 24px 8px rgba(255, 250, 236, 0.48),
    0 0 58px 20px rgba(255, 236, 190, 0.39),
    0 18px 36px rgba(255, 244, 214, 0.2);
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 54px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 32, 0.88) 58%);
  width: 100%;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.card-icon svg { width: 16px; height: 16px; fill: #fff; }
.card strong { display: block; font-size: 1.02rem; letter-spacing: -0.03em; }
.card small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
}
.search-empty {
  margin: 12px 0 0;
  color: var(--muted);
}

.path {
  padding: 34px 6vw 28px;
  scroll-margin-top: 84px;
}
.path-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.step { display: grid; justify-items: center; text-align: center; gap: 4px; }
.step i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 999px;
  color: #e0a322;
  background: #fff8e8;
}
.step i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.step strong {
  font-family: Outfit, sans-serif;
  font-size: 1.05rem;
}
.step span { color: var(--muted); font-size: 0.92rem; }
.path .script { color: #2457c5; text-shadow: none; }

.band {
  padding: 28px 6vw 8px;
  scroll-margin-top: 84px;
}
.band h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.band p { margin: 0; max-width: 62ch; color: var(--muted); line-height: 1.6; }
.band-alt { padding-bottom: 36px; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 6vw 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, #e7f2ff, transparent 32%),
    #f5f7fb;
}
.experience, .login-wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 28px auto 48px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--violet);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lede { color: var(--muted); max-width: 52ch; word-break: keep-all; }
.checkin {
  width: min(460px, 100%);
  margin: 12px auto;
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.checkin h1 { margin: 0 0 8px; letter-spacing: -0.04em; }
.checkin label { display: block; margin-top: 18px; font-weight: 700; }
.checkin input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  padding: 12px 14px;
}
.checkin-time {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f7fb;
}
.checkin-time small { display: block; margin-bottom: 4px; color: var(--muted); font-weight: 700; }
.checkin-time span { color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
.checkin .btn { width: 100%; margin-top: 18px; }
#parent-register .lede { max-width: none; }
.essay-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.essay-picks a {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.essay-picks small { color: var(--muted); }
.pick {
  display: grid;
  grid-template-rows: 120px auto;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.pick { position: relative; }
.pick.is-open { box-shadow: 0 0 0 3px #5b46ff, var(--shadow); }
.card.is-locked { cursor: default; }
.pick.is-locked {
  filter: brightness(0.42) saturate(0.35);
  pointer-events: none;
}
.pick.is-locked::after {
  content: "잠김";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 16, 32, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.pick img { width: 100%; height: 120px; object-fit: cover; }
.pick span { display: grid; gap: 4px; padding: 12px 14px 14px; }
.pick small { color: var(--muted); }

.story {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.story-art { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.story-copy { padding: 28px; }
.story-copy h1 { margin: 0 0 10px; letter-spacing: -0.04em; }
.story-copy p { line-height: 1.65; }
.story-copy fieldset {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.story-copy legend { font-weight: 700; padding: 0; }
.choices { display: grid; gap: 10px; margin-top: 12px; }
.choice {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e1e6ee;
  background: #fff;
  cursor: pointer;
}
.choice:hover { border-color: #b7a6ff; background: #f7f4ff; }
.choice.is-selected { border-color: #6d5efc; background: #f4f1ff; }
.line-form { display: grid; gap: 8px; margin-top: 18px; }
.line-form input {
  border: 1px solid #d7dee7;
  border-radius: 14px;
  padding: 12px 14px;
}
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.text-link { color: var(--navy); font-weight: 700; }

.login-page {
  min-height: 100vh;
  background: #12345a url("assets/hero.svg") center/cover;
}
.login-page .nav { background: rgba(23, 32, 51, 0.9); }
.login-wrap { display: grid; place-items: center; min-height: calc(100vh - 120px); }
.login-wrap:has(#admin-board:not([hidden])) { place-items: start center; }
.login-card {
  position: relative;
  width: min(460px, 100%);
  padding: 32px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(8, 20, 40, 0.28);
}
a.card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
}
.card-close:hover { background: #e7edf5; }
.login-card h1 { margin: 8px 0; letter-spacing: -0.04em; }
.login-card .lede { margin-top: 0; }
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #dadce0;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.google-btn:hover { background: #f8f9fb; }
.login-note-slot { min-height: 72px; }
.login-note, .draft-box {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7fb;
  color: var(--muted);
  line-height: 1.5;
}
.draft-box { color: var(--ink); }
.login-card .text-link { display: inline-block; margin-top: 16px; }
.login-card-wide { width: min(640px, 100%); }
.join-intro { text-align: center; }
.join-intro h1 { letter-spacing: 0.04em; }
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.purpose {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 12px 16px;
  border: 1px solid #e4e7ee;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.purpose strong { font-size: 1.15rem; }
.purpose small { color: var(--muted); line-height: 1.4; }
.purpose.is-on { border-color: #cfd5e0; box-shadow: inset 0 0 0 1px #eef1f6; }
.purpose-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  border-radius: 50%;
  background: #c8cdd4;
  color: transparent;
  font-size: 0.8rem;
  font-weight: 700;
}
.purpose.is-on .purpose-mark { background: #1f9d55; color: #fff; }
#join-heading, [data-join-heading] { margin: 22px 0 8px; font-size: 1.15rem; }
#join-steps, [data-join-steps] { margin: 0; color: var(--ink); }
.join-btn {
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: #161616;
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}
.join-btn:hover { background: #000; }
.join-btn:disabled { opacity: 0.6; cursor: wait; }
.stack-form { display: grid; gap: 12px; margin-top: 16px; }
.stack-form label { display: grid; gap: 6px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 0.85rem; font-weight: 500; word-break: keep-all; }
.stack-form input[type="text"],
.stack-form select,
.stack-form input:not([type="radio"]) {
  border: 1px solid #d7dee7;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 500;
}
.stack-form label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e1e6ee;
  border-radius: 14px;
}
.stat-panel {
  margin: 8px 0 22px;
  padding: 18px 16px;
  border: 1px solid #e1e6ee;
  border-radius: 18px;
  background: #fff;
}
.stat-panel h2 { margin: 0 0 8px; font-size: 1.15rem; }
.stat-panel h3 { margin: 18px 0 8px; font-size: 1rem; }
.stat-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.status-pill {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f8ee;
  color: #1d7a45;
  font-size: 0.85rem;
  font-weight: 700;
}
.segment { display: flex; gap: 8px; margin: 14px 0; }
.segment button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f4f7fb;
  cursor: pointer;
  font-weight: 700;
}
.segment button.is-on { background: #ece8ff; color: #3d2e9e; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.stat-grid p, .usage p, .stat-line, .stat-label { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.stat-grid strong, .stat-total { font-size: 1.6rem; letter-spacing: -0.04em; }
.stat-total { margin: 4px 0 8px; }
.usage { margin-top: 8px; }
.bar { height: 10px; border-radius: 999px; background: #e7edf4; overflow: hidden; }
.bar span { display: block; height: 100%; width: 18%; border-radius: inherit; background: #3cba7a; }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-top: 12px; font-weight: 600; }
.range-row input { grid-column: 1 / -1; width: 100%; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e1e6ee;
  border-radius: 999px;
}
.explore-lead { margin: 0 0 8px; font-weight: 700; }
.explore-points { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 8px; }
.explore-points li { color: #1d7a45; font-weight: 600; }
.explore-points li::before { content: "✓ "; }
.parent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.login-card > .parent-actions { margin-top: 0; padding-right: 42px; }
.login-card > .student-entry { margin-top: 28px; padding-right: 0; }
#add-child { margin-top: 0; }
.people { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; padding: 0; }
.people li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7fb;
}
.people li > div { width: 100%; }
.child-login { margin: 4px 0 0; font-size: 0.92rem; }
.people .muted { color: var(--muted); }
.institution-field {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}
.institution-field input {
  width: 100%;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 500;
}
.row-actions { display: flex; gap: 8px; }
.row-actions button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
button.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid #8d74ff;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 48px;
    left: 16px;
    right: 16px;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; color: #172033; text-shadow: none; }
  .hero-grid, .path-inner, .story, .picker, .essay-picks { grid-template-columns: 1fr; }
  .hero-aside { justify-self: start; text-align: left; }
  .steps { grid-template-columns: 1fr 1fr; }
  .card { min-height: 280px; }
  .brand-tag { display: none; }
}

@media (max-width: 640px) {
  .nav { padding-inline: 14px; gap: 8px; }
  .nav-actions .btn { display: none; }
  .hero { overflow: visible; }
  .hero h1 { font-size: 40px; }
  .hero-en { display: none; }
  .hero .card-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.15%; }
  .hero-grid, .worlds-head, .worlds, .path, .band, .foot { padding-left: 16px; padding-right: 16px; }
  .worlds { padding-inline: 16px; }
  .picker { grid-template-columns: 1fr; }
  .experience, .login-wrap { width: min(100% - 28px, 1080px); }
}

.admin-console {
  width: min(960px, 100%);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(28, 39, 68, 0.12);
}
.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  background: #172033;
  color: #fff;
}
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; background: #fff; }
.admin-brand strong { display: block; letter-spacing: -0.03em; }
.admin-brand small { color: #b7c0d0; }
.admin-top-actions { display: flex; align-items: center; gap: 12px; }
.admin-top .text-link { color: #fff; }
.admin-body { padding: 22px; }
.admin-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.admin-title-row h1 { margin: 0; letter-spacing: -0.04em; }
.admin-title-row p { margin: 6px 0 0; color: var(--muted); }
.admin-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 8px; }
.admin-console .segment { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 14px; }
.admin-console .segment button { white-space: nowrap; }
.admin-stage { height: 560px; overflow: auto; }
.admin-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #f3f5f8;
  color: #5d6776;
  font-weight: 700;
  cursor: pointer;
}
.admin-tabs button.is-on { background: #e7ebf1; color: #1d2430; }
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
[data-admin-panel="system"] .stat-panel { margin-top: 16px; }
#school-form { margin-bottom: 16px; }
.seat-apply { display: flex; gap: 8px; align-items: center; }
.seat-apply input { width: 120px; border: 1px solid #d7dee7; border-radius: 10px; padding: 8px 10px; }
.seat-apply button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #172033;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.admin-stat {
  padding: 16px 18px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #fff;
}
.admin-stat span, .admin-stat small { display: block; color: var(--muted); }
.admin-stat strong { display: block; margin: 8px 0 4px; font-size: 2rem; letter-spacing: -0.05em; }
.admin-block { margin-top: 16px; padding: 8px 4px 0; }
.admin-block h2 { margin: 0 0 8px; font-size: 1.05rem; }
.admin-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
}
.due-pill {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1f6;
  color: #4d596b;
  font-size: 0.85rem;
  font-weight: 700;
}
.due-pill.is-soon { background: #fff1e4; color: #c56a12; }
.due-pill.is-over { background: #ffe8ea; color: #c43b4e; }
@media (max-width: 720px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-top, .admin-title-row { align-items: flex-start; flex-wrap: wrap; }
  .admin-stage { height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
