.cloud-loading,.cloud-notice{padding:80px 24px;text-align:center;color:#46664a}.cloud-cover{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.cloud-map{position:relative;min-height:100dvh;background:#dcebb5 var(--cloud-map-art) center top/cover fixed no-repeat;padding-top:112px;padding-bottom:90px}.cloud-map-hud{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:40;width:min(940px,calc(100% - 28px));display:flex;align-items:center;gap:16px;padding:12px;background:#fffef7f5;box-shadow:0 5px 0 #71964916;border-radius:26px;backdrop-filter:blur(12px)}.cloud-map-hud>div:nth-child(2){flex:1;min-width:0}.cloud-map-hud small{display:block;font-size:12px;color:#708260;margin:2px 0 5px}.cloud-map-hud select{font:inherit;font-size:23px;font-weight:650;color:#31593d;padding:0;border:0;background:transparent;width:100%;max-width:540px}.cloud-map-hud .icon-btn{background:#edf3de;flex-shrink:0;border-radius:15px;width:46px;height:46px}.cloud-map-progress{text-align:right;font-size:16px;min-width:110px}.cloud-map-progress b{font-size:21px}.cloud-map-progress small{font-size:10px}.cloud-map-progress progress{height:5px;width:110px;display:block}.cloud-map-canvas{position:relative;max-width:1020px;margin:auto}.cloud-map-trail{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.cloud-trail-edge{stroke:#fff8df;stroke-width:32px;fill:none}.cloud-trail-road{stroke:#e3d69b;stroke-width:18px;fill:none}.cloud-map-stop{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;width:240px;gap:11px}.cloud-stop-title{font-size:14px;font-weight:650;max-width:240px;text-align:center;padding:8px 12px;background:#fffdece8;border-radius:13px;color:#456540}.cloud-stop-node{position:relative;width:84px;height:84px;border-radius:50%;background:#efefd3;border:6px solid #adb887;box-shadow:0 7px 0 #85996b;font-size:31px;font-weight:650;color:#85946c}.cloud-stop-node i{position:absolute;right:-11px;top:-9px;display:grid;place-items:center;background:#fffdef;border-radius:50%;width:29px;height:29px}.cloud-stop-node i .icon{width:16px}.cloud-map-stop.current .cloud-stop-node{background:#f993aa;color:#78394a;border-color:#8cbb58;box-shadow:0 7px 0 #366e39,0 0 0 8px #fffaddc9}.cloud-map-stop.completed .cloud-stop-node{background:#b4df79;border-color:#73b367;color:#365d34;box-shadow:0 7px 0 #41733c}.cloud-stop-play{font-size:15px;min-width:120px;min-height:44px;padding:10px 17px;white-space:nowrap}.cloud-map-actor{position:absolute;width:112px;height:112px;pointer-events:none}.cloud-map-actor img{width:100%;height:100%;object-fit:contain}.cloud-map-footer{position:fixed;bottom:0;inset-inline:0;z-index:35;text-align:center;padding:24px 16px 18px;background:linear-gradient(0deg,#f1f6dc 55%,#f1f6dc00);font-size:13px;color:#5b7b49;pointer-events:none}.cloud-player{min-height:calc(100dvh - 82px);display:flex;width:100%}.cloud-story-player{display:grid;grid-template-columns:minmax(0,38fr) minmax(0,62fr)}.cloud-story-scene{position:relative;min-height:calc(100dvh - 82px);background:#f3e7d3;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.cloud-scene{width:100%;display:block;object-fit:contain;max-height:calc(100dvh - 150px);background-repeat:no-repeat;background-size:cover;background-position:center}.cloud-story-scene>p{font-size:18px;text-align:center;padding:18px;margin:0;color:#536847}.cloud-play-space{width:100%;padding:26px 30px;display:flex;flex-direction:column;min-height:calc(100dvh - 82px)}.cloud-round-progress{display:flex;align-items:center;gap:16px;font-size:12px;color:#708267}.cloud-round-progress progress{flex:1;height:6px}.cloud-round-stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:350px;padding-block:35px}.cloud-helper{font-size:20px;color:#7f8b67;text-align:center;margin:0}.cloud-round-instruction{font-size:15px;color:#788268;margin:0}.cloud-round-stage .target-text{font-size:clamp(28px,4.3vw,50px);text-align:center;line-height:1.6;min-height:1em;width:100%;margin:0}.cloud-round-stage .target-text .correct{color:#426e41}.cloud-round-stage .target-text .wrong{color:#bb6575;text-decoration:underline}.cloud-typing{width:90%;resize:none;border:0;border-bottom:2px solid #8eaf65;background:transparent;outline:none;font:inherit;font-size:28px;line-height:1.5;text-align:center;min-height:54px;height:62px;padding:4px 8px}.cloud-typing:focus{border-color:#386b45}.cloud-check{font-size:13px;min-height:42px;background:#edf3e4}.cloud-hear{background:#fff;border:2px solid #7c9d58;min-height:48px;gap:8px}.cloud-round-stage .meaning-options{width:100%;max-width:640px;display:grid;gap:12px}.cloud-round-stage .meaning-choice{min-height:60px;padding:16px;border-radius:18px;background:white;color:#28513a;text-align:left;font:inherit;border:1px solid #dfe8d5}.cloud-media-status{color:#718165;font-size:13px;text-align:center;max-width:390px}.cloud-round-stage video{width:100%;max-height:45vh}.cloud-player .keyboard-guide{width:100%;max-width:1080px;margin:auto}.cloud-story-player .keyboard-guide .guide-key{min-width:0}.cloud-player .game-actions{margin-top:14px;justify-content:center}.cloud-player .game-actions button{min-height:44px}.cloud-progress{max-width:1150px;margin:auto}.cloud-progress>article:not(.home-title-card){display:flex;gap:20px;align-items:center;padding:18px;border-bottom:1px solid #dce5d4}.cloud-progress article>strong{flex:1}.cloud-progress article>span{font-size:13px;color:#718269}.cloud-progress .home-title-card{max-width:400px;margin:20px 0}.cloud-privacy{max-width:760px;margin:auto}.cloud-privacy p{line-height:1.8}.cloud-plans{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:25px 0}.cloud-plans>span{padding:22px;border:2px solid #dce7cc;border-radius:20px;background:#f2f7e6}.cloud-plans strong{display:block;font-size:31px;margin:12px 0}.cloud-plans small{color:#698544}#modal form{display:grid;gap:20px}#modal form label{display:grid;gap:10px;font-size:14px}#modal form input:not([type=checkbox]):not([type=range]):not([type=radio]):not([type=hidden]),#modal form select{padding:14px;border-radius:12px;border:1px solid #d2dfc4;font:inherit;background:#fff}#modal form .cloud-switch{display:flex;align-items:center;justify-content:space-between}.cloud-switch input{width:22px;height:22px;accent-color:#5c8641}#modal form .btn-primary{width:100%;min-height:48px}.cloud-google{width:100%;min-height:48px;background:#fff;border:1px solid #dce4d3;margin-block:12px}.app-footer button{font:inherit;font-size:12px;min-height:44px;color:inherit}progress{accent-color:#86aa5b}
@media(max-width:760px){.cloud-map-hud{gap:10px;padding:10px;top:8px;border-radius:22px}.cloud-map-hud select{font-size:18px}.cloud-map-hud small{font-size:10px}.cloud-map-progress{min-width:70px;font-size:13px}.cloud-map-progress progress{width:70px}.cloud-map-hud .icon-btn{width:42px;height:42px}.cloud-map-stop{width:180px}.cloud-stop-title{font-size:12px}.cloud-stop-node{width:74px;height:74px;font-size:27px}.cloud-map-actor{width:90px;height:90px;margin-left:15px}.cloud-player,.cloud-story-player{display:flex;flex-direction:column}.cloud-story-scene{min-height:0;max-height:36vh;flex-shrink:0;align-items:center}.cloud-story-scene .cloud-scene{max-height:33vh;object-fit:contain;width:auto;height:33vh;max-width:100%}.cloud-story-scene>p{display:none}.cloud-play-space{min-height:60vh;padding:18px 16px}.cloud-round-stage{padding-block:24px;min-height:260px;gap:14px}.cloud-round-stage .target-text{font-size:30px}.cloud-typing{font-size:24px;width:100%}.cloud-helper{font-size:17px}.cloud-round-instruction{font-size:13px}.cloud-player .keyboard-guide{display:none}.cloud-progress>article{gap:10px;flex-wrap:wrap}.cloud-progress article>strong{min-width:100%}.cloud-map{padding-top:105px}.cloud-map-stop.current .cloud-stop-play{font-size:14px;min-width:110px}.cloud-map-actor img{object-fit:contain}}
@media(prefers-reduced-motion:reduce){.cloud-map *{scroll-behavior:auto!important}.cloud-map-actor{animation:none!important}}

.btn-primary{background:#245a3f;color:#fff;border-radius:14px;min-height:44px;padding:12px 20px}.btn-primary:hover{background:#306c4c}.btn-primary:disabled{background:#dce5cf;color:#73856a}

.cloud-motion-frame{position:relative;width:100%;display:flex;justify-content:center;align-items:center}.cloud-motion-focus{position:absolute;width:24px;height:24px;border:2px solid #fff4b8;border-radius:50%;box-shadow:0 0 12px #fff3b8;transform:translate(-50%,-50%);pointer-events:none}.cloud-round-stage{min-height:280px;padding-block:25px}.cloud-story-scene .cloud-motion-frame{height:100%;max-height:calc(100dvh - 150px)}

.cloud-progress section{margin-block:32px}.cloud-progress-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.cloud-progress-cards .home-title-card{max-width:none;margin:0}.cloud-progress-filters{display:flex;gap:8px;overflow-x:auto;padding:8px 0 16px}.cloud-progress-filters .btn{flex-shrink:0;min-height:44px}.cloud-history-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid #dce5d4}.cloud-history-row>div{flex:1;min-width:0}.cloud-history-row strong{display:block}.cloud-history-row small{display:block;margin-top:6px;color:#6f8069;font-size:12px}.cloud-history-row>span{font-size:13px;color:#65775e}.cloud-review{padding:24px;border:1px solid #dce5d4;border-radius:22px;background:#fffef7}.cloud-account-actions{display:flex;gap:12px;justify-content:space-between;margin-top:24px;flex-wrap:wrap}.cloud-result-rounds{list-style:none;padding:0;max-height:45vh;overflow:auto}.cloud-result-rounds li{display:flex;gap:12px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #dce5d4;font-size:14px}.cloud-result-rounds li span{color:#65775e}#cloud-profile-status{font-size:14px;line-height:1.6;margin:0}#cloud-profile-status:empty{display:none}
@media(max-width:760px){.cloud-history-row{flex-wrap:wrap;gap:10px}.cloud-history-row>div{flex-basis:100%}.cloud-history-row .btn{min-height:44px}.cloud-review{padding:18px}.cloud-result-rounds li{flex-direction:column;gap:5px}}
.cloud-target-helper{font-size:14px;color:#7b8864;margin-bottom:-12px;text-align:center}
.cloud-helper-status{font-size:12px;color:#7b8864;text-align:center}

/* This dialog renders its heading and form directly, without the legacy content wrapper. */
#modal.game-settings-dialog{padding:28px;max-height:calc(100dvh - 40px)}
#modal.game-settings-dialog>h2{padding-right:38px;line-height:1.25}
#modal.game-settings-dialog .modal-close{width:36px;height:36px}
#modal.game-settings-dialog>.game-settings-tabs{display:flex;gap:8px;margin:24px 0;background:transparent;padding:0;border:0;position:static}
#modal.game-settings-dialog>.game-settings-tabs button{flex:1;min-width:0;min-height:44px;padding:10px 8px;font-size:14px}
#modal.game-settings-dialog [role=tab][aria-selected=true]{background:#d7eab0;color:#294a36;box-shadow:inset 0 1px 0 #effbd4,0 3px 0 #9eb770;font-weight:600}
#modal.game-settings-dialog form{gap:24px}
#modal.game-settings-dialog #cloud-settings-status:empty{display:none}
#modal.game-settings-dialog form>.btn-primary{margin-top:4px;border-radius:14px}
@media(max-width:760px){#modal.game-settings-dialog{padding:24px 20px calc(26px + var(--safe-bottom,0px));max-height:calc(100dvh - 16px)}#modal.game-settings-dialog>h2{font-size:25px}#modal.game-settings-dialog>.game-settings-tabs{gap:6px;margin:22px 0}#modal.game-settings-dialog>.game-settings-tabs button{font-size:13px}}

/* Every production popup owns the same padded surface, including loading/error states. */
#modal.cloud-dialog{width:min(460px,calc(100vw - 32px));max-width:460px;max-height:calc(100dvh - 40px);padding:28px;border:0;border-radius:28px;background:#fffef8;color:#294a36;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 24px 70px #2448332b,0 2px 0 #fff8}
#modal.cloud-dialog::backdrop{background:#233e2d66;backdrop-filter:blur(5px)}
#modal.cloud-dialog>.modal-close{position:absolute;right:16px;top:16px;width:44px;height:44px;border-radius:14px;background:#eef3e6;font-size:25px;line-height:1;display:grid;place-items:center}
#modal.cloud-dialog>h2{padding:0 46px 0 0;margin:0 0 24px;line-height:1.25;font-size:28px}
.cloud-dialog-body{display:flex;flex-direction:column;gap:20px;min-width:0}
.cloud-dialog-body>p,.cloud-dialog-body p[role=status]{font-size:14px;line-height:1.6}
.cloud-dialog-body p[role=status]:empty{display:none}
.cloud-dialog-body form{min-width:0}.cloud-dialog-body .cloud-auth-switch{font-size:13px;text-align:center}.cloud-auth-switch button,.cloud-plan-note button{color:#315f40;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:0 4px;font-weight:600}
.cloud-dialog-body .cloud-account-actions{margin-top:0;gap:8px}.cloud-dialog-body .cloud-account-actions>*{flex:1}.cloud-dialog-body .cloud-result-rounds{margin:0;max-height:42dvh}
#modal.game-settings-dialog .game-settings-tabs{display:flex;gap:8px;margin:0 0 4px;background:transparent;padding:0;border:0;position:static}
#modal.game-settings-dialog .game-settings-tabs button{flex:1;min-width:0;min-height:44px;padding:10px 8px;font-size:14px;border-radius:13px}
.cloud-setting-field{display:grid;gap:10px;font-size:14px}.cloud-helper-select{position:relative}.cloud-select-trigger{width:100%;min-height:54px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#f2f6e9;border:1px solid #d4e1c4;border-radius:16px;color:#31543a;box-shadow:0 2px 0 #d6e2c4;transition:background-color 120ms,box-shadow 120ms}
.cloud-select-trigger[aria-expanded=true]{background:#e7f1d7;border-color:#88aa63;box-shadow:0 0 0 3px #a5c67e33}.cloud-select-trigger svg{flex:none}.cloud-select-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.cloud-select-trigger small{margin-left:8px;color:#6d8060;font-size:12px}
.cloud-select-options{display:grid;gap:4px;padding:6px;margin-top:10px;border-radius:20px;background:#fff;border:1px solid #dce7cc;box-shadow:0 7px 18px #31583312;max-height:240px;overflow-y:auto}.cloud-select-options[hidden]{display:none}.cloud-select-options [role=option]{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:10px 13px;min-height:48px;border-radius:13px;color:#355b3d;transition:background-color 120ms}.cloud-select-options [role=option] small{display:block;color:#7b8b6c;font-size:11px;margin-top:1px}.cloud-select-options [role=option] i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;color:#3c7044;visibility:hidden}.cloud-select-options [role=option][aria-selected=true]{background:#edf5e0;font-weight:600}.cloud-select-options [role=option][aria-selected=true] i{visibility:visible}.cloud-select-options [role=option].active,.cloud-select-options [role=option]:hover{background:#dcebbb}.cloud-select-options [role=option]:active{transform:scale(.96)}
#modal form .cloud-plans{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0;padding:0;border:0;min-width:0}#modal form .cloud-plan-option{position:relative;display:flex;flex-direction:column;gap:10px;padding:18px 14px;border-radius:20px;background:#f3f6ec;border:2px solid #e1e8d7;cursor:pointer;min-width:0;color:#3c5d40;transition:background-color 120ms,border-color 120ms}.cloud-plan-option input{appearance:none;position:absolute;inset:0;width:100%;height:100%;margin:0;cursor:pointer;border-radius:18px}.cloud-plan-option:has(input:checked){background:#e9f3d9;border-color:#7ba459;box-shadow:0 3px 0 #a9c388}.cloud-plan-option:has(input:focus-visible){outline:3px solid #557e3d;outline-offset:4px}.cloud-plan-name{font-size:15px;font-weight:600}.cloud-plan-name small{display:block;font-size:10px;color:#6f7f50;margin-top:3px}.cloud-plan-option strong{font-size:29px;line-height:1.2;letter-spacing:-1px}.cloud-plan-period{font-size:12px;color:#78866b}.cloud-plan-option i{position:absolute;right:10px;bottom:12px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#719b51;color:#fff;visibility:hidden}.cloud-plan-option i .icon{width:15px}.cloud-plan-option:has(input:checked) i{visibility:visible}.cloud-plan-note{font-size:12px;line-height:1.6;text-align:center;color:#7a876f}
@media(max-width:760px){#modal.cloud-dialog{width:calc(100vw - 24px);padding:26px 22px calc(26px + var(--safe-bottom,0px));border-radius:26px;max-height:calc(100dvh - 24px)}#modal.cloud-dialog>h2{font-size:25px;margin-bottom:22px}.cloud-dialog-body{gap:18px}#modal.game-settings-dialog .game-settings-tabs{gap:6px}#modal.game-settings-dialog .game-settings-tabs button{font-size:13px;padding-inline:6px}.cloud-plan-option strong{font-size:27px}}
@media(prefers-reduced-motion:reduce){.cloud-select-trigger,.cloud-select-options [role=option],#modal form .cloud-plan-option{transition:none}.cloud-select-options [role=option]:active{transform:none}}
#modal form .cloud-plan-option input[type=radio]{appearance:none;background:transparent;border:0;padding:0;border-radius:18px}

/* Shared outer edges for the header, demo, game menu and public landing copy. */
.header .header-inner{width:100%;margin-inline:auto;max-width:1480px;padding-inline:40px;display:flex;align-items:center}
.header .header-right{display:flex;align-items:center;flex-shrink:0}
.header .language-btn,.header .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;line-height:1.2}
.cloud-demo-main{width:100%;max-width:1480px;margin-inline:auto;padding:16px 40px 0}
.cloud-demo{width:100%}.cloud-demo-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 0 12px;color:#62745b;font-size:13px}.cloud-demo-bar>span{display:flex;align-items:center;gap:9px}.cloud-demo-bar .btn{min-width:44px;min-height:44px;background:#edf2e4;border-radius:14px}
.cloud-demo .cloud-player{min-height:0}.cloud-demo .cloud-play-space{padding:0;min-height:calc(100svh - 180px)}.cloud-demo .cloud-round-stage{min-height:240px;padding-block:24px;gap:14px}.cloud-demo .cloud-round-stage .target-text{font-size:clamp(30px,4.4vw,58px)}.cloud-demo .cloud-typing{max-width:900px}.cloud-demo .keyboard-guide{max-width:1200px}.cloud-demo .game-actions{margin-bottom:20px}
#app[data-home-view=demo] .app-footer{display:none}
#app[data-home-view=demo]{padding-top:80px}#app[data-home-view=demo] .header{position:fixed;inset:0 0 auto;z-index:40}
.home-seo{width:100%;max-width:1480px;margin:0 auto;padding:80px 40px 30px;color:#294c38}.home-seo[hidden]{display:none}.home-seo-intro{max-width:780px;margin-bottom:52px}.home-seo-kicker{color:#6e8b57;font-size:13px;font-weight:600;margin-bottom:16px}.home-seo h1{font-size:clamp(34px,4vw,52px);line-height:1.12;margin-bottom:22px}.home-seo p{font-size:16px;line-height:1.8;color:#63745d;margin-top:14px}.home-seo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 64px}.home-seo-grid article{border-top:1px solid #dce5d2;padding-top:24px}.home-seo-number{display:block;color:#80996a;font-size:12px;letter-spacing:.08em;margin-bottom:12px}.home-seo h2{font-size:28px;line-height:1.25}.home-seo-grid a{display:inline-flex;min-height:44px;align-items:center;margin-top:12px;color:#315c40;font-weight:600}.home-seo-support{margin-top:60px;padding:32px 36px;border-radius:26px;background:#ecf2e0}.home-seo-support p{max-width:1020px}.home-seo-faq{margin-top:60px;max-width:1000px}.home-seo-faq>div{margin-top:24px}.home-seo-faq details{border-bottom:1px solid #dce5d2;padding:20px 0}.home-seo-faq summary{cursor:pointer;font-size:18px;font-weight:600;min-height:32px}.home-seo-faq details p{padding:0 24px 8px 0;font-size:15px}.home-seo-footer{display:flex;gap:18px;align-items:center;margin-top:70px;padding-top:24px;border-top:1px solid #dce5d2;font-size:12px;color:#73816a}.home-seo-footer a:first-child{font-size:20px;font-weight:650;color:#294c38}.home-seo-footer a:last-child{margin-left:auto;min-height:44px;display:flex;align-items:center}
@media(max-width:1024px){.header .header-inner,.cloud-demo-main,.home-seo{padding-inline:24px}}
@media(max-width:760px){.header .header-inner{padding-inline:16px}.cloud-demo-main{padding:12px 16px 0}.cloud-demo .cloud-play-space{min-height:calc(100svh - 150px)}.cloud-demo .cloud-round-stage{min-height:300px;gap:20px}.cloud-demo .target-text{line-height:1.4}.cloud-demo .cloud-typing{font-size:24px}.home-seo{padding:50px 16px 24px}.home-seo-intro{margin-bottom:32px}.home-seo-grid{grid-template-columns:1fr;gap:30px}.home-seo h2{font-size:25px}.home-seo p{font-size:15px}.home-seo-support{padding:26px 22px;margin-top:40px}.home-seo-faq{margin-top:40px}.home-seo-faq summary{font-size:16px}.home-seo-footer{margin-top:44px}}
@media(max-width:760px){#app[data-home-view=demo]{padding-top:calc(64px + var(--safe-top,0px))}}

/* Discovery is directly below the first-visit demo, with shared page edges. */
.cloud-demo-main>.home-menu{padding-top:52px;padding-bottom:0}
.cloud-hear[data-voice-state=playing]{background:#e7f1d8;color:#315f3a}
.cloud-hear[data-voice-state=blocked]{box-shadow:0 0 0 2px #cbdcae}

#cloud-keyboard-fields{display:grid;gap:20px}.cloud-keyboard-preview{display:grid;gap:4px;padding:12px;background:#e8eedb;border-radius:16px;overflow:hidden;direction:ltr}.cloud-keyboard-preview>div{display:flex;justify-content:center;gap:3px}.cloud-keyboard-preview span{flex:1;max-width:34px;min-width:0;min-height:26px;display:grid;place-items:center;border-radius:5px;background:#fffdf5;box-shadow:0 2px 0 #c7d1b8;font-size:12px}.cloud-keyboard-note{font-size:12px;line-height:1.6;color:#708164}.cloud-keyboard-preview>div:nth-child(3){padding-inline:8px}.cloud-keyboard-preview>div:nth-child(4){padding-inline:18px}.guide-key .key-native{font-size:.8em;line-height:1}.guide-key .key-english{font-size:.65em;color:#87947a;line-height:1}.guide-key.finger-thumb{font-size:10px}.guide-key[data-action=altgr][aria-pressed=true]{background:#d9ccec}.guide-keyboard{direction:ltr}
@media(max-width:760px){#modal.game-settings-dialog .game-settings-tabs button{font-size:11px;padding:10px 5px}.cloud-keyboard-preview{padding:8px}.cloud-keyboard-preview span{font-size:10px;min-height:24px}}

#cloud-settings input[type=range],#cloud-settings input[type=checkbox]{accent-color:#6b8f3c}

/* Acknowledgement belongs above the exercise; stars are decorative, not a score. */
.cloud-round-celebration{min-height:68px;display:flex;align-items:center;justify-content:center;gap:14px;color:#426e41;pointer-events:none}
.cloud-round-celebration strong{font-size:25px;line-height:1.2;font-weight:700}
.cloud-celebration-stars{display:flex;align-items:center;gap:5px;color:#b68b28;font-size:22px;line-height:1;text-shadow:0 2px 0 #f6e8b5}
.cloud-celebration-stars b{font-size:32px;transform:translateY(-4px)}
.cloud-round-celebration.is-visible{animation:cloud-success-pop 140ms ease-out both}
@keyframes cloud-success-pop{from{opacity:0;transform:translateY(5px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:760px){.cloud-round-celebration{min-height:56px;gap:10px}.cloud-round-celebration strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.cloud-round-celebration.is-visible{animation:none}}

/* Earned micro-rewards stay above the task; no interstitial or layout jump. */
.cloud-round-celebration .cloud-streak{display:inline-flex;align-items:center;min-height:26px;padding:4px 10px;border:1px solid #d8e5bd;border-radius:20px;background:#edf5dc;color:#5c7638;font-size:12px;font-weight:650;white-space:nowrap}
.cloud-round-celebration.is-visible .cloud-celebration-stars{animation:reward-star-bloom 240ms cubic-bezier(.18,.75,.3,1.2) both}.cloud-round-progress progress{accent-color:#7ca559}
.cloud-round-stage{animation:round-settle 150ms ease-out both}.cloud-sound-previews{display:flex;flex-wrap:wrap;gap:8px}.cloud-sound-previews .btn{flex:1;min-height:42px;background:#edf2d9;color:#34573d;white-space:nowrap}.cloud-sound-note{display:block;color:#687d56;line-height:1.5}
@keyframes reward-star-bloom{0%{transform:scale(.78) rotate(-6deg);opacity:.3}65%{transform:scale(1.12) rotate(2deg)}100%{transform:scale(1);opacity:1}}@keyframes round-settle{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:760px){.cloud-round-celebration .cloud-streak{font-size:11px;padding:4px 8px}.cloud-sound-previews .btn{font-size:12px}}
.less-motion .cloud-round-stage,.less-motion .cloud-round-celebration .cloud-celebration-stars{animation:none!important}@media(prefers-reduced-motion:reduce){.cloud-round-stage,.cloud-round-celebration .cloud-celebration-stars{animation:none!important}}

/* Compact four-channel mixer, using the game's cream and moss surfaces. */
#modal.cloud-dialog.game-settings-dialog{width:min(620px,calc(100vw - 32px));max-width:620px;border:4px solid #6d8d4c;border-radius:28px;background-color:#faf8e8;background-image:radial-gradient(#857f3b12 .6px,transparent .8px),linear-gradient(135deg,#fffbed,#f3f3da);background-size:4px 4px,100% 100%;box-shadow:inset 0 0 0 2px #fffce6,0 7px 0 #3d603b,0 24px 65px #18382238}
#modal.game-settings-dialog .game-settings-tabs{display:flex;gap:8px;margin:20px 0 18px;padding:0;background:none;border:0;position:static}#modal.game-settings-dialog .game-settings-tabs button{flex:1;min-height:42px;min-width:0;padding:9px 7px;font-size:13px}
#modal.game-settings-dialog #cloud-settings{gap:14px}.cloud-mixer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cloud-audio-channel{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #dbe3c5;border-radius:17px;background:#fffef58f;box-shadow:0 2px 0 #d6dec0}.cloud-channel-level{display:grid;gap:8px!important;font-size:12px;color:#60754f}.cloud-mixer-master .cloud-channel-level{font-size:14px;font-weight:600}.cloud-channel-level input[type=range]{width:100%;margin:0;accent-color:#78964c}.cloud-audio-channel .cloud-switch{font-size:13px;gap:10px;min-height:26px;display:flex;align-items:center;justify-content:space-between}.cloud-audio-channel .cloud-switch input{width:34px!important;height:22px;flex:0 0 34px;appearance:none;background:#dce2ce;border:1px solid #bbc8a2;border-radius:20px;padding:2px!important;cursor:pointer;margin:0}.cloud-audio-channel .cloud-switch input:before{content:'';display:block;width:16px;height:16px;border-radius:50%;background:#fffdf2;box-shadow:0 1px 2px #314a2840;transition:transform 120ms ease}.cloud-audio-channel .cloud-switch input:checked{background:#73984e;border-color:#648943}.cloud-audio-channel .cloud-switch input:checked:before{transform:translateX(12px)}.cloud-audio-channel .cloud-switch input:focus-visible{outline:3px solid #a4c77a;outline-offset:3px}.cloud-audio-channel .cloud-channel-level{margin-top:auto}.cloud-voice-channel .cloud-switch{min-height:22px}.cloud-sound-previews .btn{box-shadow:0 2px 0 #c8d4ad;font-size:13px}.cloud-sound-note{font-size:11px}
@media(max-width:500px){#modal.cloud-dialog.game-settings-dialog{padding:20px 16px 22px}.cloud-mixer-grid{gap:8px}.cloud-audio-channel{padding:11px 9px;border-radius:13px}.cloud-audio-channel .cloud-switch{font-size:11px;gap:4px}.cloud-channel-level{font-size:10px}.cloud-audio-channel .cloud-switch input{width:30px!important;flex-basis:30px;height:20px}.cloud-audio-channel .cloud-switch input:before{width:14px;height:14px}.cloud-audio-channel .cloud-switch input:checked:before{transform:translateX(10px)}.cloud-sound-previews .btn{padding:10px 8px;font-size:11px}.cloud-sound-note{font-size:10px}}

/* A suggestion between levels, never a blocking dialog. */
.cloud-guest-save{display:flex;align-items:center;gap:20px;max-width:720px;margin:0 auto 24px;padding:18px 22px;background:#fffdf0;border:2px solid #dce8ba;border-radius:22px;box-shadow:0 5px 0 #d7e1c6;text-align:left;color:#28513a}
.cloud-guest-save strong{font-size:18px}.cloud-guest-save p{font-size:12px;line-height:1.5;margin:6px 0 0;max-width:420px}.cloud-guest-save-actions{display:grid;gap:6px;flex-shrink:0}.cloud-guest-save .btn{min-height:40px;font-size:13px;padding:8px 14px;white-space:nowrap}.cloud-guest-save-actions .btn:not(.btn-primary){background:transparent}
.cloud-map-footer .cloud-guest-save{margin-bottom:18px;pointer-events:auto}.cloud-map-stop.current{scroll-margin-block:150px 240px}
@media(max-width:600px){.cloud-guest-save{gap:12px;padding:12px 14px;max-width:100%;flex-wrap:wrap}.cloud-guest-save strong{font-size:16px}.cloud-guest-save p{font-size:11px}.cloud-guest-save-actions{display:flex;width:100%}.cloud-guest-save-actions .btn{flex:1}.cloud-map-footer:has(.cloud-guest-save){padding:12px}}
.cloud-track-choices{display:grid;gap:10px;margin-top:18px}
.cloud-track-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:15px 13px;text-align:left;background:#f4f5ea;border:1px solid #dce5ce;border-radius:15px;color:#244e37;cursor:pointer;transition:background .15s,transform .15s}
.cloud-track-choice:hover{background:#e7efd9;transform:translateY(-1px)}
.cloud-track-choice.is-practice{background:#e8f1da;border-color:#b8cd9e;box-shadow:0 3px 0 #cfddbc}
.cloud-track-choice strong,.cloud-track-choice small,.cloud-track-count{display:block}
.cloud-track-choice strong{font-size:15px;line-height:1.4}
.cloud-track-choice small{font-size:12px;line-height:1.6;color:#627558;margin-top:4px}
.cloud-track-count{font-size:11px;line-height:1.6;color:#627558;margin-top:6px}
.cloud-track-choice b{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}
.cloud-track-choice b svg{width:14px;height:14px}
.cloud-track-card .home-title-copy>p{font-size:12px;line-height:1.5}
.home-shelf-heading p{font-size:14px;line-height:1.6;color:#627558;margin:8px 0 0}
.cloud-practice-break{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px;gap:14px}
.cloud-practice-break h1,.cloud-practice-break p{margin:0}
.cloud-practice-break small{color:#637459}
.cloud-practice-title{text-align:center;color:#637459;font-size:13px;margin:16px 20px 0}
.cloud-practice-break-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.cloud-round-instruction{white-space:pre-line}
@media(max-width:600px){.cloud-track-choice{padding:13px 12px}.cloud-track-choice strong{font-size:14px}.cloud-track-choice small{font-size:11px}.cloud-practice-break h1{font-size:30px}}
/* Typing Speed: an uninterrupted word sprint, in TypeMelon's palette. */
.home-mode-card .home-title-art.home-mode-speed{background:#20212e!important;padding:0}.mode-speed-preview{display:block;width:100%;height:100%;max-width:none}

.speed-header{display:flex}.speed-header>.game-header-title{position:static;transform:none;flex:1;text-align:center}.speed-header>.icon-btn:last-child{margin-left:auto}.speed-header>.logo{flex-shrink:0}

/* Brief completed-sentence preview; all words appear together. */
.cloud-round-stage .cloud-spelling-review{width:min(100%,760px);margin:12px auto;padding:20px 10px;text-align:center}
.spelling-word-cards{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
.spelling-word-card{display:flex;flex-direction:column;align-items:center;gap:7px;max-width:100%;line-height:1.25}
.spelling-word-card strong{padding:7px 13px;border-radius:10px;background:var(--preview-bg);color:var(--preview-ink);font-size:clamp(23px,3.5vw,34px);font-weight:650;overflow-wrap:anywhere;box-shadow:0 3px 0 color-mix(in srgb,var(--preview-ink) 20%,transparent)}
.spelling-word-card small{max-width:150px;font-size:12px;color:#687c58;overflow-wrap:anywhere}
.spelling-sentence-meaning{font-size:17px;line-height:1.6;margin:18px 0 0!important;color:#4e6f45}
@media(max-width:600px){.cloud-round-stage .cloud-spelling-review{padding:14px 4px}.spelling-word-cards{gap:7px}.spelling-word-card strong{padding:6px 10px;font-size:24px}.spelling-word-card small{font-size:11px}.spelling-sentence-meaning{font-size:15px}}


.cloud-round-stage .cloud-typing[hidden]{display:none!important}
.speed-word-helper{min-height:2.5rem;display:flex;align-items:center;gap:.75rem;color:#537343;font-size:1rem;margin:0 0 .65rem}
.speed-word-helper:empty{display:none}
.speed-word-helper small,.cloud-context-helper small{font-size:.68rem;color:#7e8b72;letter-spacing:.03em}
.speed-instruction-helper{font-size:.85rem;line-height:1.6;color:#668253;margin:0 0 .3rem}
.speed-page>.keyboard-guide{margin-top:1rem}
.cloud-context-helper{color:#668253;font-size:.95rem;line-height:1.65;margin:.4rem auto 1rem;max-width:44rem}
.cloud-context-helper small{display:block}
.speed-feedback:empty{display:none}
.cloud-round-stage .target-text .caret{border-bottom:3px solid #315e3d;padding-bottom:2px}
.cloud-round-stage .target-text .typing-space{display:inline-block;min-width:.3em;white-space:pre}
.cloud-annotated-word{display:inline-flex;flex-direction:column;align-items:center;vertical-align:bottom;line-height:1.4;max-width:100%}
.cloud-annotated-word>span{white-space:nowrap}
.cloud-word-subtitle{font-family:var(--body,Arial,sans-serif);font-size:12px;line-height:1.4;letter-spacing:0;color:#708467;max-width:15em;text-align:center;margin-bottom:4px;white-space:normal;font-weight:400}
.spelling-word-card small{order:-1;min-height:1.4em;max-width:170px;line-height:1.4}

/* Typing Speed uses watermelon pink for focus and mint green for progress. */
body:has(.speed-page){background:#20212e;color:#e5e6ee;color-scheme:dark}
body:has(.speed-page) #app{min-height:100dvh;background:#20212e}
.speed-header{display:flex;max-width:1100px;min-height:74px;margin:0 auto;padding:14px 28px;gap:20px;background:transparent;border-color:#363747;color:#e5e6ee}
.speed-header>.game-header-title{position:static;transform:none;flex:1;text-align:center;font-size:15px;font-weight:500;color:#e5e6ee;max-width:none}
.speed-header>.logo{color:#e5e6ee;font-size:20px}
.speed-header>.icon-btn{background:transparent;color:#aeb2c7;border:1px solid #3c3e52;border-radius:10px;width:38px;height:38px}
.speed-header>.icon-btn:hover{color:#ff8ca6;background:#2e3041}
.speed-header>.icon-btn:last-child{margin-left:auto}
.speed-page{max-width:1000px;margin:30px auto 60px;padding:0 30px;color:#e5e6ee}
.speed-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px;color:#aeb2c7}
.speed-intro h1{font-size:14px;line-height:1.5;font-weight:400;letter-spacing:0;margin:0;color:#aeb2c7}
.speed-level{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#aeb2c7}
.speed-kicker{font-size:11px;letter-spacing:.14em;font-weight:600;color:#8fddb0;margin:0 0 14px}
.speed-arena{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.speed-input-area{position:relative;cursor:text;margin:0;padding:14px 0 20px;min-height:150px;border-radius:0}
.speed-input-area:focus-within{outline:none}
.speed-words{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px .65em;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(24px,3vw,32px);font-weight:500;line-height:1.5;letter-spacing:-.025em;overflow-wrap:anywhere;color:#aaaec0}
.speed-word{display:inline-flex;flex-direction:column;position:relative;word-spacing:normal;max-width:100%}
.speed-word-text{display:block;white-space:nowrap}
.speed-word-gloss{display:block;max-width:100%;font-family:var(--body),sans-serif;font-size:11px;font-weight:400;line-height:1.5;color:#aeb2c7;letter-spacing:0;margin-bottom:5px}
.speed-word.is-current .speed-word-gloss{color:#ff8ca6}
.speed-waiting{color:#aaaec0}
.speed-word.is-current .speed-waiting{color:#e5e6ee}
.speed-correct{color:#8fddb0}
.speed-wrong{color:#ff7770;text-decoration:underline;text-decoration-color:#ff7770;text-underline-offset:.2em;background:transparent}
.speed-word.has-error .speed-word-text{box-shadow:0 2px #ff7770}
.speed-caret{position:relative}
.speed-caret::after{content:'';position:absolute;left:0;bottom:-.12em;width:100%;min-width:.6em;height:3px;border-radius:2px;background:#ff8ca6}
.speed-caret::before{content:'';position:absolute;top:.16em;left:0;width:2px;height:1em;background:#ff8ca6;animation:speed-caret-blink 1s step-end infinite}
.end-caret{display:inline-block;width:0;height:1em;vertical-align:baseline}
.speed-capture{position:absolute;inset:0;width:100%;height:100%;opacity:0;resize:none;border:0;padding:0;z-index:2;cursor:text;font-size:18px;overflow:hidden}
.speed-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:400px;max-width:100%;gap:0;margin:0}
.speed-stat{display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:3px;min-width:0;padding:0 14px}
.speed-stat+.speed-stat{border-left:1px solid #3b3d50}
.speed-stat dt{font-size:10px;line-height:1.4;color:#aeb2c7}
.speed-stat dd{margin:0;font-size:20px;font-weight:500;letter-spacing:-.04em;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap;color:#e5e6ee}
.speed-stat-primary dd{color:#ff8ca6}
.speed-arena progress{display:block;width:100%;height:2px;border:0;border-radius:0;appearance:none;background:#3b3d50;color:#8fddb0}
.speed-arena progress::-webkit-progress-bar{background:#3b3d50}
.speed-arena progress::-webkit-progress-value{background:#8fddb0}
.speed-arena progress::-moz-progress-bar{background:#8fddb0}



.speed-page .btn{background:#2b2d3e;color:#e5e6ee;border:1px solid #44465c;box-shadow:none;border-radius:9px}
.speed-page .btn:hover{background:#37394c;border-color:#7d7f93}
.speed-page .btn-primary{background:#ff8ca6;border-color:#ff8ca6;color:#20212e}
.speed-page .btn-primary:hover{background:#ffadc0;border-color:#ffadc0}

.speed-feedback{min-height:18px;margin:6px 0;font-size:12px;line-height:1.5;color:#ff7770}
.speed-tools{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-top:10px}
.speed-tools>.btn{justify-self:start}
.speed-tools>.btn{font-size:12px;min-height:34px;padding:7px 11px;display:flex;align-items:center;gap:8px;background:transparent}

.speed-pause-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#20212ee8;backdrop-filter:blur(5px);z-index:3}
.speed-page>.keyboard-guide{margin-top:16px}
.speed-page .guide-keyboard{background:#242634;border:1px solid #3b3d50;box-shadow:none;border-radius:10px;padding:9px}
.speed-page .guide-key{background:#2f3143;border-color:#45475c;color:#c0c3d4;box-shadow:0 2px 0 #191a25;height:32px;font-size:12px}
.speed-page .guide-key.decorative,.speed-page .guide-key.spacebar{background:#292b3b;color:#aeb2c7;font-size:9px}
.speed-page .guide-key .key-native{color:#c0c3d4}
.speed-page .guide-key .key-legend,.speed-page .guide-key .key-english{color:#aeb2c7}
.speed-page .guide-keyboard .guide-key.next-key{background:#8fddb0!important;color:#173b2a!important;border-color:#8fddb0!important;outline-color:#8fddb0!important;box-shadow:0 2px 0 #4b9970!important}
.speed-page .guide-key.next-key .key-legend,.speed-page .guide-key.next-key .key-english{color:#245238}
.speed-page .guide-key.pressed{background:#ff8ca6;color:#20212e}
.speed-page .keyboard-hands-overlay{mix-blend-mode:normal;filter:brightness(2);opacity:.85}
.speed-page .finger-tip,.speed-page .guide-layout{color:#aeb2c7}
.speed-page .finger-guide{min-height:26px;margin-top:7px}
.speed-results{text-align:center;max-width:860px;margin-top:40px}
.speed-results h1{font-size:clamp(24px,4vw,34px);letter-spacing:-.03em;color:#e5e6ee}
.speed-result-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:min(100%,600px);margin:36px auto 32px}
.speed-result-numbers>div{display:grid;gap:12px;align-content:start;padding:0 16px;min-width:0}
.speed-result-numbers>div+div{border-left:1px solid #3b3d50}
.speed-result-numbers strong{font-size:clamp(32px,5vw,54px);font-weight:600;letter-spacing:-.04em;line-height:1.1;font-variant-numeric:tabular-nums;color:#e5e6ee;white-space:nowrap}
.speed-result-numbers>div:first-child strong{color:#8fddb0}
.speed-result-numbers small{font-size:.42em;margin-left:4px;color:#aeb2c7}
.speed-result-numbers span{font-size:12px;color:#aeb2c7}
.speed-graph{text-align:left;padding:20px 0 12px;border-top:1px solid #3b3d50;border-bottom:1px solid #3b3d50;margin:24px 0}
.speed-graph figcaption{font-size:11px;letter-spacing:.12em;font-weight:600;display:flex;justify-content:space-between;gap:10px;margin-bottom:12px;color:#e5e6ee}
.speed-graph figcaption span{letter-spacing:0;font-weight:400;color:#aeb2c7}
.speed-graph svg{display:block;width:100%;height:auto;overflow:visible}
.speed-grid{stroke:#3b3d50;stroke-width:1;fill:none}
.speed-chart-line{stroke:#8fddb0;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.speed-graph text{font-size:11px;fill:#aeb2c7}
.speed-result-note,.speed-next-note{font-size:12px;line-height:1.8;color:#aeb2c7;max-width:580px;margin:20px auto 0}
.speed-result-actions{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-top:32px}
.speed-result-actions .btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:12px 20px;line-height:1.3}
#app .speed-page.speed-results .speed-result-actions .btn-primary{background:#8fddb0;border-color:#8fddb0;color:#183a2b}
#app .speed-page.speed-results .speed-result-actions .btn-primary:hover{background:#a9e8c3;border-color:#a9e8c3}
.speed-result-actions+.speed-next-note{margin-top:20px}
.speed-next-countdown{width:min(100%,390px);margin:24px auto 0}
.speed-next-countdown progress{display:block;width:100%;height:5px;border:0;border-radius:8px;overflow:hidden;appearance:none;background:#3b3d50;color:#8fddb0}
.speed-next-countdown progress::-webkit-progress-bar{background:#3b3d50;border-radius:8px}
.speed-next-countdown progress::-webkit-progress-value{background:#8fddb0;border-radius:8px}
.speed-next-countdown progress::-moz-progress-bar{background:#8fddb0;border-radius:8px}
.speed-next-countdown+.speed-next-note{margin-top:12px}
@media(max-width:640px){.speed-results .speed-result-numbers{gap:0}.speed-results .speed-result-numbers>div{padding:0 8px}.speed-results .speed-result-numbers strong{font-size:32px}.speed-results .speed-result-numbers small{font-size:.42em}.speed-results .speed-result-actions{gap:10px;margin-top:28px}.speed-results .speed-result-actions .btn{padding:12px 16px}.speed-results .speed-result-note{max-width:310px}}
.speed-last-result{margin-top:28px;border-top:1px solid #3b3d50;padding-top:18px;font-size:13px}
.speed-last-result summary{cursor:pointer;color:#aeb2c7}
.speed-last-result .speed-result-numbers strong{font-size:34px}
.speed-page .cloud-save-suggestion{background:#292b3b;border-color:#45475c;color:#e5e6ee}
@keyframes speed-caret-blink{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.speed-caret::before{animation:none}}
@media(max-width:640px){.speed-page>.keyboard-guide:not([hidden]){display:block!important}.speed-header{padding:12px 18px;gap:12px;min-height:68px}.speed-header>.logo{display:none}.speed-page{margin:24px auto 40px;padding:0 20px}.speed-intro{margin-bottom:16px}.speed-input-area{min-height:190px;padding-top:8px}.speed-words{font-size:24px;gap:13px .55em}.speed-tools{grid-template-columns:1fr;gap:12px}.speed-dashboard{width:min(100%,400px);justify-self:center;margin:0}.speed-stat{padding:0 8px;gap:3px}.speed-stat dd{font-size:18px}.speed-stat dt{font-size:10px}.speed-page .guide-key{height:28px;font-size:10px}.speed-page .guide-key.decorative,.speed-page .guide-key.spacebar{font-size:7px}.speed-result-numbers{gap:28px}.speed-result-numbers strong{font-size:40px}.speed-result-numbers small{font-size:19px}.speed-graph figcaption span{font-size:10px}}

@media(min-width:800px){
 .speed-page:not(.speed-results){width:100%;max-width:1600px;min-height:calc(100dvh - 112px);margin:24px auto;padding:0 32px;display:flex;flex-direction:column}
 .speed-intro{margin-bottom:20px}
 .speed-intro h1,.speed-level{font-size:15px}
 .speed-arena{display:flex;flex-direction:column;flex:1}
 .speed-input-area{display:flex;align-items:center;flex:1;min-height:170px;padding:12px 0 24px}
 .speed-words{width:100%;font-size:clamp(30px,2.55vw,40px);line-height:1.45;gap:18px .65em}
.speed-word-gloss{font-size:13px;line-height:1.5;margin-bottom:7px}
.speed-words{max-height:clamp(150px,28dvh,280px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#596277 transparent;padding-block:8px}







 .speed-tools{margin-top:16px}
 .speed-tools>.btn{font-size:14px}
 .speed-tools>.btn{min-height:40px}
 .speed-page>.keyboard-guide{max-width:none;margin-top:16px}
 .speed-page .guide-keyboard{padding:12px}
 .speed-page .guide-row{gap:5px;margin-bottom:5px}
 .speed-page .guide-row:last-child{margin-bottom:0}
 .speed-page .keyboard-guide .guide-key,.speed-page .keyboard-guide .guide-key.has-legend{height:clamp(42px,6dvh,62px);font-size:clamp(15px,1.25vw,20px)}
 .speed-page .keyboard-guide .guide-key.decorative,.speed-page .keyboard-guide .guide-key.spacebar{font-size:12px}
 .speed-page .guide-key .key-legend{font-size:10px;top:4px;left:6px}
 .speed-page .finger-guide{min-height:28px;margin-top:10px}
 .speed-page .finger-tip{font-size:13px}
 .speed-page .guide-layout{font-size:11px}
}
@media(min-width:800px) and (max-height:760px){
 .speed-page:not(.speed-results){margin:12px auto;min-height:calc(100dvh - 100px)}
 .speed-intro{display:none}
 .speed-input-area{min-height:100px;padding:0 0 8px}
 .speed-words{font-size:30px;line-height:1.25;gap:8px .65em}
 .speed-word-gloss{margin-bottom:4px}


 



 .speed-tools>.btn{min-height:36px}
 .speed-page .keyboard-guide .guide-key,.speed-page .keyboard-guide .guide-key.has-legend{height:38px;font-size:14px}
 .speed-page .guide-keyboard{padding:9px}
 .speed-tools,.speed-page>.keyboard-guide{margin-top:10px}
}
/* A quiet, stable first frame while scripts and the saved game arrive. */
.tm-loading-screen{--loading-ink:#193f46;--loading-fill:#35846a;--loading-track:#dfe8df;display:grid;place-items:center;width:100%;min-height:100svh;margin:0;padding:24px;background:#f8f9f3;color:var(--loading-ink);box-sizing:border-box}
.tm-loading-screen[data-theme="dark"]{--loading-ink:#ececf3;--loading-fill:#94dcb4;--loading-track:#383a4b;background:#20212e}
.tm-loading-mark{display:flex;flex-direction:column;align-items:center;gap:24px}
.tm-loading-brand{display:flex;align-items:center;gap:10px;font-size:26px;font-weight:750;letter-spacing:-1px;line-height:1.2}
.tm-loading-brand img{display:block;object-fit:contain}
.tm-loading-line{display:block;position:relative;overflow:hidden;width:132px;height:3px;border-radius:3px;background:var(--loading-track)}
.tm-loading-line::after{content:"";position:absolute;inset:0 auto 0 0;width:45%;border-radius:inherit;background:var(--loading-fill);animation:tm-loading-slide 1.4s ease-in-out infinite}
@keyframes tm-loading-slide{0%{transform:translateX(-110%)}100%{transform:translateX(325%)}}
@media(prefers-reduced-motion:reduce){.tm-loading-line::after{animation:none;left:28%}}
