:root{--tower-ink:#10213d;--tower-panel:rgba(19,20,57,.9);--tower-violet:#8f66ff;--tower-pink:#ff6fcf;--tower-cyan:#62e5ed;--tower-yellow:#ffe16b}.wordwall-page{margin:0;overflow:hidden;background:#76d7ee;overscroll-behavior:none}.wordwall-game{position:relative;width:100vw;height:100dvh;min-height:430px;overflow:hidden;color:#fff;font-family:Inter,"Segoe UI",system-ui,sans-serif}.wordwall-game canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}.wordwall-game canvas.orbiting{cursor:grabbing}.tower-hud{position:absolute;z-index:12;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));left:max(10px,env(safe-area-inset-left));display:flex;align-items:center;gap:7px;pointer-events:none}.tower-brand,.tower-progress,.tower-checkpoint,.tower-icon{border:2px solid rgba(8,10,39,.25);background:var(--tower-panel);box-shadow:0 5px 0 rgba(4,6,29,.42),0 12px 28px rgba(4,6,29,.18);backdrop-filter:blur(9px)}.tower-brand{display:flex;min-height:46px;align-items:center;gap:8px;padding:5px 11px 5px 5px;border-radius:14px;color:#fff;text-decoration:none;pointer-events:auto}.tower-brand span{display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:linear-gradient(145deg,var(--tower-pink),var(--tower-violet));font-weight:950}.tower-progress{display:flex;min-width:150px;height:46px;align-items:center;gap:7px;padding:6px 10px;border-radius:14px}.tower-progress small{color:#c7c8e7;font-size:.64rem;font-weight:800;text-transform:uppercase}.tower-progress b{font-size:.83rem}.tower-progress>i{display:block;flex:1;height:6px;border-radius:99px;background:#3a3c67;overflow:hidden}.tower-progress em{display:block;width:var(--progress,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--tower-cyan),var(--tower-pink));transition:width .35s}.tower-checkpoint{display:flex;min-height:43px;align-items:center;gap:6px;margin-left:auto;padding:6px 11px;border-radius:13px;font-size:.72rem;font-weight:800}.tower-checkpoint i{color:var(--tower-yellow);font-style:normal}.tower-checkpoint b{display:grid;width:23px;height:23px;place-items:center;border-radius:7px;background:#fff;color:var(--tower-ink)}.tower-icon{display:grid;flex:0 0 44px;height:44px;place-items:center;border-radius:13px;color:#fff;font-size:1rem;pointer-events:auto;cursor:pointer}.tower-objective{position:absolute;z-index:9;top:78px;left:max(12px,env(safe-area-inset-left));display:flex;max-width:min(320px,calc(100vw - 24px));align-items:center;gap:9px;padding:9px 12px;border-radius:13px;background:rgba(19,20,57,.86);box-shadow:0 5px 0 rgba(4,6,29,.35);pointer-events:none}.tower-objective>span{padding:5px 7px;border-radius:7px;background:#e8e4ff;color:#5337b5;font-size:.62rem;font-weight:950}.tower-objective small,.tower-objective b{display:block}.tower-objective small{color:#bfc0df;font-size:.6rem;text-transform:uppercase}.tower-objective b{font-size:.78rem}.tower-toast{position:absolute;z-index:16;top:80px;left:50%;max-width:min(84vw,520px);padding:0;border-radius:13px;background:#fff;color:var(--tower-ink);font-weight:900;text-align:center;transform:translate(-50%,-25px);opacity:0;pointer-events:none;transition:.2s}.tower-toast.show{padding:11px 15px;transform:translate(-50%,0);opacity:1}.tower-toast.success{background:#ddf9e7;color:#155d34}.tower-touch{position:absolute;z-index:13;right:max(14px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));display:none;align-items:end;justify-content:space-between;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.touch-capable .tower-touch,.force-touch .tower-touch{display:flex}.analog-stick{position:relative;width:112px;height:112px;border:2px solid rgba(255,255,255,.48);border-radius:50%;background:radial-gradient(circle at 50% 42%,rgba(116,87,202,.8),rgba(19,20,57,.9));box-shadow:inset 0 0 0 8px rgba(98,229,237,.08),0 6px 0 rgba(4,6,29,.42);pointer-events:auto;touch-action:none}.analog-stick::before{position:absolute;inset:12px;border:1px solid rgba(255,255,255,.18);border-radius:50%;content:""}.analog-knob{position:absolute;top:50%;left:50%;display:grid;width:48px;height:48px;place-items:center;margin:-24px 0 0 -24px;border:2px solid rgba(255,255,255,.75);border-radius:50%;background:linear-gradient(145deg,#ff8cda,#7950ee);box-shadow:0 5px 10px rgba(0,0,0,.35);will-change:transform}.analog-knob i{width:13px;height:13px;border:3px solid rgba(36,22,79,.5);border-radius:50%}.jump-button{display:grid;width:72px;height:72px;place-items:center;align-content:center;border:1px solid rgba(255,255,255,.5);border-radius:18px;background:var(--tower-yellow);color:#28204a;font-weight:950;box-shadow:0 5px 0 #a88019;pointer-events:auto;touch-action:none}.jump-button span{font-size:1.4rem;line-height:.8}.jump-button b{font-size:.59rem;text-transform:uppercase}.tower-intro{position:absolute;z-index:30;inset:0;display:grid;place-items:center;padding:18px;background:rgba(15,12,48,.52);backdrop-filter:blur(5px)}.tower-intro.hidden{display:none}.tower-card{position:relative;width:min(540px,100%);padding:24px;border:2px solid rgba(255,255,255,.3);border-radius:22px;background:linear-gradient(145deg,#27205d,#15183d);color:#fff;box-shadow:0 13px 0 rgba(6,5,29,.34),0 35px 80px rgba(0,0,0,.3)}.tower-kicker{margin:0;color:var(--tower-cyan);font-size:.66rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase}.tower-card h1,.tower-card h2{margin:5px 0 10px;font-size:clamp(2rem,8vw,3.5rem);line-height:.96;letter-spacing:-.05em}.tower-card h2{font-size:2rem}.tower-card>p:not(.tower-kicker){margin:0;color:#d0d1ea;line-height:1.45}.tower-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.tower-guide article{display:flex;min-height:62px;align-items:center;gap:9px;padding:9px;border-radius:12px;background:#34316d}.tower-guide article>span{display:grid;flex:0 0 35px;height:35px;place-items:center;border-radius:9px;background:var(--tower-yellow);color:#30234c;font-weight:950}.tower-guide b,.tower-guide small{display:block}.tower-guide small{margin-top:2px;color:#bdbee0;font-size:.67rem;line-height:1.25}.touch-copy{display:none}.touch-capable .touch-copy,.force-touch .touch-copy{display:block}.touch-capable .desktop-copy,.force-touch .desktop-copy{display:none}.tower-primary,.tower-secondary{width:100%;min-height:50px;border:2px solid #5535c8;border-radius:13px;background:linear-gradient(135deg,var(--tower-pink),#b270ff);color:#221842;font-weight:950;box-shadow:0 5px 0 #5631aa;cursor:pointer}.tower-secondary{border-color:#9b9db9;background:#fff;color:#25264d;box-shadow:0 5px 0 #74758d}.tower-card>small{display:block;margin-top:13px;color:#a9aad0;font-size:.66rem;text-align:center}.tower-dialog{width:min(580px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;background:transparent;overflow:auto}.tower-dialog::backdrop{background:rgba(8,6,35,.74);backdrop-filter:blur(5px)}.tower-dialog .tower-card{width:auto;text-align:center}.tower-dialog a{display:flex;min-height:44px;align-items:center;justify-content:center;margin-top:9px;color:#c6c7e0;font-weight:850;text-decoration:none}.dialog-close{position:absolute;top:10px;right:10px;width:42px;height:42px;border:0;background:transparent;color:#cacbea;font-size:1.8rem;cursor:pointer}.challenge-prompt{font-size:1.12rem;font-weight:800}.challenge-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:17px}.challenge-options button{min-height:52px;padding:9px;border:2px solid #7773b6;border-radius:12px;background:#fff;color:#24224c;font-weight:900;cursor:pointer}.challenge-options.letters{grid-template-columns:repeat(5,minmax(42px,1fr))}.challenge-options.letters button{font-size:1.2rem}.challenge-options button:disabled{opacity:.38}.spell-answer{min-height:48px;margin-top:15px;padding:10px;border:2px dashed #8c87c6;border-radius:11px;background:#16163b;color:var(--tower-yellow);font-size:1.35rem;font-weight:950;letter-spacing:.16em}.challenge-actions{display:flex;justify-content:center;gap:7px;margin-top:11px}.challenge-actions button{min-height:38px;padding:7px 12px;border:1px solid #7773b6;border-radius:9px;background:#34316d;color:#fff;font-weight:850;cursor:pointer}.challenge-support{margin-top:10px;padding:10px;border-radius:11px;background:#ecedff;color:#3d3d69;text-align:left}.challenge-support strong,.challenge-support p,.challenge-support small{display:block}.challenge-support p{margin:5px 0;font-size:.78rem;line-height:1.4}.challenge-feedback{min-height:1.4em;margin-top:10px;color:var(--tower-yellow);font-weight:850}.complete-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.tower-trophy{display:grid;width:78px;height:78px;place-items:center;margin:0 auto 14px;border-radius:24px;background:var(--tower-yellow);color:#675000;font-size:2.3rem;box-shadow:0 7px 0 #af8917}.share-status{display:block;min-height:1.2em;margin-top:8px;color:var(--tower-yellow);font-size:.76rem;font-weight:850}
@media(max-width:620px){.tower-brand b,.tower-checkpoint span{display:none}.tower-hud{gap:5px}.tower-progress{min-width:94px;padding-right:7px;padding-left:7px}.tower-checkpoint{padding-right:7px;padding-left:7px}.tower-icon{flex-basis:40px;height:40px}.tower-objective{top:70px}.tower-card{padding:19px}.tower-guide{grid-template-columns:1fr}.tower-guide article{min-height:51px}.challenge-options{grid-template-columns:1fr}.challenge-options.letters{grid-template-columns:repeat(5,minmax(40px,1fr))}.world-grid{grid-template-columns:1fr}.tower-intro .tower-card{max-height:calc(100dvh - 24px);overflow:auto}}
@media(max-width:420px){.complete-actions{grid-template-columns:1fr}.challenge-dialog .tower-card h2{font-size:1.65rem}.challenge-prompt{font-size:.98rem}}
@media(max-height:560px) and (orientation:landscape){.wordwall-game{min-height:0}.tower-hud{top:5px}.tower-brand{min-height:40px}.tower-brand span{width:28px;height:28px}.tower-progress{height:40px}.tower-checkpoint{min-height:38px}.tower-icon{flex-basis:40px;height:40px}.tower-objective{top:53px;left:8px}.tower-touch{right:9px;bottom:8px;left:9px}.analog-stick{width:88px;height:88px}.analog-knob{width:42px;height:42px;margin:-21px 0 0 -21px}.jump-button{width:60px;height:60px}.tower-intro{padding:8px}.tower-card{padding:14px}.tower-card h1{font-size:2rem}.tower-card>p:not(.tower-kicker){font-size:.76rem}.tower-guide{grid-template-columns:1fr 1fr;margin:10px 0}.tower-guide article{min-height:44px;padding:6px}.tower-card>small{display:none}.challenge-dialog .tower-card{max-width:620px}.challenge-options{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}.challenge-options.letters{grid-template-columns:repeat(10,minmax(38px,1fr))}.tower-intro .tower-card{max-height:calc(100dvh - 16px);overflow:auto}.world-grid{margin:8px 0}.world-grid button{min-height:50px}.world-grid button i{width:34px;height:34px}.tower-intro .tower-guide{display:none}}
.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}.world-grid button{display:flex;min-width:0;min-height:62px;align-items:center;gap:8px;padding:8px;border:2px solid #5f5a9b;border-radius:12px;background:#302d67;color:#fff;text-align:left;cursor:pointer}.world-grid button.selected{border-color:var(--world-accent,var(--tower-cyan));background:#46417f;box-shadow:0 0 0 2px color-mix(in srgb,var(--world-accent,var(--tower-cyan)) 35%,transparent)}.world-grid button i{display:grid;flex:0 0 39px;height:39px;place-items:center;border-radius:9px;background:var(--world-accent,var(--tower-cyan));color:#1e1a45;font-size:1rem;font-style:normal;font-weight:950}.world-grid button span,.world-grid button b,.world-grid button small{display:block;min-width:0}.world-grid button b{font-size:.72rem;line-height:1.1}.world-grid button small{margin-top:3px;color:#c9cae8;font-size:.61rem}
.question-count{color:var(--tower-yellow)}
@media(max-width:620px){.world-grid{grid-template-columns:1fr}.tower-intro .tower-card{max-height:calc(100dvh - 24px);overflow:auto}}
@media(max-height:560px) and (orientation:landscape){.world-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0}.world-grid button{min-height:50px}.world-grid button i{width:34px;height:34px}.tower-intro .tower-card{max-height:calc(100dvh - 16px);overflow:auto}.tower-intro .tower-guide{display:none}}
.tower-question-button{position:absolute;z-index:14;top:143px;left:max(12px,env(safe-area-inset-left));display:flex;min-height:44px;align-items:center;gap:8px;padding:5px 12px 5px 6px;border:2px solid rgba(8,10,39,.25);border-radius:13px;background:var(--tower-panel);color:#fff;font:inherit;font-size:.72rem;font-weight:900;box-shadow:0 5px 0 rgba(4,6,29,.42),0 12px 28px rgba(4,6,29,.18);cursor:pointer;backdrop-filter:blur(9px);touch-action:manipulation}.tower-question-button span{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:var(--tower-yellow);color:#30234c;font-size:1rem;font-weight:950}.tower-question-button:hover,.tower-question-button:focus-visible{border-color:var(--tower-yellow);outline:3px solid rgba(255,225,107,.28);outline-offset:2px}.tower-question-button[hidden]{display:none}
@media(max-width:620px){.tower-question-button{top:133px}}
@media(max-height:560px) and (orientation:landscape){.tower-question-button{top:108px;left:8px;min-height:40px}.tower-question-button span{width:27px;height:27px}}
@media(prefers-reduced-motion:reduce){.tower-toast,.tower-progress em{transition:none}}
.tower-checkpoint b{display:flex;width:auto;min-width:39px;padding:0 4px;align-items:center;justify-content:center}
@media(max-width:620px){.tower-checkpoint b span{display:inline}}
.challenge-support ol{margin:8px 0;padding-left:1.25rem;color:#33345f;font-size:.76rem;line-height:1.38}.challenge-support li+li{margin-top:4px}.challenge-support small{padding:8px;border-radius:8px;background:#d9dcff;color:#303261;font-weight:750;line-height:1.4}.challenge-support .support-check{margin-top:8px;color:#5140a2;font-weight:850}
.selector-label{margin:12px 0 6px!important;color:#c9cae8!important;font-size:.68rem!important;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.year-grid button{min-height:50px;padding:7px;border:2px solid #5f5a9b;border-radius:12px;background:#302d67;color:#fff;cursor:pointer}.year-grid button b,.year-grid button small{display:block}.year-grid button b{font-size:.82rem}.year-grid button small{margin-top:2px;color:#c9cae8;font-size:.61rem}.year-grid button.selected{border-color:var(--world-accent,var(--tower-cyan));background:#46417f;box-shadow:0 0 0 2px color-mix(in srgb,var(--world-accent,var(--tower-cyan)) 35%,transparent)}
@media(max-height:560px) and (orientation:landscape){.selector-label{margin:6px 0 4px!important}.year-grid button{min-height:42px;padding:4px}.world-grid{margin:4px 0}.tower-intro .tower-primary{min-height:44px}}
@media(max-height:620px) and (orientation:landscape){.tower-intro .tower-guide{display:none}.tower-intro .selector-label{margin:6px 0 4px!important}.tower-intro .year-grid button{min-height:42px;padding:4px}.tower-intro .world-grid{margin:4px 0}.tower-intro .tower-primary{min-height:44px}}
