:root {
  --ink: #1a1814;
  --navy: #1b1916;
  --navy-2: #2a2620;
  --gold: #f07828;
  --gold-soft: #ffe7d4;
  --cream: #f6f0e4;
  --paper: #ffffff;
  --ice: #f3eee4;
  --soft: #efe8d8;
  --line: #e8dfd0;
  --mute: #6b6560;
  --danger: #c2410c;
  --ok: #2f9a4a;
  --orange: #f07828;
  --yellow: #f0c420;
  --green: #2f9a4a;
  --sky: #7eb8e8;
  --brown: #6b4a2b;
  --serif: "Outfit", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --r: 22px;
  --r-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 2px 10px -4px rgba(26, 24, 20, 0.08);
  --shadow: 0 16px 40px -20px rgba(26, 24, 20, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(26, 24, 20, 0.22);
  --header-h: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.03em; }
h1, h2 { font-family: var(--sans); font-weight: 800; }
h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 18px; letter-spacing: -0.045em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
p { margin: 0 0 14px; }
em { font-style: italic; }
:focus-visible { outline: 3px solid #e8d4a4; outline-offset: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 80;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}
.skip:focus { left: 8px; }

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.page-pad { padding: 36px 0 88px; }
.page-head { margin-bottom: 28px; max-width: 720px; }
.page-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  max-width: none;
}
.page-head-row .lead { margin-bottom: 0; }

.eyebrow, .hello {
  margin: 0 0 10px;
  color: var(--mute);
  font: 600 15px/1 var(--sans);
}
.lead { display: none; }
.hint { color: var(--mute); font-size: 14px; }
.hl { color: var(--orange); }

#gate, #shell { min-height: 100vh; position: relative; z-index: 1; }
#shell { display: flex; flex-direction: column; }
#view { flex: 1; }
body.is-desk .top,
body.is-desk .foot,
body.is-desk .doodles { display: none; }
body.is-desk #view { display: flex; }
body.is-desk #view.play > * { animation: none; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 240, 228, 0.9);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s;
}
.top.scrolled, .top.bare {
  border-color: var(--line);
  box-shadow: 0 10px 28px -20px rgba(10, 27, 51, 0.45);
}
.top-inner, .top.bare {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.top.bare { padding: 0 40px; background: transparent; box-shadow: none; border: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}
.brand-mark, .brand-mini .brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font: 800 16px/1 var(--sans);
  animation: pulse-soft 3.6s ease-in-out infinite;
}
.brand-mark.sm { width: 26px; height: 26px; font-size: 12px; }
.brand strong { font: 800 16px/1 var(--sans); letter-spacing: -0.03em; }
.brand-mini { display: flex; align-items: center; gap: 8px; font-weight: 800; }

