/* Visual edition. No game state or gameplay rules are defined here. */
:root{--forest:#123f37;--sea:#087e8b;--paper:#fffaf0;--orange:#d65a2f;--line:#dfdfce;--shadow:0 12px 36px #193e3210;font-family:'Trebuchet MS','Arial Rounded MT Bold',Arial,sans-serif;color:var(--forest)}
html{scroll-behavior:smooth}button,a,input,select,textarea{font-family:inherit}button,a{transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}button:active,a.primary:active{transform:translateY(2px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #087e8b;outline-offset:4px}p{line-height:1.65}button:disabled{transform:none}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--sea)}
.hub{background:#f8f6ed}.hub header{max-width:1500px;margin:auto;padding:22px 4%;min-height:88px}.brand{letter-spacing:.3px}.brand>b,.island-game .logo{background:var(--forest);color:#ffd376;border-radius:14px 14px 5px 14px;box-shadow:3px 3px 0 #e1ad48}.brand small{font-size:9px;letter-spacing:2px}.hub nav{gap:8px}.hub nav button,.hub nav a{background:transparent;border:1px solid #cbd6c9;border-radius:30px;min-height:44px;padding:10px 18px;font-size:13px}.hub nav #teacher{background:#fff;box-shadow:0 3px 0 #d9dece}.hub nav #results{background:#143f37;color:#fff;border-color:#143f37}.hub main{max-width:1500px;padding:0 4%;margin:auto}.hub .hero{min-height:565px;position:relative;display:flex;align-items:center;padding:46px 5%;border-radius:32px;background:#f9efdf url('art/hero.webp') center/cover no-repeat;overflow:hidden;border:1px solid #e6e2d2}.hero-copy{position:relative;z-index:1;max-width:53%;animation:enter .65s ease both}.hub .hero .eyebrow{background:#fffc;padding:9px 13px;border:1px solid #d7dfcb;border-radius:30px;display:inline-block;font-size:10px;letter-spacing:1.5px}.hub .hero h1{font-size:clamp(40px,4.5vw,68px);line-height:1.03;letter-spacing:-2.8px;font-weight:900;margin:24px 0 18px;color:#163e35;text-shadow:0 1px #fff8}.hub .hero h1 em{font-style:normal;color:#126e67}.hub .hero p{font-size:16px;color:#214b42;max-width:440px;text-shadow:0 1px 4px #fff;margin-bottom:24px}.explore-link{display:inline-flex;gap:25px;align-items:center;text-decoration:none;background:#173f36;color:white;border-radius:13px;padding:16px 20px;box-shadow:0 4px 0 #092d25;font-size:14px;font-weight:bold}.explore-link span{font-size:22px}.hero-notes{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap;font-size:10px;font-weight:bold}.hero-notes span{background:#fffdf3e8;border:1px solid #d9decb;padding:6px 10px;border-radius:6px}.expedition-dock{display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:40px;padding:40px 3%;margin:16px 0 28px}.dock-intro h2{font-size:36px;line-height:1.1;letter-spacing:-1px;margin:14px 0}.dock-intro p{font-size:14px;color:#526b60}.dock-stamps{display:flex;gap:12px;margin-top:22px}.dock-stamps b{border:2px dashed #a4b5a0;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#588171;font-size:14px;transform:rotate(-10deg)}.dock-stamps b:nth-child(even){transform:rotate(8deg);color:#bc733b;border-color:#d3ae77}.hub .passport{width:100%;min-width:0;margin:0;display:grid;grid-template-columns:160px 1fr;column-gap:24px;row-gap:7px;position:relative;align-items:center;padding:24px;background:#fffdf7;border:1px solid #dcdcca;border-radius:24px;box-shadow:var(--shadow);transform:rotate(1deg)}.passport>span{grid-column:1/-1;letter-spacing:2px;font-size:10px;color:#8a6835;border-bottom:1px dashed #c7cbb5;padding-bottom:12px}.hub .passport #home-avatar{grid-column:1;grid-row:2/6;height:190px;margin:0;border-radius:18px;border:1px solid #dce4d1}.hub .passport #custom-avatar{grid-column:1;grid-row:6;width:100%;margin:0;font-size:12px;min-height:40px}.passport label{grid-column:2;grid-row:2;font-size:10px;color:#3f6558}.passport #playername{grid-column:2;grid-row:3;margin:0;background:#f2f5eb;border:1px solid #ccd9c6;padding:13px;font-size:17px;min-width:0}.passport #passportprogress{grid-column:2;grid-row:4;font-size:12px;color:#58705f}.passport #story{grid-column:2;grid-row:5/7;margin:0;align-self:center;font-size:14px;line-height:1.4;width:100%;min-height:49px;background:#cf552b;box-shadow:0 4px 0 #8e3a23;border-radius:12px}.sectionhead{align-items:end;margin:15px 0 20px}.sectionhead h2{font-size:34px;letter-spacing:-1px;margin:8px 0 0}.sectionhead p{font-size:13px;max-width:320px;color:#536d60}.world-atlas{margin:24px 0 35px;border:7px solid #fffdf6;border-radius:28px;box-shadow:0 0 0 1px #d9e1cd,var(--shadow)}.atlas{box-shadow:none;border-radius:20px}.atlas-heading b{font-size:23px}.atlas-links a{border:1px solid #b8cfbc;background:#fffdf4;box-shadow:0 4px 0 #31635233;border-radius:10px}.atlas-links a b{font-size:13px}.atlas-links a:focus-visible{outline:4px solid #d85927}.worldcards{grid-template-columns:repeat(6,minmax(0,1fr));gap:24px;margin-top:32px}.worldcard,.worldcard:nth-child(4),.worldcard:nth-child(5){grid-column:span 2;display:block;margin:0;border:1px solid #d9ddcf;border-radius:22px;background:#fffdf7;box-shadow:0 5px 0 #e2e3d6;overflow:hidden}.worldcard:nth-child(4),.worldcard:nth-child(5){grid-column:span 3}.worldart,.worldcard:nth-child(5) .worldart{height:auto;min-height:0;aspect-ratio:1.55;position:relative;background:#d3e3d1;overflow:hidden}.worldcard:nth-child(4) .worldart,.worldcard:nth-child(5) .worldart{aspect-ratio:2.1}.world-illustration{display:block;width:100%;height:100%;object-fit:cover;transition:transform .55s ease}.worldcard:hover .world-illustration{transform:scale(1.035)}.worldcard:hover{transform:translateY(-4px);box-shadow:0 10px 0 #e1e4d5,0 22px 32px #234e4110}.number{top:14px;left:14px;background:#fffdf5;color:#234c3c;border-radius:20px;padding:8px 12px;font-size:10px;box-shadow:0 2px 8px #123f3722}.stamp{background:#124e37;color:white;border:1px solid #c0e2b2;border-radius:20px;top:14px;right:14px}.cardbody{padding:24px}.cardbody .eyebrow{font-size:10px;letter-spacing:1.5px;color:#26756a}.cardbody h3{font-size:27px;line-height:1.1;margin:12px 0;color:#163e35;letter-spacing:-1px}.cardbody p{font-size:14px;color:#4b6659;min-height:48px}.cardmeta{font-size:11px;color:#52715e;margin:20px 0;border-top:1px dashed #d6ddc9;padding-top:14px;gap:12px}.cardbody a.primary{display:flex;justify-content:space-between;background:#164f40;min-height:47px;font-size:14px;border-radius:11px;box-shadow:0 4px 0 #0d3328}.worldcard:nth-child(2) .primary{background:#9f4931;box-shadow:0 4px 0 #6b3527}.worldcard:nth-child(3) .primary{background:#087789;box-shadow:0 4px 0 #09505b}.worldcard:nth-child(5) .primary{background:#51417e;box-shadow:0 4px 0 #342955}.endbanner{position:relative;overflow:hidden;background:#193e38;color:#fff7df;border:1px solid #396554;border-radius:24px;padding:32px 38px;margin:40px 0 28px;gap:24px}.endbanner:after{content:'✦';position:absolute;right:27%;font-size:140px;line-height:1;color:#f1c45f;opacity:.15;transform:rotate(12deg);pointer-events:none}.endbanner small{color:#ffda8c;font-size:10px;letter-spacing:2px}.endbanner h2{font-size:30px;margin:10px 0;color:#fff7df}.endbanner p{font-size:14px;color:#c6dfc9}.endbanner .secondary{background:#fff4d5;color:#204a3a;position:relative;z-index:1;min-height:48px;white-space:nowrap}.hub footer{max-width:1500px;margin:auto;padding:15px 4% 30px;font-size:11px;color:#617463;gap:16px;flex-wrap:wrap}
/* Dialogs and studio retain their existing fields, event handlers and preview. */
dialog{border:1px solid #ced7c3;border-radius:24px;background:#fffcf4;box-shadow:0 24px 100px #0e33294d;padding:28px;color:#1e493c}dialog[open]{animation:enter .2s ease both}dialog::backdrop{background:#092f396b;backdrop-filter:blur(5px)}dialog h2{font-size:30px;letter-spacing:-1px;line-height:1.15}dialog p{font-size:14px;color:#486357}dialog .close{width:40px;height:40px;min-height:40px;font-size:24px;background:#e7eddd;color:#294c3a;display:grid;place-items:center}dialog .notice{border-left:4px solid #d3983c;background:#f8efd7;font-size:13px;color:#665231}dialog input,dialog textarea,dialog select{border:1px solid #c2d1bf;background:#fff;padding:12px;border-radius:10px;font-size:15px}dialog label{font-size:11px;line-height:1.6;color:#3e5e4e}dialog .primary{background:#185841;color:white;min-height:46px}dialog .secondary{background:#ecf1e2;color:#294d3b;min-height:44px;border:1px solid #d4dec9}dialog .resultrow{background:#edf2e5;border:1px solid #d9e1cc;border-radius:12px;padding:15px;font-size:14px}dialog .resultrow.done{background:#dcefd6;color:#245533}.studio-dialog{background:#fffaf0}.studio-left{padding:12px;background:#e8eedb;border-radius:20px}.studio-fields select{background:#fff;min-height:44px}.preview-actions button{min-height:42px;background:#fff;border:1px solid #cad7c0}.studio-fields .color-field{background:#edf1e4;padding:10px}.formnav button{min-height:44px}
/* Game HUD: preserve the world canvas, controls and question logic. */
.gamebody header .brand,.island-game.play header .brand{border:1px solid #d8dfc9;background:#fffdf4f5;border-radius:13px;box-shadow:0 3px 0 #264f3920}.gamebody header nav button,.island-game .tools button,.island-game .tools .maplink{border:1px solid #c6d6c4;background:#fffdf4;color:#214b3c;border-radius:11px;min-height:42px;font-weight:bold;box-shadow:0 3px 0 #204a3c22}.questionpanel{background:#fffdf4fa;border:2px solid #fff;border-top:5px solid #148176;border-radius:7px 7px 20px 20px;box-shadow:0 7px 0 #143f3720,0 12px 28px #123d3420}.questionpanel h1{font-weight:800;color:#153b33}.questionpanel .eyebrow{color:#276b60}.journeybar{height:6px;background:#e5e9d9}.journeybar>div{background:#d98b2e}.gamestatus{border:1px solid #c7d7bf;border-radius:15px;background:#fffdf3;box-shadow:0 4px 0 #3f684626}.hearts{color:#c6403d;text-shadow:0 2px #f7c5b9}.scene-answer{border:2px solid #276d58;border-radius:12px;background:#fffef9;color:#14392c;box-shadow:0 4px 0 #14392c50;font-weight:800}.choicebar button{border:2px solid #799c7c;background:#fffdf3;box-shadow:0 4px 0 #3a5a3b60;border-radius:13px}.choicebar button.aimed,.scene-answer.aimed{background:#fff0b7;border-color:#b97918}.choicebar button.selected{background:#cef0c3;border-color:#347c42}.choicebar button.wrong{background:#ffe0d7;border-color:#b24338}.choice-number{background:#dfead6;color:#284b32;font-weight:800}.touchpad button,.island-game #dpad button{border:2px solid #bad1b3;background:#fffef4;box-shadow:0 3px 0 #3a614b44;border-radius:12px}.actionpad button,.island-game #jump{background:#ffd178;color:#3b391e;border:2px solid #fff1c4;box-shadow:0 4px 0 #8e6b36;border-radius:15px}.actionpad #action{background:#d5edbc;border-color:#eff9df}.placedanswers span{background:#dcefd0;border:1px solid #93bc7d;color:#245332}.mission{background:#fffdf3f5;border:1px solid #d1dcc4;border-top:5px solid #237c62;box-shadow:0 5px 0 #234f3526;border-radius:6px 6px 20px 20px}.mission h2{color:#1b4f3b}.task{border-top-style:dashed}.task b{background:#f3e2af;color:#73551e}.score{background:#fff4cc;border:2px solid #fffdf3;box-shadow:0 3px 0 #9a7c4533}.island-game #activity{background:#fffdf4;border:2px solid #c9dcc1;border-radius:18px}.island-game:not(.play){overflow:auto;background:#f9f4e7}.island-game:not(.play) #world{opacity:.18}.island-game:not(.play):before{content:'';position:fixed;inset:0;background:#fbf2df url('art/world1.webp') right center/cover no-repeat;pointer-events:none}.island-game:not(.play):after{content:'';position:fixed;inset:0;background:linear-gradient(90deg,#fff9eafc 0%,#fff9eaf5 27%,#fff9ea15 66%);pointer-events:none}.island-game:not(.play) header,.island-game:not(.play) #welcome,.island-game:not(.play) #worldtag,.island-game:not(.play) footer{z-index:2}.island-game #welcome h1{font-size:clamp(44px,4.7vw,68px);color:#1d4d3b;letter-spacing:-2.5px}.island-game #welcome h1 em{color:#ba4c25}.island-game .startbox{padding:18px;background:#fffdf4e8;border:1px solid #d4dcc4;border-radius:18px;box-shadow:var(--shadow);width:330px;margin-top:15px}.island-game .startbox .primary{background:#1c654b;min-height:47px}.island-game .startbox .secondary{min-height:40px}.island-game #welcome{top:110px;padding-bottom:75px}.island-game #welcome p{font-size:14px}.island-game #worldtag{border:3px solid #fffc;border-radius:17px;background:#fff5d9;box-shadow:0 5px 0 #4f563b40}.island-game #foot{background:#fff9;padding:8px 12px;border-radius:8px}.island-game #welcome .meta{font-size:9px;margin-top:15px}
@keyframes enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1700px){.hub main,.hub header,.hub footer{max-width:1700px}.hub .hero{min-height:660px}.hub .hero h1{font-size:80px}.cardbody p{font-size:17px}.cardbody h3{font-size:32px}.cardbody a.primary{font-size:18px;min-height:56px}.gamebody .questionpanel{width:min(820px,70vw)}.gamebody .questionpanel h1{font-size:31px}.gamebody .questionpanel p{font-size:17px}.gamebody .choicebar{width:70vw;max-width:1100px}.gamebody .choicebar button{font-size:21px;max-width:280px;min-height:65px}.scene-answer{font-size:20px;max-width:230px}.gamebody nav button{font-size:17px}.actionpad button{font-size:20px;min-height:60px}.touchpad button{width:56px;height:56px}}
@media(max-width:1000px){.hub .hero{min-height:500px;background-position:56% center;padding:35px 4%}.hero-copy{max-width:56%}.hub .hero h1{font-size:48px}.hero-notes{max-width:250px;gap:5px}.expedition-dock{gap:22px;padding:30px 0;grid-template-columns:.7fr 1.3fr}.dock-intro h2{font-size:30px}.hub .passport{grid-template-columns:130px 1fr;column-gap:14px;padding:18px}.hub .passport #home-avatar{height:175px}.worldcards{gap:18px}.cardbody{padding:18px}.cardbody h3{font-size:23px}.sectionhead h2{font-size:29px}.hub nav button,.hub nav a{padding:10px 13px;font-size:12px}}
@media(max-width:760px){.hub header{padding:14px 4%;flex-wrap:wrap;gap:14px}.hub header nav{width:100%;justify-content:flex-start;flex-wrap:wrap}.hub header nav a{display:inline-flex;align-items:center}.hub main{padding:0 4%}.hub .hero{min-height:650px;align-items:flex-start;background-size:auto 460px;background-position:70% bottom;padding:26px 24px;background-color:#fff4e4;background-repeat:no-repeat;border-radius:24px}.hero-copy{max-width:100%}.hub .hero h1{font-size:44px;line-height:1.04;letter-spacing:-2px;margin:18px 0 12px}.hub .hero h1 em br{display:none}.hub .hero p{font-size:14px;max-width:320px;margin:12px 0 18px;background:#fff8ecb8;border-radius:8px}.hero-notes{display:none}.explore-link{padding:12px 17px;font-size:13px}.expedition-dock{grid-template-columns:1fr;gap:20px;padding:28px 0;margin:0 0 20px}.dock-intro{padding:0 8px}.dock-intro h2{font-size:29px;margin:10px 0}.dock-intro h2 br{display:none}.dock-intro p{font-size:13px;margin:10px 0}.dock-stamps{display:none}.hub .passport{transform:none;grid-template-columns:130px 1fr;column-gap:16px;padding:18px}.hub .passport #home-avatar{height:175px}.hub .passport #custom-avatar{font-size:11px}.hub .passport #story{font-size:13px;padding:12px}.passport #playername{font-size:16px}.worldcards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.worldcard,.worldcard:nth-child(4){grid-column:span 1}.worldcard:nth-child(5){grid-column:span 2;display:grid;grid-template-columns:1fr 1fr}.worldart,.worldcard:nth-child(4) .worldart{aspect-ratio:1.4;height:auto}.worldcard:nth-child(5) .worldart{height:100%;aspect-ratio:auto}.cardbody h3{font-size:24px}.cardbody p{font-size:13px;min-height:0}.cardmeta{font-size:10px;flex-wrap:wrap}.sectionhead{display:block}.sectionhead p{max-width:none}.endbanner{padding:26px;display:block}.endbanner h2{font-size:27px}.endbanner .secondary{margin-top:20px}.endbanner:after{right:10%;top:10px}.island-game:not(.play) header{top:16px;left:16px;right:16px;flex-wrap:wrap;gap:12px}.island-game:not(.play) header .tools{flex-wrap:wrap}.island-game #welcome{top:140px;left:5%;width:90%}.island-game #welcome h1{font-size:44px}.island-game:not(.play):after{background:#fff9eac7}.island-game:not(.play) #worldtag{display:none}.island-game:not(.play) footer{position:relative;left:auto;right:auto;bottom:auto;display:none}}
@media(max-width:440px){.hub .hero{min-height:640px;padding:23px 18px;background-position:67% bottom;background-size:auto 400px}.hub .hero h1{font-size:39px}.hub .hero .eyebrow{font-size:8px;letter-spacing:1px}.hub .hero p{max-width:260px;font-size:13px}.hub header .brand{font-size:13px}.hub nav button,.hub nav a{font-size:11px;padding:9px 12px}.worldcards{grid-template-columns:1fr;gap:22px}.worldcard,.worldcard:nth-child(4),.worldcard:nth-child(5){grid-column:auto;display:block}.worldart,.worldcard:nth-child(4) .worldart,.worldcard:nth-child(5) .worldart{height:auto;aspect-ratio:1.65}.cardbody{padding:20px}.cardbody h3{font-size:28px}.cardbody p{font-size:14px}.hub .passport{grid-template-columns:110px 1fr;gap:8px 13px;padding:16px}.hub .passport #home-avatar{height:165px}.passport #passportprogress{font-size:11px}.hub .passport #story{font-size:12px}.sectionhead h2{font-size:28px}.studio-fields{grid-template-columns:1fr 1fr}.island-game .startbox{max-width:100%}dialog{padding:20px}}
@media(max-height:600px) and (min-width:761px){.island-game #welcome{top:90px;display:grid;grid-template-columns:1fr 1fr;gap:0 28px;width:640px;left:5%}.island-game #welcome>.eyebrow{grid-column:1/-1}.island-game #welcome h1{font-size:43px;grid-column:1;grid-row:2;margin:18px 0 8px}.island-game #welcome>p{grid-column:1;grid-row:3;font-size:13px;margin:0}.island-game .startbox{grid-column:2;grid-row:2/5;width:300px;margin-top:18px}.island-game #welcome .meta{grid-column:1;font-size:8px}.island-game #worldtag{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.worldcard:hover,.worldcard:hover .world-illustration{transform:none}}
@media(max-width:760px){.hub .hero{min-height:710px;background-position:right bottom;background-size:auto 400px}.hub .hero p{background:none}.hub .hero h1{max-width:360px}}
@media(max-width:440px){.hub .hero{min-height:700px;background-position:right bottom;background-size:auto 360px}.hub .hero h1{font-size:38px}}
