@font-face{font-family:Bitter;src:url("assets/fonts/bitter.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"DM Sans";src:url("assets/fonts/dmsans.ttf") format("truetype");font-style:normal;font-weight:100 1000;font-display:swap}
:root,body[data-player="Tempest"]{--paper:#f1e5cf;--ink:#382b45;--muted:#6d625f;--accent:#382b45;--bright:#edb548;--line:#c7b595;--card:#f8efdd;--shadow:0 5px 0 #382b4514;font-family:"DM Sans",sans-serif;background:var(--paper);color:var(--ink);font-weight:400}
body{background-image:url("assets/brand/paper.svg");background-size:160px 160px}
h1,h2,h3,.brand,.atlas-button,.world-pick strong,.world-seal,.positive-icon,.mini-stars,.reward-summary b{font-family:Bitter,Georgia,serif;font-weight:800;font-optical-sizing:auto}
button,input,select{font-family:"DM Sans",sans-serif;font-variant-numeric:tabular-nums}
button,a,canvas,input{outline-color:#9c542e}
button:focus-visible,a:focus-visible,canvas:focus-visible,input:focus-visible{outline:3px solid #9c542e;outline-offset:4px}
.glyph{display:inline-block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.topbar{max-width:1480px;border-bottom:3px double var(--line);padding:16px 3%;gap:16px}
.brand{gap:10px;letter-spacing:.6px;background:none;border:0;font-size:12px;line-height:1.05;flex:none}
.brand img{width:39px;height:39px}.brand span{display:flex;flex-direction:column;gap:2px}.brand b{font-size:20px;letter-spacing:-.6px}
.topbar nav{gap:4px;flex-wrap:wrap}.nav{border-radius:3px;font-weight:600;font-size:13px;padding:10px 13px}.nav.active{background:#e1d0b0;border-bottom:2px solid var(--ink);color:var(--ink)}.map-nav{display:flex;align-items:center;gap:5px}.map-nav .glyph{width:19px;height:19px}.icon{border-color:var(--line);border-radius:5px;background:#f8efdd}.icon:hover{background:#e7d7b8}
main{max-width:1480px;padding:30px 3% 16px}.intro{gap:28px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#876040;font-weight:700;margin-bottom:9px}h1{font-size:clamp(30px,3.2vw,44px);letter-spacing:-1.4px;line-height:1.07;margin-bottom:10px}#subheading{color:var(--muted);font-size:14px;max-width:560px}.compact h1{font-size:30px}.compact #subheading{font-size:13px}.profile-block{min-width:310px}.profile-switch{background:#e9dbbe;border:1px solid var(--line);border-radius:5px;padding:4px}.profile{border-radius:3px;padding:10px 13px;min-height:60px;gap:9px;font-size:14px;font-weight:600}.profile.active{background:var(--card);border-color:var(--line);box-shadow:none}.profile small{font-size:10px;font-weight:500;letter-spacing:.25px}.avatar{font-family:Bitter,Georgia,serif;font-size:21px;font-weight:800;border-radius:50%;border:1px solid #382b4533}.avatar.willow{background:#d1d4ad;color:#415446}.avatar.tempest{background:#b8c7c8;color:#382b45}.profile-meta{font-weight:500;font-size:11px;color:#77613f}
.adventure-layout{grid-template-columns:minmax(0,1.7fr) minmax(330px,1fr);gap:25px;align-items:stretch}.world-card,.world-card.tempest{border-radius:3px;background:#e4d8bb;box-shadow:0 0 0 2px #382b45,0 0 0 6px #d8c6a4,0 0 0 7px #77634d;overflow:hidden}.world-topline,.world-bottomline{left:20px;right:20px}.world-topline{top:18px}.world-tag,.tempest .world-tag{color:#382b45;font-family:Bitter,Georgia,serif;font-size:11px;letter-spacing:.7px;font-weight:800;background:#f1e5cfe8;padding:6px 10px}.world-status,.tempest .world-status{color:#382b45;background:#f1e5cfe8;border:1px solid #a99575;border-radius:2px;font-size:10px;letter-spacing:.5px}.world-bottomline,.tempest .world-bottomline{color:#382b45;background:#f1e5cfe8;bottom:13px;padding:8px 10px;font-size:10px}.world-card #world{min-height:470px}.compact #world{min-height:485px}
.mission-panel{border-radius:3px;border:1px solid #ab9477;background:#f8efdd url("assets/brand/paper.svg");box-shadow:3px 4px 0 #382b4512;padding:25px;gap:15px}.mission-panel h2,.compact .mission-panel h2{font-size:27px;letter-spacing:-.8px;line-height:1.14}.mission-panel p{font-size:14px;line-height:1.55}.panel-kicker{font-size:10px;font-weight:700;letter-spacing:.8px;color:#795331;gap:8px}.pill{background:#e5d6b9;border-radius:2px;font-size:10px;color:#5c4e42;white-space:nowrap}.primary,.secondary{border-radius:3px;font-size:14px;font-weight:650;min-height:49px;padding:13px 16px}.primary{background:#edb548;color:#382b45;border:2px solid #382b45;box-shadow:0 3px 0 #382b45}.primary:hover{background:#f2c362;filter:none;transform:translateY(-1px)}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #382b45}.secondary{background:#eee0c2;border:1px solid #ad9675}.quiet{color:#715034;font-size:12px;font-weight:550}.team-button{border:1px solid #ab9477;background:#e9dbc0;color:#382b45;border-radius:3px;min-height:46px;font-size:12px}.team-button:hover{background:#dfcead}.track{background:#fbf4e5;border-radius:3px;border-color:#d2bd97;padding:13px;gap:10px}.track.selected{background:#f1dfa9;border-color:#997039;box-shadow:inset 3px 0 #9a6b32}.track .check{background:#eadcc1;border-radius:50%;color:#382b45}.track.selected .check{background:#382b45;color:#f1e5cf}.track strong{font-family:Bitter,Georgia,serif;font-weight:700;font-size:14px}.track small{font-size:11px;line-height:1.5;color:#6d625f}.settings-inline{font-size:12px}.segmented{background:#e6d7b9;border-radius:3px}.segmented button{font-size:11px;border-radius:2px}.segmented .selected{background:#382b45;color:#f1e5cf}.reward-preview{background:#ede0bf;border-radius:3px;border-top:1px solid #d3bd92;border-bottom:1px solid #d3bd92}.reward-token{color:#8a592c;background:#e9c974;border-radius:50%;font-size:22px}.reward-preview strong{font-weight:600;font-size:12px}.reward-preview small{font-size:11px;color:#76603e}
.destination{border:1px solid #b9a181;border-radius:3px;background:#fbf4e5;box-shadow:0 2px 0 #c4af8e;min-height:72px}.destination:hover{border-color:#382b45;background:#efe0be}.destination strong{font-family:Bitter,Georgia,serif;font-size:15px;font-weight:700}.destination small{font-size:11px;line-height:1.5}.destination-icon{width:34px;color:#87603b}.destination-icon .glyph{width:30px;height:30px}.mission-top button{background:#e7d9bb;border:1px solid #bca685;border-radius:3px;font-size:11px}.steps{gap:9px;position:relative}.step{height:7px;border-radius:0;background:#dbc8a5;border:1px solid #bca685}.step.done{background:#697447}.step.current{background:#edb548;border-color:#87603b}.resource{background:#e8dbc0;border:1px solid #ccb796;border-radius:3px;color:#5e483c;font-size:11px}.team-progress{border:1px solid #b5a082;background:#e7d6b1;color:#5e4435;border-radius:3px;font-size:11px}.prompt{font-family:"DM Sans",sans-serif;font-weight:600;font-size:20px!important;line-height:1.5!important;letter-spacing:0}.math-visual{border-radius:3px;border:1px solid #cbb798;background:#f0e4ca}.array i{background:#73805b;border-radius:3px}.array i.flower{background:#b66349}.array i.dim{background:#dfd4bc}.visual-equation{font-family:"DM Sans",sans-serif;font-weight:600;font-variant-numeric:tabular-nums}.ratio-table,.number-line{background:#e2d2b2;border-radius:2px}.ratio-table b,.number-line b{color:#382b45;border-color:#b8a181}.answer-label{letter-spacing:1.1px;font-weight:700;color:#6c5138}.answer-entry input{border:2px solid #9e8769;background:#fff9eb;border-radius:3px;color:#382b45;box-shadow:inset 0 2px 0 #382b4510;font-family:"DM Sans",sans-serif;font-size:24px;font-variant-numeric:tabular-nums}.answer-entry input:focus{border-color:#382b45;box-shadow:none}.input-help{font-size:11px;color:#766957}.hint{background:#f5e4b3;border:1px solid #b99449;border-radius:3px;color:#5e442b;font-size:13px;line-height:1.6}.feedback{background:#eee0c0;color:#6a432d;border:1px solid #bba280;border-radius:3px;font-size:13px}.feedback.good{background:#dce2c5;color:#344b3a;border-color:#8f9e71}.positive-icon{color:#415b41;background:#dce2c5;box-shadow:0 0 0 2px #657f51,0 0 0 5px #dce2c5;border-radius:50%}.toast{background:#382b45;color:#f8efdd;border:1px solid #e1c48c;border-radius:3px}.mini-stars{color:#9a6527}.reward-summary div{background:#ead9b7;border-radius:3px}.reward-summary b{color:#382b45}.reward-summary{gap:12px}
.overlay{background:#211b2c99;backdrop-filter:blur(4px)}.modal{background:#f1e5cf url("assets/brand/paper.svg");border:3px double #7e6650;border-radius:4px;box-shadow:0 0 0 6px #e2cdab,0 0 0 8px #382b45,0 25px 80px #0005;color:#382b45}.modal h2{font-size:32px;line-height:1.1;font-weight:800}.modal p{color:#6d625f;font-size:14px;line-height:1.65}.handoff-avatar{font-family:Bitter,Georgia,serif;background:#edb548;color:#382b45;border:2px solid #382b45;border-radius:50%}.view-heading h2{font-size:26px;font-weight:700;letter-spacing:-.2px}.item-card,.journal-card{border-radius:3px;background:#f8efdd url("assets/brand/paper.svg");border:1px solid #b6a081;box-shadow:3px 4px 0 #382b450c}.item-art{border-radius:3px;background:#e3d3b5;color:#705436;display:grid;place-items:center}.item-art .glyph{width:70px;height:70px;stroke-width:1.3}.item-card h3,.journal-card h3{font-size:20px;font-weight:700;letter-spacing:0}.skill-dots i{background:#ded0b2;border:1px solid #bba889}.skill-dots i.done{background:#64774b;border-color:#64774b}.session{border-color:#d6c2a0}.skill-row{border-color:#d6c2a0}.empty,.item-card p,.view-heading p{color:#70614e}.journal-actions{flex-wrap:wrap}footer{color:#8d775a;font-size:10px;margin-top:22px;border-top:1px solid #d6c2a0;padding-top:14px}footer button{font-size:11px;color:#695237}.storage-warning{position:relative;z-index:10;background:#ffe0a7;color:#653c1f}
/* The title and atlas are real menu screens, with separate artwork and live controls. */
.entry{min-height:max(720px,100svh);position:relative;isolation:isolate;overflow:hidden;background:#f1e5cf}.atlas-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}.entry-frame{position:absolute;inset:14px;border:2px solid #382b45;outline:1px solid #a28b6b;outline-offset:-7px;z-index:4;pointer-events:none}.entry-top{position:relative;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:15px;padding:32px 40px;color:#382b45;font-size:10px;letter-spacing:1.8px;font-weight:700}.entry-top>div{display:flex;gap:6px}.entry-quiet,.entry-back{background:#f1e5cfe8;border:1px solid #ab9374;color:#382b45;border-radius:2px;min-height:36px;padding:8px 12px;font-size:11px;font-weight:600}.entry-quiet:hover,.entry-back:hover{background:#f8efd9}.title-content{display:flex;align-items:center;flex-direction:column;min-height:calc(max(720px,100svh) - 172px)}.title-logo{display:block;mix-blend-mode:multiply;filter:brightness(1.015);width:min(510px,52vw);height:auto;margin-top:-27px}.title-tagline{font:750 clamp(17px,2vw,23px)/1.4 Bitter,Georgia,serif;margin:-2px 0 0;color:#382b45;text-align:center;text-shadow:0 1px #f1e5cf}.title-actions{margin-top:auto;display:flex;align-items:center;flex-direction:column;padding-top:145px;padding-bottom:25px}.atlas-button{position:relative;min-width:260px;min-height:75px;font-size:32px;letter-spacing:2px;text-transform:uppercase;background:#edb548;color:#382b45;border:3px solid #382b45;box-shadow:0 0 0 4px #ddb977,0 0 0 5px #382b45,0 7px 0 3px #382b45;clip-path:polygon(13px -10px,calc(100% - 13px) -10px,calc(100% + 10px) 13px,calc(100% + 10px) calc(100% - 13px),calc(100% - 13px) calc(100% + 12px),13px calc(100% + 12px),-10px calc(100% - 13px),-10px 13px);display:flex;justify-content:center;align-items:center;gap:33px;transition:transform .18s,background .18s}.atlas-button span{font-family:Georgia,serif;font-size:27px}.atlas-button:hover{background:#f4c569;transform:translateY(-2px)}.atlas-button:active{transform:translateY(3px)}.title-secondary{display:flex;align-items:center;justify-content:center;gap:16px;background:#f1e5cfed;padding:9px 20px;margin-top:24px;border:1px solid #9b8265;border-radius:2px;color:#735b46}.title-secondary button{border:0;background:none;color:#382b45;padding:9px 2px;font-weight:650;font-size:13px}.title-secondary button:hover{text-decoration:underline;text-underline-offset:5px}.entry-bottom{position:relative;display:flex;justify-content:space-between;gap:20px;padding:20px 40px 30px;color:#f1e5cf;font-size:9px;letter-spacing:1.3px;text-shadow:0 1px 3px #382b45}.entry-bottom span,.entry-bottom small{background:#382b45db;padding:7px 10px;font-size:9px}.entry-bottom i{margin:0 12px}.atlas-content{min-height:calc(max(720px,100svh) - 172px);padding:0 5%;display:flex;flex-direction:column;align-items:center}.entry-back{align-self:flex-start}.atlas-heading{text-align:center;background:#f1e5cfef;padding:22px 36px 20px;border:1px solid #c0ab8a;margin-top:-30px;max-width:90%;box-shadow:0 2px 0 #382b4520}.map-eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#8c633d;margin:0 0 9px}.atlas-heading h1{font-size:46px;margin:0 0 8px}.atlas-heading>p:last-child{font-size:13px;color:#6d625f;margin:0}.world-picks{display:grid;grid-template-columns:1fr 1fr;width:min(1120px,100%);gap:clamp(30px,12vw,200px);margin-top:auto;padding-top:195px}.world-pick{background:#f1e5cfee;border:2px solid #382b45;outline:1px solid #bd9b61;outline-offset:-7px;box-shadow:0 5px 0 #382b45;min-height:132px;display:flex;align-items:center;text-align:left;gap:16px;padding:22px 24px;color:#382b45;transition:transform .18s,background .18s}.world-pick:hover{background:#faedcd;transform:translateY(-4px)}.world-pick strong{display:block;font-size:clamp(22px,2.3vw,31px);line-height:1.05;letter-spacing:-.9px}.world-pick small{display:block;font-size:9px;font-weight:700;letter-spacing:1.4px;color:#7d6247;margin-bottom:8px}.world-pick em{display:block;font-style:normal;font-size:11px;color:#76604b;margin-top:10px}.world-pick>b{font-size:25px;margin-left:auto}.world-seal{border:1px solid #63714b;color:#4f6044;min-width:43px;height:43px;display:grid;place-items:center;border-radius:50%;font-size:19px}.tempest-pick .world-seal{border-color:#536d7d;color:#435d6c}.bridge-invite{margin-top:25px;display:flex;gap:16px;align-items:center;justify-content:center;border:1px solid #a28762;padding:14px 22px;background:#382b45ed;color:#f1e5cf;box-shadow:0 3px 0 #1d1626;border-radius:2px}.bridge-invite strong,.bridge-invite small{display:block}.bridge-invite strong{font:650 14px Bitter,Georgia,serif}.bridge-invite small{font-size:10px;opacity:.8;margin-top:4px}.bridge-invite .glyph{width:33px;height:33px;color:#edb548}
@media(min-width:1550px){.title-logo{width:600px}.title-actions{padding-bottom:35px}.world-picks{padding-top:260px}}
@media(max-width:1100px){.topbar{padding:14px 3%;gap:10px}.nav{padding:9px 10px;font-size:12px}.adventure-layout{grid-template-columns:minmax(0,1.3fr) minmax(310px,1fr);gap:19px}.mission-panel{padding:20px}.world-picks{gap:35px}.world-pick{padding:22px 17px;gap:11px}.world-seal{display:none}.atlas-heading h1{font-size:40px}}
@media(max-width:740px){.topbar{padding:12px 5%;gap:12px}.brand{font-size:10px}.brand b{font-size:17px}.brand img{width:34px;height:34px}.topbar nav{padding-top:9px;gap:2px;justify-content:space-between}.nav{padding:8px 7px;font-size:11px}.map-nav .glyph{width:16px;height:16px}.icon{width:33px;height:33px}.intro{gap:18px;margin-bottom:20px}main{padding:24px 5% 16px}h1{font-size:33px}.compact h1{font-size:28px}.profile-block{min-width:0}.profile{padding:10px;font-size:14px}.profile-meta{font-size:10px}.adventure-layout{grid-template-columns:1fr;gap:20px}.world-card #world,.compact #world{height:290px;min-height:290px}.world-topline{top:12px;left:12px;right:12px}.world-bottomline{left:9px;right:9px;bottom:9px;font-size:9px;padding:6px}.world-tag{font-size:10px!important;letter-spacing:.15px;padding:5px 7px}.world-status{font-size:10px!important;letter-spacing:.15px;padding:5px}.mission-panel{padding:22px;gap:15px}.mission-panel h2,.compact .mission-panel h2{font-size:27px}.prompt{font-size:20px!important}.answer-entry input{font-size:24px}.primary,.secondary{font-size:14px}.collection-grid{gap:14px}.item-card{padding:15px}.item-card h3{font-size:18px}.item-art .glyph{width:58px;height:58px}.modal{max-width:calc(100vw - 45px);padding:26px}.modal h2{font-size:29px}.entry{min-height:max(740px,100svh)}.entry-frame{inset:8px;outline-offset:-5px}.entry-top{padding:23px 23px 15px;letter-spacing:1px;font-size:8px;gap:8px}.entry-quiet{font-size:10px;min-height:35px;padding:7px 9px}.entry-top>div{gap:4px}.title-content{min-height:calc(max(740px,100svh) - 144px)}.title-logo{width:min(460px,92vw);margin-top:0}.title-tagline{font-size:19px;padding:0 20px;margin-top:0}.title-actions{padding-top:185px;padding-bottom:24px}.atlas-button{min-width:230px;min-height:67px;font-size:30px}.title-secondary{gap:10px;padding:4px 15px;margin-top:24px}.title-secondary button{font-size:12px;min-height:40px}.entry-bottom{padding:10px 20px 25px;justify-content:center}.entry-bottom span{display:none}.entry-bottom small{font-size:8px}.atlas-backdrop{object-position:center center}.atlas-content{min-height:calc(max(740px,100svh) - 140px);padding:0 7%}.entry-back{font-size:10px;padding:7px 9px;min-height:34px}.atlas-heading{margin-top:16px;padding:15px 14px;max-width:100%;width:100%}.map-eyebrow{font-size:8px;letter-spacing:1.5px}.atlas-heading h1{font-size:32px}.atlas-heading>p:last-child{font-size:12px;line-height:1.5}.world-picks{grid-template-columns:1fr;gap:13px;padding-top:115px}.world-pick{min-height:97px;padding:18px 20px;gap:12px}.world-pick strong{font-size:26px}.world-pick small{font-size:10px;letter-spacing:.8px;margin-bottom:6px}.world-pick em{font-size:10px;margin-top:6px}.world-seal{display:grid;min-width:35px;height:35px;font-size:15px}.bridge-invite{width:100%;margin-top:17px;padding:11px 14px;gap:12px}.bridge-invite strong{font-size:12px}.bridge-invite small{font-size:10px}.bridge-invite .glyph{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep Play and the secondary menu visible in short browser panels. */
@media(max-height:720px){
  .entry{min-height:max(510px,100svh)}
  .entry-top{padding:22px 26px 10px}
  .title-content{min-height:calc(max(510px,100svh) - 120px)}
  .title-logo{width:min(360px,65vw,55vh);margin-top:-10px}
  .title-tagline{font-size:clamp(15px,2.6vh,20px);margin-top:0}
  .title-actions{padding-top:clamp(24px,10vh,72px);padding-bottom:12px}
  .atlas-button{min-height:52px;min-width:220px;font-size:25px}
  .title-secondary{margin-top:18px;padding:3px 12px}
  .title-secondary button{min-height:30px;padding:6px 2px}
  .entry-bottom{padding:9px 26px 20px}
  .atlas-content{min-height:calc(max(510px,100svh) - 130px)}
  .world-picks{padding-top:50px}
}

/* Small production refinements: reward meaning and restrained color cues. */
.item-art[data-reward="moss"]{color:#536448;background:#e1dfc4}
.item-art[data-reward="sunset"]{color:#a25942;background:#ead9bb}
.item-art[data-reward="lanterns"]{color:#64744e}
.item-art[data-reward="cyan"]{color:#55788b}
.item-art[data-reward="solar"]{color:#926829}

.profile small{white-space:normal;line-height:1.3}
.profile>span:last-child{min-width:0;text-align:left}

/* Reserve the wide-screen feedback button's corner; keep the narrow footer centered. */
@media(min-width:741px){
  .entry-bottom{padding-right:max(140px,calc(env(safe-area-inset-right) + 124px))}
}
@media(max-width:380px){
  .entry-bottom{justify-content:flex-start}
}
