:root {
  --navy: #071433;
  --navy-2: #0c1d4d;
  --blue: #2f5bff;
  --blue-deep: #1a3fd4;
  --ink: #141a2e;
  --muted: #5c6578;
  --paper: #f4f6fa;
  --card: #ffffff;
  --line: rgba(20, 32, 72, 0.1);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --script: "Dancing Script", cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, video { max-width: 100%; }

.logo-lock { display: inline-flex; align-items: center; gap: 8px; color: white; text-decoration: none; }
.logo-arrow {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}
.logo-words { display: grid; font-family: var(--display); letter-spacing: 0.08em; font-size: 18px; line-height: 0.85; }
.word { text-decoration: none; }

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background:
    radial-gradient(circle at 72% 42%, rgba(47, 91, 255, 0.38), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(20, 50, 140, 0.45), transparent 26%),
    var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.auth::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(120, 150, 255, 0.25);
  border-radius: 50%;
  right: 8%;
  top: 18%;
  box-shadow: 0 0 0 70px rgba(80, 110, 255, 0.05), 0 0 0 140px rgba(80, 110, 255, 0.04);
  pointer-events: none;
}
.auth-story {
  padding: 36px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.script, .kicker {
  font-family: var(--script);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 8px;
}
.auth-story .script { color: white; font-size: 34px; }
.auth-story h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(72px, 8vw, 118px);
  line-height: 0.84;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  max-width: 8ch;
  color: #f3f5f8;
}
.lede { max-width: 42ch; color: rgba(255,255,255,0.78); font-size: 18px; line-height: 1.45; margin: 0; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  position: relative;
  z-index: 1;
}
.panel {
  width: min(420px, 100%);
  background: white;
  color: var(--ink);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.switch { display: grid; grid-template-columns: 1fr 1fr; background: #eef1f7; padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.switch button { border: 0; background: transparent; border-radius: 999px; padding: 10px 12px; font-weight: 700; }
.switch button.on { background: var(--navy); color: white; }
.role { display: flex; gap: 8px; margin-bottom: 14px; }
.role button, .ghost, .primary, .gold, .line-btn {
  border-radius: 999px;
  border: 0;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.role button { background: #eef1f7; color: var(--ink); }
.role button.on { background: var(--blue); color: white; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--blue);
  color: white;
  padding: 8px 8px 8px 18px;
}
.primary::after {
  content: "→";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.gold { background: white; color: var(--navy); border: 1px solid rgba(255,255,255,0.4); }
.line-btn { background: transparent; color: var(--blue-deep); border: 1px solid rgba(26, 63, 212, 0.25); }
.ghost { background: transparent; }
.panel .primary { width: 100%; margin-top: 6px; }
form label, .field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f7f8fb;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.16); }
.form-error { color: #c4362a; font-size: 14px; min-height: 1.2em; margin: 0 0 8px; }
.fine { color: rgba(255,255,255,0.62); font-size: 14px; line-height: 1.45; }
.panel .fine, .check .fine, .staff .fine, .mail .fine, .postcard .fine { color: var(--muted); }
.picks { display: grid; gap: 6px; margin: 8px 0 14px; max-height: 180px; overflow: auto; }
.picks button { text-align: left; border: 1px solid var(--line); background: #f7f8fb; border-radius: 12px; padding: 8px 10px; }
.picks button.on { border-color: var(--blue); background: #e8eeff; }

.shell { min-height: 100vh; background: var(--paper); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 28px 8px;
  background: var(--navy);
}
.search { position: relative; flex: 1; max-width: 520px; }
.search input {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}
.search input::placeholder { color: rgba(255,255,255,0.55); }
.search-results {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 30;
}
.search-results a, .search-results p { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.search-results a:hover { background: #eef2ff; }
.search-results small { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a, .nav-links button {
  text-decoration: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-links a.active, .nav-links a:hover { color: white; }
.nav-links a[data-nav="me"] {
  background: var(--blue);
  color: white;
  padding: 8px 8px 8px 16px;
}
.nav-links a[data-nav="me"]::after {
  content: "→";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-size: 14px;
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: white;
  color: var(--blue);
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 28px 16px;
  background: var(--navy);
}
.tabs a {
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  font-size: 14px;
}
.tabs a.active { background: var(--blue); color: white; }
.outlet {
  padding: 36px 28px 72px;
  max-width: 1180px;
  margin: 0 auto;
  background-image: radial-gradient(rgba(20, 32, 80, 0.16) 1.1px, transparent 1.1px);
  background-size: 16px 16px;
  background-color: var(--paper);
  min-height: calc(100vh - 120px);
}

.kicker { color: var(--blue-deep); font-size: 30px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; }
.page-title {
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.86;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--blue-deep);
}
.sub { color: var(--muted); max-width: 62ch; line-height: 1.5; font-size: 17px; }

.sport-grid, .school-grid, .division-grid, .fav-grid { display: grid; gap: 14px; margin-top: 22px; }
.sport-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.division-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.school-grid, .fav-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.tile, .conference, .school-card, .staff, .panel-card, .mail, .check, .fact {
  background: white;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(16, 28, 68, 0.06);
}
.tile, .conference { text-decoration: none; display: block; padding: 18px 18px 16px; color: var(--ink); }
.tile:hover, .conference:hover, .school-card:hover { transform: translateY(-2px); }
.tile strong, .conference strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue-deep);
  font-weight: 400;
}
.tile p, .conference .meta, .meta { color: var(--muted); font-size: 14px; }
.conference { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.conference strong { font-size: clamp(26px, 3vw, 36px); line-height: 0.95; }
.school-card { min-height: 150px; color: var(--ink); overflow: hidden; position: relative; padding: 18px; }
.school-hit { display: block; color: inherit; text-decoration: none; min-height: 120px; }
.school-card strong { display: block; font-family: var(--display); font-size: 30px; line-height: 0.95; margin-top: 8px; color: var(--navy); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.mark { font-family: var(--display); font-size: 40px; letter-spacing: 0.04em; line-height: 1; color: var(--blue); }
.heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #eef2ff;
  color: var(--blue);
}
.heart.on { background: var(--blue); color: white; }
.heart svg { width: 18px; height: 18px; fill: currentColor; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--blue-deep); text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 36px 32px;
  margin: -36px -28px 22px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 46%, rgba(47, 91, 255, 0.45), transparent 26%),
    var(--navy);
  min-height: 440px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(140, 170, 255, 0.28);
  border-radius: 50%;
  right: 6%;
  top: 16%;
  box-shadow: 0 0 0 54px rgba(80, 110, 255, 0.05);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .kicker { color: white; font-size: 32px; }
.hero h1 {
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.82;
  text-transform: uppercase;
  margin: 6px 0 10px;
  color: #f4f6fb;
  max-width: 10ch;
}
.hero-sub { font-size: 20px; margin: 0 0 6px; color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.hero .line-btn { color: white; border-color: rgba(255,255,255,0.35); }
.hero .gold { color: var(--navy); }
.postcard { background: var(--navy); border-radius: 18px; overflow: hidden; color: white; }
.postcard svg { display: block; width: 100%; height: auto; }
.postcard figcaption { padding: 12px 14px 14px; }
.postcard strong { font-family: var(--display); font-size: 28px; letter-spacing: 0.03em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.fact { padding: 14px 16px; }
.fact span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.fact strong { font-family: var(--display); font-size: 28px; color: var(--blue-deep); font-weight: 400; }
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 16px; }
.panel-card, .staff, .check { padding: 20px 20px 12px; margin-bottom: 14px; }
.panel-card h2, .check h2, .staff h3 { margin: 0 0 8px; font-size: 36px; text-transform: uppercase; color: var(--blue-deep); }
ol.steps { padding-left: 18px; }
ol.steps li { margin: 0 0 10px; line-height: 1.45; }
.visuals { display: grid; gap: 12px; }
.staff p { margin: 4px 0; }
.staff .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.check li { margin-bottom: 6px; }
.miss { color: #c4362a; }
.panel-card .kicker, .check .kicker { font-size: 28px; }

.profile-layout, .mail { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.profile-layout { grid-template-columns: 1fr 0.8fr; align-items: start; }
.scout { background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 28px rgba(16, 28, 68, 0.06); }
.scout-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--navy);
  color: white;
}
.avatar, .avatar-ph {
  width: 120px; height: 120px; border-radius: 16px; object-fit: cover; background: #16306e;
}
.avatar-ph { display: grid; place-items: center; font-family: var(--display); font-size: 42px; }
.meas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.meas div, .block { padding: 8px 14px 14px; }
.meas strong { display: block; font-family: var(--display); font-size: 28px; color: var(--blue-deep); font-weight: 400; }
.film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 14px; }
.film-grid video { width: 100%; border-radius: 12px; background: black; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mail { min-height: 640px; padding: 0; overflow: hidden; }
.mail-side { border-right: 1px solid var(--line); padding: 14px; background: #f7f8fc; }
.mail-main { padding: 18px; }
.thread-item, .folder {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 4px;
  color: var(--ink);
}
.thread-item strong, .folder strong { display: block; font-family: var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); font-size: 15px; }
.thread-item.on, .folder.on, .thread-item:hover, .folder:hover { background: white; }
.unread-dot { color: var(--blue); font-size: 12px; }
.file-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #eef2ff;
  text-decoration: none;
  margin: 12px 0;
  color: var(--ink);
}
.msg-body { white-space: pre-wrap; line-height: 1.5; }
.home-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; align-items: start; }

@media (max-width: 900px) {
  .auth, .hero, .split, .profile-layout, .mail, .home-grid, .facts { grid-template-columns: 1fr; }
  .auth { overflow-x: hidden; }
  .auth-story { padding: 28px 22px 12px; }
  .auth-story .script { font-size: 28px; }
  .auth-story h1 { font-size: 64px; max-width: 100%; }
  .topbar { flex-wrap: wrap; padding: 14px 16px 8px; }
  .search { order: 3; max-width: none; flex: 1 1 100%; }
  .tabs { padding-left: 16px; }
  .outlet { padding: 28px 16px 56px; }
  .hero { margin: -28px -16px 18px; padding: 28px 18px; }
  .film-grid, .row-2, .meas { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
