:root{font-family:ui-rounded,Avenir Next,Avenir,Segoe UI,sans-serif;color:#17233e;background:#f5f0e4;font-synthesis:none;--ink: #17233e;--cream: #f7f2e8;--paper: #fffdf8;--teal: #087f79;--violet: #7058c5;--sun: #f5bd45;--coral: #f07163;--muted: #5c667d;--shadow: 0 16px 40px rgba(23, 35, 62, .13)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;min-height:100dvh}button,input{font:inherit}button{color:inherit}body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 8% 20%,rgba(31,184,170,.16) 0 9rem,transparent 9.1rem),radial-gradient(circle at 90% 74%,rgba(240,113,99,.12) 0 12rem,transparent 12.1rem),linear-gradient(120deg,transparent 47%,rgba(126,103,217,.05) 47% 53%,transparent 53%)}.eyebrow{display:block;color:#0b756e;font-size:.76rem;font-weight:850;letter-spacing:.11em}.eyebrow.light{color:#9ef2e8}h1,h2,p{margin-top:0}h1{font-size:clamp(2rem,5vw,4.8rem);line-height:.98;letter-spacing:-.045em}h2{letter-spacing:-.025em}p{color:var(--muted);line-height:1.55}.center-stage{min-height:100vh;display:grid;place-content:center;justify-items:center;padding:2rem;text-align:center}.loader{width:3.5rem;aspect-ratio:1;border:.42rem solid rgba(31,184,170,.2);border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.large-icon{font-size:5rem;color:var(--violet)}.login-layout{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(22rem,.75fr)}.brand-panel{position:relative;overflow:hidden;min-height:100vh;padding:clamp(2rem,5vw,5rem);color:#fff;background:radial-gradient(circle at 80% 18%,rgba(245,189,69,.95) 0 .55rem,transparent .6rem),radial-gradient(circle at 15% 76%,rgba(240,113,99,.9) 0 .7rem,transparent .75rem),#172440}.brand-panel:after{content:"";position:absolute;width:32rem;height:32rem;right:-13rem;bottom:-14rem;border:4rem solid rgba(31,184,170,.16);border-radius:50%}.brand-logo{width:clamp(12rem,25vw,20rem);filter:brightness(0) invert(1)}.brand-copy{position:relative;z-index:1;max-width:44rem;margin-top:clamp(5rem,14vh,10rem)}.brand-copy h1{max-width:12ch;margin:.7rem 0 1.5rem}.brand-copy p{max-width:42rem;color:#d7deef;font-size:clamp(1rem,1.5vw,1.25rem)}.crew-preview{position:absolute;right:5%;bottom:2%;display:flex;align-items:end}.crew-preview img{width:clamp(8rem,15vw,14rem);filter:drop-shadow(0 1rem 1rem rgba(0,0,0,.25))}.crew-preview img+img{margin-left:-2.5rem;transform:translateY(1rem)}.login-card{align-self:center;margin:clamp(1.5rem,5vw,5rem);padding:clamp(1.6rem,4vw,3.25rem);border:1px solid rgba(23,35,62,.08);border-radius:2rem;background:#fffdf8f5;box-shadow:var(--shadow)}.login-heading{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}.login-heading h2{margin:.2rem 0 0;font-size:2rem}.mini-mark{display:grid;place-items:center;width:3.5rem;aspect-ratio:1;border-radius:1rem;background:var(--teal);color:#fff;font-weight:900;transform:rotate(-4deg)}form{display:grid;gap:.65rem}label{margin-top:.5rem;font-weight:800}input{width:100%;min-height:3.3rem;padding:.75rem 1rem;border:2px solid #d8d7d2;border-radius:.9rem;color:var(--ink);background:#fff;outline:none}input:focus{border-color:var(--teal);box-shadow:0 0 0 4px #1fb8aa24}.primary-button,.child-mode-button{border:0;cursor:pointer;color:#fff;background:var(--violet);box-shadow:0 .45rem #5e4ab5}.primary-button{min-height:3.3rem;margin-top:1rem;padding:.8rem 1.2rem;border-radius:.9rem;font-weight:900}.primary-button.compact{min-width:15rem}button:disabled{opacity:.55;cursor:wait}.text-button,.quiet-button{border:0;background:transparent;cursor:pointer;font-weight:800}.text-button{padding:.8rem;color:#5c4ab1}.privacy-note{margin:1.8rem 0 0;font-size:.83rem}.legal-links{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1rem;font-size:.82rem;font-weight:800}.legal-links a{color:#4f419b;text-underline-offset:.2em}.legal-shell{position:relative;z-index:1;width:min(100% - 2rem,64rem);margin:0 auto;padding:1rem 0 4rem}.legal-topbar{display:flex;align-items:center;justify-content:space-between;min-height:5.2rem}.legal-topbar img{width:13rem}.legal-topbar a.quiet-button{text-decoration:none}.legal-card{padding:clamp(1.5rem,5vw,4rem);border:1px solid rgba(23,35,62,.08);border-radius:2rem;background:#fffdf8f7;box-shadow:var(--shadow)}.legal-card h1{margin:.65rem 0 1.25rem;font-size:clamp(2.5rem,7vw,5rem)}.legal-card h2{margin:0 0 .65rem;font-size:clamp(1.25rem,3vw,1.65rem)}.legal-card section{padding:1.35rem 0;border-top:1px solid #e8e4da}.legal-card section p:last-child{margin-bottom:0}.legal-card li{margin-bottom:.55rem;color:var(--muted);line-height:1.55}.legal-card a{color:#4f419b;overflow-wrap:anywhere}.legal-lead{max-width:48rem;font-size:1.1rem}.app-legal-links{justify-content:center;margin-top:2rem}.form-intro{margin:0 0 .4rem}.error,.notice{padding:.85rem 1rem;border-radius:.8rem;font-weight:700}.error{color:#8d2e2a;background:#ffe6e2}.notice{color:#17675f;background:#dff7f2}.wide{max-width:60rem;margin:0 auto 1rem}.app-shell{position:relative;z-index:1;width:min(100% - 2rem,86rem);margin:auto;padding:1rem 0 4rem}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:5.2rem}.topbar>img{width:13rem}.top-actions{display:flex;align-items:center;gap:.55rem}.connection-dot{width:.65rem;height:.65rem;border-radius:50%;background:var(--coral)}.connection-dot.online{background:var(--teal)}.connection-label{color:var(--muted);font-size:.8rem;font-weight:800}.quiet-button{min-height:2.7rem;padding:.65rem 1rem;border-radius:999px;background:#ffffff9e}.hero{display:flex;align-items:end;justify-content:space-between;gap:2rem;padding:clamp(2rem,5vw,4.5rem) 0 2rem}.hero h1{margin:.65rem 0 1rem;font-size:clamp(2.5rem,6vw,5.5rem)}.hero p{max-width:42rem;font-size:1.05rem}.child-mode-button{display:flex;align-items:center;gap:.9rem;min-width:20rem;padding:1rem 1.2rem;border-radius:1.1rem;text-align:left}.child-mode-button>span:first-child{font-size:1.8rem;color:var(--sun)}.child-mode-button strong,.child-mode-button small{display:block}.child-mode-button small{margin-top:.2rem;color:#e7e2fa}.child-mode-button b{margin-left:auto;font-size:1.5rem}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.profile-card{display:grid;grid-template-columns:minmax(10rem,.8fr) minmax(0,1.2fr);min-height:22rem;padding:0;overflow:hidden;border:0;border-radius:2rem;background:var(--paper);box-shadow:var(--shadow);text-align:left;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.profile-card:hover,.profile-card:focus-visible{transform:translateY(-4px);box-shadow:0 22px 46px #17233e2e}.avatar-wrap{position:relative;display:flex;align-items:end;justify-content:center;overflow:hidden;background:color-mix(in srgb,var(--accent) 18%,white)}.avatar-wrap:before{content:"";position:absolute;width:12rem;aspect-ratio:1;border:1.5rem solid color-mix(in srgb,var(--accent) 22%,transparent);border-radius:50%}.avatar-wrap img{position:relative;width:112%;margin-bottom:-8%;filter:drop-shadow(0 .8rem .8rem rgba(23,35,62,.16))}.grade{position:absolute;top:1.1rem;left:1.1rem;padding:.42rem .7rem;border-radius:999px;color:#fff;background:var(--accent);font-size:.72rem;font-weight:900}.profile-info{display:flex;flex-direction:column;padding:clamp(1.5rem,4vw,3rem)}.profile-info h2{margin:.35rem 0 1rem;font-size:clamp(2rem,4vw,3.6rem)}.reward-row{display:flex;flex-wrap:wrap;gap:.7rem}.reward-row span{padding:.5rem .75rem;border-radius:.7rem;background:#f0eee8;font-size:.78rem;font-weight:850;text-transform:capitalize}.reward-row .stars{color:#7b5900;background:#fff2c8}.mission-link{margin-top:auto;padding-top:2rem;color:var(--accent);font-weight:900}.mission-link b{margin-left:.3rem}.parent-summary{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:1rem;align-items:stretch;margin-top:1.5rem;padding:1.5rem;border-radius:1.5rem;color:#fff;background:var(--ink)}.parent-summary h2{margin:.4rem 0 0}.summary-stat{display:grid;place-content:center;padding:1rem;border-radius:1rem;background:#ffffff14;text-align:center}.summary-stat strong{color:var(--sun);font-size:2rem}.summary-stat span{color:#d8dfef;font-size:.78rem}.parent-tools{margin-top:1.5rem;padding:clamp(1.25rem,3vw,2rem);border-radius:1.75rem;background:#fffdf8d6;box-shadow:var(--shadow)}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.25rem}.section-heading h2{margin:.35rem 0 0;font-size:clamp(1.6rem,3vw,2.25rem)}.section-heading p{margin:0}.management-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.management-card{min-width:0;padding:1.25rem;border:1px solid rgba(23,35,62,.08);border-radius:1.25rem;background:#fff}.card-title-row{display:flex;align-items:center;gap:.9rem}.card-title-row h3{margin:0 0 .2rem;font-size:1.1rem}.card-title-row p{margin:0;font-size:.84rem}.tool-icon{display:grid;flex:0 0 auto;place-items:center;width:2.7rem;aspect-ratio:1;border-radius:.8rem;color:#fff;background:var(--teal);font-size:1.3rem;font-weight:900}.tool-icon.violet{background:var(--violet)}.device-list,.profile-tools-list{margin:1rem 0 0;padding:0;list-style:none}.device-list li,.profile-tools-list li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 0;border-top:1px solid #ece9e1}.device-list strong,.device-list small,.profile-tools-list strong,.profile-tools-list small{display:block}.device-list small,.profile-tools-list small{margin-top:.2rem;color:var(--muted)}.empty-state{margin:1rem 0 0;padding:1rem;border-radius:.8rem;background:#f5f3ed;font-size:.88rem}.row-actions{display:flex;flex-wrap:wrap;justify-content:end;gap:.45rem}.secondary-button,.danger-button{min-height:2.55rem;padding:.55rem .8rem;border-radius:.75rem;cursor:pointer;font-weight:850}.secondary-button{border:1px solid #d8d7d2;background:#fff}.danger-button{border:1px solid #efb0aa;color:#9b342d;background:#fff8f6}.danger-button.subtle{white-space:nowrap}.danger-button.solid{border-color:#b33e35;color:#fff;background:#b33e35}.modal-backdrop{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:1rem;background:#0d162b9e}.confirmation-dialog{width:min(100%,34rem);padding:clamp(1.5rem,4vw,2.5rem);border-radius:1.5rem;background:var(--paper);box-shadow:0 24px 80px #0000004d}.confirmation-dialog h2{margin:.8rem 0;font-size:2rem}.confirmation-dialog label{display:block;margin:1.2rem 0 .45rem}.danger-mark{display:grid;place-items:center;width:3rem;aspect-ratio:1;border-radius:50%;color:#fff;background:var(--coral);font-size:1.5rem;font-weight:950}.dialog-actions{display:flex;justify-content:end;gap:.65rem;margin-top:1.25rem}.learning-shell{position:fixed;z-index:10;inset:0;display:grid;grid-template-rows:auto 1fr;background:var(--cream)}.learning-shell>header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:max(.75rem,env(safe-area-inset-top)) max(1.2rem,env(safe-area-inset-right)) .75rem max(1.2rem,env(safe-area-inset-left));background:#fff;box-shadow:0 4px 14px #17233e14}.learning-shell>header>div:nth-child(2){text-align:center}.learning-shell>header strong{display:block}.star-chip{justify-self:end;padding:.55rem .85rem;border-radius:999px;color:#8c6809;background:#fff0bb;font-weight:900}.game-stage{position:relative;min-height:0}.game-stage iframe{position:absolute;z-index:2;width:100%;height:100%;border:0;background:transparent}.game-fallback{position:absolute;z-index:3;inset:0;display:grid;place-content:center;justify-items:center;padding:2rem;text-align:center;background:var(--paper)}.game-fallback p{max-width:34rem}.orb{display:grid;place-items:center;width:5rem;aspect-ratio:1;border-radius:50%;color:#fff;background:var(--teal);font-size:2rem;box-shadow:0 0 0 1rem #1fb8aa21}@media(max-width:900px){.login-layout{grid-template-columns:1fr}.brand-panel{min-height:38vh;padding-bottom:8rem}.brand-copy{margin-top:4rem}.brand-copy h1{font-size:2.7rem}.brand-copy p{display:none}.crew-preview{bottom:-2rem}.login-card{margin-top:-3rem;position:relative;z-index:2}.hero{align-items:stretch;flex-direction:column}.child-mode-button{min-width:0;width:100%}.profile-grid{grid-template-columns:1fr}.parent-summary{grid-template-columns:repeat(3,1fr)}.parent-summary>div:first-child{grid-column:1 / -1}.management-grid{grid-template-columns:1fr}}@media(max-height:850px),(max-width:900px){.oauth-compact{grid-template-columns:minmax(13rem,.7fr) minmax(22rem,1.3fr);height:100dvh;min-height:0;overflow:hidden}.oauth-compact .brand-panel{min-height:0;height:100dvh;padding:1.25rem}.oauth-compact .brand-logo{width:min(12rem,80%)}.oauth-compact .brand-copy{margin-top:min(12vh,4rem)}.oauth-compact .brand-copy h1{font-size:clamp(1.8rem,4vw,2.7rem)}.oauth-compact .brand-copy p,.oauth-compact .crew-preview{display:none}.oauth-compact .login-card{align-self:center;margin:1rem;padding:1.2rem 1.5rem;border-radius:1.4rem;max-height:calc(100dvh - 2rem);overflow:auto}.oauth-compact .login-heading{margin-bottom:.7rem}.oauth-compact .login-heading h2{font-size:1.55rem}.oauth-compact .mini-mark{width:2.8rem;border-radius:.75rem}.oauth-compact form{gap:.2rem}.oauth-compact label{margin-top:.25rem}.oauth-compact input,.oauth-compact .primary-button{min-height:2.8rem}.oauth-compact .primary-button{margin-top:.55rem}.oauth-compact .privacy-note{margin-top:.65rem}.oauth-compact .legal-links{margin-top:.5rem}}@media(max-width:600px){.oauth-compact{display:grid;grid-template-columns:1fr;grid-template-rows:4rem minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}.oauth-compact .brand-panel{min-height:4rem;height:4rem;padding:.65rem 1rem}.oauth-compact .brand-copy,.oauth-compact .crew-preview{display:none}.oauth-compact .brand-logo{width:8.5rem}.oauth-compact .login-card{align-self:center;margin:.4rem;padding:.8rem 1rem;max-height:calc(100dvh - 4.8rem);overflow:auto}.oauth-compact .privacy-note{font-size:.75rem;line-height:1.3}}@media(max-width:560px){.app-shell{width:min(100% - 1rem,86rem)}.topbar>img{width:10rem}.connection-label{display:none}.hero{padding-top:2rem}.profile-card{grid-template-columns:8rem minmax(0,1fr);min-height:16rem;border-radius:1.4rem}.profile-info{padding:1.2rem}.profile-info h2{font-size:2rem}.reward-row span:not(.stars){display:none}.parent-summary{grid-template-columns:1fr}.parent-summary>div:first-child{grid-column:auto}.section-heading,.device-list li,.profile-tools-list li{align-items:stretch;flex-direction:column}.row-actions{justify-content:stretch}.row-actions button{flex:1}.dialog-actions{flex-direction:column-reverse}.learning-shell>header{grid-template-columns:auto 1fr auto;padding:.5rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
