/* Theme for the existing Eternal PHP panel and its AJAX fragments. */
:root {
  --hk-base: #0a0f18;
  --hk-panel: #111a29;
  --hk-edge: #29374b;
  --hk-text: #f0e9e2;
  --hk-muted: #adb9cc;
  --hk-gold: #edc481;
}
body { background: radial-gradient(ellipse at 55% 0%, #253247 0, var(--hk-base) 45rem); color: var(--hk-text); }
.top-menu { background: linear-gradient(180deg,#292127,#151319 56%,#0e0b0f) !important; border-bottom: 2px solid #973845 !important; box-shadow: 0 8px 22px #0008; }
.top-menu > .container { max-width: 1450px; }
.top-menu .nav-brand img { display: block; width: 77px; height: 56px; max-height: none !important; object-fit: contain; }
.top-menu .menu-list { gap: clamp(2px,.45vw,8px); align-items: center; }
.top-menu .menu-list > li > a { white-space: nowrap; min-height: 40px; padding: 7px clamp(7px,.87vw,13px); border: 1px solid transparent; border-radius: 6px; color: #e2d9d4; text-transform: none; letter-spacing: .02em; }
.top-menu .menu-list > li > a > i { color: #b9a9a0; }
.top-menu .menu-list > li > a:hover, .top-menu .menu-list > li > a[aria-current='page'], .top-menu .menu-list > li:focus-within > a { border-color: #a7566090; background: linear-gradient(#74323e,#391b25); color: #fff2e8; }
.top-menu .menu-list > li > a:hover i, .top-menu .menu-list > li > a[aria-current='page'] i { color: #f0c98a; }
.top-menu .menu-list .menu-pus a, .top-menu .menu-list .menu-epin a { color: #ebc68e; }
.top-menu ul .dropdown { background: #1a151b; border: 1px solid #665045; border-top-color: #d4a66b; border-radius: 7px; padding: 4px; }
.top-menu ul .dropdown li a { color: #ecdfd3; border: 0; border-radius: 4px; }
.top-menu .menu-user .user-btn { min-height: 36px; border-radius: 6px; }
.top-menu .menu-user .register { background: linear-gradient(135deg,#f2d6a1,#d4a35d); color: #23190f; border-color: #eac792; }
#mobileNavContent { background: #1b161d; border-color: #983947; }
.top-menu .menu-list > .has-dropdown:focus-within > .dropdown { display: flex; opacity: 1; visibility: visible; transform: none; }
.top-menu :is(a,button):focus-visible { outline: 2px solid var(--hk-gold); outline-offset: 2px; }

body > .hero-slider { box-sizing: border-box; width: 100%; height: 450px; margin: 0 0 30px; background: #111a28; }
body > .hero-slider .slide-overlay { background: linear-gradient(90deg,#080e19ef 0%,#0a131da6 38%,#1118251a 82%),linear-gradient(0deg,#060910ca,transparent 48%); }
body > .hero-slider .slide-content { left: clamp(28px,6.2vw,92px); bottom: 16%; max-width: min(620px,80%); }
body > .hero-slider .slide-title { color: #f7d69e !important; font: 700 clamp(32px,5vw,65px)/1.05 Georgia,'Times New Roman',serif; text-transform: none; letter-spacing: -.045em; }
body > .hero-slider .slide-desc { color: var(--hk-text); max-width: 45ch; font-size: clamp(14px,1.4vw,19px); line-height: 1.5; }
body > .hero-slider .slide-btn, .main-content .news-widget-footer a { background: linear-gradient(135deg,#efd5a0,#cea15e); border: 1px solid #f1c78b; border-radius: 6px; color: #241a0e; }
body > .hero-slider .slider-nav { background: #161b26dc; color: var(--hk-gold); border: 1px solid #a48355a0; border-radius: 7px; }

body > .container:has(> .main-content) { box-sizing: border-box; width: min(calc(100% - 48px),1392px); max-width: none; padding: 0; }
body > .container > .main-content { display: grid; grid-template-columns: minmax(195px,.9fr) minmax(0,2.9fr) minmax(240px,1.05fr); gap: 18px; margin-top: 21px; }
.main-content > :is(.sidebar,.center-area) { width: auto; min-width: 0; max-width: none; padding-inline: 0; }
.main-content > .sidebar .widget, .main-content > .sidebar .widget-body { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
.main-content .sidebar .widget-giveaway-btn, .main-content .sidebar .partner-glass { max-width: 100%; box-sizing: border-box; }
.main-content .widget { background: linear-gradient(155deg,#182437,var(--hk-panel) 52%); border: 1px solid var(--hk-edge); border-radius: 9px; box-shadow: 0 5px 15px #0003; }
.main-content .widget-title { color: #f7e8d2; background: #182335; letter-spacing: .035em; text-transform: none; border-radius: 8px 8px 0 0; }
.main-content .widget-title::after { background: linear-gradient(90deg,#8e6744,#34455a 50%,transparent); }
.main-content .widget-title i { color: var(--hk-gold); text-shadow: none; }
.main-content .rank-table td { border-color: #33425773; padding-block: 8px; }
.main-content .rank-table img { opacity: 1; }
.main-content .rank-table tr:nth-child(odd) td { background: #26374c3b; }
.main-content .rank-table tr:hover td { background: #644f354d; }
.main-content .rank-table a { color: #eee9e0; }
.main-content .rank-table td:last-child { color: #dfbd86; }
.main-content .rank-footer { background: #121d2c; border-top: 1px solid var(--hk-edge); }
.main-content :is(.rank-footer,.news-widget-footer) a { color: var(--hk-gold); }
.main-content .news-widget-footer a { color: #241a0e; }
.main-content .server-wide-bar { background: linear-gradient(145deg,#1a283c,#101923); border: 1px solid #374762; border-radius: 9px; box-shadow: none; }
.main-content .sw-label { color: var(--hk-muted); }
.main-content .sw-value { color: var(--hk-text); }
.main-content .ann-item, .main-content .news-card-modern { background: #182338; border-color: var(--hk-edge); border-radius: 7px; }
.main-content .ann-item:hover { background: #22314a; }
.main-content .ann-date-box { border-color: #705938; }
.main-content .profile-header-modern { background: radial-gradient(ellipse at 85% 5%,#374765 0%,#162236 45%,#101827 78%); border: 1px solid #46526a; border-radius: 10px; }
.main-content .ph-nick { color: #f1d5a5; }
.main-content .np-modern-container { border-color: #606476; }
.site-footer { background: #0b111b; border-top: 1px solid #3b465b; }

/* Subpages have their own late style rules. Scope the theme to the content roots. */
.center-area .widget > .widget-title { padding: 13px 16px; }
.center-area .widget > .widget-body { padding: clamp(10px,2vw,18px); }
#downloads-target .dl-card {
  box-sizing: border-box;
  background: linear-gradient(145deg,#1c2a40,#111b2a);
  border-color: var(--hk-edge);
  padding: clamp(12px,2vw,20px);
}
#downloads-target .dl-card:hover { transform: translateY(-2px); border-color: #a98153; box-shadow: 0 8px 20px #0004; }
#downloads-target .dl-info h3 { color: var(--hk-text); text-transform: none; text-shadow: none; }
#downloads-target .dl-meta { color: var(--hk-muted); flex-wrap: wrap; gap: 6px 12px; }
#downloads-target .dl-icon-box { flex-shrink: 0; border-width: 1px; }
#downloads-target .dl-btn {
  box-sizing: border-box;
  background: linear-gradient(135deg,#f2d5a1,#cea15e);
  color: #261b0f;
  justify-content: center;
  border-radius: 6px;
  padding-inline: clamp(12px,2vw,23px);
}
#downloads-target .dl-btn:hover { transform: none; box-shadow: 0 4px 15px #0005; }
.center-area :is(.filter-btn,.pg-btn,.drop-tab-btn) { background: #172235; border-color: #364963; color: var(--hk-text); border-radius: 6px; }
.center-area :is(.filter-btn,.pg-btn,.drop-tab-btn):hover,
.center-area :is(.filter-btn,.drop-tab-btn).active { background: #483829; border-color: #b68c56; color: #fff0d9; transform: none; box-shadow: none; }
.center-area .filter-btn.btn-karus.active { background: #20486c; border-color: #558dbc; }
.center-area .filter-btn.btn-human.active { background: #6c2b35; border-color: #a95460; }
.center-area .full-rank-table th { background: #1a283b; color: var(--hk-text); border-color: #3b4c65; }
.center-area .full-rank-table td { color: var(--hk-text); border-color: #33425773; }
.center-area .full-rank-table tr:nth-child(odd) td { background: #26374c3b; }
.center-area .full-rank-table tr:hover td { background: #644f354d; }
#events-target .drop-tabs { flex-wrap: wrap; gap: 8px; }
#events-target .drop-tab-btn { padding: 9px 14px; }
#events-target .ev-card-simple { background: #141f30; border-color: var(--hk-edge); margin-bottom: 0; }
#events-target .ev-card-simple:hover { border-color: #52647f; transform: none; box-shadow: none; }
#events-target .ev-card-header { background: #1a283b; border-color: #3b4c65; gap: 8px; }
#events-target .ev-card-body { color: var(--hk-muted); }

/* Keep the actual profile slots and their tooltip handlers in the game frames. */
#profile-target .inventory-container.hk-profile-inventory { display: flex; align-items: flex-start; justify-content: center; position: relative; max-width: 606px; width: 100%; height: auto; margin: auto; border: 0; box-shadow: none; background: radial-gradient(ellipse at 65% 16%,#1e2a3b,#101624 75%); }
.hk-inv-main, .hk-inv-cospre { position: relative; flex-shrink: 0; container-type: inline-size; }
.hk-inv-main { width: 66.17%; aspect-ratio: 401/617; }
.hk-inv-cospre { width: 35.48%; margin-right: -1.65%; aspect-ratio: 215/576; }
.hk-profile-inventory .hk-inv-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.hk-profile-inventory :is(.hk-inv-label,.hk-slot) { position: absolute; }
.hk-profile-inventory .hk-slot { box-sizing: border-box; border: 0; background: transparent; }
.hk-profile-inventory .hk-slot[data-tooltip] { border-radius: 4px; }
.hk-profile-inventory .hk-slot[data-tooltip]:hover { outline: 1px solid var(--hk-gold); box-shadow: none; }
.hk-profile-inventory .hk-slot img { width: 100%; height: 100%; object-fit: contain; border-radius: 3px; }
.hk-profile-inventory .hk-inv-label { top: 6.9%; left: 24%; width: 51%; height: 5%; display: grid; place-items: center; color: #fff0af; font: 700 clamp(10px,3.2cqw,15px)/1 'Segoe UI',sans-serif; text-shadow: 1px 1px #4a2d12; }
.hk-profile-inventory .hk-cospre-title { position: absolute; inset: 5% 11% auto 8%; color: #f1dbac; font: 700 clamp(10px,6cqw,14px)/1 'Segoe UI',sans-serif; letter-spacing: .06em; text-align: center; }

@media(max-width: 1100px) {
  body > .container > .main-content { gap: 12px; }
  .top-menu .menu-list > li > a { gap: 5px; font-size: 12px; }
}
@media(max-width: 900px) {
  body > .hero-slider { height: 300px; }
  body > .container:has(> .main-content) { width: calc(100% - 26px) !important; }
  body > .container > .main-content { display: flex !important; flex-direction: column !important; gap: 14px; }
  .main-content > .center-area { order: -1 !important; }
  .main-content > .sidebar { margin-top: 0 !important; }
}
@media(max-width: 600px) {
  .top-menu .nav-brand img { width: 60px; height: 47px; }
  body > .hero-slider .slide-content { left: 6%; max-width: 88%; bottom: 12%; text-align: left; }
  body > .hero-slider .slide-title { font-size: clamp(28px,8.3vw,42px); }
  .main-content .server-wide-bar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 8px 5px; }
  .center-area .full-rank-table :is(th,td) { padding: 6px 3px; }
  .main-content .sw-label { font-size: 9px; }
  .main-content .sw-value { font-size: 11px; }
  #profile-target .inventory-container.hk-profile-inventory { flex-direction: column; align-items: center; }
  .hk-inv-main { order: -1; width: min(100%,401px); }
  .hk-inv-cospre { width: min(75%,215px); margin: -24px 0 0; }
}
@media(prefers-reduced-motion:reduce) { .top-menu a { transition: none; } }
