﻿/* ═══════════════════════════════════════════════════════════════════
   Site2.css — Modern MMORPG theme for CruelKal
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --gold:        #c9a227;
    --gold-light:  #f0c84a;
    --gold-dim:    #7a5c10;
    --crimson:     #8b1a1a;
    --crimson-lit: #c0392b;
    --cyan:        #27a8db;
    --cyan-lit:    #7dd6f5;
    --bg-dark:     #090c14;
    --bg-panel:    rgba(6, 9, 20, 0.88);
    --bg-panel2:   rgba(12, 16, 32, 0.82);
    --border:      rgba(201, 162, 39, 0.28);
    --border-lit:  rgba(201, 162, 39, 0.65);
    --text:        #d4cfc0;
    --text-bright: #f0ead8;
    --online-clr:  #4caf50;
    --offline-clr: #e53935;
}

html { position: relative; min-height: 100%; }

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    /* FIX 1 — bumped from 14px → 15px for better readability */
    font-size: 15px;
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(rgba(4,6,14,0.65), rgba(4,6,14,0.65)), url('../Images/background/wallpaper10.jpg') no-repeat center center fixed;
    background-size: cover;
}

a                    { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover, a:focus     { color: #fff; text-decoration: none !important; }

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 7px; }
::-webkit-scrollbar-track    { background: rgba(0,0,0,.5); }
::-webkit-scrollbar-thumb    { background: var(--gold-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════════════
   LAYOUT — full-width flex canvas
   ══════════════════════════════════════════════════════════════════ */
.mk-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Top header bar ──────────────────────────────────────────────── */
.mk-header {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 20px 0 18px;
    z-index: 10;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            rgba(2,3,8,1)    0%,
            rgba(6,9,20,.97) 55%,
            rgba(4,6,14,.85) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 32px rgba(0,0,0,.7);
}

/* Decorative full-width gold line at very top */
.mk-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold-dim) 20%,
        var(--gold) 50%,
        var(--gold-dim) 80%,
        transparent 100%);
}

/* Decorative gradient line at bottom */
.mk-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Faint background texture: two diagonal vignette blobs */
.mk-header-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 120% at 50% 50%, rgba(201,162,39,.055) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139,26,26,.12) 0%, transparent 65%);
}

/* Content wrapper keeps logo + tagline centered */
.mk-header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ── Ornamental row (lines + diamond) ── */
.mk-header-ornament {
    display: flex;
    align-items: center;
    gap: 0;
    width: min(520px, 70%);
}
.mk-header-ornament .orn-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,.55));
}
.mk-header-ornament .orn-line.right {
    background: linear-gradient(90deg, rgba(201,162,39,.55), transparent);
}
.mk-header-ornament .orn-diamond {
    width: 7px; height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
    margin: 0 10px;
    box-shadow: 0 0 8px rgba(201,162,39,.7);
    flex-shrink: 0;
}
.mk-header-ornament .orn-dot {
    width: 4px; height: 4px;
    background: var(--gold-dim);
    transform: rotate(45deg);
    margin: 0 5px;
    flex-shrink: 0;
}

/* ── Logo image ── */
.mk-header img.mk-logo {
    max-height: 60px;
    margin-bottom: -8px !important;
    filter: drop-shadow(0 0 6px rgba(201,162,39,.65)) drop-shadow(0 0 2px rgba(201,162,39,.35));
    /*animation: mk-logo-glow 4s ease-in-out infinite;*/
}

@keyframes mk-logo-glow {
    0%, 100% {
        filter:
            drop-shadow(0 0 18px rgba(201,162,39,.55))
            drop-shadow(0 0 5px  rgba(201,162,39,.25));
    }
    50% {
        filter:
            drop-shadow(0 0 30px rgba(201,162,39,.85))
            drop-shadow(0 0 10px rgba(255,220,80,.4));
    }
}

/* ── Tagline beneath the logo ── */
.mk-header-tagline {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgb(247 211 98 / 60%);
    text-shadow: 0 0 12px rgba(201,162,39,.3);
    line-height: 1;
}

/* ── Responsive adjustments ── */
@media (max-width: 600px) {
    .mk-header img.mk-logo { max-height: 65px; }
    .mk-header-tagline { font-size: 9px; letter-spacing: .22em; }
    .mk-header { padding: 18px 0 14px; }
}

/* ── Three-column body ───────────────────────────────────────────── */
.mk-body {
    display: flex;
    flex: 1;
    gap: 14px;
    padding: 18px 18px 24px;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.mk-col-left   { flex: 0 0 210px; min-width: 0; }
.mk-col-center { flex: 1 1 0;     min-width: 0; }
.mk-col-right  { flex: 0 0 220px; min-width: 0; }

/* ── Generic panel ───────────────────────────────────────────────── */
.mk-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: visible;
    box-shadow: 0 4px 22px rgba(0,0,0,.55), inset 0 1px 0 rgba(201,162,39,.08);
}

