/* Fluid component sizes at normal browser zoom. No page-scale transforms. */
:root{--rail-width:192px;--page-gutter:clamp(16px,2vw,28px);--nav-offset:0px}
.sidebar{width:var(--rail-width);padding:20px 12px 16px;overflow-y:auto;overscroll-behavior:contain}.sidebar .brand{font-size:14px;gap:8px}.sidebar .brand img{width:30px}.nav-label{margin:26px 0 12px 12px}.nav-item{min-height:40px;padding:8px 11px;margin:3px 0;font-size:12px}.side-quote{margin:18px 0}.side-quote .tengwar{font-size:27px}.side-quote p{font-size:12px;margin-top:8px}.side-status{margin-top:12px}.main-shell{margin-left:var(--rail-width);width:calc(100% - var(--rail-width))}.app-header{height:60px;padding-inline:var(--page-gutter);flex-shrink:0}#main-content{padding:18px var(--page-gutter) 16px;max-width:1500px}.app-footer{padding:14px var(--page-gutter)}.section-heading{margin-bottom:16px;gap:16px}.section-heading h1{font-size:clamp(26px,2.2vw,32px);margin:4px 0 6px}.section-heading .muted{font-size:12px;line-height:1.5}.button{min-height:40px;padding:9px 16px}.eyebrow{letter-spacing:1.6px}
/* A compact welcome leaves the character form on screen on laptop displays. */
.landing-header{padding:18px 5%}.landing-footer{padding:12px 5%;font-size:8px}.login-layout{width:min(1100px,90%);grid-template-columns:1fr 430px;gap:clamp(32px,6vw,90px);padding:20px 0 24px}.intro h1{font-size:clamp(48px,5vw,72px);margin:18px 0 20px}.intro-detail{margin-top:26px}.login-card{padding:24px 28px 19px}.login-card h2{font-size:28px;margin:5px 0}.login-tabs{margin:16px 0 14px}.login-tabs button{padding:7px 0 9px}.login-card label{margin-bottom:6px}.login-card input,.login-card select{min-height:38px;padding:8px 11px}.input-hint{margin:6px 0 12px}.race-picker{margin-top:12px}.race-picker p{min-height:0;margin-top:6px;line-height:1.5}.race-picker small{line-height:1.4;margin-top:4px}.login-card .button{min-height:38px;padding-block:8px}.divider{margin:12px 0}.login-note{margin-top:12px}.login-card>.tiny{margin-top:5px}.ornament{width:27px;height:27px;top:-14px;font-size:19px}
/* Realm: smaller hero and map chrome, without scaling down labels or glyphs. */
.hero-banner{min-height:clamp(148px,22vh,188px)}.hero-copy{width:calc(100% - 165px);padding:16px 22px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'eyebrow action' 'title action' 'description action';align-content:center;gap:5px 20px;min-height:inherit}.hero-copy>.eyebrow{grid-area:eyebrow}.hero-copy h2{grid-area:title;font-size:28px;line-height:1.06;margin:0}.hero-copy p{grid-area:description;font-size:11px;line-height:1.5;max-width:470px}.hero-copy>.button{grid-area:action;align-self:center;margin:0;min-height:36px;font-size:11px}.hero-knight{height:180px;right:2%;bottom:-8px}.scene-caption{font-size:7px;bottom:8px}.dashboard-grid{grid-template-columns:1.65fr 1fr;gap:16px;margin-top:16px}.panel-heading{padding:12px 17px}.panel-heading h2{font-size:20px;margin-top:3px}.atlas-controls{padding:0 17px 11px;gap:12px;align-items:end}.atlas-controls .atlas-picker{font-size:9px;margin:0}.atlas-picker select{margin-top:5px;min-height:35px;padding:7px 10px;font-size:11px}.atlas-controls>.button{min-height:35px;font-size:10px}.world-map{height:clamp(155px,25vh,235px)!important;min-height:0!important}.map-footer{padding:9px 14px;font-size:9px;align-items:center;flex-wrap:wrap}.map-footer>span:last-child{font-size:8px}.quest-panel{padding:14px 17px;display:flex;flex-direction:column}.quest-panel .panel-heading{padding:0 0 9px}.quest-panel .panel-heading h2,.quest-type{display:none}.quest-panel h3{font-size:22px;margin:0 0 7px}.quest-panel>p{font-size:11px;line-height:1.6;margin:0}.quest-letters{gap:7px;margin:12px 0}.quest-letter{height:39px;max-width:52px;font-size:27px}.quest-letter.quest-word{font-size:19px}.progress-caption{margin:0 0 7px;font-size:9px;gap:10px;flex-wrap:wrap}.quest-panel>.progress-track{margin:0 0 12px}.quest-panel>.button{margin:auto 0 0;width:100%;min-height:35px;font-size:11px}.expeditions-section,.peaceful-section{margin-top:24px}.expeditions-section h2,.peaceful-section h2{font-size:26px}.expedition-grid,.peaceful-grid{gap:14px;margin-top:16px}.expedition-scene{height:112px;min-height:0}.expedition-copy{padding:17px}.expedition-copy h3{font-size:25px}.expedition-copy p{font-size:11px;line-height:1.65}.expedition-copy .button{margin-top:14px;min-height:36px}.peaceful-card{padding:20px}.peaceful-card h3{font-size:24px}.stats-strip{margin-top:18px;padding:15px 0}
/* Lesson selectors share a row; explanations remain available on demand. */
#view-training{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;align-items:start}#view-training>.section-heading,#view-training>.lesson-steps,#view-training>.curriculum-outline,#view-training>.study-section,#view-training>.battle-panel,#view-training>.field-guide,#view-training>.training-source{grid-column:1/-1}#view-training>.section-heading{margin:0 0 2px}#view-training>.lesson-steps{display:none}.lesson-navigation,.region-picker{margin:0;padding:12px 15px;min-width:0;min-height:98px;gap:12px;align-items:center}.lesson-navigation>label{min-width:0;max-width:none;font-size:9px;letter-spacing:1px}.lesson-navigation select{min-height:36px;margin-top:6px;font-size:12px;padding:8px}.course-progress{min-width:0;flex:0 1 145px;padding:0}.course-progress>strong{font-size:18px;line-height:1.3}.course-progress>span{font-size:9px;line-height:1.4;margin-top:5px;max-width:none}.region-picker label{min-width:0;max-width:none;flex:1;font-size:9px;letter-spacing:1px;margin:0}.region-picker select{min-height:36px;padding:8px;margin-top:6px;font-size:12px}.region-picker>div{flex:1.1;min-width:0}.watch-details summary{cursor:pointer;font-size:11px;color:#c6d0b7}.watch-details[open]{margin-bottom:7px}.watch-details strong{font-size:11px;line-height:1.6;margin-top:7px}.region-picker p{font-size:10px;line-height:1.5;margin-top:5px}.curriculum-outline{margin:0}.curriculum-outline>summary{padding:9px 14px;font-size:11px}.study-section{padding:18px}.study-heading h2{font-size:24px}.study-counter{font-size:10px;padding:5px 9px}.study-intro{font-size:12px;line-height:1.55;margin:10px 0 14px;max-width:none}.study-cards{gap:10px;grid-template-columns:repeat(5,minmax(0,1fr))}.study-card{padding:11px 10px 10px}.study-pair{min-height:62px;gap:8px}.study-pair .tengwar{font-size:43px}.latin-letter{font-size:28px}.study-card h3{font-size:17px;margin:6px 0}.study-card p{font-size:11px;line-height:1.5;margin-bottom:12px}.study-card .button{min-height:33px;font-size:9px;padding:7px 4px}.study-pair.wide-pair,.reading-lesson .study-pair,.reading-lesson .study-card:last-child .study-pair{min-height:78px}.wide-pair .latin-letter{font-size:12px}.wide-pair .tengwar{font-size:37px}.reading-lesson .study-pair .latin-letter{font-size:20px}.reading-lesson .study-pair .word-glyph{font-size:35px}.study-actions{margin-top:14px;padding-top:12px;gap:16px}.study-actions p{font-size:11px;line-height:1.5}.study-actions .button{min-height:36px;min-width:105px}.reading-bank-preview{margin-top:14px;padding-top:12px}.reading-bank-grid{gap:8px}.reading-bank-grid .tengwar{font-size:29px}.field-guide{margin-top:4px;padding:14px 18px}.training-source{margin:0}
/* The whole battle, including feedback and all five choices, fits the viewport. */
.battle-panel{margin:8px 0 0;scroll-margin-top:calc(var(--nav-offset) + 12px);display:grid;grid-template-rows:auto auto minmax(140px,1fr) auto auto auto;height:min(780px,calc(100dvh - var(--nav-offset) - 24px));min-width:0}.battle-toolbar{padding:9px 16px;min-height:52px;gap:12px}.battle-toolbar strong{font-size:10px;letter-spacing:.6px;margin-top:3px}.battle-toolbar .eyebrow{font-size:8px}.battle-controls{gap:8px}.battle-controls label{display:flex;align-items:center;font-size:10px;gap:6px;letter-spacing:0}.battle-controls select{margin:0;min-height:32px;width:100px;padding:5px 7px;font-size:11px}.battle-controls .button{min-height:32px;padding:5px 10px;font-size:11px}.battle-hud{padding:8px 16px;gap:12px;min-height:46px;align-items:center}.battle-hud>span{font-size:9px;letter-spacing:.5px;gap:8px}.battle-hud strong{font-size:12px}.battle-hud .hp-hud{min-width:140px}.hp-hud>strong{font-size:11px}.hp-track{width:145px;margin-top:5px}.battle-stage{height:auto;min-height:0}.battle-knight{width:clamp(70px,12vh,100px);bottom:44px}.battle-enemy{bottom:44px}.battle-ground{height:47px}.enemy-kind{font-size:9px}.target-bar{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,1.1fr);align-items:center;min-height:56px;padding:8px 16px;gap:12px}.target-bar>span{font-size:9px;letter-spacing:.5px;gap:10px;flex-wrap:wrap;white-space:normal}.target-bar>span>small{font-size:9px;line-height:1.4;flex-basis:100%}.target-bar strong{font-size:23px}.target-bar p{font-size:11px;line-height:1.4;text-align:left}.battle-answers{padding:10px 16px;gap:10px}.answer-button{min-height:74px;padding:8px 6px}.answer-button .tengwar{font-size:45px;line-height:1.35}.answer-button .tehta-glyph{font-size:48px}.word-answer .tengwar.word-glyph{font-size:34px;line-height:1.4}.battle-instructions{padding:0 16px 10px;font-size:10px;line-height:1.4;gap:12px;flex-direction:row}.battle-instructions>span{max-width:60%}.battle-instructions kbd{font-size:10px}.battle-overlay{padding:14px;overflow-y:auto}.battle-overlay h2{font-size:27px;margin:8px 0}.battle-overlay p{font-size:12px;line-height:1.5}.battle-overlay .button{margin-top:12px}.battle-overlay .reward-line{font-size:12px}.correction-pair .tengwar{font-size:53px}.correction-pair .word-glyph{font-size:48px!important}.sword-trail{bottom:100px}
/* Browseable collections use smaller illustrations and more useful columns. */
.shop-banner{padding:20px 24px;gap:20px;min-height:155px}.shop-banner h2{font-size:29px;margin:7px 0 9px}.shop-banner p{font-size:11px;line-height:1.6}.shop-anvil{height:125px;width:170px;top:25px}.shop-purse{min-width:150px;padding-left:20px}.shop-purse>strong{font-size:35px;margin:6px 0 9px}.shop-filters{gap:7px;margin:16px 0 12px}.shop-filters button{font-size:11px;padding:7px 11px;min-height:33px}.armoury-controls{gap:12px;margin-bottom:16px}.armoury-controls label{font-size:10px}.armoury-controls select,.armoury-controls input{min-height:36px;margin-top:5px;padding:7px 10px;font-size:12px}.shop-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.shop-item{padding:16px}.item-art{height:80px;margin:5px 0 9px}.item-art .gear-icon,.item-art>.cosmetic-art{width:75px;height:75px}.shop-item h2{font-size:21px;margin:6px 0 8px}.shop-item>p{font-size:11px;line-height:1.55;min-height:34px}.item-modifiers{margin:12px 0 6px;font-size:12px}.item-comparison{font-size:10px;margin-bottom:12px}.shop-item>.button{min-height:36px;font-size:11px}.item-rarity,.item-slot{font-size:8px;letter-spacing:.8px}.vanity-badge{font-size:8px}.shop-item-top{gap:8px}.knight-overview{grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:18px}.rpg-portrait{min-height:0;padding:20px;justify-content:center}.knight-figure,.rpg-portrait[data-race=hobbit] .knight-figure,.rpg-portrait[data-race=dwarf] .knight-figure{height:clamp(205px,34vh,290px);width:175px;max-width:100%;margin-top:12px}.rpg-portrait[data-race=hobbit] .knight-figure{height:clamp(175px,29vh,245px)}.rpg-portrait[data-race=dwarf] .knight-figure{height:clamp(190px,31vh,265px)}.paper-stats{margin-top:16px;padding-top:12px}.paper-stats strong{font-size:24px;margin-top:4px}.skill-panel{padding:18px}.skill-panel h2,.loadout-panel h2{font-size:24px}.skill-panel .rank-box{margin:13px 0}.skill-card{padding:11px 0;gap:12px}.skill-description h3{font-size:18px}.skill-description p{font-size:11px;margin:3px 0 7px;line-height:1.4}.skill-emblem{width:32px;height:32px}.race-panel{padding:15px 18px}.loadout-panel{padding:18px;margin-top:18px}.equipped-grid{margin-top:16px;gap:16px}.equipped-item{padding-top:13px}.equipped-art{width:48px;height:56px}.equipped-item h3{font-size:18px}.equipped-item p,.equipment-select{font-size:11px}.wardrobe-intro{margin-top:10px}.letter-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px}.letter-card{min-height:132px;padding:10px}.letter-card .tengwar{font-size:48px}.journal-card{padding:20px;gap:18px}.journal-card h2{font-size:24px}.journal-card .button{margin-top:12px}
/* Modal chrome never consumes the map's scroll/pan area on short windows. */
dialog{max-height:calc(100dvh - 24px);padding:26px;overflow-y:auto;overscroll-behavior:contain}dialog h2{font-size:27px;margin:5px 0 12px}dialog .button{margin-top:16px}.detail-glyph{font-size:95px;line-height:1.4}.atelier-preview{height:210px;margin-block:10px 16px}.quiet-question{padding:14px 8px;margin:14px 0}.quiet-choice{min-height:72px}.quiet-choice .tengwar{font-size:38px}.quiet-feedback{min-height:34px}.library-bank{gap:10px}.library-bank article{padding:12px}#full-map-dialog[open]{display:flex;flex-direction:column;gap:0;width:min(1360px,calc(100vw - 32px));height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);padding:18px;overflow:hidden}.full-map-heading h2{font-size:27px;margin:4px 0 9px}.full-map-heading .eyebrow{font-size:9px}.atlas-close{width:34px;height:34px;flex-shrink:0}.map-legend{font-size:11px;margin:0 0 11px;gap:15px}.map-tools{margin-bottom:11px;gap:12px;flex-shrink:0}.map-tools label{margin:0;font-size:10px;min-width:170px}.map-tools select{min-height:35px;margin-top:4px;padding:6px 9px;font-size:12px}.map-tools>.button,.map-zoom button{min-height:35px;height:35px}.map-tools>.button{margin:0;padding:7px 12px;font-size:11px}.map-zoom{gap:5px}.map-zoom button#map-fit{font-size:11px}.full-map-viewport{flex:1 1 0;height:auto;min-height:120px}.map-help{font-size:11px!important;line-height:1.5;margin:9px 0 3px!important;flex-shrink:0}#full-map-status{font-size:10px;line-height:1.4;flex-shrink:0}
@media(min-width:1600px){:root{--rail-width:208px}.shop-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}
@media(max-height:780px) and (min-width:651px){.side-quote{display:none}.landing-header{padding-block:12px}.landing-footer{padding-block:8px}.login-layout{padding-block:10px}.login-card{padding:18px 25px 14px}.login-card h2{font-size:26px}.login-card>.eyebrow{font-size:8px}.login-card>.muted{font-size:11px}.login-tabs{margin:10px 0}.login-tabs button{padding:5px 0 7px}.login-card .input-hint{margin:4px 0 9px}.race-picker{margin-top:9px}.race-picker p{font-size:10px}.race-picker small{font-size:8px}.divider{margin:9px 0}.login-note{margin-top:9px}.intro h1{font-size:clamp(46px,5vw,64px)}.intro-detail{margin-top:20px}}
@media(max-width:1100px) and (min-width:651px){:root{--rail-width:64px}.sidebar{padding:18px 8px}.sidebar .brand{justify-content:center}.sidebar .brand>span,.sidebar .nav-label,.sidebar .nav-item>span,.sidebar .side-quote,.sidebar .side-status{display:none}.sidebar nav{margin-top:22px}.sidebar .nav-item{font-size:0;justify-content:center;padding:10px 8px;min-height:42px}.sidebar .nav-item.leave{font-size:22px}.sidebar .nav-item .icon{width:21px;height:21px}.hero-copy{width:calc(100% - 145px);padding:15px 18px;gap:5px 14px}.hero-copy h2{font-size:26px}.hero-knight{height:165px}.dashboard-grid{grid-template-columns:1.45fr 1fr;gap:12px}.shop-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.study-card p{font-size:10px}.study-pair{gap:5px}.study-pair .tengwar{font-size:37px}.study-pair .tehta-glyph{font-size:41px}.reading-lesson .study-pair .word-glyph{font-size:32px}.skill-description h3{font-size:17px}}
@media(max-width:850px) and (min-width:651px){.login-layout{grid-template-columns:1fr 390px;gap:24px;width:94%}.login-card{padding-inline:20px}.intro h1{font-size:46px}.hero-copy{width:100%;padding-right:125px;grid-template-columns:1fr;grid-template-areas:'eyebrow' 'title' 'description' 'action';gap:5px}.hero-copy>.button{justify-self:start;margin-top:3px}.hero-knight{height:170px;opacity:.7}.hero-banner{min-height:190px}.dashboard-grid{grid-template-columns:1fr}.world-map{height:220px!important}.quest-panel{display:flex}#view-training{grid-template-columns:1fr}.lesson-navigation,.region-picker{grid-column:1/-1;min-height:0}.region-picker{gap:20px}.study-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.study-card p{font-size:11px}.study-pair .tengwar{font-size:43px}.knight-overview{grid-template-columns:minmax(210px,.75fr) minmax(0,1.25fr)}.equipped-grid{grid-template-columns:1fr}.equipped-item{display:flex}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.battle-toolbar .eyebrow{font-size:7px}.battle-hud>span{font-size:8px}.target-bar{grid-template-columns:1fr 1fr}.battle-instructions{font-size:9px}.battle-instructions kbd{font-size:9px}.reading-lesson .battle-answers{grid-template-columns:repeat(5,minmax(0,1fr))}.word-answer .tengwar.word-glyph{font-size:29px}}
@media(max-width:650px){:root{--rail-width:0px;--nav-offset:56px;--page-gutter:14px}.sidebar{position:sticky;top:0;width:100%;height:56px;min-height:56px;flex-direction:row;overflow:visible;padding:5px 8px;gap:5px}.sidebar .brand img{width:26px;height:32px}.sidebar .brand{margin-right:auto}.sidebar nav{margin:0;display:flex;min-width:0;overflow-x:auto}.sidebar .nav-item{padding:8px 7px;min-height:38px;margin:0;font-size:0;width:auto}.sidebar .nav-item .icon{width:19px;height:19px}.sidebar .nav-item.leave{font-size:20px}.sidebar-bottom .nav-item{padding:8px 6px}.sidebar .brand>span,.sidebar .nav-item>span,.nav-label,.side-quote,.side-status{display:none}.sidebar .sidebar-bottom{display:flex;margin:0}.main-shell{margin-left:0;width:100%}.app-header{height:50px;padding-inline:14px}.breadcrumb{font-size:9px}.header-right{gap:6px}.header-right strong{max-width:90px}.header-right small{font-size:8px}.gold-wallet{padding:4px 7px;min-height:28px}#main-content{padding:16px 14px 12px}.section-heading h1{font-size:26px;max-width:none}.section-heading{margin-bottom:14px}.section-heading .muted{font-size:11px}.hero-banner{min-height:216px}.hero-copy{width:100%;padding:18px;grid-template-columns:1fr;grid-template-areas:'eyebrow' 'title' 'description' 'action';gap:7px;padding-right:70px}.hero-copy h2{font-size:26px}.hero-copy p{font-size:11px;max-width:245px}.hero-copy>.button{justify-self:start;font-size:11px;margin-top:4px}.hero-knight{height:185px;right:-20px;opacity:.5}.dashboard-grid{grid-template-columns:1fr;margin-top:14px;gap:14px}.world-map{height:220px!important}.atlas-controls{padding:0 14px 12px}.atlas-controls>.button{margin-top:8px}.panel-heading{padding:12px 14px}.panel-heading h2{font-size:20px}.panel-heading>.tiny{font-size:9px}.quest-panel{padding:16px}.quest-panel>p{font-size:12px}.quest-panel h3{font-size:23px}.quest-letters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:12px 0}.quest-letter{width:100%;max-width:none;height:42px}.quest-letters:has(.quest-word){grid-template-columns:repeat(3,minmax(0,1fr))}.quest-letter.quest-word{font-size:22px}.expedition-scene{height:120px}.expedition-copy{padding:17px}.expedition-copy h3{font-size:25px}.peaceful-card{padding:17px}.peaceful-card p{font-size:11px}.stats-strip{row-gap:16px}.stats-strip>div{padding-left:12px;gap:9px}.stats-strip strong{font-size:12px}.login-layout{display:flex;flex-direction:column;align-items:stretch;gap:24px;width:min(430px,calc(100% - 32px));padding:10px 0 22px}.landing-header{padding:16px}.landing-footer{padding:12px 16px}.intro{padding:0}.intro h1{font-size:40px;line-height:1.03;margin:12px 0}.intro h1 br{display:none}.intro h1 em{display:inline}.intro p{font-size:11px;line-height:1.5}.intro .eyebrow{font-size:8px}.login-card{padding:21px 20px 17px}.login-card h2{font-size:27px}.login-tabs{margin:13px 0}.intro-detail{display:none}#view-training{grid-template-columns:1fr;gap:10px}.lesson-navigation,.region-picker{grid-column:1/-1;padding:12px;min-height:0}.lesson-navigation{display:flex;gap:12px}.lesson-navigation>label{font-size:8px;flex:1.4}.lesson-navigation select,.region-picker select{font-size:11px;min-height:36px}.course-progress{display:block;flex:1;text-align:right;padding:0}.course-progress>strong{font-size:17px;white-space:normal}.course-progress>span{font-size:8px;text-align:right;max-width:none;margin-top:4px}.region-picker{display:flex;gap:12px}.region-picker label{font-size:8px}.region-picker p{font-size:10px}.watch-details summary{font-size:10px}.curriculum-outline>summary{font-size:10px}.curriculum-outline>summary>span{float:none;display:block;margin:4px 0 0;font-size:8px}.study-section{padding:14px}.study-heading{align-items:start;gap:8px}.study-heading h2{font-size:22px}.study-counter{font-size:9px;padding:4px 7px}.study-intro{font-size:11px;margin:10px 0 12px}.study-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.study-card{padding:10px}.study-card:last-child{grid-column:1/-1}.study-pair{min-height:66px;gap:8px}.study-pair .tengwar{font-size:43px}.study-card h3{font-size:17px}.study-card p{font-size:11px}.study-card .button{font-size:9px;min-height:34px}.reading-lesson .study-pair .word-glyph{font-size:35px}.study-actions{gap:10px;align-items:center}.study-actions p{font-size:10px}.study-actions .button{min-width:84px;min-height:38px;padding:8px 12px;font-size:11px;gap:8px}.battle-panel{height:calc(100dvh - var(--nav-offset) - 20px);grid-template-rows:auto auto minmax(120px,1fr) auto auto auto;scroll-margin-top:calc(var(--nav-offset) + 10px);margin-top:6px}.battle-toolbar{padding:8px 10px;min-height:48px;gap:6px}.battle-toolbar .eyebrow{font-size:6px;letter-spacing:.5px;line-height:1.3}.battle-toolbar strong{font-size:8px;max-width:125px;letter-spacing:.2px;line-height:1.3}.battle-controls{gap:5px}.battle-controls label{display:block;font-size:8px}.battle-controls select{width:75px;font-size:10px;min-height:30px;padding:4px;margin:2px 0 0}.battle-controls .button{font-size:10px;min-height:30px;padding:5px 7px}.battle-hud{padding:7px 10px;gap:9px;min-height:48px}.battle-hud>span{display:block;font-size:7px;line-height:1.3;letter-spacing:.3px}.battle-hud strong{display:block;font-size:11px;margin-top:3px}.battle-hud .hp-hud{min-width:105px}.hp-hud>strong{display:inline-block;margin-left:4px;font-size:10px}.hp-track{width:108px;margin-top:4px}.battle-knight{left:5%;width:70px;bottom:37px}.battle-enemy{bottom:37px;width:58px}.battle-ground{height:40px}.enemy-kind{font-size:7px;bottom:calc(100% + 39px)}.enemy-prompt{font-size:20px}.target-bar{padding:7px 10px;display:block;min-height:0}.target-bar>span{font-size:8px;gap:8px}.target-bar>span>small{font-size:8px;flex-basis:auto;max-width:70%}.target-bar strong{font-size:20px}.target-bar p{font-size:10px;line-height:1.4;margin-top:4px;min-height:0}.battle-answers{padding:8px 10px;gap:6px}.answer-button{min-height:62px;padding:8px 3px}.answer-button .tengwar{font-size:36px}.answer-button .tehta-glyph{font-size:40px}.reading-lesson .battle-answers{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 10px}.reading-lesson .answer-button{min-height:57px}.word-answer .tengwar.word-glyph{font-size:28px}.answer-button kbd{font-size:8px;top:4px;left:5px}.battle-instructions{padding:0 10px 8px;font-size:8px;gap:4px;display:block;line-height:1.4}.battle-instructions>span{max-width:none;display:block}.battle-instructions kbd{font-size:8px}.battle-overlay{padding:10px}.battle-overlay h2{font-size:22px;margin:7px 0}.battle-overlay .eyebrow{font-size:7px;letter-spacing:.7px}.battle-overlay p{font-size:10px;line-height:1.45}.battle-overlay .button{min-height:33px;font-size:10px;margin-top:10px;padding:6px 10px}.battle-overlay .reward-line{font-size:11px;margin-top:7px}.correction-pair>span:first-child{font-size:25px}.correction-pair .word-glyph{font-size:39px!important}.sword-trail{bottom:85px}.shop-banner{padding:17px;min-height:0;gap:12px}.shop-banner h2{font-size:25px}.shop-banner p{font-size:10px}.shop-purse{min-width:86px;padding-left:12px}.shop-purse>strong{font-size:28px}.shop-purse p{font-size:8px}.shop-filters{gap:6px;margin:14px 0 11px}.shop-filters button{font-size:10px;padding:7px 9px}.armoury-controls{gap:10px}.armoury-controls label{font-size:9px;min-width:110px}.armoury-controls select,.armoury-controls input{font-size:11px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-item{padding:12px}.item-art{height:64px}.item-art .gear-icon,.item-art>.cosmetic-art{width:62px;height:62px}.shop-item h2{font-size:19px}.shop-item>p{font-size:10px}.item-modifiers{font-size:10px;margin-top:10px}.item-comparison{font-size:9px;gap:6px}.shop-item>.button{font-size:10px;padding-inline:7px;gap:6px}.item-rarity,.item-slot{font-size:7px;letter-spacing:.5px}.vanity-badge{font-size:7px;padding:4px 6px}.shop-item-top{flex-wrap:wrap;gap:5px}.knight-overview{grid-template-columns:1fr}.rpg-portrait{min-height:0;padding:18px}.knight-figure{height:230px;margin-top:9px}.skill-panel{padding:16px}.skill-description h3{font-size:18px}.skill-description p{font-size:11px}.skill-card{gap:10px}.skill-emblem{width:29px;height:29px}.equipped-grid{grid-template-columns:1fr;gap:14px}.equipped-item{display:flex;padding-top:12px}.equipped-art{margin:0;width:48px;height:56px}.equipped-item h3{font-size:19px}.equipped-item p{font-size:11px}.letter-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.letter-card{min-height:120px;padding:10px 5px}.letter-card .tengwar{font-size:43px}.letter-card strong{font-size:16px}.journal-card{padding:16px;gap:12px}.journal-card h2{font-size:22px}.journal-card p{font-size:11px}.journal-number{font-size:17px;padding:8px}dialog{padding:23px 18px;width:calc(100% - 24px)}dialog h2{font-size:25px}.quiet-choice .tengwar{font-size:33px}.word-practice .tengwar{font-size:28px}.quiet-choice{min-height:68px}.atelier-preview{height:190px}#full-map-dialog[open]{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);width:calc(100vw - 20px);padding:12px}.full-map-heading h2{font-size:25px}.full-map-heading .eyebrow{font-size:8px}.map-legend{font-size:9px;gap:7px;margin-bottom:8px}.map-tools{gap:7px;margin-bottom:8px}.map-tools label{min-width:0;flex-basis:100%;font-size:9px}.map-tools select{font-size:11px;min-height:34px}.map-tools>.button{width:100%;min-height:34px;font-size:11px}.map-zoom{width:100%;gap:6px}.map-zoom button{height:33px;min-height:33px}.map-help{font-size:9px!important;line-height:1.4;margin-top:7px!important}#full-map-status{font-size:9px}}
@media(max-width:370px){.shop-grid{grid-template-columns:1fr}.shop-item{display:grid;grid-template-columns:70px minmax(0,1fr);gap:4px 12px}.shop-item-top,.item-slot,.shop-item h2,.shop-item>p,.item-modifiers,.item-comparison,.shop-item>.button{grid-column:2}.item-art{grid-column:1;grid-row:1/6;height:90px;margin:0}.shop-item h2{font-size:21px}.shop-item>p{font-size:11px;min-height:0}.item-comparison{min-height:0}.shop-item>.button{font-size:11px}.hero-copy{padding-right:52px}.hero-copy h2{font-size:24px}.hero-copy p{font-size:10px}.hero-knight{opacity:.35}.battle-hud .hp-hud{min-width:93px}.hp-track{width:95px}.battle-controls select{width:70px}.battle-toolbar strong{max-width:94px;font-size:7px}.battle-controls .button{padding-inline:6px;font-size:9px}.target-bar>span>small{font-size:7px}.reading-bank-grid{grid-template-columns:1fr}.quest-letter.quest-word{font-size:19px}}
@media(max-height:500px) and (min-width:651px){.battle-panel{grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto auto minmax(100px,1fr) auto;height:calc(100dvh - 16px);scroll-margin-top:8px}.battle-toolbar{grid-column:1/-1}.battle-hud{grid-column:1;grid-row:2}.battle-stage{grid-column:1;grid-row:3}.target-bar{grid-column:1;grid-row:4;grid-template-columns:1fr;padding:6px 12px}.target-bar>span>small{display:none}.battle-answers,.reading-lesson .battle-answers{grid-column:2;grid-row:2/4;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;border-left:1px solid var(--line);padding:10px;gap:7px}.answer-button,.reading-lesson .answer-button{min-height:54px}.answer-button .tengwar{font-size:34px}.word-answer .tengwar.word-glyph{font-size:28px}.battle-instructions{grid-column:2;grid-row:4;padding:7px 10px;font-size:8px;display:block}.battle-instructions>span{max-width:none}.battle-overlay h2{font-size:19px}.battle-overlay p{font-size:10px}.battle-overlay .button{margin-top:8px;min-height:30px;font-size:10px}.battle-knight{width:55px;bottom:28px}.battle-enemy,.battle-enemy[data-body]{width:55px;bottom:28px}.battle-ground{height:31px}.enemy-kind{font-size:7px}.enemy-prompt,.reading-lesson .enemy-prompt{font-size:17px}.full-map-heading h2{font-size:22px}.full-map-heading .eyebrow{display:none}.map-tools{flex-wrap:nowrap}.map-tools label{min-width:150px}.map-tools select{margin-top:2px}.map-help{font-size:9px!important}}

/* Actor sizes follow the stage left after controls and readable answers. */
#battle-stage{container-type:size}
#battle-stage .battle-enemy{width:clamp(40px,28cqh,86px);bottom:clamp(27px,14cqh,44px)}
#battle-stage .battle-knight{width:clamp(46px,30cqh,100px);bottom:clamp(27px,14cqh,44px)}
#battle-stage .battle-ground{height:clamp(30px,15cqh,47px)}
.world-map{height:clamp(150px,23vh,215px)!important}
@media(max-height:740px) and (min-width:851px){#main-content{padding-top:14px}#view-world>.section-heading{margin-bottom:12px}#view-world>.section-heading h1{font-size:28px}#view-world .dashboard-grid{margin-top:12px}}
@media(max-width:650px){.world-map{height:210px!important}}
.lesson-explanation{margin:7px 0 12px}.lesson-explanation summary{font-size:11px;line-height:1.5;color:#c7caa9;cursor:pointer}.lesson-explanation .study-intro{margin:9px 0 0}.study-heading h2{font-size:22px;line-height:1.2;margin-top:3px}.study-heading .eyebrow{font-size:9px}.reading-lesson .study-card h3{display:none}.reading-lesson .study-pair{min-height:68px;gap:3px}.reading-lesson .study-pair .latin-letter{line-height:1.2}.reading-lesson .study-pair .pair-arrow{display:none}.reading-lesson .study-pair .word-glyph{line-height:1.3}.reading-lesson .study-card p{margin-top:8px}.reading-lesson .study-card:last-child .study-pair{min-height:68px}
@media(min-width:851px){.lesson-navigation,.region-picker{min-height:80px;padding:10px 14px}.course-progress{flex-basis:155px}.course-progress>strong{font-size:17px}.study-section{padding:16px}#view-training>.section-heading h1{font-size:27px}#view-training>.section-heading .muted{font-size:11px}.study-actions{margin-top:12px;padding-top:10px}.reading-bank-preview{margin-top:10px;padding-top:9px}}
@media(min-width:851px){#view-training{gap:10px 14px}#view-training>.section-heading>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 16px;align-items:center}#view-training>.section-heading h1{grid-row:1;grid-column:1;margin:0;font-size:26px}#view-training>.section-heading .eyebrow{grid-row:1;grid-column:2;font-size:9px}#view-training>.section-heading .muted{grid-column:1/-1}.lesson-navigation,.region-picker{min-height:70px;padding:7px 12px}.curriculum-outline>summary{padding-block:7px}}
.large-letters .answer-button .tengwar{font-size:clamp(42px,5vw,60px);line-height:1.3}.large-letters .word-answer .tengwar.word-glyph{font-size:clamp(28px,3vw,44px);line-height:1.4}.large-letters .reading-lesson .study-pair .word-glyph{font-size:42px}
@media(max-width:650px){.large-letters .answer-button .tengwar{font-size:42px}.large-letters .word-answer .tengwar.word-glyph{font-size:34px}.large-letters .reading-lesson .study-pair .word-glyph{font-size:40px}}
/* On short laptops the breadcrumb already identifies Train; reserve the page
   for the lesson rather than a second decorative title and tagline. */
@media(max-height:780px) and (min-width:851px){#view-training>.section-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0;white-space:nowrap}}

@media(max-width:650px){.app-header .breadcrumb{min-width:0;overflow:hidden;text-overflow:ellipsis}.header-right>span:last-child{min-width:48px;max-width:82px}#header-rank{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:650px){.app-header{gap:8px}.app-header .breadcrumb{flex:1 1 0}.app-header .header-right{flex:0 0 auto}}