.campus-chip, .perk, .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
}
.campus-chip {
  padding: 8px 12px 8px 10px;
  background: var(--ice);
  color: var(--navy);
  font-size: 13px;
  border: 1.5px solid var(--line);
  white-space: nowrap;
}
.campus-chip:hover { border-color: #d8c48a; background: var(--gold-soft); }
.pin, .search-ico {
  width: 16px;
  height: 16px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.pin::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.search-ico { border-radius: 50%; color: inherit; }
.search-ico::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 7px;
  height: 1.7px;
  background: currentColor;
  transform: rotate(40deg);
  border-radius: 2px;
}

.top-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ice);
  border: 1.5px solid var(--line);
  color: var(--mute);
  min-width: 160px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.top-search:focus-within {
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 120, 40, 0.16);
  color: var(--ink);
}
.top-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.nav { display: flex; gap: 4px; }
.nav a, .nav-account {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--mute);
  font-weight: 600;
  font-size: 14.5px;
}
.nav a:hover, .nav-account:hover { color: var(--navy); background: var(--ice); }
.nav a.is-on { color: var(--ink); background: #fff; }
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-right: 12px;
  padding-left: 6px;
}
.nav-account.is-on { color: var(--ink); background: #fff; }
.who {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font: 700 12px/1 var(--sans);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 20px;
  background: var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hero-acts, .row-acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-acts { margin-top: 8px; }
.hero-perks { display: none; }

.hero-art { position: relative; aspect-ratio: 1.05; max-width: 460px; width: 100%; margin: 0 auto; }
.blob {
  position: absolute;
  border-radius: 50%;
}
.blob.b1 { width: 92px; height: 92px; background: var(--orange); left: 8%; top: 10%; animation: bob 6.5s ease-in-out infinite; }
.blob.b2 { width: 64px; height: 64px; background: var(--yellow); right: 14%; top: 8%; animation: bob 7.2s ease-in-out 0.3s infinite reverse; }
.blob.b3 { width: 78px; height: 78px; background: var(--green); left: 18%; bottom: 14%; animation: bob 8s ease-in-out 0.6s infinite; }
.blob.b4 { width: 46px; height: 46px; background: var(--brown); right: 22%; bottom: 18%; animation: bob 5.6s ease-in-out 0.2s infinite reverse; }
.blob.b5 { width: 28px; height: 28px; background: var(--sky); right: 8%; top: 38%; animation: bob 4.8s ease-in-out infinite; }
.hero-face {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font: 800 72px/1 var(--sans);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: face-soft 7s ease-in-out infinite;
}

.section { padding: 28px 0 12px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--mute); }

.rooms, .tile-grid, .course-grid, .tutor-grid, .portal-grid, .steps-grid, .grid-4 {
  display: grid;
  gap: 16px;
}
.rooms, .grid-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; }
.tile-grid { grid-template-columns: repeat(4, 1fr); }
.course-grid, .tutor-grid { grid-template-columns: repeat(2, 1fr); }
.course-grid .empty, .tile-grid .empty { grid-column: 1 / -1; }
.portal-grid { grid-template-columns: repeat(3, 1fr); }
.steps-grid { grid-template-columns: repeat(4, 1fr); }

.room, .tile, .stat, .panel, .course-card, .tutor, .portal, .quiz-card, .step-card, .note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}
.room, .tile, .stat { display: flex; flex-direction: column; text-align: left; cursor: pointer; width: 100%; }
.room:hover, .tile:hover, .stat:hover, .course-card:hover, .portal:hover, .tutor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.room { padding: 0; overflow: hidden; min-height: 220px; }
.room-art, .tile-art {
  display: grid;
  place-items: center;
  min-height: 110px;
  font: 800 28px/1 var(--sans);
  color: var(--navy);
}
.room-body, .tile-body { padding: 16px 18px 18px; }
.room-body span, .tile-body span, .stat span, .course-card span, .tutor span { color: var(--mute); font-size: 13.5px; }
.room-body strong, .tile-body strong { display: block; font-size: 17px; margin-bottom: 4px; }

.tile { overflow: hidden; }
.tile-art { min-height: 92px; font-size: 22px; }
.tile-body { padding: 14px 16px 16px; }