.mk-panel-head {
    padding: 7px 14px 6px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(201,162,39,.10) 0%, transparent 100%);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mk-panel-head i { font-size: 12px; color: var(--gold-dim); }

.mk-panel-body { padding: 10px 12px; }

/* ══════════════════════════════════════════════════════════════════
   LEFT COLUMN — navigation
   ══════════════════════════════════════════════════════════════════ */
.mk-nav { list-style: none; margin: 0; padding: 4px 0; }

.mk-nav li { margin: 0; }

.mk-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .18s, color .18s, border-color .18s;
}
.mk-nav li a i { width: 16px; text-align: center; font-size: 13px; color: var(--gold-dim); transition: color .18s; }
.mk-nav li a:hover,
.mk-nav li.active a {
    background: rgba(201,162,39,.09);
    color: var(--gold-light);
    border-left-color: var(--gold);
}
.mk-nav li a:hover i,
.mk-nav li.active a i { color: var(--gold); }

.mk-nav .nav-special a  { color: wheat; }
.mk-nav .nav-market  a  { color: #eb9257; }

/* ── Server status badge ─────────────────────────────────────────── */
.mk-status-badge {
    text-align: center;
    padding: 8px;
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .12em;
}

/* ── Boss tracker ────────────────────────────────────────────────── */
.mk-bosstrack { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }

/* FIX 5 — position:relative + z-index stacking context on the hover wrapper;
   tooltip appears to the RIGHT so it doesn't get clipped by the left column edge */
.mk-bosshover {
    position: static;
    display: inline-block;
}

.mk-boss-img {
    width: 53px; height: 53px;
    border-radius: 6px;
    object-fit: cover;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0,0,0,.6);
    transition: transform .2s;
    position: relative;
    z-index: 1;
}
.mk-boss-img.boss-active  { border: 2px solid #4caf50; animation: mk-pulse 2.5s ease-in-out infinite; }
.mk-boss-img.boss-inactive { border: 2px solid #8b1a1a; filter: grayscale(.4); }

@keyframes mk-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(76,175,80,.45); }
    50%      { box-shadow: 0 0 0 6px rgba(76,175,80,0); }
}

/* FIX 5 — tooltip fixed-positioned so it's never clipped by any parent overflow.
   Positioned via JS on hover; fallback: absolute left:100% on the .mk-bosshover */
.mk-bosstooltip {
    display: none;
    position: fixed;
    z-index: 9900;
    width: 240px;
    background: rgba(6,8,18,.97);
    border: 1px solid var(--border-lit);
    border-radius: 6px;
    padding: 10px 12px 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    box-shadow: 0 8px 28px rgba(0,0,0,.8);
    pointer-events: none;
}
.mk-bosshover:hover .mk-bosstooltip { display: block; }

