/* A title screen, a paper arcade, and the original course players. */
.mission-belief{display:none}
.hub-page{background:#104978;color:#f7f8ed}
.hub-page .site-header,.hub-page .site-footer{background:#104978;color:#fff;border:0}
.hub-page .site-header{position:relative;z-index:2}
.hub-page .header-inner{display:flex;gap:18px;width:min(93%,1520px);min-height:65px;padding:0;border-bottom:1px solid #ffffff35}
.hub-page .brand .wordmark{background:white;mix-blend-mode:normal;border-radius:5px;width:127px;padding:4px 8px}
.hub-page .mission-belief,.hub-page.guest .guest-login{display:inline-flex;align-items:center;border:1px solid #cee3ef;border-radius:100px;padding:7px 16px;color:#fff;background:transparent;font:700 13px/1.3 var(--font);white-space:nowrap}
.hub-page .mission-belief{border-color:transparent;margin-left:auto}
.hub-page.guest .guest-login{margin-left:0;background:#faf5dc;color:#234254;border-color:#faf5dc}
.hub-page .site-nav{display:none}
.hub-page .profile-link{color:white}
.hub-page .main{width:100%;max-width:none;padding:0;min-height:0}
.hub-page .site-footer{display:none}
.hub-page .dialog{color:var(--ink)}
.belief-lead{font-size:23px;font-weight:800;margin:21px 0 14px}
.quest-stage{--spin:0deg;position:relative;isolation:isolate;overflow:hidden;min-height:610px;height:calc(100svh - 65px);max-height:1280px;background:radial-gradient(ellipse at 46% 102%,#4698ae 0%,#226e97 47%,#104978 82%);color:#fff}
.cosmos{position:absolute;inset:0;pointer-events:none;z-index:-2}
.cosmos i{position:absolute;width:var(--size);height:var(--size);background:#e5f4f0;border-radius:50%;opacity:.65;animation:sky-pulse 7s var(--delay) infinite alternate ease-in-out}
.cosmos i:nth-child(7n){width:8px;height:8px;background:#fff5bf;clip-path:polygon(50% 0,61% 38%,100% 50%,62% 61%,50% 100%,39% 62%,0 50%,38% 39%)}
@keyframes sky-pulse{to{opacity:.22}}
.mission-copy{position:absolute;top:clamp(14px,3vh,46px);width:100%;text-align:center;z-index:1}
.quest-title{margin:0 auto;color:#fffdef;font:1000 clamp(58px,min(8.8vw,11.8vh),130px)/.81 "Arial Rounded MT Bold","Avenir Next",Arial,sans-serif;letter-spacing:-.065em;text-shadow:0 3px 0 #cfdbd3,0 6px 0 #0b385d55;transform:rotate(-2deg)}
.quest-title span{display:block}.quest-title span+span{margin-top:.07em}
.mission-cta{display:inline-flex;align-items:center;gap:12px;padding:10px 18px;border:1px solid #1b2e59;border-radius:22px;background:#c4afff;color:#262748;font-size:14px;font-weight:850;box-shadow:0 3px #68559d;margin-top:18px}
.mission-cta:hover{background:#dcceff;transform:translateY(-1px)}
.planet-holder{position:absolute;width:clamp(560px,min(68vw,80vh),1000px);left:50%;transform:translateX(-50%);top:clamp(205px,30.8vh,350px);transition:left .9s ease,top .9s ease,width .9s ease;z-index:-1;animation:planet-rise 1.05s cubic-bezier(.2,.75,.3,1) both}
.quest-world{width:100%;height:auto;transform:rotate(var(--spin));transition:transform 1.05s cubic-bezier(.15,.72,.24,1);filter:drop-shadow(8px 15px 12px #09374755)}
@keyframes planet-rise{from{translate:0 95px;opacity:.2}to{translate:0 0;opacity:1}}
.orbit-arrow{position:absolute;top:53%;left:10%;display:grid;place-items:center;width:44px;height:44px;border:1.5px solid #cee7e9;border-radius:100%;background:#123f6866;color:#fff;font:normal 34px/.8 Georgia,serif;padding:0 0 4px}
.orbit-arrow.next{left:auto;right:10%}.orbit-arrow:hover{background:#fff4dc;color:#12456e}
.quest-stage.on-mission .planet-holder{left:21%;top:29%;width:clamp(500px,58vw,990px)}
.on-mission .mission-copy{left:48%;width:42%;top:25%;text-align:left;animation:mission-in .48s ease}
@keyframes mission-in{from{opacity:0;translate:15px 0}to{opacity:1;translate:0 0}}
.mission-focus h1{font-size:clamp(37px,5vw,83px);line-height:1.19;margin:8px 0 12px;letter-spacing:-.06em;color:#fff9ec}
.mission-focus p:first-child{font:800 clamp(22px,3vw,48px)/1 "Avenir Next",sans-serif;color:#ffe7a3;letter-spacing:-.025em}
.mission-focus p:not(:first-child){max-width:24em;color:#e8f3f3;font-size:16px}
.on-mission .orbit-arrow{left:4%;top:47%}.on-mission .orbit-arrow.next{left:auto;right:4%}
.mission-dock{position:absolute;bottom:clamp(16px,4vh,48px);left:50%;transform:translateX(-50%);width:min(1110px,92%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;z-index:1}
.dock-entry{--tab:#c6ebc8;display:flex;align-items:center;gap:11px;min-height:76px;padding:12px 16px;color:#203648;background:#f9f7e9;border:2px solid #193d57;border-radius:14px 14px 12px 12px;box-shadow:0 5px #173c56;transition:transform .18s,background .18s}
.dock-entry:hover,.dock-entry:focus-visible,.dock-entry.selected{background:var(--tab);transform:translateY(-4px)}
.dock-words{--tab:#ffda89}.dock-learn{--tab:#c8d2ff}.dock-fun{--tab:#f7bcaa}
.dock-symbol{width:37px;height:37px;flex:none;display:grid;place-items:center;background:var(--tab);border:1px solid #213d50;border-radius:44% 52% 42% 48%;transform:rotate(-5deg)}
.dock-entry strong,.dock-entry small{display:block}.dock-entry strong{font-size:clamp(16px,1.5vw,21px);line-height:1.35}
.dock-entry small{font:italic 14px/1.15 Georgia,serif;color:#436074;margin-top:3px}.dock-entry b{margin-left:auto}
.room-page .main{width:100%;padding:0;min-height:0}.room-page .site-footer{display:none}
.room-tools {display:flex;align-items:center;gap:18px;padding:9px 3vw;border-bottom:1px solid #ccd2cb;background:#fffdf4;color:#213a50}
.room-tools h1{font-size:19px;letter-spacing:-.02em;margin:0}.room-tools nav,.room-tools>button{margin-left:auto}.room-tools nav{display:flex;gap:2px;background:#ececde;padding:3px;border-radius:9px}
.room-tools nav a{padding:4px 11px;border-radius:8px;font-size:13px;font-weight:700}.room-tools nav [aria-current]{background:#23425b;color:white}
.return-link{font-size:13px;font-weight:650;white-space:nowrap}.return-link:hover{text-decoration:underline}
.course-frame,.arcade-player iframe{display:block;width:100%;height:max(630px,calc(100dvh - 128px));border:0;background:#fbfaf3}
.arcade-page{background:linear-gradient(100deg,#74c9c3 0%,#bde3d6 55%,#f5ce9a 100%)}
.arcade-page .main{width:min(1100px,95%);padding:24px 0 46px}
.arcade-paper{border:2px solid #608586;border-radius:28px;background:#fffef9;padding:clamp(16px,4vw,46px);box-shadow:5px 7px #3878794d}
.arcade-heading{position:relative;text-align:center}.arcade-heading .return-link{position:absolute;top:4px;left:0;color:#32566b}
.arcade-heading h1,.game-box h2{font-family:"Arial Rounded MT Bold","Avenir Next",system-ui,sans-serif;font-weight:1000;letter-spacing:-.04em}
.arcade-heading h1{font-size:clamp(33px,5.8vw,70px);line-height:1.1;color:#32677e;letter-spacing:-.06em}.arcade-heading p{color:#43606b;font-weight:800;letter-spacing:.15em}
.arcade-filters{display:flex;justify-content:center;gap:9px;margin:18px 0 25px;flex-wrap:wrap}
.arcade-filters a{font-size:13px;font-weight:700;padding:5px 15px;border-radius:99px;background:#eef1eb}
.arcade-filters [aria-current]{background:#285d71;color:white}
.game-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.game-box{display:block;text-align:left;background:#fff6bb;border:7px solid #e7e6db;border-radius:54px;box-shadow:0 0 0 1.3px #b5b9ab,inset 0 0 0 1.5px #c5c5a9;padding:18px clamp(16px,2.1vw,31px) 22px;transition:background .18s,transform .18s;min-width:0}
.game-box:hover{background:#ffec86;transform:translateY(-3px)}
.game-box h2{text-align:center;color:#38708a;font-size:clamp(21px,2.5vw,36px);line-height:1.2;margin:0 0 15px;text-shadow:-1px -1px #fff,2px 2px #fff,3px 4px #afaf92}
.game-box:nth-child(4n+2) h2{color:#806195}.game-box:nth-child(4n+3) h2{color:#b26931}.game-box:nth-child(4n) h2{color:#4a8061}
.game-box>div{display:grid;grid-template-columns:minmax(72px,40%) 1fr;gap:16px;align-items:center}
.game-box img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:24%;border:3px solid white;box-shadow:0 0 0 1px #c2c0a5;background:#e6ecd8}
.game-box p{color:#364c52;font:600 clamp(15px,1.4vw,20px)/1.35 "Avenir Next","PingFang SC",sans-serif;overflow-wrap:break-word}
.extra-games{text-align:center;margin:38px 0 18px;font-size:23px}.compact-games p{font-size:15px}
.arcade-page.room-page .main{width:100%;padding:0}
@media(max-width:800px){
  .mission-dock{gap:6px;width:95%}.dock-entry{gap:6px;padding:9px}.dock-entry b{display:none}
  .dock-entry small{font-size:12px}.game-shelf{gap:14px}.game-box{border-radius:34px;padding:14px}.game-box>div{gap:10px}
}
@media(max-width:600px){
  .hub-page .header-inner{min-height:54px;gap:5px}.hub-page .brand .wordmark{width:98px}.hub-page .mission-belief,.hub-page.guest .guest-login{font-size:12px;padding:5px 9px}
  .quest-stage{min-height:540px;height:calc(100svh - 54px)}.quest-title{font-size:clamp(53px,16vw,85px)}.mission-copy{top:4%}
  .planet-holder{width:clamp(360px,119vw,630px);top:32%}.mission-cta{margin-top:14px;padding:7px 14px}
  .orbit-arrow,.on-mission .orbit-arrow{width:32px;height:32px;left:3%;top:52%;font-size:26px}.orbit-arrow.next,.on-mission .orbit-arrow.next{right:3%}
  .mission-dock{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;bottom:14px;width:94%}.dock-entry{min-height:54px;border-radius:10px}
  .dock-symbol{width:30px;height:30px}.dock-symbol svg{width:19px;height:19px}.dock-entry strong{font-size:15px}.dock-entry small{font-size:11px}
  .quest-stage.on-mission .planet-holder{left:31%;top:42%;width:110%}
  .on-mission .mission-copy{top:6%;left:9%;width:83%;text-align:center}.mission-focus p:not(:first-child){font-size:14px;margin:auto}.mission-focus h1{font-size:36px}
  .room-tools{flex-wrap:wrap;gap:7px;padding:7px 10px}.room-tools h1{font-size:16px}.room-tools nav a{font-size:12px;padding:4px 7px}
  .course-frame,.arcade-player iframe{height:calc(100dvh - 136px);min-height:510px}
  .game-shelf{grid-template-columns:1fr}.arcade-heading .return-link{position:static;display:block;text-align:left;margin-bottom:4px}
  .game-box{border-radius:37px;padding:14px 17px 16px}.game-box>div{grid-template-columns:minmax(68px,33%) 1fr;gap:15px}
  .game-box h2{font-size:25px;margin-bottom:13px}.game-box p{font-size:16px}.arcade-paper{padding:15px 12px}
}
@media(max-width:345px){.hub-page .brand .wordmark{width:81px}.dock-entry{padding:6px}.room-tools h1{font-size:14px}.room-tools nav{margin-left:0}}
@media(prefers-reduced-motion:reduce){.quest-stage *{animation:none!important;transition:none!important}}

/* Destination pages borrow the sky, paper and ink from the planet selector. */
.hub-page .home-caption{display:none}
body:not(.hub-page){
  --deep-sky:#104978;
  --night-ink:#193d57;
  --paper:#fffdf2;
  --page:#f9f7ed;
  --ink:#1d374d;
  --muted:#526571;
  --line:#ccd5d4;
  --sky-field:radial-gradient(1px 1px at 36px 19px,#f8f3cb 90%,transparent),
    radial-gradient(1.5px 1.5px at 127px 51px,#d3e4ee 90%,transparent),
    radial-gradient(1px 1px at 68px 87px,#d3e4ee 90%,transparent);
  background:var(--page);color:var(--ink)
}
body:not(.hub-page) .site-header{background:var(--deep-sky);border-bottom:1px solid #35648a}
body:not(.hub-page) .header-inner{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding-block:8px;gap:10px}
body:not(.hub-page) .brand{display:flex;align-items:center;gap:12px}
body:not(.hub-page) .wordmark{width:112px;height:auto;background:#fffdf1;padding:4px 8px;border-radius:5px;mix-blend-mode:normal}
body:not(.hub-page) .home-caption{display:block;color:#fff5df;line-height:1.2;font-weight:650;font-size:13px}
body:not(.hub-page) .profile-link{color:#fff8e9;border-color:#8daec2}
body:not(.hub-page) .profile-link:hover,body:not(.hub-page) .profile-link[aria-current]{background:#285b82}
body:not(.hub-page) .site-footer{background:#edeedf;border-color:#ced5cb}
.destination-head,.room-tools{
  position:relative;isolation:isolate;overflow:hidden;background-color:#16547e;
  background-image:var(--sky-field),linear-gradient(106deg,#104978 16%,#20688c 76%,#32869d);
  background-size:181px 113px,263px 177px,301px 131px,cover;color:#fff9e7
}
.destination-head{display:flex;align-items:center;min-height:178px;padding:24px clamp(22px,4vw,54px);margin:0 0 23px;border:2px solid var(--night-ink);border-radius:20px;box-shadow:0 4px var(--night-ink)}
.destination-head::after,.room-name::before{content:"";background:url("/media/quest-planet.webp") center/contain no-repeat;pointer-events:none}
.destination-head::after{position:absolute;right:4%;bottom:-55%;width:clamp(186px,23vw,300px);aspect-ratio:1;z-index:-1;transform:rotate(-9deg)}
.destination-head>div{width:67%}
.destination-name,.room-name small{display:block;font:800 17px/1.2 "Avenir Next","Trebuchet MS",sans-serif;letter-spacing:.012em;color:#ffe2a0}
.destination-head h1{font-size:clamp(31px,4vw,52px);letter-spacing:-.055em;line-height:1.16;margin:4px 0 8px}
.destination-head p{color:#f0f5ed;font-size:15px;margin:0}
.room-tools{min-height:64px;padding-block:7px;border:0;box-shadow:inset 0 -1px #326384}
.room-name{display:grid;grid-template-columns:52px auto;column-gap:11px;align-content:center}
.room-name::before{grid-column:1;grid-row:1/3;width:52px;aspect-ratio:1;align-self:center}
.room-name h1,.room-name small{grid-column:2}.room-name small{font-size:12px}.room-name h1{font-size:22px}
.room-tools nav{background:#163e61;border:1px solid #89aab9;color:#f9f7ea}
.room-tools nav [aria-current]{background:#fbefd0;color:#173650}
.room-tools>button,.room-tools .return-link{color:#fff5dc;border:1px solid #93b5bf;border-radius:20px;padding:4px 10px}
body:not(.hub-page) .btn-dark,.pill.active,.arcade-filters [aria-current]{background:#1e5378;color:white;border-color:#193e5c}
.level-tile.active,.level-tile:hover{background:#fff0bf;border-color:#b99749}
.level-tile.active strong{color:#4c3c14}
.word-card,.level-tile,.trail-stop,.panel.score-panel{background:var(--paper);border:1px solid #a6b9bc;box-shadow:0 2px #d1d9d3}
.word-card{border-top:3px solid #e4bc67}.word-card .word-term{color:#1d4c70}
.trail-stop.open,.trail-stop.done{background:#fff0c6;border-color:#bfa067}
.arcade-page .main{width:min(1180px,calc(100% - 72px));padding:28px 0 46px}
.arcade-paper{background:var(--paper);border:1.5px solid #93a9ad;border-radius:20px;box-shadow:0 4px #ccdad4;padding:clamp(14px,2.5vw,32px)}
.arcade-filters{margin:0 0 23px}
@media(max-width:650px){
  body:not(.hub-page) .header-inner{min-height:48px}
  body:not(.hub-page) .wordmark{width:96px}
  body:not(.hub-page) .brand{gap:6px}
  body:not(.hub-page) .home-caption{font-size:11px}
  .arcade-page .main{width:calc(100% - 26px);padding:17px 0 30px}
  .destination-head{min-height:138px;padding:16px;margin-bottom:16px}
  .destination-head::after{width:clamp(92px,32vw,185px);right:-2%;bottom:-22%}
  .destination-head>div{width:75%}.destination-head p{font-size:13px}
  .destination-name{font-size:14px}.destination-head h1{font-size:30px}
  .room-name{grid-template-columns:auto;gap:0}.room-name::before{display:none}.room-name small,.room-name h1{grid-column:1}
  .room-tools{min-height:50px;gap:7px}.room-name h1{font-size:16px}
}
@media(max-width:345px){
  body:not(.hub-page) .header-inner{gap:4px}
  body:not(.hub-page) .wordmark{width:78px}
  body:not(.hub-page) .home-caption{white-space:nowrap}
  body:not(.hub-page) .profile-mark{display:none}
  body:not(.hub-page) .profile-link{padding:5px 9px}
  .destination-head>div{width:70%}
  .destination-head::after{width:82px;right:-4%;bottom:-17%}
}