.t1 .room-art, .t1 .tile-art, .t1 .note-art, .t1.person, .dot.t1 { background: #ffd7b8; }
.t2 .room-art, .t2 .tile-art, .t2 .note-art, .t2.person, .dot.t2 { background: #ffe89a; }
.t3 .room-art, .t3 .tile-art, .t3 .note-art, .t3.person, .dot.t3 { background: #c8ecc8; }
.t4 .room-art, .t4 .tile-art, .t4 .note-art, .t4.person, .dot.t4 { background: #d7e8f7; }
.t5 .room-art, .t5 .tile-art, .t5 .note-art { background: #f3d7c4; }
.t6 .room-art, .t6 .tile-art, .t6 .note-art { background: #e8dfd0; }
.t7 .room-art, .t7 .tile-art, .t7 .note-art { background: #f6efe3; }
.t8 .room-art, .t8 .tile-art, .t8 .note-art { background: #f3ead8; }

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 0 36px;
}
.ep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 18px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.ep:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ep b { font-size: 15px; }
.ep em { margin-left: auto; color: var(--mute); font-style: normal; font-size: 13px; }
.dot { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person {
  display: grid;
  gap: 12px;
  padding: 28px 14px 20px;
  border-radius: 24px;
  text-align: center;
  border: 0;
  transition: transform 0.28s var(--ease);
}
.person:hover { transform: translateY(-4px); }
.person-face {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  font: 800 20px/1 var(--sans);
}
.person strong { font-size: 15px; font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 36px 0 8px;
}
.stats b { display: block; font: 800 48px/1 var(--sans); color: var(--orange); }
.stats span { color: var(--mute); font-size: 14px; }

.band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 40px 0 72px;
  padding: 36px 40px;
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
}
.band h2 { margin: 0; color: #fff; max-width: 12ch; }
.btn.light { background: #fff; color: var(--ink); box-shadow: none; }

.stat { padding: 22px 20px; }
.stat b { display: block; font: 700 36px/1 var(--serif); color: var(--navy); margin-bottom: 6px; }

.split { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.panel { padding: 24px; box-shadow: var(--shadow-sm); }
.panel.gold {
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  color: #f6f1e6;
  border-color: transparent;
  box-shadow: var(--shadow);
}
.panel.gold .lead, .panel.gold p { color: #d5cbb8; }
.panel.gold .btn { background: var(--gold); color: var(--navy); box-shadow: none; }
.feature h2 { max-width: 16ch; }

.form { display: grid; gap: 12px; }
.form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.form input, .form select, .form textarea, .filters select, .filters input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 16px;
  appearance: none;
}
.form input:focus, .form select:focus, .form textarea:focus, .filters select:focus, .filters input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 150, 42, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.22s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn.ghost {
  background: #fff;
  color: var(--ink);
}
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13.5px; box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}
.text-btn.danger { color: var(--danger); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 600;
}
.crumb button, .crumb a { color: var(--navy); }
.crumb button:hover, .crumb a:hover { color: var(--gold); }
.crumb span { opacity: 0.45; }

.desk-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.desk-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196, 150, 42, 0.14); }
.desk-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip {
  padding: 8px 14px;
  background: var(--ice);
  border: 1.5px solid transparent;
  color: var(--navy);
  font-size: 13.5px;
}
.chip:hover { background: #fff; border-color: var(--line); }
.chip.is-on { background: var(--ink); color: #fff; }

.course-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
}
.course-card strong { display: block; font-family: var(--sans); font-size: 20px; font-weight: 800; }
.course-card .meta { color: var(--mute); font-size: 13.5px; }
.desk-lock { max-width: 420px; }
.desk-lock .btn { width: 100%; }
#desk-err { color: var(--danger); min-height: 1.2em; margin: 0; }

.dash {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  width: 100%;
  background: var(--cream);
}
.dash-side {
  background: var(--ink);
  color: #fff;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.dash-brand strong { font: 800 16px/1 var(--sans); }
.dash-nav { display: grid; gap: 6px; }
.dash-nav button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  color: #f4efe6;
  font-weight: 700;
}
.dash-nav button:hover { background: rgba(255, 255, 255, 0.08); }
.dash-nav button.is-on { background: var(--orange); color: #fff; }
.dash-main { padding: 36px 40px 64px; min-width: 0; }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.dash-head h1 { font-size: clamp(32px, 4vw, 44px); margin: 0; }

.tutor-pro {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
}
.tutor-face {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gold-soft);
}
.tutor-face.mark {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
}
.tutor-card.tutor-pro { flex-direction: unset; }
.tutor-card.tutor-pro span,
.tutor-card.tutor-pro strong { display: block; }
.tutor-card.tutor-pro .avail { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--mute); }
.tutor-card.tutor-pro .avail.is-on { color: var(--ok); }
.tutor-preview { margin: 0 0 8px; }

.people-list { display: grid; gap: 10px; }
.sheet-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border-radius: 18px;
}
.sheet-row strong { display: block; font-size: 16px; }
.sheet-row span { color: var(--mute); font-size: 13.5px; }

.note-pack { margin: 0 0 40px; }
.note-pack:last-child { margin-bottom: 0; }
.note-pack h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 16px; }
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.note-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border-radius: var(--r);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.note-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.note-art {
  display: grid;
  place-items: center;
  min-height: 110px;
  font: 800 18px/1 var(--sans);
  color: var(--navy);
}
.note-body { padding: 16px 18px 18px; }
.note-body strong { display: block; font-size: 16px; margin-bottom: 6px; }
.note-body span { color: var(--mute); font-size: 13.5px; }
.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ice);
  text-decoration: none;
}
.file-row { transition: transform 0.22s var(--ease), background 0.22s; }
.file-row:hover { background: var(--gold-soft); transform: translateX(4px); }
.file-row b { display: block; font-size: 14.5px; }
.file-row em { color: var(--mute); font-style: normal; font-size: 12.5px; }
.file-row span {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #f7f1e4;
  font-size: 12.5px;
  font-weight: 700;
}

.row, .tutor {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.row:last-child, .tutor:last-child { border-bottom: 0; }
.row strong, .tutor strong { display: block; font-family: var(--sans); font-weight: 800; }
.tutor p { margin: 8px 0 0; }

.tutor-card, .quiz-card, .portal, .step-card { padding: 18px; }
.tutor-card, .quiz-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.tutor-card .row-acts, .quiz-card .row-acts { margin-top: auto; }

.empty {
  padding: 28px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  color: var(--mute);
  background: var(--ice);
}
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 0 0 10px; }
.step-card b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  margin-bottom: 12px;
}
.aside-title { font-size: 22px; margin-bottom: 8px; }
.plain { margin: 0 0 18px; padding-left: 18px; }

.portal { display: grid; gap: 6px; }
.portal em {
  color: var(--gold);
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
}
.portal a { color: var(--navy); font-weight: 600; }

.quiz-form fieldset { border: 0; border-top: 1px solid var(--line); padding: 14px 0; margin: 0; }
.quiz-form legend { font-family: var(--sans); font-weight: 700; padding: 0 0 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); }

.gate-page { min-height: 100vh; background: var(--cream); }
.gate-shell {
  width: min(1100px, calc(100% - 64px));
  margin: 0 auto;
  padding: 36px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.gate-intro h1 { margin-bottom: 12px; }
.gate-note { color: var(--mute); font-size: 17px; max-width: 28ch; margin: 0; }
.gate-art {
  position: relative;
  width: min(280px, 72%);
  aspect-ratio: 1;
  margin-top: 36px;
}
.gate-card {
  background: #fff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: pop 0.4s var(--ease) both;
  overflow: visible;
}
.gate-dots { display: flex; gap: 7px; margin-bottom: 22px; }
.gate-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.gate-dots i.is-on {
  width: 22px;
  border-radius: 999px;
  background: var(--orange);
}
.gate-dots i.is-done { background: var(--green); }
.gate-form { animation: rise 0.4s var(--ease) both; }
.gate-form input { min-height: 52px; }
.gate-acts { display: flex; gap: 10px; }
.gate-acts .btn { flex: 1; }
#gate-err { color: var(--danger); min-height: 1.2em; margin: 0; }

.pick { position: relative; width: 100%; }
.pick select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form .pick-btn, .pick-btn {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 12px 44px 12px 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  text-align: left;
  font: 600 15px/1.3 var(--sans);
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: none;
}
.pick-btn.is-empty { color: var(--mute); font-weight: 500; }
.pick-btn:hover, .pick.is-open .pick-btn {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 120, 40, 0.12);
}
.pick-caret {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.pick.is-open .pick-caret { transform: rotate(225deg); margin-top: -2px; }
.pick-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  animation: pop 0.2s var(--ease) both;
}
.form .pick-opt, .pick-opt {
  width: 100%;
  display: block;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  font: 600 14.5px/1.35 var(--sans);
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: none;
}
.pick-opt:hover { background: var(--gold-soft); }
.pick-opt.is-on { background: var(--ink); color: #fff; }
.pick-opt.is-mute { display: none; }
.pick.is-off .pick-btn { opacity: 0.45; cursor: not-allowed; }

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -12px;
  animation: confetti-fall 1.9s var(--ease) var(--d, 0s) both;
}
.confetti .bar {
  width: 8px;
  height: 14px;
  border-radius: 2px;
}
.confetti .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.confetti .plus {
  width: 10px;
  height: 10px;
  background: transparent !important;
}
.confetti .plus::before, .confetti .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.confetti .plus::before { left: 4px; top: 0; width: 2px; height: 10px; }
.confetti .plus::after { left: 0; top: 4px; width: 10px; height: 2px; }

.layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(10, 27, 51, 0.5);
  padding: 24px;
  animation: fade 0.22s ease both;
}
.modal {
  width: min(460px, 100%);
  background: var(--paper);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.35s var(--ease) both;
  overflow: visible;
}
.modal.wide {
  width: min(560px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
}
.course-pick {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--ice);
}
.form .course-pick label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.form .course-pick input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--orange);
  box-shadow: none;
}
.form .course-find {
  margin-bottom: 8px;
}
.tutor-card .topics { color: var(--mute); font-size: 13.5px; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow);
  animation: toast-in 0.35s var(--ease) both;
}

