:root{--bg:#080808;--panel:#121212;--text:#f7f4ef;--muted:#aaa8a4;--red:#f02b24;--aqua:#8cced5;--mint:#88c9a7;--orange:#f6a63b;--line:#292929}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}header{position:sticky;top:0;z-index:10;height:82px;display:flex;align-items:center;padding:10px clamp(20px,5vw,72px);background:#080808e8;backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.logo{width:72px;height:62px;object-fit:contain}nav{margin-left:auto;display:flex;gap:26px}nav a{color:#ddd;text-decoration:none;font-size:14px}.menu{display:none;margin-left:auto;background:none;border:0;color:white;font-size:25px}.hero{min-height:72vh;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:40px;padding:70px clamp(24px,7vw,110px);overflow:hidden}.hero h1{font-size:clamp(52px,7vw,100px);line-height:.94;letter-spacing:-.055em;margin:15px 0 24px}.hero em{font-style:normal;color:var(--aqua)}.hero p{max-width:650px;color:#c4c1bc;font-size:19px;line-height:1.6}.eyebrow,.section-head span{color:var(--orange);font-size:12px;font-weight:800;letter-spacing:.2em}.actions{display:flex;gap:12px;margin-top:32px}.btn{display:inline-block;padding:14px 20px;border:1px solid #444;border-radius:10px;background:#171717;color:white;text-decoration:none;font-weight:700;cursor:pointer}.primary{background:var(--red);border-color:var(--red)}.mark{display:grid;place-items:center}.mark img{width:min(100%,520px);filter:drop-shadow(0 28px 55px #000)}section:not(.hero){padding:90px clamp(24px,7vw,110px)}.section-head h2,.split h2,.contact h2{font-size:clamp(38px,5vw,68px);letter-spacing:-.04em;margin:10px 0 18px}.section-head p,.split p,.contact p{color:var(--muted);font-size:18px;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:42px}.cards article{background:var(--panel);border:1px solid var(--line);padding:28px;border-radius:16px}.cards b{font-size:30px}.cards h3{font-size:20px;margin:18px 0 8px}.cards p{color:var(--muted);line-height:1.5}.split{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;background:#0d0d0d}.studio-box{min-height:260px;border:1px solid #2e2e2e;border-radius:22px;padding:36px;display:flex;flex-direction:column;justify-content:flex-end;background:radial-gradient(circle at 70% 20%,#17353a 0,transparent 48%),#111}.wave{font-size:clamp(20px,3vw,42px);letter-spacing:4px;color:var(--aqua);margin-bottom:auto}.login,.dashboard{max-width:760px;margin-top:36px;background:#111;border:1px solid var(--line);border-radius:20px;padding:30px}.login label{display:block;color:#ccc;font-size:14px;margin:16px 0}.login input{width:100%;display:block;margin-top:8px;padding:15px;border:1px solid #383838;border-radius:10px;background:#090909;color:white;font-size:16px}.small{font-size:12px!important}.hidden{display:none}.dash-head{display:flex;justify-content:space-between;align-items:center}.resources{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px}.resources button{text-align:left;padding:22px;background:#171717;border:1px solid #303030;border-radius:13px;color:white;font-weight:800;font-size:16px}.resources small{display:block;color:#999;margin-top:7px;font-weight:400}.contact{text-align:center;background:linear-gradient(135deg,#111,#0b181a)}footer{padding:40px;display:flex;align-items:center;justify-content:center;gap:20px;color:#777;border-top:1px solid var(--line)}footer img{width:65px;height:55px;object-fit:contain}@media(max-width:760px){header{height:70px}.logo{width:60px;height:52px}nav{display:none}.menu{display:block}.hero{grid-template-columns:1fr;padding-top:55px}.mark{order:-1}.mark img{width:250px}.hero h1{font-size:54px}.cards{grid-template-columns:1fr 1fr}.split{grid-template-columns:1fr}.resources{grid-template-columns:1fr}section:not(.hero){padding-top:65px;padding-bottom:65px}}@media(max-width:480px){.cards{grid-template-columns:1fr}.actions{flex-direction:column}.btn{text-align:center}}
.text-btn{background:none;border:0;color:#86cbd4;padding:12px 0;cursor:pointer;font:inherit;text-decoration:underline}.small.error{color:#ff6b61}button:disabled{opacity:.65;cursor:wait}
.library{margin-top:28px}.resource-group{margin:0 0 34px}.resource-group h4{font-size:1.2rem;margin:0 0 12px}.resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.resource-card{display:block;padding:20px;border:1px solid #292929;border-radius:18px;background:#111;color:#fff;text-decoration:none;transition:.2s}.resource-card:hover{transform:translateY(-2px);border-color:#82c8d0}.resource-card h5{font-size:1.05rem;margin:10px 0 7px}.resource-card p{color:#bdbdbd;min-height:38px}.type-pill{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#f3a63a}.open-label{color:#82c8d0;font-weight:700;font-size:.86rem}.admin-panel{margin-top:38px;padding:24px;border:1px solid #333;border-radius:20px;background:#0e0e0e}.admin-panel h4{font-size:1.35rem;margin:7px 0}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.admin-grid label{display:flex;flex-direction:column;gap:7px}.admin-grid .wide{grid-column:1/-1}.admin-grid input,.admin-grid select,.admin-grid textarea{background:#090909;color:#fff;border:1px solid #383838;border-radius:10px;padding:12px;font:inherit}.setup-note,.empty-state{padding:22px;border:1px dashed #555;border-radius:16px;color:#ccc}.error{color:#f06b5f!important}@media(max-width:650px){.admin-grid{grid-template-columns:1fr}.admin-grid .wide{grid-column:auto}}
.resource-card audio{width:100%;margin:12px 0 4px}.resource-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.mini-btn{border:1px solid #3b3b3b;background:#181818;color:#fff;border-radius:9px;padding:8px 11px;text-decoration:none;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}.mini-btn:hover{border-color:var(--aqua)}.mini-btn.danger{color:#ff8178}.admin-grid input[type=file]{padding:9px}.resource-card{min-width:0}.resource-card p{min-height:0}
/* GMS app polish */
header{height:92px}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-size:12px;line-height:1.05;letter-spacing:.08em;font-weight:700}.brand .logo{width:88px;height:72px}.brand b{color:var(--aqua)}.install-btn{margin-left:18px;border:1px solid #3b3b3b;background:#151515;color:#fff;border-radius:999px;padding:9px 13px;font-weight:800;cursor:pointer}.dashboard{max-width:1100px}.dash-head h3{font-size:clamp(30px,4vw,48px);margin:5px 0}.account-actions{display:flex;align-items:center;gap:10px}.account-pill{font-size:12px;color:var(--mint);background:#102018;border:1px solid #244631;padding:8px 11px;border-radius:999px}.resource-group h4{font-size:1.35rem;padding-bottom:10px;border-bottom:1px solid #242424}.resource-card{background:linear-gradient(145deg,#141414,#0e0e0e);box-shadow:0 12px 32px rgba(0,0,0,.18)}.type-pill{display:inline-flex;background:#201b10;border:1px solid #4d3b19;padding:5px 8px;border-radius:999px}.mobile-dock{display:none}.install-sheet{position:fixed;z-index:40;left:14px;right:14px;bottom:88px;background:#171717;border:1px solid #3b3b3b;border-radius:18px;padding:15px;box-shadow:0 18px 50px #000;align-items:center;gap:12px}.install-sheet img{width:54px;height:54px;border-radius:13px}.install-sheet p{margin:5px 24px 0 0;color:#bbb;font-size:13px}.install-sheet button{position:absolute;right:10px;top:7px;background:none;border:0;color:#aaa;font-size:24px}.install-sheet:not(.hidden){display:flex}
@media(max-width:760px){body{padding-bottom:72px}header{height:76px;padding:8px 18px}.brand .logo{width:68px;height:58px}.brand span{display:none}.menu{display:block}header nav{position:absolute;top:76px;left:12px;right:12px;margin:0;padding:12px;flex-direction:column;gap:0;background:#121212f7;border:1px solid #333;border-radius:15px;box-shadow:0 18px 50px #000}header nav a{padding:13px;border-bottom:1px solid #242424}header nav a:last-child{border:0}.install-btn{margin-left:10px;padding:8px 10px;font-size:12px}.hero{min-height:auto;padding-top:38px}.hero p{font-size:17px}.mark img{width:220px}.dashboard,.login{padding:20px;margin-top:24px}.dash-head{align-items:flex-start;gap:15px}.account-actions{flex-direction:column;align-items:flex-end}.account-pill{display:none}.resource-grid{grid-template-columns:1fr}.resource-card{padding:18px}.mobile-dock{position:fixed;z-index:30;bottom:0;left:0;right:0;height:68px;background:#0c0c0cf5;backdrop-filter:blur(18px);border-top:1px solid #292929;display:grid;grid-template-columns:repeat(5,1fr);margin:0}.mobile-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#aaa;text-decoration:none;font-size:10px}.mobile-dock a span{font-size:19px;color:var(--aqua)}footer{padding-bottom:90px}}
\n\n/* GMS branded launch splash */
.splash-screen{position:fixed;inset:0;z-index:99999;background:#050505;display:grid;place-items:center;opacity:1;visibility:visible;transition:opacity .55s ease,visibility .55s ease}
.splash-screen.splash-hide{opacity:0;visibility:hidden;pointer-events:none}
.splash-inner{text-align:center;width:min(82vw,520px);padding:32px 24px;animation:splashIn .65s cubic-bezier(.2,.75,.25,1) both}
.splash-logo{display:block;width:min(72vw,410px);height:auto;margin:0 auto 24px;filter:drop-shadow(0 14px 35px rgba(0,0,0,.5))}
.splash-tagline{font-size:clamp(.72rem,2.5vw,.92rem);font-weight:800;letter-spacing:.28em;color:#d7d7d7;margin-left:.28em}
.splash-tagline span{color:#11aab7;padding:0 .15em}
.splash-loader{height:28px;margin-top:28px;display:flex;align-items:center;justify-content:center;gap:5px}
.splash-loader i{display:block;width:4px;height:8px;border-radius:3px;background:#11aab7;animation:gmsEq .8s ease-in-out infinite alternate}
.splash-loader i:nth-child(2){background:#e94235;animation-delay:.12s}.splash-loader i:nth-child(3){background:#f4a41c;animation-delay:.24s}.splash-loader i:nth-child(4){background:#11aab7;animation-delay:.36s}.splash-loader i:nth-child(5){background:#e94235;animation-delay:.48s}
@keyframes splashIn{from{opacity:0;transform:scale(.965)}to{opacity:1;transform:scale(1)}}
@keyframes gmsEq{from{height:7px;opacity:.6}to{height:25px;opacity:1}}
@media (prefers-reduced-motion:reduce){.splash-inner,.splash-loader i{animation:none}.splash-screen{transition:opacity .15s ease,visibility .15s ease}}


/* v6: cinematic 5-second launch + strict mobile viewport containment */
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
body{position:relative}
main,header,footer,section,.hero,.split,.cards,.login,.dashboard,.library,.resource-group,.resource-grid,.resource-card,.admin-panel,.admin-grid{min-width:0;max-width:100%}
img,video,audio,iframe,canvas,svg{max-width:100%}
input,select,textarea,button{max-width:100%;min-width:0}
.resource-card,.resource-card h5,.resource-card p,.small,.section-head p,.hero p,.contact p{overflow-wrap:anywhere;word-break:break-word}
audio{width:100%}


/* v7 persistent animated GMS colour spectrum */
header{overflow:visible}
.gms-spectrum{position:absolute;left:0;right:0;top:0;height:5px;display:flex;align-items:flex-start;gap:2px;overflow:hidden;background:linear-gradient(90deg,#0ba9b8,#7bcad1,#f5a51c,#ef3d32,#0ba9b8);background-size:250% 100%;animation:gmsSpectrumFlow 5s linear infinite;pointer-events:none}
.gms-spectrum span{flex:1;height:100%;transform-origin:top;animation:gmsSpectrumPulse .9s ease-in-out infinite alternate;background:rgba(255,255,255,.22)}
.gms-spectrum span:nth-child(2n){animation-delay:.12s}.gms-spectrum span:nth-child(3n){animation-delay:.25s}.gms-spectrum span:nth-child(4n){animation-delay:.38s}.gms-spectrum span:nth-child(5n){animation-delay:.5s}
@keyframes gmsSpectrumFlow{to{background-position:250% 0}}
@keyframes gmsSpectrumPulse{from{transform:scaleY(.35);opacity:.3}to{transform:scaleY(1);opacity:.95}}
@media(max-width:760px){*{max-width:100%}body{touch-action:pan-y}.actions{flex-wrap:wrap}.actions>a{min-width:0}.brand{min-width:0}.install-btn{flex:0 1 auto}.section-head,.split,.contact{overflow:hidden}}
@media(prefers-reduced-motion:reduce){.gms-spectrum,.gms-spectrum span{animation:none}}

/* v8 admin student management */
.student-admin{margin-top:34px;padding-top:28px;border-top:1px solid #2d2d2d}.student-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.student-admin-head h4{margin:7px 0}.student-list{display:grid;gap:10px;margin-top:16px}.student-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.7fr) auto auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid #2d2d2d;border-radius:14px;background:#111}.student-name{font-weight:800;overflow-wrap:anywhere}.student-email{color:#aaa;font-size:.88rem;overflow-wrap:anywhere}.student-badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid #3b3b3b;border-radius:999px;padding:6px 9px;font-size:.72rem;font-weight:800;white-space:nowrap}.student-badge.admin{color:var(--aqua);border-color:#28545a;background:#0e2225}.student-badge.active{color:var(--mint);border-color:#284737;background:#102018}.student-badge.inactive{color:#ff8178;border-color:#57302d;background:#251311}.student-toggle{min-width:105px}.student-toggle.danger{color:#ff8178}.student-toggle.restore{color:var(--mint)}
@media(max-width:760px){.student-admin-head{align-items:center}.student-row{grid-template-columns:1fr auto}.student-email{grid-column:1/-1;grid-row:2}.student-row .student-badge{grid-column:2;grid-row:1}.student-toggle{grid-column:1/-1;width:100%}}

/* v9 first-time invite/password setup */
#passwordSetup{max-width:620px;margin:24px auto}#passwordSetup h3{font-size:clamp(28px,4vw,42px);margin:8px 0 10px}#passwordSetup label{display:flex;flex-direction:column;gap:7px;margin:14px 0}#passwordSetup input{background:#090909;color:#fff;border:1px solid #383838;border-radius:10px;padding:13px;font:inherit}#passwordSetup .btn{margin-top:6px}
