:root {
  --bg: #05070a;
  --panel: rgba(7, 12, 18, 0.94);
  --panel-2: rgba(10, 17, 26, 0.9);
  --line: rgba(142, 162, 188, 0.38);
  --muted: #9aa8bb;
  --text: #f2f6fb;
  --green: #00ff99;
  --cyan: #00a8ff;
  --purple: #bb6cff;
  --gold: #ffcf66;
  --danger: #ff5f56;
  --warn: #ffbd2e;
  --ok: #27c93f;
  --radius: 16px;
  --mono: "Courier New", Courier, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mono);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 255, 153, 0.10), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(0, 168, 255, 0.10), transparent 30rem),
    radial-gradient(circle at 70% 85%, rgba(187, 108, 255, 0.10), transparent 28rem),
    linear-gradient(135deg, #020304 0%, #070b10 48%, #030407 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(0, 255, 153, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 153, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 0%, black 42%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(0,255,153,.45) 8% 8.15%, transparent 8.15% 100%),
    linear-gradient(180deg, transparent 0 22%, rgba(0,168,255,.35) 22% 22.15%, transparent 22.15% 100%);
}

a {
  color: inherit;
}

.portal-shell {
  width: min(980px, calc(100vw - 42px));
  margin: 34px auto;
}

.page-shell {
  width: min(760px, calc(100vw - 42px));
  margin: 34px auto;
}

.site-label {
  text-align: center;
  margin-bottom: 24px;
}

.site-label h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: 0.55em;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.site-label p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.82);
  letter-spacing: .42em;
  font-weight: 700;
}

.window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 16, 23, 0.96), rgba(3, 7, 11, 0.96));
  box-shadow:
    0 28px 90px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

.window-bar {
  height: 54px;
  border-bottom: 1px solid rgba(142, 162, 188, 0.25);
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  padding: 0 22px;
  background: rgba(255,255,255,.025);
}

.dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.dot.red { background: var(--danger); }
.dot.yellow { background: var(--warn); }
.dot.green { background: var(--ok); }

.address {
  justify-self: center;
  width: min(380px, 100%);
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(142,162,188,.18);
  background: rgba(0,0,0,.42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dce7f5;
  font-family: var(--sans);
  font-size: .95rem;
}

.window-nav {
  height: 74px;
  border-bottom: 1px solid rgba(142, 162, 188, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}

.brand {
  color: var(--green);
  letter-spacing: .32em;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .08em;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--green);
}

.nav-links a.active {
  border-bottom: 2px solid currentColor;
  padding-bottom: 8px;
}

.window-content {
  position: relative;
  padding: clamp(34px, 6vw, 70px) clamp(24px, 5vw, 70px);
}

.portal-content {
  min-height: 520px;
  text-align: center;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  color: #e3e8ef;
  margin-bottom: 56px;
}

.info-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  color: var(--green);
  font-size: 1.75rem;
}

.info-text {
  text-align: left;
  line-height: 1.55;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.info-time {
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 2.45rem);
  letter-spacing: .14em;
}

.accent {
  color: var(--cyan);
}

.hero-frame {
  position: relative;
  margin: 0 auto;
  width: min(660px, 100%);
  padding: 42px 76px 28px;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  top: 0;
  width: 62px;
  height: 160px;
  border-color: var(--green);
  filter: drop-shadow(0 0 12px rgba(0,255,153,.7));
}

.hero-frame::before {
  left: 10px;
  border-left: 4px solid;
  border-top: 4px solid;
  border-bottom: 4px solid;
}

.hero-frame::after {
  right: 10px;
  border-right: 4px solid;
  border-top: 4px solid;
  border-bottom: 4px solid;
}

.portal-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: .42em;
  font-weight: 400;
}

.portal-subtitle {
  margin: 18px 0 0;
  color: var(--green);
  letter-spacing: .42em;
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.portal-note {
  margin: 44px 0 34px;
  color: #d8e0eb;
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 0 auto;
}

.family-card {
  min-height: 178px;
  border: 1px solid currentColor;
  border-radius: 10px;
  text-decoration: none;
  padding: 24px 18px;
  background: rgba(0,0,0,.22);
  display: grid;
  align-content: center;
  gap: 10px;
  transition: all .24s ease;
}

.family-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.035);
  box-shadow: 0 0 24px currentColor;
}

