/* Menu materials only. Battle/Legion HUD keeps its own styles. */
.tower-summary{display:flex;flex-direction:column;gap:7px;padding:12px;margin-top:12px;border:1px solid #9b8b57;border-radius:5px;background:#14291db0}.tower-summary>b{font:700 22px var(--f-head);color:#e4d29e}.tower-summary>span{font-size:13px;line-height:1.45;color:#c8bf9c}.tower-summary>small{font-size:11px;line-height:1.4;color:#a8b393}.tower-earned{font-size:13px;color:#d9c88e;line-height:1.5}
#app{background:radial-gradient(ellipse at top,#27483644,transparent 65%),linear-gradient(#1b2019,#14130f);max-width:980px}
#app .bar{background:linear-gradient(#3b3023,#211b14);border-bottom:1px solid #b08e50;box-shadow:0 3px 15px #0007}
#app .card,.modal-box .card,#app .mode{border:1px solid #92724788;border-image:none;border-radius:12px;background:linear-gradient(135deg,#433524a6,#211e18ed);box-shadow:inset 0 1px #edcf8b18,0 5px 12px #0003;backdrop-filter:none}
.modal-box{border:1px solid #b18a4f;border-image:none;border-radius:16px;background:radial-gradient(ellipse at 0 0,#68734a30,transparent 65%),linear-gradient(125deg,#263628,#13221a 75%);box-shadow:inset 0 0 0 4px #20190d,0 20px 70px #000b;overflow:hidden}
.modal-box .modal-body{padding:18px}.modal-box .modal-foot{padding:10px 14px 12px;background:#17140ee8;border-top:1px solid #98774766}
#app .btn,.modal-box .btn{border:1px solid #c49c57;border-image:none;border-radius:7px;background:linear-gradient(#d7ad5b,#936125);box-shadow:inset 0 1px #ffe7ad77,0 2px 6px #0005;color:#24180b;text-shadow:none}
#app .btn.alt,.modal-box .btn.alt{background:linear-gradient(#4b3e2a,#2a251b);color:#f0dfb7;border-color:#987a47}
#app .btn:disabled,.modal-box .btn:disabled{filter:saturate(.3);opacity:.55}
#app .chip,.modal-box .chip{background:#241e17;border-radius:7px;border:1px solid #82683f;box-shadow:none}
#app .chip.on,.modal-box .chip.on{background:#5b4526;color:#ffe5a3;border-color:#d9b66e}
.royal-home{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.royal-home>.city{margin:0;box-shadow:0 0 0 1px #b18a4f,0 5px 20px #0005;border-radius:12px}
.royal-council{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:18px;min-width:0;padding:2px 0 6px;align-items:start}
.royal-council-right{display:flex;flex-direction:column;gap:12px;min-width:0}
.royal-panel{padding:12px;border:1px solid #92724788;border-radius:12px;background:linear-gradient(135deg,#403825c9,#201e16f5);box-shadow:inset 0 1px #e8ce8c18,0 4px 12px #0003;color:var(--text);text-align:start;flex:none}
.royal-label{display:block;color:#d8ba7f;font-size:11px;letter-spacing:.9px;margin-bottom:8px}
.royal-selected.hall-hero{position:static;min-width:0}
.royal-face{display:flex;align-items:center;gap:10px;width:100%;padding:0;text-align:start;background:none}
.royal-face>.portrait{width:58px;height:66px;object-fit:contain;border:1px solid #ac8a50;border-radius:22px 22px 8px 8px;background:radial-gradient(#655039,#21190e);flex:none}
.royal-face>span{display:flex;flex-direction:column;gap:3px;min-width:0}.royal-face small{font-size:10px;color:#c7b58d}.royal-face b{font:700 20px/1.05 var(--f-head)}.royal-face .muted{font-size:12px}
.royal-hero-actions{display:flex;gap:6px;margin-top:10px}.royal-hero-actions .btn{flex:1;padding:7px 4px;font-size:12px;min-height:36px}
.royal-dungeon{display:flex;align-items:center;gap:8px;margin-bottom:9px}.royal-dungeon img{width:56px;height:56px;object-fit:contain}.royal-dungeon>div{display:flex;flex-direction:column;gap:3px}.royal-dungeon b{font:700 20px/1.1 var(--f-head)}.royal-dungeon .muted{font-size:12px}.royal-adventure .btn{min-height:40px}
.royal-tutorial,.royal-rank{display:flex;justify-content:space-between;gap:8px;align-items:center;width:100%;font-size:13px}.royal-tutorial small{color:#e6c77c}.royal-rank{flex-direction:column;align-items:start;gap:3px}.royal-rank small{color:#bcb094}
.royal-job{display:flex;justify-content:space-between;gap:8px;width:100%;background:none;text-align:start;padding:9px 0;font-size:12px;border-bottom:1px solid #977b4933;min-height:36px}.royal-job:last-child{border:0}.royal-job b{color:#e8ca85;white-space:nowrap}.royal-quiet{font-size:12px;margin:2px 0}.royal-offer{display:flex;justify-content:space-between;background:none;color:#c1ad83;padding:7px;font-size:12px;min-height:36px}
@media(orientation:landscape) and (max-height:500px){#screen{padding:9px 10px 12px}.royal-home{gap:10px}.royal-council{gap:8px}.royal-panel{padding:9px}.royal-face>.portrait{width:45px;height:50px}.royal-face b,.royal-dungeon b{font-size:18px}.royal-label{margin-bottom:5px}.royal-dungeon img{height:42px;width:42px}.royal-hero-actions{margin-top:6px}.royal-hero-actions .btn{min-height:32px}.royal-dungeon{margin-bottom:6px}.modal-box .modal-body{padding:12px}.modal-box .modal-foot{padding:7px 10px}.modal-box .bld-head img{width:86px}}
@media(min-height:650px){.royal-council{max-height:none}}
@media(max-width:600px){.royal-council{grid-template-columns:minmax(0,1fr);gap:14px}.royal-selected{width:min(340px,100%);justify-self:center}}
[dir=rtl] .royal-face,[dir=rtl] .royal-panel,[dir=rtl] .royal-job{text-align:right}

/* Hero's hall: carved dragon bronze, embroidered silk and an obsidian dais. */
.royal-selected .throne{isolation:isolate}
.royal-selected .throne::before{background:radial-gradient(ellipse at 50% 80%,#ce9e3344,transparent 65%),linear-gradient(#0c2420,#09120f);box-shadow:0 0 0 5px #263f33,0 0 0 7px #ad8650,0 0 0 9px #17221b,inset 0 0 25px #000}
.royal-selected .throne::after{opacity:.27;bottom:35px}
.royal-selected .statue{bottom:55px;z-index:4}
.royal-selected .statue img{filter:drop-shadow(0 5px 4px #000a) drop-shadow(-12px 0 16px #e9ac3030) drop-shadow(12px 0 16px #e9ac3030)}
.royal-dais{position:absolute;width:92%;height:86px;left:4%;bottom:2px;z-index:3;pointer-events:none;filter:drop-shadow(0 6px 5px #0008)}
.royal-dais img{width:100%;height:100%;object-fit:fill}
.royal-banner{position:absolute;top:0;width:64px;height:154px;z-index:1;background-color:var(--hc);background-image:url(img/decor/royal-standard.svg);background-size:100% 100%;clip-path:polygon(0 0,100% 0,100% 86%,75% 82%,50% 100%,25% 82%,0 86%);transform-origin:50% 0;filter:drop-shadow(2px 4px 3px #0008);animation:royal-silk 5s ease-in-out infinite}
.royal-banner.l{left:1%}.royal-banner.r{right:1%;animation-delay:-2.5s}
.royal-banner b{position:absolute;top:28%;left:25%;width:50%;text-align:center;font-size:19px;filter:sepia(.8) saturate(.8) drop-shadow(0 1px 1px #000);font-weight:400}
.royal-torch{position:absolute;top:103px;width:65px;height:124px;z-index:5;pointer-events:none}
.royal-torch.l{left:0}.royal-torch.r{right:0}
.royal-torch>img{width:100%;height:100%;display:block;filter:drop-shadow(1px 3px 3px #000b)}
.royal-torch:before{content:'';position:absolute;width:115px;height:150px;left:50%;top:19%;transform:translate(-50%,-50%);background:radial-gradient(ellipse,#ffb22f40,#e88d1b15 45%,transparent 70%);mix-blend-mode:screen;animation:royal-firelight 1.9s ease-in-out infinite alternate}
.royal-flame{position:absolute;left:36%;top:9%;width:28%;height:33%;border-radius:80% 20% 50% 45%;transform-origin:50% 100%;background:radial-gradient(ellipse at 50% 95%,#fffbc5 0 17%,#ffdc6b 28%,#ff9e23 55%,#d94a13 78%,transparent 84%);box-shadow:0 -2px 12px #ff9b2277;animation:royal-flame 1.1s ease-in-out infinite alternate}
.royal-flame:before,.royal-flame:after{content:'';position:absolute;border-radius:80% 10% 70% 30%;bottom:1%;height:80%;width:65%;background:linear-gradient(0deg,#fff2a4,#ffc247aa 45%,transparent);transform:rotate(-18deg);transform-origin:50% 100%}
.royal-flame:before{left:-20%;animation:royal-flame .7s ease-in-out infinite alternate}.royal-flame:after{right:-15%;height:110%;transform:rotate(14deg);animation:royal-flame .9s ease-in-out -.4s infinite alternate-reverse}
.royal-torch.r .royal-flame{animation-delay:-.6s}
.royal-sparks{position:absolute;left:48%;top:27%;width:2px;height:3px;border-radius:50%;background:#fff2b2;box-shadow:-8px 7px #f9b64b,6px -9px #ffd77c,3px 14px #e7a636;animation:royal-embers 2.4s linear infinite}
.royal-torch.r .royal-sparks{animation-delay:-1.2s}
.royal-goal-text{color:#c7b99a;font-size:14px;line-height:1.5;margin:4px 0 14px}
.royal-council-right .royal-panel{position:relative;border-color:#9f7a3d;background:radial-gradient(ellipse at 0 0,#59724620,transparent 70%),linear-gradient(135deg,#2e3021,#1c2017);box-shadow:inset 0 0 0 3px #151a1170,inset 0 0 22px #0002,0 5px 18px #0003}
.royal-council-right .royal-panel:before{content:'◆';position:absolute;top:-8px;inset-inline-start:18px;color:#cfa55d;font-size:11px;text-shadow:0 1px 2px #000}
.royal-council-right .royal-label{letter-spacing:1.3px;color:#d6b16c;font-size:12px}.royal-council-right .royal-dungeon{gap:12px}.royal-council-right .royal-dungeon img{width:78px;height:76px;filter:drop-shadow(0 3px 5px #0008)}.royal-council-right .royal-dungeon b{font-size:25px}.royal-council-right .royal-dungeon .muted{font-size:13px}
.royal-jobs .royal-job{padding:11px 2px;font-size:14px;min-height:44px}.royal-job.ready b{color:#a7edbe}.royal-history{display:flex;align-items:center;gap:12px;padding:5px 12px;background:none;color:#d6c398;text-align:start;min-height:50px}.royal-history>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1}.royal-history b{font:700 19px var(--f-head)}.royal-history small{font-size:12px;color:#a89d82}.royal-seal{display:grid;place-items:center;width:35px;height:35px;border:1px solid #9a7940;transform:rotate(-8deg);border-radius:50%;background:radial-gradient(#5b4930,#1a1c12);font-size:23px;color:#d9b16a}.royal-history>span:last-child{font-size:22px}
@keyframes royal-silk{0%,100%{transform:perspective(300px) rotateY(-5deg) skewY(-1deg)}50%{transform:perspective(300px) rotateY(6deg) skewY(1deg)}}
@keyframes royal-flame{0%{transform:rotate(-7deg) scale(.9,1.02)}45%{transform:rotate(3deg) scale(1.04,.9)}100%{transform:rotate(7deg) scale(.93,1.13)}}
@keyframes royal-firelight{from{opacity:.6}to{opacity:1}}
@keyframes royal-embers{0%{transform:translate(0,8px);opacity:0}15%{opacity:.9}80%{opacity:.4}100%{transform:translate(7px,-36px);opacity:0}}
@media(prefers-reduced-motion:reduce){.royal-banner,.royal-flame,.royal-flame:before,.royal-flame:after,.royal-sparks,.royal-torch:before{animation:none}.royal-sparks{display:none}}

/* A single hero monument: title plate, compact details and a winged power seal. */
.royal-selected .royal-hero-insignia{position:relative;max-width:none;width:94%;margin:-3px auto 8px;padding:7px 13px 16px;border:0;border-image:none;background:none;box-shadow:none;isolation:isolate;filter:drop-shadow(0 6px 7px #0007);scroll-margin-block-start:12px}
.royal-hero-insignia:before,.royal-hero-insignia:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),calc(100% - 20px) 100%,20px 100%,0 calc(100% - 18px))}
.royal-hero-insignia:before{background:linear-gradient(110deg,#d9c486,#6a502c 23%,#b99a60 50%,#5e4928 77%,#e1cc92)}
.royal-hero-insignia:after{inset:2px;background:radial-gradient(ellipse at 50% 33%,#46724c35,transparent 65%),linear-gradient(125deg,#24392c,#10231b 65%,#253529);box-shadow:inset 0 0 0 3px #101c15,inset 0 0 16px #0007}
.hero-title-ribbon{position:relative;margin:-5px -20px 5px;padding:9px 17px 10px;background:linear-gradient(#585a41,#343e2d 30%,#1e2c21 70%,#48513a);border-top:1px solid #c3ae78;border-bottom:1px solid #9b834b;box-shadow:0 4px 6px #0006;clip-path:polygon(0 0,100% 0,calc(100% - 7px) 50%,100% 100%,0 100%,7px 50%)}
.hero-title-ribbon:before,.hero-title-ribbon:after{content:'◆';position:absolute;top:50%;transform:translateY(-50%);color:#c6ac6a;font-size:8px}.hero-title-ribbon:before{left:9px}.hero-title-ribbon:after{right:9px}
.royal-selected .hero-title-ribbon>b{margin:0;font:700 26px/1.02 var(--f-head);color:#f4dfaa;text-shadow:0 2px 2px #000;overflow-wrap:anywhere}
.hero-meta{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;column-gap:9px;row-gap:3px;min-height:24px;line-height:1.2;padding:3px 0}
.royal-selected .hero-meta>span{color:#c3b995;font-size:11px}.hero-meta .specs{display:inline-flex;gap:5px;margin:0;padding:0}.hero-meta .spec{padding:0;border:0;background:none!important;box-shadow:none;font-size:10px;color:#acae8f}
.hero-power-wings{position:relative;display:flex;justify-content:center;align-items:center;height:88px;margin:1px -9px 2px;background:url(img/decor/royal-power-wings.svg) center/100% 84px no-repeat}
.royal-selected .nameplate .hero-power-wings>.power{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;width:70px;height:70px;margin:0;padding:4px;border:1px solid #d9bb76;border-radius:50%;background:radial-gradient(ellipse at 40% 25%,#3e7758,#183e2d 55%,#091c13 90%);box-shadow:0 0 0 3px #17261a,0 0 0 4px #9e8045,inset 0 2px 7px #c3f6b32b,0 0 17px #74c18520;line-height:1}
.royal-selected .nameplate .hero-power-value{color:#f1dba3;font:700 22px/1 var(--f-head);white-space:nowrap;letter-spacing:.3px;text-shadow:0 2px 2px #000}
.royal-selected .nameplate .hero-power-rune{color:#a7f2ba;font:700 19px/1 Georgia,serif;text-shadow:0 0 9px #7fffaa60;margin-bottom:1px}
.royal-selected .nameplate .hero-power-label{font-size:9px;line-height:1.1;color:#b4bf97;margin-top:3px}
.royal-selected .royal-hero-insignia>q{display:block;margin:0 0 11px;padding:0;border:0;color:#b7b594;font-size:12px;line-height:1.35;font-style:italic}
.royal-selected .royal-hero-insignia .hall-btns{display:grid;grid-template-columns:1.4fr 1fr;gap:7px;margin:0}
#app .royal-selected .royal-hero-insignia .hall-btns .btn{min-width:0;min-height:40px;padding:8px 7px;border-radius:5px;font-size:13px}
#app .royal-selected .royal-hero-insignia .hall-btns .btn:first-child{background:linear-gradient(#d8c289,#af8945 48%,#9b7235);border-color:#e3c68c;color:#261c0d;box-shadow:inset 0 1px #fff0bd70,0 2px 5px #0005}
#app .royal-selected .royal-hero-insignia .hall-btns .btn.alt{background:linear-gradient(#344332,#1d2b20);border-color:#7c8156;color:#d1d3b3;box-shadow:inset 0 1px #e4e7bc12}
.royal-hero-insignia .hall-btns .btn>span{font-size:19px;line-height:12px;margin-inline-start:9px;color:inherit}
@media(max-width:600px){.hero-title-ribbon{margin-inline:-17px}.royal-selected .hero-title-ribbon>b{font-size:24px}}

/* Royal orders and castle affairs, with the original rank and battle record. */
.royal-council-right{gap:14px}
.royal-council-right .royal-panel{padding:16px;border-radius:4px 14px 4px 14px;border-color:#b19760;background:radial-gradient(ellipse at 10% 0,#7e875225,transparent 65%),linear-gradient(125deg,#2c3827,#15251c 70%,#233125);box-shadow:inset 0 0 0 3px #152115,inset 0 0 0 4px #b9a16522,0 6px 16px #0004}
.royal-order-heading{position:relative;min-height:29px;padding-inline-end:48px}.royal-order-heading .royal-label{margin:0;padding-top:1px}.royal-order-heading>img{position:absolute;inset-inline-end:0;top:-23px;width:42px;height:49px;filter:drop-shadow(0 3px 3px #0008)}
.royal-council-right .royal-adventure .royal-dungeon{gap:16px;margin-bottom:4px}.royal-council-right .royal-adventure .royal-dungeon>img{width:112px;height:100px;object-fit:contain;flex:none;filter:drop-shadow(0 5px 6px #0008)}
.royal-council-right .royal-adventure .royal-dungeon b{font-size:27px;line-height:1.05}.royal-council-right .royal-adventure .royal-dungeon .muted{margin-top:3px;line-height:1.4}
.royal-adventure .royal-goal-text{margin:7px 0 15px;color:#c6c2a3;line-height:1.45}
#app .royal-adventure>.btn{min-height:44px;background:linear-gradient(#ddcf9c,#b99a59 50%,#967435);border-color:#e1c58a;box-shadow:inset 0 1px #fff1c280,0 3px 7px #0005;color:#251c0d;font-weight:700}.royal-adventure>.btn>span{font-size:24px;line-height:14px;vertical-align:-1px;margin-inline-start:10px}
.royal-council-right .royal-jobs{padding-block:13px 7px}.royal-jobs>.royal-label{padding-inline:2px;margin-bottom:5px}
.royal-jobs .royal-job{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto 10px;align-items:center;gap:10px;min-height:58px;padding:8px 2px;isolation:isolate}
.royal-job-art{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 3px 4px #0007)}
.royal-job-title{color:#ded7b6;font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.royal-jobs .royal-job>b{max-width:135px;white-space:normal;text-align:end;font-size:12px;line-height:1.3;color:#c7b780}
.royal-job-chevron{font-size:19px;color:#ae9564;text-align:center}
.royal-job.ready:before{content:'';position:absolute;inset:2px 0;z-index:-1;background:radial-gradient(ellipse at 0 50%,#8ce6a724,transparent 75%);border-inline-start:2px solid #82c99a;border-radius:3px;pointer-events:none}
.royal-job.ready .royal-job-art{filter:drop-shadow(0 0 7px #89dd9d55)}.royal-job.ready .royal-job-title{color:#e1e9c8}.royal-jobs .royal-job.ready>b{color:#aee1ae}
.royal-history.royal-record{padding:12px 14px;border:1px solid #9b8755;border-radius:12px 4px 12px 4px;background:radial-gradient(ellipse at 0 0,#8b79452b,transparent 70%),linear-gradient(#283023,#19251c);box-shadow:inset 0 0 0 3px #131e15,0 4px 12px #0003;gap:12px}
.royal-record>img{width:54px;height:64px;object-fit:contain;flex:none;filter:drop-shadow(0 3px 3px #0006)}
.royal-record .royal-record-body{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}.royal-record .royal-record-body>b{font:700 24px/1.05 var(--f-head);color:#ead7a2}
.royal-record-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.royal-record-stats>span{display:flex;flex-direction:column;gap:3px;border-inline-start:1px solid #b39a5738;padding-inline-start:10px}.royal-record-stats>span:first-child{border:0;padding:0}
.royal-record-stats strong{font:700 21px/1 var(--f-head);color:#dcc387;overflow-wrap:anywhere}.royal-record-stats [data-rank-stat=wins]{color:#a7c99a}.royal-record-stats [data-rank-stat=losses]{color:#c9aa8e}.royal-record .royal-record-stats small{font-size:11px;line-height:1.2;color:#b9b194;overflow-wrap:anywhere}
.royal-record-chevron{font-size:23px;color:#b59b62}
@media(max-width:800px){.royal-council-right .royal-panel{padding:13px}.royal-council-right .royal-adventure .royal-dungeon>img{width:86px;height:85px}.royal-council-right .royal-adventure .royal-dungeon b{font-size:24px}.royal-jobs .royal-job{gap:7px;grid-template-columns:34px minmax(0,1fr) auto 8px}.royal-job-art{width:34px;height:38px}.royal-jobs .royal-job>b{max-width:102px}.royal-record>img{width:43px;height:54px}.royal-history.royal-record{padding:11px;gap:9px}.royal-record-stats{gap:7px}.royal-record-stats>span{padding-inline-start:7px}.royal-record .royal-record-body>b{font-size:22px}}

/* Coliseum prototype: one entrance, separate construction controls, fixed footer. */
.modal-box.royal-building-window{width:min(840px,100%);border-radius:6px 18px 6px 18px;border-color:#c6ad73;background:radial-gradient(ellipse at 0 0,#68734a30,transparent 65%),linear-gradient(125deg,#263628,#13221a 75%);box-shadow:inset 0 0 0 3px #0d1b12,inset 0 0 0 4px #bca96d40,0 18px 65px #000c}
.royal-building-window .modal-body{padding:15px 18px;min-height:0;scrollbar-width:thin;scrollbar-color:#998458 #17251a}
.coliseum-layout{display:grid;grid-template-columns:minmax(180px,235px) minmax(0,1fr);gap:23px;text-align:start;align-items:start}
.coliseum-overview{position:relative;text-align:center;min-width:0}
.coliseum-art{height:146px;position:relative;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse at 50% 70%,#c4a15330,transparent 68%)}
.coliseum-art:after{content:'';position:absolute;bottom:8px;left:12%;right:12%;height:22px;border:1px solid #bda16e55;border-radius:50%;transform:rotate(-5deg);box-shadow:0 0 16px #d2b26318;pointer-events:none}
.coliseum-building{width:100%;height:142px;object-fit:contain;filter:drop-shadow(0 6px 5px #0008);position:relative;z-index:1}
.coliseum-seal{position:absolute;bottom:0;inset-inline-end:6px;width:37px;height:43px;z-index:2;filter:drop-shadow(0 2px 2px #0008)}
.coliseum-title{position:relative;padding:8px 7px 7px;margin:0 -5px 7px;border-top:1px solid #c0a26b;border-bottom:1px solid #806a42;background:linear-gradient(#4b5036,#263827 65%,#39452f);clip-path:polygon(0 0,100% 0,calc(100% - 5px) 50%,100% 100%,0 100%,5px 50%)}
.coliseum-title>small{color:#bbae87;font-size:10px;letter-spacing:1px}.royal-building-window .coliseum-title h2{font:700 28px/1.05 var(--f-head);margin:1px 0 0;color:#efdaad}
.coliseum-level{display:flex;justify-content:center;align-items:center;gap:10px;font-size:12px;color:#c4bb96}
.coliseum-level-pips{display:flex;gap:7px}.coliseum-level-pips i{display:block;width:7px;height:7px;transform:rotate(45deg);border:1px solid #a29060;background:#15271b}.coliseum-level-pips i.lit{background:#d2b97b;box-shadow:0 0 5px #e4cc8050}
.royal-building-window .coliseum-tagline{font-size:12px;line-height:1.35;color:#b7b597;margin:10px 0 0;font-style:italic}.coliseum-active-bonus{font-size:12px;color:#b7d3a3;line-height:1.3;margin:8px 0 0}
.coliseum-controls{min-width:0;display:flex;flex-direction:column;gap:13px}
.royal-building-window h3{font:700 21px/1.1 var(--f-head);color:#ead6a4;margin:0 0 9px}
.coliseum-sizes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.coliseum-size{display:flex;flex-direction:column;gap:4px;justify-content:center;align-items:center;min-height:57px;padding:7px 3px;border:1px solid #79724b;border-radius:4px 9px 4px 9px;background:linear-gradient(#3a4933,#1a2e20);color:#c3c2a1;box-shadow:inset 0 1px #e1d6a012}
.coliseum-size b{font:700 23px/1 var(--f-head)}.coliseum-size small{font-size:10px;line-height:1.2}
.coliseum-size.chosen{border-color:#dfc58a;background:linear-gradient(#736b42,#344c2e);color:#f7e3b5;box-shadow:inset 0 0 0 2px #d5ba7020,0 0 10px #dcc9811c}
.coliseum-size:disabled{border-color:#515540;color:#8e927b;background:#1c2a20;opacity:.6;cursor:default}
.coliseum-size:focus-visible,.coliseum-rules>summary:focus-visible{outline:2px solid #e3cb87;outline-offset:2px}
.royal-building-window .coliseum-mode-note{font-size:11px;line-height:1.35;color:#b4b394;margin:7px 0 0}
.coliseum-upgrade{padding:11px 12px;border:1px solid #a68d5966;background:linear-gradient(125deg,#37432d66,#14251a);border-radius:9px 3px 9px 3px}
.royal-building-window .coliseum-upgrade h3{font-size:18px;margin-bottom:7px}
.royal-building-window .coliseum-next-bonus{font-size:12px;color:#b9d4a5;line-height:1.35;margin:0 0 8px}
.coliseum-requirement{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#bcb391;line-height:1.3;margin:5px 0 9px}.coliseum-requirement b{white-space:nowrap;color:#cdbb8a}.coliseum-requirement.met{color:#b7dda9}
.coliseum-up-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.coliseum-cost{font-size:13px;color:#ddc690}.coliseum-cost>span{font-size:11px;color:#b2b093}
.royal-building-window .coliseum-up-bottom .btn,.royal-building-window .coliseum-upgrade>.btn{font-size:12px;padding:7px 12px;min-height:36px}
.royal-building-window .coliseum-up-status{font-size:12px;color:#c7bc99;line-height:1.4;margin:0 0 8px}.coliseum-up-status b{display:block;color:#cfdbad;margin-top:3px}
.coliseum-rules{color:#b4b493;font-size:12px;line-height:1.35}.coliseum-rules>summary{cursor:pointer;color:#c8b782;padding:3px 0}.coliseum-rules>ul{margin:7px 0 0;padding-inline-start:17px}.coliseum-rules li+li{margin-top:6px}
.royal-building-window .modal-foot{gap:10px;padding:9px 15px 12px;background:linear-gradient(#1b281bf2,#111c14);border-top:1px solid #a78c55}
.royal-building-window .modal-foot .btn{min-height:42px}.royal-building-window .modal-foot .go{flex:2;max-width:340px;background:linear-gradient(#e1cc91,#b29450 55%,#927136);border-color:#e5c993;color:#241c0d;font-weight:700}.royal-building-window .modal-foot .btn.alt{flex:1;max-width:180px}
@media(orientation:landscape) and (max-height:400px){.royal-building-window .modal-body{padding:11px 15px}.coliseum-layout{grid-template-columns:minmax(170px,205px) minmax(0,1fr);gap:19px}.coliseum-art{height:112px}.coliseum-building{height:114px}.royal-building-window .coliseum-title h2{font-size:26px}.coliseum-title{padding-block:5px}.royal-building-window .coliseum-tagline{font-size:11px;margin-top:6px}.coliseum-controls{gap:10px}.coliseum-size{min-height:50px}.royal-building-window h3{font-size:20px;margin-bottom:7px}.royal-building-window .modal-foot{padding:7px 12px 9px}}
@media(max-width:600px){.coliseum-layout{grid-template-columns:minmax(0,1fr);gap:16px}.coliseum-overview{max-width:260px;justify-self:center}.coliseum-art{height:125px}.coliseum-building{height:125px}.coliseum-up-bottom{flex-wrap:wrap}.royal-building-window .modal-foot .btn{padding-inline:8px;font-size:13px}}
@media(orientation:landscape) and (max-height:400px){.coliseum-controls{gap:6px}.coliseum-upgrade{padding:8px 10px}.royal-building-window .coliseum-next-bonus{margin-bottom:6px}.coliseum-rules>summary{padding-block:0}}

/* Shared frame for the remaining castle buildings and menu dialogs. */
.royal-building-window .coliseum-sizes{grid-template-columns:repeat(var(--format-count,4),minmax(0,1fr))}
.royal-building-window:not(.coliseum-window) .coliseum-size>b{font-size:19px;line-height:1.15;overflow-wrap:anywhere}
.royal-building-window .building-description{font-size:13px;line-height:1.45;color:#c3bfa0;margin:0}
.building-research{border-top:1px solid #9f8b5555;padding-top:10px;color:#c4bd9c;font-size:12px}.building-research>summary{cursor:pointer;font:700 19px/1.15 var(--f-head);color:#e0ca99;padding:3px 0}
.building-research>.mgo>.sect:first-child{display:none}.building-research .rs-tier{padding-top:7px}.building-research .rs-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}.building-research .rs-it{background:linear-gradient(#34402a,#19291e);border-color:#9a8454}.building-research .rs-it.done{border-color:#9cca96}.building-research .rs-it .nm{line-height:1.25;overflow-wrap:anywhere}.building-training .row{gap:7px;margin-top:8px}.building-training .btn{font-size:12px;min-height:36px}
.modal-box:not(.royal-building-window){border-color:#c0a570;border-radius:6px 18px 6px 18px;box-shadow:inset 0 0 0 3px #0d1b12,inset 0 0 0 4px #bca96d40,0 18px 65px #000c}
.modal-box:not(.royal-building-window) .modal-foot{background:linear-gradient(#1b281bf2,#111c14);border-top-color:#a78c55}
.modal-box .card{background:radial-gradient(ellipse at 0 0,#68734a25,transparent 65%),linear-gradient(125deg,#2c3827,#18271d);border-color:#9b8857}
.modal-box .team{background:linear-gradient(90deg,#294d5540,#17271f);box-shadow:inset 0 0 0 1px #77865a66}.modal-box .team.red{background:linear-gradient(90deg,#754b3540,#17271f)}
.royal-building-window .coliseum-overview{position:sticky;top:0;align-self:start}
@media(max-width:600px){.royal-building-window .coliseum-overview{position:relative}}

/* Approved illustration in the normal siege pre-battle window. */
.sc-m-survival.siege-art{overflow:hidden;background:linear-gradient(#10221a77,#10221a77),url(img/bg/siege-citadel.webp) center/cover}
.siege-art>img{position:relative;width:100%;height:100%;object-fit:contain;display:block;z-index:1}
.sc-m-survival.siege-art:after{display:none}


.legion-pre-head{background-size:cover;background-position:center right;border-radius:14px;padding:18px;min-height:150px;box-shadow:inset 0 0 80px rgba(5,8,35,.72)}.legion-pre-head .pre-title{background:rgba(8,10,30,.58);padding:10px 14px;border-radius:10px;text-shadow:0 2px 5px #000}

.scene.mode-art{background-size:cover;background-position:center;overflow:hidden}.scene.mode-art:after{display:none}
.starter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:62vh;overflow:auto;padding:4px}.starter-card{background:linear-gradient(180deg,#18243a,#0e1422);border:1px solid color-mix(in srgb,var(--hc) 55%,#ffffff22);border-radius:10px;padding:8px;text-align:center;min-width:0}.starter-card h3{font-size:clamp(12px,1.8vw,18px);margin:4px 0}.starter-card p{font-size:11px;line-height:1.25;min-height:42px;margin:4px 0}.starter-portrait,.starter-scene{width:100%;height:100px;object-fit:contain;border-radius:8px;background:#090d16}.starter-scene{display:block}.starter-stars{color:#ffd36a;letter-spacing:1px}.starter-skills{display:flex;justify-content:center;gap:3px;margin:5px}.starter-skills span{font-size:16px}.modal-box.starter-modal{width:min(900px,96vw);max-height:96vh}.starter-modal .modal-body{max-width:none}.starter-modal h2{margin:2px 0}.starter-modal .muted{margin:2px 0 6px}.starter-grid{max-height:none;overflow:visible}@media(max-height:380px){.starter-portrait,.starter-scene{height:78px}.starter-card p{min-height:0}.starter-card h3{margin:2px 0}}@media(max-width:820px){.starter-grid{gap:4px}.starter-card{padding:4px}.starter-card p{font-size:9px;min-height:34px}.starter-portrait,.starter-scene{height:72px}.starter-card .btn{font-size:10px;padding:5px 4px}}

/* Узкие экраны: текст деловых карточек не наезжает на сроки и стрелку. */
.royal-jobs .royal-job-title{min-width:0;overflow-wrap:anywhere;word-break:break-word}.royal-jobs .royal-job>b{min-width:58px}.royal-job-chevron{flex:none}
.res-btn{border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:2px 5px;display:inline-flex;align-items:center;gap:3px}.res-btn:hover{filter:brightness(1.25)}
.quest-reward-pop{text-align:center;padding:12px}.quest-reward-pop img{width:130px;height:110px;object-fit:contain;filter:drop-shadow(0 0 18px #ffd86a);animation:questChestPop .45s ease-out}.quest-reward-pop .power{font-size:18px;color:#ffe49a}@keyframes questChestPop{from{transform:scale(.65);opacity:.2}to{transform:scale(1);opacity:1}}
