:root{color-scheme:dark;--rr-bg:#0c0d10;--rr-panel:#17181d;--rr-line:#343139;--rr-text:#eee9df;--rr-muted:#b7b0a4;--rr-gold:#e5c589}
html,body{background:var(--rr-bg)!important;color:var(--rr-text)!important}
body{font-family:'Segoe UI',Arial,sans-serif!important;line-height:1.6;background-image:radial-gradient(ellipse at 75% 0,#70502422,transparent 55%)!important;min-height:100vh}
*{box-sizing:border-box}a{color:var(--rr-gold)}a:hover{color:#fff1cf}h1,h2,h3,h4,strong{color:var(--rr-text)}h1,h2{letter-spacing:-.025em}h1{font-family:Georgia,serif}
header,.rr-header,.navbar,.navbar-default{background:#0c0d10f5!important;border-color:var(--rr-line)!important;color:var(--rr-text)!important}
header a,.rr-header a,nav a,.navbar a{color:var(--rr-muted)!important}header a:hover,nav a.active{color:var(--rr-gold)!important}
.brand,.rr-brand{color:#f3dfb4!important;font-family:Georgia,serif!important;text-decoration:none;font-size:30px!important}
.brand-symbol{width:48px!important;height:48px!important;clip-path:none!important;border:0!important;color:transparent!important;background:transparent url('/rorealm-portal/assets/brand-gold.png') center/contain no-repeat!important}
.rr-brand{display:flex;align-items:center;gap:12px}.rr-brand:before{content:'';width:52px;height:52px;background:url('/rorealm-portal/assets/brand-gold.png') center/contain no-repeat}
.hero{background:#08090b url('/rorealm-portal/assets/hero-gold.png') 90% 40%/auto 125% no-repeat!important;isolation:isolate}
.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#08090b 5%,#08090be8 32%,#08090b20 75%);z-index:-1}
.hero-copy{background:none!important;text-shadow:0 2px 12px #000!important}.hero h1{color:#fff0d2}.hero p,.hero .hero-sub{color:#d8cdbb}.hero .eyebrow{color:var(--rr-gold)}
.preview,.facts,.feature,.card,.panel,.account-card,.account-stats,.profile-card,.table-wrap,dialog,.rr-main,.rr-card,.rr-panel,.well,.list-group-item,.modal-content,.dropdown-menu{background:var(--rr-panel)!important;color:var(--rr-text)!important;border-color:var(--rr-line)!important}
.preview,.preview span{color:var(--rr-gold)!important}.feature,.card,.rr-main{border-radius:14px;box-shadow:0 12px 40px #0002}.feature:hover{border-color:#a1814d!important}
.feature h3,.fact strong,.account-stat strong,.detail-heading h2,.item-cell strong{color:#f2dfb8!important}.feature p,.section-heading p,.fact span,.muted,small,.source-note,.about p,.detail-stats span,.rr-eyebrow,.hint,.lead,dt,.notice{color:var(--rr-muted)!important}
.feature>svg,.text-link,.eyebrow,.rr-eyebrow{color:var(--rr-gold)!important}
.button,button:not(.icon-button):not(.close):not(.filter-option),input[type=submit],input[type=button],.btn-primary{background:linear-gradient(135deg,#efd5a0,#bc9553)!important;border:1px solid #d1ae70!important;color:#18140e!important;border-radius:7px;min-height:38px;font-weight:650;text-shadow:none!important}
.button.light,.btn-default{background:transparent!important;border-color:#716044!important;color:var(--rr-gold)!important}
.icon-button,dialog .close{background:transparent!important;color:var(--rr-gold)!important}.icon-button:hover{background:#e5c58915!important}
input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),select,textarea,.search-input,.sort{background:#0e0f13!important;border:1px solid #57505a!important;color:#f3eee4!important;border-radius:6px;padding:9px 12px;max-width:100%}
input::placeholder,textarea::placeholder{color:#9f998f!important}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #f0cb80!important;outline-offset:3px}
table{color:var(--rr-text)!important;border-color:var(--rr-line)!important}th,thead,table.horizontal-table th,table.vertical-table th{background:#242127!important;color:#e9d0a1!important;border-color:var(--rr-line)!important}
td,table.horizontal-table td,table.vertical-table td{background:transparent!important;color:var(--rr-text)!important;border-color:var(--rr-line)!important}tbody tr:nth-child(even){background:#ffffff03}tbody tr:hover{background:#e5c58909!important}
.table-wrap{overflow-x:auto}.filter-option{background:transparent!important;color:var(--rr-muted)!important}.filter-option.active,.filter-option:hover,.badge,.tag,.pill,.item-icon,.avatar,.profile-icon,.feature-icon{background:#c8a36618!important;color:var(--rr-gold)!important;border-color:#6b5735!important}
pre,code,.script-box,.bonus-script,.result,.exchange output{background:#0d0e12!important;color:#e4d4b4!important;border-color:var(--rr-line)!important}
footer,.rr-footer,.section,.home-bottom,.fact,.filters,.account-sidebar,.detail-stats,.detail-heading{border-color:var(--rr-line)!important}footer,.rr-footer{background:#0b0c0f!important;color:var(--rr-muted)!important}
dialog::backdrop{background:#000b}dialog{box-shadow:0 24px 100px #0009!important}hr{border:0;border-top:1px solid var(--rr-line)}
.rr-header{max-width:none!important;padding:18px max(24px,calc((100vw - 1240px)/2))!important;height:auto!important;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;border-bottom:1px solid var(--rr-line)}
.rr-header nav{display:flex!important;position:static!important;flex-wrap:wrap;gap:20px;height:auto!important;padding:0!important;background:none!important;border:0!important}.rr-header nav a{font-size:14px;text-decoration:none}
.rr-main{width:calc(100% - 40px)!important;max-width:1240px!important;margin:40px auto!important;padding:32px!important;border:1px solid var(--rr-line);min-height:45vh;overflow-x:auto}.rr-main h2{font-size:28px}.rr-main p{max-width:900px}.rr-main table{max-width:100%}
.rr-footer{padding:24px;text-align:center}.rr-eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;margin-bottom:24px}.rr-tools{margin:0 0 24px}.rr-tools summary{cursor:pointer;color:var(--rr-gold)}.rr-tools table{max-width:340px}.rr-tools td{background:transparent!important}.rr-tools img{display:none}
.message,.success{background:#123124!important;color:#c5f4d8!important;border:1px solid #38684c!important}.error,.red{color:#ffb3a9!important}.error:not(:empty){background:#3b1e22!important;border-radius:6px;padding:12px}
[class*='release-'],[class*='overview-']{border-color:var(--rr-line)!important}.release-card,.overview-card,.server-overview,.release-entry{background:var(--rr-panel)!important;color:var(--rr-text)!important}
@media(max-width:700px){.hero{background-size:auto 100%!important;background-position:65% center!important}.hero:before{background:#08090bbf}.rr-main{margin:20px auto!important;padding:20px!important;width:calc(100% - 24px)!important}.rr-header{padding:14px 18px!important}.rr-header nav{gap:10px 18px}.rr-header nav a{font-size:12px}nav.open{background:#111217!important}.rr-main h1{font-size:32px}.rr-main table{font-size:12px}.rr-main input{min-width:0}}
.rr-auth .rr-main h1,.rr-auth .rr-main h2,.rr-auth .rr-main h3,.rr-auth .rr-main h4{color:#eee9df!important}
.rr-auth .rr-main p,.rr-auth .rr-main li,.rr-auth .rr-main label,.rr-auth .rr-main legend,.server-features dd,.release-entry p{color:#c7c0b4!important}
.rr-auth .rr-main a,.release-archive>summary,.release-entry time{color:#e5c589!important}
.rr-main a[href*="RoRealmPatcher.exe"],.rr-main a[href*="disk.yandex"]{display:inline-flex;align-items:center;min-height:46px;padding:10px 20px;background:linear-gradient(135deg,#efd5a0,#bc9553);color:#18140e!important;border-radius:8px;font-weight:650;text-decoration:none;overflow-wrap:anywhere}



/* A purpose-made panoramic image, bounded hero height on ultrawide screens. */
.hero{position:relative;isolation:isolate;overflow:hidden;height:clamp(440px,30vw,620px)!important;min-height:0!important;background:#08090b!important}
.hero:before{display:none!important}
.hero .hero-inner{position:static;display:flex;align-items:center;height:100%!important;min-height:0;max-width:1440px;padding:36px 40px}
.hero .hero-copy{position:relative;z-index:2;max-width:460px;margin:0;padding:0;border:0;background:none!important;text-shadow:0 2px 12px #000}
.hero-art{position:absolute;inset:0;z-index:-1;display:block;width:100%;max-width:none;pointer-events:none}
.hero-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),transparent 65%)}
.hero-art img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center}
.hero h1{font-size:clamp(44px,4.1vw,78px)}
.rr-auth form.rr-register-form{border:0!important;box-shadow:none!important}
@media(max-width:700px){
 .hero{height:600px!important}
 .hero-art{height:360px}
 .hero .hero-inner{align-items:flex-end;padding:28px 24px}
 .hero .hero-copy{max-width:100%}
 .hero-art img{object-position:center}
 .hero-art:after{background:linear-gradient(0deg,rgba(0,0,0,.9),rgba(0,0,0,.1) 85%)}
 .hero .hero-links{flex-wrap:wrap}
}

/* Live online badge: green only when status data is available. */
.facts .rr-online-badge{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 15px;border:1px solid #73704b;border-radius:12px;background:linear-gradient(120deg,#20372d88,#151a1b);box-shadow:inset 0 1px 0 #e8d7a114,0 4px 16px #0002;color:#f0e4c9;font-size:13px;white-space:nowrap}
.facts .rr-online-badge #online-count{font-size:15px;font-weight:700;color:#e4ffed!important;font-variant-numeric:tabular-nums}
.rr-online-light{display:block;flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#88918d}
.rr-online-badge[data-available="true"] .rr-online-light{background:#69e49d;box-shadow:0 0 0 4px #65dc9515,0 0 12px #65dc9545;animation:rr-online-pulse 2.6s ease-in-out infinite}
@keyframes rr-online-pulse{0%,100%{opacity:1;box-shadow:0 0 0 3px #65dc9515,0 0 8px #65dc9530}50%{opacity:.65;box-shadow:0 0 0 6px #65dc9508,0 0 14px #65dc9555}}
@media(prefers-reduced-motion:reduce){.rr-online-badge[data-available="true"] .rr-online-light{animation:none}}

/* Blend the logo artwork into the dark header; no rectangular matte. */
header .brand-symbol{mix-blend-mode:screen}
header{isolation:isolate}