.mk-bosstooltip .bt-name {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: var(--gold-light);
    margin-bottom: 6px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bt-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 3px;
}
.bt-lbl { color: #888; font-size: 11px; flex-shrink: 0; white-space: nowrap; }
.bt-val { text-align: right; word-break: break-word; }

.boss-death-state {
    color: var(--offline-clr); font-weight: 700;
    border: 1px solid var(--offline-clr);
    border-radius: 3px; padding: 1px 6px; font-size: 11px;
    white-space: nowrap;
}
.boss-alive-state {
    color: var(--online-clr); font-weight: 700;
    border: 1px solid var(--online-clr);
    border-radius: 3px; padding: 1px 6px; font-size: 11px;
    white-space: nowrap;
}
/* spawn times: allow wrap so long time lists don't blow out the box */
.boss-spawn-time  { color: #ebe3b6; font-size: 11px; text-align: right; word-break: break-word; }
.boss-spawn-zone  { color: #ebe3b6; font-size: 12px; font-weight: 600; }
.boss-kill-feed1  { color: #666; font-size: 11px; text-align: right; }
.boss-kill-feed2  { color: var(--text-bright); font-size: 11px; text-align: right; }

/* ══════════════════════════════════════════════════════════════════
   CENTER COLUMN
   ══════════════════════════════════════════════════════════════════ */

/* ── Live feed ───────────────────────────────────────────────────── */
.mk-livefeed {
    max-height: 190px;
    overflow-y: auto;
    line-height: 1.55;
    font-size: 13px;
    padding: 6px 2px;
}
.mk-livefeed .shout  { color: #ff99ff; }
.mk-livefeed .notice {     color: rgb(68, 238, 238); }
.liveFeedTime { color: #555; font-size: 11px; }

/* ── Main content panel ──────────────────────────────────────────── */
.mk-main-content { padding: 14px 16px; }

/* ══════════════════════════════════════════════════════════════════
   RIGHT COLUMN
   ══════════════════════════════════════════════════════════════════ */

/* ── Event panels ────────────────────────────────────────────────── */
.mk-event-card {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 12px 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.mk-event-card.running { background: linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)), url('../images/events/mainevent.jpg') center/cover no-repeat; }
.mk-event-card.next    { background: linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)), url('../images/events/nextevent.jpg') center/cover no-repeat; }

.mk-event-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: var(--gold);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1px;
}
.mk-event-name  { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.mk-event-timer { font-size: 12px; color: #ffd802; font-weight: 600; }

/* ── Account / Login ─────────────────────────────────────────────── */
.mk-account-name {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: var(--gold-light);
    text-align: center;
    margin-bottom: 2px;
}
.mk-account-sub { color: #888; font-size: 12px; text-align: center; margin-bottom: 8px; }

/* FIX 3 & 4 — login form: inputs always full width, display block */
.mk-login-form { text-align: center; }
.mk-login-form label {
    display: block;
    color: #999;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 3px;
    text-align: left;
}

/* FIX 2 — register form: same as login form, block layout */
.mk-register-form { text-align: center; }

/* Force all mk-input elements inside login/register/pw-change forms to full width */
.mk-login-form .mk-input,
.mk-register-form .mk-input,
.mk-pw-form .mk-input {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Exception: captcha answer box stays narrow */
.mk-login-form .mk-captcha-input,
.mk-register-form .mk-captcha-input {
    display: inline-block !important;
    width: 60px !important;
}

.mk-input {
    display: block;
    width: 100%;
    padding: 7px 10px;
    margin-bottom: 9px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.mk-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201,162,39,.2);
}

/* Security answer field override — keep it small/inline */
.mk-input.security-answer {
    display: inline-block;
    width: 56px;
    text-align: center;
    margin-bottom: 0;
}

.mk-btn {
    display: inline-block;
    padding: 7px 22px;
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(201,162,39,.18) 0%, rgba(201,162,39,.06) 100%);
    color: var(--gold-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.mk-btn:hover { background: rgba(201,162,39,.3); border-color: var(--gold); color: #fff; }

.mk-btn-sm {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
}
.mk-btn-danger { border-color: var(--crimson-lit); color: #e07070; }
.mk-btn-danger:hover { background: rgba(192,57,43,.3); border-color: var(--crimson-lit); color: #fff; }

.mk-error-lbl { font-size: 12px; color: #e07070; display: none; margin-top: 4px; }

/* ── Character cards ─────────────────────────────────────────────── */
.mk-char-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 8px 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.mk-char-img  { width: 52px; height: 52px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.mk-char-info { flex: 1; min-width: 0; }
.mk-char-name { font-family: 'Cinzel', serif; font-size: 13px; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-char-lvl  { font-size: 12px; color: #aaa; }
.mk-char-cls  { font-size: 12px; color: var(--cyan-lit); }
.mk-char-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }

/* ── Sell char sub-form ──────────────────────────────────────────── */
.mk-sell-form { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.mk-sell-form h3 { font-size: 13px; color: var(--gold); margin: 0 0 6px; }
.mk-sell-row { display: flex; gap: 5px; margin-bottom: 5px; }
.mk-sell-row .mk-input { margin-bottom: 0; }
.mk-select {
    flex: 1;
    padding: 6px 8px;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 4px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
}
.mk-select option { background: #10141f; }

/* ── Leaderboard mini ────────────────────────────────────────────── */
.mk-top-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each row */
.mk-top-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 5px;
    margin-bottom: 4px;
    position: relative;
    border: 1px solid transparent;
    transition: background .18s, border-color .18s;
    overflow: hidden;
}
.mk-top-row::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .18s;
    border-radius: 4px;
}
.mk-top-row:hover::before { opacity: 1; }
.mk-top-row:last-child { margin-bottom: 0; }

/* ── Rank 1 — Gold ── */
.mk-top-row--1 {
    background: linear-gradient(90deg, rgba(201,162,39,.18) 0%, rgba(201,162,39,.04) 100%);
    border-color: rgba(201,162,39,.35);
}
.mk-top-row--1::before { background: rgba(201,162,39,.06); }

/* ── Rank 2 — Silver ── */
.mk-top-row--2 {
    background: linear-gradient(90deg, rgba(192,192,192,.14) 0%, rgba(192,192,192,.03) 100%);
    border-color: rgba(192,192,192,.25);
}
.mk-top-row--2::before { background: rgba(192,192,192,.06); }

/* ── Rank 3 — Bronze ── */
.mk-top-row--3 {
    background: linear-gradient(90deg, rgba(205,127,50,.14) 0%, rgba(205,127,50,.03) 100%);
    border-color: rgba(205,127,50,.28);
}
.mk-top-row--3::before { background: rgba(205,127,50,.06); }

/* ── Rank 4 & 5 — Dim ── */
.mk-top-row--4,
.mk-top-row--5 {
    background: rgba(255,255,255,.025);
    border-color: rgba(255,255,255,.06);
}
.mk-top-row--4::before,
.mk-top-row--5::before { background: rgba(255,255,255,.04); }

/* Medal icon */
.mk-top-medal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex-shrink: 0;
    font-size: 13px;
}
.mk-top-medal--1 { color: #ffd700; filter: drop-shadow(0 0 4px rgba(255,215,0,.6)); }
.mk-top-medal--2 { color: #c0c0c0; filter: drop-shadow(0 0 3px rgba(192,192,192,.5)); }
.mk-top-medal--3 { color: #cd7f32; filter: drop-shadow(0 0 3px rgba(205,127,50,.5)); }
.mk-top-medal--4,
.mk-top-medal--5 { color: #556; font-size: 11px; }

/* Rank number */
.mk-top-rank {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}
.mk-top-row--1 .mk-top-rank { color: #c9a227; }
.mk-top-row--2 .mk-top-rank { color: #a0a0a0; }
.mk-top-row--3 .mk-top-rank { color: #a0622a; }

/* Player name */
.mk-top-name {
    flex: 1;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.mk-top-name--1 {
    color: #f0c84a;
    text-shadow: 0 0 10px rgba(240,200,74,.4);
}
.mk-top-name--2 { color: #d4d4d4; }
.mk-top-name--3 { color: #cd8a4a; }
.mk-top-name--4 { color: #a0998c; }
.mk-top-name--5 { color: #888; }

/* Crown image */
.mk-top-crown {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    opacity: .9;
}

/* ── Market mini ─────────────────────────────────────────────────── */
.mk-market-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mk-mkt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 5px;
    margin-bottom: 4px;
    background: rgba(39,168,219,.06);
    border: 1px solid rgba(39,168,219,.15);
    transition: background .18s, border-color .18s;
    position: relative;
    overflow: hidden;
}
.mk-mkt-row::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--cyan);
    opacity: .5;
    border-radius: 5px 0 0 5px;
    transition: opacity .18s;
}
.mk-mkt-row:hover {
    background: rgba(39,168,219,.13);
    border-color: rgba(39,168,219,.35);
}
.mk-mkt-row:hover::after { opacity: 1; }
.mk-mkt-row:last-child { margin-bottom: 0; }

/* Character icon */
.mk-mkt-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(39,168,219,.15);
    border: 1px solid rgba(39,168,219,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--cyan-lit);
    flex-shrink: 0;
}

/* Character name */
.mk-mkt-name {
    flex: 1;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* "For Sale" badge */
.mk-mkt-badge {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cyan-lit);
    background: rgba(39,168,219,.14);
    border: 1px solid rgba(39,168,219,.35);
    border-radius: 3px;
    padding: 1px 5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.mk-vote-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px;
    background: linear-gradient(135deg, #1a4a7a 0%, #0d2a4d 100%);
    border: 1px solid #2a6ab0;
    border-radius: 5px;
    color: #7dd6f5;
}
    /* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
    .mk-footer {
    text-align: center;
    padding: 14px 0;
    font-size: 12px;
    color: #3a3a4a;
    border-top: 1px solid var(--border);
    background: rgba(4,6,14,.9);
    letter-spacing: .06em;
}

/* ══════════════════════════════════════════════════════════════════
   RANKING2 PAGE styles
   ══════════════════════════════════════════════════════════════════ */

/* Colour codes (game convention, #1–#8) */
.tip-desc .dc1,.tip-name .dc1 { color:#ff4040; display:inline; }
.tip-desc .dc2,.tip-name .dc2 { color:#ff8844; display:inline; }
.tip-desc .dc3,.tip-name .dc3 { color:#ffff00; display:inline; }
.tip-desc .dc4,.tip-name .dc4 { color:#00ff00; display:inline; }
.tip-desc .dc5,.tip-name .dc5 { color:#00ffff; display:inline; }
.tip-desc .dc6,.tip-name .dc6 { color:#0088ff; display:inline; }
.tip-desc .dc7,.tip-name .dc7 { color:#ff00ff; display:inline; }
.tip-desc .dc8,.tip-name .dc8 { color:#ffffff; display:inline; }

.rk2-wrap {
    padding: 0;
}

/* Page title */
.rk2-title {
    font-family: 'Cinzel', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--gold-light);
    text-align: center;
    letter-spacing: .12em;
    padding: 14px 0 8px;
    text-shadow: 0 0 18px rgba(201,162,39,.45);
    position: relative;
}
.rk2-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    margin: 6px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Scrollable ranking container */
.rk2-container {
    max-height: 65vh;
    overflow-y: auto;
    border-radius: 4px;
}

/* The table */
#rk2-table {
    width: 100%;
    border-collapse: collapse;
}

#rk2-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

#rk2-table thead th {
    background: linear-gradient(180deg, rgba(20,16,8,.97) 0%, rgba(14,10,4,.97) 100%);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 11px 14px;
    text-align: center;
    border-bottom: 2px solid var(--gold-dim);
    white-space: nowrap;
}

#rk2-table tbody tr {
    transition: background .18s;
    background: rgba(255,255,255,.018);
    border-left: 3px solid transparent;
}
#rk2-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
#rk2-table tbody tr:hover {
    background: rgba(201,162,39,.08);
    border-left-color: var(--gold);
}

/* Top 3 special rows */
#rk2-table tbody tr.rank-1 td.rk2-rank { color: #ffd700; text-shadow: 0 0 8px #ffd700; }
#rk2-table tbody tr.rank-2 td.rk2-rank { color: #c0c0c0; text-shadow: 0 0 6px #c0c0c0; }
#rk2-table tbody tr.rank-3 td.rk2-rank { color: #cd7f32; text-shadow: 0 0 6px #cd7f32; }

#rk2-table td {
    padding: 9px 14px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    text-align: center;
    vertical-align: middle;
}

td.rk2-rank {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    width: 46px;
}

td.rk2-name {
    text-align: left;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
}

td.rk2-class {
    white-space: nowrap;
    color: #aaa;
    font-size: 13px;
}

td.rk2-level {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--cyan-lit);
}

td.rk2-guild { color: #888; font-size: 13px; }

.pimage { width: 18px; vertical-align: middle; margin-right: 4px; }

/* Inv button */
.inv-btn {
    display: inline-block;
    opacity: 0;
    margin-left: 7px;
    vertical-align: middle;
    cursor: pointer;
    background: rgba(39,168,219,.15);
    border: 1px solid rgba(39,168,219,.45);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
    color: var(--cyan-lit);
    transition: opacity .2s, background .2s;
    white-space: nowrap;
}
#rk2-table tr:hover .inv-btn { opacity: 1; }
.inv-btn:hover { background: rgba(39,168,219,.35); color: #fff; }

/* ═════════════════════════════════════════
   INVENTORY MODAL (same logic, new look)
   ═════════════════════════════════════════ */
#invModal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}
#invModal.open { display: flex; }

#invModalBox {
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#invModalTitle {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--gold-light);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(201,162,39,.5);
}

#invModalClose {
    position: absolute;
    top: 38px;
    right: 28px;
    cursor: pointer;
    color: #888;
    font-size: 13px;
    background: none;
    border: none;
    padding: 0;
    z-index: 30;
    transition: color .2s;
}
#invModalClose:hover { color: #fff; }

#invBoard {
    position: relative;
    width: 326px;
    height: 445px;
    flex-shrink: 0;
    border: 1px solid var(--border-lit);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(201,162,39,.2);
}
#invBoard img.inv-bg {
    display: block;
    width: 326px;
    height: 445px;
    image-rendering: pixelated;
}

.inv-item {
    position: absolute;
    width: 36px; height: 36px;
    cursor: default;
}
.inv-item img {
    width: 36px; height: 36px;
    object-fit: contain; display: block;
}

.inv-item .inv-item-name {
    display: none;
    position: fixed;
    background: rgba(6,8,18,.97);
    border: 1px solid rgba(201,162,39,.55);
    border-radius: 5px;
    padding: 8px 11px;
    pointer-events: none;
    z-index: 9999;
    font-family: "Roboto", sans-serif;
    min-width: 320px;
    max-width: 360px;
    width: max-content;
    overflow: visible;
    text-align: center;
    white-space: normal;
    box-shadow: 0 4px 20px rgba(0,0,0,.8);
    font-size: 13px;
    line-height: 1.4;
}
.inv-item .inv-item-name.visible { display: block; }

#invLoading   { color: var(--cyan-lit); font-size: 13px; padding: 20px 0; font-family: 'Rajdhani',sans-serif; }
#invEmptyMsg  { color: #c3c3c3; font-size: 13px; padding: 16px 0; font-family: 'Rajdhani',sans-serif; }

/* Overflow strip */
#invOverflow {
    display: none !important;
    margin-top: 8px;
    width: 326px;
    background: rgba(10,12,24,.7);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 6px;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
}
#invOverflow.has-items { display: none !important; }

.inv-item-overflow {
    position: relative;
    width: 36px; height: 36px;
    opacity: .55; cursor: default; flex-shrink: 0;
}
.inv-item-overflow img { width: 36px; height: 36px; object-fit: contain; display: block; }
.inv-item-overflow .inv-item-name { font-family: 'Rajdhani', sans-serif; }

/* Debug panel (unchanged functionality) */
#invDebugPanel {
    display: none;
    position: absolute;
    top: 0; left: 334px;
    width: 210px;
    background: rgba(8,10,20,.97);
    border: 1px solid rgba(39,168,219,.4);
    border-radius: 6px;
    padding: 8px 10px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #c8e8ff;
    z-index: 50;
    max-height: 390px;
    overflow-y: auto;
    box-sizing: border-box;
}
#invDebugPanel.active { display: block; }
#invDebugPanel h4 { margin: 0 0 6px; font-size: 11px; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.dbg-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.dbg-row label { width: 72px; font-size: 10px; color: #9ad; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbg-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.25); }
.dbg-num { width: 40px; background: rgba(255,255,255,.07); border: 1px solid rgba(39,168,219,.3); border-radius: 3px; color: #e0f4ff; font-size: 10px; padding: 1px 3px; font-family: 'Courier New', monospace; -moz-appearance: textfield; }
.dbg-num::-webkit-inner-spin-button,.dbg-num::-webkit-outer-spin-button { -webkit-appearance: none; }
#dbgCopyBtn { margin-top: 8px; width: 100%; background: rgba(39,168,219,.2); border: 1px solid rgba(39,168,219,.5); border-radius: 4px; color: var(--cyan-lit); font-size: 10px; cursor: pointer; padding: 4px 0; font-family: 'Courier New', monospace; }
#dbgCopyBtn:hover { background: rgba(39,168,219,.38); color: #fff; }
#dbgCopyStatus { font-size: 9px; color: #6f9; text-align: center; margin-top: 3px; min-height: 12px; }
.dbg-handle { display: none; position: absolute; width: 36px; height: 36px; border: 2px solid; border-radius: 3px; box-sizing: border-box; cursor: grab; z-index: 40; opacity: .82; }
.dbg-handle:active { cursor: grabbing; }
.dbg-handle span { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font-size: 8px; font-family: 'Courier New', monospace; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; line-height: 1; }
.dbg-active .dbg-handle { display: block; }

/* ══════════════════════════════════════════════════════════════════
   DONATION PAGE — card grid
   ══════════════════════════════════════════════════════════════════ */
.mk-panel-body .download,
.col-xl-4.download,
.col-xl-12.download {
    display: inline-block;
    width: 24%;
    vertical-align: top;
    padding: 10px;
    box-sizing: border-box;
}
.col-xl-12.download { width: 100%; text-align: center; }

.icon-box {
    border: 1px solid var(--border-lit);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    background: rgba(10,14,28,.7);
    transition: border-color .2s, background .2s, transform .2s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-box:hover {
    border-color: var(--gold);
    background: rgba(201,162,39,.08);
    transform: translateY(-2px);
}
.icon-box h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}
.icon-box h4 b { font-size: 21px; color: var(--gold-light); }
.pricing { display: block; font-size: 18px !important; font-weight: 700; color: #eeb74c; line-height: 1.4 !important; }

/* ══════════════════════════════════════════════════════════════════
   DROPLIST PAGE — item icons + tooltips
   ══════════════════════════════════════════════════════════════════ */
.content-icon {
    display: inline-block;
    vertical-align: top;
    margin: 2px;
}
.Item_icon {
    position: relative;
    display: inline-block;
}
.Item_icon .icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 3px;
    background: rgba(0,0,0,.4);
    display: block;
    cursor: default;
    transition: border-color .15s;
}
.Item_icon:hover .icon { border-color: var(--gold-dim); }

.drptooltip {
    display: none;
    position: absolute;
    z-index: 5000;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: rgba(6,8,18,.97);
    border: 1px solid var(--border-lit);
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    box-shadow: 0 6px 22px rgba(0,0,0,.85);
    pointer-events: none;
    text-align: center;
    white-space: normal;
}
.Item_icon:hover .drptooltip { display: block; }

/* keep tooltip on-screen when near the right edge */
.content-icon:nth-last-child(-n+3) .drptooltip {
    left: auto;
    right: 0;
    transform: none;
}

#droplistTable { border-collapse: collapse; }
#droplistTable th {
    background: linear-gradient(180deg, rgba(20,16,8,.97) 0%, rgba(14,10,4,.97) 100%);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 2px solid var(--gold-dim);
}
#droplistTable td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: var(--text);
    vertical-align: top;
}
#droplistTable tr { background: rgba(255,255,255,.018); }
#droplistTable tr:nth-child(even) { background: rgba(255,255,255,.035); }
#droplistTable tr:hover { background: rgba(201,162,39,.07); }

/* Search inputs row above the droplist */
.mk-panel-body input[type=text].mk-input {
    width: auto;
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════════════
   MARKET PAGE — character listing grid
   ══════════════════════════════════════════════════════════════════ */
.marketGrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr 1fr;
    gap: 0;
    width: 100%;
    font-size: 14px;
}
.marketGrid .gfg {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: var(--text);
    display: flex;
    align-items: center;
}
.marketGrid .gfg:nth-child(-n+6) {
    background: linear-gradient(180deg, rgba(20,16,8,.97) 0%, rgba(14,10,4,.97) 100%);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--gold-dim);
}
.marketGrid .gfg:nth-child(12n+7),
.marketGrid .gfg:nth-child(12n+8),
.marketGrid .gfg:nth-child(12n+9),
.marketGrid .gfg:nth-child(12n+10),
.marketGrid .gfg:nth-child(12n+11),
.marketGrid .gfg:nth-child(12n+12) {
    background: rgba(255,255,255,.025);
}
.marketGrid .mk-btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════════════
   RANKING ENDLESS / NIGHTMARE — top-player blocks + GridView table
   ══════════════════════════════════════════════════════════════════ */
.topPlayer {
    background: rgba(10,14,28,.65);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 10px;
    margin: 6px 4px;
    text-align: center;
    transition: border-color .2s;
    display: inline-block;
    min-width: 120px;
}
.topPlayer:hover { border-color: var(--gold-dim); }
.topPlayer h1 {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.topPlayer h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    word-break: break-all;
}

/* Bootstrap col shims for the 4-column top-player layout */
.col-xs-3, .col-lg-3 {
    display: inline-block;
    width: 24%;
    vertical-align: top;
    box-sizing: border-box;
}

/* GridView / .ranking table (shared by ranking_endless & ranking_nightmare) */
table.ranking {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}
table.ranking th {
    background: linear-gradient(180deg, rgba(20,16,8,.97) 0%, rgba(14,10,4,.97) 100%);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 10px 14px;
    text-align: center;
    border-bottom: 2px solid var(--gold-dim);
}
table.ranking td {
    padding: 9px 14px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    text-align: center;
    vertical-align: middle;
}
table.ranking tr { background: rgba(255,255,255,.018); transition: background .15s; }
table.ranking tr:nth-child(even) { background: rgba(255,255,255,.035); }
table.ranking tr:hover { background: rgba(201,162,39,.08); }

/* ══════════════════════════════════════════════════════════════════
   EVENTS PAGE — schedule table
   ══════════════════════════════════════════════════════════════════ */
table.eventschedule {
    width: 100%;
    border-collapse: collapse;
}
table.eventschedule th {
    background: linear-gradient(180deg, rgba(20,16,8,.97) 0%, rgba(14,10,4,.97) 100%);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 2px solid var(--gold-dim);
    text-align: center;
}
table.eventschedule td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: var(--text);
    font-size: 14px;
}
table.eventschedule td img { vertical-align: middle; margin-right: 5px; width: 20px; height: 20px; }
table.eventschedule tr { background: rgba(255,255,255,.018); }
table.eventschedule tr:nth-child(even) { background: rgba(255,255,255,.035); }
table.eventschedule tr:hover { background: rgba(201,162,39,.07); }

 /* ══════════════════════════════════════════════════════════════════
   SERVER INFO PAGE — formatted feature/reborn cards
   ══════════════════════════════════════════════════════════════════ */

/* FIX 5 — server info content container */
.si-section {
    margin-bottom: 24px;
}
.si-section-title {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 0 6px 10px;
    border-left: 3px solid var(--gold);
    margin-bottom: 14px;
}
.si-section-title i { margin-right: 7px; color: var(--gold-dim); font-size: 13px; }

/* Feature bullet list */
.si-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    font-size: 14px;
    line-height: 1.5;
}
.si-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--text);
}
.si-features li::before {
    content: '▸';
    color: var(--gold-dim);
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 11px;
}
.si-features li .si-hl { color: var(--gold-light); font-weight: 600; }

/* Fusion gifs row */
.si-fusions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 6px;
}
.si-fusions img {
    border-radius: 10px;
    height: 72px;
    width: auto;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* Reborn ranks table */
.si-reborn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.si-reborn-table thead th {
    background: linear-gradient(180deg, rgba(20,16,8,.97) 0%, rgba(14,10,4,.97) 100%);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 9px 14px;
    border-bottom: 2px solid var(--gold-dim);
    text-align: left;
}
.si-reborn-table tbody tr {
    background: rgba(255,255,255,.018);
    transition: background .15s;
}
.si-reborn-table tbody tr:nth-child(even) { background: rgba(255,255,255,.035); }
.si-reborn-table tbody tr:hover { background: rgba(201,162,39,.07); }
.si-reborn-table td {
    padding: 7px 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: var(--text);
    vertical-align: middle;
}
.si-reborn-table td:first-child {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    font-weight: 700;
    white-space: nowrap;
}
.si-reborn-table td:nth-child(2) { color: #aaa; font-size: 13px; }
.si-reborn-table td:nth-child(3) { color: var(--crimson-lit); font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════
   MARKET PAGE — table (styled identically to #rk2-table)
   ══════════════════════════════════════════════════════════════════ */

/* Inv button visible on row hover for both ranking and market */
#rk2-table tr:hover .inv-btn,
#market-table tr:hover .inv-btn { opacity: 1; }

#market-table {
    width: 100%;
    border-collapse: collapse;
}
#market-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}
    #market-table thead th {
        background: linear-gradient(180deg, rgba(20,16,8,.97) 0%, rgba(14,10,4,.97) 100%);
        color: var(--gold);
        font-family: 'Rajdhani', sans-serif;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        padding: 11px 14px;
        text-align: center;
        border-bottom: 2px solid var(--gold-dim);
        white-space: nowrap;
    }
#market-table tbody tr {
    transition: background .18s;
    background: rgba(255,255,255,.018);
    border-left: 3px solid transparent;
}
#market-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
#market-table tbody tr:hover {
    background: rgba(201,162,39,.08);
    border-left-color: var(--gold);
}
#market-table td {
    padding: 9px 14px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    text-align: center;
    vertical-align: middle;
}

/* ── Per-column td classes ───────────────────────────────────────── */
td.mkt-name {
    text-align: left;

    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
}
td.mkt-class {
    text-align: left;
    white-space: nowrap;
    color: #aaa;
    font-size: 13px;
}
td.mkt-level {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--cyan-lit);
}
td.mkt-reborn { color: #aaa; font-size: 13px; }
td.mkt-price  { text-align: right; white-space: nowrap; }
td.mkt-buy    { white-space: nowrap; }

/* ── Reborn badge ────────────────────────────────────────────────── */
.reborn-tag {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    color: var(--gold-light);
    background: rgba(201,162,39,.12);
    border: 1px solid var(--gold-dim);
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: .04em;
    margin-right: 4px;
}

/* ── Price colour classes ────────────────────────────────────────── */
.price-gold             { color: #f0c84a; }
.price-gold  i          { color: #f0c84a; margin-right: 3px; }
.price-gold  small      { color: #a88a30; font-size: 11px; }

.price-dc               { color: #7dd6f5; }
.price-dc    i          { color: #7dd6f5; margin-right: 3px; }
.price-dc    small      { color: #4a8aaa; font-size: 11px; }

.price-geons            { color: #a0e890; }
.price-geons i          { color: #a0e890; margin-right: 3px; }
.price-geons small      { color: #5a9050; font-size: 11px; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .mk-col-left  { flex: 0 0 180px; }
    .mk-col-right { flex: 0 0 190px; }
}
@media (max-width: 860px) {
    .mk-body { flex-direction: column; padding: 10px; }
    .mk-col-left, .mk-col-right { flex: none; width: 100%; }
    .mk-bosstooltip { display: none !important; }
    .si-features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .mk-header img.mk-logo { max-height: 60px; }
    #rk2-table td, #rk2-table th { padding: 7px 8px; font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════════
   ENDLESS DUNGEON — collapsible info panel
   ══════════════════════════════════════════════════════════════════ */

/* Info button in the panel header */
.ed-info-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    background: rgba(39,168,219,.12);
    border: 1px solid rgba(39,168,219,.4);
    border-radius: 4px;
    color: var(--cyan-lit);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    flex-shrink: 0;
}
.ed-info-btn i { font-size: 12px; }
.ed-info-btn:hover,
.ed-info-btn.active {
    background: rgba(39,168,219,.28);
    border-color: var(--cyan);
    color: #fff;
}
.ed-info-btn.active i { transform: rotate(180deg); }

/* Collapsible wrapper — zero-height when closed, auto when open */
.ed-info-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .38s ease, opacity .3s ease;
    opacity: 0;
    border-bottom: 0px solid var(--border);
}
.ed-info-panel.open {
    max-height: 600px;
    opacity: 1;
    border-bottom: 1px solid var(--border);
}

.ed-info-inner {
    padding: 16px 18px 14px;
    background: rgba(8,10,22,.55);
}

/* 2×2 grid of info blocks */
.ed-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.ed-info-block {
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 10px 14px 8px;
}
.ed-info-block--winners {
    grid-column: span 2;          /* winners row spans full width */
}

.ed-info-block-title {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ed-info-block-title i { color: var(--gold-dim); font-size: 11px; }

.ed-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text);
}
.ed-info-list li {
    padding-left: 12px;
    position: relative;
}
.ed-info-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold-dim);
    font-size: 10px;
    top: 2px;
}

.ed-hl   { color: var(--gold-light); font-weight: 600; }
.ed-drop { color: var(--online-clr); font-weight: 700; }

/* Winners row */
.ed-winners {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.ed-winner {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Top-class row spacing */
.ed-top-row { margin-bottom: 10px; }

@media (max-width: 860px) {
    .ed-info-grid { grid-template-columns: 1fr; }
    .ed-info-block--winners { grid-column: span 1; }
}
