/* Reference-driven royal material system. Gameplay and data remain separate. */
.royal-banner{--frame:#8e6b3b;--wood:url('/royal-wood-v2.webp');position:relative;padding:14px 18px 20px!important;gap:12px;border:5px ridge #3e2919!important;border-radius:3px;background:linear-gradient(#120b0640,#180e0870),var(--wood) center/100% 100%!important;box-shadow:inset 0 0 0 1px #c49a5338,inset 0 0 20px #000b,0 5px 16px #0009;color:#f6e4b7}
.royal-banner:before{content:attr(data-rank-title);display:block;align-self:stretch;text-align:center;padding:5px 10px 7px;font:500 24px/1.1 Georgia,serif;color:#39240f;text-shadow:0 1px #fff4ce;background:linear-gradient(110deg,#bda274,#e5d2a6 38%,#cbb58a 70%,#a7885c);border:1px solid #8d6c3d;box-shadow:0 2px 5px #000a,inset 0 0 9px #75502777;clip-path:polygon(1% 0,99% 1%,100% 12%,99.3% 23%,100% 37%,99.3% 49%,100% 64%,99% 78%,99.5% 97%,70% 100%,44% 98%,15% 100%,0 97%,1% 79%,0 60%,.6% 40%,0 20%)}
.banner-identity-row{padding:6px 9px;border:1px solid #98704366;border-radius:8px;background:linear-gradient(#25180f44,#10090466);box-shadow:inset 0 2px 4px #0008;box-sizing:border-box}
.royal-banner .lobby-identity{gap:14px}.royal-banner .avatar-button{width:76px!important;height:76px!important;min-width:76px;min-height:76px;padding:0;border:6px ridge #c8bda2;border-radius:50%;background:#32281b;box-shadow:0 0 0 2px #120b05,0 4px 6px #000a,inset 0 0 0 2px #514333;overflow:visible}.royal-banner .avatar-button img{border-radius:50%;inset:0!important;width:100%!important;height:100%!important;object-fit:cover}.royal-banner h1{font:700 30px/1.15 system-ui!important;color:#fff1ce;text-shadow:0 2px 2px #000;gap:5px;overflow:visible!important}.royal-banner .home-rank{font:14px/1.3 system-ui;color:#eed6a1;letter-spacing:0;margin-top:3px;max-width:380px}.royal-banner .hero-name-edit{font-size:12px!important;border:0!important;background:none!important;min-width:20px!important;width:20px;padding:0!important;opacity:.75}.banner-prestige{font-size:17px;border-color:#a68552;padding-left:9px}.banner-prestige .royal-icon{width:26px;height:30px}.royal-banner .home-tools{gap:8px}.royal-banner .settings-button,.royal-banner .banner-language{height:53px;min-width:48px;width:53px;border:2px ridge #805e36;border-radius:10px;background:linear-gradient(#3e2a1a,#180f08);box-shadow:inset 0 2px 3px #000b,0 1px #d7ae6a77;color:#f4deaf;font:19px Georgia}.royal-banner .banner-language{width:48px;padding:5px}.royal-banner .settings-button .royal-icon{width:35px;height:35px;filter:drop-shadow(0 2px 2px #000)}
.royal-banner .home-currencies{gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 60px}.royal-banner .home-currencies>.lobby-coins,.royal-banner .home-currencies>.crystal-balance{min-height:58px;border:2px ridge #b99960!important;background:linear-gradient(#4c311bcc,#160d07e8)!important;box-shadow:inset 0 2px 8px #000a,0 2px 4px #0008!important;padding:6px 15px!important;gap:10px!important}.royal-banner .home-currencies button strong{font:700 28px/1 system-ui!important;text-shadow:0 2px 2px #000}.royal-banner .royal-icon{width:36px;height:36px;filter:drop-shadow(0 2px 2px #000a)}.royal-banner .counter-add{border:1px solid #967540;border-radius:3px!important;color:#c5a369;opacity:.7;font-size:16px!important}.royal-banner .home-chat{width:60px;height:58px;min-height:58px!important;border:2px ridge #d0ae6c!important;border-radius:11px!important;background:linear-gradient(135deg,#8b46a1,#401850 70%)!important;box-shadow:inset 0 2px 4px #dcb4ee55,0 3px 5px #000a}.royal-banner .home-chat .royal-icon{width:37px;height:37px}.banner-inbox-count{right:-5px;top:-7px;background:linear-gradient(#d24850,#8f202c);border:1px solid #ea9a95;font-size:12px;box-shadow:0 1px 4px #0008}
.royal-banner .player-progress{min-height:38px!important;padding:4px 11px!important;gap:10px;border:2px ridge #7b592f;background:linear-gradient(#1a110be0,#2b190ee0);box-shadow:inset 0 2px 4px #000a;font:15px system-ui}.royal-banner .player-progress progress{height:13px!important;border:1px solid #1a120d;box-shadow:0 0 0 1px #8a6d42,inset 0 2px #000;background:#252725}.royal-banner progress::-webkit-progress-bar{background:linear-gradient(#15191a,#373b39)}.royal-banner progress::-webkit-progress-value{background:linear-gradient(#ffeb98,#d39d32 48%,#ac7322 52%,#e5b545);box-shadow:inset 0 1px #fff5bb}.royal-banner [data-xp]{color:#f3ddb6}
.royal-banner[data-tier='2']{border-color:#614023!important}.royal-banner[data-tier='2'] .avatar-button{border-color:#ad7c4d}.royal-banner[data-tier='3']{border-color:#596066!important}.royal-banner[data-tier='3'] .avatar-button{border-color:#a2a7a5}.royal-banner[data-tier='4']{border-color:#aaa18d!important}.royal-banner[data-tier='4'] .avatar-button{border-color:#d2d4d1}.royal-banner[data-tier='5']{border-color:#a88347!important;box-shadow:inset 0 0 0 1px #e6d19a,inset 0 0 20px #000a,0 0 14px #b28e4a44}.royal-banner[data-tier='5']:before{background:none;color:#efd28d;clip-path:none;border:0;box-shadow:none;text-shadow:0 2px 2px #000,0 0 6px #d8a84866;font-size:28px}.royal-banner[data-tier='5'] .banner-identity-row{border:3px double #d4b476;box-shadow:inset 0 0 8px #a9894644,0 0 0 1px #251307;background:linear-gradient(100deg,#2b1b0ed9,#4c321e99,#29190ee0)}.royal-banner[data-tier='5'] .avatar-button{border:6px ridge #e4c46f;box-shadow:0 0 0 2px #4c2b69,0 0 0 4px #be9859,0 0 16px #f6cd6a66}.royal-banner[data-tier='5'] .avatar-button:after{content:'';position:absolute;inset:-7px;border:5px dotted #9d5dc8;border-radius:50%;pointer-events:none;filter:drop-shadow(0 0 1px #eddab0)}.royal-banner[data-tier='5'] .crystal-balance{box-shadow:inset 0 0 10px #36b6ee33,0 0 12px #7cd9f966!important}.royal-banner[data-tier='5'] .crystal-balance strong{color:#84efff!important;text-shadow:0 0 8px #1399c6}.royal-banner[data-tier='5'] .home-chat{box-shadow:0 0 14px #96d7fa99,inset 0 1px #fff5}.royal-banner[data-tier='5'] .player-progress{border-color:#6984b3;background:#121624;box-shadow:0 0 8px #73bbfa66}.royal-banner[data-tier='5'] progress::-webkit-progress-value{background:linear-gradient(#a7ebff,#689acc 40%,#7752b4 55%,#a3c8ed);box-shadow:0 0 8px #89deff}
/* Compact, carved menu panels, with real controls above the material artwork. */
.royal-menu,.royal-system-settings,dialog.hero-profile{background:linear-gradient(#1c100bd9,#24160de0),url('/royal-wood-v2.webp') center/100% 100%!important;border:3px ridge #b39763!important;border-radius:7px;box-shadow:inset 0 0 0 1px #362413,0 18px 60px #000b;color:#ead8b4;max-width:1000px!important}.royal-menu .royal-banner,.royal-system-settings .royal-banner{padding:8px 12px 10px!important;gap:7px;border-width:2px!important}.royal-menu .royal-banner:before,.royal-system-settings .royal-banner:before{display:none}.royal-menu .royal-banner .avatar-button,.royal-system-settings .royal-banner .avatar-button{width:52px!important;height:52px!important;min-width:52px;min-height:52px;border-width:4px}.royal-menu .royal-banner h1,.royal-system-settings .royal-banner h1{font-size:23px!important}.royal-menu .royal-banner .home-rank,.royal-system-settings .royal-banner .home-rank{font-size:11px}.royal-menu .royal-banner .banner-identity-row,.royal-system-settings .royal-banner .banner-identity-row{padding:3px 5px;border:0;background:none;box-shadow:none}.royal-menu .royal-banner .home-currencies button,.royal-system-settings .royal-banner .home-currencies button{min-height:45px!important;height:45px}.royal-menu .royal-banner .home-currencies button strong,.royal-system-settings .royal-banner .home-currencies button strong{font-size:23px!important}.royal-menu .royal-banner .player-progress,.royal-system-settings .royal-banner .player-progress{min-height:32px!important;font-size:12px}.royal-menu-heading,.royal-system-settings .dialog-head{border-top:1px solid #b2935f;border-bottom:1px solid #b2935f;box-shadow:0 1px #080503,inset 0 1px #080503;padding:6px 0;margin:8px 0 14px}.royal-menu-heading h1,.royal-system-settings h1{font:500 20px Georgia,serif;letter-spacing:1px;text-transform:uppercase;color:#e7cfa0}.royal-menu-heading button{border-radius:50%;background:#24160f;min-height:44px}.royal-menu-status:empty{display:none}.royal-card{padding:16px;border:1px solid #9b784b77;border-radius:4px;background:linear-gradient(#24160ed9,#1b100bd9);box-shadow:inset 0 1px #ddb77d13}.royal-card h2{font:500 17px/1.2 Georgia,serif;text-transform:uppercase;letter-spacing:.6px;border-bottom:1px solid #96744666;padding-bottom:9px;margin-bottom:12px;color:#e8d1a7}.royal-card p{font-size:12px;line-height:1.5}.royal-menu button,.royal-system-settings button{border-radius:16px;border:1px solid #9f835b;background:linear-gradient(#59412c,#2d1b10 55%,#352115);box-shadow:inset 0 1px #e1bd8244,0 2px 2px #0007;font:500 12px/1.2 system-ui;min-height:44px}.royal-menu .primary,.royal-system-settings .primary{border:1px solid #dfc28c;background:linear-gradient(#a9894d,#65461f);color:#fff0c7}.royal-menu button:disabled{opacity:.55}.royal-pack{gap:9px;border:1px solid #ac906b;border-radius:8px;background:linear-gradient(#362317aa,#120c08aa);box-shadow:inset 0 0 6px #000a}.royal-pack strong{font-size:13px}.royal-pack button{border-radius:20px!important;font-size:10px!important}.royal-pack small{font-size:9px}.royal-login-day{border-radius:3px;padding:6px 3px;background:#2a1b10;box-shadow:inset 0 1px #cba26122}.royal-login-day.ready{background:linear-gradient(#8d6935,#493119);border-color:#e0c68c;box-shadow:0 0 6px #e7bf4a44}.royal-coins .royal-shop-grid{grid-template-areas:'packs daily' 'packs refer';grid-template-columns:1.1fr 1fr}.royal-menu-coins .royal-shop-grid{grid-template-areas:'packs daily' 'packs refer';grid-template-columns:1.1fr 1fr}.royal-menu-coins .royal-shop-grid>.royal-card:nth-child(1){grid-area:daily}.royal-menu-coins .royal-shop-grid>.royal-card:nth-child(2){grid-area:packs}.royal-menu-coins .royal-shop-grid>.royal-card:nth-child(3){grid-area:refer}.royal-menu-coins .royal-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.royal-message-entry{padding:10px 12px;gap:10px;border-radius:3px;border-color:#9a784e88;background:linear-gradient(#352115a8,#160d08bf);box-shadow:inset 0 1px #d4b17d11}.royal-message-entry strong{font-size:13px;color:#f4e4c4}.royal-message-entry p,.royal-message-entry small{font-size:11px}.royal-message-entry>.royal-icon{background:#3a2919;border:1px solid #9e8256;border-radius:50%;padding:5px}.royal-message-entry button{padding:6px 12px;margin-top:0;float:right}.royal-message-tabs button,.royal-settings-tabs button{min-height:44px;font-size:12px}.royal-game-checklist{grid-template-columns:repeat(3,1fr);gap:8px}.royal-game-checklist button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:105px;padding:8px 4px;border:0;background:none;box-shadow:none;font-size:11px}.royal-game-symbol{display:grid;place-items:center;width:52px;height:56px;font:700 32px Georgia;color:#e6d4a4;background:linear-gradient(130deg,#806744,#352b20 50%,#8f724b);border:3px ridge #c1a578;border-radius:10px 10px 20px 20px;text-shadow:0 2px #000;box-shadow:0 3px 5px #000a,inset 0 0 5px #000a}.game-konker{color:#e9c1aa;background:linear-gradient(#6b3424,#2d2018);font-size:26px}.game-dama{color:#7ac27c;background:linear-gradient(#54704f,#192f20)}.game-memory{color:#9ce8ff;background:linear-gradient(#4d6487,#172943)}.game-building{color:#e2c685;background:linear-gradient(#78502f,#302117)}.royal-tier-steps{position:relative;gap:5px}.royal-tier-steps:before{content:'';position:absolute;left:8%;right:8%;top:32px;height:2px;background:#9b7945;z-index:0}.royal-tier-steps article{position:relative;z-index:1;border:0;background:none;padding:8px 3px}.royal-tier-steps .royal-icon{padding:7px;border:2px ridge #a98a50;background:radial-gradient(#9b804f,#4b351c);border-radius:50%;width:43px;height:43px;box-sizing:border-box}.royal-tier-steps span{font-size:10px}.royal-tier-steps strong{font-size:12px}.royal-tier-steps article[data-tier='5']{background:none}.royal-goal-row{font-size:12px;margin:13px 0}.royal-settings-account,.royal-settings-preferences{background:#21150c99;border:1px solid #99734777;border-radius:4px}.royal-language-switch,.royal-settings-alerts{border-color:#92734d77;border-radius:4px}.royal-settings-alerts label input,.royal-settings-preferences>label input{appearance:none;width:36px;height:20px;position:relative;border-radius:20px;border:1px solid #bc9b62;background:#25180d;box-shadow:inset 0 2px 4px #000a;cursor:pointer;flex:none}.royal-settings-alerts label input:before,.royal-settings-preferences>label input:before{content:'';position:absolute;width:16px;height:16px;left:1px;top:1px;background:linear-gradient(#d9bd82,#8e6a35);border-radius:50%;box-shadow:0 1px 3px #0008;transition:transform .15s}.royal-settings-alerts label input:checked,.royal-settings-preferences>label input:checked{background:#89713a}.royal-settings-alerts label input:checked:before,.royal-settings-preferences>label input:checked:before{transform:translateX(16px)}
/* Adult painted warrior, paper-doll slots and inventory, matching the reference's proportions. */
dialog.hero-profile{max-width:1000px!important;padding:15px 20px 190px!important}.hero-profile h1{font:500 22px Georgia,serif;text-transform:uppercase;letter-spacing:1px;color:#dfc59b}.hero-profile .profile-summary{background:#21140da8;border-radius:4px;border-color:#9e7c4c66;grid-template-rows:36px 36px}.hero-profile .profile-picture{width:68px;height:68px;border:4px ridge #b9a06f;background:#261a10;overflow:visible}.hero-tabs{border-bottom:1px solid #ae8b56}.hero-tabs button{border-radius:20px!important;min-height:44px;font-size:12px!important;padding:9px 20px}.hero-layout{display:grid;grid-template-columns:minmax(350px,1fr) minmax(300px,1fr);gap:20px;position:relative}.hero-equipment-column{grid-column:1;grid-row:1;padding:65px 0 0;background:none;border:0;border-radius:0;z-index:2;pointer-events:none}.hero-equipment-column>h2{display:none}.hero-equipment-column .hero-slots{display:grid;grid-template-columns:66px 66px;justify-content:space-between;gap:14px;width:100%;max-width:none}.hero-equipment-column .hero-slot{min-height:76px;max-width:66px;pointer-events:auto;padding:3px;border:2px ridge #a88b5a;border-radius:5px;background:linear-gradient(#5b442ccc,#24160ee8);box-shadow:inset 0 0 6px #0009,0 2px 4px #0008}.hero-equipment-column .hero-slot svg{width:45px;height:45px;filter:drop-shadow(0 2px 2px #0009)}.hero-equipment-column .hero-slot span{font-size:10px}.hero-equipment-column .hero-slot small{font-size:8px;color:#c1a778}.hero-showcase{grid-column:1;grid-row:1;padding:15px 38px 0;background:radial-gradient(ellipse at 50% 80%,#b8903d33,transparent 64%);min-width:0}.hero-showcase>h2{font:11px system-ui;letter-spacing:2px;color:#b99c69;text-align:center;margin:5px 0 0}.hero-warrior{width:100%;max-width:340px;margin:auto;filter:drop-shadow(0 6px 5px #000b)}.hero-warrior>svg{width:100%;height:auto;max-height:570px;display:block;animation:royal-art-arrive .22s ease-out}.hero-painted-figure{transform-origin:50% 100%;animation:royal-hero-idle 7s ease-in-out infinite}.hero-ready .hero-painted-figure{transform:translateY(-3px) scale(1.02);animation:none}.hero-pose{display:block;position:relative;z-index:3;min-height:44px;margin:0 auto;border-radius:20px;font-size:11px}.hero-showcase>.hero-fine{font-size:10px;text-align:center;margin:9px -30px}.hero-inventory{grid-column:2;grid-row:1;padding:10px 12px;background:#24160d88;border:1px solid #95744766;border-radius:4px;min-width:0}.hero-inventory h2{font:500 16px Georgia;text-transform:uppercase;letter-spacing:.4px;margin:6px 0 10px;color:#e2c99e}.hero-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.hero-stat-grid>div{border-radius:3px;background:#49301c88;padding:8px 4px;text-align:center}.hero-stat-grid dt{font-size:9px;color:#bfa87f}.hero-stat-grid dd{font-size:17px;color:#f2dfb1}.hero-inventory>.hero-goal{font-size:11px;margin-bottom:14px}.hero-gender{gap:4px}.hero-gender button,.hero-categories button{border-radius:16px;min-height:44px;font-size:10px;padding:7px 8px;background:linear-gradient(#60482d,#302015);border:1px solid #9d7c4e}.hero-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:10px 0}.hero-item-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:375px}.hero-item{position:relative;min-height:128px;padding:5px 3px;border:2px ridge #9c7d4e;border-radius:4px;background:linear-gradient(#64462b77,#20140ccc);box-shadow:inset 0 0 6px #0008}.hero-item svg{width:65px;height:65px;filter:drop-shadow(0 2px 3px #000a)}.hero-item strong{font-size:10px}.hero-item span{font-size:9px}.hero-item small{font-size:8px}.hero-item em{font-size:8px;letter-spacing:.3px}.hero-item.equipped{border-color:#e8cc8e;box-shadow:inset 0 0 12px #b58b3944,0 0 5px #c7aa5555}.hero-item.locked svg{filter:grayscale(.7) brightness(.5)}.hero-inventory>p.hero-fine{font-size:10px;line-height:1.4}.hero-footer{max-width:956px;background:linear-gradient(#48301d,#25160d);border:1px solid #a1834d;border-radius:5px;box-shadow:0 0 12px #000a}.hero-footer button{border-radius:20px;min-height:44px;padding:7px 17px;font-size:12px}.hero-account{background:#20140cbd;border-radius:4px;border-color:#9f7c4855}
@keyframes royal-hero-idle{0%,100%{transform:scale(1,1)}50%{transform:scale(1.003,1.007)}}@keyframes royal-art-arrive{from{opacity:.4;transform:translate3d(0,4px,0)}to{opacity:1;transform:none}}
@media(max-width:700px){.royal-banner{padding:10px 11px 14px!important;gap:10px}.royal-banner:before{font-size:21px;padding:5px}.royal-banner[data-tier='5']:before{font-size:22px}.banner-identity-row{gap:5px;padding:5px}.royal-banner .avatar-button{width:62px!important;height:62px!important;min-width:62px;min-height:62px;border-width:5px}.royal-banner .lobby-identity{gap:9px}.royal-banner h1{font-size:24px!important;gap:3px}.royal-banner .home-rank{font-size:11px;max-width:170px}.royal-banner .hero-name-edit{display:none}.royal-banner .banner-prestige{font-size:13px;padding-left:5px}.royal-banner .banner-prestige .royal-icon{width:21px;height:23px}.royal-banner .home-tools{gap:5px}.royal-banner .settings-button,.royal-banner .banner-language{min-width:40px;width:40px;height:45px;min-height:45px;font-size:15px}.royal-banner .settings-button{padding:5px!important}.royal-banner .settings-button .royal-icon{width:28px;height:28px}.royal-banner .home-currencies{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 49px;gap:8px}.royal-banner .home-currencies>.lobby-coins,.royal-banner .home-currencies>.crystal-balance{min-height:51px;padding:6px 9px!important;gap:7px!important}.royal-banner .home-currencies button strong{font-size:23px!important}.royal-banner .royal-icon{width:29px;height:29px}.royal-banner .home-chat{width:49px;height:51px;min-height:51px!important}.royal-banner .home-chat .royal-icon{width:30px;height:30px}.royal-banner .counter-add{display:none!important}.royal-banner .player-progress{font-size:11px;gap:7px;min-height:36px!important;padding:5px 9px!important}.royal-banner .player-progress progress{height:10px!important}.royal-menu,.royal-system-settings{padding:8px 8px 100px!important;border-radius:0!important}.royal-menu .royal-banner h1,.royal-system-settings .royal-banner h1{font-size:21px!important}.royal-menu .royal-banner .home-rank,.royal-system-settings .royal-banner .home-rank{font-size:10px;max-width:160px}.royal-menu .royal-banner .player-progress,.royal-system-settings .royal-banner .player-progress{font-size:10px;min-height:34px!important}.royal-menu-heading h1{font-size:16px;letter-spacing:.4px}.royal-shop-grid,.royal-menu-coins .royal-shop-grid{grid-template-columns:1fr;grid-template-areas:'daily' 'packs' 'refer';gap:10px}.royal-card{padding:12px}.royal-card h2{font-size:16px}.royal-pack{padding:10px 4px}.royal-game-checklist{grid-template-columns:repeat(3,1fr)}.royal-tier-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.royal-tier-steps .royal-icon{width:37px;height:37px}.royal-tier-steps span{display:none}.royal-tier-steps small,.royal-tier-steps em{font-size:9px}.royal-tier-steps strong{font-size:10px}.royal-tier-steps:before{top:28px}.royal-message-entry strong{font-size:12px}.royal-message-entry button{float:none}.royal-settings-tabs{gap:4px}.royal-settings-tabs button{font-size:11px;padding:8px}.royal-language-switch button{font-size:16px}dialog.hero-profile{padding:10px 10px 190px!important}.hero-profile h1{font-size:19px}.hero-profile .profile-summary{padding:8px;grid-template-columns:60px minmax(0,1fr) auto}.hero-profile .profile-picture{width:56px;height:56px}.hero-layout{display:grid;grid-template-columns:1fr;gap:12px}.hero-equipment-column,.hero-showcase{grid-column:1;grid-row:1;width:100%;box-sizing:border-box}.hero-equipment-column{padding-top:55px}.hero-equipment-column .hero-slots{grid-template-columns:58px 58px;gap:12px}.hero-equipment-column .hero-slot{min-height:72px;max-width:58px}.hero-equipment-column .hero-slot svg{width:40px;height:40px}.hero-showcase{padding:10px 35px 0;min-height:420px}.hero-warrior{max-width:285px}.hero-warrior>svg{max-height:475px}.hero-showcase>.hero-fine{margin:8px -25px}.hero-inventory{grid-column:1;grid-row:2;padding:12px}.hero-item-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}.hero-stat-grid{grid-template-columns:repeat(4,1fr)}.hero-inventory .hero-item span{font-size:9px}.hero-footer{width:calc(100% - 20px)}.hero-footer button{padding:8px 12px}.hero-footer>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hero-painted-figure,.hero-warrior>svg{animation:none!important}.royal-settings-alerts label input:before,.royal-settings-preferences>label input:before{transition:none}}
/* Keep the complete adult silhouette visible above the fixed actions on desktop. */
@media(min-width:701px){.hero-profile .profile-summary{padding:8px 12px;grid-template-rows:32px 32px;min-height:80px}.hero-warrior{max-width:285px}.hero-warrior>svg{max-height:430px}.hero-categories{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-categories button{font-size:9px;padding:6px 4px;min-width:0}.hero-item-grid{max-height:250px}.hero-item{min-height:108px}.hero-item svg{width:53px;height:53px}.hero-inventory h2{font-size:14px}.hero-inventory>.hero-goal{margin-bottom:10px}.hero-showcase{padding-top:10px}.hero-equipment-column{padding-top:45px}.hero-equipment-column .hero-slots{gap:11px}.hero-equipment-column .hero-slot{min-height:73px}}
.hero-inventory .hero-item-grid .hero-item{min-height:112px;padding:6px 4px;gap:3px}.hero-inventory .hero-item strong{font-size:10px}.hero-inventory .hero-item span{font-size:9px}.hero-inventory .hero-item small{font-size:8px}.hero-inventory .hero-item em{font-size:8px}.hero-inventory .hero-item-grid{max-height:270px}.hero-profile .hero-layout{margin-top:9px}.royal-banner .banner-language{min-width:44px!important;width:44px!important}
@media(min-width:701px){.hero-warrior>svg{max-height:clamp(280px,calc(100dvh - 470px),430px)}}
@media(min-width:701px) and (max-height:800px){.hero-equipment-column{padding-top:35px}.hero-equipment-column .hero-slots{gap:6px}.hero-equipment-column .hero-slot{min-height:62px}.hero-equipment-column .hero-slot svg{width:35px;height:35px}}
.royal-banner h1{text-transform:none!important;letter-spacing:0!important}.royal-banner .player-progress{min-height:44px!important}.royal-banner[data-tier='1'] .avatar-button,.royal-banner[data-tier='5'] .avatar-button{border:5px solid transparent;box-shadow:0 2px 6px #0009}.royal-banner[data-tier='1'] .avatar-button:after,.royal-banner[data-tier='5'] .avatar-button:after{content:'';position:absolute;inset:-11px;z-index:2;border:0;border-radius:0;background:url('/royal-frames-v2.webp') left center/200% 100% no-repeat;pointer-events:none;filter:drop-shadow(0 2px 2px #0008)}.royal-banner[data-tier='5'] .avatar-button:after{background-position:right center;filter:drop-shadow(0 0 4px #d1aa6555)}
/* Appearance controls v3: quieter header and explicit per-slot visibility. */
.royal-banner:before,.royal-banner .banner-language{display:none!important;content:none!important}.hero-slot-wrap{position:relative;pointer-events:auto;min-width:0;display:flex;flex-direction:column;align-items:center}.hero-equipment-column .hero-slot-wrap .hero-slot{width:100%;padding-top:7px}.hero-slot-hidden{opacity:.4;filter:grayscale(.7)}.hero-slot-toggle{min-height:44px;width:100%;border:1px solid #ac8c56;background:linear-gradient(#4e3b25,#24170e);color:#f0dbac;border-radius:0 0 6px 6px;margin-top:2px;font:11px system-ui;cursor:pointer;box-shadow:inset 0 1px #e0be7933}.hero-slot-toggle[aria-checked=false]{background:#1c1712;color:#a99170}.hero-slot-toggle:focus-visible{outline:3px solid #8cdde8;outline-offset:2px}.hero-equipment-column .hero-slots{gap:8px}.hero-equipment-column .hero-slot-wrap .hero-slot{min-height:58px}.hero-equipment-column .hero-slot-wrap .hero-slot svg{height:32px;width:38px}.hero-equipment-column .hero-slot-wrap .hero-slot small{display:none}.royal-preference-top{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.royal-preference-top fieldset{min-width:0;margin:0;padding:12px;border:1px solid #8e704577;border-radius:4px;display:flex;gap:6px;align-items:center}.royal-preference-top legend{padding:0 6px;font:13px system-ui;color:#d5bc8f}.royal-preference-top button{flex:1;min-height:44px;padding:8px 6px;font-size:13px}.royal-warrior-style [aria-pressed=true]{border-color:#f1d38c;background:linear-gradient(#9b7338,#4d321a);color:#fff1c7}.royal-warrior-style button:disabled{opacity:.5}.hero-gender{display:none!important}
@media(max-width:700px){.royal-preference-top{grid-template-columns:1fr;gap:10px}.royal-preference-top fieldset{padding:10px}.hero-equipment-column .hero-slot-wrap .hero-slot{min-height:57px}.hero-slot-toggle{font-size:10px}.hero-equipment-column .hero-slots{gap:7px}.hero-equipment-column{padding-top:45px}.hero-slot-wrap .hero-slot span{font-size:9px}}
@media(min-width:701px) and (max-height:800px){.hero-equipment-column .hero-slot-wrap .hero-slot{min-height:50px}.hero-equipment-column .hero-slot-wrap .hero-slot svg{height:25px;width:30px}.hero-equipment-column .hero-slots{gap:4px}}
/* Shared body-space pivot keeps the hand and held weapon together. */
.hero-arm-rig{transform-box:view-box;transform-origin:145px 245px}
.hero-stance-change .hero-arm-rig{animation:hero-grip-shift .32s cubic-bezier(.22,.8,.3,1) both}
@keyframes hero-grip-shift{from{transform:rotate(var(--arm-from))}to{transform:rotate(var(--arm-to))}}
.hero-stance-label{text-align:center;color:#d6bd83;font-size:.78rem;margin:.3rem 0}
@media(prefers-reduced-motion:reduce){.hero-stance-change .hero-arm-rig{animation:none}}
/* Original whole-character tier artwork: no separated overlays or visibility switches. */
.hero-inventory .hero-item svg{width:86px;height:142px;max-width:100%}
.hero-inventory .hero-item{min-height:192px}
.hero-equipment-column .hero-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:70px}
.royal-gift-warrior{height:300px;text-align:center}.royal-gift-warrior svg{height:100%;width:auto;max-width:100%;filter:drop-shadow(0 8px 12px #0008)}
