/* Refresh Rework: public website layout. Module styles remain in style.css. */
:root {
    --webenginebg1:#edeef0; --webenginebg2:#fff; --webenginebg3:#fff;
    --webenginecolor1:#6c8319; --webenginecolor2:#30383d; --webenginecolor3:#657b28;
    --webenginecolor4:#526512; --webenginecolor5:#fff; --webenginecolor6:#30383d;
    --webenginecolor7:#e7e9e8; --webenginecolor8:#8aac05; --webenginecolor9:#203000;
    --webenginecolor10:#8aac05; --webenginecolor11:#738f05; --webenginecolor12:#fff;
    --webenginecolor13:#738f05; --webenginecolor14:#7c8588; --webenginecolor16:#e4e7e7;
    --webenginecolor19:#606a70; --webenginecolor20:#637c19; --webenginecolor25:#66705b;
    --webenginecolor26:#637c19; --webenginecolor27:#f7f9fa; --webenginecolor28:#fff;
    --webenginecolor50:#eff3e2; --webenginecolor51:#eff3e2; --webenginecolor52:#8aac05;
}
* { box-sizing:border-box; }
html { min-width:0; }
body { margin:0; background:#edeef0; color:#30383d; font:16px/1.65 'Segoe UI',Arial,sans-serif; }
img { max-width:100%; height:auto; }
a { color:#667e25; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #8aac05!important; outline-offset:3px; }
.refresh-shell { width:min(1240px,calc(100% - 40px)); margin:0 auto 32px; }
.refresh-header { display:flex; justify-content:space-between; align-items:center; gap:24px; min-height:52px; padding:8px 0; }
.refresh-header-links { display:flex; gap:28px; align-items:center; font-size:14px; }
.refresh-header-links a { color:#7a8388; }
.refresh-header-links .refresh-account-link { color:#62781b; font-weight:700; }
.refresh-account-link span { font-size:20px; vertical-align:middle; margin-right:4px; }
.refresh-header-login { position:relative; }
.refresh-header-login>summary { display:flex; align-items:center; gap:5px; list-style:none; cursor:pointer; white-space:nowrap; }
.refresh-header-login>summary::-webkit-details-marker { display:none; }
.refresh-header-login>summary::after { content:'⌄'; margin-left:5px; color:#7a8388; }
.refresh-header-login[open]>summary::after { content:'⌃'; }
.refresh-header-login-panel { position:absolute; top:calc(100% + 14px); right:0; z-index:1100; width:320px; max-width:calc(100vw - 24px); padding:20px; background:#f7f8fa; border:1px solid #dfe3e6; border-radius:7px; box-shadow:0 12px 32px #26323824; color:#30383d; }
.refresh-header-login:not([open])>.refresh-header-login-panel { display:none; }
.refresh-header-login-panel .form-group { margin-bottom:18px; }
.refresh-header-login-panel label { display:block; margin-bottom:7px; font-size:14px; font-weight:500; }
.refresh-header-login-panel .form-control { display:block; width:100%; height:44px; padding:10px 12px; border:1px solid #cdd5da; border-radius:6px; background:#fff; color:#30383d; font:16px 'Segoe UI',Arial,sans-serif; }
.refresh-header-login-panel .btn { display:block; width:100%; padding:10px 14px; text-align:center; }
.refresh-header-login-panel .refresh-header-login-forgot { display:block; margin:16px 0; text-align:center; }
.refresh-header-login-panel .refresh-header-login-register { background:#e5e9ec; color:#30383d; font-weight:700; border:1px solid #e5e9ec; }
.refresh-language { min-width:0; }
.webengine-language-switcher,.webengine-language-switcher:hover { display:flex; flex-wrap:wrap; gap:4px; width:auto; height:auto; overflow:visible; max-width:480px; }
.webengine-language-switcher li { background:#fff; border:1px solid #e5e8e9; padding:3px 6px; border-radius:4px; }
.webengine-language-switcher li a { font-size:12px; color:#5b6469; }
.webengine-language-switcher li img { width:16px; }
.refresh-hero { min-height:310px; display:flex; align-items:center; padding:32px 42px; color:white; border-radius:14px 14px 0 0; background-color:#103344; background-image:url('../img/backgrounds/hero.jpg?v=20261110-3'); background-repeat:no-repeat; background-position:center; background-size:cover; }
.refresh-hero-copy { max-width:500px; }
.refresh-eyebrow { font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#c0d48b; }
.refresh-hero h1 { font:700 clamp(34px,4vw,52px)/1.1 Georgia,serif; margin:16px 0 18px; text-transform:uppercase; overflow-wrap:anywhere; }
.refresh-hero p { font-size:16px; line-height:1.6; color:#d5e6ea; margin-bottom:22px; }
.refresh-hero-actions { display:flex; flex-wrap:wrap; gap:10px; }
.btn-primary { background:#8aac05; border-color:#8aac05; color:#203000; font-weight:700; border-radius:6px; padding:10px 18px; font-size:14px; }
.refresh-download { border:1px solid #78949e; background:#ffffff10; border-radius:6px; color:#fff; padding:10px 18px; font-size:14px; font-weight:700; }
.refresh-download:hover,.refresh-download:focus { color:white!important; background:#ffffff20; }
.refresh-download span { margin-right:8px; font-size:17px; line-height:1; }
#navbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:50px; background:#fff; border:0; border-radius:0 0 12px 12px; backdrop-filter:none; padding:0 22px; box-shadow:0 8px 24px #26323803; }
#navbar ul { display:flex; flex-wrap:wrap; text-align:left; padding:0; margin:0; }
#refresh-navigation { flex:1; min-width:0; }
#navbar .refresh-nav-root { justify-content:center; }
#navbar ul li { font-size:14px; }
#navbar ul li a { padding:15px 12px 12px; font-size:14px; font-weight:500; text-transform:none; border-bottom:3px solid transparent; color:#626c72!important; }
#navbar ul li a:hover,#navbar ul li a[aria-current=page] { color:#637c19!important; border-bottom-color:#8aac05; }
.refresh-nav-status { flex-shrink:0; font-size:13px; color:#7d8589; }
.refresh-nav-status i { display:inline-block; width:6px; height:6px; border-radius:50%; background:#8aac05; margin-right:6px; }
.refresh-menu-toggle { display:none; }
#container.refresh-layout { width:100%; display:grid; grid-template-columns:270px minmax(0,1fr); gap:20px; background:none; padding:20px 0; margin:0; align-items:start; }
#main-content { grid-column:2; grid-row:1; min-width:0; }
.refresh-sidebar { grid-column:1; grid-row:1; min-width:0; }
.refresh-intro { margin-bottom:22px; }
.refresh-breadcrumb { font-size:12px; color:#81898d; margin:0 0 14px; }
.refresh-breadcrumb span { margin:0 10px; }
.refresh-section-label { color:#647c20; font-size:12px; letter-spacing:.16em; font-weight:700; }
.refresh-intro h2 { font-size:27px; font-weight:700; margin:8px 0; letter-spacing:-.6px; }
.refresh-intro p { font-size:14px; color:#7b858b; margin:0; }
.refresh-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:20px 0; border:1px solid #e3e7e6; border-radius:10px; background:#f7f9f8; margin-bottom:22px; }
.refresh-stats>div { padding:0 20px; border-right:1px solid #e6eae8; min-width:0; }
.refresh-stats>div:last-child { border:0; }
.refresh-stats strong { display:block; font-size:21px; line-height:1.3; font-weight:700; overflow-wrap:anywhere; }
.refresh-stats span { display:block; margin-top:5px; font-size:12px; color:#7b858a; }
#content { background:#fff; border:1px solid #e4e7e7; border-radius:11px; padding:18px; min-height:240px; overflow:auto; width:100%; }
.refresh-news { border:1px solid #e4e7e7; border-radius:11px; background:#fff; overflow:hidden; }
.refresh-card-heading { display:flex; justify-content:space-between; align-items:center; padding:19px 20px; border-bottom:1px solid #e9ecea; gap:12px; }
.refresh-card-heading h2 { font:700 14px 'Segoe UI',sans-serif; margin:0; }
.refresh-card-heading>a { padding:3px 7px; border-radius:3px; background:#f2f4f4; color:#7c858a; font-size:12px; }
#content.refresh-home-content { border:0; border-radius:0; padding:0; min-height:0; }
#content.refresh-home-content .panel-news { margin-bottom:0; padding:10px 20px; }
#content.refresh-home-content .panel-news:first-child { padding-left:20px; }
#content.refresh-home-content .panel-news:last-child { border-bottom:0; }
#content.refresh-home-content .panel-news .panel-heading { padding:0; }
#content.refresh-home-content .panel-news .panel-title { margin:0; font-size:16px; line-height:1.5; }
#content.refresh-home-content .panel-news .panel-body { margin-top:4px; padding:0; font-size:14px; line-height:1.45; }
#content.refresh-home-content .news-custom-preview { margin:0; overflow-wrap:anywhere; }
#content.refresh-home-content .panel-news .panel-footer { height:auto; min-height:0; padding:4px 0 0; font-size:12px; font-style:normal; line-height:1.4; text-align:right; }
#content.refresh-home-content .panel-news .panel-footer>.col-xs-6 { float:none; width:auto; }
.refresh-news>.refresh-card-heading { padding:10px 20px; }
.panel-news { margin:0; border:0; border-bottom:1px solid #e8ece5; border-radius:0; box-shadow:none; padding:20px 24px; }
.panel-news:first-child { background:#fff; border-left:0; }
.panel-news .panel-heading { padding:0 0 12px; background:transparent; border:0; }
.panel-news .panel-heading .panel-title { font-size:21px; font-weight:700; }
.panel-news .panel-heading .panel-title a { color:#30383d; }
.panel-news .panel-body { background:transparent; padding:0; font-size:15px; color:#7a858a; line-height:1.8; }
.panel-news .panel-footer { background:none; border:0; padding:12px 0 0; color:#8a9294; font-size:12px; overflow:hidden; }
.panel-sidebar { border:1px solid #e4e7e7; border-radius:11px; overflow:hidden; box-shadow:0 7px 22px #24324803; margin-bottom:18px; background:#fff; }
.panel-sidebar .panel-heading { padding:14px 16px; background:#fff; border-bottom:1px solid #e7e9e8; }
.panel-sidebar .panel-title { font:700 14px 'Segoe UI',sans-serif; color:#30383d; }
.panel-sidebar .panel-body { padding:14px 16px; background:#fff; }
.panel-sidebar label { font-size:13px; font-weight:500; color:#434f55; margin-bottom:5px; }
.form-control { height:42px; border-radius:6px; box-shadow:none; border:1px solid #dde2e3; background:#fff; color:#30383d; font-size:14px; }
.panel-sidebar .form-group { margin-bottom:12px; }
.panel-sidebar form>.btn { width:100%; min-height:40px; }
.refresh-forgot { display:block; text-align:center; margin-top:11px; font-size:13px; color:#698299; }
.panel-sidebar .btn-xs { font-size:11px; padding:3px 6px; }
.refresh-online-total { color:#607a16; font-size:30px; font-weight:700; line-height:1.2; }
.refresh-online-total small { display:block; font-size:13px; font-weight:400; color:#838d8f; margin:5px 0 12px; }
.webengine-online-bar { border-radius:6px; overflow:hidden; margin:8px 0 16px; height:6px; }
.webengine-online-bar-progress { max-width:100%; height:6px; }
.panel-usercp ul { padding:0; list-style:none; }
.panel-usercp li { padding:8px 0; font-size:14px; }
.panel-usercp li img { width:20px; height:20px; margin-right:8px; }
.refresh-clock .panel-body>div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px; font-size:12px; padding:4px 0; color:#7c858a; }
.refresh-clock time { color:#47565c; }
.refresh-clock small { display:none; }
.table { font-size:14px; }
.table>tbody>tr>td { padding:11px 9px; }
.panel-sidebar .table { font-size:12px; margin:0; }
.panel-sidebar .table>tbody>tr>td { padding:8px 0; }
.panel-sidebar .table td:last-child { text-align:right; }
.table-striped>tbody>tr:nth-of-type(odd) { background:#f8fafb; }
.rankings-table { min-width:560px; }
.page-title { margin-top:0; }
.page-title span { font:700 24px 'Segoe UI',sans-serif; color:#30383d; }
form,textarea,select,input { max-width:100%; }
.footer { width:100%; padding:26px; background:transparent; border-top:1px solid #dfe3e3; border-radius:0; margin:0; font-size:13px; color:#7d878c; }
.footer .footer-social-link img { width:26px; }
.refresh-skip { position:absolute; left:16px; top:-100px; background:#fff; padding:12px; z-index:100; }
.refresh-skip:focus { top:12px; }
@media(max-width:1000px) {
    .refresh-shell { width:calc(100% - 32px); }
    #container.refresh-layout { grid-template-columns:250px minmax(0,1fr); gap:20px; }
    .refresh-hero { min-height:270px; padding:24px; background-size:cover; }
    #navbar { padding:0 10px; }
    #navbar ul li a { padding-left:10px; padding-right:10px; }
    .refresh-stats>div { padding:0 12px; }
    .refresh-nav-status { display:none; }
}
@media(max-width:767px) {
    .refresh-shell { width:calc(100% - 24px); }
    .refresh-header { gap:12px; min-height:58px; }
    .refresh-header-links { gap:12px; font-size:12px; }
    .refresh-language { max-width:65%; }
    .webengine-language-switcher,.webengine-language-switcher:hover { gap:3px; }
    .webengine-language-switcher li { padding:2px 4px; }
    .refresh-hero { min-height:270px; padding:22px; background-position:left center; background-size:cover; }
    .refresh-hero h1 { font-size:36px; }
    .refresh-hero p { font-size:14px; }
    .refresh-eyebrow { font-size:11px; }
    #navbar { display:block; padding:0; }
    .refresh-menu-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:52px; border:0; background:none; color:#526322; padding:12px 20px; font-weight:600; }
    .refresh-nav-ready #refresh-navigation { display:none; }
    .refresh-nav-ready #refresh-navigation.is-open { display:block; }
    #navbar ul { display:grid; grid-template-columns:1fr 1fr; padding:0 8px 8px; }
    #navbar ul li a { display:block; padding:12px; min-height:44px; }
    #container.refresh-layout { grid-template-columns:1fr; gap:22px; padding-top:22px; }
    #main-content { grid-column:1; grid-row:1; }
    .refresh-sidebar { grid-column:1; grid-row:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:16px; }
    .refresh-sidebar>* { margin:0; }
    .refresh-intro h2 { font-size:24px; }
    .refresh-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 0; }
    .refresh-stats>div:nth-child(2) { border:0; }
    .refresh-stats strong { font-size:20px; }
    #content { padding:20px 16px; min-height:240px; }
    .panel-news { padding:18px; }
    .panel-news:first-child { padding-left:18px; }
    .panel-news .panel-heading .panel-title { font-size:19px; }
    .footer { padding:24px 8px; }
    .footer>.footer-container>.row:last-child>div { width:100%; margin-bottom:16px; }
    .footer>.footer-container>.row:last-child>div:last-child { max-width:180px; }
    .form-horizontal .control-label,.form-horizontal .form-group>[class*=col-] { width:100%; float:none; }
    .account-character-block { max-width:100%; }
    #content>.row { margin-left:0; margin-right:0; }
}
@media(max-width:480px) {
    .refresh-sidebar { grid-template-columns:1fr; }
    .refresh-hero h1 { font-size:32px; }
    .refresh-hero-actions .btn { padding:10px 13px; }
    .refresh-card-heading { padding:16px; }
    .footer { line-height:2; }
}
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}

/* Image logo and the wider account menu. */
.refresh-hero { min-height:270px; padding-top:18px; padding-bottom:18px; }
.refresh-hero .refresh-logo-title { margin:6px 0 10px; line-height:1; }
.refresh-logo-title a { display:inline-block; }
.refresh-logo { display:block; width:160px; height:auto; filter:drop-shadow(0 5px 10px #0005); }
.refresh-hero p { margin-bottom:16px; }
.panel-usercp ul { margin:0; }
.panel-usercp li { padding:0; border:0; }
.panel-usercp li>a { display:flex; align-items:center; justify-content:space-between; min-height:38px; padding:7px 10px; margin:3px 0; background:#f7f9f4; border:1px solid #e8ecdf; border-radius:6px; color:#505e3b; font-size:14px; }
.panel-usercp li>a:hover,.panel-usercp li>a[aria-current=page] { background:#edf3df; color:#536b0c!important; border-color:#cbdba5; }
.panel-usercp li>a span { font-size:18px; color:#8aa448; }
/* Information buttons use the supplied artwork. Without JavaScript all sections remain readable. */
.refresh-info-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:26px; }
.refresh-info-tab { position:relative; display:block; height:145px; overflow:hidden; border-radius:9px; background:#17303d; border:2px solid transparent; }
.refresh-info-tab img { width:100%; height:100%; object-fit:cover; object-position:center 34%; transition:transform .2s ease; }
.refresh-info-tab::after { content:''; position:absolute; inset:0; background:linear-gradient(transparent 25%,#081722dd); }
.refresh-info-tab span { position:absolute; z-index:1; bottom:16px; left:8px; right:8px; color:#fff; text-align:center; font-size:14px; font-weight:700; letter-spacing:.04em; }
.refresh-info-tab:hover img { transform:scale(1.04); }
.refresh-info-tab[aria-selected=true] { border-color:#8aac05; box-shadow:0 0 0 3px #8aac0518; }
.refresh-info-tab[aria-selected=true] span { color:#d8efa7; }
.refresh-info-panel[hidden] { display:none!important; }
.refresh-info-panel h2,.refresh-info-panel h3,.refresh-profile-extra h2 { color:#37433a; font-family:'Segoe UI',sans-serif; font-weight:600; }
.refresh-info-panel h2 { font-size:18px; margin:0 0 20px; }
.refresh-info-panel>h2:not(:first-child) { margin-top:26px; }
.refresh-info-panel h3 { font-size:15px; padding:14px 16px; margin:0; border-bottom:1px solid #e9ece8; }
.refresh-info-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.refresh-info-box { border:1px solid #e6eae7; border-radius:9px; overflow:hidden; }
.refresh-info-box dl,.refresh-profile-extra dl { margin:0; }
.refresh-info-box dl>div,.refresh-profile-extra dl>div { display:flex; justify-content:space-between; gap:12px; padding:12px 16px; font-size:14px; }
.refresh-info-box dl>div:nth-child(even),.refresh-profile-extra dl>div:nth-child(even) { background:#f8fafb; }
.refresh-info-box dt,.refresh-profile-extra dt { font-weight:400; }
.refresh-info-box dd,.refresh-profile-extra dd { margin:0; text-align:right; }
.refresh-help,.refresh-empty { color:#7d888a; font-size:14px; padding:12px 0; }
.refresh-info-panel iframe { max-width:100%; }
/* Download groups and real configured mirrors. */
.refresh-download-group { margin:0 0 28px; }
.refresh-download-heading { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.refresh-download-heading>span { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; color:#6a841b; background:#f0f5e5; font-size:13px; font-weight:700; }
.refresh-download-heading h2 { font-size:16px; font-weight:600; margin:0; }
.refresh-download-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.refresh-download-card { display:flex; flex-direction:column; align-items:center; min-width:0; padding:22px 18px 16px; border:1px solid #e3e8e0; border-radius:10px; background:linear-gradient(#f9fbf7,#fff); text-align:center; }
.refresh-provider-icon { display:grid; place-items:center; width:50px; height:50px; margin-bottom:10px; border-radius:13px; color:#6c841c; background:#edf3df; font-size:27px; font-weight:700; }
.provider-mega { background:#fff0f2; color:#dd3152; }
.provider-drive { background:#eaf7ef; color:#299768; }
.provider-mediafire { background:#ebf4ff; color:#318bd8; }
.refresh-download-provider { font-size:12px; color:#8a9491; }
.refresh-download-card h3 { margin:7px 0; font-size:16px; font-weight:600; overflow-wrap:anywhere; }
.refresh-download-card p { font-size:14px; color:#7b8788; margin:0 0 20px; }
.refresh-download-bottom { display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%; margin-top:auto; padding-top:14px; border-top:1px solid #e9ede5; }
.refresh-download-bottom>span { font-size:12px; color:#8a9591; }
.refresh-download-bottom .btn { padding:8px 12px; font-size:13px; }
/* Rankings retain WebEngine categories and class filters. */
.rankings_menu { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; padding:0 0 18px; margin:0 0 18px; border-bottom:1px solid #e7ebdf; }
.rankings_menu a { width:auto; min-width:88px; margin:0; padding:10px 14px; border:1px solid #e1e7d6; border-radius:6px; background:#f5f8ef; color:#68754c; font-size:14px; }
.rankings_menu a.active { color:#fff; background:#789b0b; border-color:#789b0b; }
.refresh-ranking-selectors { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; margin:0 0 16px; }
.refresh-ranking-selectors label,.refresh-ranking-class { display:flex; align-items:center; gap:8px; max-width:100%; margin:0; color:#506039; font-weight:600; }
.refresh-ranking-selectors select,.refresh-ranking-class select { min-width:0; width:clamp(130px,25vw,230px); padding:8px; border:1px solid #d7e0cb; border-radius:6px; background:#f6f9f0; color:#26342b; font:inherit; }
.rankings-class-filter { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; list-style:none; padding:0; margin:0 0 20px; }
.rankings-class-filter li { display:block; padding:0; margin:0; font-size:12px; }
.rankings-class-filter li a { display:block; cursor:pointer; border:1px solid #e2e8d9; border-radius:6px; padding:7px 10px; background:#f6f9f0; color:#5c7131; }
.rankings-class-filter li a br,.rankings-class-filter li a img { display:none; }
.rankings-class-filter-grayscale { opacity:.6; filter:none; }
.rankings-class-filter a[aria-pressed=true] { background:#eaf2d8; border-color:#9cb950; opacity:1; }
.rankings-table { background:#fff; min-width:540px; }
.rankings-table tr td { font-size:14px; padding:12px 10px; border-bottom:1px solid #e8ece5; }
.rankings-table tr:first-child td { font-size:12px; color:#7a8586; border-bottom:1px solid #dce5ce; background:#f7f9f5; }
.rankings-table tr:nth-child(2) .rankings-table-place { color:#769611; font-weight:700; }
.rankings-class-image { width:32px; height:32px; border-radius:50%; }
.refresh-ranking-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.refresh-ranking-toolbar label { font-size:13px; color:#748073; font-weight:400; margin:0; }
.refresh-ranking-toolbar input { display:block; min-width:220px; width:100%; margin-top:4px; padding:9px 12px; border:1px solid #dfe5d9; border-radius:6px; font-size:14px; }
.refresh-ranking-count { font-size:13px; color:#7f897d; }
/* Account characters: avatar, base stats, location, then existing actions. */
.refresh-character-list { display:grid; gap:14px; }
.refresh-character-card { display:grid; grid-template-columns:105px minmax(0,1fr); gap:18px; border:1px solid #e2e8db; background:linear-gradient(110deg,#f9fbf5,#fff); padding:16px; border-radius:9px; scroll-margin-top:20px; }
.refresh-character-identity { text-align:center; font-size:13px; }
.refresh-character-identity img { display:block; width:76px; height:76px; object-fit:cover; border-radius:10px; margin:0 auto 8px; border:3px solid #e4edcf; }
.refresh-character-identity h3 { font-size:15px; font-weight:700; margin:0 0 6px; }
.refresh-character-identity>span { display:block; margin-bottom:5px; }
.refresh-status { color:#818986; font-size:12px; }
.refresh-status::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#a4ada8; margin-right:5px; }
.refresh-status.is-online::before { background:#8aac05; }
.refresh-character-class { margin:0 0 10px; color:#8a9485; font-size:13px; }
.refresh-character-stats { margin:0 0 14px; }
.refresh-character-stats>div { display:grid; grid-template-columns:90px minmax(0,1fr); gap:10px; padding:5px 0; }
.refresh-character-stats dt { font-size:13px; font-weight:400; color:#7a8573; }
.refresh-character-stats dd { display:flex; align-items:center; gap:12px; margin:0; }
.refresh-character-stats strong { min-width:45px; font-size:13px; font-weight:600; text-align:right; }
.refresh-stat-track { flex:1; min-width:0; height:5px; background:#ebf0e1; border-radius:5px; overflow:hidden; }
.refresh-character-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:10px 0; margin-bottom:8px; border-top:1px solid #e7ecdf; font-size:12px; color:#7c8972; }
.refresh-character-actions { display:flex; flex-wrap:wrap; gap:6px; }
.refresh-character-actions a { padding:7px 10px; border:1px solid #e1e8d7; border-radius:5px; color:#68794a; background:#f7faef; font-size:12px; }
.refresh-character-actions a:hover { background:#eaf2d8; }
.refresh-profile-extra { margin-top:24px; border:1px solid #e4e9de; border-radius:9px; overflow:hidden; }
.refresh-profile-extra h2 { font-size:15px; padding:16px; margin:0; border-bottom:1px solid #e4e9de; }
.myaccount-table { background:#fff; border:1px solid #e6ebdf; }
.myaccount-table tr td:first-child { font-size:14px; font-weight:500; color:#7e8975; }
.myaccount-table tr td { padding:13px!important; }
.refresh-character-focus { outline:2px solid #9fbf4e; outline-offset:3px; }
@media(max-width:1000px) {
    .refresh-character-card { grid-template-columns:105px minmax(0,1fr); gap:16px; padding:16px; }
    .refresh-info-tab { height:125px; }
}
@media(max-width:767px) {
    .refresh-hero { min-height:270px; }
    .refresh-logo { width:150px; }
    .refresh-info-tabs { gap:8px; }
    .refresh-info-tab { height:125px; }
    .refresh-info-tab span { font-size:12px; bottom:12px; }
    .refresh-info-columns { grid-template-columns:1fr; }
    .refresh-character-card { grid-template-columns:100px minmax(0,1fr); gap:14px; }
    .refresh-character-stats>div { grid-template-columns:75px minmax(0,1fr); }
    .refresh-character-actions a { min-height:36px; display:flex; align-items:center; }
}
@media(max-width:480px) {
    .refresh-download-grid { grid-template-columns:1fr; }
    .refresh-info-tab { height:105px; }
    .refresh-info-tab span { font-size:11px; letter-spacing:0; }
    .refresh-character-card { grid-template-columns:1fr; }
    .refresh-character-identity { display:flex; flex-direction:column; align-items:center; }
    .refresh-ranking-toolbar,.refresh-ranking-toolbar label { width:100%; }
    .refresh-ranking-toolbar input { min-width:0; }
}

/* Numeric progress values stay in HTML; all presentation lives here. */
progress.refresh-stat-track,progress.refresh-online-progress { appearance:none; -webkit-appearance:none; border:0; border-radius:6px; background:#ebf0e1; overflow:hidden; }
progress.refresh-stat-track::-webkit-progress-bar,progress.refresh-online-progress::-webkit-progress-bar { background:#ebf0e1; border-radius:6px; }
progress.refresh-stat-track::-webkit-progress-value,progress.refresh-online-progress::-webkit-progress-value { background:#98b932; border-radius:6px; }
progress.refresh-stat-track::-moz-progress-bar,progress.refresh-online-progress::-moz-progress-bar { background:#98b932; border-radius:6px; }
.refresh-online-progress { display:block; width:100%; height:6px; margin:8px 0 16px; }
.refresh-stat-value { font-weight:700; }
.refresh-online-value { color:#789b0b; }
.refresh-footer-separator { padding:0 5px; }
.refresh-siege-details { margin-top:20px; }
.rankings-table tr[hidden] { display:none!important; }

.page-title { text-align:left; margin:0 0 16px; padding:0; }

/* INFO opens as an image menu. Sections are revealed only after a choice. */
html:not(.refresh-info-ready) .refresh-info-panel[hidden]:target { display:block!important; }
.refresh-info-panel>h2 { padding-bottom:12px; border-bottom:1px solid #dfe8cc; margin-bottom:16px; }
.refresh-info-panel>.table-responsive { margin-bottom:28px; }
.refresh-info-table { width:100%; min-width:440px; margin:0; border:1px solid #e7ecdf; }
.refresh-info-table thead th { color:#60713d; background:#f1f5e8; font-size:13px; font-weight:600; padding:13px 14px; }
.refresh-info-table tbody th,.refresh-info-table tbody td { padding:11px 14px; font-size:14px; font-weight:400; vertical-align:middle; }
.refresh-info-table tbody tr:nth-child(even) { background:#f7f9f4; }
.refresh-info-table th:first-child { width:40%; }
.refresh-info-table td:not(:first-child),.refresh-info-table thead th:not(:first-child) { text-align:center; }
.refresh-info-flag { display:inline-flex; align-items:center; gap:5px; font-size:13px; }
.refresh-info-flag.is-enabled { color:#67851b; }
.refresh-info-flag.is-disabled { color:#b36262; }
.refresh-info-flag>span { font-size:16px; font-weight:700; }
.refresh-info-note { padding:13px 16px; border:1px solid #e7dcae; border-radius:6px; background:#fff9e6; color:#8a7839; font-size:13px; }
#info-commands .refresh-info-table td { text-align:left; }
#info-commands .refresh-info-table tbody th { font-family:Consolas,monospace; color:#627b27; }
@media(max-width:480px) {
    .refresh-info-table tbody th,.refresh-info-table tbody td { font-size:13px; padding:10px; }
}

/* Compact public character sheet: portrait and read-only rows, like the reference. */
.refresh-public-profile { max-width:620px; margin:0 auto; }
.refresh-public-profile .page-title span { font-size:19px; }
.refresh-profile-sheet { display:grid; grid-template-columns:125px minmax(0,1fr); align-items:center; gap:20px; padding:16px; border:1px solid #e4e8df; border-radius:8px; background:#fff; }
.refresh-profile-portrait img { display:block; width:125px; height:230px; object-fit:cover; object-position:30% center; border:1px solid #d5deca; border-radius:3px; }
.refresh-profile-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:13px; }
.refresh-profile-table th,.refresh-profile-table td { padding:6px 10px; line-height:1.5; vertical-align:middle; overflow-wrap:anywhere; }
.refresh-profile-table th { width:44%; font-weight:400; color:#7d867c; }
.refresh-profile-table td { color:#485241; }
.refresh-profile-table tr:nth-child(odd) { background:#f5f7f2; }
.refresh-profile-table .refresh-status { font-size:13px; }
/* Online/offline keep both a text label and the reference's colored indicator. */
.refresh-status.is-online { color:#258641; }
.refresh-status.is-offline { color:#c33c4c; }
.refresh-status.is-online::before { background:#2ba94f; }
.refresh-status.is-offline::before { background:#df334c; }
/* Individual attribute colors, shared by account bars and public profile values. */
.refresh-stat-strength { --refresh-stat-color:#4d8525; }
.refresh-stat-agility { --refresh-stat-color:#8654b9; }
.refresh-stat-vitality { --refresh-stat-color:#a96319; }
.refresh-stat-energy { --refresh-stat-color:#89750c; }
.refresh-stat-command { --refresh-stat-color:#347db4; }
.refresh-character-stats strong,.refresh-profile-table td[class*=refresh-stat-] { color:var(--refresh-stat-color,#485241); }
.refresh-character-stats progress.refresh-stat-track::-webkit-progress-value { background:var(--refresh-stat-color,#98b932); }
.refresh-character-stats progress.refresh-stat-track::-moz-progress-bar { background:var(--refresh-stat-color,#98b932); }
@media(max-width:767px) {
    .refresh-shell { width:calc(100% - 24px); }
    #container.refresh-layout { gap:18px; padding-top:18px; }
    #content { padding:16px 12px; }
    .refresh-profile-sheet { gap:14px; padding:12px; grid-template-columns:100px minmax(0,1fr); }
    .refresh-profile-portrait img { width:100px; height:200px; }
    .refresh-profile-table th,.refresh-profile-table td { padding:6px 8px; }
}
@media(max-width:420px) {
    .refresh-profile-sheet { grid-template-columns:76px minmax(0,1fr); gap:10px; padding:10px; }
    .refresh-profile-portrait img { width:76px; height:170px; }
    .refresh-profile-table { font-size:12px; }
    .refresh-profile-table th,.refresh-profile-table td { padding:5px 6px; }
    .refresh-public-profile .page-title span { font-size:17px; }
}

.refresh-profile-sheet>.table-responsive { min-width:0; margin:0; border:0; }

/* Refresh frames: layered light borders, restrained corner marks and green headers. */
.refresh-frame,.panel-sidebar,.refresh-profile-sheet { position:relative; border:1px solid #d6dfc9; border-radius:7px; box-shadow:inset 0 0 0 3px #f7f9f3,0 3px 12px #30451b06; }
.refresh-frame::before,.panel-sidebar::before,.refresh-profile-sheet::before { content:''; position:absolute; top:5px; left:5px; width:9px; height:9px; border-top:1px solid #afbd8e; border-left:1px solid #afbd8e; pointer-events:none; z-index:1; }
.refresh-frame::after,.panel-sidebar::after,.refresh-profile-sheet::after { content:''; position:absolute; right:5px; bottom:5px; width:9px; height:9px; border-right:1px solid #afbd8e; border-bottom:1px solid #afbd8e; pointer-events:none; z-index:1; }
.refresh-box-heading,.panel-sidebar .panel-heading { background:linear-gradient(90deg,#f7f9f3,#edf2e4,#f7f9f3); border-bottom:1px solid #dce4cf; padding:13px 16px; text-align:center; }
.refresh-box-heading { margin:0; color:#61792b; font-size:14px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.panel-sidebar .panel-title { color:#61792b; font-size:13px; letter-spacing:.06em; text-transform:uppercase; line-height:1.5; }
/* The private menu holds only account operations and real configured balances. */
.refresh-wallet { margin:0 0 13px; padding:6px; border:1px solid #e0e6d5; background:#fafbf7; border-radius:5px; }
.refresh-wallet-row { display:grid; grid-template-columns:18px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:32px; padding:6px 8px; border:1px solid transparent; border-radius:4px; color:#6b735d; font-size:13px; transition:border-color .18s,color .18s,box-shadow .18s; }
.refresh-wallet-row strong { color:#708b2d; font-weight:600; }
.refresh-wallet-coin { font-size:17px; color:#c69b28; text-shadow:0 1px #fff; }
.refresh-wallet-row:hover,.refresh-wallet-row:focus-visible { color:#637e27!important; border-color:#96b34b; background:#f5f9ed; box-shadow:0 0 6px #7d9e2d20; }
.panel-usercp li>a { justify-content:center; text-transform:uppercase; font-size:12px; letter-spacing:.025em; min-height:34px; background:linear-gradient(#fafbf7,#f0f3e9); border-color:#dce3cf; transition:border-color .18s,color .18s,box-shadow .18s; }
.panel-usercp li>a:hover,.panel-usercp li>a[aria-current=page] { border-color:#94af49; color:#657f29!important; background:linear-gradient(#fafcf5,#eef4e1); box-shadow:inset 0 0 0 1px #f7fbea,0 0 6px #78932d1c; }
.refresh-account-logout { display:block; margin:14px auto 2px; width:80%; padding:9px 14px; border:1px solid #ad8e30; border-radius:4px; background:linear-gradient(#ead783,#c6a844); box-shadow:inset 0 0 0 1px #f9e9a780; color:#5f4b14; text-align:center; text-transform:uppercase; font-size:13px; letter-spacing:.07em; font-weight:600; transition:box-shadow .18s,filter .18s; }
.refresh-account-logout:hover { color:#49380c!important; box-shadow:0 0 12px #b6963650; filter:brightness(1.06); }
/* Account fields follow the reference's paired columns. Missing source fields remain dashes. */
.refresh-account-box { background:#fff; margin:0 0 18px; overflow:hidden; scroll-margin-top:20px; }
.refresh-account-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:12px; }
.refresh-account-data { margin:0; min-width:0; }
.refresh-account-data>div { display:grid; grid-template-columns:144px minmax(0,1fr); gap:8px; min-height:34px; align-items:center; padding:7px 8px; font-size:12px; }
.refresh-account-data>div:nth-child(odd) { background:#f7f9f3; }
.refresh-account-data dt { font-weight:400; color:#7b856e; white-space:nowrap; }
.refresh-account-data dt>span { display:inline-block; width:13px; color:#b69a3b; text-align:center; margin-right:3px; }
.refresh-account-data dd { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px; margin:0; min-width:0; color:#536044; overflow-wrap:anywhere; }
.refresh-account-data dd>span { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.refresh-account-data dd.refresh-account-editable { flex-wrap:nowrap; }
.refresh-account-editable>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.refresh-account-editable>.refresh-small-action { flex:none; white-space:nowrap; }
.refresh-small-action { padding:2px 5px; border:1px solid #cfddb4; border-radius:3px; color:#6b842d; background:#f5f8ed; font-size:11px; text-transform:uppercase; }
.refresh-small-action:hover { border-color:#92ae49; background:#eaf2d8; color:#536d1d!important; }
.refresh-account-state { padding:8px 18px; border-top:1px solid #e6ebdd; color:#8b9481; font-size:12px; }
.refresh-account-state strong { font-weight:500; color:#667a44; }
.refresh-account-characters { margin-bottom:20px; }
.refresh-account-characters>.refresh-box-heading { margin-bottom:12px; border:1px solid #dce4cf; border-radius:5px; }
.refresh-account-characters .refresh-character-list { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:12px; }
.refresh-account-characters .refresh-character-card { grid-template-columns:78px minmax(0,1fr); gap:12px; padding:12px; min-width:0; }
.refresh-account-characters .refresh-character-identity { overflow-wrap:anywhere; }
.refresh-account-characters .refresh-character-identity img { max-width:100%; }
.refresh-account-characters .refresh-character-stats>div { grid-template-columns:70px minmax(0,1fr); gap:6px; }
.refresh-account-characters .refresh-character-stats dd { gap:6px; }
@media(max-width:420px) {
    .refresh-account-characters .refresh-character-card { grid-template-columns:1fr; }
}
/* Bar fills match the video; value text stays gold and readable on the light template. */
.refresh-stat-strength { --refresh-stat-bar:#7ac52a; }
.refresh-stat-agility { --refresh-stat-bar:#b72ac4; }
.refresh-stat-vitality { --refresh-stat-bar:#e88b24; }
.refresh-stat-energy { --refresh-stat-bar:#d3db16; }
.refresh-stat-command { --refresh-stat-bar:#37a4d5; }
.refresh-account-characters .refresh-stat-strength { --refresh-stat-bar:#678d2d; }
.refresh-account-characters .refresh-stat-agility { --refresh-stat-bar:#9861b2; }
.refresh-account-characters .refresh-stat-vitality { --refresh-stat-bar:#c93b48; }
.refresh-account-characters .refresh-stat-energy { --refresh-stat-bar:#317ec5; }
.refresh-account-characters .refresh-stat-command { --refresh-stat-bar:#41474e; }
.refresh-character-stats strong { color:#9a7a12; }
.refresh-character-stats progress.refresh-stat-track::-webkit-progress-value { background:var(--refresh-stat-bar,#b9ca40); }
.refresh-character-stats progress.refresh-stat-track::-moz-progress-bar { background:var(--refresh-stat-bar,#b9ca40); }
/* Castle Siege lives below the news, in the main column. */
.refresh-siege-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:172px; margin-top:18px; padding:22px 26px; background-color:#102631; background-image:url('../img/siege/banner.png?v=20261110-1'); background-position:center; background-size:cover; background-repeat:no-repeat; color:#fff; border-color:#65786c; box-shadow:inset 0 0 0 3px #ffffff0c; overflow:hidden; }
.refresh-siege-banner::before,.refresh-siege-banner::after { border-color:#b3c28a90; }
.refresh-siege-banner .refresh-section-label { font-size:11px; color:#c7d59a; }
.refresh-siege-copy h2 { margin:7px 0; font-size:23px; font-weight:700; color:#fff; }
.refresh-siege-copy>span:not(:first-child) { display:block; font-size:13px; color:#d5e3dd; }
.refresh-siege-copy>strong { display:block; font-size:15px; margin:3px 0 10px; }
.refresh-siege-copy>a { color:#d2dfa9; font-size:12px; }
.refresh-siege-summary { display:flex; flex-direction:column; gap:6px; padding:14px; min-width:140px; border:1px solid #b5c59a40; border-radius:5px; background:#10222c99; font-size:12px; text-align:center; }
.refresh-siege-summary strong,.refresh-siege-summary a { color:#d9e7b8; font-size:15px; }
.refresh-siege-summary #siegeTimer { color:#fff; }
/* Upcoming events are sourced from api/events.php; no schedule is duplicated here. */
.refresh-events .panel-body { padding:7px 14px 10px; }
.refresh-events-list { margin:0; padding:0; list-style:none; }
.refresh-event-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; padding:10px 0; border-bottom:1px solid #e9edde; }
.refresh-event-row[hidden] { display:none!important; }
.refresh-event-row>strong { font-size:13px; font-weight:600; color:#626d53; }
.refresh-event-row time { color:#9b7f2b; font-size:12px; }
.refresh-event-caption { color:#9ba28e; font-size:11px; }
.refresh-event-timer { font-size:12px; text-align:right; color:#ac8b25; font-variant-numeric:tabular-nums; }
.refresh-event-row[data-state=open] .refresh-event-timer,.refresh-event-row[data-state=active] .refresh-event-timer { color:#5c922e; font-weight:600; }
.refresh-events-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:9px; }
.refresh-events-footer small { color:#9ba18f; font-size:11px; }
.refresh-events-toggle { padding:2px 5px; border:1px solid #dbe4c9; border-radius:3px; background:#f8faf2; color:#7d8a55; font-size:11px; }
.refresh-events-message { padding:8px 0; margin:0; color:#929a83; font-size:12px; }
@media(max-width:1000px) {
    .refresh-account-columns { grid-template-columns:1fr; gap:0; }
    .refresh-account-data>div { grid-template-columns:144px minmax(0,1fr); }
}
@media(max-width:767px) {
    .refresh-siege-banner { padding:18px; gap:12px; }
    .refresh-siege-copy h2 { font-size:21px; }
}
@media(max-width:480px) {
    .refresh-siege-banner { flex-direction:column; align-items:flex-start; min-height:180px; }
    .refresh-siege-summary { flex-direction:row; align-items:center; flex-wrap:wrap; width:100%; padding:9px; gap:5px 10px; min-width:0; text-align:left; }
    .refresh-siege-summary strong { font-size:13px; }
    .refresh-account-data>div { grid-template-columns:minmax(0,1fr); gap:3px; padding:7px 5px; }
}

.refresh-download-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.refresh-provider-icon img { display:block; width:42px; height:42px; object-fit:contain; }
.refresh-download-card { padding:20px 12px 14px; transition:border-color .18s,box-shadow .18s; }
.refresh-download-card:hover { border-color:#aec37d; box-shadow:0 0 0 2px #ebf1df,0 5px 14px #6b874519; }
.refresh-download-card h3 { font-size:15px; }
.refresh-download-card p { font-size:13px; }
.refresh-download-bottom { flex-wrap:wrap; justify-content:center; }
.refresh-download-bottom>span { width:100%; }
@media(max-width:1000px) { .refresh-download-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .refresh-download-grid { grid-template-columns:1fr; } }

/* Header: online progress on the left; language dropdown and account on the right. */
.refresh-header-online { width:220px; min-width:120px; max-width:45%; }
.refresh-header-online>div { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:4px; font-size:12px; color:#7c876f; }
.refresh-header-online strong { color:#6d881e; font-size:14px; font-weight:700; }
.refresh-header-progress { display:block; width:100%; height:5px; margin:0; appearance:none; -webkit-appearance:none; border:0; background:#dfe6d5; border-radius:5px; overflow:hidden; }
.refresh-header-progress::-webkit-progress-bar { background:#dfe6d5; border-radius:5px; }
.refresh-header-progress::-webkit-progress-value { background:#93af37; border-radius:5px; }
.refresh-header-progress::-moz-progress-bar { background:#93af37; border-radius:5px; }
.refresh-header-links { gap:18px; }
.refresh-language-menu { position:relative; z-index:20; }
.refresh-language-menu>summary { display:flex; align-items:center; gap:7px; padding:6px 10px; min-height:32px; border:1px solid #dfe5d7; border-radius:5px; background:#fff; color:#687653; list-style:none; cursor:pointer; font-size:13px; }
.refresh-language-menu>summary::-webkit-details-marker { display:none; }
.refresh-language-menu>summary::after { content:''; width:5px; height:5px; border-right:1px solid #82905f; border-bottom:1px solid #82905f; transform:rotate(45deg); margin:0 1px 3px 6px; }
.refresh-language-menu>summary img { width:18px; height:auto; }
.refresh-language-menu[open]>summary { border-color:#afc27d; }
.refresh-language-menu .webengine-language-switcher,.refresh-language-menu .webengine-language-switcher:hover { position:absolute; right:0; top:calc(100% + 5px); display:grid; grid-template-columns:1fr; gap:0; width:155px; max-width:none; height:auto; margin:0!important; padding:5px!important; border:1px solid #dce4cf; border-radius:6px; background:#fff; box-shadow:0 6px 18px #30451b18; }
.refresh-language-menu .webengine-language-switcher li { padding:0; border:0; background:none; }
.refresh-language-menu .webengine-language-switcher li a { display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:4px; font-size:13px; color:#687653; }
.refresh-language-menu .webengine-language-switcher li a:hover,.refresh-language-menu .webengine-language-switcher li a[aria-current=true] { background:#edf3df; color:#667f27!important; }
/* Commands and descriptions always share fixed, left-aligned columns. */
#info-commands .refresh-info-table { table-layout:fixed; min-width:0; }
#info-commands .refresh-info-table thead th,#info-commands .refresh-info-table tbody th,#info-commands .refresh-info-table td { text-align:left; vertical-align:top; overflow-wrap:anywhere; }
#info-commands .refresh-info-table th:first-child { width:36%; }
#info-commands .refresh-info-table td { width:64%; }
@media(max-width:480px) {
    .refresh-header-links { gap:9px; }
    .refresh-header-online { width:135px; }
    .refresh-header-online>div { font-size:11px; }
    .refresh-language-menu>summary { padding:5px 7px; gap:5px; }
    #info-commands .refresh-info-table th:first-child { width:43%; }
    #info-commands .refresh-info-table td { width:57%; }
}

.refresh-language-menu>summary:focus-visible { outline:2px solid #97ad61; outline-offset:2px; }
#info-commands .refresh-info-table thead th,#info-commands .refresh-info-table tbody th,#info-commands .refresh-info-table td { white-space:normal; }
.refresh-download-provider { max-width:100%; overflow-wrap:anywhere; }

/* Download tiles: original brand marks where available, light Refresh surfaces and colored hover glow. */
.refresh-download-card,.refresh-resource-card { --provider-glow:110,154,42; position:relative; overflow:hidden; transition:border-color .2s,box-shadow .2s,background-color .2s; }
.refresh-download-card.provider-drive { --provider-glow:37,166,99; }
.refresh-download-card.provider-mega { --provider-glow:219,40,72; }
.refresh-download-card.provider-mediafire { --provider-glow:22,139,226; }
.refresh-download-card:hover,.refresh-download-card:focus-within,.refresh-resource-card:hover,.refresh-resource-card:focus-visible { border-color:rgba(var(--provider-glow),.65); box-shadow:inset 0 0 0 1px rgba(var(--provider-glow),.1),0 0 14px rgba(var(--provider-glow),.22); }
.refresh-provider-icon { background:transparent!important; border-radius:0; }
.refresh-provider-icon img { width:42px; height:42px; }
.refresh-download-resources { border-top:1px solid #e2e8d7; padding-top:22px; margin-top:26px; text-align:center; }
.refresh-download-resources h2 { font-size:16px; font-weight:700; color:#6e872d; }
.refresh-download-resources>p { color:#929b85; font-size:13px; margin-bottom:20px; }
.refresh-resource-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.refresh-resource-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; min-height:125px; padding:18px 9px; border:1px solid #e5eadc; border-radius:5px; background:#fafbf7; }
.refresh-resource-card img { width:52px; height:52px; object-fit:contain; }
.refresh-resource-card span { font-size:13px; color:#7b8c55; }
.provider-vcredist,.provider-visualstudio { --provider-glow:151,72,198; }
.provider-dotnet,.provider-webview,.provider-intel { --provider-glow:29,142,204; }
/* All account buttons, including logout, stay within Refresh's green palette. */
.refresh-account-logout { background:linear-gradient(#a0be35,#829f1c); border-color:#79971c; color:#fff; box-shadow:inset 0 0 0 1px #d4e79980; }
.refresh-account-logout:hover { color:#fff!important; background:linear-gradient(#aac944,#8dab25); box-shadow:0 0 10px #8ba3424d; }
.refresh-header-progress { height:7px; min-height:7px; opacity:1; border:1px solid #d3ddc5; }
.refresh-wallet-empty { margin:0 0 12px; padding:10px; border:1px solid #e2e8d5; border-radius:4px; color:#8a957c; font-size:12px; }
.refresh-character-identity .refresh-character-zen { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:3px; color:#6e7565; font-size:12px; }
.refresh-character-identity .refresh-character-zen img { display:inline-block; width:14px; height:14px; border:0; border-radius:0; margin:0; object-fit:contain; }
.refresh-character-zen>span,.refresh-map-label { color:#a1801d; font-weight:500; }
/* Ranking portrait + overlapping country; no extra country column. */
.refresh-ranking-avatar { position:relative; display:inline-block; width:34px; height:34px; vertical-align:middle; }
.refresh-ranking-avatar .rankings-class-image { width:32px; height:32px; object-fit:cover; }
.refresh-ranking-avatar .refresh-ranking-country { position:absolute; right:-5px; bottom:-1px; width:16px; height:11px; max-width:none; border:1px solid #fff; border-radius:1px; box-shadow:0 1px 3px #0003; }
.refresh-ranking-class-cell { min-width:48px; }
/* Guild information and roster match the reference without exposing account data. */
.refresh-guild-information { margin-bottom:20px; overflow:hidden; }
.refresh-guild-summary { display:grid; grid-template-columns:130px minmax(0,1fr); gap:20px; padding:18px; align-items:center; }
.refresh-guild-mark { text-align:center; }
.refresh-guild-mark img { image-rendering:pixelated; width:100px; height:100px; }
.refresh-guild-summary dl { margin:0; }
.refresh-guild-summary dl>div { display:grid; grid-template-columns:45% minmax(0,1fr); gap:10px; padding:8px 10px; font-size:14px; }
.refresh-guild-summary dl>div:nth-child(odd) { background:#f5f8ef; }
.refresh-guild-summary dt { font-weight:400; color:#8a9480; }
.refresh-guild-summary dd { margin:0; overflow-wrap:anywhere; }
.refresh-guild-members { font-size:13px; min-width:430px; }
.refresh-guild-members th,.refresh-guild-members td { text-align:center; padding:9px!important; }
.refresh-guild-members thead { color:#839170; background:#f1f5e9; }
.refresh-guild-members tbody tr:nth-child(even) { background:#f7f9f3; }
.role-master { color:#a7801c; }.role-assistant { color:#c43c5a; }.role-battle { color:#3684b6; }.role-member { color:#8d9485; }
/* Footer: links/social strip, copyright on the left and both clocks on the right. */
.footer { padding:0 0 24px; background:transparent; border:0; }
.refresh-footer-top { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:16px 0; border-top:1px solid #dce3d2; border-bottom:1px solid #dce3d2; }
.refresh-footer-links { display:flex; flex-wrap:wrap; gap:9px 20px; }
.refresh-footer-links a { font-size:12px; color:#7b8c55; }
.refresh-footer-social { display:flex; gap:15px; }
.refresh-footer-social img { width:15px; height:15px; opacity:.55; filter:grayscale(1); }
.refresh-footer-social a:hover img { opacity:1; filter:none; }
.refresh-footer-bottom { display:flex; justify-content:space-between; gap:28px; padding-top:22px; }
.refresh-footer-copyright { font-size:12px; color:#939b8b; }
.refresh-footer-copyright p { margin:0 0 8px; }
.refresh-footer-clocks { display:flex; gap:30px; flex-shrink:0; text-align:center; }
.refresh-footer-clocks>div { min-width:100px; }
.refresh-footer-clocks>div>span { display:block; color:#98a18c; text-transform:uppercase; letter-spacing:.08em; font-size:11px; }
.refresh-footer-clocks time { display:block; font-size:22px; line-height:1.5; color:#9b8226; font-weight:600; font-variant-numeric:tabular-nums; }
.refresh-footer-clocks small { display:block; color:#9ca58f; font-size:11px; }
@media(max-width:767px) {
 .refresh-footer-bottom { flex-direction:column; }
 .refresh-footer-clocks { align-self:flex-end; }
 .refresh-guild-summary { grid-template-columns:90px minmax(0,1fr); gap:10px; padding:12px; }
 .refresh-guild-mark img { width:75px; height:75px; }
 .refresh-resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px) {
 .refresh-footer-top { align-items:flex-start; }
 .refresh-footer-links { gap:8px 12px; }
 .refresh-footer-social { gap:10px; }
 .refresh-footer-clocks { align-self:center; }
 .refresh-guild-summary dl>div { padding:7px 5px; font-size:12px; gap:6px; }
}

.refresh-account-logout { background:var(--webenginecolor8); border-color:var(--webenginecolor10); color:var(--webenginecolor9); }
.refresh-account-logout:hover,.refresh-account-logout:focus-visible { background:var(--webenginecolor11); color:var(--webenginecolor12)!important; }

.refresh-download-bottom>a::after { content:''; position:absolute; inset:0; z-index:1; border-radius:5px; }

img.refresh-wallet-coin { display:block; width:16px; height:16px; object-fit:contain; filter:drop-shadow(0 1px 1px #9c761b44); }

/* A shared fixed-width time column keeps every event aligned, regardless of countdown length. */
.refresh-event-row { grid-template-columns:minmax(0,1fr) 100px; column-gap:8px; row-gap:3px; align-items:baseline; }
.refresh-event-row>strong { grid-column:1; grid-row:1; min-width:0; line-height:1.5; }
.refresh-event-row>time { grid-column:2; grid-row:1; justify-self:stretch; text-align:right; white-space:nowrap; line-height:1.5; font-variant-numeric:tabular-nums; }
.refresh-event-row>.refresh-event-caption { grid-column:1; grid-row:2; line-height:1.5; }
.refresh-event-row>.refresh-event-timer { grid-column:2; grid-row:2; justify-self:stretch; text-align:right; white-space:nowrap; line-height:1.5; font-variant-numeric:tabular-nums; }

.refresh-wallet-row,.panel-usercp li>a,.refresh-small-action { transition:border-color .2s,color .2s,background-color .2s,box-shadow .2s; }
.refresh-small-action:focus-visible { border-color:#92ae49; background:#eaf2d8; color:#536d1d!important; }
/* Public profiles share the account attribute bars, while remaining read-only. */
.refresh-profile-stat { display:flex; align-items:center; gap:8px; min-width:0; }
.refresh-profile-stat>progress { flex:1; width:100%; min-width:0; height:5px; }
.refresh-profile-stat>strong { min-width:36px; color:#9a7a12; text-align:right; font-size:inherit; font-weight:500; }
.refresh-profile-table progress.refresh-stat-track::-webkit-progress-value { background:var(--refresh-stat-bar,#93af37); }
.refresh-profile-table progress.refresh-stat-track::-moz-progress-bar { background:var(--refresh-stat-bar,#93af37); }
/* Scheduled times stay green; only an approaching countdown receives a soft color pulse. */
.refresh-event-row>time { color:#7c943c; }
.refresh-event-row>.refresh-event-timer { color:#718b31; transition:color .6s; }
.refresh-event-row { border-left:2px solid transparent; padding-left:6px; padding-right:4px; transition:background-color .6s,border-color .6s; }
.refresh-event-row[data-state=soon] { border-left-color:#91ad3c; background:#f3f8e9; }
.refresh-event-row[data-state=soon] .refresh-event-timer { font-weight:600; animation:refresh-event-near 2s ease-in-out infinite; }
.refresh-event-row[data-state=open] .refresh-event-timer { color:#598b2e; }
.refresh-event-row[data-state=active] .refresh-event-timer { color:#2e8749; }
@keyframes refresh-event-near {
 0%,100% { color:#617d25; text-shadow:none; }
 50% { color:#94b12e; text-shadow:0 0 5px #9db63740; }
}
@media(max-width:420px) { .refresh-profile-stat { gap:5px; }.refresh-profile-stat>strong { min-width:28px; } }

/* Reference-style tile illumination, adapted to Refresh's light surfaces. */
.refresh-resource-card { background:linear-gradient(#fcfdf9,#f7f9f2); }
.refresh-resource-card>img,.refresh-resource-card>span,.refresh-download-card>.refresh-provider-icon { position:relative; z-index:1; }
.refresh-resource-card img,.refresh-provider-icon img { transition:filter .25s ease,transform .25s ease; }
.refresh-resource-card:hover img,.refresh-resource-card:focus-visible img,.refresh-download-card:hover .refresh-provider-icon img,.refresh-download-card:focus-within .refresh-provider-icon img { transform:translateY(-2px) scale(1.04); filter:brightness(1.08) drop-shadow(0 2px 5px rgba(var(--provider-glow),.25)); }
.refresh-resource-card:hover>span,.refresh-resource-card:focus-visible>span { color:rgb(var(--provider-glow)); text-shadow:0 0 7px rgba(var(--provider-glow),.2); }
.panel-usercp li>a:hover,.panel-usercp li>a:focus-visible,.refresh-wallet-row:hover,.refresh-wallet-row:focus-visible { border-color:#94af49; box-shadow:inset 0 0 0 1px #eff6df,0 0 7px #86a73d22; }

/* Downloads: compact mirror/component tiles, separated as in the reference, all sourced from SQL. */
.refresh-download-section { margin:0; padding:24px 0 28px; border-top:1px solid #e0e8d3; text-align:center; }
.refresh-download-section:first-of-type { border-top:0; padding-top:4px; }
.refresh-download-section>h2 { font-size:15px; font-weight:700; color:#6f8c27; text-transform:uppercase; letter-spacing:.04em; margin:0 0 9px; }
.refresh-download-intro { font-size:13px; color:#8d9782; margin:0 0 24px; }
.refresh-mirror-grid { display:flex; justify-content:center; align-items:stretch; flex-wrap:wrap; gap:14px; }
.refresh-download-tile { flex:0 1 145px; min-height:145px; padding:19px 12px; gap:10px; justify-content:center; color:#78865e; background:linear-gradient(#fcfdf9,#f5f8ee); text-decoration:none; }
.refresh-download-tile>.refresh-tile-icon { position:relative; z-index:1; width:46px; height:46px; object-fit:contain; transition:filter .25s,transform .25s; }
.refresh-tile-title { position:relative; z-index:1; font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.refresh-tile-description { position:relative; z-index:1; font-size:11px; line-height:1.5; color:#97a087; }
.refresh-tile-size { font-size:11px; color:#a0a88f; }
.refresh-download-tile:hover>.refresh-tile-icon,.refresh-download-tile:focus-visible>.refresh-tile-icon { transform:translateY(-2px) scale(1.04); filter:brightness(1.08) drop-shadow(0 2px 5px rgba(var(--provider-glow),.25)); }
.refresh-download-tile:hover>.refresh-tile-title,.refresh-download-tile:focus-visible>.refresh-tile-title { color:rgb(var(--provider-glow)); text-shadow:0 0 7px rgba(var(--provider-glow),.2); }
.refresh-download-section .refresh-resource-grid { max-width:640px; margin:0 auto; }
.refresh-download-section .refresh-resource-card { min-height:132px; gap:12px; padding:18px 10px; }
.refresh-download-section .refresh-resource-card .refresh-tile-description { font-size:11px; color:#97a087; }
@media(max-width:480px) {
 .refresh-mirror-grid { gap:10px; }
 .refresh-download-tile { flex-basis:calc(50% - 5px); min-height:130px; }
 .refresh-download-section { padding:20px 0 24px; }
}

/* Ranking controls follow the table and share the Refresh palette. */
.refresh-ranking-pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; margin:18px 0 12px; }
.refresh-ranking-pagination button { min-width:32px; min-height:32px; padding:5px 10px; border:1px solid #dfe5d9; border-radius:5px; background:#fff; color:#657451; transition:background .2s,border-color .2s,color .2s; }
.refresh-ranking-pagination button:hover:not(:disabled),.refresh-ranking-pagination button[aria-current="page"] { background:var(--refresh-primary,#8eaa16); border-color:var(--refresh-primary,#8eaa16); color:#fff; }
.refresh-ranking-pagination button:disabled { opacity:.4; cursor:default; }
.refresh-ranking-toolbar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px 16px; margin:0; padding:16px 0 0; border-top:1px solid #e5e9df; }
.refresh-ranking-toolbar label { width:auto; font-size:14px; }
.refresh-ranking-toolbar input { min-width:0; margin:0; }
.refresh-ranking-count { grid-column:1/-1; text-align:right; }
@media(max-width:540px) { .refresh-ranking-toolbar { grid-template-columns:minmax(0,1fr) auto; } .refresh-ranking-toolbar label { grid-column:1/-1; } }

/* Hero: original classic character artwork, logo glow and right-hand actions. */
.refresh-hero { position:relative; min-height:347px; justify-content:space-between; align-items:flex-start; padding:30px 36px; }
.refresh-hero-copy { position:relative; z-index:1; max-width:32%; }
.refresh-hero-cta { position:relative; z-index:1; align-self:flex-end; max-width:46%; text-align:right; }
.refresh-hero-cta p { font-size:15px; line-height:1.55; margin:0 0 12px; color:#e4ece8; }
.refresh-hero-actions { justify-content:flex-end; gap:8px; }
.refresh-hero-actions .btn { padding:10px 16px; font-size:14px; }
.refresh-logo-title a { position:relative; isolation:isolate; }
.refresh-logo-title a::before { content:''; position:absolute; z-index:-1; inset:8%; border-radius:50%; background:conic-gradient(from 0deg,#91b333,#36bb91,#40a4d1,#b17bcc,#e1ad55,#91b333); filter:blur(22px); opacity:0; transform:scale(.75); transition:opacity .3s,transform .3s; pointer-events:none; }
.refresh-logo-title a:hover::before,.refresh-logo-title a:focus-visible::before { opacity:.65; transform:scale(1.22); animation:refresh-logo-aura 5s linear infinite; }
@keyframes refresh-logo-aura { to { transform:scale(1.22) rotate(360deg); } }
@media(max-width:767px) {
 .refresh-hero { min-height:330px; padding:22px; }
 .refresh-hero-copy { max-width:46%; }
 .refresh-hero-cta { max-width:54%; }
 .refresh-hero-cta p { font-size:14px; }
 .refresh-hero-actions .btn { padding:9px 12px; }
}
@media(max-width:480px) {
 .refresh-hero { min-height:380px; padding:18px; background-position:52% top; background-size:auto 280px; }
 .refresh-hero-copy { max-width:48%; }
 .refresh-logo { width:125px; }
 .refresh-hero-copy .refresh-eyebrow { font-size:11px; }
 .refresh-hero-cta { position:absolute; right:18px; bottom:20px; left:18px; max-width:none; }
 .refresh-hero-cta p { font-size:14px; }
}

/* Navigation keeps the artwork in place while the server renders fresh account data. */
.refresh-navigation-status { position:fixed; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.refresh-is-loading::before { content:''; position:fixed; z-index:9999; top:0; left:0; width:100%; height:3px; background:linear-gradient(90deg,#6b892b,#c3d986,#6b892b); background-size:200% 100%; animation:refresh-loading 1s linear infinite; }
.refresh-is-loading #main-content { cursor:progress; }
#main-content { scroll-margin-top:18px; transition:opacity .15s; }
@keyframes refresh-loading { to { background-position:200% 0; } }
/* Larger centered logo in its left-hand area; season follows the slogan on the right. */
.refresh-hero { align-items:center; }
.refresh-hero-copy { width:250px; max-width:30%; text-align:center; }
.refresh-hero .refresh-logo-title { margin:0; }
.refresh-logo { width:220px; max-width:100%; }
.refresh-hero-cta .refresh-eyebrow { display:block; margin-bottom:9px; font-size:12px; letter-spacing:.13em; }
.refresh-logo-title a::before { inset:14% 17%; background:conic-gradient(from 30deg,transparent 0deg,#cbd6d0 45deg,#5ca76b 100deg,transparent 150deg,transparent 230deg,#a5b9b2 275deg,#558657 320deg,transparent 360deg); filter:blur(17px); }
.refresh-logo-title a:hover::before,.refresh-logo-title a:focus-visible::before { opacity:.55; }
.refresh-weapon-glow { position:absolute; z-index:0; width:5px; height:5px; border-radius:50%; pointer-events:none; opacity:.3; animation:refresh-weapon-pulse 4s ease-in-out infinite; }
.refresh-weapon-sword { left:38.4%; top:17%; color:#ee5948; background:#ffc7a3; box-shadow:0 0 6px 2px currentColor,0 0 16px 5px #d7503833; }
.refresh-weapon-staff { left:66.4%; top:15%; color:#e8ca72; background:#fff3bb; box-shadow:0 0 6px 2px currentColor,0 0 16px 5px #d3b54d33; animation-delay:1.8s; }
@keyframes refresh-weapon-pulse { 0%,100% { opacity:.12; transform:scale(.7); } 50% { opacity:.6; transform:scale(1.1); } }
@media(min-width:481px) and (max-width:767px) {
 .refresh-hero-copy { width:180px; max-width:32%; }
 .refresh-logo { width:180px; }
}
@media(max-width:480px) {
 .refresh-hero { min-height:calc((100vw - 24px)/3 + 148px); padding:16px; background-size:100% auto; background-position:center top; background-color:#071c22; align-items:flex-end; }
 .refresh-hero-copy { width:120px; max-width:36%; margin-bottom:12px; }
 .refresh-logo { width:120px; }
 .refresh-hero-cta { position:static; max-width:62%; align-self:flex-end; margin-bottom:8px; }
 .refresh-hero-cta .refresh-eyebrow { font-size:11px; letter-spacing:.06em; }
 .refresh-hero-cta p { font-size:13px; line-height:1.6; }
 .refresh-hero-actions { gap:6px; }
 .refresh-hero-actions .btn { padding:8px 10px; font-size:13px; }
 .refresh-weapon-glow { display:none; }
}

/* Castle information stays in the artwork's quiet left-hand area. */
.refresh-siege-banner { display:block; min-height:220px; padding:22px 24px; background-position:center; background-color:#0a1d2c; }
.refresh-siege-copy { width:62%; }
.refresh-siege-copy h2 { font-size:22px; }
.refresh-siege-summary { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; flex-wrap:wrap; width:62%; min-width:0; margin-top:12px; padding:10px 0 0; gap:5px 10px; background:none; border:0; border-top:1px solid #bccdb42b; border-radius:0; text-align:left; }
.refresh-siege-summary strong,.refresh-siege-summary a { font-size:14px; }
.refresh-siege-summary #siegeTimer { flex-basis:100%; font-size:13px; color:#c9d7c8; }
@media(max-width:480px) {
 .refresh-siege-banner { min-height:0; padding:calc((100vw - 72px)/3 + 14px) 18px 20px; background-size:100% auto; background-position:center top; }
 .refresh-siege-copy,.refresh-siege-summary { width:100%; }
}

@media(max-width:1100px) { .refresh-weapon-glow { display:none; } }

/* Reference-style loading feedback with a Refresh Fairy Elf, never a forced delay. */
.refresh-elf-preloader { position:fixed; inset:0; z-index:10000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; background:#071c27a8; backdrop-filter:blur(3px); color:#dceeb1; font-size:15px; font-weight:600; letter-spacing:.05em; }
.refresh-elf-preloader[hidden] { display:none; }
.refresh-elf-preloader>img { width:96px; height:112px; object-fit:contain; filter:drop-shadow(0 0 12px #8ec36255); animation:refresh-elf-float 2.4s ease-in-out infinite; }
.refresh-preloader-dots { letter-spacing:5px; font-size:14px; color:#a7c967; animation:refresh-preloader-breathe 1.2s ease-in-out infinite; }
@keyframes refresh-elf-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
@keyframes refresh-preloader-breathe { 0%,100% { opacity:.3; } 50% { opacity:1; } }
/* Banner information is distributed across three equally weighted columns. */
.refresh-siege-banner { display:flex; flex-direction:column; justify-content:space-between; align-items:stretch; min-height:225px; padding:22px; gap:34px; }
.refresh-siege-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.refresh-siege-heading h2 { margin:7px 0 0; font-size:23px; color:#fff; }
.refresh-siege-more { display:inline-flex; align-items:center; gap:12px; padding:8px 12px; border:1px solid #acc68a80; border-radius:5px; background:#091f2bbd; color:#e0edca; font-size:13px; transition:background .2s,border-color .2s; }
.refresh-siege-more:hover,.refresh-siege-more:focus-visible { color:white; background:#47682cd9; border-color:#bedc90; }
.refresh-siege-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0; padding:14px 6px; background:#081d2cbb; border:1px solid #d0e2bd30; border-radius:6px; }
.refresh-siege-facts>div { min-width:0; padding:0 12px; text-align:center; }
.refresh-siege-facts>div+div { border-left:1px solid #d0e2bd30; }
.refresh-siege-facts dt { color:#bacdc5; font-weight:400; font-size:12px; margin-bottom:6px; }
.refresh-siege-facts dd { margin:0; font-size:15px; font-weight:600; color:#fff; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.refresh-siege-facts dd a { color:#d7eaa8; }
.refresh-siege-facts #siegeTimer { font-size:14px; }
.refresh-siege-page { display:grid; gap:18px; }
.refresh-siege-overview,.refresh-siege-panel { min-width:0; padding:20px; background:#fff; }
.refresh-siege-owner { text-align:center; padding-bottom:22px; }
.refresh-siege-owner>div { display:flex; justify-content:center; align-items:center; gap:14px; margin:15px 0 10px; font-size:22px; }
.refresh-siege-owner img { width:56px; height:56px; image-rendering:pixelated; border-radius:3px; }
.refresh-siege-owner small { color:#7c8778; }
.refresh-siege-stages { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.refresh-siege-stages>div { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; padding:18px 12px; background:#f7f9f3; border:1px solid #e1e8d7; border-radius:6px; text-align:center; }
.refresh-siege-stages span,.refresh-siege-cycle label,.refresh-siege-battle>span { font-size:12px; font-weight:600; color:#7c913f; text-transform:uppercase; letter-spacing:.05em; }
.refresh-siege-stages strong { font-size:15px; }
.refresh-siege-stages small { color:#8ca52f; font-variant-numeric:tabular-nums; }
.refresh-siege-cycle { margin-top:22px; }
.refresh-siege-cycle progress { display:block; width:100%; height:8px; margin:10px 0 7px; border:0; border-radius:5px; overflow:hidden; appearance:none; background:#e9eddf; color:#8ca52f; }
.refresh-siege-cycle progress::-webkit-progress-bar { background:#e9eddf; }
.refresh-siege-cycle progress::-webkit-progress-value { background:#8ca52f; border-radius:5px; }
.refresh-siege-cycle progress::-moz-progress-bar { background:#8ca52f; border-radius:5px; }
.refresh-siege-cycle small { font-size:13px; color:#7c8778; }
.refresh-siege-battle { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:18px; padding-top:16px; border-top:1px solid #e5eadf; }
.refresh-siege-battle #siegeTimer { color:#718c2d; font-size:15px; }
.refresh-siege-panel h2 { margin:0 0 16px; color:#374036; font-size:15px; }
.refresh-siege-table { width:100%; margin:0; font-size:14px; }
.refresh-siege-table th,.refresh-siege-table td { padding:11px 10px!important; border-color:#edf0e8!important; vertical-align:middle!important; }
.refresh-siege-table tbody th { font-weight:400; }
.refresh-siege-table tbody tr:nth-child(even) { background:#f8faf5; }
.refresh-siege-table img { max-width:none; }
.refresh-siege-schedule { min-width:480px; }
.refresh-siege-schedule .is-active { background:#f0f5e3!important; color:#637d25; }
.refresh-siege-active { display:inline-block; padding:2px 5px; margin-left:5px; border-radius:3px; background:#dcebc0; font-size:11px; font-weight:600; }
@media(max-width:480px) {
 .refresh-siege-banner { min-height:0; gap:18px; padding:calc((100vw - 72px)/3 + 14px) 16px 16px; }
 .refresh-siege-heading { align-items:center; }
 .refresh-siege-heading h2 { font-size:20px; }
 .refresh-siege-more { padding:8px; max-width:45%; font-size:12px; gap:7px; }
 .refresh-siege-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 0; padding:12px 4px; }
 .refresh-siege-facts>div:last-child { grid-column:1/-1; border-left:0; border-top:1px solid #d0e2bd30; padding-top:12px; }
 .refresh-siege-facts dd { font-size:14px; }
 .refresh-siege-overview,.refresh-siege-panel { padding:16px; }
 .refresh-siege-stages { gap:8px; }
}

#main-content:focus { outline:none; }

/* Siege artwork has its own row: no information covers the classes or castle. */
.refresh-siege-banner { display:block; min-height:0; padding:0; gap:0; background:#fff; border:1px solid #e0e7d8; box-shadow:0 3px 14px #33492308; }
.refresh-siege-heading { align-items:center; padding:17px 20px; gap:16px; }
.refresh-siege-heading .refresh-section-label { color:#7b9140; }
.refresh-siege-heading h2 { color:#303d35; margin:5px 0 0; font-size:21px; }
.refresh-siege-more { color:#647d29; background:#f5f8ee; border-color:#d7e2c5; font-weight:600; }
.refresh-siege-more:hover,.refresh-siege-more:focus-visible { color:#fff; background:#829e30; border-color:#829e30; }
.refresh-siege-art { line-height:0; background:#0a202c; }
.refresh-siege-art img { display:block; width:100%; height:auto; aspect-ratio:3/1; object-fit:contain; }
.refresh-siege-facts { padding:18px 8px; border:0; border-radius:0; background:#f7f9f2; }
.refresh-siege-facts>div { padding:0 12px; }
.refresh-siege-facts>div+div { border-left:1px solid #dce5cf; }
.refresh-siege-facts dt { color:#7a8775; font-size:13px; margin-bottom:7px; }
.refresh-siege-facts dd { color:#344230; font-size:16px; }
.refresh-siege-facts dd a { color:#718d29; }
.refresh-siege-facts #siegeTimer { color:#718d29; font-size:15px; }
@media(max-width:480px) {
 .refresh-siege-banner { min-height:0; padding:0; }
 .refresh-siege-heading { padding:15px 16px; gap:12px; }
 .refresh-siege-heading h2 { font-size:19px; }
 .refresh-siege-more { max-width:47%; padding:8px 10px; }
 .refresh-siege-facts { padding:16px 5px; gap:14px 0; }
 .refresh-siege-facts>div:last-child { border-left:0; border-top:1px solid #dce5cf; padding-top:13px; }
 .refresh-siege-facts dd { font-size:15px; }
}

/* Full-body game figures keep their transparency, pedestal and natural proportions. */
.refresh-profile-portrait { position:relative; display:flex; align-items:center; justify-content:center; }
.refresh-profile-portrait img { display:block; width:125px; height:auto; max-width:100%; max-height:236px; object-fit:contain; object-position:center; border:0; border-radius:0; background:transparent; }
.refresh-profile-extra.refresh-profile-character { margin-top:0; }
.refresh-profile-character-body { display:grid; grid-template-columns:minmax(0,125px) minmax(0,1fr); gap:16px; align-items:center; }
.refresh-profile-character-body:has(canvas[data-character-name]) { grid-template-columns:minmax(0,50%) minmax(0,1fr); }
.refresh-profile-character-body > .refresh-profile-portrait:has(canvas[data-character-name]) { height:440px; }
@media(max-width:550px) {
    .refresh-profile-character-body:has(canvas[data-character-name]) { grid-template-columns:minmax(0,1fr); }
    .refresh-profile-character-body > .refresh-profile-portrait:has(canvas[data-character-name]) { height:380px; }
}
.refresh-profile-portrait canvas[data-character-name] { position:absolute; inset:0; width:100%; height:100%; visibility:hidden; touch-action:pan-y; cursor:grab; }
.refresh-profile-portrait canvas[data-character-ready] { visibility:visible; }
@media (scripting: enabled) {
    .refresh-profile-portrait:has(canvas[data-character-name]:not([data-character-failed])) img { visibility:hidden; }
}
@media(max-width:767px) { .refresh-profile-portrait img { width:100px; height:auto; max-height:210px; } }
@media(max-width:420px) { .refresh-profile-portrait img { width:76px; height:auto; max-height:180px; } }

/* Plain frames without ornamental corner marks. */
.refresh-frame::before,.refresh-frame::after,.panel-sidebar::before,.panel-sidebar::after,.refresh-profile-sheet::before,.refresh-profile-sheet::after { content:none; }
.refresh-frame,.panel-sidebar,.refresh-profile-sheet { box-shadow:none; }

/* Navigation groups follow order decades from the AdminCP. */
#navbar { position:relative;z-index:30;overflow:visible; }
#navbar .refresh-nav-item { position:relative;display:flex;align-items:center;list-style:none; }
#navbar .refresh-nav-dropdown-toggle { border:0;background:transparent;color:#758943;padding:14px 9px 14px 0;cursor:pointer; }
#navbar .has-dropdown>a { padding-right:6px; }
#navbar .refresh-nav-dropdown { display:none;position:absolute;top:100%;left:0;min-width:180px;max-width:min(300px,85vw);margin:0;padding:5px 0;background:#fff;border:1px solid #e1e6d9;border-radius:0 0 6px 6px;box-shadow:0 8px 18px #243b2014;z-index:40; }
#navbar .refresh-nav-dropdown li { display:block;width:100%;list-style:none; }
#navbar .refresh-nav-dropdown li a { display:block;padding:11px 15px;border:0;line-height:1.4;overflow-wrap:anywhere; }
#navbar .refresh-nav-dropdown li a:hover,#navbar .refresh-nav-dropdown li a:focus { background:#f3f6eb; }
#navbar .has-dropdown.is-dropdown-open>.refresh-nav-dropdown { display:block; }
@media(hover:hover) and (min-width:761px) { #navbar .has-dropdown:hover>.refresh-nav-dropdown { display:block; } }
@media(max-width:760px) { #navbar .refresh-nav-root { display:block; }#navbar .refresh-nav-item { display:flex;flex-wrap:wrap; }#navbar .refresh-nav-item>a { flex:1; }#navbar .refresh-nav-dropdown-toggle { padding:12px 18px;min-width:44px;min-height:44px; }#navbar .refresh-nav-dropdown { position:static;flex-basis:100%;max-width:100%;box-shadow:none;border:0;border-left:2px solid #dce5c9;border-radius:0;margin:0 14px 8px;background:#f8faf4; }#navbar .refresh-nav-item:not(.is-dropdown-open)>.refresh-nav-dropdown { display:none; } }

#navbar .refresh-nav-root>.refresh-nav-item>a { text-transform:none;font-weight:600;letter-spacing:0; }

/* Readable sidebar labels keep their configured capitalization. */
.panel-sidebar .panel-title,.panel-usercp li>a { text-transform:none;letter-spacing:0; }

/* Open dropdowns through their labels without a visible arrow. */
#navbar .has-dropdown>a { padding-right:12px; }
#navbar .refresh-nav-dropdown-toggle { position:absolute;top:0;left:0;width:100%;height:50px;min-width:0;min-height:0;padding:0;z-index:1; }
#navbar .refresh-nav-dropdown-toggle span { display:none; }
#navbar .refresh-nav-dropdown { z-index:2; }
/* Emerald contour glow and gentle floating, matching the MU V2 logo. */
.refresh-logo-title .refresh-logo {
 animation:refresh-logo-float 5s ease-in-out infinite;
 filter:drop-shadow(0 5px 10px #0008) drop-shadow(0 0 5px #48bc7970);
 transition:filter .35s ease;
}
.refresh-logo-title a::before {
 inset:18% 24%; background:radial-gradient(ellipse,#6fcf9866, #26784833 50%,transparent 72%);
 opacity:.28; transform:scale(1); animation:refresh-logo-breathe 5s ease-in-out infinite;
}
.refresh-logo-title a:hover::before,.refresh-logo-title a:focus-visible::before {
 opacity:.5; transform:scale(1.12); animation:refresh-logo-breathe 5s ease-in-out infinite;
}
.refresh-logo-title a:hover .refresh-logo,.refresh-logo-title a:focus-visible .refresh-logo {
 filter:drop-shadow(0 5px 10px #0008) drop-shadow(0 0 8px #65e39a99);
}
@keyframes refresh-logo-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes refresh-logo-breathe { 0%,100%{filter:blur(17px);scale:1} 50%{filter:blur(20px);scale:1.08} }
@media(prefers-reduced-motion:reduce){
 .refresh-logo-title .refresh-logo,.refresh-logo-title a::before,
 .refresh-logo-title a:hover::before,.refresh-logo-title a:focus-visible::before{animation:none;transition:none}
}
