/* Four small icons inside the painted rail; captions stay in accessible names. */
.mission-bottom,.today-page .mission-bottom{grid-template-columns:repeat(4,minmax(0,1fr));min-height:66px;padding:5px 16px max(7px,env(safe-area-inset-bottom));background-color:#101b24}
.mission-bottom a,.today-page .mission-bottom a,.bottom-menu-button{min-height:48px;position:relative;display:flex;align-items:center;justify-content:center;gap:0}
.mission-bottom .painted-nav-icon{width:32px;height:32px;flex-basis:32px}
.bottom-menu-button{border:0;background:none;color:#d7bd7d;cursor:pointer;width:100%;padding:8px}
.bottom-menu-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.bottom-menu-button:focus-visible{outline:2px solid #e4c880;outline-offset:-4px}
.mission-bottom a.active::after{bottom:0;width:30%}
.nav-attention{position:absolute;top:7px;left:calc(50% + 10px);width:7px;height:7px;border-radius:50%;background:#ed4d43;box-shadow:0 0 0 1.5px #14202a}
.nav-attention[hidden]{display:none}
.app-menu-toggle{display:none}
.today-page .screen{padding-bottom:85px}
body:has(.welcome-screen) .kingdom-brand{left:28px}
.kingdom-resources{position:absolute;z-index:9;top:140px;left:14px;display:flex;gap:5px;font:10px/1.4 'Noto Serif',serif;color:#f2dfb1}
.kingdom-resources span{padding:5px 8px;border:1px solid #bd9d5266;border-radius:5px;background:#0c2138c9;backdrop-filter:blur(4px)}
.kingdom-resources b{font-size:13px;color:#ffdf82}
.kingdom-quick-add{position:absolute;z-index:9;right:17px;bottom:12px;width:42px;height:42px;border-radius:50%;border:1px solid #d8b968;color:#ffe3a2;background:#112940c9;display:grid;place-items:center;font-size:28px;text-decoration:none;box-shadow:0 2px 8px #0006}
.building-dialog{width:min(88vw,390px);margin:auto;border:1px solid #be9b57;padding:28px 24px;background:#f7ebcc;color:#203e46;font-family:'Noto Serif',serif;border-radius:7px}
.building-dialog::backdrop{background:#071420aa;backdrop-filter:blur(4px)}
.building-dialog h2{font-size:23px;margin:5px 0 18px}.building-dialog small{display:block;font-size:11px;line-height:1.7;margin:15px 0}.building-dialog a{display:block;color:#286b48;font-weight:700;margin-top:18px}.building-dialog .dialog-close{position:absolute;right:9px;top:5px;border:0;background:none;color:#715734;font-size:25px}
.building-meter{height:9px;background:#ccbc98;border-radius:5px;overflow:hidden}.building-meter i{display:block;height:100%;background:#4d9e4d}
.goal-beacons .beacon{font-size:13px}.goal-beacons .beacon span{white-space:nowrap}
/* Short broad swords, no long needle silhouette. */
.duel-blade{background-image:url('sword-short-v29.svg');width:12px;height:25px;filter:none}
.duel-swords{height:28px;width:30px;left:-33px}
.blade-left{left:2px}.blade-right{right:2px}
.duel-impact{top:10px;left:11px}.duel-ember{top:12px;left:14px}
.daily-start{margin-left:28px}
.day-square.current::after{display:none}
.day-square::before{background-image:url('tracker-blank-v29.svg')}
.day-square.earned::before{background-image:url('tracker-green-v29.svg')}
.day-grid.range-day{grid-template-columns:repeat(auto-fill,minmax(28px,1fr))}
.range-day .day-square{min-width:0;padding:0;font:10px 'Noto Serif',serif;cursor:pointer}
.task-reward{display:block;color:#587343;font-size:9px;line-height:1.5;margin-top:5px}
.completion-seal{flex:0 0 59px;width:59px;height:57px;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;transform:rotate(-8deg);color:#f0f5d9;background:#2d7e48;outline:1px solid #76a56d;outline-offset:-5px;border:2px solid #28693f;clip-path:polygon(50% 0,60% 5%,73% 4%,79% 13%,91% 19%,93% 31%,100% 42%,96% 54%,98% 66%,88% 74%,82% 88%,68% 91%,57% 100%,44% 96%,30% 98%,21% 88%,9% 82%,7% 68%,0 57%,4% 44%,2% 31%,12% 22%,20% 10%,34% 8%);text-shadow:0 1px #195e37}
.completion-seal b{font-size:24px;line-height:1}.completion-seal span{font-size:8px;letter-spacing:.5px;line-height:1.4;font-weight:700}
.tracker-located{filter:drop-shadow(0 0 7px #f5cf85)}
/* Independent rolling smoke curls, with moving gaps over the letters. */
.is-veiled:not(.is-revealed) [data-mist-content]{opacity:.85;filter:blur(.3px);mask-image:linear-gradient(100deg,transparent 3%,#000 19%,#000 28%,transparent 43%,transparent 53%,#000 68%,transparent 86%);mask-size:230% 100%;mask-position:0 0}
.fog-deep:not(.is-revealed) [data-mist-content]{opacity:.62;filter:blur(.7px);mask-size:290% 100%}
.is-revealed [data-mist-content]{mask-image:none;opacity:1;filter:none}
.mission-fog{inset:8px 10px;mask-image:radial-gradient(ellipse,#000 45%,transparent 79%)}
.mist-wisp.smoke-curl{inset:auto;left:calc(var(--curl) * 15% - 20%);top:calc(20% + var(--curl) * 4%);width:45%;height:110%;opacity:.52;filter:blur(5px);will-change:auto;mask-image:radial-gradient(ellipse,#000 8%,transparent 70%);background:radial-gradient(ellipse at 36% 35%,#f3f7edbb 0 12%,#d0dfd9cc 30%,#afc6c46b 43%,transparent 66%),radial-gradient(ellipse at 70% 65%,#edf4eacc 0 15%,#c6d7d0aa 34%,transparent 64%);transform:rotate(calc(var(--curl) * 39deg))}
.fog-deep .smoke-curl{opacity:.67}
@media(prefers-reduced-motion:no-preference){
 .mist-wisp.smoke-curl{animation:curl-smoke calc(5.5s + var(--curl) * .6s) ease-in-out calc(var(--curl) * -1.7s) infinite alternate}
 .is-veiled:not(.is-revealed) [data-mist-content]{animation:smoke-letter-gaps 8s ease-in-out infinite alternate}
 @keyframes curl-smoke{0%{transform:translate(-18%,-25%) rotate(-35deg) scale(.7,1);opacity:.3}40%{transform:translate(12%,-5%) rotate(22deg) scale(1.15,.8);opacity:.66}100%{transform:translate(-8%,-35%) rotate(100deg) scale(.85,1.2);opacity:.42}}
 @keyframes smoke-letter-gaps{from{mask-position:0 0}to{mask-position:100% 0}}
}
@media(max-width:370px){.kingdom-resources{top:125px;font-size:9px}.kingdom-resources span{padding:4px 6px}.mission-bottom .painted-nav-icon{width:30px;height:30px;flex-basis:30px}.completion-seal{flex-basis:52px;width:52px;height:52px}.goal-beacons .beacon{font-size:11px}}

.mission-bottom .bottom-menu-button{color:#dec387}.mission-bottom .bottom-menu-button svg{fill:none;stroke:#dec387}

/* The road belongs to character development; territory has its own concept page. */
.kingdom-brand{display:none!important}
.kingdom-character-card{position:absolute;left:18px;top:22px;z-index:9;max-width:58%;color:#ffe8ad;text-shadow:0 1px 5px #06121f;font-family:'Noto Serif',serif}.kingdom-character-card h2{font-size:23px;margin:0 0 9px;line-height:1.3}.kingdom-character-card p{font-size:11px;margin:0 0 9px}.character-level-meter{height:5px;max-width:145px;background:#0a1b2999;border:1px solid #c4a96477;border-radius:4px;overflow:hidden}.character-level-meter i{height:100%;display:block;background:#ebce77}
.kingdom-resources{top:119px;left:18px}.nav-character{background:url('nav-character-v31.svg') center/contain no-repeat;filter:none}
@media(max-width:370px){.kingdom-character-card h2{font-size:20px}.kingdom-resources{top:111px}}

.welcome-start.ornate-brass-btn{padding-right:21%}.welcome-start .btn-label-wrap{font-size:clamp(17px,4.3vw,22px);gap:5px;white-space:nowrap}
