/* Concept-matched pre-game skin. All overrides stop at the gameplay boundary. */
body.royal-menu::before{background:linear-gradient(#09234a22,#06152b55),url('/assets/menu/castle.webp') center/cover no-repeat}
.royal-menu .topbar{display:none}
.royal-menu main{max-width:1040px;padding:12px 14px 24px}
.royal-menu #home{box-sizing:border-box;max-width:960px;min-height:980px;padding:20px 24px 190px;margin:0 auto;background:url('/assets/menu/castle.webp') center/100% 100% no-repeat;border:2px solid #ffc75d;border-radius:3px;box-shadow:0 0 0 3px #10233c,0 0 0 4px #c18d36,0 12px 40px #0008,inset 0 0 0 3px #071a32}
.royal-menu #home::before{content:"";position:absolute;inset:5px;pointer-events:none;border:1px solid #ffdf85;clip-path:polygon(0 0,22px 0,22px 2px,2px 2px,2px 22px,0 22px,0 0,100% 0,100% 22px,calc(100% - 2px) 22px,calc(100% - 2px) 2px,calc(100% - 22px) 2px,calc(100% - 22px) 0,100% 0,100% 100%,calc(100% - 22px) 100%,calc(100% - 22px) calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) calc(100% - 22px),100% calc(100% - 22px),100% 100%,0 100%,0 calc(100% - 22px),2px calc(100% - 22px),2px calc(100% - 2px),22px calc(100% - 2px),22px 100%,0 100%)}
.royal-home-heading{position:relative;display:flex;flex-direction:row;align-items:center;gap:0;margin:0 0 14px;padding-left:9%}
.royal-menu #home .royal-logo{width:66%;flex-shrink:0;margin:0 -3% 0 0;line-height:0;z-index:2}
.royal-logo img{width:100%;height:auto;display:block;filter:drop-shadow(0 4px 3px #07152899)}
.royal-menu #home .account-nav{position:relative;display:flex;flex-wrap:nowrap;gap:0;min-width:0;background:linear-gradient(90deg,#0a2039ef,#112d47e8);border-block:1px solid #bba36c;padding:3px 2px;flex:1}
.royal-menu #home .profile-trigger{border:0;border-radius:0;background:none;box-shadow:none;min-width:0;gap:6px;padding:2px;flex:1;min-height:44px}
.royal-menu #home .profile-trigger img{width:38px;height:38px;border:2px solid #edbf60}
.royal-menu #home .profile-trigger strong{font-family:Georgia,serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;font-weight:400;min-width:0}
.royal-menu #home #openMenuSettings{border:0;background:none;box-shadow:none;padding:0;width:38px;min-width:38px;min-height:44px;font-size:25px;color:#d5d4cc}
.profile-dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:8;width:210px;padding:8px;background:#081a30;border:1px solid #e4b352;box-shadow:0 8px 20px #0009}
.profile-dropdown[hidden]{display:none}.royal-menu #home .profile-dropdown button{width:100%;text-align:left;margin:2px 0;font-family:Georgia,serif}
.royal-menu #home .join-ways{width:68%;max-width:650px;gap:13px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}
.royal-menu #home .join-panel.menu-card{min-height:0;aspect-ratio:1/1.01;border:2px solid #e9b64d;border-radius:3px;background:linear-gradient(#0b2037,#071725);box-shadow:0 0 0 2px #112136,0 0 0 3px #b78130,0 6px 12px #0008;overflow:visible}
.royal-menu #home .menu-card::after{display:block;content:"";position:absolute;inset:3px;z-index:3;pointer-events:none;background:linear-gradient(135deg,#fce4a0 0 2px,transparent 3px) top left,linear-gradient(225deg,#fce4a0 0 2px,transparent 3px) top right,linear-gradient(45deg,#fce4a0 0 2px,transparent 3px) bottom left,linear-gradient(315deg,#fce4a0 0 2px,transparent 3px) bottom right;background-size:15px 15px;background-repeat:no-repeat;border:1px solid #c39745;border-radius:10px 2px}
.royal-menu #home .menu-card-art{height:57%;width:100%;object-fit:cover;flex-shrink:0;border-radius:2px;mask-image:linear-gradient(#000 68%,transparent);-webkit-mask-image:linear-gradient(#000 68%,transparent)}
.royal-menu #home .menu-card-content{position:static;flex:1;padding:0 16px 10px;margin-top:-12px;gap:0}
.royal-menu #home .menu-card h2{font-size:clamp(18px,2.5vw,28px);line-height:1.1;min-height:0;margin:0 0 10px;color:#fff1d3;font-weight:500;letter-spacing:-.035em}
.royal-menu #home .menu-card p{font-family:Georgia,serif;font-size:clamp(12px,1.6vw,17px);line-height:1.3;min-height:0;margin:0 auto;max-width:220px;color:#f4e9dc}
.royal-menu #home .menu-card-actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}
.royal-menu #home .menu-card button:not(.card-hit-target){font-family:Georgia,serif;font-size:clamp(11px,1.5vw,16px);padding:8px 4px;min-height:38px;border-radius:4px;line-height:1.1}
.royal-menu button.primary{background:linear-gradient(#ffcf61,#ffb32b 65%,#e3971d);border:1px solid #ffe09a;box-shadow:inset 0 0 0 2px #d59331,0 0 0 1px #7f4d19,0 3px 8px #0006;color:#201300}
.royal-menu #home .text-button{min-height:24px!important;padding:4px!important;margin:3px 0 -5px;color:#f7e8cf}
.royal-menu #home .menu-card-symbol{top:31%;width:48px;height:48px;font-size:40px;line-height:42px;display:flex;align-items:center;justify-content:center;color:#ffcf65;background:#09243b;border:2px solid #f8cd6b;outline:2px solid #092039;box-shadow:0 2px 6px #0008}
.royal-menu #home .menu-card:has(.menu-card-symbol) .menu-card-content{padding-top:9px}
.royal-menu #home .menu-card .card-hit-target{position:absolute;inset:0;width:100%;height:100%;z-index:4;margin:0;background:transparent;border:0;box-shadow:none;border-radius:3px;cursor:pointer;padding:0}
.royal-menu #home .menu-card .card-hit-target:disabled{cursor:wait;background:#071a3266}
.royal-menu #home .tutorial-entry-panel .primary{margin-top:auto}
.royal-menu #home .tutorial-entry-panel h2{font-size:clamp(17px,2.3vw,26px)}
.account-logo{display:block;width:100%;height:auto;max-width:420px;margin:0 auto}.royal-account-brand .hero-eyebrow{display:none}
.royal-menu :is(#account,#ranking,#lobby,#inviteLanding,#matchWaiting){border:2px solid #efbf61;border-radius:3px;background:linear-gradient(135deg,#102b47f5,#071827f5);box-shadow:0 0 0 3px #10233c,0 0 0 4px #bc8737,0 15px 45px #0006}
.royal-menu #account[data-view="auth"]{margin-top:5vh}.royal-menu .royal-dialog{border:2px solid #edbd62;border-radius:3px}
.royal-menu #menuSoundSlot .sound-panel{position:static;width:100%;border:0;background:none;box-shadow:none;padding:0}.royal-menu #menuSoundSlot .sound-panel-toggle{display:none}.royal-menu #menuSoundSlot .sound-controls{position:static;display:flex!important;flex-direction:column;width:100%;max-height:none;opacity:1;visibility:visible;transform:none;border:0;box-shadow:none;background:none;padding:0;gap:12px}.royal-menu #menuSoundSlot select{width:100%;font-size:13px;white-space:normal}
@media(max-width:700px){.royal-menu main{padding:9px 8px 18px}.royal-menu #home{padding:14px 12px 20%;min-height:0}.royal-home-heading{padding-left:4%;margin-bottom:12px}.royal-menu #home .royal-logo{width:62%;margin-right:-1%}.royal-menu #home .join-ways{width:76%;gap:11px}.royal-menu #home .menu-card-content{padding:0 10px 9px;margin-top:-8px}.royal-menu #home .menu-card h2{font-size:20px;margin-bottom:7px}.royal-menu #home .tutorial-entry-panel h2{font-size:18px}.royal-menu #home .menu-card p{font-size:13px}.royal-menu #home .menu-card-symbol{width:40px;height:40px;font-size:32px;line-height:36px}.royal-menu #home .profile-trigger img{width:30px;height:30px}.royal-menu #home .profile-trigger strong{font-size:10px}.royal-menu #home #openMenuSettings{width:30px;min-width:30px;font-size:21px}}
@media(max-width:460px){.royal-menu #home{padding:12px 7px 22%}.royal-home-heading{padding-left:0;gap:0;margin-bottom:10px}.royal-menu #home .royal-logo{width:59%;margin-right:-1%}.royal-menu #home .join-ways{width:82%;gap:10px}.royal-menu #home .join-panel.menu-card{aspect-ratio:1/1.13}.royal-menu #home .menu-card-content{padding:0 7px 8px}.royal-menu #home .menu-card h2{font-size:17px;letter-spacing:-.04em;margin-bottom:5px}.royal-menu #home .tutorial-entry-panel h2{font-size:15px;letter-spacing:-.05em}.royal-menu #home .menu-card p{font-size:12px;line-height:1.2}.royal-menu #home .menu-card-art{height:53%}.royal-menu #home .menu-card button:not(.card-hit-target){min-height:34px;font-size:11px;padding:6px 2px}.royal-menu #home .menu-card-actions{gap:5px}.royal-menu #home .menu-card-symbol{width:34px;height:34px;top:26%;font-size:29px}.royal-menu #home .menu-card-symbol svg{width:23px;height:23px}.royal-menu #home .profile-trigger{gap:3px;min-height:38px}.royal-menu #home .profile-trigger img{width:26px;height:26px}.royal-menu #home #openMenuSettings{width:26px;min-width:26px;min-height:38px;font-size:20px}.royal-menu #home .profile-trigger strong{font-size:9px}.royal-menu #home .text-button{min-height:24px!important;font-size:12px!important}.royal-menu #home .menu-card:has(.menu-card-symbol) .menu-card-content{padding-top:8px}}
@media(max-width:350px){.royal-menu #home .join-ways{width:90%}.royal-menu #home .join-panel.menu-card{aspect-ratio:1/1.25}.royal-menu #home .menu-card h2{font-size:16px}.royal-menu #home .profile-trigger strong{max-width:48px}}
