/* ValueM's own paper aeroplane adventure. All artwork keeps its SVG aspect ratio. */
.spelling-card-art{height:190px;position:relative;overflow:hidden;background:#85c9c6}.spelling-card-art .river-strip{top:-170px}.spelling-card-plane{position:absolute;width:80px;height:104px;left:calc(50% - 40px);top:40px;filter:drop-shadow(7px 10px 3px #306c7140);transform:rotate(-9deg)}.spelling-card-plane svg{width:100%;height:100%}.spelling-card-art>span{position:absolute;left:18px;top:18px;background:#fff8de;border-radius:12px;padding:6px 12px;font-size:24px;color:#6a8269}.word-settings-link{display:block;margin:12px auto 0;background:none;text-decoration:underline;font-size:12px}.relax-cards .spelling-card{display:block;grid-column:auto}.spelling-game{height:calc(100dvh - 16px);max-height:100%;min-height:0;display:grid;grid-template-rows:36px 30px auto minmax(130px,1fr) auto;gap:0;width:100%;max-width:780px;margin:auto}.playing-spelling #shell{max-width:720px;height:100dvh;min-height:0;padding:0}.playing-spelling #main{height:100%;animation:none;padding:max(6px,var(--game-safe-top,env(safe-area-inset-top,0px))) max(8px,var(--game-safe-right,env(safe-area-inset-right,0px))) max(8px,var(--game-safe-bottom,env(safe-area-inset-bottom,0px))) max(8px,var(--game-safe-left,env(safe-area-inset-left,0px)))!important}.playing-spelling{height:100dvh;overflow:hidden;overscroll-behavior:none}.playing-spelling .hero,.playing-spelling .bottom-nav{display:none}.spelling-game .game-top{height:36px}.spelling-game .game-hud{height:30px;padding:0 6px}.spelling-word-panel{text-align:center;padding:5px 6px 8px;background:#fff9ef;min-width:0}.spelling-word-panel small{font-size:9px;letter-spacing:1.4px;color:#6f8b73;font-weight:900}.spelling-word{font-size:var(--word-font,34px);line-height:1.1;font-weight:1000;overflow-wrap:anywhere;color:#204e49;margin:3px 0}.spelling-word mark{background:#ffe5a4;color:#955e34;border-radius:7px;padding:0 3px}.spelling-gap{color:#c18557;padding:0 3px}.spelling-word-panel p{font-size:11px;line-height:15px;min-height:15px;margin:5px 0 0;color:#786e5d}.river-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:22px;min-height:0;background:#82c8c5;transform:translateX(var(--shake,0px))}.river-strip{position:absolute;left:0;top:0;width:100%;will-change:transform}.river-strip>svg{display:block;width:100%;height:auto;aspect-ratio:1/2}.river-sheen{position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 30%,#ffffff0a 50%,transparent 65%)}.river-progress{position:absolute;top:0;left:0;height:4px;background:#fff5c0aa;z-index:1}.spelling-plane,.plane-shadow{position:absolute;width:55px;height:72px;z-index:4;transform:translate(-50%,-50%) rotate(var(--bank,0deg));transform-origin:50% 65%;transition:transform .15s;pointer-events:none}.spelling-plane>svg,.plane-shadow>svg{width:100%;height:100%}.plane-shadow{margin-left:10px;margin-top:13px;filter:brightness(.3) blur(2px);z-index:2;opacity:.18}.plane-wake{position:absolute;top:90%;left:40%;width:20%;height:24px;border-radius:0 0 50% 50%;background:linear-gradient(#e1f5dc66,transparent);z-index:-1}.spelling-gates{position:absolute;left:0;right:0;height:0;z-index:3}.spelling-gate{position:absolute;width:22%;height:56px;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:3px;background:#fff8e8;border:3px solid #d0a66c;border-radius:15px;box-shadow:0 5px #417f8140,0 0 0 4px #fff9de4d;color:#1d514f}.spelling-gate b{font-size:30px;font-weight:1000;line-height:1}.spelling-gate i{position:absolute;top:-7px;bottom:-7px;width:5px;background:#bd8d59;border:1px solid #f6d7a1;border-radius:4px;left:-3px}.spelling-gate i:last-child{left:auto;right:-3px}.effect-success .spelling-gates{filter:drop-shadow(0 0 9px #ffec9d)}.spelling-explosion{position:absolute;width:180px;height:180px;transform:translate(-50%,-50%);z-index:6;pointer-events:none}.spelling-blast{width:100%;height:100%;overflow:visible}.blast-smoke{fill:#857c6e}.flight-overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:14px 18px;background:#fff9efed;gap:8px}.flight-overlay h2{font-size:24px;line-height:1.15}.flight-overlay p{font-size:12px;line-height:1.45;margin:0;max-width:340px;overflow-wrap:anywhere}.flight-overlay .primary,.flight-overlay .secondary{min-height:44px;padding:10px 20px}.flight-label{font-size:9px;letter-spacing:1.5px;color:#789375;font-weight:900}.flight-countdown{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff8e755;color:#fffdf0;text-shadow:0 2px 7px #4c797c88}.flight-countdown b{font-size:72px;line-height:1.1}.flight-countdown span{font-size:13px;font-weight:900}.flight-controls{padding:6px 4px 0}.flight-controls>p{text-align:center;font-size:10px;color:#7c8069;margin:0 0 5px}.flight-controls>div{display:grid;grid-template-columns:1fr 24px 1fr;align-items:center;gap:6px}.flight-controls button{height:58px;border-radius:18px;background:#e1e9d7;box-shadow:0 3px #bccdae;color:#295f52;font-size:30px;font-weight:1000;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.flight-controls button span{font-size:14px;vertical-align:middle}.flight-controls button:active{background:#c8dcbb;transform:translateY(2px)}.flight-compass{font-size:21px;color:#d5b57d;text-align:center}.flight-medal{font-size:34px}.flight-result strong{font-size:28px}.flight-result button{width:100%;max-width:310px}.word-settings{padding-bottom:20px}.word-settings header{margin:20px 0}.word-settings header p{font-size:13px}.word-settings form{padding:18px;background:#fffdf8;border:1px solid #e5dac5;border-radius:20px;scroll-margin-top:12px}.word-settings label{display:grid;gap:5px;font-size:13px;font-weight:900;margin:12px 0}.word-settings input:not([type=checkbox]),.word-settings select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #d9d6bd;border-radius:12px;background:#fffefa;font-size:16px}.word-settings .word-active{display:flex;align-items:center;gap:10px}.word-active input{width:20px;height:20px}.word-hint{font-size:12px;color:#7d7764}.word-preview{text-align:center;padding:14px;background:#edf0dd;border-radius:14px;display:grid;gap:7px}.word-preview strong{font-size:26px;overflow-wrap:anywhere}.word-preview small,.word-preview span{font-size:11px;color:#74816b}#spellingWordError{font-size:13px;color:#a55843}.spelling-catalogue{margin-top:24px}.spelling-word-row{display:flex;align-items:center;gap:7px;padding:13px 0;border-bottom:1px solid #e4decf}.spelling-word-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.spelling-word-row b,.spelling-word-row span,.spelling-word-row small{display:block}.spelling-word-row span{font-size:12px;color:#74816d}.spelling-word-row small{font-size:10px}.spelling-word-row button{font-size:11px;padding:9px 10px;min-height:40px}.spelling-word-row.inactive{color:#868578}.word-settings .actions{flex-wrap:wrap;gap:8px}
@media(max-height:640px){.spelling-game{grid-template-rows:32px 26px auto minmax(110px,1fr) auto}.spelling-game .game-top{height:32px}.spelling-game .game-hud{height:26px}.spelling-word-panel{padding:3px 4px 6px}.spelling-word{font-size:min(var(--word-font,30px),30px)}.spelling-word-panel p{font-size:10px;line-height:13px;min-height:26px;margin-top:3px}.flight-controls button{height:50px}.flight-controls>p{font-size:9px;margin-bottom:3px}.flight-overlay{padding:10px;gap:7px}.flight-overlay h2{font-size:20px}.flight-overlay p{font-size:11px}.flight-result .flight-medal{font-size:24px}.flight-result strong{font-size:23px}.flight-result{gap:5px}.spelling-gate{height:48px}.spelling-gate b{font-size:28px}}
@media(min-width:700px){.spelling-game{grid-template-columns:1fr;max-width:640px}.spelling-plane,.plane-shadow{width:65px;height:85px}.flight-controls{max-width:440px;width:100%;margin:auto}.spelling-word-panel p{font-size:12px}.spelling-card-art{height:180px}}
@media(prefers-reduced-motion:reduce){.spelling-plane,.plane-shadow{transition:none}.river-stage{transform:none}.plane-wake{display:none}}
