:root {
  --navy-950: #020713;
  --navy-900: #071427;
  --navy-800: #0b1e38;
  --accent: #e33a50;
  --accent-bright: #ff91a0;
  --accent-soft: rgba(227, 58, 80, 0.16);
  --white: #f7f8fb;
  --muted: rgba(241, 244, 249, 0.68);
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}


[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family:
    -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

body {
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #071427, #020713);
}

.background-layer {
  position: absolute;
  inset: -2%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.045);
  transition:
    opacity 1200ms cubic-bezier(.22, .61, .36, 1),
    transform 7600ms ease-out;
  will-change: opacity, transform;
}

.background-layer.active {
  opacity: 1;
  transform: scale(1.01);
}

.background-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(2, 7, 19, 0.10) 0%,
      rgba(2, 7, 19, 0.22) 48%,
      rgba(2, 7, 19, 0.46) 100%),
    radial-gradient(circle at 20% 16%, rgba(34, 99, 201, 0.12), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(227, 58, 80, 0.10), transparent 25%);
  transition: background 500ms ease;
  pointer-events: none;
}

body.roster-open .background-overlay {
  background:
    linear-gradient(180deg,
      rgba(2, 7, 19, 0.30) 0%,
      rgba(2, 7, 19, 0.60) 48%,
      rgba(2, 7, 19, 0.86) 100%),
    radial-gradient(circle at 20% 16%, rgba(34, 99, 201, 0.14), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(227, 58, 80, 0.12), transparent 25%);
}

.background-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 0 0,
      transparent 0,
      rgba(255,255,255,.7) .55px,
      transparent 1px);
  background-size: 7px 7px;
}

.screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(.2, .75, .2, 1),
    visibility 600ms;
}

.screen-clock {
  display: grid;
  place-items: center;
  padding:
    calc(24px + env(safe-area-inset-top))
    20px
    calc(24px + env(safe-area-inset-bottom));
}

.time-panel {
  position: relative;
  width: min(980px, 100%);
  padding: clamp(28px, 6vw, 62px) 24px;
  text-align: center;
}

.time-panel::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      rgba(4, 14, 30, .24) 0%,
      rgba(4, 14, 30, .10) 42%,
      transparent 72%);
  filter: blur(24px);
  pointer-events: none;
}

.kicker {
  margin: 0 0 20px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-shadow: 0 3px 18px rgba(0,0,0,.28);
}

.clock {
  margin: 0;
  font-size: clamp(64px, 14vw, 142px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.075em;
  text-shadow:
    0 10px 36px rgba(0,0,0,.32),
    0 1px 0 rgba(255,255,255,.12);
}

.date {
  margin: 22px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(15px, 2.8vw, 21px);
  font-weight: 500;
  letter-spacing: .10em;
  text-shadow: 0 4px 18px rgba(0,0,0,.30);
}

.hairline {
  width: 56px;
  height: 1px;
  margin: 34px auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
}

.elapsed-label {
  margin: 0;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-shadow: 0 3px 16px rgba(0,0,0,.26);
}

.elapsed {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(26px, 5.4vw, 50px);
  font-weight: 560;
  line-height: 1.3;
  text-shadow: 0 8px 30px rgba(0,0,0,.34);
}

.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.10);
  box-shadow:
    0 10px 34px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  cursor: pointer;
  transition:
    transform .22s ease,
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.enter-button:hover {
  transform: translateY(-2px) scale(1.01);
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.34);
  box-shadow:
    0 16px 40px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.screen-clock.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px) scale(.98);
  pointer-events: none;
}

.screen-roster {
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px);
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding:
    calc(18px + env(safe-area-inset-top))
    22px
    calc(30px + env(safe-area-inset-bottom));
}

.screen-roster.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.roster-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 6px 2px 18px;
}

.brand-lockup {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 20px;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.44));
}

.brand-lockup::before {
  content: "";
  position: absolute;
  inset: -24px -34px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 38% 50%,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,.07) 38%,
      transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.brand-logo {
  width: clamp(88px, 8vw, 118px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.32));
}

.brand-name {
  display: block;
  width: min(650px, 64vw);
  height: auto;
  max-height: 100px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.28));
}

.back-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  color: var(--white);
  background: rgba(3, 12, 26, .34);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.back-button:hover {
  transform: translateX(-2px);
  background: rgba(3, 12, 26, .5);
  border-color: rgba(227,58,80,.42);
}

.identity {
  padding: clamp(34px, 6vw, 66px) 4px clamp(28px, 4vw, 44px);
  text-align: center;
  text-shadow: 0 10px 28px rgba(0,0,0,.45);
}

.identity-college {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: clamp(17px, 2.8vw, 25px);
  font-weight: 650;
  letter-spacing: .18em;
}

.identity h2 {
  margin: 0;
  font-size: clamp(36px, 6.4vw, 70px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.identity-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  letter-spacing: .13em;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.people-tabs {
  width: fit-content;
  margin: 0 auto 28px;
  padding: 5px;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(4, 14, 30, .34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.people-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.68);
  background: transparent;
  cursor: pointer;
  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.people-tab b {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.07);
  font-size: 11px;
}

.people-tab:hover {
  color: #fff;
}

.people-tab.active {
  color: #fff3f5;
  background: rgba(227,58,80,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.people-tab.active b {
  color: #ffecef;
  background: rgba(227,58,80,.20);
}

.people-section {
  padding: 10px 0 6px;
}

.people-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 0 2px 20px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.section-eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .25em;
}

.people-heading h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 650;
  letter-spacing: -.02em;
}

.selection-status {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  letter-spacing: .08em;
  transition: color .2s ease, transform .2s ease;
}

.selection-status.has-selection {
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
}

.person-card {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    rgba(6, 18, 36, .18);
  color: var(--white);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .07em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

.person-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,145,160,.34), transparent 58%);
  transition: opacity .2s ease;
  pointer-events: none;
}

