/*
 * WebEngine Classic Fantasy template
 * A presentation layer for the existing WebEngine CMS modules.
 */
:root {
  --classic-green: #4f861a;
  --classic-green-dark: #315c0c;
  --classic-blue: #173f6c;
  --classic-ink: #183b63;
  --classic-line: #b5c4d2;
  --classic-panel: #f8fafc;
  --classic-shadow: rgba(19, 43, 65, .22);
}

* { box-sizing: border-box; }

html { background: #77838a; }

body {
  margin: 0;
  color: var(--classic-ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  background:
    linear-gradient(rgba(238,243,246,.82), rgba(238,243,246,.9)),
    repeating-linear-gradient(90deg, #849099 0, #849099 2px, #748087 2px, #748087 5px);
  background-attachment: fixed;
}

a { color: #174b80; text-decoration: none; }
a:hover { color: var(--classic-green-dark); text-decoration: underline; }

.global-top-bar {
  width: min(1160px, calc(100% - 28px));
  height: 30px;
  margin: 10px auto 0;
  color: #d8e7f5;
  background: linear-gradient(#18324c, #0c1b2a);
  border: 1px solid #08131e;
  border-radius: 14px 14px 0 0;
}

.global-top-bar-content { width: 100%; max-width: none; padding: 4px 18px; }
.global-top-bar a { color: #fff; }

#header {
  position: relative !important;
  top: auto !important;
  width: min(1160px, calc(100% - 28px));
  height: 330px;
  min-height: 330px;
  margin: 0 auto;
  overflow: hidden;
  background: url("../img/background.jpg") center 42% / cover no-repeat;
  border: 8px solid #f6f8fa;
  border-bottom: 0;
  box-shadow: 0 4px 18px var(--classic-shadow);
}

#header #header { width: 100%; height: 100%; min-height: 0; margin: 0; border: 0; box-shadow: none; background: transparent; overflow: visible; }
#header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(1,11,20,.42));
  pointer-events: none;
}

.header-inner { position: relative; width: 100%; height: 100%; max-width: none; margin: 0; }
.logo-wrapper {
  position: absolute;
  z-index: 3;
  left: 42px;
  top: 28px;
  width: 300px;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.9));
}
.webengine-mu-logo { max-width: 100%; max-height: 125px; object-fit: contain; }

.top-contrib-header,
.rei-pvp-header {
  z-index: 3;
  top: auto;
  bottom: 15px;
  width: 245px;
  min-height: 60px;
  padding: 8px 12px 8px 68px;
  color: #fff;
  background: rgba(4,18,30,.78);
  border: 1px solid rgba(159,210,246,.68);
  border-radius: 5px;
  text-shadow: 0 1px 2px #000;
  backdrop-filter: blur(4px);
}
.top-contrib-header { left: 16px; }
.rei-pvp-header { right: 16px; }
.contrib-personagem, .rei-personagem { left: 8px; bottom: 7px; width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.contrib-img, .rei-pvp-img { display: none; }
.contrib-nome, .contrib-valor, .rei-pvp-nome { position: static; width: auto; text-align: left; }
.contrib-nome::before { content: "Top contribuinte\A"; white-space: pre; color: #a9db66; font-size: 11px; text-transform: uppercase; }
.rei-pvp-nome::before { content: "Rei do PvP\A"; white-space: pre; color: #a9db66; font-size: 11px; text-transform: uppercase; }

.header-info-container {
  position: relative;
  z-index: 5;
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  background: linear-gradient(#1a1b1c, #050505);
  border: 8px solid #f6f8fa;
  border-top: 0;
  border-bottom-width: 6px;
  box-shadow: 0 4px 18px var(--classic-shadow);
}
.header-info { width: 100%; max-width: none; padding: 0; }
.headersito { min-height: 48px; }
.headersito ul { display: flex; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.headersito ul li { margin: 0; border-left: 1px solid #2c2c2c; }
.headersito ul li:last-child { border-right: 1px solid #2c2c2c; }
.headersito ul li a {
  display: block;
  min-height: 48px;
  padding: 12px 18px 8px;
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px #000;
}
.headersito ul li a br { display: none; }
.headersito ul li a:hover { color: #233b10 !important; text-decoration: none; background: linear-gradient(#fff, #dfe7eb); }

#container {
  width: min(1160px, calc(100% - 28px));
  max-width: none;
  min-height: 600px;
  margin: 0 auto;
  padding: 18px 16px 32px;
  background: linear-gradient(90deg, #f8fafb, #fff 48%, #f6f8fa);
  border: 1px solid #fdfdfd;
  border-top: 0;
  box-shadow: 0 7px 20px var(--classic-shadow);
}
#content { width: 100%; max-width: none; padding: 0; }
#content > .row { display: flex; align-items: flex-start; }
#content > .row > .col-lg-8 { order: 2; width: 75%; }
#content > .row > .col-lg-4 { order: 1; width: 25%; }

.card, .panel, .panel-news, .panel-general, .panel-sidebar {
  margin-bottom: 13px;
  color: var(--classic-ink);
  background: linear-gradient(#fff, #f4f7f9);
  border: 1px solid var(--classic-line) !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px rgba(22,52,77,.08);
  overflow: hidden;
}
.card-header, .panel-heading, .bg-primary, .table-dark {
  color: #233f5c !important;
  background: linear-gradient(#fbfcfd, #e6edf2) !important;
  border: 0 !important;
  border-bottom: 1px solid #c4d0d9 !important;
  font-weight: 700;
}
.card-header::before, .panel-heading::before { content: "◆"; margin-right: 7px; color: var(--classic-green); font-size: 12px; }
.card-header img { max-width: 18px; margin-right: 6px; }
.card-body { color: var(--classic-ink); background: transparent; }
.card-footer { background: #eef3f6; border-top: 1px solid #d1dbe2; }
.table { margin: 0; color: var(--classic-ink); }
.table > :not(caption) > * > * { padding: .48rem .5rem; color: inherit; background: transparent; border-color: #dde5eb; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: #edf3f7; --bs-table-accent-bg: transparent; }

.btn-primary, .btn-outline-primary:hover {
  color: #fff !important;
  background: linear-gradient(#669f2c, #3c7310) !important;
  border-color: #315f0d !important;
}
.btn-outline-primary { color: var(--classic-green-dark); border-color: #5d902b; }
.text-primary { color: var(--classic-green-dark) !important; }
.border-primary { border-color: #5d902b !important; }

.sidebar-banner img { width: 100%; height: auto; border: 1px solid #8d9eab; border-radius: 5px; }
.swiper-container, .swiper-slider { border-radius: 5px; overflow: hidden; }
.panel-news .panel-body { padding: 0; }

.footer {
  width: min(1160px, calc(100% - 28px));
  max-width: none;
  margin: 0 auto 22px;
  color: #5c7080;
  background: #f5f7f8;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 7px 20px var(--classic-shadow);
}
.footer a { color: #315f0d !important; }
.footer .container { max-width: 1080px; }

/* Keep every WebEngine module readable inside the light classic skin. */
.content, .module, .module-content, .tab-content, .modal-content, .dropdown-menu { color: var(--classic-ink); }
input, select, textarea, .form-control {
  color: #17324d !important;
  background-color: #fff !important;
  border-color: #adbdc9 !important;
}
.form-control:focus { border-color: #699d38 !important; box-shadow: 0 0 0 .2rem rgba(83,136,28,.16); }

@media (max-width: 991.98px) {
  #header { height: 260px; min-height: 260px; background-position: 55% center; }
  .logo-wrapper { left: 24px; top: 22px; width: 250px; }
  #content > .row > .col-lg-8, #content > .row > .col-lg-4 { width: 100%; }
  #content > .row > .col-lg-8 { order: 1; }
  #content > .row > .col-lg-4 { order: 2; }
  .headersito ul li a { padding-inline: 12px; }
}

@media (max-width: 640px) {
  .global-top-bar, #header, .header-info-container, #container, .footer { width: calc(100% - 12px); }
  .global-top-bar { height: auto; min-height: 30px; }
  #header { height: 205px; min-height: 205px; border-width: 5px; background-position: 57% center; }
  .logo-wrapper { left: 12px; top: 12px; width: 190px; }
  .top-contrib-header { left: 8px; bottom: 8px; width: 205px; }
  .rei-pvp-header { display: none; }
  .header-info-container { border-width: 0 5px 5px; }
  .headersito ul li { flex: 1 1 33.333%; text-align: center; }
  .headersito ul li a { min-height: 43px; padding: 11px 6px 7px; font-size: 12px; }
  #container { padding: 10px 8px 22px; }
  .footer section .row { gap: 10px; }
}

/* Complete classic portal layout */
.classic-page-shell { width: min(1180px,calc(100% - 18px)); margin: 9px auto 20px; background:#f8fafb; border:1px solid #d9e0e5; border-radius:15px; box-shadow:0 4px 22px rgba(16,35,52,.38); overflow:hidden; }
.classic-hero { position:relative; height:370px; margin:14px 14px 0; background:#10283b; border-radius:11px 11px 0 0; overflow:hidden; }
.classic-hero-art { position:absolute; z-index:0; inset:31px 0 0; width:100%; height:calc(100% - 31px); object-fit:cover; object-position:center 43%; display:block; }
.classic-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(1,12,24,.35),transparent 38%,rgba(0,8,16,.18)); pointer-events:none; }
.classic-account-bar { position:relative; z-index:3; display:flex; justify-content:space-between; align-items:center; min-height:31px; padding:5px 18px; color:#dcebf7; background:linear-gradient(#18334d,#091926); font-size:12px; text-transform:uppercase; }
.classic-account-bar a { color:#fff; font-weight:700; }.classic-account-bar span { margin:0 9px; }.classic-account-bar .webengine-language-switcher { margin:0; }
.classic-brand { position:absolute; z-index:2; top:54px; left:36px; display:flex; flex-direction:column; align-items:flex-start; filter:drop-shadow(0 3px 2px #000); }
.classic-brand img { width:310px; max-height:115px; object-fit:contain; object-position:left center; }.classic-brand span { margin:-7px 0 0 82px; color:#fff; font-weight:700; font-size:17px; text-shadow:0 2px 2px #000; }
.classic-main-nav { margin:0 14px; background:linear-gradient(#171819,#020202); border-bottom:1px solid #111; }
.classic-main-nav ul { display:flex; justify-content:flex-end; flex-wrap:wrap; margin:0; padding:0; list-style:none; }.classic-main-nav li { border-left:1px solid #2b2b2b; }
.classic-main-nav a { display:block; padding:14px 20px; color:#fff; font-weight:700; text-decoration:none; }.classic-main-nav a br { display:none; }.classic-main-nav a:hover { color:#203d0c; background:linear-gradient(#fff,#e1e7ea); }
.classic-layout { display:grid; grid-template-columns:275px minmax(0,1fr); gap:16px; padding:18px 14px 30px; align-items:start; }
.classic-sidebar { min-width:0; }.classic-main { min-width:0; }
.classic-side-panel,.classic-feature-panel,.classic-ranking-card { margin:0 0 10px; border:1px solid #acbdca; border-radius:6px; background:linear-gradient(90deg,#fff,#f5f8fa); overflow:hidden; box-shadow:0 1px 2px rgba(20,48,72,.07); }
.classic-side-panel h2,.classic-feature-panel h2,.classic-ranking-card h3 { margin:0; padding:8px 12px; color:#29445f; background:linear-gradient(#fbfcfd,#e7edf1); border-bottom:1px solid #c3cfd8; font-size:17px; font-weight:700; }
.classic-side-panel h2 span,.classic-feature-panel h2 span,.classic-ranking-card h3 span { color:#4d8618; margin-right:7px; }
.classic-side-panel ul { margin:0; padding:7px 10px 9px; list-style:none; }.classic-side-panel li { margin:1px 0; }.classic-side-panel li a { display:flex; gap:8px; align-items:center; padding:3px 2px; color:#234e78; text-decoration:none; }.classic-side-panel li a:hover { color:#4a7f17; padding-left:5px; }.classic-side-panel li a span { display:inline-grid; place-items:center; width:17px; height:17px; border-radius:3px; color:#fff; background:#4d8618; font-weight:700; }
.classic-login form { padding:11px; }.classic-login input { width:100%; margin-bottom:7px; padding:8px 9px; border:1px solid #afbdc8; border-radius:4px; }.classic-login button { padding:7px 15px; color:#fff; background:linear-gradient(#639c29,#3d7211); border:1px solid #315d0d; border-radius:4px; font-weight:700; }.classic-forgot { float:right; padding-top:7px; font-size:12px; }
.classic-main > .panel,.classic-main > .card,.classic-main .panel-news { border:1px solid #acbdca!important; border-radius:6px!important; background:#fff; overflow:hidden; }
.classic-main .panel-heading,.classic-main .card-header { color:#3d7114!important; background:linear-gradient(#fff,#edf2f5)!important; border-bottom:1px solid #c7d1d9!important; }.classic-main .panel-body,.classic-main .card-body { color:#173f68; }
.classic-updates { position:relative; min-height:150px; }.classic-updates ul { margin:0; padding:14px 35px 14px 55px; }.classic-updates li { margin:6px 0; }.classic-updates li::marker { color:#4c8517; }.classic-arrow-link { position:absolute; right:17px; bottom:12px; color:#254f78; font-weight:700; }.classic-arrow-link::before { content:'→ '; color:#4d8618; }
.classic-siege-banner { position:relative; display:block; height:155px; margin:16px 2px; border:3px solid #fff; outline:1px solid #9fb0bc; border-radius:5px; overflow:hidden; background:#06131d; }.classic-siege-banner img { width:100%; height:100%; object-fit:cover; filter:brightness(.55) saturate(1.1); }.classic-siege-banner span { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; color:#fff; text-shadow:0 2px 3px #000; }.classic-siege-banner strong { font-family:Georgia,serif; font-size:38px; letter-spacing:2px; }.classic-siege-banner small { color:#4fe0ec; font-size:15px; font-weight:700; }
.classic-rankings-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }.classic-ranking-card { margin:0; min-height:230px; }.classic-ranking-card h3 { font-size:14px; color:#477919; }.classic-ranking-card ol { margin:0; padding:10px 10px 4px 35px; }.classic-ranking-card li { padding:3px 0; color:#214c76; }.classic-ranking-card li::marker { color:#1d4165; }.classic-ranking-card li span { display:inline-block; max-width:68%; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; }.classic-ranking-card li strong { float:right; color:#4c8517; font-weight:500; }.classic-ranking-card .classic-empty { padding:25px 5px; color:#71808c; }.classic-more { display:block; padding:7px; text-align:center; color:#173f68; }
.classic-gallery { margin-top:16px; }.classic-gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; padding:16px; }.classic-gallery-grid img { width:100%; height:130px; object-fit:cover; border:1px solid #728797; }
.classic-footer { padding:20px; color:#617383; text-align:center; background:#f5f7f8; border-top:1px solid #d4dde3; font-size:12px; }.classic-footer a { margin:0 8px; color:#315f0d; }.classic-footer p { margin:8px 0 0; }
@media(max-width:980px){.classic-layout{grid-template-columns:230px minmax(0,1fr)}.classic-rankings-grid{grid-template-columns:repeat(2,1fr)}.classic-hero{height:300px}.classic-brand img{width:250px}}
@media(max-width:720px){.classic-page-shell{width:calc(100% - 8px);margin:4px auto}.classic-hero{height:220px;margin:5px 5px 0;background-position:58% center}.classic-account-bar{padding:4px 8px}.classic-brand{top:45px;left:14px}.classic-brand img{width:190px}.classic-brand span{display:none}.classic-main-nav{margin:0 5px}.classic-main-nav ul{justify-content:center}.classic-main-nav li{flex:1 1 33%;text-align:center}.classic-main-nav a{padding:11px 5px;font-size:12px}.classic-layout{display:flex;flex-direction:column;padding:10px 6px}.classic-main{order:1;width:100%}.classic-sidebar{order:2;width:100%}.classic-rankings-grid{grid-template-columns:repeat(2,1fr)}.classic-gallery-grid{grid-template-columns:repeat(2,1fr)}.classic-siege-banner strong{font-size:25px}}

/* News list and player panel refinements */
.classic-page-shell { width:min(1110px,calc(100% - 18px)); }
.classic-hero { height:340px; }
.classic-layout { grid-template-columns:260px minmax(0,1fr); gap:14px; padding-top:14px; }
.classic-news-panel { margin:0 0 10px; border:1px solid #acbdca; border-radius:6px; background:#fff; overflow:hidden; }
.classic-news-panel > h2 { margin:0; padding:9px 13px; color:#477b17; background:linear-gradient(#fff,#edf2f5); border-bottom:1px solid #c4d0d8; font-size:19px; font-weight:700; }
.classic-news-panel > h2 span { margin-right:8px; color:#4d8618; }
.classic-news-list { padding:8px 13px 10px; }
.classic-news-panel .panel-youtube,.classic-news-panel .panel-youtube + br,.classic-news-panel .panel-youtube + br + br,.classic-news-panel .panel-youtube + br + br + br { display:none!important; }
.classic-news-list .panel-news { margin:0!important; min-height:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent!important; overflow:visible!important; }
.classic-news-list .panel-news .panel-heading { min-height:0!important; margin:0!important; padding:4px 6px!important; color:#214e78!important; background:transparent!important; border:0!important; border-radius:0!important; }
.classic-news-list .panel-news .panel-heading::before { content:'›'; display:inline-grid; place-items:center; float:left; width:14px; height:14px; margin:4px 9px 0 0; color:#fff; background:#4d8618; border-radius:2px; font-size:13px; line-height:1; }
.classic-news-list .panel-news .panel-title { margin:0!important; padding:0!important; min-height:0!important; font-size:14px!important; line-height:22px!important; font-weight:400!important; }
.classic-news-list .panel-news .panel-title a { display:block; color:#214e78!important; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.classic-news-list .panel-news .panel-title a:hover { color:#4d8618!important; text-decoration:underline; }
.classic-news-list .panel-news .panel-body { padding:10px!important; color:#173f68!important; background:#fff!important; }
.classic-news-list .panel-news .panel-footer { padding:7px 10px!important; font-size:12px!important; }
.classic-side-panel > ul { padding:6px 10px 8px; }
.classic-side-panel > ul > li { display:flex!important; align-items:center!important; min-height:25px!important; width:100%; line-height:1.25!important; }
.classic-side-panel > ul > li > img { position:static!important; width:18px!important; height:18px!important; margin:0 8px 0 0!important; padding:0!important; object-fit:contain; }
.classic-side-panel > ul > li > a { flex:1; padding:3px 1px!important; color:#234e78!important; font-weight:400!important; }
.classic-side-panel > ul > li > a:hover { color:#4d8618!important; }
.classic-side-panel h2 { padding:7px 11px; font-size:15px; }
.classic-updates { min-height:135px; }
@media(max-width:980px){.classic-page-shell{width:calc(100% - 12px)}.classic-layout{grid-template-columns:230px minmax(0,1fr)}.classic-hero{height:285px}}
.classic-staff-panel li { display:flex!important; align-items:center!important; gap:7px; }
.classic-staff-panel li > a { flex:1; }
.classic-staff-status { flex:0 0 10px!important; width:10px!important; height:10px!important; margin:0 3px 0 6px!important; padding:0!important; border-radius:50%!important; border:1px solid rgba(0,0,0,.28); box-shadow:0 0 4px currentColor; }
.classic-staff-status.is-online { color:#21a947; background:#2bd45b!important; }
.classic-staff-status.is-offline { color:#b82d2d; background:#df4040!important; }
.classic-staff-empty { padding:8px 2px; color:#6f7f8d; }
.rankings_menu a:hover,.rankings_menu a:focus,.rankings_menu a.active { color:#fff!important; background:rgba(0,0,0,.76)!important; border-color:rgba(0,0,0,.82)!important; text-decoration:none!important; }
.rankings-table tbody tr:hover td,.table tbody tr:hover td { color:#e9f0f5!important; background:rgba(0,0,0,.68)!important; }
.classic-main > .panel-news .panel-heading a { color:#214e78!important; text-shadow:none!important; }
.classic-main > .panel-news .panel-heading a:hover { color:#4d8618!important; }
.classic-main > .panel-news .panel-title { margin:0!important; padding:2px 0!important; color:#214e78!important; font-size:14px!important; line-height:22px!important; }
.classic-main > .panel-news { margin-bottom:10px!important; }
.classic-main > .panel-news .panel-body { color:#173f68!important; background:#fff!important; overflow:hidden; }
.classic-main > .panel-news .panel-body img { max-width:100%!important; height:auto!important; }
html { min-height:100%; background-color:#080b0d!important; background-image:var(--classic-page-background)!important; background-position:center top!important; background-size:cover!important; background-attachment:fixed!important; background-repeat:no-repeat!important; }
body { min-height:100vh; background:transparent!important; }
/* Classic portrait rankings and server status */
.classic-rankings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.classic-ranking-card{background:#fff;border-radius:10px;box-shadow:0 3px 12px #183b6320}
.classic-ranking-card h3{padding:14px 8px;color:#1680ec;background:#fff;text-align:center;text-transform:uppercase;font-size:16px}
.classic-ranking-card ol{counter-reset:classic-place;list-style:none;padding:8px;margin:0}
.classic-ranking-card li:not(.classic-empty){counter-increment:classic-place;display:flex;align-items:center;gap:7px;min-height:68px;padding:5px 0}
.classic-ranking-card li:not(.classic-empty)::before{content:counter(classic-place) '°';font-weight:bold;color:#a17918;width:18px;flex-shrink:0}
.classic-ranking-card li:not(.classic-empty):first-child{background:#e5f2ff}
.classic-avatar{display:block;flex:0 0 50px;width:50px;height:50px}
.classic-portrait{width:50px;height:50px;border:2px solid #efc500;border-radius:50%;object-fit:cover;box-shadow:0 1px 5px #0004}
.classic-ranking-card li span{flex:1;min-width:0;font-size:12px;max-width:none}
.classic-ranking-card li strong{float:none;font-size:11px;max-width:30%;overflow-wrap:anywhere}
.classic-ranking-card .classic-guild-icon{flex:0 0 50px;font-size:32px;text-align:center;color:#a17918}
.classic-server-banner{position:absolute;z-index:3;left:28px;bottom:24px;padding:12px 34px;border-radius:40px;border:1px solid #ffffff30;background:#281c1deb;box-shadow:0 4px 15px #0004;text-align:center}
.classic-server-banner small{display:block;color:#c5bdbd;font-size:10px;font-weight:bold;letter-spacing:1px}
.classic-server-banner strong{display:block;font-size:21px;letter-spacing:2px}
.classic-server-banner .is-online{color:#39ff14}.classic-server-banner .is-offline{color:#ff6464}
@media(max-width:1050px){.classic-rankings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.classic-layout{display:flex}.classic-server-banner{left:14px;bottom:12px;padding:8px 22px}.classic-server-banner strong{font-size:16px}}
@media(max-width:440px){.classic-rankings-grid{grid-template-columns:minmax(0,1fr)}}
/* Readable rankings and status below the staff panel */
html { min-width:0!important; }
.classic-main.classic-rankings-page { padding:16px; border:1px solid #9fb7ca; border-top:4px solid #477b17; border-radius:9px; background:linear-gradient(135deg,#fff,#f3f7fa); box-shadow:0 3px 12px rgba(24,59,99,.13); overflow-x:auto; }
.classic-rankings-page .page-title { display:flex; align-items:center; justify-content:center; gap:14px; margin:0 0 18px; padding:5px 0 14px; text-align:center; color:#173f68; font-family:"Trebuchet MS",Arial,sans-serif; font-size:25px; font-weight:700; }
.classic-rankings-page .page-title::before,.classic-rankings-page .page-title::after { content:""; flex:1; height:2px; background:linear-gradient(90deg,transparent,#94b66a); }
.classic-rankings-page .page-title::after { transform:rotate(180deg); }
.classic-rankings-page .rankings_menu { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; width:100%; margin:0 0 18px; padding:12px; border:1px solid #ccd8e1; border-radius:7px; background:#eaf0f5; }
.classic-rankings-page .rankings_menu a { display:flex; align-items:center; justify-content:center; flex:1 1 130px; max-width:210px; min-height:38px; margin:0; padding:8px 9px; border:1px solid #aabecf; border-bottom:3px solid #7597b3; border-radius:5px; background:linear-gradient(#fff,#e4edf4); color:#173f68!important; text-align:center; font-family:"Trebuchet MS",Arial,sans-serif; font-size:13px; font-weight:700; line-height:1.35; text-decoration:none; transition:background .15s,border-color .15s; }
.classic-rankings-page .rankings_menu a:hover,.classic-rankings-page .rankings_menu a:focus,.classic-rankings-page .rankings_menu a.active { color:#fff!important; background:linear-gradient(#426b90,#214765)!important; border-color:#244d70!important; border-bottom-color:#a1c667!important; }
.classic-rankings-page table { width:100%; font-size:14px; }
.classic-rankings-page table thead td,.classic-rankings-page table thead th { background:#315f84!important; color:#fff!important; padding:10px 7px; }
.classic-rankings-grid .classic-ranking-card h3 { border-top:3px solid #7597b3; border-bottom:1px solid #b9ccd9; background:linear-gradient(#fff,#e8f0f5); text-align:center; }
@media(max-width:720px){.classic-main.classic-rankings-page{padding:12px 8px}.classic-rankings-page .page-title{font-size:22px}.classic-rankings-page .rankings_menu{padding:8px;gap:6px}}
.classic-sidebar .classic-server-banner { position:static; width:100%; margin:0 0 10px; padding:16px 12px; border-radius:6px; border:1px solid #acbdca; background:linear-gradient(#26394b,#142331); box-shadow:0 1px 3px #183b6320; }
.classic-sidebar .classic-server-banner small { font-family:"Trebuchet MS",Arial,sans-serif; font-size:13px; line-height:1.5; color:#e0e8ef; letter-spacing:.5px; }
.classic-sidebar .classic-server-banner strong { font-size:22px; line-height:1.5; }
.classic-rankings-grid .classic-ranking-card { font-family:"Trebuchet MS",Arial,sans-serif; font-size:15px; line-height:1.5; }
.classic-rankings-grid .classic-ranking-card h3 { font-family:inherit; font-size:17px; line-height:1.4; font-weight:700; }
.classic-rankings-grid .classic-ranking-card li:not(.classic-empty) { gap:6px; min-height:70px; }
.classic-rankings-grid .classic-ranking-card li:not(.classic-empty)::before { font-size:14px; }
.classic-rankings-grid .classic-ranking-card li span:not(.classic-guild-icon) { font-size:15px; font-weight:500; line-height:1.4; white-space:normal; overflow:visible; overflow-wrap:anywhere; text-overflow:clip; }
.classic-rankings-grid .classic-ranking-card li strong { flex-shrink:0; font-size:14px; line-height:1.4; font-weight:600; }
.classic-rankings-grid .classic-ranking-card .classic-empty { font-size:14px; line-height:1.5; }
.classic-rankings-grid .classic-ranking-card .classic-more { font-size:14px; padding:10px; }

/* Server video only below the homepage news list. */
.classic-video-panel{margin:14px 0;border:1px solid #acbdca;border-radius:7px;background:#fff;overflow:hidden}
.classic-video-panel h2{margin:0;padding:10px 13px;color:#477b17;background:linear-gradient(#fff,#edf2f5);border-bottom:1px solid #c4d0d8;font-size:17px;font-weight:700}
.classic-video-panel iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;background:#000}

.classic-language { display:flex; align-items:center; gap:6px; margin:0; text-transform:none; }
.classic-language select { max-width:135px; padding:2px 4px; color:#122a3c; background:#f1f6fa; border:1px solid #829eb3; border-radius:3px; }
.classic-country-flag { width:20px; height:auto; vertical-align:middle; }
