/* Thinking adventures: shared scene grammar, generous touch controls, no decorative UI overlays. */
.ta-adventure{--ta-ink:#182f53;--ta-ground:#dceecf;--ta-sky:#e4f5fa;--ta-paper:#fffaf0;color:var(--ta-ink);max-width:940px!important;text-align:center;font-family:inherit}
.ta-adventure *{box-sizing:border-box}
.ta-adventure .ta-heading{display:flex;align-items:center;justify-content:center;gap:16px;text-align:left;margin:0 0 18px}
.ta-adventure .ta-heading>.ta-cast{height:92px;width:85px;object-fit:contain;flex:none}
.ta-adventure .ta-heading small{font-size:.78rem;font-weight:750;letter-spacing:.04em}
.ta-adventure .ta-heading h2{margin:5px 0 0;font-size:clamp(1.35rem,4vw,2rem);line-height:1.4;word-break:normal;overflow-wrap:anywhere}
.ta-adventure .ta-instruction{max-width:38em;margin:8px auto 18px;line-height:1.9;font-size:1rem}
.ta-adventure .ta-progress{position:relative;isolation:isolate;overflow:hidden;background:#e8e7de;border:2px solid var(--ta-ink);border-radius:30px;max-width:450px;min-height:36px;margin:0 auto 20px;display:grid;place-items:center}
.ta-adventure .ta-progress-fill{position:absolute;inset:0 auto 0 0;background:#ffdb62;z-index:-1;transition:width .35s ease}
.ta-adventure .ta-progress-label{font-weight:800;padding:5px 14px;font-size:.85rem}
.ta-adventure .ta-scene{display:flex;flex-direction:column;gap:18px;align-items:center;min-width:0}
.ta-adventure .ta-tools{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:10px;width:100%}
.ta-adventure button{font:inherit;color:var(--ta-ink);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-height:52px;min-width:48px;transition:background .15s,transform .15s,box-shadow .15s}
.ta-adventure button:focus-visible{outline:4px solid #007fa4;outline-offset:4px;position:relative;z-index:2}
.ta-adventure button:disabled{cursor:default}
.ta-adventure .ta-button{border:2px solid var(--ta-ink);border-radius:18px;padding:11px 16px;background:#fffdf5;box-shadow:0 4px 0 #cbd5d4;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px}
.ta-adventure .ta-button>svg{width:32px;height:40px;flex:none}
.ta-adventure .ta-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #cbd5d4}
.ta-adventure .ta-button[aria-pressed=true]{background:#fff0b5;border-width:3px;padding:10px 15px;box-shadow:0 4px 0 var(--ta-ink)}
.ta-adventure .ta-button:disabled{opacity:.5;box-shadow:none}
.ta-adventure .ta-primary{background:#ffdc64;box-shadow:0 4px 0 var(--ta-ink)}
.ta-adventure [hidden]{display:none!important}
.ta-adventure .ta-cast{max-width:100%;object-fit:contain;pointer-events:none;user-select:none}
.ta-adventure .ta-feedback{background:#fff6d5;border-left:5px solid #e9bd41;border-radius:4px 16px 16px 4px;padding:14px 20px;text-align:left;line-height:1.8;min-height:4.7em;margin:24px 0 0;font-weight:700}
.ta-adventure .ta-scene-caption{line-height:1.8;font-size:.9rem;margin:0;max-width:36em}
.ta-adventure .ta-order{display:flex;align-items:center;gap:10px;background:#fff7dd;border:2px dashed #c8a055;padding:8px 22px;border-radius:16px}
.ta-adventure .ta-order svg{height:45px;width:45px}
.ta-adventure .ta-garden{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:linear-gradient(var(--ta-sky) 0 25%,var(--ta-ground) 25%);border:3px solid #52734f;border-radius:28px;padding:38px 18px 18px;width:min(100%,600px);position:relative;overflow:hidden}
.ta-adventure .ta-garden:before{content:'';position:absolute;background:#ffe270;width:55px;height:55px;border-radius:50%;top:12px;right:20px}
.ta-adventure .ta-plot{position:relative;z-index:1;border:2px solid #8a663d;border-radius:50% 50% 25% 25%;background:#b98d62;aspect-ratio:1;display:grid;place-items:center;padding:0;min-height:68px}
.ta-adventure .ta-plot svg{width:100%;height:100%;max-height:120px;filter:drop-shadow(0 3px 0 #ffffff55);animation:ta-bloom .3s ease-out}
.ta-adventure .ta-plot[data-state='2']{background:#d3eeb3;border-color:#6f9e50}
.ta-adventure .ta-plot small{position:absolute;bottom:1px;right:6px;font-weight:800;background:#fff8d9;min-width:23px;border-radius:50%;padding:2px;font-size:.75rem}
.ta-adventure .ta-soil-mark{font-size:1.8rem;color:#fff3d2}
.ta-adventure .ta-garden.is-bouquet{background:linear-gradient(#fff0cf,#f8cfe2);border-color:#be7290}
.ta-adventure .ta-pattern-sample{display:flex;gap:10px;align-items:center;justify-content:center;padding:10px 18px;border:2px dashed #8c9fae;border-radius:16px;background:#fffdf6}
.ta-adventure .ta-pattern-sample svg{width:40px;height:40px}
.ta-adventure .ta-pattern-sample span{font-weight:800;margin-right:6px}
.ta-adventure .ta-rail{width:100%;min-width:0;border-radius:26px;background:linear-gradient(var(--ta-sky) 70%,#cde4b5 70%);border-bottom:8px double #6f7673;padding:22px 12px 24px;overflow:hidden}
.ta-adventure .ta-engine{height:80px;width:100px;margin:0 auto 8px;background:#53c6d1;border:3px solid var(--ta-ink);border-radius:40% 40% 12px 12px;position:relative}
.ta-adventure .ta-engine:before,.ta-adventure .ta-engine:after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;bottom:-12px;background:var(--ta-ink)}
.ta-adventure .ta-engine:before{left:10px}.ta-adventure .ta-engine:after{right:10px}
.ta-adventure .ta-engine img{height:75px;width:80px;transform:translateY(-10px)}
.ta-adventure .ta-train{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.ta-adventure .ta-carriage{position:relative;width:64px;height:75px;padding:5px;display:grid;place-items:center;background:#fff8df;border:3px solid var(--ta-ink);border-radius:14px 14px 6px 6px;font-size:1.8rem;margin-bottom:8px;box-shadow:0 5px 0 #596b74}
.ta-adventure .ta-carriage:after{content:'';position:absolute;left:13%;right:13%;bottom:-13px;height:12px;border-left:11px solid var(--ta-ink);border-right:11px solid var(--ta-ink)}
.ta-adventure .ta-carriage svg{height:100%;width:100%}
.ta-adventure .ta-carriage[aria-pressed=true]{background:#ffde6c;outline:3px solid #d19d27;outline-offset:3px}
.ta-adventure .ta-fixed{background:#d6e9e6;opacity:.82}
.ta-adventure .ta-rail.is-running .ta-train{animation:ta-train-trip 1.5s ease-in-out}
.ta-adventure .ta-destination{font-weight:850;background:#fff5de;border:3px solid var(--ta-ink);border-radius:8px;padding:8px 24px}
.ta-adventure .ta-destination.is-arrived{background:#c8edb4}
.ta-adventure .ta-memory{display:grid;grid-template-columns:repeat(var(--ta-columns,4),minmax(0,1fr));gap:12px;max-width:620px;width:100%}
.ta-adventure .ta-memory-card{border:3px solid var(--ta-ink);background:repeating-linear-gradient(45deg,#c4eaf0 0 10px,#d7f2f1 10px 20px);border-radius:20px;padding:6px;aspect-ratio:.85;box-shadow:0 5px 0 #95b4ba;position:relative;min-height:90px}
.ta-adventure .ta-memory-back{font-size:1.8rem;font-weight:850;display:grid;place-items:center;background:#fff9e4;border:2px solid var(--ta-ink);border-radius:50%;width:44px;height:44px;margin:auto}
.ta-adventure .ta-memory-front{display:none;align-items:center;flex-direction:column;height:100%;gap:3px;font-size:.75rem;font-weight:800;justify-content:center}
.ta-adventure .ta-memory-front img{width:100%;height:calc(100% - 22px);min-height:0;max-height:115px}
.ta-adventure .ta-memory-card.is-open{background:#fff9e6}
.ta-adventure .ta-memory-card.is-open .ta-memory-front{display:flex;animation:ta-bloom .23s ease}
.ta-adventure .ta-memory-card.is-open .ta-memory-back{display:none}
.ta-adventure .ta-memory-card.is-matched{border-color:#5d9463;background:#e7f3d8;box-shadow:0 2px 0 #95b4ba}
.ta-adventure .ta-gallery{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;background:#fff1ce;border-radius:22px;width:100%;padding:14px;min-height:100px;border-bottom:8px solid #bd8a53}
.ta-adventure .ta-gallery-person{border:0;background:transparent;padding:4px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.72rem;font-weight:750;flex:0 1 80px}
.ta-adventure .ta-gallery-person img{height:80px;width:70px}
.ta-adventure .ta-river{width:100%;position:relative;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;padding:45px 10px;background:repeating-linear-gradient(175deg,#b7e9ed 0 22px,#c5f1f2 22px 26px);border:3px solid #73aeb4;border-radius:26px;min-height:230px}
.ta-adventure .ta-bank{font-size:.7rem;background:#bde4a8;border-radius:40%;align-self:stretch;display:grid;place-items:center;padding:4px;font-weight:800}
.ta-adventure .ta-bridge{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ta-adventure .ta-bridge-tile{width:52px;height:60px;min-width:48px;background:#f6dfaf;border:2px solid #835b35;border-bottom-width:7px;border-radius:8px;padding:4px;font-size:1.6rem;font-weight:850}
.ta-adventure .ta-bridge-tile.is-checked{background:#c8e8a7;border-color:#4f783a}
.ta-adventure .ta-traveler{width:55px;height:65px;position:absolute;left:clamp(0%,var(--ta-step,0%),85%);top:2px;transition:left .35s ease}
.ta-adventure .ta-river.is-crossed .ta-traveler{left:85%}
.ta-adventure .ta-number-tray{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ta-adventure .ta-number,.ta-adventure .ta-letter{border:2px solid var(--ta-ink);border-radius:15px;background:#ffdc64;box-shadow:0 4px 0 #b39543;min-width:58px;min-height:64px;font-size:1.8rem;font-weight:850;padding:7px 12px}
.ta-adventure .ta-number:disabled{opacity:.35;box-shadow:none;background:#e2e4dc}
.ta-adventure .ta-postcard{width:min(100%,540px);background:var(--ta-paper);border:10px solid #fff;border-radius:12px;box-shadow:0 4px 0 #d0c4ab,0 6px 18px #182f5312;padding:20px 70px 18px 20px;position:relative;min-height:260px}
.ta-adventure .ta-postcard-art>svg{height:155px;max-width:100%}
.ta-adventure .ta-sticker{position:absolute;right:8px;bottom:12px;transform:rotate(6deg)}
.ta-adventure .ta-sticker img{height:92px;width:75px;filter:drop-shadow(3px 3px 0 #fff)}
.ta-adventure .ta-letter-slots{display:flex;justify-content:center;gap:8px;margin-top:15px;flex-wrap:wrap}
.ta-adventure .ta-letter-slot{background:#fffcf0;border:2px solid var(--ta-ink);border-radius:10px;min-width:53px;min-height:65px;font-size:1.7rem;position:relative;padding:16px 8px 3px}
.ta-adventure .ta-guide{display:none;position:absolute;top:1px;left:4px;font-size:.75rem;color:#506b79}
.ta-adventure .show-guide .ta-guide{display:inline}
.ta-adventure .ta-subjects,.ta-adventure .ta-alphabet{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.ta-adventure .ta-subjects .ta-button{display:flex;flex-direction:column;width:85px;font-size:.8rem;padding:8px;gap:2px}
.ta-adventure .ta-subjects .ta-button[aria-pressed=true]{padding:7px}
.ta-adventure .ta-subjects svg{height:50px;width:50px}
.ta-adventure .ta-map{display:grid;grid-template-columns:repeat(var(--ta-size,4),minmax(0,1fr));gap:4px;padding:10px;background:#c9e4b1;border:3px solid #66925d;border-radius:24px;width:min(100%,440px)}
.ta-adventure .ta-map-cell{aspect-ratio:1;background:#fff7dc;border:1px solid #d4caaa;border-radius:8px;position:relative;min-width:0;display:grid;place-items:center}
.ta-adventure .ta-map-cell>svg{height:86%;width:86%}
.ta-adventure .ta-map-cell>img{position:absolute;inset:2%;width:96%;height:96%;filter:drop-shadow(1px 2px 0 #fff);animation:ta-bloom .25s ease}
.ta-adventure .ta-map-cell.is-pond{background:#78cddc;border-color:#50adbd;color:#e9ffff;font-size:2rem}
.ta-adventure .ta-map-cell.is-delivered{box-shadow:inset 0 0 0 4px #6d9e40;background:#e3f2c7}
.ta-adventure .ta-map-cell.is-start:before{content:'START';position:absolute;bottom:2px;left:3px;font-size:.55rem;color:#697b58}
.ta-adventure .ta-command-queue{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;min-height:62px;align-items:center;width:100%;max-width:620px;background:#edf3f0;border:2px dashed #a8b9af;border-radius:18px;padding:12px;font-size:.85rem}
.ta-adventure .ta-command{width:48px;height:49px;padding:0;border:2px solid var(--ta-ink);background:#ffefa9;border-radius:10px;font-size:1.8rem;font-weight:850;min-height:49px}
.ta-adventure .ta-command.is-current{background:#ffb3cb;outline:3px solid #c96887}
.ta-adventure .ta-command.is-checked{background:#d2eabc}
.ta-adventure .ta-arrow{min-width:64px;min-height:70px;display:flex;flex-direction:column;border:2px solid var(--ta-ink);border-radius:15px;background:#fff1bb;box-shadow:0 4px 0 #cfbd88;align-items:center;padding:4px 13px}
.ta-adventure .ta-arrow strong{font-size:2rem;line-height:1.1}.ta-adventure .ta-arrow span{font-size:.75rem;font-weight:750}
.ta-adventure .ta-needs-repair{outline:4px dashed #bb5c47!important;outline-offset:3px;background:#ffe0c6!important;animation:ta-wiggle .4s ease}
.ta-adventure.ta-complete .ta-feedback{background:#deefcb;border-left-color:#689b4e}
.ta-adventure[data-theme=ocean]{--ta-ground:#c6eee7;--ta-sky:#d7f3ff}.ta-adventure[data-theme=space]{--ta-ground:#e5dbf1;--ta-sky:#c7d7f0}.ta-adventure[data-theme=town]{--ta-ground:#e9e2ca;--ta-sky:#e1edf2}
@keyframes ta-bloom{from{transform:scale(.85) translateY(4px);opacity:.5}to{transform:scale(1) translateY(0);opacity:1}}
@keyframes ta-train-trip{0%{transform:translateX(0)}45%{transform:translateX(8%)}70%{transform:translateX(-5%)}100%{transform:translateX(0)}}
@keyframes ta-wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}
@media(max-width:600px){.ta-adventure .ta-heading{gap:10px}.ta-adventure .ta-heading>.ta-cast{height:76px;width:65px}.ta-adventure .ta-heading small{font-size:.65rem}.ta-adventure .ta-heading h2{font-size:1.3rem}.ta-adventure .ta-garden{padding:34px 10px 12px;gap:8px}.ta-adventure .ta-garden .ta-plot{min-height:59px}.ta-adventure .ta-memory{gap:9px}.ta-adventure .ta-memory-card{padding:4px;border-radius:14px;min-height:80px}.ta-adventure .ta-memory-front{font-size:.6rem}.ta-adventure .ta-button{padding:10px 12px;font-size:.85rem}.ta-adventure .ta-tools{gap:9px}.ta-adventure .ta-tools:has(>.ta-button>svg)>.ta-button{flex:1 1 40%;max-width:180px}.ta-adventure .ta-river{grid-template-columns:27px 1fr 27px;padding:48px 5px 25px;gap:6px}.ta-adventure .ta-bridge{gap:7px}.ta-adventure .ta-bridge-tile{width:48px;min-width:48px;height:56px}.ta-adventure .ta-postcard{padding:15px 45px 15px 10px}.ta-adventure .ta-sticker img{width:55px;height:65px}.ta-adventure .ta-letter-slot{min-width:48px;padding:15px 6px 3px}.ta-adventure .ta-train{gap:7px}.ta-adventure .ta-carriage{width:52px;height:62px}.ta-adventure .ta-feedback{padding:12px 14px;font-size:.9rem}.ta-adventure .ta-subjects .ta-button{width:72px}.ta-adventure .ta-gallery-person{flex-basis:68px}.ta-adventure .ta-gallery-person img{height:66px;width:60px}}
@media(prefers-reduced-motion:reduce){.ta-adventure *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Canonical cast files contain two poses side by side: show one pose per portrait. */
.ta-adventure .ta-cast{object-fit:cover;object-position:left center}
