.school-entering { overflow: hidden; background: #050b12; }
.school-entering body > :not(#school-entry) { visibility: hidden; }
.school-entry[hidden] { display: none; }
.school-entry { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; overflow: hidden; color: #f5f6fa; color-scheme: dark; background: #050b12; font-family: system-ui, sans-serif; }
.school-entry { background: radial-gradient(ellipse at 50% 0, #20334c, transparent 60%), #050b12; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); box-sizing: border-box; }
.entry-scene { position: relative; z-index: 1; width: min(76vw, 48vh, 420px); text-align: center; }
.entry-glass { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; border: 2px solid #abcbed; border-radius: 11%; background: linear-gradient(135deg, #bedcff66, transparent 30%, #050a1299 60%, #87b9ff33); box-shadow: inset 4px 4px 8px #d7eaff88, inset -5px -5px 12px #9cc9ff66, 0 0 20px #78b7ff33, 0 25px 50px #0009; }
.entry-glass::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; border-radius: 11%; background: linear-gradient(120deg, transparent 35%, #ffffff12 50%, transparent 65%); pointer-events: none; }
.entry-glass img { width: 55%; height: auto; }
.entry-brand { font-size: clamp(22px, 3vw, 36px); color: #e2e9f3; font-weight: 300; }
.entry-controls { margin-top: 28px; text-align: center; }
.entry-decoration { position: absolute; width: 22vw; height: 110vh; border-radius: 44px; border: 1px solid #90b5d766; background: linear-gradient(90deg, #20344980, #060b11 65%, #fca31130); box-shadow: inset 2px 0 6px #9bc8ef66; pointer-events: none; }
.entry-decoration-left { left: -9vw; top: -20vh; transform: rotate(-34deg); }
.entry-decoration-right { right: -9vw; top: 0; transform: rotate(34deg); }
.entry-track { position: relative; height: 10px; min-height: 5px; border: 1px solid #a8c3df; border-radius: 20px; padding: 1px; overflow: hidden; background: linear-gradient(#05090e, #223248); box-shadow: inset 0 1px 4px #000, 0 0 8px #9dc7ff66; }
.entry-track span { display: block; width: 100%; height: 100%; transform-origin: left; transform: scaleX(.08); border-radius: inherit; background: linear-gradient(#fff5b5, #ffc400 45%, #ff9200); box-shadow: 0 0 8px #fff0a0, 0 0 18px #ffad00, 0 0 28px #ff8700; animation: entry-progress 8s cubic-bezier(.12,.65,.15,1) forwards; }
.entry-track::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, #fff6c880 50%, transparent 70%); transform: translateX(-100%); animation: entry-sweep 1.8s ease-in-out infinite; }
.entry-ready .entry-track span { animation: none; transform: scaleX(1); transition: transform 150ms ease-out; }
.entry-controls p { margin: 14px -18px 0; font-size: clamp(14px, 1.5vw, 20px); line-height: 1.5; color: #fff4df; }
.entry-message { animation: entry-neon 2.4s ease-in-out infinite alternate; }
.entry-dots { display: inline-flex; width: 1.1em; text-align: left; }
.entry-dots i { font-style: normal; text-shadow: 0 0 8px #ffae35; }
.entry-dots i:nth-child(2) { animation: entry-dot2 1.8s steps(1) infinite; }
.entry-dots i:nth-child(3) { animation: entry-dot3 1.8s steps(1) infinite; }
@keyframes entry-progress { to { transform: scaleX(.88); } }
@keyframes entry-sweep { to { transform: translateX(100%); } }
@keyframes entry-neon { from { text-shadow: 0 0 3px #ffc47366; } to { text-shadow: 0 0 6px #ffdc9ccc, 0 0 16px #ff9d0077; } }
@keyframes entry-dot2 { 0%, 100% { opacity: 0; } 33.333% { opacity: 1; } }
@keyframes entry-dot3 { 0%, 100% { opacity: 0; } 66.666% { opacity: 1; } }
@media (max-width: 600px) { .entry-decoration { opacity: .45; } .entry-controls { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .school-entry *, .school-entry ::after { animation: none !important; transition: none !important; } .entry-track span { transform: scaleX(.65); } .entry-track::after { display: none; } .entry-ready .entry-track span { transform: scaleX(1); } }

.school-entering.school-revealing body > :not(#school-entry) { visibility: visible; }
.school-entry { opacity: 1; transition: opacity 200ms cubic-bezier(.22,.61,.36,1); }
.school-entry.entry-leaving { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .school-entry { transition: none; } }
