:root {
  --ink:#213638; --paper:#f5f4ed; --muted:#52605e; --gold:#d8b27f;
  --mint:#9dcbb1; --orange:#f0a36f; --violet:#c7b2e1;
  font-family: "Avenir Next","Trebuchet MS",Arial,sans-serif;
}
body {
  color:var(--ink); background-color:#cfd8ce;
  background-image:linear-gradient(180deg,#0c252c08,#243e4038 85%), url(art/teen-table.jpg);
  background-size:cover; background-position:center; background-attachment:fixed;
}
header,main,footer {width:min(1160px,calc(100% - 48px))}
header {padding:16px 0; border-bottom:1px solid #bdd6ca55; color:#f7f7ed}
.brand {font:750 clamp(21px,2.4vw,29px)/1.1 "Avenir Next",Arial,sans-serif;letter-spacing:-.055em}
h1,h2,h3 {font-family:"Avenir Next",Arial,sans-serif;letter-spacing:-.045em}
h2 {font-weight:750}
button,nav button,.player-card {font-family:"Avenir Next","Trebuchet MS",Arial,sans-serif}
button {border:1px solid #768985;border-radius:8px;box-shadow:none;background:#f4f4ed;font-weight:650;transition:background .17s,transform .15s,box-shadow .17s}
button:focus-visible,a:focus-visible {outline:3px solid #e28151;outline-offset:3px}
nav button {color:#ebf3ee;background:#173236c9;border:1px solid transparent;padding:8px 13px;border-radius:24px}
nav button:is([aria-current=page],.active),nav button:hover {color:#162f32;background:#d4e5cf;border-color:#acc8bb}
main {padding:20px 0 32px}
main>section:not(.island-atlas,.forest-discovery,.forest-meeting,.hero,.panel,.cup-banner,.forest-trails,.board-calendar) {background:#f3f2ea;border:1px solid #718481;border-radius:16px;padding:clamp(17px,3vw,34px);margin:18px 0}
footer {color:#eef2e9;border-color:#a1b5b477}
.primary,.choices button,.board-calendar .card button {border-radius:8px;box-shadow:0 3px #162b31}
.primary,.board-calendar .card button {color:#fff;background:#29474a;border:1px solid #314c50}
.primary:hover,.board-calendar .card button:hover {background:#354458}
button:active:not(:disabled) {transform:translateY(2px);box-shadow:none}
.island-atlas,.forest-meeting,.forest-discovery {border:1px solid #607c7b;border-radius:17px;box-shadow:0 8px 25px #0e242e36}
.island-land,.sheet-nav {background:#1b363a;color:#ecf0e2}
.sheet-nav {border-top:1px solid #7d969055;font:650 .83rem/1.4 "Avenir Next",Arial,sans-serif;min-height:37px}
.sheet-nav button {color:var(--ink)}
.island-caption {font:650 .78rem/1.4 "Avenir Next",Arial,sans-serif;background:#1a3236ed;color:#f5efdc;border:1px solid #aeb8a9;border-radius:6px;transform:none;box-shadow:none}
.forest-fog {background:repeating-linear-gradient(45deg,transparent 0 4px,#acb9ae22 5px 6px),#68828096}
button.forest-pin {background:#d5e5ce;border:2px solid #365851;border-radius:50%;box-shadow:0 3px #263e40}
button.forest-pin.here {background:#ddb4e0;color:#31283b;border-color:#473252;outline:3px solid #f3def0bb}
button.forest-pin.mist {color:#253d40;background:#cad5cd;border:1px dashed #49665c}
.forest-pin.here:after {background:#362d42;color:#fff4fb;border-radius:4px;font-family:"Avenir Next",Arial,sans-serif}
.island-journal {background:linear-gradient(135deg,#203f40,#2d3449 88%);color:#f3f1e7;border:0;border-left:1px solid #a5b4ab55}
.island-journal h1 {font-family:Georgia,serif;font-weight:normal;letter-spacing:-.067em;line-height:1;margin:7px 0 15px}
.island-journal h2 {font-size:clamp(23px,2.3vw,32px)}
.island-journal hr {border-color:#b2c4b95c}
.island-journal small {color:#c6d6c9;font-weight:600}
.island-journal .primary {background:#d9c1e6;color:#30253c;border-color:#e4cee9;box-shadow:0 3px #151e2f}
.forest-byline img {border:1px solid #b1bdae}
.forest-trails,.board-calendar {border:1px solid #93a6a182;border-radius:17px;background:#eff0e9f7;padding:clamp(16px,2.5vw,28px)}
.forest-trails h2,.board-calendar h2 {margin:0 0 15px;font-size:clamp(24px,2.6vw,35px)}
.forest-trails .grid {position:relative;isolation:isolate}
.forest-trails .grid:before {content:"";position:absolute;left:8%;right:8%;top:50%;border-top:4px dotted #66817b;z-index:-1}
.player-card {
  --tint:#bfd9c9;--edge:#4a7769; display:grid;
  grid-template-columns:clamp(70px,7vw,92px) minmax(0,1fr);align-items:center;
  gap:14px 13px;text-align:left; color:#223738;background:linear-gradient(135deg,#f9faf3,var(--tint));
  padding:clamp(13px,1.5vw,22px);border:1px solid var(--edge);
  border-radius:12px;box-shadow:0 4px var(--edge);
}
.suit-1 {--tint:#ded1e7;--edge:#80628b}.suit-2 {--tint:#f3d9b8;--edge:#966d44}
.player-portrait {position:relative;width:100%;aspect-ratio:1;border-radius:50%;padding:4px;background:var(--tint);border:1px solid var(--edge);box-shadow:0 2px var(--edge)}
.player-portrait img {width:100%;height:100%;object-fit:cover;border-radius:50%}
.player-portrait i {position:absolute;bottom:-2px;right:-3px;display:grid;place-items:center;background:var(--edge);color:white;width:24px;height:24px;border:1px solid white;border-radius:50%;font:700 13px Georgia,serif}
.player-info {display:grid;gap:3px}.player-info strong {font-size:clamp(20px,1.9vw,28px);line-height:1.13;letter-spacing:-.055em}
.player-info small,.board-calendar small {font-size:.77rem;font-weight:650;color:#45574f}.player-info>span {font-size:.86rem;font-weight:500}
.player-move {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;background:#283f43;color:#faf8ec;padding:9px 13px;border-radius:6px;font-weight:650;font-size:.94rem}
.player-move b {color:var(--tint);font-size:12px}.player-card:hover {transform:translateY(-3px);box-shadow:0 6px var(--edge)}.player-card:active {transform:translateY(2px);box-shadow:0 1px var(--edge)}
.board-calendar .card,.card,.panel,.report,.planet,.voyage,.practice {background:#f5f5ee;border:1px solid #a7b3a9;border-radius:12px;box-shadow:none}
.board-calendar .card {position:relative;background:#e1e9df;padding:17px}.board-calendar .future {background:#e5e2e8}.board-calendar .card:last-child {background:#e8e7d8}
.board-calendar .card small {display:block;padding-right:27px}.cal-mark {float:right;width:30px;height:30px;display:grid;place-items:center;line-height:1;border:1px solid #7c9184;border-radius:7px;color:#425d53}
.forest-meeting,.forest-discovery {background:#e9e9e0}.forest-meeting>img {object-position:center 42%}
.hero,.cup-banner {background:#d3d8c8;border:1px solid #81948d;border-radius:14px;box-shadow:none}
.cup-icon,.marker {background:#d8c9df;border-color:#62756e}.voyage {background:#d9e7da}
.scene {background:radial-gradient(ellipse at center,#7a888b,#384756 80%);border-color:#657876}.scene::before {border:1px dashed #d1d6b7}.scene::after{color:#c4c6b8;text-shadow:none;-webkit-text-stroke:0}
.scene .bot {transform:rotate(-2deg);filter:drop-shadow(3px 4px 4px #18252b66)}.bot[data-stage="3"] {filter:drop-shadow(0 0 13px #ffe4a0)}
.bot .head {border-radius:26px 26px 30px 30px}.bot .head::before{border-radius:16px}.bot .body{border-radius:12px 12px 19px 19px}.scene .speech{transform:none;border-radius:9px;border-width:1px;box-shadow:none}
.progress {border:1px solid #789187;background:#f4f5ee}.choices button {border:1px solid #95a59b;box-shadow:0 2px #a5b3ab}.choices button:not(:disabled):hover {background:#e2d9ec}
.move-ring {position:fixed;z-index:99;width:16px;height:16px;border:2px solid #9a6fab;background:#ead4ec39;border-radius:50%;pointer-events:none;animation:board-ring .34s ease-out both}
@keyframes board-ring {from{opacity:.9;transform:translate(-50%,-50%) scale(.45)}to{opacity:0;transform:translate(-50%,-50%) scale(3.2)}}
@media(max-width:740px){header,main,footer{width:calc(100% - 24px)}nav button{padding:7px 9px}.island-journal{border-left:0}.forest-trails .grid,.board-calendar .grid{grid-template-columns:1fr}.forest-trails .grid:before{display:none}.player-card{grid-template-columns:70px 1fr}.player-move{grid-column:2}.player-portrait{grid-row:span 2}.scene .bot{zoom:.9}}
@media(prefers-reduced-motion:reduce){.move-ring{display:none}.player-card:hover,.player-card:active{transform:none}}
header .brand{color:#f4f3e7}.scene .bot[data-stage="3"]{filter:drop-shadow(0 0 13px #ffe4a0)}
.shortcut-download {margin-top:8px}
.shortcut-download summary {cursor:pointer;width:fit-content;color:#eff4e8;font-weight:650}
.shortcut-download p {margin:8px 0}
.shortcut-download a {color:#f5e1b5;text-decoration:underline;text-underline-offset:.18em}
header .brand small {display:block;margin:.25rem 0 0 1.65rem;font:550 .84rem/1.2 "Avenir Next",Arial,sans-serif;letter-spacing:0;color:#d9e7da}
main>section.academy-purpose {display:flex;align-items:flex-start;gap:16px;margin:0 0 16px;padding:18px clamp(16px,2.4vw,32px);background:#e8eee1;border:1px solid #879e95;border-radius:14px;color:#213b35}
.academy-purpose>img {object-fit:contain;flex:none}
.academy-purpose h2 {margin:0;font:650 clamp(20px,2.7vw,33px)/1.15 "Avenir Next",Arial,sans-serif;letter-spacing:-.035em}
.academy-purpose p {margin:.45rem 0;max-width:76ch}
.academy-purpose h3 {margin-top:1rem}
.academy-purpose summary,.chapter-archive summary,.replay-notes summary {width:fit-content;cursor:pointer;font-weight:650}
.replay-link {display:inline-block;margin-inline-start:.5rem}
.chapter-archive,.replay-notes {margin-top:1rem;padding:12px 0}
.chapter-archive ul {padding-inline-start:1.4rem}
.chapter-archive li {margin:.4rem 0}
@media(max-width:500px){main>section.academy-purpose{gap:9px}.academy-purpose>img{width:37px;height:46px}.replay-link{margin-inline:0 .4rem}.station a{margin-right:.5rem}}
@media(min-width:741px) and (max-width:960px) {
  header {flex-direction:column;align-items:flex-start;gap:8px}
  header nav {justify-content:flex-start}
  header .brand {white-space:nowrap}
}
@media (pointer:coarse){
  header nav button {min-height:44px}
  #workshop-dialog .fit-close {min-width:44px;min-height:44px}
  #workshop-dialog .finish {min-height:44px}
}
