/* Starter L5–L8 visual system: Level 2 island language, existing runtime retained. */
body.starter-advanced-adventure{font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;background:radial-gradient(circle at 80% 7%,#d8f4fb 0,#effbfe 34%,#fff7df 100%);color:#174b6c}
body.starter-advanced-adventure .wrap{max-width:1280px;padding:20px 24px 48px}
body.starter-advanced-adventure .wrap>h1{margin:20px 0 5px;color:#13527d;font-size:clamp(30px,3.6vw,45px);line-height:1.08;letter-spacing:-.035em}
body.starter-advanced-adventure .wrap>p{margin:0 0 20px;color:#547589;font-size:16px;font-weight:750}
body.starter-advanced-adventure .wrap>a.btn{display:inline-flex;align-items:center;min-height:45px;padding:9px 15px;border:2px solid #add5e3;background:#fff;color:#1b6287;text-decoration:none;font-size:14px}
body.starter-advanced-adventure .rounds{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0 12px}
body.starter-advanced-adventure .rounds button{min-height:52px;padding:10px 15px;border:2px solid #b4dbe6;border-radius:16px;background:#fff;color:#1c6488;box-shadow:0 4px 0 #d0e8ec;font-size:14px;font-weight:900}
body.starter-advanced-adventure .rounds button.active{border-color:#e8aa24;background:#ffd778;color:#67430b;box-shadow:0 4px 0 #c78e22}
body.starter-advanced-adventure .rounds button.locked{opacity:.45}
body.starter-advanced-adventure .bar{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;padding:5px 2px 12px;margin:0 0 8px}
body.starter-advanced-adventure .bar button{flex:1 0 120px;min-height:46px;padding:7px 11px;border:2px solid #c7e4eb;border-radius:15px;background:#f4fbfc;color:#557789;font-size:12px;font-weight:900;white-space:normal}
body.starter-advanced-adventure .bar button.active{border-color:#e2a923;background:#ffdf84;color:#174d6d;box-shadow:0 4px 0 #c48d27}
body.starter-advanced-adventure .bar span{display:flex;flex:1 0 120px;align-items:center;justify-content:center;min-height:46px;padding:7px 11px;border:2px solid #c7e4eb;border-radius:15px;background:#f4fbfc;color:#557789;font-size:12px;font-weight:900;text-align:center}
body.starter-advanced-adventure .bar span.active{border-color:#e2a923;background:#ffdf84;color:#174d6d;box-shadow:0 4px 0 #c48d27}
body.starter-advanced-adventure .stage{min-height:470px;margin:0;padding:0;overflow:hidden;border:1px solid #b4dbe8;border-radius:31px;background:linear-gradient(180deg,#e9f8fb 0 42%,#fff7dd 42%);box-shadow:0 19px 49px rgba(22,79,108,.14)}
body.starter-advanced-adventure .adventure-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 185px;align-items:center;gap:20px;min-height:205px;padding:27px 36px;overflow:hidden;background:linear-gradient(108deg,#145888,#1c82aa 61%,#52b4be);color:#fff}
body.starter-advanced-adventure .adventure-hero::before{content:"";position:absolute;inset:-90% -7% auto auto;width:68%;height:300%;background:url('assets/gept-unit13/words/island.png') center/cover no-repeat;opacity:.18;mix-blend-mode:screen}
body.starter-advanced-adventure .adventure-hero-copy,body.starter-advanced-adventure .adventure-companion{position:relative;z-index:1}
body.starter-advanced-adventure .adventure-eyebrow{display:block;margin-bottom:8px;color:#ffe28b;font-size:12px;font-weight:1000;letter-spacing:.16em}
body.starter-advanced-adventure .adventure-hero h2{margin:0;color:#fff;font-size:clamp(30px,3.3vw,45px);line-height:1.06;letter-spacing:-.035em;text-shadow:0 2px 9px rgba(0,40,70,.2)}
body.starter-advanced-adventure .adventure-hero p{margin:12px 0 0;color:#effbff;font-size:16px;font-weight:800;line-height:1.45}
body.starter-advanced-adventure .adventure-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
body.starter-advanced-adventure .adventure-chips span{padding:7px 11px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-size:12px;font-weight:1000}
body.starter-advanced-adventure .adventure-companion{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-height:165px}
body.starter-advanced-adventure .adventure-companion img{width:130px;height:130px;object-fit:contain;filter:drop-shadow(0 10px 9px rgba(0,45,72,.26))}
body.starter-advanced-adventure .adventure-companion-bubble{max-width:190px;min-height:45px;margin-bottom:-12px;padding:9px 12px;border:2px solid #bde3e8;border-radius:17px 17px 17px 5px;background:#fff;color:#155479;box-shadow:0 7px 19px rgba(0,51,79,.16);font-size:13px;font-weight:1000;line-height:1.2;text-align:center}
body.starter-advanced-adventure .adventure-board{position:relative;min-height:250px;padding:28px 32px 24px;background:linear-gradient(180deg,#f8fcfb,#fff8e3)}
body.starter-advanced-adventure .adventure-board::before{content:"";position:absolute;left:-5%;right:-5%;top:-18px;height:36px;border-radius:50%;background:#ace3e8;box-shadow:0 -7px 0 rgba(255,255,255,.5)}
body.starter-advanced-adventure .adventure-board>*{position:relative;z-index:1}
body.starter-advanced-adventure .adventure-board>button,body.starter-advanced-adventure .adventure-board .btn{min-height:58px;padding:11px 21px;border:2px solid #fff1c7;border-radius:19px;background:linear-gradient(180deg,#ffd367,#f4ac22);color:#173f5b;box-shadow:0 6px 0 #be801a;font-size:16px;font-weight:950;transition:transform .16s,box-shadow .16s}
body.starter-advanced-adventure .adventure-board button:hover:not(:disabled){transform:translateY(-3px)}
body.starter-advanced-adventure .adventure-board button:focus-visible{outline:4px solid #e3ad26;outline-offset:3px}
body.starter-advanced-adventure .adventure-board button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}
body.starter-advanced-adventure .adventure-board #go[aria-disabled="true"]{opacity:.72;border-color:#b7dce7;background:#fff;color:#175479;box-shadow:0 4px 0 #d2e6ea}
body.starter-advanced-adventure .adventure-board .cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}
body.starter-advanced-adventure .adventure-board .card{display:flex;min-width:0;min-height:250px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:10px;overflow:hidden;border:3px solid #fff;border-radius:25px;background:#fff;box-shadow:0 7px 0 #c8e1e7,0 16px 25px rgba(23,80,109,.12);color:#15547a}
body.starter-advanced-adventure .adventure-board .card img{display:block;width:100%;height:170px;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:17px;background:#f5faf9}
body.starter-advanced-adventure[data-adventure-level="5"] .adventure-board img[src*="/starter-level5/words/bat.png"],body.starter-advanced-adventure[data-adventure-level="5"] .adventure-board img[src*="/starter-level5/words/mat.png"],body.starter-advanced-adventure[data-adventure-level="5"] .adventure-board img[src*="/starter-level5/words/net.png"],body.starter-advanced-adventure[data-adventure-level="5"] .adventure-board img[src*="/starter-level5/words/tap.png"]{transform:scale(1.22)}
body.starter-advanced-adventure .adventure-board .card b{font-size:clamp(22px,2.5vw,33px);line-height:1.05}
body.starter-advanced-adventure .adventure-board .card:hover{border-color:#8bd1de;box-shadow:0 10px 0 #a9d5df,0 20px 30px rgba(23,80,109,.14)}
body.starter-advanced-adventure .adventure-board .scene,body.starter-advanced-adventure .adventure-board .hero{display:grid;grid-template-columns:minmax(210px,.85fr) minmax(0,1.15fr);gap:26px;align-items:center}
body.starter-advanced-adventure .adventure-board .scene>img,body.starter-advanced-adventure .adventure-board .hero>img,body.starter-advanced-adventure .adventure-board>img{display:block;width:100%;max-width:420px;max-height:320px;object-fit:contain;border:3px solid #e0f1f2;border-radius:24px;background:#fff;box-shadow:0 7px 0 #d3e6e8}
body.starter-advanced-adventure .adventure-board .sentence{color:#15547d;font-size:clamp(25px,3vw,37px);line-height:1.2}
body.starter-advanced-adventure .adventure-board .base{border:2px solid #c3e4e9;background:#f0fbfc;color:#246782}
body.starter-advanced-adventure .adventure-board .expand{color:#12678d}
body.starter-advanced-adventure .adventure-board .choices,body.starter-advanced-adventure .adventure-board .chips,body.starter-advanced-adventure .adventure-board .wordbank{display:flex;flex-wrap:wrap;gap:11px;margin:20px 0}
body.starter-advanced-adventure .adventure-board .choices button,body.starter-advanced-adventure .adventure-board .chips button,body.starter-advanced-adventure .adventure-board .wordbank button{min-width:85px;min-height:72px;padding:10px 18px;border:2px solid #b7dce7;border-radius:18px;background:#fff;color:#175479;box-shadow:0 5px 0 #d2e6ea;font-size:clamp(17px,2vw,25px);font-weight:950}
body.starter-advanced-adventure .adventure-board .rec{display:flex;flex-wrap:wrap;gap:11px}
body.starter-advanced-adventure .adventure-board .rec button{min-height:62px;border-radius:17px;font-size:15px}
body.starter-advanced-adventure .adventure-board .made{min-height:66px;border-bottom:3px dashed #87cbd8;color:#15527a;font-size:clamp(26px,3vw,37px);font-weight:1000}
body.starter-advanced-adventure .adventure-board .audio-note{border:2px solid #c4e3e9;background:#eefafd;color:#1c6282;font-weight:850}
body.starter-advanced-adventure .adventure-board .feedback{display:flex;align-items:center;min-height:42px;margin-top:18px;padding:8px 15px;border-radius:14px;background:#e9f7f9;color:#1b6887;font-size:17px;font-weight:900}
body.starter-advanced-adventure .adventure-board .feedback:empty{display:none}
body.starter-advanced-adventure.adventure-success .adventure-companion img{animation:advancedOllieHappy .7s ease}
body.starter-advanced-adventure.adventure-success .adventure-board .feedback{background:#fff1bf;color:#78520f}
body.starter-advanced-adventure .adventure-trail{display:flex;align-items:center;justify-content:center;gap:15px;padding:13px 20px 20px;background:#fff4d6;color:#8a6624;font-size:11px;font-weight:1000;letter-spacing:.12em}
body.starter-advanced-adventure .adventure-pips{display:flex;gap:8px}
body.starter-advanced-adventure .adventure-pips i{display:block;width:28px;height:28px;border:2px dashed #caa657;border-radius:50%;background:#fff9e8}
body.starter-advanced-adventure .adventure-pips i.found{border-style:solid;border-color:#e7aa2f;background:#1d87b4;box-shadow:0 3px 0 #0d6489}
body.starter-advanced-adventure .adventure-trail strong{color:#15577c;font-size:16px;letter-spacing:0}
body.starter-advanced-adventure .reward{padding:20px;text-align:center}
body.starter-advanced-adventure .reward h2{color:#15567f;font-size:clamp(27px,3vw,39px)}
body.starter-advanced-adventure .micro-speak{display:grid;grid-template-columns:auto minmax(210px,1fr);gap:10px 16px;align-items:center;margin-top:20px;padding:18px;border:3px solid #ffd266;border-radius:24px;background:linear-gradient(135deg,#fff9df,#e9faff);box-shadow:0 8px 0 #d7e8e9;animation:microSpeakArrive .35s ease-out}
body.starter-advanced-adventure .micro-speak-star{display:grid;width:58px;height:58px;place-items:center;border-radius:50%;background:#ffc44b;color:#fff;font-size:30px;box-shadow:0 5px 0 #d18c19;animation:microPearlPop .65s ease}
body.starter-advanced-adventure .micro-speak-copy{min-width:0}
body.starter-advanced-adventure .micro-speak-kicker{display:block;color:#a76c0c;font-size:12px;font-weight:1000;letter-spacing:.12em}
body.starter-advanced-adventure .micro-speak-copy strong{display:block;margin:4px 0;color:#14577d;font-size:clamp(22px,2.4vw,31px);line-height:1.2}
body.starter-advanced-adventure .micro-status{margin:5px 0;color:#557586;font-weight:800}
body.starter-advanced-adventure .micro-speak-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
body.starter-advanced-adventure .micro-speak-actions button{min-height:50px!important;padding:8px 13px!important;font-size:13px!important}
body.starter-advanced-adventure .vocab-scaffold{display:flex;align-items:center;gap:10px;margin:14px 0;padding:10px 12px;border:2px dashed #9dd4df;border-radius:16px;background:#f5fdff}
body.starter-advanced-adventure .vocab-scaffold button{min-height:42px;padding:7px 12px;border:0;border-radius:13px;background:#dff4f7;color:#185d7e;font-weight:900}
body.starter-advanced-adventure .vocab-meaning{color:#315f76;font-weight:900}
body.starter-advanced-adventure .answer-locked{pointer-events:none;opacity:.66}
body.starter-advanced-adventure .made.tile-retry{animation:microTileShake .38s ease;color:#8c5c17}
@keyframes advancedOllieHappy{40%{transform:translateY(-10px) rotate(-5deg)}75%{transform:rotate(5deg)}}
@keyframes microSpeakArrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes microPearlPop{0%{transform:scale(.4) rotate(-20deg)}65%{transform:scale(1.18) rotate(8deg)}100%{transform:scale(1)}}
@keyframes microTileShake{20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}
@media(max-width:850px){body.starter-advanced-adventure .adventure-board .cards{grid-template-columns:repeat(2,minmax(0,1fr))}body.starter-advanced-adventure .adventure-hero{grid-template-columns:minmax(0,1fr) 140px}body.starter-advanced-adventure .adventure-companion img{width:115px;height:115px}}
@media(max-width:580px){body.starter-advanced-adventure .wrap{padding:12px 8px 28px}body.starter-advanced-adventure .wrap>h1{font-size:29px}body.starter-advanced-adventure .wrap>p{font-size:13px}body.starter-advanced-adventure .rounds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}body.starter-advanced-adventure .rounds button{min-width:0;padding:8px 5px;font-size:11px}body.starter-advanced-adventure .bar button{flex-basis:94px;min-height:42px;font-size:10px}body.starter-advanced-adventure .stage{border-radius:22px}body.starter-advanced-adventure .adventure-hero{grid-template-columns:1fr;gap:8px;padding:21px 18px 25px;text-align:center}body.starter-advanced-adventure .adventure-hero h2{font-size:30px}body.starter-advanced-adventure .adventure-hero p{font-size:13px}body.starter-advanced-adventure .adventure-chips{justify-content:center}body.starter-advanced-adventure .adventure-companion{min-height:80px;flex-direction:row;justify-content:center;gap:7px}body.starter-advanced-adventure .adventure-companion-bubble{margin:0;max-width:180px;font-size:11px}body.starter-advanced-adventure .adventure-companion img{width:75px;height:75px}body.starter-advanced-adventure .adventure-board{padding:22px 10px 18px}body.starter-advanced-adventure .adventure-board .cards{gap:8px}body.starter-advanced-adventure .adventure-board .card{min-height:190px;padding:7px;border-radius:17px}body.starter-advanced-adventure .adventure-board .card img{height:123px}body.starter-advanced-adventure .adventure-board .card b{font-size:22px}body.starter-advanced-adventure .adventure-board .scene,body.starter-advanced-adventure .adventure-board .hero{grid-template-columns:1fr;gap:13px}body.starter-advanced-adventure .adventure-board .scene>img,body.starter-advanced-adventure .adventure-board .hero>img{height:210px;margin:auto}body.starter-advanced-adventure .adventure-board .rec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}body.starter-advanced-adventure .adventure-board .rec button{min-width:0;padding:7px 4px;font-size:12px}body.starter-advanced-adventure .adventure-board .wordbank button,body.starter-advanced-adventure .adventure-board .choices button,body.starter-advanced-adventure .adventure-board .chips button{min-height:60px;padding:7px 12px;font-size:16px}body.starter-advanced-adventure .adventure-trail{gap:8px;padding:10px 8px 15px;font-size:8px}body.starter-advanced-adventure .adventure-pips{gap:5px}body.starter-advanced-adventure .adventure-pips i{width:24px;height:24px}}
@media(max-width:580px){body.starter-advanced-adventure .bar span{flex-basis:94px;min-height:42px;font-size:10px}}
@media(max-width:580px){body.starter-advanced-adventure .micro-speak{grid-template-columns:48px 1fr;padding:13px 10px}body.starter-advanced-adventure .micro-speak-star{width:44px;height:44px;font-size:24px}body.starter-advanced-adventure .micro-speak-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body.starter-advanced-adventure .micro-speak-actions button{min-width:0!important;padding:7px 5px!important;font-size:11px!important}body.starter-advanced-adventure .micro-speak-actions .micro-next{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){body.starter-advanced-adventure.adventure-success .adventure-companion img{animation:none}}