.filters { display: none; }
.upload-block { margin-top: 56px; }
.desk-note { color: var(--mute); margin-bottom: 18px; font-size: 14px; }

.foot {
  padding: 22px 0 28px;
  color: var(--mute);
  font-size: 14px;
  background: var(--cream);
}
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.foot-bar nav { display: flex; gap: 18px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .wrap, .top-inner { width: min(100% - 28px, 1180px); }
  .top-inner { flex-wrap: wrap; padding: 10px 0 12px; gap: 10px; }
  .campus-chip { display: none; }
  .top-search { order: 3; flex-basis: 100%; }
  .nav { order: 4; width: 100%; overflow: auto; }
  .nav-account span:last-child { display: none; }
  .hero { padding: 28px 0 48px; }
  .hero-grid, .split, .gate-shell, .rooms, .tile-grid, .course-grid, .tutor-grid, .portal-grid, .steps-grid, .grid-4, .people, .rail, .stats, .band, .note-grid {
    grid-template-columns: 1fr;
  }
  .hero-art { max-width: 280px; }
  .hero-face { font-size: 48px; }
  .band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .foot-bar { flex-direction: column; align-items: flex-start; }
  .page-pad { padding-top: 24px; }
  .page-head-row { flex-direction: column; align-items: flex-start; }
  .sheet-row { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 16px; }
  .dash-nav { display: flex; flex-wrap: wrap; }
  .dash-main { padding: 24px 18px 48px; }
  .tutor-pro { grid-template-columns: 64px 1fr; }
  .tutor-pro .row-acts { grid-column: 1 / -1; }
}

