/* Arcade R3: Adventure overlays + battle, Sentence Mission and Writing Lab in design C.
   The painted Adventure world stays as the map backdrop; every panel, control and tile goes arcade. */
/* ---------- Adventure: map overlays ---------- */
html body.game-world.adventure-view{font-family:var(--ax-thai)}
html body.game-world.adventure-view .adventure-brand :is(span,b){font-family:var(--ax-pixel);font-style:normal;letter-spacing:2px;color:var(--ax-cyan);text-shadow:0 0 10px rgba(77,225,255,.55),2px 2px 0 #3A3190;background:none;-webkit-text-fill-color:currentColor}
html body.game-world.adventure-view .adventure-brand b{color:var(--ax-gold);text-shadow:0 0 10px rgba(255,209,102,.5),2px 2px 0 #5A2414}
html body.game-world.adventure-view .adventure-brand small{font-family:var(--ax-pixel);color:var(--ax-label)}
html body.game-world.adventure-view :is(.adventure-state,.adventure-mission){background:rgba(13,11,36,.9);border:2px solid var(--ax-frame);border-radius:0;box-shadow:inset 0 0 0 2px var(--ax-bg),inset 0 0 0 4px var(--ax-frame-in);backdrop-filter:none;-webkit-backdrop-filter:none;clip-path:var(--ax-notch)}
html body.game-world.adventure-view .adventure-hsk-control{border-radius:0;border:2px solid var(--ax-cyan);background:var(--ax-panel-2)}
html body.game-world.adventure-view .adventure-hsk-text{font-family:var(--ax-pixel);color:var(--ax-cyan)}
html body.game-world.adventure-view #chapter-progress{font-family:var(--ax-pixel);color:var(--ax-label);font-size:11px;letter-spacing:.5px}
html body.game-world.adventure-view .adventure-eyebrow{font-family:var(--ax-pixel);color:var(--ax-gold);letter-spacing:1px;text-transform:uppercase}
html body.game-world.adventure-view .adventure-destination{font-family:var(--ax-thai);color:var(--ax-text);text-shadow:none}
html body.game-world.adventure-view .adventure-rule{color:var(--ax-muted)}
html body.game-world.adventure-view .chapter strong{font-family:var(--ax-thai);background:rgba(13,11,36,.92);border:1px solid var(--ax-frame);border-radius:0;color:var(--ax-text);text-shadow:none}
html body.game-world.adventure-view .chapter.selected strong{border-color:var(--ax-gold);color:#FFE7A8}
html body.game-world.adventure-view .adventure-action #start{background:var(--ax-pink);color:#1A0614;border:0;border-radius:0;font-family:var(--ax-pixel);font-weight:700;letter-spacing:2px;box-shadow:0 4px 0 var(--ax-pink-d),0 0 26px rgba(255,93,162,.5);clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%,0 10px)}
html body.game-world.adventure-view .adventure-action #start:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ax-pink-d)}
html body.game-world.adventure-view .adventure-support{background:rgba(11,9,32,.94);border-top:2px solid var(--ax-line);backdrop-filter:none;-webkit-backdrop-filter:none}
html body.game-world.adventure-view .adventure-support :is(select,button){background:var(--ax-panel);border:2px solid var(--ax-line);border-radius:0;color:var(--ax-muted);font-family:var(--ax-thai);box-shadow:none}
/* ---------- Adventure: battle ---------- */
html body.game-world.adventure-view .adventure-play{background:rgba(7,6,26,.9);border:2px solid var(--ax-frame);border-radius:0;box-shadow:inset 0 0 0 2px var(--ax-bg),inset 0 0 0 4px var(--ax-frame-in),0 0 30px rgba(7,6,26,.6);backdrop-filter:none;-webkit-backdrop-filter:none}
html body.game-world.adventure-view .adventure-play .hud{background:var(--ax-panel);border:2px solid var(--ax-line);border-radius:0;box-shadow:none}
html body.game-world.adventure-view .adventure-play .hud small{font-family:var(--ax-pixel);font-size:11px;color:var(--ax-label);letter-spacing:1px}
html body.game-world.adventure-view .adventure-play .hud strong{font-family:var(--ax-pixel);text-shadow:none}
html body.game-world.adventure-view .adventure-play #score{color:var(--ax-gold)}html body.game-world.adventure-view .adventure-play #lives{color:var(--ax-pink)}
html body.game-world.adventure-view .adventure-play .question{background:var(--ax-panel-2);border:2px solid var(--ax-gold);border-radius:0;box-shadow:inset 0 0 0 2px var(--ax-bg),inset 0 0 0 4px #4A3A10}
html body.game-world.adventure-view .adventure-play #question-label{font-family:var(--ax-pixel);color:var(--ax-gold);letter-spacing:1px}
html body.game-world.adventure-view .adventure-play #prompt{font-family:var(--ax-hanzi);color:#FFE7A8;text-shadow:0 0 12px rgba(255,209,102,.5)}
html body.game-world.adventure-view .adventure-play #prompt-pinyin{color:var(--ax-cyan)}
html body.game-world.adventure-view #field .target{background:var(--ax-panel);border:2px solid var(--ax-frame);border-radius:0;box-shadow:inset 0 0 0 2px var(--ax-bg);color:var(--ax-text);font-family:var(--ax-thai);font-weight:600;backdrop-filter:none;-webkit-backdrop-filter:none}
html body.game-world.adventure-view #field .target::before,html body.game-world.adventure-view #field .target::after{display:none}
html body.game-world.adventure-view #field .target .hanzi{font-family:var(--ax-hanzi);color:var(--ax-text)}
html body.game-world.adventure-view #field .target .pinyin{color:var(--ax-muted)}
html body.game-world.adventure-view #field .target .key{font-family:var(--ax-pixel);color:var(--ax-label);background:none;border:0;box-shadow:none}
html body.game-world.adventure-view #field .target:hover:not(:disabled){border-color:var(--ax-pink);box-shadow:inset 0 0 0 2px var(--ax-bg),0 0 14px rgba(255,93,162,.35)}
html body.game-world.adventure-view #field .target.correct{border-color:var(--ax-cyan);background:#0D2A33;box-shadow:0 0 20px rgba(77,225,255,.5)}
html body.game-world.adventure-view #field .target.wrong{border-color:var(--ax-red);background:#2A0E16;color:#FFB0B0}
html body.game-world.adventure-view #boss-panel{background:#1A0B1F;border:2px solid #FF6B3D;border-radius:0;box-shadow:inset 0 0 0 2px var(--ax-bg),inset 0 0 0 4px #5A2414,0 0 22px rgba(255,107,61,.3);clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%,0 12px)}
html body.game-world.adventure-view #boss-name{font-family:var(--ax-thai);color:var(--ax-text)}
html body.game-world.adventure-view #boss-stage{font-family:var(--ax-pixel);color:#FF8A3D}
html body.game-world.adventure-view #boss-health{font-family:var(--ax-pixel);color:var(--ax-text)}
html body.game-world.adventure-view #boss-hp{border-radius:0;height:10px;background:#3A1A1A}
html body.game-world.adventure-view #boss-hp::-webkit-progress-bar{background:#3A1A1A;border-radius:0}
html body.game-world.adventure-view #boss-hp::-webkit-progress-value{background:repeating-linear-gradient(90deg,#FF5D2E 0 calc(20% - 3px),transparent calc(20% - 3px) 20%);border-radius:0}
html body.game-world.adventure-view #boss-hp::-moz-progress-bar{background:#FF5D2E}
html body.game-world.adventure-view .adventure-play .overdrive-panel{background:none;border:0;box-shadow:none;border-radius:0}
html body.game-world.adventure-view .adventure-play #overdrive-label{font-family:var(--ax-pixel);color:var(--ax-gold)}
html body.game-world.adventure-view .adventure-play #overdrive-meter{border-radius:0;height:6px}
html body.game-world.adventure-view .adventure-play :is(#round-pause,#howto){background:none;border:0;box-shadow:none;color:var(--ax-muted);border-radius:0}
html body.game-world.adventure-view .adventure-play #exit{background:none;border:2px solid #5A1E44;border-radius:0;color:#FF8AB8;box-shadow:none}
html body.game-world.adventure-view .adventure-play #combo{font-family:var(--ax-pixel);color:var(--ax-gold)}
/* ---------- Sentence Mission + Writing Lab (dialogs) ---------- */
html body #sentence-dialog,html body #writing-lab{background-color:var(--ax-bg)!important;background-image:radial-gradient(rgba(58,51,128,.55) 1px,transparent 1px)!important;background-size:22px 22px!important;color:var(--ax-text);font-family:var(--ax-thai)}
html body #sentence-dialog::backdrop,html body #writing-lab::backdrop{background:rgba(4,3,14,.85)}
html body :is(#sentence-dialog,#writing-lab) :is(h1,h2,h3){font-family:var(--ax-thai);color:var(--ax-text);text-shadow:none}
html body :is(#sentence-dialog,#writing-lab) :is(.eyebrow,.sentence-kicker,.writing-kicker){font-family:var(--ax-pixel);color:var(--ax-gold);letter-spacing:1px}
html body :is(#sentence-dialog,#writing-lab) select{background:var(--ax-panel);border:2px solid var(--ax-cyan);border-radius:0;color:var(--ax-cyan);font-family:var(--ax-thai)}
html body :is(#sentence-dialog,#writing-lab) button{border-radius:0;font-family:var(--ax-thai)}
html body :is(#sentence-dialog,#writing-lab) button:not(.primary):not([class*="option"]):not([class*="choice"]){background:var(--ax-panel);border:2px solid var(--ax-line);color:var(--ax-text);box-shadow:none}
html body :is(#sentence-dialog,#writing-lab) button.primary{background:var(--ax-pink);color:#1A0614;border:0;box-shadow:0 4px 0 var(--ax-pink-d),0 0 18px rgba(255,93,162,.4);font-weight:700}
html body :is(#sentence-dialog,#writing-lab) :is([class*="option"],[class*="choice"]):is(button){background:var(--ax-panel);border:2px solid var(--ax-frame);color:var(--ax-text);box-shadow:inset 0 0 0 2px var(--ax-bg)}
html body :is(#sentence-dialog,#writing-lab) :is([class*="option"],[class*="choice"]):is(button):hover:not(:disabled){border-color:var(--ax-pink)}
html body :is(#sentence-dialog,#writing-lab) input[type="checkbox"]{accent-color:var(--ax-cyan)}
html body :is(#sentence-dialog,#writing-lab) .tailored-world{display:none!important}
html body #sentence-dialog .sentence-hud .session-hsk{background:none;border:1px solid var(--ax-gold);border-radius:0;color:var(--ax-gold);font-family:var(--ax-pixel)}
html body #sentence-dialog .sentence-hud .session-mode{font-family:var(--ax-thai);color:var(--ax-text)}
html body #sentence-dialog .sentence-hud b{font-family:var(--ax-pixel);color:var(--ax-cyan)}
html body #sentence-dialog progress{height:6px;border-radius:0;background:var(--ax-track)}
html body #sentence-dialog progress::-webkit-progress-bar{background:var(--ax-track);border-radius:0}
html body #sentence-dialog progress::-webkit-progress-value{background:var(--ax-gold);border-radius:0}
html body #sentence-dialog .tailored-scroll{background:var(--ax-panel-2)!important;border:2px solid var(--ax-gold);border-radius:0;box-shadow:inset 0 0 0 2px var(--ax-bg),inset 0 0 0 4px #4A3A10,0 0 22px rgba(255,209,102,.18);clip-path:var(--ax-notch-4)}
html body #sentence-dialog .tailored-scroll::before,html body #sentence-dialog .tailored-scroll::after{display:none!important}
html body #sentence-dialog .tailored-scroll .eyebrow{color:var(--ax-gold)}
html body #sentence-dialog .sentence-zh{font-family:var(--ax-hanzi);color:var(--ax-text);text-shadow:0 0 12px rgba(122,108,255,.5)}
html body #sentence-dialog .sentence-py{color:var(--ax-cyan)}
html body #sentence-dialog .sentence-context{color:var(--ax-muted)}
html body #sentence-dialog .sentence-options button{background:var(--ax-panel)!important;border:2px solid var(--ax-frame)!important;border-radius:0!important;color:var(--ax-text)!important;box-shadow:inset 0 0 0 2px var(--ax-bg)!important;font-family:var(--ax-thai)}
html body #sentence-dialog .sentence-options button::before,html body #sentence-dialog .sentence-options button::after{display:none!important}
html body #sentence-dialog .sentence-options button small{font-family:var(--ax-pixel);color:var(--ax-label)}
html body #sentence-dialog .sentence-options button:hover:not(:disabled){border-color:var(--ax-pink)!important}
html body #sentence-dialog .sentence-options button:is(.correct,[aria-pressed="true"].correct){border-color:var(--ax-cyan)!important;background:#0D2A33!important}
html body #sentence-dialog .sentence-options button.wrong{border-color:var(--ax-red)!important;background:#2A0E16!important;color:#FFB0B0!important}
html body #sentence-dialog #sentence-close,html body #writing-lab [class*="close"]{border:2px solid #5A1E44!important;background:none!important;color:#FF8AB8!important}
html body #sentence-dialog .tailored-scroll .sentence-zh{color:var(--ax-text)!important;filter:none!important;-webkit-text-fill-color:currentColor}
html body #sentence-dialog .tailored-scroll .sentence-py{color:var(--ax-cyan)!important}
html body #sentence-dialog .tailored-scroll :is(.eyebrow,b,strong){color:var(--ax-gold)!important}
html body #sentence-dialog .tailored-scroll :is(.sentence-context,p,small){color:var(--ax-muted)!important}
/* ---------- Adventure v2: full design C (no painted world) ---------- */
html body.game-world.adventure-view{background:var(--ax-bg)!important}
html body.game-world.adventure-view::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background-image:radial-gradient(#3A3380 1px,transparent 1px);background-size:22px 22px;opacity:.35}
html body.game-world.adventure-view :is(.adventure-world,.adventure-world-art,.gameplay-world){display:none!important}
html body.game-world.adventure-view .adventure-plane::after{display:none}
html body.game-world.adventure-view .adventure-route{display:none!important}
html body.game-world.adventure-view .adventure-plane::before{content:"";position:absolute;left:50%;top:30%;bottom:22%;width:4px;transform:translateX(-50%);pointer-events:none;background:repeating-linear-gradient(180deg,rgba(77,225,255,.35) 0 8px,transparent 8px 16px)}
html body.game-world.adventure-view #chapters .chapter{border-radius:0;width:52px;height:52px;min-width:52px;min-height:52px;background:var(--ax-panel);border:2px solid var(--ax-line);box-shadow:inset 0 0 0 2px var(--ax-bg);color:var(--ax-label);font-family:var(--ax-pixel)}
html body.game-world.adventure-view #chapters .chapter::before{font-family:var(--ax-pixel);font-size:20px}
html body.game-world.adventure-view #chapters .chapter strong{min-width:0!important;width:max-content!important;max-width:150px!important;white-space:nowrap;font-size:12px;padding:3px 6px}
html body.game-world.adventure-view #chapters .chapter.selected{width:80px;height:64px;border-color:var(--ax-gold);background:#2A220C;color:var(--ax-gold);box-shadow:inset 0 0 0 2px var(--ax-bg),0 0 22px rgba(255,209,102,.5);animation:ax-node 1.8s ease-in-out infinite}
html body.game-world.adventure-view #chapters .chapter.completed{border-color:var(--ax-cyan);background:#0D2A33;color:var(--ax-cyan)}
html body.game-world.adventure-view #chapters .chapter:disabled,html body.game-world.adventure-view #chapters .chapter.locked{opacity:.75}
html body.game-world.adventure-view #chapters .chapter:not(:has(strong)) {overflow:visible}
html body.game-world.adventure-view #chapters .chapter:nth-child(1){left:50%!important;top:78%!important}
html body.game-world.adventure-view #chapters .chapter:nth-child(1) strong{left:calc(100% + 8px)!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;text-align:left}
html body.game-world.adventure-view #chapters .chapter:nth-child(2){left:36%!important;top:68%!important}
html body.game-world.adventure-view #chapters .chapter:nth-child(2) strong{left:auto!important;right:calc(100% + 8px)!important;top:50%!important;transform:translateY(-50%)!important;text-align:right}
html body.game-world.adventure-view #chapters .chapter:nth-child(3){left:64%!important;top:58%!important}
html body.game-world.adventure-view #chapters .chapter:nth-child(3) strong{left:calc(100% + 8px)!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;text-align:left}
html body.game-world.adventure-view #chapters .chapter:nth-child(4){left:36%!important;top:48%!important}
html body.game-world.adventure-view #chapters .chapter:nth-child(4) strong{left:auto!important;right:calc(100% + 8px)!important;top:50%!important;transform:translateY(-50%)!important;text-align:right}
html body.game-world.adventure-view #chapters .chapter:nth-child(5){left:64%!important;top:38%!important}
html body.game-world.adventure-view #chapters .chapter:nth-child(5) strong{left:calc(100% + 8px)!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;text-align:left}
html body.game-world.adventure-view #chapters .chapter:nth-child(6){left:50%!important;top:29%!important}
html body.game-world.adventure-view #chapters .chapter:nth-child(6) strong{left:calc(100% + 8px)!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;text-align:left}
@media (max-width:600px) and (orientation:portrait){html body.game-world.adventure-view #chapters .chapter:nth-child(1){left:50%!important;top:calc(266px + (100% - 448px) * 1.00)!important}html body.game-world.adventure-view #chapters .chapter:nth-child(2){left:36%!important;top:calc(266px + (100% - 448px) * 0.80)!important}html body.game-world.adventure-view #chapters .chapter:nth-child(3){left:64%!important;top:calc(266px + (100% - 448px) * 0.60)!important}html body.game-world.adventure-view #chapters .chapter:nth-child(4){left:36%!important;top:calc(266px + (100% - 448px) * 0.40)!important}html body.game-world.adventure-view #chapters .chapter:nth-child(5){left:64%!important;top:calc(266px + (100% - 448px) * 0.20)!important}html body.game-world.adventure-view #chapters .chapter:nth-child(6){left:50%!important;top:calc(266px + (100% - 448px) * 0.00)!important}html body.game-world.adventure-view .adventure-plane::before{top:266px;bottom:182px}}
@media (max-width:600px) and (orientation:portrait) and (max-height:720px){html body.game-world.adventure-view #chapters .chapter{width:42px;height:42px;min-width:42px;min-height:42px}html body.game-world.adventure-view #chapters .chapter.selected{width:60px;height:48px}html body.game-world.adventure-view #chapters .chapter strong{font-size:11px;padding:2px 5px}}
@media (orientation:landscape) and (max-height:760px){html body.game-world.adventure-view #chapters .chapter:nth-child(1){left:50%!important;top:72%!important}html body.game-world.adventure-view #chapters .chapter:nth-child(2){left:36%!important;top:62%!important}html body.game-world.adventure-view #chapters .chapter:nth-child(3){left:64%!important;top:52%!important}html body.game-world.adventure-view #chapters .chapter:nth-child(4){left:36%!important;top:42%!important}html body.game-world.adventure-view #chapters .chapter:nth-child(5){left:64%!important;top:32%!important}html body.game-world.adventure-view #chapters .chapter:nth-child(6){left:50%!important;top:22%!important}html body.game-world.adventure-view .adventure-plane::before{top:22%;bottom:28%}}
@keyframes ax-node{50%{box-shadow:inset 0 0 0 2px var(--ax-bg),0 0 8px rgba(255,209,102,.25)}}
html body.game-world.adventure-view .adventure-scene{background:none}
/* Pixel boss (ราชาหม้อไฟ-style hotpot king) replaces the emoji avatar */
html body.game-world.adventure-view #boss-avatar{font-size:0!important;width:72px;height:72px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='4' y='0' width='2' height='2' fill='%23FFD166'/%3E%3Crect x='7' y='0' width='2' height='1' fill='%23FF8A3D'/%3E%3Crect x='10' y='0' width='2' height='2' fill='%23FFD166'/%3E%3Crect x='6' y='1' width='4' height='2' fill='%23FF5D2E'/%3E%3Crect x='3' y='3' width='10' height='1' fill='%23C9C2FF'/%3E%3Crect x='2' y='4' width='12' height='7' fill='%237A3A2B'/%3E%3Crect x='1' y='5' width='1' height='3' fill='%23C9C2FF'/%3E%3Crect x='14' y='5' width='1' height='3' fill='%23C9C2FF'/%3E%3Crect x='4' y='6' width='2' height='2' fill='%23FFD166'/%3E%3Crect x='10' y='6' width='2' height='2' fill='%23FFD166'/%3E%3Crect x='5' y='7' width='1' height='1' fill='%2307061A'/%3E%3Crect x='10' y='7' width='1' height='1' fill='%2307061A'/%3E%3Crect x='6' y='9' width='4' height='1' fill='%23FF5D2E'/%3E%3Crect x='3' y='11' width='10' height='1' fill='%234A2219'/%3E%3Crect x='4' y='12' width='2' height='2' fill='%234A2219'/%3E%3Crect x='10' y='12' width='2' height='2' fill='%234A2219'/%3E%3Crect x='2' y='14' width='12' height='1' fill='%23FF8A3D'/%3E%3C/svg%3E") center/contain no-repeat;image-rendering:pixelated;animation:ax-boss 2s ease-in-out infinite}
@keyframes ax-boss{50%{transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){html body.game-world.adventure-view :is(#boss-avatar,#chapters .chapter.selected){animation:none!important}}
@media (max-width:600px){html body.game-world.adventure-view #chapters .chapter:is(:nth-child(2),:nth-child(4)) strong{white-space:normal;width:96px!important}}

/* ---------- Adventure results (same arcade treatment as training results) ---------- */
html body.game-world.adventure-results{background:var(--ax-bg)!important}
html body.game-world.adventure-results::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background-image:radial-gradient(#3A3380 1px,transparent 1px);background-size:22px 22px;opacity:.35}
html body.game-world.adventure-results .gameplay-world{display:none!important}
html body.game-world.adventure-results #results::before,html body.game-world.adventure-results #results::after{display:none!important}
html body.game-world.adventure-results #results:not([hidden]){position:relative;z-index:1;border:0!important;outline:0!important;padding-left:16px;padding-right:16px;background:none;border:0;box-shadow:none;font-family:var(--ax-thai);color:var(--ax-text);backdrop-filter:none;-webkit-backdrop-filter:none}
html body.game-world.adventure-results #results .training-result-identity{font-family:var(--ax-pixel);font-size:13px;color:var(--ax-label);letter-spacing:1px}
html body.game-world.adventure-results #results .eyebrow{font-family:var(--ax-pixel);color:var(--ax-cyan);letter-spacing:2px}
html body.game-world.adventure-results #results #result-title{font-family:var(--ax-pixel);font-weight:700;color:var(--ax-cyan);text-shadow:0 0 14px rgba(77,225,255,.55);letter-spacing:.5px}
html body.game-world.adventure-results #results .result-stats>div{background:var(--ax-panel);border:2px solid var(--ax-line);border-radius:0;box-shadow:inset 0 0 0 2px var(--ax-bg);backdrop-filter:none;-webkit-backdrop-filter:none}
html body.game-world.adventure-results #results .result-stats strong{font-family:var(--ax-pixel);color:var(--ax-gold);text-shadow:0 0 10px rgba(255,209,102,.4)}
html body.game-world.adventure-results #results .result-stats>div:nth-child(2) strong{color:var(--ax-cyan)}
html body.game-world.adventure-results #results .result-stats>div:nth-child(3) strong{color:var(--ax-pink)}
html body.game-world.adventure-results #results .result-stats span{color:var(--ax-muted)}
html body.game-world.adventure-results #results .learning-summary{background:#160B1F;border:0;border-left:4px solid var(--ax-gold);border-radius:0;color:var(--ax-muted)}
html body.game-world.adventure-results #results #again{background:var(--ax-pink);color:#1A0614;border:0;border-radius:0;font-weight:700;box-shadow:0 4px 0 var(--ax-pink-d),0 0 20px rgba(255,93,162,.4);clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% 100%,0 100%,0 8px)}
html body.game-world.adventure-results #results :is(#review-play,#results-home,.learning-report .primary){background:var(--ax-panel-2);border:2px solid var(--ax-cyan);border-radius:0;color:var(--ax-cyan);box-shadow:none;font-weight:700}
html body.game-world.adventure-results #results :is(.answer-history,.learning-report){background:var(--ax-panel);border:2px solid var(--ax-line);border-radius:0;box-shadow:none}
html body.game-world.adventure-results #results .review-item,html body.game-world.adventure-results #results .learning-word{background:var(--ax-panel-2);border:1px solid var(--ax-line);border-radius:0}
html body.game-world.adventure-results #results .result-status{color:var(--ax-cyan)}html body.game-world.adventure-results #results .result-status.miss{color:var(--ax-red)}
html body.game-world.adventure-results #results :is(h3,h4){font-family:var(--ax-thai);color:var(--ax-text)}

/* ---------- Shared dialogs (exit, how-to, settings, player name) ---------- */
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog){background:var(--ax-panel-2)!important;background-image:none!important;border:2px solid var(--ax-frame-hi)!important;border-radius:0!important;box-shadow:inset 0 0 0 2px var(--ax-bg),inset 0 0 0 4px #3A3190,0 0 40px rgba(122,108,255,.35)!important;color:var(--ax-text)!important;font-family:var(--ax-thai)}
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog)::backdrop{background:rgba(4,3,14,.8)}
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog) :is(h1,h2,h3){font-family:var(--ax-pixel);color:var(--ax-cyan);text-shadow:0 0 12px rgba(77,225,255,.45);letter-spacing:.5px}
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog) :is(p,small,label,span){color:var(--ax-muted)}
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog) button{border-radius:0!important;font-family:var(--ax-thai);box-shadow:none;background:var(--ax-panel);border:2px solid var(--ax-line);color:var(--ax-text)}
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog) :is(button.primary,#exit-cancel,#player-name-form button[type="submit"]){background:var(--ax-cyan)!important;color:#04161C!important;border:0!important;font-weight:700;box-shadow:0 4px 0 var(--ax-cyan-d)!important}
html body #exit-dialog #exit-confirm{background:none!important;border:2px solid #5A1E44!important;color:#FF8AB8!important}
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog) :is(select,input:not([type="checkbox"]):not([type="range"])){background:var(--ax-bg)!important;border:2px solid var(--ax-line)!important;border-radius:0!important;color:var(--ax-text)!important;font-family:var(--ax-thai)}
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog) input[type="checkbox"]{accent-color:var(--ax-cyan)}
html body :is(#exit-dialog,#howto-dialog,.mission-settings-dialog,#player-name-dialog) :is(details,.panel,section){background:none!important;border-color:var(--ax-line)!important;border-radius:0!important;box-shadow:none!important}
html body.game-world.adventure-results .adventure-plane{display:none!important}
