/* Cinematic toy-world art, glossy armor and elemental colors unify the game. */
:root{--shadow:0 12px 32px #0005}.brand{font-weight:900;letter-spacing:-.8px}.brand-icon{border-radius:7px;background:#c3332b;border:2px solid #fb8973;box-shadow:0 4px 0 #701c22,inset 0 3px #ffb39e3d;color:#ffe28e}.brand small{letter-spacing:1px;text-transform:uppercase;font-size:9px;color:#b7c9d9}.arena{border-radius:15px;border-width:2px;border-color:#6e91aa66;box-shadow:0 6px 0 #051120,0 15px 40px #0005,inset 0 2px #e6f4ff19}.arena:after{border-radius:10px;transform:rotate(25deg)}.arena-top .subject{border-radius:6px;border-color:#a0c5df30;background:#19405b}.primary{border-radius:8px;border-width:2px;box-shadow:0 5px 0 #0006,inset 0 3px #fff3;font-weight:900;letter-spacing:.15px}.primary:hover{box-shadow:0 5px 0 #0006,inset 0 3px #fff4,0 0 24px #ffd86b26}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #0006}.panel,.daily-panel,.medal-panel{border-radius:12px;box-shadow:0 4px 0 #030d1b7a,inset 0 2px #d7f4ff13}.daily-panel{background:linear-gradient(145deg,#245c97,#153953);border-color:#9dd8ff50}.daily-panel .eyebrow{color:#ffdf86}.daily-panel .daily-track i{background:#ffdf69}.rank{border-radius:7px;background:#d1ae3b1c}.modal{border-radius:16px;border:2px solid #81abc844;box-shadow:0 9px 0 #061523a8,0 25px 90px #0009}.profile-art{background:linear-gradient(180deg,#01142512,#04142d99),url('dojo-bg.png') 32% center/cover}.profile-art:after{content:"";position:absolute;right:18px;top:18px;width:25px;height:25px;border-radius:6px;background:#d5ac59;border:2px solid #f6d889;box-shadow:0 4px 0 #74542a,0 0 0 6px #0b1c3199;transform:rotate(18deg)}.profile-body h2{font-weight:900;letter-spacing:-1px}.profile-symbol-preview{display:flex;align-items:center;gap:11px;padding:9px;border:1px solid #e5bc7440;border-radius:10px;background:#233a493b;margin:12px 0 4px}.profile-symbol-preview .element-hero{width:58px;height:69px;flex-shrink:0}.profile-symbol-preview b{font-size:13px;display:block;color:#f5d792}.profile-symbol-preview small{font-size:10px;line-height:1.4;display:block;color:#9ab4c8;margin-top:3px}.profile-symbol-preview .sign-token{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;background:#f2dd8d20;color:#ffdf97;border-radius:4px;margin-left:6px}.element-hero{overflow:visible;filter:drop-shadow(0 4px 3px #0004)}.element-hero .hero-chest{fill:var(--energy,#d8462f)}.element-hero .hero-trim{fill:var(--accent,#ffe078)}.element-hero .hero-face{fill:#ffd684}.castle-modal{width:min(850px,calc(100vw - 28px));padding:23px 27px;overflow:visible}.castle-modal>h2{font-size:27px;margin:7px 0 14px}.castle-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.castle-heading .eyebrow{font-size:9px;letter-spacing:1px}.castle-heading h3{font-size:19px;margin:6px 0;color:#fceac0}.castle-rank{padding:6px 9px;background:#e7bf6712;border:1px solid #e7bf6738;border-radius:6px;font-size:10px;color:#e8d6a4;white-space:nowrap}.castle-scene{width:100%;height:330px;display:block;margin:4px auto;background:radial-gradient(ellipse at 50% 60%,#32627b44,transparent 70%);overflow:visible}.castle-scene .icon{color:#ffe3a1;stroke:#ffe3a1;stroke-width:2;fill:none}.castle-progress{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:12px;color:#b1c6d5;line-height:1.4}.castle-progress b{color:#e9ddaa}.castle-progress>div{width:100%;height:6px;border-radius:5px;background:#07172d;overflow:hidden}.castle-progress i{display:block;height:100%;border-radius:5px;transition:width .35s}.castle-features{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.castle-features>span{display:flex;align-items:center;gap:6px;font-size:11px;border-radius:6px;padding:7px 9px;border:1px solid #abc5db1c;color:#6c849a;background:#ffffff04}.castle-features .open{color:#e7e5b8;border-color:#e7df8044;background:#e7df8009}.castle-features .icon{width:15px;height:15px}.castle-note{color:#8eabc3;font-size:11px;line-height:1.5;margin:10px 0}.castle-interactive{cursor:pointer;outline:none}.castle-interactive:focus-visible{filter:drop-shadow(0 0 5px #ffe390)}.castle-dragon-body{animation:castle-fly 3.8s ease-in-out infinite}.castle-dragon-wing{transform-origin:0 6px;animation:castle-wing 1.7s ease-in-out infinite}.castle-portal{animation:castle-portal 2.8s ease-in-out infinite}.castle-firing .castle-blast{animation:castle-blast .65s ease-out}.castle-firing{filter:drop-shadow(0 0 8px #ffe589)}.castle-roaring .castle-dragon-body{animation:castle-roar .7s ease-in-out}.castle-notice{background:#f5d17b12;color:#f7d88d;padding:7px 10px;border-radius:7px;font-size:11px;min-height:29px}.boss-awards-modal{width:min(680px,calc(100vw - 28px));padding:23px 27px}.boss-awards-modal .modal-mark{margin-bottom:12px}.boss-awards-modal h2{font-size:27px;margin:8px 0}.mission-modal #pickBoss{padding:7px 0;font-size:11px;color:#f4d594;display:flex;margin:8px auto 0}.mission-modal #pickBoss[hidden]{display:none}.mission-modal:has(#pickBoss:not([hidden])) .mission-choice{padding:9px 12px}.mission-modal:has(#pickBoss:not([hidden]))>p.muted{margin-bottom:12px}.mission-modal:has(#pickBoss:not([hidden])) .journey-note{margin:8px 0}.boss-figure{filter:drop-shadow(0 2px 0 #03122260)}.boss-choice,.boss-medal-card{border-radius:8px;box-shadow:0 3px 0 #0415268a,inset 0 2px #f2f9ff14}.boss-choice .boss-portrait{filter:drop-shadow(0 2px 2px #0006)}
@keyframes castle-fly{50%{transform:translateY(-8px)}}@keyframes castle-wing{50%{transform:rotate(-10deg)}}@keyframes castle-portal{50%{opacity:.45}}@keyframes castle-blast{0%{opacity:1;transform:scale(.4);transform-origin:50px 0}100%{opacity:0;transform:scale(1.2);transform-origin:50px 0}}@keyframes castle-roar{40%{transform:translateY(-12px) scale(1.1)}}
.calm .castle-dragon-body,.calm .castle-dragon-wing,.calm .castle-portal{animation:none}.calm .castle-firing .castle-blast{animation:none}.calm .castle-roaring .castle-dragon-body{animation:none}
@media(prefers-reduced-motion:reduce){.castle-dragon-body,.castle-dragon-wing,.castle-portal,.castle-firing .castle-blast,.castle-roaring .castle-dragon-body{animation:none}}
@media(min-width:821px) and (max-height:750px){.castle-scene{height:275px}.castle-modal{padding:20px 25px}.castle-modal>h2{margin-bottom:10px}.castle-heading h3{font-size:18px}.castle-features{margin:10px 0}}
@media(max-width:1050px){.app-header .nav-label{display:none}.app-header nav .quiet{padding:10px}.app-header nav{gap:6px}}
@media(max-width:560px){.app-header nav{gap:0}.app-header nav .quiet,.app-header nav .icon-button{padding:7px}.app-header nav .icon{width:18px;height:18px}.castle-modal,.boss-awards-modal{padding:22px 17px}.castle-modal>h2{font-size:24px;margin-bottom:15px}.castle-heading{align-items:flex-start}.castle-heading h3{font-size:16px}.castle-heading .eyebrow{font-size:8px}.castle-rank{font-size:8px;padding:5px 6px}.castle-scene{height:250px;width:calc(100% + 16px);margin-left:-8px}.castle-progress{font-size:10px}.castle-features{gap:5px;margin:10px 0}.castle-features>span{font-size:9px;padding:6px 7px;gap:4px}.castle-note{font-size:10px}.boss-awards-modal h2{font-size:24px}.boss-awards-modal .modal-mark{margin-bottom:10px}.award-tabs button{font-size:11px}.profile-symbol-preview{padding:7px;gap:9px}.profile-symbol-preview .element-hero{width:47px;height:57px}.profile-symbol-preview small{font-size:9px}.profile-body{padding:21px 23px}.profile-body h2{font-size:25px}.profile-body>.muted{font-size:12px;margin:8px 0}.profile-choices{margin:3px 0 6px}.profile-art{min-height:125px;padding:17px}.art-caption h2{font-size:20px}.privacy-note{margin:12px 0 0}}
@media(max-width:380px){.brand{font-size:13px;gap:6px}.brand small{font-size:8px}.brand-icon{width:29px;height:29px}.app-header nav .quiet,.app-header nav .icon-button{padding:6px}}
.storage-notice{position:fixed;left:12px;right:12px;bottom:12px;z-index:80;display:flex;align-items:center;justify-content:center;gap:15px;background:#3b3035;border:1px solid #e7c48780;border-radius:10px;padding:9px 14px;box-shadow:0 6px 24px #0006;font-size:11px;color:#f8dcac}.storage-notice .quiet{font-size:11px;color:#ffdfa2;white-space:nowrap;padding:5px 7px}#conflictModal{z-index:90}@media(max-width:560px){.storage-notice{font-size:10px;gap:6px;padding:8px}.storage-notice .quiet{font-size:10px}}

/* A single CGI world replaces the former painted temple behind every window. */
body{background:linear-gradient(90deg,#040d1de8,#07182bb0 50%,#041020e5),url('assets/ninjago/dojo-cinematic.webp') center/cover fixed no-repeat}
.overlay{background:linear-gradient(135deg,#030b18c4,#08172cdb),url('assets/ninjago/dojo-cinematic.webp') center/cover no-repeat;backdrop-filter:blur(7px)}
.profile-art{background:linear-gradient(180deg,#020e2220,#041022c9),url('assets/ninjago/dojo-cinematic.webp') 29% center/cover}
.profile-art:after{display:none}
.modal{background:radial-gradient(ellipse at 90% 0,#a7682718,transparent 60%),linear-gradient(135deg,#172b43fa,#0c1b30fc);border-color:#f4c97746;box-shadow:0 9px 0 #030d1d99,0 30px 90px #000a,inset 0 2px #ffe4a424}
.castle-scene{background:radial-gradient(ellipse at 53% 69%,#e0a24218,transparent 68%);isolation:isolate}
.castle-building{filter:drop-shadow(0 13px 9px #0005)}
.castle-development .castle-heading{margin-bottom:9px;gap:10px}
.castle-development .castle-heading h3{font-size:20px;margin:5px 0 0}
.castle-development .castle-rank{white-space:nowrap;font-size:13px;font-weight:800;color:#ffe7a2}
.castle-districts{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:5px}
.castle-districts button{min-width:0;padding:0;height:34px;border:1px solid #7790a152;border-radius:8px;background:#0c2035;color:#c6d9e7;font-family:inherit;font-size:13px;font-weight:700;display:grid;place-items:center;box-shadow:none}
.castle-districts button .icon{width:18px;height:18px}
.castle-districts button[aria-pressed="true"]{background:#eeb44a;color:#1b2633;border-color:#ffdfa1}
.castle-districts button.complete:not([aria-pressed="true"]){border-color:#7dba83;color:#bce9aa;background:#203c37}
.castle-districts button:disabled{opacity:.38;cursor:not-allowed}
.castle-districts button:focus-visible{outline:3px solid #c6edff;outline-offset:2px}
.castle-area-caption{font-size:12px;color:#a9c3d6;margin:8px 0 0;min-height:16px}
.castle-development .castle-scene{height:310px;margin:0;width:100%}
.castle-development .castle-progress{font-size:12px;line-height:1.4;gap:6px 12px}
.castle-development .castle-progress>span{min-width:0}
.castle-work{color:#ffe5a0;font-size:12px;margin:7px 0 10px}
.castle-construction-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.castle-construction-stats span{border:1px solid #74919e42;background:#ffffff04;border-radius:8px;padding:7px 5px;text-align:center;font-size:12px;color:#bfd2df;white-space:nowrap}
.castle-construction-stats b{color:#fff2ca;font-size:15px;margin-right:3px}
.castle-development .castle-note{font-size:11px;margin:10px 0 0;line-height:1.45}
.castle-tower{filter:drop-shadow(0 6px 4px #0003)}
@media(min-width:561px) and (max-height:780px){.castle-development .castle-scene{height:265px}.castle-modal>h2{margin-bottom:12px}.castle-development .castle-heading h3{font-size:18px}.castle-development .castle-note{margin-top:8px}}
@media(max-width:560px){.castle-modal>h2{margin-bottom:12px}.castle-development .castle-heading h3{font-size:16px}.castle-development .castle-rank{font-size:11px;padding:6px}.castle-districts{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.castle-districts button{height:33px;font-size:12px}.castle-development .castle-scene{height:236px;width:calc(100% + 16px);margin-left:-8px}.castle-development .castle-progress{font-size:11px}.castle-construction-stats{gap:4px}.castle-construction-stats span{font-size:10px;padding:7px 2px}.castle-construction-stats b{font-size:13px;margin-right:1px}.castle-area-caption{font-size:11px;margin-top:7px}.castle-work{font-size:11px;margin:7px 0 9px}.castle-development .castle-note{font-size:10px;margin-top:9px}}
@media(max-width:380px){.castle-modal{padding:19px 16px}.castle-development .castle-scene{height:205px}.castle-development .castle-heading h3{font-size:15px}.castle-development .castle-progress{font-size:10px}}
.castle-interactive{transition:filter .16s}
.castle-interactive:hover,.castle-interactive:focus-visible{filter:drop-shadow(0 0 8px #ffe5a0aa)}
.castle-dragon-body{transform-box:fill-box;transform-origin:center}
.castle-firing .castle-blast{transform-box:fill-box;transform-origin:center}
.castle-personal-flag{filter:drop-shadow(1px 3px 2px #0007)}
@media(max-width:560px){body{background-attachment:scroll}.castle-scene{height:235px}.castle-heading>div{min-width:0}.castle-heading .eyebrow{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.castle-note{margin-bottom:4px}}
@media(max-width:350px){.castle-scene{height:210px}.castle-modal{padding:19px 14px}.castle-modal>h2{font-size:22px}.castle-heading h3{font-size:14px}.castle-rank{font-size:7px}.castle-features>span{font-size:8px;padding:5px}.castle-progress{font-size:9px}}

/* Shared compact-castle interaction styles; the round-robin layout is below. */
.castle-compact .castle-area-caption{text-align:center;color:#accbd7;letter-spacing:.15px}
.castle-object{cursor:pointer;outline:none;transition:filter .2s}
.castle-object:hover,.castle-object:focus-visible{filter:drop-shadow(0 0 5px #a7edff)}
.castle-object-selected{filter:drop-shadow(0 0 5px #ffdf8f99)}
.castle-object:focus-visible{filter:drop-shadow(0 0 7px #fff2b7)}
.castle-object-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border:1px solid #e9c46e48;border-radius:10px;background:linear-gradient(100deg,#ecd58e12,#1d485623);margin:0 0 12px;min-height:58px}
.castle-object-copy{min-width:0}.castle-object-copy>b{display:block;font-size:13px;color:#ffe8b4}.castle-object-copy>span{display:block;font-size:11px;color:#a9c6d6;margin-top:3px;line-height:1.3}
.castle-object-level{flex:0 0 86px;text-align:right}.castle-object-level>b{font-size:20px;line-height:1;color:#ffdf8e}.castle-object-level small{font-size:11px;color:#abc2cf}
.castle-object-level>div{height:4px;border-radius:4px;background:#041629;margin-top:7px;overflow:hidden}.castle-object-level i{display:block;height:100%;background:linear-gradient(90deg,#e6b95b,#fff0b1);border-radius:4px}
.castle-compact .castle-work{margin-bottom:7px}.castle-compact .castle-note{margin-top:5px}
.castle-object-pulse .castle-object-art{animation:castle-inspect .55s ease-out;transform-box:fill-box;transform-origin:center bottom}
@keyframes castle-inspect{40%{transform:translateY(-5px) scale(1.025)}}
.calm .castle-object-pulse .castle-object-art{animation:none}
@media(prefers-reduced-motion:reduce){.castle-object-pulse .castle-object-art{animation:none}.castle-object{transition:none}}
@media(max-width:560px){.castle-compact .castle-object-detail{padding:8px 10px;margin-bottom:10px;gap:6px;min-height:57px}.castle-object-copy>b{font-size:12px}.castle-object-copy>span{font-size:10px}.castle-object-level{flex-basis:64px}.castle-object-level>b{font-size:18px}.castle-compact .castle-area-caption{font-size:10px;letter-spacing:0}.castle-compact .castle-note{font-size:10px;line-height:1.4}}
@media(max-width:350px){.castle-compact .castle-heading h3{font-size:14px}.castle-compact .castle-object-copy>span{font-size:9px}}

/* The blueprint grows clockwise across eight groups, not by cloning districts. */
.castle-modal:has(.castle-round){width:min(1000px,calc(100vw - 28px))}
.castle-round-layout{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:15px;align-items:center;margin:5px 0 8px}
.castle-round-scene{height:320px;width:100%;margin:0}
.castle-group-list{display:grid;gap:6px}.castle-group-list button{position:relative;display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;overflow:hidden;border:1px solid #97b4ca30;border-radius:7px;padding:7px 9px;background:#10263a;color:#c7dce6;box-shadow:none;text-align:left;font-family:inherit}
.castle-group-list button>span{font-size:12px;font-weight:700}.castle-group-list button>b{font-size:13px;color:#ffe5a4;white-space:nowrap}.castle-group-list small{font-size:10px;font-weight:400;color:#9eb8c7}
.castle-group-list button>i{position:absolute;bottom:0;left:0;width:var(--built);height:2px;background:#eabd65}
.castle-group-list button[aria-pressed="true"]{border-color:#f2c873;background:#e1b8501c}.castle-group-list button:focus-visible{outline:2px solid #c9f2ff;outline-offset:2px}
.castle-mage-building{filter:drop-shadow(0 0 5px #7ce7ff65)}
.castle-round .castle-object-detail{margin-bottom:9px}.castle-round .castle-note{line-height:1.4;margin:5px 0 0}
@media(min-width:561px) and (max-height:780px){.castle-round-scene{height:280px}.castle-group-list{gap:4px}.castle-group-list button{padding:6px 8px}.castle-round-layout{margin-top:2px}.castle-modal:has(.castle-round)>h2{margin-bottom:9px}}
@media(max-width:700px){.castle-round-layout{grid-template-columns:minmax(0,1fr) 150px;gap:6px}.castle-group-list button>span{font-size:10px}.castle-group-list button>b{font-size:11px}.castle-group-list small{font-size:9px}}
@media(max-width:560px){.castle-round-layout{display:flex;flex-direction:column;gap:3px;margin:0 0 8px}.castle-round-scene{height:204px;width:100%;margin:0}.castle-group-list{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.castle-group-list button{display:block;padding:5px 3px;text-align:center;border-radius:5px}.castle-group-list button>span{display:block;font-size:9px;white-space:nowrap}.castle-group-list button>b{display:block;font-size:11px;margin-top:2px}.castle-group-list small{font-size:9px}.castle-round .castle-object-detail{min-height:49px;padding:7px 9px;margin-bottom:8px}.castle-round .castle-area-caption{font-size:9px;min-height:13px}.castle-round .castle-note{font-size:9px}.castle-round .castle-heading h3{font-size:15px}.castle-modal:has(.castle-round)>h2{margin-bottom:9px}}
@media(max-width:350px){.castle-round-scene{height:170px}.castle-group-list button>span{font-size:8px}.castle-group-list button>b{font-size:10px}.castle-round .castle-heading h3{font-size:14px}.castle-round .castle-rank{font-size:10px}}