.person-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227,58,80,.5);
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.04)),
    rgba(8, 24, 48, .32);
  box-shadow: 0 16px 32px rgba(0,0,0,.22);
}

.person-card:hover::before,
.person-card.active::before {
  opacity: 1;
}

.person-card.active {
  color: #fff1f4;
  border-color: rgba(255,145,160,.78);
  background:
    linear-gradient(135deg, rgba(227,58,80,.30), rgba(227,58,80,.11)),
    rgba(8, 24, 48, .54);
  box-shadow:
    0 0 0 1px rgba(255,145,160,.12),
    0 15px 36px rgba(0,0,0,.25),
    0 0 30px rgba(227,58,80,.12);
}

.person-card.entering {
  animation: personIn 420ms ease forwards;
  animation-delay: calc(var(--i) * 14ms);
}

@keyframes personIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.site-footer {
  padding: 40px 0 4px;
}

.motto {
  margin: 0 0 24px;
  text-align: center;
  color: var(--accent-bright);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: .15em;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}

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

.site-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 15px 19px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.site-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(227,58,80,.44);
  background: rgba(7, 22, 44, .48);
}

.site-links small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.54);
  font-size: 10px;
  letter-spacing: .12em;
}

.site-links b {
  color: var(--accent);
  font-size: 20px;
}


.link-note {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
}

.thanks {
  margin: 20px 0 0;
  text-align: center;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  letter-spacing: .08em;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    visibility 260ms;
}

.profile-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 13, .48);
  backdrop-filter: blur(16px) saturate(.92);
  -webkit-backdrop-filter: blur(16px) saturate(.92);
}

.profile-dialog {
  position: relative;
  width: min(480px, 100%);
  padding: 34px 34px 32px;
  max-height: calc(100dvh - 44px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035)),
    rgba(5, 16, 34, .78);
  box-shadow:
    0 34px 100px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  transform: translateY(18px) scale(.975);
  transition: transform 320ms cubic-bezier(.2,.75,.2,1);
}

.profile-modal.open .profile-dialog {
  transform: translateY(0) scale(1);
}

.profile-dialog::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  top: -165px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(227,58,80,.22);
  filter: blur(58px);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.modal-close:hover {
  transform: rotate(5deg) scale(1.04);
  background: rgba(255,255,255,.12);
}

.modal-eyebrow {
  position: relative;
  padding-right: 54px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .24em;
}

.profile-dialog h3 {
  position: relative;
  margin: 0;
  font-size: clamp(42px, 10vw, 64px);
  font-weight: 650;
  letter-spacing: -.04em;
}

.profile-role {
  position: relative;
  min-height: 22px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.60);
  font-size: 14px;
  letter-spacing: .12em;
}

.student-detail,
.teacher-detail {
  position: relative;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.student-detail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.student-detail span,
.teacher-detail > span {
  color: rgba(255,255,255,.58);
  font-size: 13px;
  letter-spacing: .12em;
}

.student-detail strong {
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 600;
  letter-spacing: .06em;
}

.teacher-detail > span {
  display: block;
  margin-bottom: 12px;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-chip {
  padding: 8px 11px;
  border: 1px solid rgba(227,58,80,.20);
  border-radius: 999px;
  color: #ffe5e9;
  background: rgba(227,58,80,.10);
  font-size: 13px;
  line-height: 1.35;
}

.modal-line {
  position: relative;
  width: 52px;
  height: 1px;
  margin: 28px 0 22px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.modal-blessing {
  position: relative;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  letter-spacing: .08em;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}


body.modal-open .screen-roster {
  overflow: hidden;
}

button:focus-visible,
a:focus-visible,
.person-card:focus-visible,
.people-tab:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.profile-dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(227,58,80,.45) transparent;
}

.image-error {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  width: min(92vw, 720px);
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  background: rgba(120, 20, 20, .94);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .brand-name {
    width: min(650px, 65vw);
  }

  .people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .time-panel {
    padding-inline: 8px;
  }

  .time-panel::before {
    inset: 10% -8%;
    filter: blur(18px);
  }

  .clock {
    font-size: clamp(58px, 20vw, 96px);
  }

  .elapsed {
    font-size: clamp(23px, 7vw, 36px);
  }

  .screen-roster {
    padding-inline: 14px;
  }

  .brand-header {
    align-items: center;
    gap: 10px;
  }

  .brand-lockup {
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 60px;
  }

  .brand-name {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 154px);
    max-height: 66px;
  }

  .back-button {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }

  .back-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .people-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-links {
    grid-template-columns: 1fr;
  }

  .person-card {
    min-height: 52px;
    font-size: 15px;
  }

  .profile-dialog {
    padding: 30px 24px 26px;
    border-radius: 24px;
  }

  .student-detail {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


@media (min-width: 641px) and (max-width: 920px) {
  .site-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