.family-card .person-icon {
  font-size: 3.4rem;
  line-height: 1;
}

.family-card strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: .18em;
}

.family-card span {
  color: #d8e0eb;
  font-size: .92rem;
}

.family-card.mark { color: var(--cyan); }
.family-card.dorothy { color: var(--green); }
.family-card.risa { color: var(--purple); }

.window-footer {
  min-height: 76px;
  border-top: 1px solid rgba(142, 162, 188, 0.28);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.page-content {
  min-height: 380px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}

.profile-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: .22em;
  font-weight: 500;
}

.profile-kicker {
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}

.profile-copy {
  color: #d8e0eb;
  line-height: 1.7;
  max-width: 560px;
}

.panel {
  border: 1px solid rgba(0,168,255,.45);
  border-radius: 8px;
  padding: 18px;
  background: rgba(0,0,0,.22);
}

.panel h3 {
  margin: 0 0 14px;
  letter-spacing: .12em;
  color: #fff;
  font-size: .95rem;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li {
  color: #dfe7f2;
  margin: 11px 0;
}

.quick-links {
  display: grid;
  gap: 10px;
}

.quick-links a {
  border: 1px solid rgba(0,168,255,.42);
  border-radius: 7px;
  padding: 12px 14px;
  text-decoration: none;
  color: #bfe8ff;
  background: rgba(0,168,255,.06);
  display: flex;
  justify-content: space-between;
}

.quick-links a:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0,168,255,.34);
}

.mark-theme .brand,
.mark-theme .nav-links a.active,
.mark-theme .nav-links a:hover {
  color: var(--cyan);
}

.mark-theme .status-dot {
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.dorothy-theme .brand,
.dorothy-theme .nav-links a.active,
.dorothy-theme .nav-links a:hover,
.dorothy-theme .profile-kicker {
  color: var(--green);
}

.dorothy-theme .panel {
  border-color: rgba(0,255,153,.42);
}

.risa-theme .brand,
.risa-theme .nav-links a.active,
.risa-theme .nav-links a:hover,
.risa-theme .profile-kicker {
  color: var(--purple);
}

.risa-theme .panel {
  border-color: rgba(187,108,255,.45);
}

.risa-theme .status-dot {
  background: var(--purple);
  box-shadow: 0 0 14px var(--purple);
}

.risa-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}

.usf-block {
  display: grid;
  gap: 12px;
}

.school-row {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(187,108,255,.25);
  padding-bottom: 16px;
}

.school-logo {
  font-size: 2.6rem;
  color: var(--green);
}

.school-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: .12em;
}

.school-sub {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .12em;
  margin-top: 4px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.team-grid a {
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 14px 10px;
  display: grid;
  gap: 4px;
  color: var(--purple);
  background: rgba(187,108,255,.05);
}

.team-grid a:first-child {
  color: var(--cyan);
}

.team-grid a:nth-child(2) {
  color: var(--green);
}

.team-grid strong {
  color: #fff;
}

.visual-card {
  min-height: 180px;
  border: 1px solid rgba(187,108,255,.55);
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 20%, rgba(187,108,255,.22), transparent 9rem),
    radial-gradient(circle at 25% 65%, rgba(255,207,102,.14), transparent 9rem),
    linear-gradient(135deg, rgba(187,108,255,.12), rgba(0,0,0,.1));
  display: grid;
  place-items: center;
  color: var(--purple);
  font-size: 4rem;
}

@media (max-width: 820px) {
  .window-bar {
    grid-template-columns: 70px 1fr;
  }

  .window-bar::after {
    display: none;
  }

  .address {
    justify-self: end;
  }

  .window-nav,
  .window-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .window-nav {
    align-items: flex-start;
    height: auto;
    padding-top: 22px;
    padding-bottom: 22px;
    flex-direction: column;
    gap: 18px;
  }

  .info-row,
  .profile-layout,
  .risa-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .family-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .portal-title {
    letter-spacing: .14em;
  }

  .hero-frame {
    padding-left: 44px;
    padding-right: 44px;
  }

  .hero-frame::before {
    left: 0;
  }

  .hero-frame::after {
    right: 0;
  }

  .portal-subtitle {
    letter-spacing: .22em;
  }

  .window-footer {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