.doodles {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.doodle { position: absolute; opacity: 0.16; }
.doodle.orb { border-radius: 50%; }
.doodle.o1 { width: 18px; height: 18px; background: var(--orange); left: 8%; top: 18%; animation: drift 18s ease-in-out infinite; }
.doodle.o2 { width: 12px; height: 12px; background: var(--yellow); left: 22%; top: 72%; animation: drift 22s ease-in-out 1s infinite reverse; }
.doodle.o3 { width: 22px; height: 22px; background: var(--green); right: 12%; top: 28%; animation: drift 20s ease-in-out 0.6s infinite; }
.doodle.o4 { width: 10px; height: 10px; background: var(--sky); right: 24%; bottom: 16%; animation: drift 16s ease-in-out infinite reverse; }
.doodle.o5 { width: 14px; height: 14px; background: var(--brown); left: 48%; top: 12%; animation: drift 24s ease-in-out 1.4s infinite; }
.doodle.ring { border: 2px solid var(--orange); border-radius: 50%; }
.doodle.n1 { width: 36px; height: 36px; left: 6%; bottom: 22%; opacity: 0.12; animation: spin-slow 28s linear infinite; }
.doodle.n2 { width: 26px; height: 26px; right: 8%; top: 58%; border-color: var(--green); opacity: 0.14; animation: spin-slow 22s linear infinite reverse; }
.doodle.plus { width: 14px; height: 14px; }
.doodle.plus::before, .doodle.plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0.45;
}
.doodle.plus::before { left: 6px; top: 0; width: 2px; height: 14px; }
.doodle.plus::after { left: 0; top: 6px; width: 14px; height: 2px; }
.doodle.p1 { left: 16%; top: 42%; animation: drift 19s ease-in-out 0.8s infinite; }
.doodle.p2 { right: 18%; bottom: 28%; animation: drift 21s ease-in-out infinite reverse; }
.doodle.squig { width: 88px; color: var(--orange); }
.doodle.s1 { left: 30%; bottom: 10%; animation: drift 26s ease-in-out infinite; }
.doodle.s2 { right: 28%; top: 16%; color: var(--green); animation: drift 23s ease-in-out 1.2s infinite reverse; }
.doodle.spark { width: 18px; color: var(--yellow); }
.doodle.k1 { right: 10%; top: 14%; animation: twinkle 3.4s ease-in-out infinite; }
.doodle.k2 { left: 11%; bottom: 12%; color: var(--sky); animation: twinkle 4.2s ease-in-out 0.8s infinite; }
.doodle.star { width: 16px; color: var(--yellow); }
.doodle.d1 { left: 4%; top: 34%; animation: twinkle 4.8s ease-in-out infinite; }
.doodle.d2 { right: 5%; bottom: 20%; color: var(--orange); animation: twinkle 5.4s ease-in-out 1s infinite; }
.doodle.note { width: 22px; color: var(--brown); }
.doodle.e1 { right: 6%; top: 40%; animation: drift 27s ease-in-out 0.4s infinite; }
.doodle.e2 { left: 5%; top: 62%; color: var(--sky); animation: drift 25s ease-in-out infinite reverse; }
.doodle.tri {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--green);
  opacity: 0.12;
}
.doodle.r1 { left: 38%; top: 8%; animation: drift 20s ease-in-out infinite; }
.doodle.r2 { right: 36%; bottom: 8%; border-bottom-color: var(--orange); animation: drift 18s ease-in-out 0.7s infinite reverse; }

