/* Steel Throne v72 landing bundle. */
/* v33: fresh shared layout; module artwork has its own stylesheet. */
:root{color-scheme:dark;--gold:#d7b676;--line:#655139;--surface:#101519;--muted:#b5b0a4;--royal-gold:#d7b676;--royal-line:#655139;--royal-surface:#101519}
*,*::before,*::after{box-sizing:border-box}
html{font-size:16px;background:#06080b;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;color:#e9e4db;background:#080c10;font:16px/1.45 Arial,Helvetica,sans-serif}
a{color:#ead19e;text-underline-offset:3px}
img,video{max-width:100%;height:auto;vertical-align:middle}
button,input,textarea,select{font:inherit;color:inherit;max-width:100%}
button,a,input,select,textarea{touch-action:manipulation}
button,[type=submit]{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button,.button,.btn,.bar,.grey-btn{min-height:44px;padding:10px 14px;border:1px solid #927347;border-radius:5px;background:linear-gradient(#343029,#171716);color:#f3ddb4;line-height:1.3}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select{width:100%;padding:10px 12px;background:#090e12;border:1px solid #6b6251;border-radius:4px;min-height:44px}
textarea{resize:vertical;min-height:90px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ffe0a0;outline-offset:3px}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#f0d39c;line-height:1.2;overflow-wrap:anywhere}
h1{font-size:28px}h2{font-size:23px}h3{font-size:19px}
p{margin:10px 0}
.page-col{width:min(100%,520px);margin:0 auto;background:#0b1014;min-height:0}
.glass-panel{width:100%;padding:12px 10px;border:0;min-width:0}
.bg-img,.bg-veil,.game-title{display:none}
.block,.success,.warning,.info,.error,.notice{padding:12px;margin:10px 0;border:1px solid var(--line);background:#151b20;border-radius:5px;overflow-wrap:anywhere}
.success{border-color:#456a43}.error,.warning{border-color:#99533e}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:8px 5px;text-align:left;border-bottom:1px solid #39372f;overflow-wrap:anywhere}
form{margin:0}fieldset{min-width:0;border:1px solid var(--line)}
ul,ol{padding-left:24px}
progress{max-width:100%;accent-color:#cfac63}
details{margin:10px 0}summary{cursor:pointer;padding:10px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.r26-promotion{display:block;width:100%;margin:12px 0}.r26-promotion img{display:block;width:100%;height:auto}
.r26-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;margin:8px 0;border:1px solid var(--line);background:#171c20}
.r26-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #8d734d;background:#30271a;color:#f6e0b6;text-decoration:none}
.r26-heading{padding:12px 0}.r26-heading h1{margin:0}

/* Standalone account forms and auth dialog. */
.reg-card{width:min(100% - 24px,480px);margin:24px auto;padding:22px;background:#131a20;border:1px solid #796243;border-radius:8px}
.reg-logo{display:block;max-width:220px;margin:auto}
.reg-form,.auth-form{display:grid;gap:14px}
.reg-form label,.auth-form label{display:grid;gap:6px}
.reg-hp{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.auth-error,.reg-error{padding:10px;color:#ffc2a8}
/* Shared dialogs keep existing JS open/close contracts. */
.ov,.sp-modal-root.is-open{position:fixed;inset:0;z-index:110;display:flex;align-items:center;justify-content:center;padding:16px;background:#000c}
.sp-modal-root{display:none}
.ov>.card,.sp-modal{position:relative;z-index:1;width:min(460px,100%);max-height:90vh;overflow:auto;padding:20px;border:1px solid #987b4c;border-radius:8px;background:#111b23;text-align:center}
.sp-modal-backdrop{position:absolute;inset:0}
.sp-modal-actions,.lvl-rewards,.battle-rewards{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:12px 0}
.lvl-reward-item,.battle-reward-item,.battle-item-drop{display:flex;align-items:center;gap:8px}
.lvl-reward-item img,.battle-reward-item img,.battle-item-drop img{width:30px;height:30px;object-fit:contain}
.sp-modal-lock,.st-overlay-open{overflow:hidden}
.royal-closing{opacity:0}

/* v62 auth: compositor-only drawer. Reserve the desktop scrollbar gutter so
   opening the fixed panel never changes the page width. */
html.landing-root{scrollbar-gutter:stable}
.landing-page.auth-lock{overflow:hidden}
.landing-page .auth-honeypot{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.landing-page .auth-backdrop{
  display:block;position:fixed;inset:0;z-index:100;background:rgba(1,4,7,.78);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .24s ease,visibility 0s linear .24s;
  will-change:opacity;transform:translateZ(0);backface-visibility:hidden;
}
.landing-page .auth-backdrop.is-visible{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .24s ease}
.landing-page .auth-drawer{
  display:block;position:fixed;z-index:101;left:50%;right:auto;top:auto;bottom:max(8px,env(safe-area-inset-bottom));
  width:min(500px,calc(100% - 16px));max-height:calc(100dvh - 24px);margin:0;padding:0;overflow:visible;
  border:0;border-radius:0;background:transparent;box-shadow:none;
  opacity:0;visibility:hidden;pointer-events:none;transform:translate3d(-50%,calc(100% + 48px),0);transform-origin:50% 100%;
  transition:transform .30s cubic-bezier(.22,.72,.18,1),opacity .18s linear,visibility 0s linear .30s;
  will-change:transform,opacity;backface-visibility:hidden;contain:layout style paint;
}
.landing-page .auth-drawer.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translate3d(-50%,0,0);transition:transform .30s cubic-bezier(.22,.72,.18,1),opacity .18s linear}
.landing-page .auth-drawer-inner{
  position:relative;isolation:isolate;width:100%;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;
  padding:58px 54px 48px;color:#ead9bd;background:linear-gradient(180deg,rgba(8,14,18,.97),rgba(4,9,13,.985));
  box-shadow:0 14px 38px #000c,inset 0 0 28px #0009;
  scrollbar-width:thin;scrollbar-color:#7e5f35 #071016;
  transform:translateZ(0);backface-visibility:hidden;contain:paint;
}
.landing-page .auth-drawer-inner::before{
  content:'';position:absolute;z-index:-1;inset:0;pointer-events:none;background:url('/images/core/card-frame.webp') center/100% 100% no-repeat
}
.landing-page .auth-drawer-inner::after{
  content:'';position:absolute;z-index:-2;left:5%;right:5%;top:20px;bottom:20px;background:radial-gradient(circle at 50% 0,#5f271829,transparent 38%),linear-gradient(180deg,#0c151b,#050a0e 75%);box-shadow:inset 0 0 28px #000
}
.landing-page .auth-close{
  position:absolute;z-index:4;right:34px;top:29px;float:none;width:36px;height:36px;min-height:0;padding:0;border:1px solid #a77a3e;border-radius:3px;
  display:grid;place-items:center;background:linear-gradient(#3b2b1e,#17130f)!important;color:#f4d8a6;font:24px/1 Georgia,serif;box-shadow:inset 0 0 0 1px #0b0907,0 2px 5px #0009
}

.landing-page .auth-logo{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;margin:0 38px 24px 0;padding:0 0 13px;border-bottom:1px solid #8e6d3e70;font-family:Georgia,'Times New Roman',serif}
.landing-page .auth-logo img{grid-row:1/3;width:42px;height:42px;object-fit:contain}
.landing-page .auth-logo span{font-size:28px;line-height:1.04;color:#f2d7a4;text-shadow:0 2px 2px #000;font-variant:small-caps;letter-spacing:.018em}
.landing-page .auth-logo small{font-size:12px;line-height:1.15;text-transform:uppercase;letter-spacing:.12em;color:#a9987e}
.landing-page .auth-error{margin:0 0 16px;padding:10px 12px;border:1px solid #a44435;background:#2d100ecc;color:#ffd0bd;font-size:14px}
.landing-page .auth-form{display:grid;gap:14px}
.landing-page .auth-field{position:relative;display:grid!important;gap:7px;margin:0;color:#d9c6a5}
.landing-page .auth-field>span{font:15px/1.1 Georgia,'Times New Roman',serif;letter-spacing:.035em;color:#d8c5a4;text-shadow:0 1px 2px #000}
.landing-page .auth-field input{
  width:100%;height:48px;min-height:48px;padding:9px 13px;border:1px solid #86683d;border-radius:2px!important;
  background:linear-gradient(180deg,#091117,#050a0e)!important;color:#f2e6d3;box-shadow:inset 0 1px 8px #000b,0 1px 0 #c39a5320;
  outline:0
}
.landing-page .auth-field input:focus{border-color:#c99a50;box-shadow:inset 0 1px 8px #000b,0 0 0 2px #c6974732}
.landing-page .auth-password-field input{padding-right:52px}
.landing-page .auth-eye{
  position:absolute;right:8px;bottom:7px;width:34px;height:34px;min-height:0;padding:0;border:0!important;border-radius:2px!important;background:transparent!important;
  display:grid;place-items:center;color:#d9b978;font-size:20px;line-height:1;box-shadow:none!important;text-shadow:0 1px 2px #000
}
.landing-page .auth-eye:hover{background:#a87d3420!important;filter:none}
.landing-page .auth-links{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding-top:2px;font:14px/1.2 Georgia,'Times New Roman',serif}
.landing-page .auth-links a{color:#d7b879;text-decoration:none;border-bottom:1px solid #8a6838}
.landing-page .auth-links a:hover{color:#f4d8a6;border-bottom-color:#d7b879}
.landing-page .auth-submit{
  position:relative;isolation:isolate;width:76%;min-height:62px;margin:5px auto 0;padding:10px 28px;border:0!important;border-radius:0!important;background:transparent!important;
  color:#f7dfb5;font:20px/1 Georgia,'Times New Roman',serif;text-transform:uppercase;letter-spacing:.045em;text-shadow:0 2px 2px #000;box-shadow:none!important
}
.landing-page .auth-submit::before{content:'';position:absolute;z-index:-1;inset:-7px -14px;background:url('/images/core/button.webp') center/100% 100% no-repeat;opacity:.82}
.landing-page .auth-submit:hover::before{opacity:1}


@media (prefers-reduced-motion:reduce){
  .landing-page .auth-backdrop,.landing-page .auth-drawer{transition-duration:.01ms!important}
}

@media(max-width:520px){
  .landing-page .auth-drawer{bottom:max(4px,env(safe-area-inset-bottom));width:calc(100% - 8px);max-height:calc(100dvh - 8px)}
  .landing-page .auth-drawer-inner{max-height:calc(100dvh - 8px);padding:48px 36px 38px}
  .landing-page .auth-close{right:24px;top:23px;width:34px;height:34px}
  .landing-page .auth-logo{grid-template-columns:38px minmax(0,1fr);margin-right:34px}
  .landing-page .auth-logo img{width:36px;height:36px}
  .landing-page .auth-logo span{font-size:24px}
  .landing-page .auth-logo small{font-size:10px}
  .landing-page .auth-submit{width:84%}
}
@media(max-width:360px){
  .landing-page .auth-drawer-inner{padding:44px 27px 32px}
  .landing-page .auth-logo span{font-size:21px}
  .landing-page .auth-links{font-size:13px}
}


.modal-open{overflow:hidden}

/* CSP-safe width utilities for dynamic HP/progress bars. */
.spw-0{width:0%}.spw-1{width:1%}.spw-2{width:2%}.spw-3{width:3%}.spw-4{width:4%}.spw-5{width:5%}.spw-6{width:6%}.spw-7{width:7%}.spw-8{width:8%}.spw-9{width:9%}.spw-10{width:10%}.spw-11{width:11%}.spw-12{width:12%}.spw-13{width:13%}.spw-14{width:14%}.spw-15{width:15%}.spw-16{width:16%}.spw-17{width:17%}.spw-18{width:18%}.spw-19{width:19%}.spw-20{width:20%}.spw-21{width:21%}.spw-22{width:22%}.spw-23{width:23%}.spw-24{width:24%}.spw-25{width:25%}.spw-26{width:26%}.spw-27{width:27%}.spw-28{width:28%}.spw-29{width:29%}.spw-30{width:30%}.spw-31{width:31%}.spw-32{width:32%}.spw-33{width:33%}.spw-34{width:34%}.spw-35{width:35%}.spw-36{width:36%}.spw-37{width:37%}.spw-38{width:38%}.spw-39{width:39%}.spw-40{width:40%}.spw-41{width:41%}.spw-42{width:42%}.spw-43{width:43%}.spw-44{width:44%}.spw-45{width:45%}.spw-46{width:46%}.spw-47{width:47%}.spw-48{width:48%}.spw-49{width:49%}.spw-50{width:50%}.spw-51{width:51%}.spw-52{width:52%}.spw-53{width:53%}.spw-54{width:54%}.spw-55{width:55%}.spw-56{width:56%}.spw-57{width:57%}.spw-58{width:58%}.spw-59{width:59%}.spw-60{width:60%}.spw-61{width:61%}.spw-62{width:62%}.spw-63{width:63%}.spw-64{width:64%}.spw-65{width:65%}.spw-66{width:66%}.spw-67{width:67%}.spw-68{width:68%}.spw-69{width:69%}.spw-70{width:70%}.spw-71{width:71%}.spw-72{width:72%}.spw-73{width:73%}.spw-74{width:74%}.spw-75{width:75%}.spw-76{width:76%}.spw-77{width:77%}.spw-78{width:78%}.spw-79{width:79%}.spw-80{width:80%}.spw-81{width:81%}.spw-82{width:82%}.spw-83{width:83%}.spw-84{width:84%}.spw-85{width:85%}.spw-86{width:86%}.spw-87{width:87%}.spw-88{width:88%}.spw-89{width:89%}.spw-90{width:90%}.spw-91{width:91%}.spw-92{width:92%}.spw-93{width:93%}.spw-94{width:94%}.spw-95{width:95%}.spw-96{width:96%}.spw-97{width:97%}.spw-98{width:98%}.spw-99{width:99%}.spw-100{width:100%}

/* v57 CSP-safe helpers */
[hidden]{display:none!important}
.gc-clipboard-helper{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
.gc-text{field-sizing:content;min-height:44px;max-height:150px;resize:none}
#aboutCount.is-over{color:#ff6060}
.user-search-host{position:relative}
.pz-float-host{position:relative}
.pz-float{position:absolute;z-index:20;left:50%;top:10px;transform:translateX(-50%);pointer-events:none;font-weight:700;text-shadow:0 1px 2px #000;animation:r28-number .65s ease-out both}
.pz-float-dealt{color:#fff}.pz-float-crit{color:#ffd769}.pz-float-taken{color:#ff6060}


/* HTML5 utility classes (v58) */
.text-gold{color:goldenrod}
.text-success-inline{color:#4fd16f}
.text-danger-inline{color:#ff6b6b}
.text-lime{color:lime}
.text-center{text-align:center}
.align-left{text-align:left}
.align-right{text-align:right}
.cell-third{width:33%}
.cell-icon-right{width:55px;text-align:right}
.table-80-center{width:80%;margin-inline:auto}

.table-full{width:100%}
.cell-icon-50{width:50px}
.cell-20{width:20%}
.cell-30{width:30%}
.cell-60{width:60%}
.cell-70{width:70%}

/* v60: global layout containment. Prevent decorative/media layers from widening the 520px game column. */
.game-body-shell,.game-body-shell>*{min-width:0}
.game-body-shell :where(img,svg,video,canvas,iframe,form,fieldset){max-width:100%}
.game-body-shell :where(pre,code){max-width:100%;overflow-wrap:anywhere}

/* v61 — gameplay-result and clan-invite motion. These animations are intentional
   feedback and are kept separate from decorative chrome. */
@keyframes sp61-overlay-enter{0%{opacity:0;transform:translateY(18px) scale(.94)}65%{opacity:1;transform:translateY(-2px) scale(1.012)}100%{opacity:1;transform:none}}
@keyframes sp61-emblem-pulse{0%,100%{filter:drop-shadow(0 3px 8px #000)}50%{filter:drop-shadow(0 0 18px #d5a649aa)}}
#lvlOverlay .lvl-card,#battleOverlay .battle-card,#clanOverlay .clan-card{animation:sp61-overlay-enter .46s cubic-bezier(.2,.8,.25,1) both}
#lvlOverlay .r27-reward-emblem,#battleOverlay .r27-reward-emblem,#clanOverlay .clan-crest{animation:sp61-emblem-pulse 1.6s ease-in-out 2}
#clanOverlay .clan-card{display:grid;gap:12px;justify-items:center}
#clanOverlay .clan-title{font:700 22px/1.2 Georgia,'Times New Roman',serif;color:#f1d18f}
#clanOverlay .clan-name{font:700 19px/1.25 Georgia,'Times New Roman',serif;color:#f5dfaf}
#clanOverlay .clan-bonus{line-height:1.5;color:#d9ccb3}
#clanOverlay .clan-buildings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%}
#clanOverlay .clan-buildings>div{min-width:0;padding:7px;border:1px solid #76603e;background:#0a1218}
#clanOverlay .clan-buildings img{width:42px;height:42px;object-fit:contain}
#clanOverlay .clan-stats{display:grid;gap:5px;width:100%}
#clanOverlay .clan-stats>div{display:flex;justify-content:space-between;gap:12px;padding:6px 8px;border:1px solid #55452e;background:#0a1116}
#clanOverlay .clan-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
#clanOverlay .clan-btns form{min-width:0}
#clanOverlay .clan-btns button{width:100%;min-height:44px;border:1px solid #a67e3e;background:linear-gradient(#35291b,#17120d);color:#f6dfad;font:700 15px/1.1 Georgia,serif}
#clanOverlay .clan-btns .accept{background:linear-gradient(#6c4515,#2d210f)}
#clanOverlay .clan-btns .decline{background:linear-gradient(#53170f,#260b08)}
@media(max-width:420px){#clanOverlay .clan-buildings{grid-template-columns:repeat(2,minmax(0,1fr))}#clanOverlay .clan-btns{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#lvlOverlay .lvl-card,#battleOverlay .battle-card,#clanOverlay .clan-card,#lvlOverlay .r27-reward-emblem,#battleOverlay .r27-reward-emblem,#clanOverlay .clan-crest{animation:none!important}}

/* v66: подключённая растровая графика предметов и самоцветов */
.it-inline-art{width:28px;height:28px;object-fit:contain;vertical-align:middle;margin-right:6px}
.gem-visual-grid{align-items:stretch}
.gem-visual-card{display:flex;flex-direction:column;align-items:center;gap:7px}
.gem-visual{width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 5px 9px #0008)}
.it-icon-image img{display:block;width:58px;height:58px;object-fit:contain}
.sp-item-art{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:420px){.gem-visual{width:62px;height:62px}.it-inline-art{width:24px;height:24px}}
#clanOverlay .clan-crest{width:min(96px,28vw)!important;height:84px!important;object-fit:contain!important}

/* Existing page-specific modules only. No shared header, footer or shell overrides. */
.r26-frame{border:12px solid transparent;border-image:url('/images/gameplay/frame.webp') 120 stretch;background-color:#071019;position:relative;min-width:0}
.r26-panel{padding:10px;min-width:0;background:rgba(5,13,19,.95);border:1px solid #77613c;box-shadow:inset 0 0 14px #000}
.royal-theme .r26-panel h2,.royal-theme .r26-profile h2{font-size:15px;color:#d9b774;font-weight:400;text-align:center;margin:0 0 8px;border-bottom:1px solid #51452f;padding-bottom:5px}
.royal-theme .r26-panel p{margin:6px 0}.r26-panel small{display:block;color:#acaa9d;font-size:12px}
.royal-theme .r26-heading{position:relative;text-align:center;padding:32px 12px 22px;margin:0;background:linear-gradient(180deg,transparent,#050b12e6);border-bottom:1px solid #8f713b;color:#ddc493}
.royal-theme .r26-heading h1{font:normal 38px/1.06 Georgia,'Times New Roman',serif!important;color:#eed7ae!important;margin:0 0 10px!important;text-shadow:0 3px 3px #000,1px 0 #6b4e2b;letter-spacing:.015em}
.royal-theme .r26-heading p{font-size:12px;letter-spacing:.08em;margin:0;color:#cab58e}
.royal-theme .r26-heading-small{padding:14px 8px}.royal-theme .r26-heading-small h1{font-size:25px!important}
.royal-theme .r26-button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:34px;gap:4px;padding:7px 10px;border:1px solid #887047;border-radius:3px;background:linear-gradient(#182028,#080e14);color:#e9d6ac;text-decoration:none!important;font:14px/1.25 Georgia,'Times New Roman',serif;box-shadow:inset 0 0 0 2px #060a0d;cursor:pointer;white-space:normal;overflow-wrap:anywhere}

.royal-theme .r26-red{background:#35080b!important;border:14px solid transparent!important;border-image:url('/images/gameplay/button.webp') 240 440 fill / 14px 25px / 0 stretch!important;color:#ffe3c6!important;padding:4px 14px!important;min-height:56px;text-shadow:0 2px 2px #000}
.royal-theme .r26-blue{background:linear-gradient(#143750,#071723)}
.r26-notice{padding:9px 12px;margin:8px 0;border:1px solid #6b5734;background:#071019;color:#d8ccb4;display:flex;gap:8px;align-items:center;overflow-wrap:anywhere}
.r26-notice>a{flex:1}.r26-notice form{margin:0}.r26-notice button{color:#e1bd77;background:#10151b;border:1px solid #655538}.r26-notice summary{cursor:pointer}.r26-notice:has(summary){display:block}
.r26-identity{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 7px;align-items:center}
.r26-identity>a{font-size:15px;overflow-wrap:anywhere}.r26-identity>span{color:#c8b485;font-size:12px}.r26-identity label{grid-column:1/-1;font-size:12px;color:#b6b4ab;margin:0}.r26-identity progress{grid-column:1/-1}
.r26-tools{grid-column:1/-1;display:flex;justify-content:space-around;gap:4px;padding:3px 0}.r26-tools a{text-decoration:none;font-size:12px}.r26-tools b{background:#831d18;color:#fff;border-radius:8px;padding:1px 4px;margin-left:3px}
.r26-events{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:6px 0}.r26-events a{padding:7px 3px;text-align:center;color:#e4cd9d;background:linear-gradient(#16202b,#090d13);border:1px solid #6e5734;text-decoration:none;font-size:12px;overflow-wrap:anywhere}
.r26-brand{text-align:center;padding:7px 0 10px;color:#cdb17a;border-bottom:1px solid #695631}.r26-brand span{display:block;font-size:23px;font-variant:small-caps}.r26-brand small{display:block;font-size:10px;letter-spacing:.13em;text-transform:uppercase}
.r26-home{min-width:0}.r26-home .r26-heading{padding:32px 6px 22px;background:linear-gradient(transparent,#061017),url('/images/gameplay/hall.webp') center 30%/cover}
.r26-locations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.royal-theme .r26-location{display:block;position:relative;aspect-ratio:1.9;min-height:115px;overflow:hidden;border-width:7px;text-decoration:none;color:#f1d9a7}
.royal-theme .r26-location>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;max-width:none!important}
.r26-location>span{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:4px;padding:14px 6px 5px;background:linear-gradient(transparent,#030a10 55%);font-size:17px;line-height:1.2;text-shadow:0 2px #000}
.r26-location b{margin-left:auto;color:#d8b367;font-size:24px;font-weight:400;line-height:1}
.r26-location>small{position:absolute;top:3px;right:3px;padding:2px 4px;background:#071018d9;font-size:11px;color:#d9eac4}
.r26-footer{margin-top:18px;padding:10px 0 5px;border-top:1px solid #94733d;background:linear-gradient(#07111cd9,#04070cec),url('/images/gameplay/hall.webp') center bottom/cover}
.r26-footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:7px 12px;padding:12px 5px;border-top:1px solid #5b482e;border-bottom:1px solid #5b482e;font-size:12px}.r26-footer-links a{text-decoration:none}
.r26-footer-bottom{text-align:center;padding:15px 8px 9px}.r26-footer-bottom>span{font-size:24px;color:#b99656;font-variant:small-caps}.r26-footer-bottom p{font-size:12px;color:#a8a499;margin:4px 0}.r26-footer-bottom small{display:block;color:#8c8b83;font-size:11px;margin-top:4px}
.r26-promotion{display:block;max-width:100%;margin:10px auto}.r26-promotion img{max-width:100%;height:auto}
.r26-landing,.r26-gender{width:520px;max-width:100%;margin:0 auto;position:relative;background:#071019 url('/images/gameplay/hall.webp') center top/cover;isolation:isolate;border-width:13px;padding:10px 22px}
.r26-landing::before,.r26-gender::before{content:'';position:absolute;inset:0;background:#03090f55;z-index:-1}
.r26-landing .r26-heading{padding:14px 5px}.r26-landing .r26-heading h1{font-size:44px!important}
.royal-theme .r26-landing-hero{display:block;width:100%!important;height:310px!important;object-fit:contain;object-position:bottom;margin:0 auto}
.r26-landing-actions{position:relative;margin:-35px 24px 10px;display:flex;flex-direction:column;gap:6px}.r26-landing-actions>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.r26-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.r26-features>div{display:flex;flex-direction:column;align-items:center;border-width:5px;min-width:0;padding:2px}.royal-theme .r26-features img{width:100%;height:56px;object-fit:cover}.r26-features span{font-size:12px;padding:4px 0;color:#dbbd88}
.r26-landing-banner{padding:20px 10px;margin:12px 0;background:linear-gradient(90deg,#040911a0,#04091130),url('/images/gameplay/hall.webp') center 38%/cover;text-align:center;border:1px solid #725c35}.r26-landing-banner p{color:#d7b46c;font-size:18px;margin:0;text-transform:uppercase;text-shadow:0 2px #000}.r26-credit{display:block;text-align:center;font-size:11px;color:#b0a38c;padding:8px}
.r26-gender{padding:10px 10px 18px}.r26-story{font-size:14px;text-align:center;color:#d8c5a1;padding:12px 10px;margin:0;line-height:1.5;background:#060d14bb}
.r26-genders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.r26-gender-card{display:flex;flex-direction:column;margin:0;border-width:8px;padding:4px;background:#080e14;min-width:0}
.royal-theme .r26-gender-art{width:100%!important;height:245px!important;object-fit:contain;object-position:bottom;background:linear-gradient(#03080a22,#04080c),url('/images/gameplay/hall.webp') center top/cover}
.r26-gender-card h2{color:#e4c895;font-size:22px;font-weight:400;text-align:center;margin:6px 0}.r26-gender-card p{font-size:13px;text-align:center;margin:2px 3px 8px;flex:1;line-height:1.35;color:#c6b99e}
.r26-gender-card dl{margin:0 0 9px;padding:8px;background:#030a10;border:1px solid #594b30}.r26-gender-card dl>div{display:flex;justify-content:space-between;font-size:13px;gap:4px}.r26-gender-card dt{font-weight:400}.r26-gender-card dd{margin:0;color:#efce8f}.r26-gender-card .r26-button{font-size:13px;min-height:44px;margin-top:auto}
.r26-gender>.r26-panel{text-align:center}.r26-gender>.r26-panel p{font-size:14px}.r26-gender>.r26-notice{font-size:13px}
.r26-profile{padding:8px 0}.r26-profile-top{display:grid;grid-template-columns:70px minmax(0,1fr) 133px;gap:6px;margin:10px 0}.r26-profile-nav{display:flex;flex-direction:column;gap:5px}.r26-profile-nav .r26-button{font-size:12px;padding:7px 3px;min-height:33px}
.r26-character{padding:4px;border-width:7px;text-align:center;min-width:0}.royal-theme .r26-character h2{margin:0;border:0;font-size:16px;overflow-wrap:anywhere}.r26-character>small{font-size:11px;color:#b7a583}.r26-character-scene{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:2px;min-height:300px;position:relative;align-items:center;background:url('/images/gameplay/hall.webp') center/cover}
.royal-theme .r26-character-art{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;object-position:center bottom;z-index:0}
.r26-slots{display:flex;flex-direction:column;gap:8px;position:relative;z-index:1}.r26-slots:last-child{grid-column:3}
.royal-theme .r26-slot{display:flex;position:relative;align-items:center;justify-content:center;aspect-ratio:1;border:1px solid #c09c53;background:#07111deb;color:#a7987d;min-width:0;text-decoration:none;overflow:hidden;border-radius:2px;box-shadow:inset 0 0 5px #000}
.r26-slot small{font-size:8px;overflow-wrap:anywhere;line-height:1;text-align:center}.royal-theme .r26-slot img{width:100%!important;height:100%!important;object-fit:contain}.r26-slot .r26-stars{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:8px;color:#ffd26c;background:#050a11b0;letter-spacing:-1px}
.r26-character>.r26-button{font-size:12px;margin-top:5px;padding:5px;min-height:30px}
.r26-profile-stats{padding:7px}.royal-theme .r26-profile-stats h2{font-size:12px;margin-top:8px}.r26-profile-stats dl{margin:0 0 9px}.r26-profile-stats dl>div{display:flex;justify-content:space-between;gap:4px;padding:3px 0;border-bottom:1px solid #252827;font-size:11px}.r26-profile-stats dt{font-weight:400;color:#b3aea1}.r26-profile-stats dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0;color:#d6c391}.r26-profile-stats label{font-size:11px}.r26-profile-stats small{font-size:10px;overflow-wrap:anywhere}
.r26-profile-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.r26-profile-cards .r26-panel{padding:8px 6px;text-align:center}.r26-profile-cards h3{font-size:14px;font-weight:400;margin:5px 0}.r26-profile-cards p{font-size:12px}.r26-profile-cards .r26-button{font-size:12px;padding:6px 3px}
.royal-theme .r26-card-art{width:65px!important;height:75px!important;object-fit:contain}.r26-pet{margin-bottom:8px}.royal-theme .r26-pet img{width:72px!important;height:68px!important;object-fit:contain}.r26-pet strong{display:block;font-size:13px;font-weight:400;color:#dec48f}.r26-pet small{font-size:11px}
.r26-profile-lower{display:grid;grid-template-columns:1.4fr 1fr;gap:6px;margin-bottom:8px}.r26-artifacts{display:flex;flex-wrap:wrap;gap:5px}.royal-theme .r26-artifacts img{width:44px!important;height:44px!important;object-fit:contain}
.r26-forum-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:10px 0}.r26-forum-tools a{border:1px solid #846b3d;background:#09111a;text-align:center;padding:8px 3px;font-size:12px;text-decoration:none}
.r26-forum-table{width:100%}.r26-forum-row{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1.2fr) 42px 60px;gap:5px;padding:8px;border-bottom:1px solid #21303a;align-items:start;color:#b8cad3!important;font-size:12px;text-decoration:none!important}.r26-forum-row span{min-width:0;overflow-wrap:anywhere}.r26-forum-row span:nth-child(n+3){text-align:center;font-variant-numeric:tabular-nums}.r26-forum-columns{font-size:10px;color:#8e9b9f!important;background:#101921;padding:5px 8px}.r26-empty{font-size:12px;padding:8px;color:#a9a79c;margin:0}
.royal-theme .gc-wrap.r26-chat{margin:8px 0!important;padding:7px!important;border-width:10px!important;background:#061019!important;border-radius:0!important;box-shadow:none!important}
.r26-chat-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:10px 0}.r26-chat-tabs>*{padding:7px 4px;background:#0b1722;border:1px solid #75613e;color:#cbb682;font:14px Georgia,serif;text-align:center;text-decoration:none;cursor:pointer}.r26-chat-tabs [aria-pressed="true"]{background:linear-gradient(#702219,#34100d);border-color:#a07a3d;color:#f4d49c}
.royal-theme .r26-chat>.panel{padding:0!important;margin:5px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}.royal-theme .r26-chat .ptitle{display:none!important}.royal-theme .r26-chat #gcMsgs{max-height:580px;overflow:auto;scrollbar-width:thin;scrollbar-color:#806a44 #09121b}
.royal-theme .r26-chat .msg{position:relative;display:block!important;background:#07131c!important;border:0!important;border-bottom:1px solid #26343b!important;border-radius:0!important;margin:0!important;padding:9px 7px 9px 44px!important;min-height:55px;box-shadow:none!important}
.royal-theme .r26-chat .msg.sys{background:transparent!important}.royal-theme .r26-chat .msg[hidden]{display:none!important}
.royal-theme .r26-chat .m-hd{display:flex;align-items:center;flex-wrap:wrap;gap:3px 5px;margin:0 0 3px!important;padding:0!important}.royal-theme .r26-chat .m-ava{position:absolute!important;left:5px!important;top:9px!important;width:32px!important;height:32px!important;max-width:32px!important;object-fit:cover!important;object-position:50% 12%;border:1px solid #957644!important;border-radius:50%!important;background:#15232c!important}
.royal-theme .r26-chat .m-name{font-size:13px!important;color:#8cc3e5!important;font-weight:400!important}.royal-theme .r26-chat .sys-name{color:#dabc69!important}.royal-theme .r26-chat .m-time{margin-left:auto!important;font-size:10px!important;color:#899694!important}.royal-theme .r26-chat .m-text{font:13px/1.4 Georgia,serif!important;color:#c0c7c7!important;overflow-wrap:anywhere}.royal-theme .r26-chat .m-btns{position:static!important;display:flex!important;gap:3px}.royal-theme .r26-chat .m-btns button{font-size:10px!important;min-width:0!important;padding:2px 4px!important;background:#15212a!important;border:1px solid #4a4939!important;color:#c5b582!important}
.royal-theme .r26-chat .gc-form{position:relative!important;display:block!important;padding:8px 0!important;margin:8px 0 0!important;background:transparent!important;border-top:1px solid #80653a!important;box-shadow:none!important}.royal-theme .r26-chat .gc-text{width:100%!important;min-height:52px!important;max-height:180px;background:#050c13!important;border:1px solid #74603e!important;border-radius:2px!important;color:#e0d5c0!important;font:14px/1.4 Georgia,serif!important;padding:8px!important;resize:vertical}.royal-theme .r26-chat .gc-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.royal-theme .r26-chat .gc-send{margin-left:auto!important;background:linear-gradient(#74251a,#370e0c)!important;border:1px solid #9b713c!important;border-radius:2px!important;padding:8px 14px!important;color:#ebce97!important;font-size:14px!important}.royal-theme .r26-chat .gc-counter,.royal-theme .r26-chat .gc-top{font-size:11px!important;color:#9da9a8!important}
.royal-theme .r26-chat .gc-quick{margin:8px 0!important;display:flex;gap:6px}.royal-theme .r26-chat .q-btn{font-size:12px!important;background:#0d1922!important;border:1px solid #5a4c35!important;color:#bdac8b!important}.r26-reply-hint{display:none}.royal-theme .r26-chat .mod-panel{font-size:12px;max-width:100%}.royal-theme .r26-chat .mod-sub{display:flex;flex-wrap:wrap;gap:4px}
.r26-rewards{padding:6px 0}.royal-theme .r26-reward-hero{width:100%!important;height:165px!important;object-fit:cover;object-position:center;margin:0!important;border-bottom:1px solid #775d34}
.r26-streak{padding:12px;border:1px solid #80643b;background:#061019;text-align:center}.r26-streak h2{font-size:17px!important;color:#dbb36d;margin:0 0 8px}.r26-streak progress::-webkit-progress-value{background:linear-gradient(#e8cd76,#967229)}.r26-streak small{display:block;text-align:center;letter-spacing:.15em;color:#bcb19b;font-size:12px;margin-top:5px}
@media(max-width:420px){.royal-theme .r26-heading h1{font-size:31px!important}.r26-location>span{font-size:15px}.royal-theme .r26-location{min-height:108px}.r26-profile-top{grid-template-columns:minmax(0,1fr);gap:8px}.r26-profile-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.r26-character-scene{min-height:360px;grid-template-columns:48px minmax(0,1fr) 48px}.r26-slots{gap:10px}.r26-slot small{font-size:10px}.r26-profile-stats dl>div{font-size:13px}.r26-profile-stats small{font-size:12px}.r26-profile-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.r26-profile-cards>section:last-child{grid-column:1/-1}.r26-gender,.r26-landing{padding:7px; border-width:9px}.royal-theme .r26-gender-art{height:195px!important}.r26-gender-card p{font-size:12px}.r26-gender-card h2{font-size:19px}.r26-gender-card .r26-button{font-size:12px;padding:11px 5px!important}.r26-gender-card dl{padding:5px}.r26-gender-card dl>div{font-size:12px}.r26-genders{gap:5px}.r26-landing-actions{margin-left:15px;margin-right:15px}.r26-forum-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) 32px 42px;font-size:11px;gap:3px;padding:7px 5px}.r26-forum-columns{font-size:8px}.royal-theme .gc-wrap.r26-chat{padding:4px!important;border-width:6px!important}.royal-theme .r26-chat .m-text{font-size:13px!important}.royal-theme .r26-chat .m-time{font-size:9px!important}.royal-theme .r26-chat .m-btns{flex-basis:auto}.r26-tools a{font-size:12px}.r26-identity>a{font-size:14px}}
@media(max-width:350px){.r26-genders{grid-template-columns:1fr}.royal-theme .r26-gender-art{height:300px!important}.r26-profile-cards{grid-template-columns:1fr}.r26-locations{gap:5px}.r26-location>span{font-size:14px}.r26-footer-links{gap:7px 10px}.r26-forum-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
.royal-theme .r26-location{width:100%;min-width:0;aspect-ratio:auto;height:125px}
.royal-theme .r26-location>span{overflow-wrap:anywhere}
.royal-theme .gf-hero.r26-heading h1{background:none!important;-webkit-text-fill-color:#eed7ae!important;letter-spacing:.015em!important;font-variant:normal;text-transform:none!important}
.royal-theme .r26-forum-columns{font-size:9px}
.royal-theme .r26-profile-nav .r26-button{font-size:11px;padding-inline:1px}
.royal-theme .r26-chat .m-ava{object-position:center 2%!important;object-fit:cover!important}
@media(max-width:420px){.royal-theme .r26-location{height:112px;min-height:0}.royal-theme .r26-events a{font-size:11px;letter-spacing:0;padding:6px 1px}.royal-theme .r26-forum-columns{font-size:8px}}
.royal-theme .r26-identity>a{overflow-wrap:anywhere}
.royal-theme .r26-chat .m-name{overflow-wrap:anywhere;min-width:0}
.royal-theme .r26-module{min-width:0;max-width:100%;margin:8px 0;color:#d4cbb9}
.royal-theme .r26-module .r26-panel{margin:8px 0;overflow-wrap:anywhere}
.royal-theme .r26-scene{position:relative;min-height:245px;background:#080e16 center/cover no-repeat;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:22px 10px;text-align:center;isolation:isolate;border:1px solid #8e713c;margin:8px 0 0;color:#e1c495}
.r26-scene::before{content:'';position:absolute;inset:0;background:linear-gradient(transparent 30%,#030a10f2);z-index:-1}
.royal-theme .r26-scene h1{font:normal 34px/1.05 Georgia,serif!important;text-shadow:0 2px 3px #000;color:#ecd0a0!important;margin:8px 0!important}.r26-scene p{margin:0;font-size:12px;letter-spacing:.06em}
.royal-theme .r26-scene-dragon{background-image:url('/images/gameplay/dragon.webp');min-height:360px}.royal-theme .r26-scene-cavern{background-image:url('/images/gameplay/cavern.webp');min-height:320px}.royal-theme .r26-scene-tavern{background-image:url('/images/gameplay/tavern.webp')}.royal-theme .r26-scene-clan{background-image:url('/images/gameplay/clan.webp')}.royal-theme .r26-scene-invasion{background-image:url('/images/gameplay/invasion.webp')}.royal-theme .r26-scene-siege{background-image:url('/images/gameplay/siege.webp');min-height:300px}
.r26-scene-status{width:min(260px,100%);font-size:13px;margin-top:10px;background:#060a10dd;padding:8px;border:1px solid #77613d}
.royal-theme .r26-scene-status progress::-webkit-progress-value,.royal-theme .r26-fighter progress::-webkit-progress-value{background:linear-gradient(#fa6843,#821817)}
.r26-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.r26-module-grid>*{min-width:0}
.r26-module-actions{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.r26-module-actions>*{flex:1;min-width:110px}.r26-module-actions input{display:none}
.royal-theme .r26-module .r26-button{width:100%;font-size:13px}.r26-module .r26-panel p{font-size:13px;line-height:1.45}.royal-theme .r26-loot-art{width:100%!important;height:120px!important;object-fit:cover;display:block}
.r26-data-row{display:flex;gap:6px;justify-content:space-between;border-bottom:1px solid #514532;padding:5px 0;font-size:12px}.r26-data-row a{min-width:0;overflow-wrap:anywhere}.r26-data-row b{flex-shrink:0}.r26-log-row{font-size:12px;padding:6px 0;border-bottom:1px solid #383528}
.r26-menu-item{text-align:center;padding:8px;border:1px solid #6c5631;display:flex;flex-direction:column;align-items:center;gap:7px}.royal-theme .r26-menu-item>img{width:70px!important;height:70px!important;object-fit:contain}.r26-menu-item h3{font-size:16px;margin:0}.r26-menu-item p{font-size:12px;margin:0}.r26-menu-item button{margin-top:auto}.r26-menu-item button:disabled{opacity:.6;cursor:default}
.r26-story-card{display:flex;flex-direction:column;gap:5px;text-align:center;border:1px solid #655433;padding:6px;font-size:12px}.royal-theme .r26-story-card img{width:100%!important;height:80px!important;object-fit:cover}
.r26-combatants{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.r26-fighter{border-width:7px;text-align:center;padding:4px}.r26-fighter h2{font-size:17px;font-weight:400;margin:0;overflow-wrap:anywhere}.r26-fighter>small{font-size:11px}.royal-theme .r26-fighter>img{width:100%!important;height:280px!important;object-fit:cover;object-position:center top;margin:6px 0}.r26-fighter-stats{display:grid;gap:4px;font-size:12px;padding-top:6px}.r26-versus{position:absolute;top:39%;left:50%;transform:translateX(-50%);font:bold 32px Georgia;color:#ffb946;text-shadow:0 0 12px #e94a10,0 2px #000}
.r26-estates{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.r26-estate{text-align:center;border-width:5px;font-size:11px;overflow-wrap:anywhere}.r26-estate b,.r26-estate small{display:block;padding:2px;font-weight:400;font-size:10px}.royal-theme .r26-estate img{width:100%!important;height:72px!important;object-fit:cover}
.royal-theme.page-clan :is(.clan-hero,.clan-block,.mrow,.prig,.setbox){border:1px solid #76603b!important;background:#09121ae8!important;border-radius:1px!important;padding:10px!important;max-width:100%;box-sizing:border-box}
.royal-theme.page-clan .clan-hero{margin:0!important;gap:10px}.royal-theme.page-clan :is(.clan-sec,.mhead){font-size:18px;color:#dbc08c;background:#08121a;padding:9px;border-bottom:1px solid #745b34;margin-top:9px}
.r26-siege-targets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.r26-siege-targets .r26-panel{padding:5px;margin:0}.royal-theme .r26-siege-targets img{width:100%!important;height:110px!important;object-fit:cover}.royal-theme .r26-siege-targets h2{font-size:12px;margin-top:5px}.r26-siege-targets small,.r26-siege-targets p{font-size:10px!important}
@media(max-width:420px){.royal-theme .r26-scene h1{font-size:29px!important}.royal-theme .r26-scene{min-height:210px}.royal-theme .r26-scene-dragon{min-height:280px}.royal-theme .r26-fighter>img{height:225px!important}.r26-fighter h2{font-size:14px}.r26-estates{grid-template-columns:repeat(3,minmax(0,1fr))}.r26-siege-targets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:350px){.r26-module-grid{grid-template-columns:1fr}.r26-combatants{gap:5px}.r26-fighter{padding:2px;border-width:5px}.royal-theme .r26-fighter>img{height:200px!important}.r26-fighter-stats{font-size:11px}.r26-versus{font-size:25px}}
.royal-theme :is(.r26-button,.iv-btn,.bar,.grey-btn,.bn-spec .get,.bn-btn,.lvl-close,.battle-close,.dr-btn,.tv-close) {
    box-sizing:border-box; min-height:44px; max-width:100%; height:auto;
    white-space:normal!important; overflow-wrap:anywhere; text-transform:none!important;
    letter-spacing:normal!important; font-variant:normal; line-height:1.3!important;
    text-align:center; text-decoration:none; vertical-align:middle;
}
.royal-theme .r26-button {
    min-width:0; font-size:14px; padding:10px 12px;
    border-color:var(--royal-line); border-radius:2px;
    
}
.royal-theme .r26-red { box-shadow:none!important; }

.royal-theme .r26-button:disabled:hover { filter:saturate(.4); }
.royal-theme .r26-module .r26-button { font-size:14px; }
.royal-theme .r26-module .r26-panel p { font-size:14px; line-height:1.5; }
.royal-theme .r26-tools { flex-wrap:wrap; }
.royal-theme .r26-tools a { min-height:32px; display:flex; align-items:center; }
.royal-theme .r26-events a { display:flex; align-items:center; justify-content:center; min-height:40px; }
.royal-theme .r26-module-actions { align-items:stretch; }
.royal-theme .r26-module-actions>form { display:flex; }
.royal-theme .r26-module-actions button { flex:1; }
.royal-theme .r26-scene { border:8px solid transparent; border-image:url('/images/gameplay/frame.webp') 120 stretch; }
.royal-theme .r26-scene p { text-wrap:balance; }
.royal-theme .r26-profile-nav .r26-button { display:flex; flex-direction:column; gap:4px; padding:5px 2px; }
.royal-theme .r26-profile-nav img { width:26px!important; height:26px!important; object-fit:contain; }
.royal-theme .r26-profile-nav span { max-width:100%; }
.royal-theme .r26-profile-stats :is(dt,dd) { overflow-wrap:anywhere; }
.royal-theme .r26-profile-stats dd { margin-left:0; }
.r27-enemies { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.r27-enemies figure { margin:0; min-width:0; border:1px solid var(--royal-line); background:#060d16; }
.royal-theme .r27-enemies img { display:block; width:100%!important; height:115px!important; object-fit:cover; object-position:center 20%; }
.r27-enemies figcaption { padding:6px 3px; font-size:12px; text-align:center; overflow-wrap:anywhere; }
.royal-theme .r27-clan-banner { min-height:125px; padding:12px 8px; background-position:center 36%; }
.r27-clan-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:10px 0; }
.r27-clan-actions>* { min-width:0; margin:0!important; }
.r27-clan-actions>.bar { display:flex!important; justify-content:center; align-items:center; gap:5px; padding:10px!important; }
.r27-clan-actions :is(.clan-sec,.clan-block,.dis,.oks) { grid-column:1/-1; }
.r27-clan-actions .bico { width:22px!important; height:24px!important; object-fit:contain; }
.royal-theme .r26-dragon .r26-scene { min-height:430px; padding-bottom:130px; }
.royal-theme .r27-dragon-sides { position:relative; margin-top:-125px; padding:0 8px; gap:10px; }
.royal-theme .r27-dragon-sides .r26-panel { background:#071019ee; font-size:12px; }
.royal-theme .r27-dragon-sides .r26-panel p { font-size:12px; }
.royal-theme .r27-dragon-sides .r26-loot-art { height:80px!important; }
.royal-theme .r26-fighter { background:#071019; }
.royal-theme .r26-fighter progress { height:11px; }
.royal-theme .r26-fighter progress::-moz-progress-bar { background:#c13c30; }
.royal-theme .r26-menu-item { background:linear-gradient(#17212b,#080f16); margin:0; }
.royal-theme .r26-menu-item>img { width:92px!important; height:92px!important; }
@media(max-width:420px) {
    .royal-theme .r26-dragon .r26-scene { min-height:340px; padding-bottom:35px; }
    .royal-theme .r27-dragon-sides { margin-top:0; padding:0; }
    .r27-enemies { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .royal-theme .r27-enemies img { height:150px!important; }
    .royal-theme .r26-events a { font-size:12px; }
.royal-theme .r26-red { background:transparent!important; }
.royal-theme .r26-module-actions>.r26-button { flex:1 1 130px; min-width:min(130px,100%); }
.royal-theme .r26-profile-nav .r26-button { font-size:12px; overflow-wrap:normal; }
@media(max-width:390px) {
    .royal-theme .r26-events { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .royal-theme .r26-events a { overflow-wrap:normal; padding:8px 4px; }
}
.royal-theme .royal-reward-card .r27-reward-emblem { display:block; width:100%!important; height:min(220px,30dvh)!important; object-fit:contain; margin:0; flex-shrink:0; }
@media(max-height:540px) { .royal-theme .royal-reward-card .r27-reward-emblem { height:20dvh!important; } }
.royal-theme .r28-valley{background-image:url('/images/gameplay/valley.webp');background-size:cover;background-position:center;min-height:260px}
.royal-theme .r28-guardians{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}.royal-theme .r28-guardians article{min-width:0}.royal-theme .r28-guardians img{width:100%;height:140px;object-fit:contain}.royal-theme .r28-guardians h3{font:15px Georgia,serif;color:#e5c586}.royal-theme .r28-guardians p{font-size:12px}
.royal-theme .r28-fighters{background:url('/images/gameplay/arena.webp') center/cover}.royal-theme .r28-fighters .r26-fighter{min-width:0;background-color:#07121bc9}.royal-theme .r28-fighters h2{overflow-wrap:anywhere}.royal-theme .r28-fighters p{font-size:12px;margin:6px 0}.royal-theme .r28-fighters .r26-fighter>img{height:250px!important;object-fit:contain!important}
.royal-theme .r28-log{max-height:200px;overflow:auto;padding-left:22px;scrollbar-color:#a4834a #0d1922;text-align:left}.royal-theme .r28-log li{padding:4px;color:#d7c6a4}
.royal-theme .r28-mana::-webkit-progress-value{background:linear-gradient(#83c1ea,#215380)}.royal-theme .r28-mana::-moz-progress-bar{background:#3678a4}

}
@media(max-width:380px){.royal-theme .r28-guardians{grid-template-columns:repeat(2,minmax(0,1fr))}.royal-theme .r28-fighters .r26-fighter>img{height:190px!important}}
.royal-theme .r28-page{min-width:0;font:14px/1.5 Georgia,serif;color:#e7ddc8}.royal-theme .r28-page *{box-sizing:border-box}.royal-theme .r28-page [hidden]{display:none!important}.royal-theme .r28-page :is(h1,h2,h3,p){overflow-wrap:anywhere}.royal-theme .r28-page h1{font:30px/1.1 Georgia,serif;color:#f6dda9;text-shadow:0 2px 4px #000}.royal-theme .r28-page h2{font:20px Georgia,serif;color:#e4c68d}.royal-theme .r28-page h3{font:15px Georgia,serif;color:#e6c996}
.royal-theme .r28-hero{position:relative;isolation:isolate;aspect-ratio:3/2;display:flex;align-items:end;padding:18px;background-position:center;background-size:cover;border:1px solid #a77b36;box-shadow:inset 0 0 18px #000;margin-bottom:12px;overflow:hidden}.royal-theme .r28-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 40%,#03080bea);z-index:-1}
.royal-theme .r28-hero-skills{background-image:url('/images/kingdom/skills.webp')}.royal-theme .r28-hero-valley{background-image:url('/images/kingdom/valley.webp')}.royal-theme .r28-hero-pets{background-image:url('/images/kingdom/pets.webp')}.royal-theme .r28-hero-tavern{background-image:url('/images/kingdom/tavern.webp')}.royal-theme .r28-hero-trophies{background-image:url('/images/gameplay/reward.webp')}.royal-theme .r28-hero-inventory{background-image:url('/images/gameplay/shop.webp')}.royal-theme .r28-hero-clan{background-image:url('/images/gameplay/clan.webp')}.royal-theme .r28-hero-quest{background-image:url('/images/gameplay/quest.webp')}
.royal-theme .r28-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.royal-theme .r28-tabs :is(a,button){flex:1 1 90px;min-height:40px;padding:7px;border:1px solid #765c34;background:#13191c;color:#c6b998;text-decoration:none;text-align:center;cursor:pointer;font:14px Georgia,serif}.royal-theme .r28-tabs .active{background:linear-gradient(#665032,#322518);color:#ffe3a5;border-color:#b69154}
.royal-theme .r28-catalog{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.royal-theme .r28-pet{display:flex;flex-direction:column;align-items:stretch;min-width:0;text-align:center;border-width:7px;padding:4px}.royal-theme .r28-pet>img{width:100%;height:130px;object-fit:contain}.royal-theme .r28-pet p{font-size:12px}.royal-theme .r28-pet form{margin-top:auto}.royal-theme .r28-pet .r26-button{font-size:12px;padding:8px 4px;white-space:normal;width:100%;min-height:44px}
.royal-theme .r28-trophy{border-width:7px;text-align:center;padding:5px;min-width:0}.royal-theme .r28-trophy summary{cursor:pointer;display:flex;flex-direction:column;gap:5px;align-items:center}.royal-theme .r28-trophy summary img{width:100%;height:100px;object-fit:contain}.royal-theme .r28-trophy small{font-size:11px}.royal-theme .r28-trophy.locked img{filter:grayscale(1);opacity:.45}
.royal-theme .r28-skill-tree{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.royal-theme .r28-skill-node{display:flex;flex-direction:column;align-items:center;padding:8px 3px;background:#0c151c;border:1px solid #735b34;min-width:0;text-align:center;font-size:12px}.royal-theme .r28-skill-node img{width:48px;height:48px;object-fit:contain}.royal-theme .r28-skill-node.active{border-color:#e2bc77;box-shadow:inset 0 0 18px #a17a3133}.royal-theme .r28-page progress{display:block;width:100%;height:10px;margin:8px 0}
@media(max-width:380px){.royal-theme .r28-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.royal-theme .r28-page h1{font-size:25px}.royal-theme .r28-hero{padding:12px}.royal-theme .r28-skill-tree{gap:4px}}

.royal-theme .r28-item-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px;background:#09131c;border:1px solid #896a3b}.royal-theme .r28-item-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:83px;padding:6px;background:radial-gradient(#29333e,#090d12);border:1px solid #82673f;box-shadow:inset 0 0 8px #000}.royal-theme .r28-item-slot img{width:58px;height:58px;object-fit:contain}.royal-theme .r28-item-slot small{font-size:11px;color:#d5b673}.royal-theme .r28-item-slot.active{border:2px solid #e5c485;box-shadow:0 0 8px #e5c48566}.royal-theme .r28-selected-item{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:center;margin-bottom:12px}.royal-theme .r28-selected-item>img{width:100%;height:120px;object-fit:contain}
.royal-theme .r28-mail-heading{padding:22px 14px;background:linear-gradient(90deg,#071019e8,#07101977),url('/images/gameplay/mail.webp') center/cover;border:1px solid #a07b3c;margin-bottom:12px}.royal-theme .q-wrap .q-item .r28-quest-art{position:absolute;left:7px;top:7px;width:88px;height:96px;object-fit:cover;border:1px solid #a98648}
.royal-theme .r28-stance{display:block;width:100%;padding:7px;color:#e6c998;font-size:14px}.royal-theme .r28-stance select{display:block;box-sizing:border-box;max-width:100%;width:100%;min-height:44px;background:#121b22;color:#e6d2a7;border:1px solid #9f7b40;font:14px Georgia,serif;white-space:normal}
@media(max-width:380px){.royal-theme .r28-item-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.royal-theme .r28-selected-item{grid-template-columns:70px minmax(0,1fr);gap:10px}.royal-theme .q-wrap .q-item .r28-quest-art{width:62px;height:80px}}
.royal-theme .r28-valley{background-image:url('/images/kingdom/valley.webp')}.royal-theme .r26-scene-tavern{background-image:url('/images/kingdom/tavern.webp')!important}
.royal-theme .r26-button{min-height:44px!important;border:7px solid transparent;border-image:url('/images/gameplay/frame.webp') 120 stretch;padding:5px 9px;box-sizing:border-box}.royal-theme .r26-button.r26-red{min-height:48px!important}.royal-theme .r28-fighters .r28-mana::-webkit-progress-value{background:linear-gradient(#83c1ea,#215380)!important}.royal-theme .r28-fighters .r28-mana::-moz-progress-bar{background:#3678a4!important}.royal-theme .r28-pet{background:#071019!important}.royal-theme .r28-catalog{align-items:stretch}.royal-theme .r28-catalog form.r28-pet{border:1px solid #987a43;padding:8px}.royal-theme .r28-catalog form.r28-pet button{margin-top:auto}
.royal-theme .online-page{padding:10px;background:#060d14e8;color:#dec797;border:1px solid #806235;min-width:0}
.royal-theme .online-page *{box-sizing:border-box}.royal-theme .online-title{text-align:center;padding:16px 5px}.royal-theme .online-title h1{font:34px Georgia,serif;color:#ebcf92;margin:0 0 8px}.royal-theme .online-title p{font-size:18px}.royal-theme .online-title small{color:#b9a47b}
.royal-theme .online-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}.royal-theme .online-tabs a{padding:12px 5px;text-align:center;min-height:44px;border:1px solid #856331;background:#0c151d;overflow-wrap:anywhere}.royal-theme .online-tabs .active{background:#3e2d16;color:#ffdf9a}
.royal-theme .online-count{text-align:center;color:#b6d897}.royal-theme .online-list{border:1px solid #645033;background:#071019}.royal-theme .online-row{display:grid;grid-template-columns:25px minmax(0,1fr) 60px;gap:7px;padding:10px 7px;align-items:center;border-bottom:1px solid #443825}.royal-theme .online-row.head{font-size:12px;color:#d7b877;background:#141d22}.royal-theme .online-row>strong{text-align:center}.royal-theme .online-person{display:flex;align-items:center;gap:8px;min-width:0}.royal-theme .online-person>img{width:35px;height:45px;object-fit:cover;object-position:top;border:1px solid #9b7d48;flex-shrink:0}.royal-theme .online-person>div{min-width:0;overflow-wrap:anywhere}.royal-theme .online-person :is(a,small){display:block}.royal-theme .online-clan{font-size:12px;color:#b1c5d5}.royal-theme .online-person small{font-size:11px;color:#9cafa0}.royal-theme .online-empty{padding:15px;text-align:center}.royal-theme .online-pagination{display:flex;gap:7px;justify-content:center;margin:12px 0}.royal-theme .online-pagination a{padding:10px 14px;border:1px solid #947543}.royal-theme .online-pagination [aria-current]{background:#49371b}.royal-theme .online-search{display:grid;gap:10px;margin:14px 0}.royal-theme .online-search input{min-width:0;width:100%;background:#101d27;color:#eee0c4;border:1px solid #987743;padding:12px;font:16px Georgia,serif}
.royal-theme .r28-page .r26-data-row>span,.royal-theme .r28-page .r26-data-row>a{min-width:0;overflow-wrap:anywhere}
.royal-theme .r28-page .r26-data-row>strong{flex-shrink:0;max-width:50%;overflow-wrap:anywhere;text-align:right}
.royal-theme .r28-fighters .r26-fighter{position:relative;overflow:hidden}
.royal-theme .r28-damage{position:absolute;top:40%;left:0;width:100%;z-index:2;text-align:center;color:#fff1df;font:bold 27px Georgia,serif;text-shadow:0 2px 4px #400;pointer-events:none;opacity:0}
@keyframes r28-strike{50%{transform:translateX(9px) rotate(2deg)}}
@keyframes r28-impact{30%,70%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
@keyframes r28-number{15%,65%{opacity:1}100%{opacity:0;transform:translateY(-24px)}}
@keyframes r28-finish{from{opacity:.6}to{opacity:1}}

.royal-theme .r28-strike>img{animation:r28-strike .35s ease-out!important}
.royal-theme .r28-hit>img{animation:r28-impact .35s .2s ease-out!important}
.royal-theme .r28-counter-hit>img{animation:r28-impact .35s .6s ease-out!important}
.royal-theme .r28-hit .r28-damage{animation:r28-number 1.2s .2s ease-out both}
.royal-theme .r28-counter-hit .r28-damage{animation:r28-number 1.2s .6s ease-out both}
.royal-theme .r28-finished{animation:r28-finish .6s ease-out}

.royal-theme .r28-strike.r28-counter-hit>img{animation:r28-strike .35s ease-out,r28-impact .35s .6s ease-out!important}
.royal-theme .pet-panel{margin:8px 7px;padding:6px;border:8px solid transparent;border-image:url('/images/gameplay/frame.webp') 120 stretch;background:linear-gradient(125deg,#101417e8,#070a0c);border-radius:0;box-shadow:inset 0 0 24px #000}
.royal-theme .pet-panel h2{display:flex;align-items:center;gap:10px;margin:0 0 8px;text-align:center;justify-content:center;color:#e4bd7d;font-size:18px;font-weight:400;line-height:1.2;text-transform:uppercase;letter-spacing:.3px}
.royal-theme .pet-panel h2::before,.royal-theme .pet-panel h2::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#81643d,transparent)}
.royal-theme .pet-feature-layout{display:grid;grid-template-columns:31% 1fr;gap:8px;align-items:start}
.royal-theme .pet-feature-picture{border:2px solid #957144;box-shadow:0 0 0 1px #342518}
.royal-theme .pet-feature-picture img{display:block;width:100%;aspect-ratio:1.35;object-fit:cover}
.royal-theme .pet-feature h3{margin:0 0 6px;color:#e3d3b7;font-size:19px;font-weight:400;line-height:1.15;text-transform:uppercase}
.royal-theme .pet-feature-copy>p{font-size:12px;line-height:1.35;margin:0 0 8px}
.royal-theme .pet-feature-status{grid-column:1/-1;display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:12px}
.royal-theme .pet-feature-status q{max-width:46%;text-align:right;font-style:italic;color:#a5a19b}
.royal-theme .pet-status{color:#c9b787;border:1px solid #716246;padding:4px 10px;text-transform:uppercase;font-size:14px}
.royal-theme .pet-status.is-active{color:#d3eca9;border-color:#728e36;background:radial-gradient(ellipse,#203813,#091208);box-shadow:0 0 8px #73a34140,inset 0 0 7px #53773580}
.royal-theme .pet-stats{list-style:none;padding:0;margin:0}.royal-theme .pet-stats li{display:flex;align-items:center;gap:5px;margin:3px 0;color:#c9c5bd;font-size:12px;line-height:1.25}
.royal-theme .pet-stats li>img{width:19px;height:19px;object-fit:contain;flex:none}.royal-theme .pet-stats b{font-weight:400;color:#dfb265}
.royal-theme .pet-feature-stats{display:flex;flex-wrap:wrap;gap:4px 9px}.royal-theme .pet-feature-stats li{flex:1 1 68px;align-items:start}.royal-theme .pet-feature-stats b{display:block;font-size:16px}
.royal-theme .pet-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.royal-theme .pet-card{--rarity:#bc914e;display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--rarity);border-radius:0;box-shadow:inset 0 0 0 2px #121315,0 0 0 1px #342b20;background:linear-gradient(130deg,#101216,#030607);color:#e4dccb;text-decoration:none;padding:3px;scroll-margin-top:12px}
.royal-theme .pet-card.rarity-epic{--rarity:#9872bc}.royal-theme .pet-card.rarity-rare{--rarity:#7297b0}.royal-theme .pet-card.is-selected{box-shadow:0 0 0 1px var(--rarity),0 0 10px #b6955140}
.royal-theme .pet-card:hover,.royal-theme .pet-card:focus-visible{outline:2px solid #ecc881;outline-offset:2px;text-decoration:none}
.royal-theme .pet-card-art{aspect-ratio:1.52;overflow:hidden;background:#080c0f;margin:-2px -2px 0}.royal-theme .pet-card-art img{display:block;width:100%;height:100%;object-fit:cover}
.royal-theme .pet-card h3{text-align:center;font-size:14px;line-height:1.2;font-weight:400;text-transform:uppercase;color:#eadabe;margin:0 -1px;padding:5px 0 3px;background:linear-gradient(0deg,#08090ce0,#08090c70);min-height:40px;display:flex;align-items:center;justify-content:center}
.royal-theme .pet-rarity{display:block;text-align:center;color:var(--rarity);font-size:12px;text-transform:uppercase;border-top:1px solid var(--rarity);border-bottom:1px solid #4c414933;padding:1px 0;margin-bottom:4px;background:radial-gradient(ellipse,#a28b7c18,transparent)}
.royal-theme .pet-card .pet-stats{padding:0 3px 4px;flex:1}.royal-theme .pet-card .pet-stats li{font-size:12px}.royal-theme .pet-owned{font-size:12px;color:#aea79a;text-align:center;border-top:1px solid #65544445;padding:3px 0}
.royal-theme .pet-bottom{display:grid;grid-template-columns:.92fr 1.08fr;gap:6px;margin:0 7px 10px}.royal-theme .pet-bottom .pet-panel{margin:0;padding:4px}.royal-theme .pet-bottom h2{font-size:16px;gap:5px}
.royal-theme .pet-collection-bonus>div{display:flex;align-items:center;gap:5px}.royal-theme .pet-emblem{width:49px;height:98px;object-fit:contain}.royal-theme .pet-collection-bonus .pet-stats li{margin:8px 0}
.royal-theme .pet-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;align-items:start}.royal-theme .pet-action-grid form{margin:0}
.royal-theme .pet-action-button{font:12px/1.2 Georgia,'Times New Roman',serif;text-transform:uppercase;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:66px;padding:5px 3px;border:1px solid #806744;border-radius:0;color:#ddd2b6;background:linear-gradient(135deg,#24272a,#080c10 55%,#29271e);box-shadow:inset 0 0 0 2px #080a0a,inset 0 0 0 3px #66533c50;cursor:pointer;text-align:center;text-decoration:none;overflow-wrap:normal;word-break:normal;hyphens:none}
.royal-theme .pet-action-button img{width:24px;height:25px;object-fit:contain}.royal-theme .pet-action-primary{background:linear-gradient(135deg,#79500f,#2a1b05 55%,#654719);border-color:#d7a74c}
.royal-theme .pet-action-button:hover{color:#ffe2a2;border-color:#d4b377}.royal-theme .pet-action-button:focus-visible{outline:2px solid #f5d99d;outline-offset:3px}.royal-theme .pet-action-button:disabled{opacity:.65;cursor:default}
.royal-theme .pet-action-detail summary{list-style:none}.royal-theme .pet-action-detail summary::-webkit-details-marker{display:none}.royal-theme .pet-action-detail[open]{grid-column:1/-1}
.royal-theme .pet-action-description{padding:7px;font-size:13px;border:1px solid #514332;background:#090d10}.royal-theme .pet-action-description p{margin:4px 0 9px}.royal-theme .pet-empty{padding:20px;text-align:center}
.royal-theme .pet-legacy{margin-top:10px}.royal-theme .pet-legacy>summary{color:#d6bb86;cursor:pointer;padding:8px 4px;font-size:14px}.royal-theme .pet-legacy[open]>summary{margin-bottom:8px}
@container(max-width:430px){.royal-theme .pet-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.royal-theme .pet-bottom{grid-template-columns:1fr}.royal-theme .pet-action-button{flex-direction:row;font-size:14px;min-height:48px}.royal-theme .pet-emblem{width:65px}.royal-theme .pet-feature-layout{grid-template-columns:36% 1fr}.royal-theme .pet-feature-stats{grid-column:1/-1}.royal-theme .pet-feature h3{font-size:17px}.royal-theme .pet-panel h2{font-size:17px}.royal-theme .pet-feature-status{flex-wrap:wrap}.royal-theme .pet-feature-status q{max-width:100%}.royal-theme .pet-feature-stats li{flex-basis:100%}.royal-theme .pet-feature-stats b{display:inline;font-size:14px}}

.royal-theme .pet-panel{border-image-source:url('/images/kingdom/companions/panel-frame.webp');border-image-slice:210 220}
.royal-theme .pet-action-button{position:relative}
.royal-theme .pet-action-button::after{content:'';position:absolute;inset:-2px;border:7px solid transparent;border-image:url('/images/kingdom/companions/panel-frame.webp') 210 220 stretch;pointer-events:none;opacity:.65}
.royal-theme .pet-card::after{content:'';position:absolute;inset:0;border:7px solid transparent;border-image:url('/images/kingdom/companions/panel-frame.webp') 210 220 stretch;pointer-events:none;opacity:.55}
.royal-theme .pet-card.rarity-epic::after{filter:hue-rotate(220deg) saturate(.65)}.royal-theme .pet-card.rarity-rare::after{filter:hue-rotate(155deg) saturate(.5)}
.royal-theme .companions-page .pet-card,.royal-theme .companions-page .pet-card-art,.royal-theme .companions-page .pet-card-art img{border-radius:0!important}
.royal-theme .settings-banner{padding:12px 8px 15px;text-align:center;background:linear-gradient(100deg,#17050580,#380907e0,#13050580);border-top:1px solid #8c744e;border-bottom:1px solid #8c744e;margin:0 20px 16px}
.royal-theme .settings-banner h1{font:400 35px/1.1 Georgia,serif;color:#eddbb5;text-transform:uppercase;margin:0;text-shadow:0 2px 4px #000}
.royal-theme .settings-banner p{font-size:15px;margin:5px 0 0;color:#afa597}
.royal-theme .settings-card{margin:0 10px 10px;background:linear-gradient(120deg,#131618f5,#07090cf8);border:7px solid transparent;border-image:url('/images/kingdom/companions/panel-frame.webp') 210 220 stretch;box-shadow:0 4px 6px #0008}
.royal-theme .settings-card>summary{display:grid;grid-template-columns:54px minmax(0,1fr) auto 12px;gap:10px;align-items:center;min-height:62px;list-style:none;cursor:pointer}
.royal-theme .settings-card>summary::-webkit-details-marker{display:none}
.royal-theme .settings-icon{align-self:stretch;display:flex;align-items:center;justify-content:center}
.royal-theme .settings-icon img{width:45px;height:48px;object-fit:contain}
.royal-theme .settings-label strong{font:400 18px/1.2 Georgia,serif;text-transform:uppercase;color:#e1c89e;display:block}
.royal-theme .settings-label small{display:block;font:400 12px/1.3 Georgia,serif;color:#9c9991;margin-top:5px}
.royal-theme .settings-badge{display:block;font:400 12px/1.2 Georgia,serif;text-transform:uppercase;color:#8adbba;padding:5px 6px;border:1px solid #24684e;border-radius:9px;background:#0c3226}
.royal-theme .settings-badge.paid{color:#e1bd72;border-color:#775930;background:#37250c}
.royal-theme .settings-chevron{font:32px/1 Georgia,serif;color:#cdb386}
.royal-theme .settings-card[open] .settings-chevron{transform:rotate(90deg)}
.royal-theme .settings-form{padding:12px 6px 5px;border-top:1px solid #554931;color:#ccc3b5;font-size:14px}
.royal-theme .settings-form p{margin:0 0 10px}.royal-theme .settings-form form{margin:0}
.royal-theme .settings-exit{margin:18px 10px 0}.royal-theme .settings-exit form{margin:0}.royal-theme .settings-exit-button{width:100%;display:grid;grid-template-columns:48px 1fr 16px;gap:14px;align-items:center;padding:12px 22px;min-height:70px;border:7px solid transparent;border-image:url('/images/kingdom/companions/panel-frame.webp') 210 220 stretch;background:linear-gradient(100deg,#180707,#390606,#150607);color:#dbc097;text-align:left;cursor:pointer}
.royal-theme .settings-exit-button img{height:45px;width:44px;object-fit:contain}.royal-theme .settings-exit-button strong{font:400 19px/1.2 Georgia,serif;text-transform:uppercase;display:block}.royal-theme .settings-exit-button small{display:block;font:13px/1.3 Georgia,serif;color:#aaa093;margin-top:4px}
.royal-theme .settings-quote{text-align:center;padding:15px 10px 0;color:#cbb48b}.royal-theme .settings-quote img{height:36px;width:40px;object-fit:contain}.royal-theme .settings-quote p{font:italic 15px/1.4 Georgia,serif;margin:8px 0}.royal-theme .settings-quote small{text-transform:uppercase;letter-spacing:2px;color:#927a52;font-size:12px}
.royal-theme .settings-flash{background:#14281f;border:1px solid #578168;padding:12px;color:#d6eadb}.royal-theme .settings-flash.warning{background:#2b1713;border-color:#9b6552}
.royal-theme .settings-card>summary:focus-visible{outline:2px solid #e4c68d;outline-offset:3px}
@container(max-width:430px){.royal-theme .settings-card{margin-left:2px;margin-right:2px}.royal-theme .settings-card>summary{grid-template-columns:42px minmax(0,1fr) auto 10px;gap:6px;min-height:70px}.royal-theme .settings-icon img{width:36px;height:42px}.royal-theme .settings-label strong{font-size:15px}.royal-theme .settings-label small{font-size:12px}.royal-theme .settings-badge{grid-column:2;justify-self:start;margin-bottom:5px}.royal-theme .settings-chevron{grid-column:4;grid-row:1/3}.royal-theme .settings-banner{margin-left:6px;margin-right:6px}.royal-theme .settings-banner h1{font-size:30px}.royal-theme .settings-exit{margin-left:2px;margin-right:2px}.royal-theme .settings-exit-button{padding:10px;gap:8px}.royal-theme .settings-exit-button strong{font-size:17px}}

.royal-theme .settings-chevron{grid-column:4}
.r29-landing{box-sizing:border-box;container-type:inline-size;width:100%;max-width:520px;margin:0 auto;isolation:isolate;color:#dfc9a6;font-family:Georgia,'Times New Roman',serif;line-height:1.2}
.r29-landing *{box-sizing:border-box}
.r29-landing a{color:inherit!important;text-decoration:none}
.r29-emblem{position:relative;display:block;background:url('/images/core/crest.webp') center/contain no-repeat;aspect-ratio:3/2;margin:auto;filter:drop-shadow(0 3px 4px #000);text-align:center}
.r29-emblem :is(h1,span){position:absolute;left:13%;right:13%;top:41%;margin:0;padding:0;color:#ddd8c9;font-variant:small-caps;font-weight:400;line-height:.92;letter-spacing:.02em;text-shadow:0 2px 1px #000,1px 0 #76644b,-1px -1px #fff9db}
.r29-world-banner{height:31cqw;min-height:100px;background:linear-gradient(0deg,#080d12,transparent 22%),url('/images/core/world.webp') center 45%/cover;position:relative;text-align:center}
.r29-world-banner .r29-emblem{width:52%;height:26cqw;aspect-ratio:auto;background-size:100% 100%}.r29-world-banner h1{font-size:5.2cqw}
.r29-world-banner>p{margin:0;padding:0 3%;font-size:1.8cqw;letter-spacing:.4em;text-transform:uppercase;color:#f5e1b6;text-shadow:0 2px 2px black}
.r29-locations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2cqw;padding:0 2.2% 3%;margin:0}
.r29-locations .r29-location{position:relative;display:flex;flex-direction:column;min-width:0;margin:0;padding:1.7cqw 1.25cqw 1.4cqw;border:0;border-radius:0;box-shadow:none;background:none;isolation:isolate}
.r29-location::after{content:'';position:absolute;inset:0;z-index:2;background:url('/images/core/card-frame.webp') center/100% 100% no-repeat;pointer-events:none}
.r29-scene{display:block;position:relative;aspect-ratio:2.2;overflow:hidden;background:#171b20}
.r29-scene-image{display:block;width:100%;height:100%;object-fit:cover}
.r29-location-icon{position:absolute;left:2%;bottom:3%;width:25%;height:62%;object-fit:contain;filter:drop-shadow(1px 2px 2px #000)}
.r29-location-label{display:flex;flex:1;flex-direction:column;justify-content:center;gap:.5cqw;min-height:7.1cqw;padding:.7cqw .9cqw;background:linear-gradient(135deg,#29292a,#080c0f 60%);border-top:1px solid #97846d;text-shadow:0 1px #000}
.r29-location-label strong{display:block;font-weight:400;font-size:2.6cqw;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}
.r29-location-label small{display:block;font-size:1.15cqw;text-transform:uppercase;letter-spacing:.18em;color:#d3d1cb;white-space:nowrap}
.r29-motto{display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:.43;color:#8e9aa7;text-align:center;letter-spacing:.3em;font-size:1.7cqw}.r29-motto img{width:22%;height:auto;filter:grayscale(1)}.r29-motto p{line-height:1.8;margin:1cqw 0}.r29-motto span{letter-spacing:0}
.r29-location:focus-visible,.r29-location.tut-target{outline:2px solid #e2ba72;outline-offset:-4px}
.r29-player-row{display:grid;grid-template-columns:18% 39% 39%;gap:2%;align-items:center;padding:0 1% 1.6cqw;border-bottom:3px ridge #76634f}
.r29-avatar{position:relative;display:block;aspect-ratio:1;border:3px ridge #ac9166;border-radius:50%;box-shadow:0 0 0 2px #171716,0 2px 4px #000}.r29-avatar>img{width:100%;height:100%;object-fit:cover;object-position:center 14%;border-radius:50%}.r29-avatar>b{position:absolute;left:-4%;bottom:-7%;display:grid;place-items:center;min-width:33%;aspect-ratio:1;border:2px ridge #ac9166;background:#15130e;border-radius:50%;font:3cqw Georgia,serif;color:#ead3a4}
.r29-player-info{min-width:0;font-size:1.8cqw;color:#dfcaaa}.r29-player-info>a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:2.25cqw;padding-bottom:1cqw}.r29-player-info>a>img{width:3cqw;height:3cqw;vertical-align:middle}
.r29-kingdom{display:flex;align-items:center;gap:1cqw;font-size:1.85cqw;min-width:0}.r29-kingdom>img{width:25%;height:7cqw;object-fit:contain}.r29-kingdom>span{min-width:0;overflow-wrap:anywhere}.r29-kingdom>b{margin-left:auto;font-size:4cqw;color:#c29662;font-weight:400}
.r29-vitals{display:grid;grid-template-columns:1.6fr 1.65fr 1.25fr 1.55fr .7fr .7fr .7fr;gap:.7cqw;padding-top:1.5cqw}.r29-stat,.r29-action{border:2px ridge #786045!important;background:linear-gradient(140deg,#202022,#090c0f 55%)!important;box-shadow:inset 0 0 0 1px #030406,0 1px 3px black!important;border-radius:3px!important}
.r29-stat{display:grid;grid-template-columns:28% 1fr;align-content:center;align-items:center;gap:.5cqw;padding:1cqw .5cqw;color:#f3e7d4;min-width:0}.r29-stat>img{width:100%;height:3.8cqw;object-fit:contain}.r29-stat>span{font-size:1.35cqw;white-space:nowrap}.r29-stat strong{display:block;font-weight:400;font-size:1.8cqw;margin-top:.5cqw}.r29-stat progress{grid-column:1/-1;margin:.3cqw 0 0;height:1.5cqw}.r29-stat .r29-health::-webkit-progress-value{background:linear-gradient(#ff9c7c,#b70b11 65%,#ee3527)}.r29-stat .r29-health::-moz-progress-bar{background:linear-gradient(#ff9c7c,#b70b11 65%,#ee3527)}.r29-stat .r29-stamina::-webkit-progress-value{background:linear-gradient(#caf69c,#3d902d 65%,#83c555)}.r29-stat .r29-stamina::-moz-progress-bar{background:linear-gradient(#caf69c,#3d902d 65%,#83c555)}
.r29-vitals .r29-action{position:relative;display:flex;align-items:center;justify-content:center;margin:0;padding:.4cqw;min-width:0;cursor:pointer}.r29-action>img{width:85%;height:4.2cqw;object-fit:contain}.r29-action>b{position:absolute;right:-.8cqw;top:-1cqw;border-radius:50%;background:linear-gradient(#f65a42,#a20e0a);border:1px solid #ec9d78;padding:.2cqw .7cqw;color:white;font-size:2cqw;font-weight:400}
.r29-primary,.r29-secondary{display:grid;padding:2cqw 1cqw;gap:1.1cqw;border-bottom:3px ridge #645546;margin:0}.r29-primary{grid-template-columns:repeat(4,minmax(0,1fr))}.r29-secondary{grid-template-columns:repeat(6,minmax(0,1fr))}
.r29-primary>a,.r29-secondary>a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:linear-gradient(130deg,#27221b55,#080b0e);border:2px ridge #7a6953;box-shadow:0 2px 3px #000;border-radius:7%;padding:1.3cqw .3cqw;min-width:0}.r29-primary>a::after{content:'';position:absolute;inset:-.7cqw;background:url('/images/core/card-frame.webp') center/100% 100%;pointer-events:none}.r29-primary img{width:88%;height:15cqw;object-fit:contain;filter:drop-shadow(0 2px 3px #000)}.r29-primary strong{font-size:2.8cqw;font-weight:400;text-transform:uppercase;letter-spacing:.025em;padding-top:1cqw}.r29-secondary img{width:62%;height:7cqw;object-fit:contain;filter:drop-shadow(0 2px 2px #000)}.r29-secondary span{font-size:1.65cqw;text-transform:uppercase;padding-top:1cqw;white-space:nowrap}
.r29-timing{display:grid;grid-template-columns:1fr 1fr;padding:2cqw;border-bottom:3px ridge #76634f;color:#ebe3d4}.r29-timing>div{display:flex;gap:2cqw;align-items:center;padding:0 3cqw;font-size:2cqw}.r29-timing>div+div{}.r29-timing img{width:5.5cqw;height:6cqw;object-fit:contain}.r29-timing strong{display:block;font-size:2.4cqw;font-weight:400;margin-top:.8cqw;white-space:nowrap}
.ve-event{position:relative;isolation:isolate;container-type:inline-size;max-width:520px;width:100%;margin:auto;color:#e8d5bd;font-family:Georgia,'Times New Roman',serif;background:radial-gradient(ellipse at 10% 65%,#510d2044,transparent 50%),linear-gradient(#210d13,#0c0b0e 50%,#220c13);line-height:1.3}
.ve-event *{box-sizing:border-box}.ve-event a{color:#f0d9b6!important;text-decoration:none}.ve-event :is(h1,h2,h3,p){padding:0}.ve-hero{text-align:center;position:relative;min-height:48cqw;padding:12cqw 2cqw 1.5cqw;background:linear-gradient(0deg,#170c11 0%,transparent 40%),url('/images/valentine/hero.webp') center top/cover}
.ve-hero h1{position:relative;display:block;font-size:6.2cqw;font-weight:400;line-height:.96;letter-spacing:-.04em;text-transform:uppercase;color:#fae0b7;text-shadow:0 2px #28100a,1px 0 #7b422c,-1px -1px #fff1cf,0 0 10px #13070b;margin:0 0 .8cqw}.ve-hero h1>img{display:block;width:5cqw;height:5cqw;object-fit:contain;margin:0 auto .2cqw}.ve-hero h1>span{font-size:6.1cqw}
.ve-ribbon{background:linear-gradient(90deg,transparent,#350808ec 20%,#350808ec 80%,transparent);border-block:1px solid #c3925266;max-width:77%;margin:1cqw auto;font-size:2.3cqw;padding:.6cqw!important;box-shadow:0 2px 10px #0008}
.ve-intro{margin:.8cqw 0;color:#f1d6cd;font-size:2.15cqw;text-shadow:0 1px 3px #000;line-height:1.25}.ve-timer{display:flex;align-items:center;justify-content:center;gap:2cqw;width:46%;margin:1.5cqw auto 0;padding:1.1cqw 1.5cqw;background:linear-gradient(120deg,#191412,#07090beb);border:3px ridge #8f7451;color:#cfc6b9;box-shadow:0 3px 9px #000}.ve-timer>img{width:4cqw;height:5cqw}.ve-timer>span{font-size:1.9cqw}.ve-timer strong{display:block;font-size:2.65cqw;font-weight:400;color:#ffe1a8;white-space:nowrap}
.ve-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1cqw;padding:0 2cqw;margin:0 0 1.6cqw}.ve-tabs>a{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:13.5cqw;background:radial-gradient(ellipse at center,#60281f66,#0e0b0a);padding:1.4cqw 1cqw;font-size:2.25cqw;text-transform:uppercase}.ve-tabs>a::after,.ve-panel::after{content:'';pointer-events:none;position:absolute;inset:0;background:url('/images/core/card-frame.webp') center/100% 100%}.ve-tabs img{display:block;object-fit:contain;width:9cqw;height:8cqw;filter:drop-shadow(0 2px 2px #000)}
.ve-panel{position:relative;padding:2.6cqw 3.5cqw 2.7cqw;margin:1cqw 2cqw 0;background:linear-gradient(125deg,#29202266,#07090bbb 50%,#2b131955);border:0}.ve-panel h2{display:flex;gap:1cqw;align-items:center;justify-content:center;font-size:2.65cqw;font-weight:400;margin:0 0 1cqw;color:#f4d1aa}.ve-panel h2>img{width:4cqw;height:4cqw;object-fit:contain}.ve-panel>p{text-align:center;font-size:1.95cqw;margin:1cqw 0 1.5cqw}.ve-milestones{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0 1cqw;gap:2cqw;margin-top:1.8cqw;isolation:isolate}.ve-milestones form{text-align:center;margin:0;padding:0}.ve-milestones form>span{display:block;font-size:2cqw;line-height:1;margin-top:-.3cqw;position:relative}.ve-event .ve-reward{position:relative;display:block;width:9cqw;height:9cqw;padding:.8cqw;margin:auto;border:3px ridge #826c51;background:radial-gradient(#42251d,#090d0f);border-radius:0;box-shadow:0 0 4px #000;cursor:pointer}.ve-reward>img{width:100%;height:100%;object-fit:contain}.ve-reward>b{position:absolute;inset:0;display:grid;place-items:center;font-size:5cqw;color:#edbd66;text-shadow:0 1px #000}.ve-event .ve-reward:disabled{opacity:1;cursor:default}.ve-node{position:relative;display:block;margin:.5cqw auto 0;width:4.3cqw;height:4.3cqw;object-fit:contain;z-index:2}.ve-milestones progress{position:absolute;left:1%;bottom:1.2cqw;width:98%;height:1.8cqw;appearance:none;-webkit-appearance:none;border:2px ridge #aa8860;border-radius:10px;background:#05080b;overflow:hidden;z-index:0}.ve-milestones progress::-webkit-progress-bar{background:#05080b}.ve-milestones progress::-webkit-progress-value{background:linear-gradient(#f68e98,#b61127 60%,#650613)}.ve-milestones progress::-moz-progress-bar{background:linear-gradient(#f68e98,#b61127 60%,#650613)}.ve-balance{display:block;text-align:center;font-size:1.55cqw;color:#bc9e87;margin-top:.3cqw}
.ve-quest{display:grid;grid-template-columns:6cqw minmax(0,1fr) 7cqw 9cqw 16cqw;gap:1.1cqw;align-items:center;min-height:7.5cqw;padding:.5cqw 1.1cqw;background:linear-gradient(90deg,#181315,#08090ab3);border:1px solid #88705755;border-bottom-color:#ac8d6d55;color:#dfccd0;font-size:1.8cqw}.ve-task-icon{width:5.5cqw;height:5.5cqw;border:2px ridge #6e5e48;padding:.5cqw;background:#0b0e11}.ve-count{text-align:center;white-space:nowrap}.ve-pay{display:flex;align-items:center;justify-content:center;gap:.6cqw;white-space:nowrap;color:#f0d1a5;font-size:2cqw}.ve-pay>img{width:2.8cqw;height:2.8cqw;object-fit:contain}.ve-quest form{margin:0}
.ve-event .ve-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:5.4cqw;padding:1cqw 1.9cqw;border:0;border-radius:0;margin:0;box-shadow:none;background:none;color:#f9e3cc!important;text-shadow:0 1px 2px #000;font:2cqw Georgia,serif;cursor:pointer;isolation:isolate;text-align:center;line-height:1.1}.ve-button::before{content:'';position:absolute;inset:0;z-index:-1;background:url('/images/core/button.webp') center/100% 100% no-repeat}.ve-quest .ve-button{width:100%}.ve-event .ve-button:disabled{opacity:.5;cursor:default}.ve-event .ve-all{display:flex;width:30%;margin:1.3cqw auto 0;min-height:5.5cqw}.ve-event .ve-help{font-size:1.7cqw;color:#bcaaa0;line-height:1.5}.ve-bottom{position:relative;min-height:24cqw;background:linear-gradient(#170c11,transparent 15%),url('/images/valentine/footer.webp') center/cover;text-align:center;padding:6cqw 22% 4cqw}.ve-bottom>p{font:italic 3cqw/1.35 Georgia,serif;color:#62271c;transform:rotate(-6deg);margin:0}.ve-bottom>img{width:3cqw;height:3cqw;object-fit:contain;margin-top:1cqw}
.ve-form{display:flex;align-items:end;flex-wrap:wrap;gap:2cqw;position:relative;z-index:1;font-size:2.2cqw}.ve-form label{flex:1;min-width:120px}.ve-form input{display:block;width:100%;margin-top:1cqw;padding:1.5cqw;border:1px solid #947349;background:#0a0a0c;color:#f4dfc4;box-sizing:border-box}.ve-panel h3{font-size:2.3cqw;color:#e6bb87;margin:2cqw 0 1cqw;font-weight:400}.ve-panel p{font-size:2cqw}.ve-list-row,.ve-invite{display:flex;align-items:center;justify-content:space-between;gap:2cqw;border-bottom:1px solid #7d5c4933;padding:1cqw}.ve-invite form{display:flex;gap:1cqw}.ve-shop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2cqw;text-align:center}.ve-shop form{padding:1cqw;border:1px solid #705741}.ve-shop img{width:100%;height:11cqw;object-fit:contain}.ve-partner{display:flex;align-items:center;justify-content:center;gap:2cqw}.ve-partner>img{width:9cqw;height:9cqw;object-fit:contain}.ve-event .ve-back{display:block;text-align:center;padding:2cqw;font-size:2cqw}.ve-flash{background:#281119;border:1px solid #93704b;margin:2cqw;padding:2cqw!important;font-size:2.2cqw;color:#ffe3af;text-align:center}.ve-event :is(button,a,input):focus-visible{outline:2px solid #f1c893;outline-offset:2px}





/* v51 landing — exactly one viewport, no forced scrollbar. */
.landing-page{width:100%;height:100dvh;min-height:100svh;margin:0;overflow:hidden;background:#02060a}
.r29-landing{
  position:relative;isolation:isolate;width:min(100%,520px);height:100dvh;min-height:100svh;margin:0 auto;overflow:hidden;
  display:flex;align-items:center;flex-direction:column;padding:10px 0 max(18px,env(safe-area-inset-bottom));
  background:linear-gradient(to bottom,transparent 0 72%,rgba(2,6,10,.24) 84%,rgba(2,6,10,.68) 100%),url('/images/core/landing-scene.webp') center top/cover no-repeat;
  box-shadow:0 0 0 1px #7b65421f,0 0 54px #000b;
}
.r29-landing::after{content:'';position:absolute;z-index:0;left:0;right:0;bottom:0;height:23%;pointer-events:none;background:linear-gradient(to bottom,transparent,rgba(2,6,10,.34) 48%,#02060a 120%)}
.r29-landing>*{position:relative;z-index:1}
.r29-landing .r29-emblem{width:69%;flex:0 0 auto;margin:0 auto;filter:drop-shadow(0 3px 4px #000)}
.r29-landing h1{font-size:7.2cqw;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}
.r29-tagline{flex:0 0 auto;font-size:2.55cqw;line-height:1.12;letter-spacing:.075em;margin:.7cqw 0 0;text-rendering:geometricPrecision}
.r29-entrance{position:absolute;z-index:2;left:50%;bottom:13.2%;transform:translateX(-50%);width:71.2%;display:grid;gap:3.5cqw;margin:0;padding:0}
.r29-entrance a{position:relative;display:grid;grid-template-columns:1fr;place-items:center;min-height:17.2cqw;padding:2.2cqw 4.8cqw;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center;isolation:isolate;transition:transform .16s ease,opacity .16s ease}
.r29-entrance a::before{content:'';position:absolute;z-index:-1;inset:-1.75cqw -2.15cqw;background:url('/images/core/button.webp') center/100% 100% no-repeat;filter:drop-shadow(0 3px 5px #000b)}
.r29-entrance .r29-continue::before{filter:grayscale(.92) brightness(.52) contrast(1.08) drop-shadow(0 3px 5px #000b)}
.r29-entrance img{position:absolute;z-index:1;left:6.8%;top:50%;width:12.8%;height:10.4cqw;object-fit:contain;transform:translateY(-50%);filter:drop-shadow(0 2px 2px #000);image-rendering:auto}
.r29-entrance .r29-continue img{left:7.2%;width:12.4%;height:11.2cqw}.r29-entrance span{position:relative;z-index:2;display:block;width:100%;padding:0 2.6cqw;pointer-events:none}
.r29-entrance strong{display:block;font-weight:400;font-size:3.58cqw;line-height:1.03;letter-spacing:.006em;text-transform:uppercase;color:#f6e4c3;text-shadow:0 2px 2px #000,0 0 7px #240b05;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}
.r29-entrance small{display:block;font-size:1.86cqw;line-height:1.08;letter-spacing:.095em;text-transform:uppercase;margin-top:.72cqw;color:#d2c7b4;text-shadow:0 1px 2px #000}

.r29-waiting{position:absolute;z-index:2;left:50%;bottom:2.5%;transform:translateX(-50%);width:52%;text-align:center;text-transform:uppercase;letter-spacing:.16em;font-size:2.18cqw;line-height:1.15;margin:0;padding:1.4cqw 1cqw;border-top:1px solid #b38a4d70;border-bottom:1px solid #b38a4d45;color:#d2b889;text-shadow:0 2px 3px #000;white-space:nowrap}

@keyframes r29-start-breathe{0%,100%{opacity:.92;transform:scale(1)}45%{opacity:1;transform:scale(1.018)}70%{opacity:.96;transform:scale(1.008)}}
@keyframes r29-sword-awake{0%,100%{transform:translateY(-50%) rotate(0deg) scale(1)}48%{transform:translateY(-50%) rotate(-2deg) scale(1.045)}65%{transform:translateY(-50%) rotate(1deg) scale(1.02)}}
@keyframes r29-start-text{0%,100%{opacity:.94;transform:translateY(0)}50%{opacity:1;transform:translateY(-1px)}}
.r29-start::before{animation:r29-start-breathe 3.2s ease-in-out infinite}.r29-start img{animation:r29-sword-awake 3.2s ease-in-out infinite}.r29-start strong{animation:r29-start-text 3.2s ease-in-out infinite}
@media(max-width:420px){.r29-entrance{width:77%;bottom:13.4%;gap:4cqw}.r29-entrance a{min-height:18.7cqw}.r29-entrance strong{font-size:4.1cqw}.r29-entrance small{font-size:2.15cqw}.r29-waiting{width:58%;font-size:2.45cqw;bottom:2.3%}}

/* v61 — combat feedback kept in the battle location, never in the global header. */
@keyframes r28-block-flash{0%{filter:brightness(1)}35%{filter:brightness(1.35) drop-shadow(0 0 13px #77b8e5)}100%{filter:brightness(1)}}
@keyframes r28-shield-rise{0%{opacity:0;transform:translate(-50%,8px) scale(.8)}35%,70%{opacity:1;transform:translate(-50%,-2px) scale(1.05)}100%{opacity:0;transform:translate(-50%,-22px) scale(.95)}}
@keyframes r28-card-defeat{0%,58%{filter:none;transform:none;opacity:1}76%{filter:grayscale(.7) brightness(.75);transform:scale(.985) rotate(-.4deg)}100%{filter:grayscale(1) brightness(.58);transform:scale(.965);opacity:.76}}
.royal-theme .r28-block>img{animation:r28-block-flash .72s ease-out!important}
.royal-theme .r28-defense{position:absolute;z-index:4;left:50%;top:31%;pointer-events:none;color:#d8f0ff;font:700 20px/1 Georgia,'Times New Roman',serif;text-shadow:0 2px 4px #00131f;opacity:0;animation:r28-shield-rise 1.15s ease-out both}
.royal-theme .r28-victory .r26-fighter:last-child>img,.royal-theme .r28-defeat .r26-fighter:first-child>img{animation:r28-card-defeat 1s ease-out both!important}
@media(prefers-reduced-motion:reduce){.royal-theme .r28-block>img,.royal-theme .r28-defense,.royal-theme .r28-victory .r26-fighter:last-child>img,.royal-theme .r28-defeat .r26-fighter:first-child>img{animation:none!important}}

/* v66: графика школ мастерства из пользовательского пакета */
.royal-theme .r28-skill-node img{border-radius:8px;background:#050b10;box-shadow:0 4px 12px #0008}
.royal-theme .r28-skill-focus{overflow:hidden}
.royal-theme .r28-skill-banner{position:relative;min-height:150px;margin:-1px -1px 12px;overflow:hidden;border:1px solid #76592e;border-radius:7px;background:#071019}
.royal-theme .r28-skill-banner>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 18%;opacity:.46;filter:saturate(.92) contrast(1.04)}
.royal-theme .r28-skill-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#051018ef 0,#051018b8 48%,#0510185c),linear-gradient(0deg,#051018d9,transparent 60%)}
.royal-theme .r28-skill-banner-copy{position:relative;z-index:1;max-width:74%;padding:24px 18px 20px;text-shadow:0 2px 5px #000}
.royal-theme .r28-skill-banner-copy h2{margin:0 0 7px;color:#ffe0a0}
.royal-theme .r28-skill-banner-copy p{margin:0;color:#e8dcc6;line-height:1.4}
.royal-theme .r28-skill-path{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;margin:10px 0 14px}
.royal-theme .r28-skill-step{aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border:1px solid #4d4b42;border-radius:5px;background:#071017;opacity:.42}
.royal-theme .r28-skill-step img{width:100%;height:100%;object-fit:cover}
.royal-theme .r28-skill-step.unlocked{opacity:.82;border-color:#8e6f37}
.royal-theme .r28-skill-step.current{opacity:1;border-color:#f2c15e;box-shadow:0 0 0 1px #5b3012,0 0 12px #c7802f55}
@media(max-width:520px){.royal-theme .r28-skill-banner{min-height:128px}.royal-theme .r28-skill-banner-copy{max-width:88%;padding:18px 12px}.royal-theme .r28-skill-path{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}}

/* v66: графика ежедневной удачи */
.royal-theme .r66-reward-heading{display:flex;align-items:center;justify-content:center;gap:10px}.royal-theme .r66-reward-heading>div{min-width:0}.royal-theme .r66-luck-art{width:68px;height:68px;object-fit:contain;filter:drop-shadow(0 4px 8px #0009)}
@media(max-width:420px){.royal-theme .r66-luck-art{width:54px;height:54px}}

/* v66: графика запасов таверны */
.royal-theme .r66-kitchen-stock{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:10px;padding:7px;border:1px solid #57462d;background:#061016aa}
.royal-theme .r66-kitchen-stock span{display:grid;place-items:center;aspect-ratio:1;border:1px solid #3f3a31;border-radius:5px;background:#0a151b;overflow:hidden}
.royal-theme .r66-kitchen-stock img{width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 3px 5px #0008)}
@media(max-width:420px){.royal-theme .r66-kitchen-stock{grid-template-columns:repeat(3,minmax(0,1fr))}}

.royal-theme .r66-skill-token{float:left;width:54px;height:54px;object-fit:contain;margin:0 10px 5px 0;filter:drop-shadow(0 4px 8px #000a)}

/* v67 layout integrity fixes for battle/event panels */
.royal-theme .r26-button{max-width:100%;min-width:0;overflow:hidden}
.royal-theme .r26-red{border-width:12px 16px!important;border-image-slice:240 440 fill!important;border-image-width:12px 16px!important;border-image-repeat:stretch!important;padding:5px 16px!important;min-height:50px;line-height:1.12}
.royal-theme .r28-battle>.r26-panel,.royal-theme .r28-battle>form.r26-panel{padding:12px 12px 14px}
.royal-theme .r28-battle>form.r26-panel .r26-red{display:flex;width:min(380px,100%);margin:10px auto 0}
.r26-combatants{align-items:start;overflow:hidden}
.royal-theme .r28-fighters{gap:10px}
.royal-theme .r28-fighters .r26-fighter{display:grid;grid-template-rows:auto auto minmax(180px,auto) auto auto auto;align-content:start;gap:0;padding:7px 7px 10px;overflow:hidden}
.royal-theme .r28-fighters .r26-fighter h2{padding:0 4px;font-size:16px;line-height:1.12;min-height:36px;display:flex;align-items:center;justify-content:center}
.royal-theme .r28-fighters .r26-fighter>img{display:block;width:100%!important;height:auto!important;min-height:176px;max-height:238px;aspect-ratio:4/5;object-fit:cover!important;object-position:center top!important;margin:6px 0 8px;border:1px solid rgba(183,141,66,.38);background:#081119}
.royal-theme .r28-fighters .r26-fighter>p{margin:0 0 8px;padding:0 6px;text-align:center;line-height:1.34;font-size:13px;color:#ddd4c2}
.royal-theme .r28-fighters .r66-hp-frame{width:min(100%,238px);margin:2px auto 7px;padding:8px 12px}
.royal-theme .r28-fighters .r66-hp-frame progress{height:10px}
.royal-theme .r28-fighters .r28-mana{display:block;width:min(210px,calc(100% - 54px));margin:8px auto 7px;height:10px;border:1px solid #b89558;background:#081118;box-shadow:inset 0 0 0 1px #1d2a33}
.royal-theme .r28-fighters .r28-mana::-webkit-progress-bar{background:#081118}
.royal-theme .r28-battle .r26-panel>h2{font-size:17px;margin-bottom:10px}
.royal-theme .r28-battle .r28-log{max-height:240px;padding-left:20px;margin:0}
.royal-theme .r28-battle .r28-log li{padding:6px 2px;border-bottom:1px solid rgba(117,89,47,.28)}
.royal-theme .r28-battle .r26-module-actions{align-items:stretch}
.royal-theme .r28-battle .r26-module-actions>.r26-button{min-height:46px}
.royal-theme .r28-battle .r54-turn-report{margin-top:10px}
@media(max-width:520px){
  .royal-theme .r28-fighters .r26-fighter{grid-template-rows:auto auto minmax(145px,auto) auto auto auto;padding:6px 6px 8px}
  .royal-theme .r28-fighters .r26-fighter>img{min-height:145px;max-height:190px}
  .royal-theme .r28-battle>form.r26-panel .r26-red{width:100%}
}
@media(max-width:380px){
  .royal-theme .r28-fighters .r26-fighter h2{font-size:14px;min-height:32px}
  .royal-theme .r28-fighters .r26-fighter>p{font-size:12px}
  .royal-theme .r28-fighters .r66-hp-frame{width:100%}
  .royal-theme .r28-fighters .r28-mana{width:calc(100% - 18px)}
}

/* v68 — administration posts on the kingdom forum */
.royal-theme .post:is(.role-1,.role-2,.role-3,.role-4,.role-5,.role-6){
  outline:1px solid rgba(218,169,70,.72);outline-offset:-1px;
  background-image:linear-gradient(120deg,rgba(45,27,10,.92),rgba(68,39,13,.84)),url('/images/resources/materials/parchment.webp');
  background-position:center;background-size:cover;
  box-shadow:inset 0 0 0 2px rgba(255,228,154,.10),inset 0 0 28px rgba(96,53,12,.42),0 4px 12px rgba(0,0,0,.3);
}
.royal-theme .post:is(.role-1,.role-2,.role-3,.role-4,.role-5,.role-6) :is(.p-name,.p-adm,.p-text){color:#f2cf75!important;text-shadow:0 1px 2px #170900}
.royal-theme .post:is(.role-1,.role-2,.role-3,.role-4,.role-5,.role-6) .p-time{color:#cfb985}

/* v68 — small clan crest wherever a clan is mentioned outside clan pages */
.cl-gerb{width:58px!important;height:58px!important;max-width:58px!important;object-fit:contain!important;filter:drop-shadow(0 2px 5px rgba(0,0,0,.5))}
.cl-gerbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:7px 0 12px}.cl-gerbopt{display:grid;place-items:center;min-height:66px;padding:3px;background:#07141b;outline:1px solid #5f4c2d;outline-offset:-1px;cursor:pointer}.cl-gerbopt input{position:absolute;opacity:0;pointer-events:none}.cl-gerbopt img{width:54px!important;height:54px!important;object-fit:contain}.cl-gerbopt:has(input:checked){background:#261608;outline-color:#d4a34c;box-shadow:inset 0 0 14px rgba(215,153,50,.18)}
.r36-clan-link{display:inline-flex!important;align-items:center;justify-content:center;gap:4px}.r36-clan-link>img{width:22px!important;height:22px!important;object-fit:contain!important;flex:none}
@media(max-width:420px){.cl-gerbs{grid-template-columns:repeat(3,minmax(0,1fr))}.cl-gerb{width:48px!important;height:48px!important}.cl-gerbopt img{width:48px!important;height:48px!important}}
.r68-clan-rank{display:inline-flex;align-items:center;gap:5px}.r68-clan-rank>img{width:26px!important;height:26px!important;object-fit:contain!important;flex:none}

/* v69 — compact legacy clan imagery and royal clan summary */
.royal-theme.page-clan .clan-hero{display:grid!important;grid-template-columns:76px minmax(0,1fr);align-items:center}
.royal-theme.page-clan .clan-hero .gerb{display:block;width:72px!important;height:72px!important;max-width:72px!important;object-fit:contain!important;margin:0 auto;filter:drop-shadow(0 3px 6px #0009)}
.royal-theme.page-clan .clan-hero .tname{color:#f2d184;font:700 20px/1.1 Georgia,serif;letter-spacing:.05em}
.royal-theme.page-clan .clan-fullname{margin-top:3px;color:#b7aa91;font:12px/1.3 Arial,sans-serif;overflow-wrap:anywhere}
.royal-theme.page-clan .grant{display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;align-items:center}
.royal-theme.page-clan .grant .gerb{display:block;width:58px!important;height:58px!important;max-width:58px!important;object-fit:contain!important;margin:auto}
.royal-theme.page-clan .mrow .ava{width:44px!important;height:44px!important;max-width:44px!important;object-fit:cover!important;border-radius:50%;border:1px solid #9a7841}
@media(max-width:420px){.royal-theme.page-clan .clan-hero{grid-template-columns:64px minmax(0,1fr)}.royal-theme.page-clan .clan-hero .gerb{width:60px!important;height:60px!important}.royal-theme.page-clan .clan-hero .tname{font-size:18px}}

/* v69.2 — complete royal treatment for the legacy clan/settings surface. */
.royal-theme.page-clan :is(.clan-hero,.clan-block,.mrow,.prig,.setbox,.forum-status,.mtabs){border:1px solid #765a31!important;border-radius:4px!important;background:linear-gradient(180deg,rgba(9,24,31,.96),rgba(4,13,18,.985))!important;box-shadow:inset 0 0 0 1px rgba(255,220,140,.05),0 3px 8px rgba(0,0,0,.22)}
.royal-theme.page-clan :is(.clan-sec,.mhead){position:relative;margin-top:10px!important;padding:8px 10px!important;border:0!important;background:linear-gradient(90deg,transparent,rgba(77,46,15,.52),transparent)!important;color:#f0ce7e!important;text-align:center;font:700 16px/1.2 Georgia,serif!important}
.royal-theme.page-clan .forum-status{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px;margin:7px 0;color:#d9c394}
.royal-theme.page-clan .forum-status img{width:22px!important;height:22px!important;object-fit:contain}
.royal-theme.page-clan .mtabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;margin:6px 0}.royal-theme.page-clan .mtabs a{display:flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #6d542f;border-radius:3px;background:#08151c;color:#dfcb9e;text-decoration:none}.royal-theme.page-clan .mtabs a.on{background:linear-gradient(#5d210d,#250b05);border-color:#c49239;color:#ffe2a0}
.royal-theme.page-clan .mrow{display:grid;align-items:center;gap:7px;margin-bottom:5px}.royal-theme.page-clan .m-info>a{color:#f0cf84!important;font-weight:700}.royal-theme.page-clan :is(.rpill,.badge-count){display:inline-flex;align-items:center;justify-content:center;padding:2px 6px;border:1px solid #69522e;border-radius:999px;background:#08151c;color:#cdb889;font-size:10px}
.royal-theme.page-clan .setbox{margin:7px 0}.royal-theme.page-clan .setbox :is(input,select,textarea){border-color:#71552d;background:#061117;color:#eee1c7}.royal-theme.page-clan .radio-group{display:flex;flex-wrap:wrap;gap:6px}.royal-theme.page-clan .radio-group label{padding:6px 8px;border:1px solid #654d2c;border-radius:3px;background:#08151c}
@media(max-width:420px){.royal-theme.page-clan .mtabs{grid-template-columns:1fr 1fr}.r27-clan-actions{grid-template-columns:1fr}}
