#dome-intro.di-dialog {
  --dome-intro-ready: 1;
  --di-ink: #f8faff;
  --di-muted: #b9c6df;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--di-ink);
  background: radial-gradient(ellipse at 12% 75%, #173657 0, transparent 56%), radial-gradient(ellipse at 90% 10%, #20274d 0, transparent 50%), #091225;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  color-scheme: dark;
}
#dome-intro:not([open]) { display: none; }
#dome-intro[open] { display: block; }
#dome-intro::backdrop { background: #091225; }
#dome-intro .di-focus-guard { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html:has(#dome-intro[open]) { overflow: hidden; }
.di-replay { margin-top: 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8faff; color: #0b3b8f; padding: 10px 16px; font: inherit; cursor: pointer; }
.di-replay[hidden] { display: none !important; }
.di-replay:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
#dome-intro *, #dome-intro *::before, #dome-intro *::after { box-sizing: border-box; }
#dome-intro .di-shell { display: flex; flex-direction: column; height: 100%; padding: max(20px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left)); }
#dome-intro .di-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 16px; }
#dome-intro .di-brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 750; letter-spacing: .05em; direction: ltr; }
#dome-intro .di-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #93b3da66; border-radius: 10px; color: #f1cd7b; font-size: 21px; }
#dome-intro .di-brand-light { font-weight: 400; color: var(--di-muted); }
#dome-intro .di-school-logo { display: block; width: 116px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px; }
#dome-intro .di-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; max-width: 100%; min-width: 0; }
#dome-intro button { font: inherit; cursor: pointer; touch-action: manipulation; }
#dome-intro .di-languages { display: flex; padding: 3px; border: 1px solid #829bc544; border-radius: 24px; direction: ltr; }
#dome-intro .di-language { min-height: 44px; padding: 6px 13px; color: #c1cce0; border: 0; border-radius: 20px; background: transparent; font-size: 14px; }
#dome-intro .di-language[aria-pressed="true"] { color: #fff; background: #ffffff20; }
#dome-intro .di-skip { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 9px 18px; border: 1px solid #6494ff; border-radius: 24px; color: white; background: #1465ed; white-space: normal; font-weight: 600; font-size: 14px; }
#dome-intro .di-skip:hover { background: #0b53d0; }
#dome-intro .di-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 6vw, 100px); flex: 1 1 0; min-height: 0; width: min(1120px, 100%); margin: 20px auto 12px; }
#dome-intro .di-welcome { max-width: 520px; grid-column: 1; grid-row: 1; }
#dome-intro .di-eyebrow { margin: 0 0 18px; color: #d7b978; font-size: 11px; font-weight: 650; letter-spacing: .17em; text-align: start; }
#dome-intro h1 { margin: 0 0 20px; font-size: clamp(28px, 2.5vw, 40px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
#dome-intro .di-subtitle { margin: 0; color: #d2dded; font-size: 16px; line-height: 1.85; }
#dome-intro .di-hint { margin: 25px 0 0; color: #b8c7df; font-size: 14px; }
#dome-intro .di-media-area { height: 100%; min-height: 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; grid-column: 2; grid-row: 1; }
#dome-intro .di-duration { flex: 0 0 auto; margin: 8px 0 0; color: #e4eaf5; font-size: 14px; line-height: 1.5; text-align: center; }
#dome-intro .di-video-frame { position: relative; height: 100%; max-height: 740px; max-width: 100%; aspect-ratio: 9 / 16; border: 1px solid #c6d8ee3d; border-radius: 22px; overflow: hidden; background: #030711; box-shadow: 0 24px 75px #0005; }
#dome-intro .di-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #030711; }
@supports (height: 1cqh) {
  #dome-intro .di-media-area { container-type: size; }
  #dome-intro .di-video-frame { height: min(calc(100cqh - 44px), calc(100cqw * 16 / 9), 740px); flex-shrink: 0; }
}
#dome-intro .di-play { position: absolute; inset: 0; margin: auto; width: 128px; height: 128px; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; border: 1px solid #ffffff9c; border-radius: 50%; background: #091225c9; color: #fff; box-shadow: 0 8px 32px #0006; }
#dome-intro .di-play-symbol { display: block; width: 0; height: 0; margin-left: 5px; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 21px solid white; }
#dome-intro .di-play-label { font-size: 14px; font-weight: 600; }
#dome-intro [hidden] { display: none !important; }
#dome-intro .di-footer { flex: 0 0 auto; text-align: center; color: #c2cee3; font-size: 12px; }
#dome-intro .di-footer p { margin: 0; }
#dome-intro #intro-status:empty { display: none; }
#dome-intro #intro-status:not(:empty) { margin-top: 4px; color: #f5d596; }
#dome-intro button:focus-visible, #dome-intro video:focus-visible { outline: 3px solid #f3cd7b; outline-offset: 4px; }
@media (max-width: 640px) and (orientation: portrait) {
  #dome-intro .di-shell { padding: max(10px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); }
  #dome-intro .di-header { flex-direction: column; gap: 8px; }
  #dome-intro .di-brand { display: flex; }
  #dome-intro .di-school-logo { width: 80px; height: 50px; padding: 3px; }
  #dome-intro .di-actions { width: 100%; justify-content: space-between; gap: 8px; }
  #dome-intro .di-language { padding-inline: 10px; }
  #dome-intro .di-skip { padding-inline: 13px; font-size: 13px; }
  #dome-intro .di-main { display: flex; flex-direction: column; gap: 10px; margin: 12px auto 8px; }
  #dome-intro .di-welcome { text-align: center; flex: 0 0 auto; }
  #dome-intro .di-eyebrow, #dome-intro .di-hint { display: none; }
  #dome-intro h1 { font-size: 23px; line-height: 1.3; margin: 0 0 4px; }
  #dome-intro .di-subtitle { font-size: 12px; line-height: 1.5; max-width: 340px; }
  #dome-intro .di-media-area { flex: 1 1 0; height: 0; width: 100%; }
  #dome-intro .di-video-frame { border-radius: 14px; max-height: min(740px, calc((100vw - 24px) * 16 / 9)); }
  #dome-intro .di-footer { font-size: 12px; }
  #dome-intro .di-play { width: 104px; height: 104px; gap: 9px; }
}
@media (max-height: 650px) and (orientation: portrait) {
  #dome-intro .di-main { gap: 7px; margin-top: 8px; }
  #dome-intro h1 { font-size: 20px; }
  #dome-intro .di-subtitle { display: none; }
  #dome-intro .di-footer { font-size: 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  #dome-intro .di-shell { padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  #dome-intro .di-main { margin: 8px auto 4px; gap: 24px; }
  #dome-intro .di-brand { font-size: 15px; }
  #dome-intro .di-brand-mark { width: 28px; height: 28px; font-size: 17px; }
  #dome-intro .di-eyebrow { margin-bottom: 9px; font-size: 12px; }
  #dome-intro h1 { font-size: 27px; margin-bottom: 10px; }
  #dome-intro .di-subtitle { font-size: 13px; line-height: 1.6; }
  #dome-intro .di-hint { margin-top: 10px; font-size: 11px; }
  #dome-intro .di-play { width: 76px; height: 76px; gap: 5px; }
  #dome-intro .di-play-symbol { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 15px; }
  #dome-intro .di-play-label { font-size: 12px; }
  #dome-intro .di-footer { font-size: 12px; }
}

/* Chooser controls share the intro preference without depending on a dialog. */
.di-chooser-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.di-chooser-brand .di-school-logo { display: block; width: 116px; height: 72px; object-fit: contain; }
#chooser-language { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #cbd5e1; border-radius: 24px; direction: ltr; }
#chooser-language button { min-height: 44px; padding: 6px 12px; border: 0; border-radius: 20px; background: transparent; color: #334155; font: inherit; font-size: 14px; cursor: pointer; }
#chooser-language button[aria-pressed="true"] { color: #fff; background: #145fdf; }
#chooser-language button:focus-visible { outline: 3px solid #d59b22; outline-offset: 3px; }
#intro-feedback { color: #923b00; font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
#intro-feedback:empty { display: none; }
html[dir="rtl"] .store-btn span { align-items: flex-start; text-align: start; }

/* Short/reflowed views prioritize the controls and the uncropped media. */
@media (max-height: 420px) and (orientation: landscape) {
  #dome-intro .di-welcome { display: none; }
  #dome-intro .di-main { display: flex; justify-content: center; }
  #dome-intro .di-media-area { width: 100%; }
  #dome-intro .di-school-logo { width: 72px; height: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  #dome-intro *, #dome-intro *::before, #dome-intro *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The real campus anchors both welcome and sign-in in the school's identity. */
body {
  background-color: #10233b;
  background-image: linear-gradient(110deg, rgba(8, 22, 42, .34), rgba(8, 22, 42, .52)), url("campus.webp");
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
}
#dome-intro.di-dialog {
  background-color: #091225;
  background-image: linear-gradient(90deg, rgba(6, 17, 35, .88), rgba(6, 17, 35, .76) 52%, rgba(6, 17, 35, .9)), url("campus.webp");
  background-size: cover;
  background-position: center 44%;
  background-repeat: no-repeat;
}
.auth-card { box-shadow: 0 24px 70px #03102166; }
.left-pane { padding: 0; background: #173b61; }
.left-pane img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 64% center;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 640px) {
  body { background-position: 65% center; }
  #dome-intro.di-dialog { background-position: 64% center; }
}