#view.play > * { animation: rise 0.55s var(--ease) both; }
#view.play .ep, #view.play .person, #view.play .tile, #view.play .course-card, #view.play .portal, #view.play .tutor-card, #view.play .quiz-card, #view.play .note-card, #view.play .sheet-row {
  animation: rise 0.5s var(--ease) both;
}
#view.play .ep:nth-child(2), #view.play .person:nth-child(2), #view.play .tile:nth-child(2), #view.play .course-card:nth-child(2) { animation-delay: 0.05s; }
#view.play .ep:nth-child(3), #view.play .person:nth-child(3), #view.play .tile:nth-child(3), #view.play .course-card:nth-child(3) { animation-delay: 0.1s; }
#view.play .ep:nth-child(4), #view.play .person:nth-child(4), #view.play .tile:nth-child(4), #view.play .course-card:nth-child(4) { animation-delay: 0.15s; }
#view.play .ep:hover, #view.play .person:hover, #view.play .tile:hover, #view.play .course-card:hover, #view.play .portal:hover {
  transform: translateY(-4px);
}
.gate-page { animation: rise 0.55s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -14px); }
}
@keyframes face-soft {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.035); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(18px, -22px) rotate(12deg); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes twinkle {
  0%, 100% { opacity: 0.08; transform: scale(0.9); }
  50% { opacity: 0.28; transform: scale(1.15); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes confetti-fall {
  to { transform: translate(var(--x), 110vh) rotate(var(--r)); opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
