/* Grundlegende Zurücksetzung und Zuweisung der neuen Schriftart 'Jost' */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
}

body {
    background-color: #050505; /* Sehr dunkles Grau, fast Schwarz */
    color: #d3d3d3;
    text-align: center;
}

a {
    font-weight: bold;
    color: #e2c08d; /* Pergament/Gold */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #9e9e9e; /* Grau statt Grün */
}

/* --- OBERSTES MENÜ --- */
.top-menu {
    background: linear-gradient(180deg, #1e1e1e 0%, #111 100%);
    border-bottom: 2px solid #5c3a21; /* Brauner Rand */
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

.menu-links a {
    position: relative;
    padding: 8px 28px;
    border-radius: 4px;
    font-family: 'Cinzel', serif; /* Fantasy Font */
    font-size: 1.1rem;
    color: #b0a090;
    transition: all 0.3s ease;
}

.menu-links a:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #9e9e9e;
    text-shadow: 0 0 8px rgba(158, 158, 158, 0.5);
}

.menu-links a::before, .menu-links a::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background-color: #9e9e9e;
    box-shadow: 0 0 6px #9e9e9e;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-links a::before {
    left: 18px;
    transform: translateY(-50%) rotate(45deg);
}

.menu-links a::after {
    right: 18px;
    transform: translateY(-50%) rotate(45deg);
}

.menu-links a:hover::before {
    opacity: 1;
    left: 10px;
}

.menu-links a:hover::after {
    opacity: 1;
    right: 10px;
}

/* --- LOGIN & REGISTER --- */
.login-register {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login, .btn-register {
    padding: 10px 20px;
    background: linear-gradient(180deg, #3a3a3a 0%, #1e1e1e 100%);
    border: 1px solid #5c3a21;
    border-radius: 4px;
    color: #e2c08d;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
}

.btn-login:hover, .btn-register:hover {
    background: linear-gradient(180deg, #9e9e9e 0%, #555555 100%);
    border-color: #333333;
    color: #fff;
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.5);
}

.login-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 250px;
    background: linear-gradient(135deg, #1c1c1c 0%, #111 100%);
    border: 2px solid #5c3a21;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.login-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.login-wrapper:hover .login-dropdown,
.login-wrapper:focus-within .login-dropdown,
.login-disclosure[open] > .login-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-disclosure {
    display: block;
}

.login-disclosure > summary {
    list-style: none;
    cursor: pointer;
    font-weight: bold;
}

.login-disclosure > summary::-webkit-details-marker {
    display: none;
}

.login-form-error {
    color: #ffb2a6;
    font-size: 0.9rem;
    text-align: left;
}

.login-dropdown form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-dropdown input {
    background: #0a0a0a;
    border: 1px solid #3e2723;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.login-dropdown input:focus {
    border-color: #9e9e9e;
    box-shadow: 0 0 5px rgba(158, 158, 158, 0.3);
}

.captcha-row {
    display: flex;
    align-items: center;
    background: #000;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #222;
}

.captcha-quest {
    color: #9e9e9e;
    font-weight: bold;
    flex-grow: 1;
}

.captcha-row input {
    width: 60px !important;
    text-align: center;
    padding: 5px;
}

.btn-submit {
    background: linear-gradient(180deg, #9e9e9e 0%, #555555 100%);
    color: white;
    border: 1px solid #333333;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: linear-gradient(180deg, #b0b0b0 0%, #777777 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* --- HEADER BEREICH --- */
.main-header {
    position: relative;
    overflow: hidden;
    background-image: url('img/header-optimized.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 420px;
    display: flex;
    align-items: center;
    padding: 20px 50px;
    border-bottom: 3px solid #5c3a21;
    isolation: isolate;
}

.main-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,0) 32%, rgba(0,0,0,.08));
}

.main-header > * {
    position: relative;
    z-index: 2;
}


.video-box {
    background-color: #000;
    width: 560px;
    height: 315px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #3e2723;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* --- ZWISCHENBALKEN --- */
.trennung {
    height: 2px;
    background: linear-gradient(90deg, transparent, #9e9e9e, transparent);
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.6);
    position: relative;
    z-index: 5;
    margin-top: -2px;
}

/* --- SOCIAL MEDIA --- */
.social-media {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid #5c3a21;
    border-radius: 6px;
    color: #e2c08d;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #242424 0%, #151515 100%);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: linear-gradient(180deg, #9e9e9e 0%, #555555 100%);
    border-color: #333333;
    color: white;
    box-shadow: 0 0 15px rgba(158, 158, 158, 0.5);
    transform: translateY(-4px);
}

/* --- ÜBERSCHRIFT --- */
.ueberschrift {
    padding: 30px 20px 40px;
    text-align: center;
}

.ueberschrift h2 {
    color: #e2c08d;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: inline-block;
    position: relative;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.ueberschrift h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: #9e9e9e;
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.6);
}

/* --- HAUPTINHALT --- */
.main-content {
    padding: 0 20px 80px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

.left-box, .right-box {
    background: linear-gradient(135deg, #1e1e1e 0%, #111 100%);
    border: 2px solid #3e2723;
    border-top: 3px solid #5c3a21;
    border-radius: 4px;
    padding: 30px;
    text-align: left;
    color: #d3d3d3;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0,0,0,0.5);
}

.left-box {
    flex: 2;
    min-height: 1000px;
    min-width: 1100px;
}

.right-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.left-box h3, .right-box h3 {
    color: #e2c08d;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #5c3a21;
    text-shadow: 1px 1px 2px #000;
}

.right-box h3 {
    font-size: 1.2rem;
    text-align: center;
}

/* --- FACTION BALANCE --- */
.faction-images-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.faction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
}

.faction-item img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.8));
}

.faction-percent {
    margin-top: 12px;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

.text-aol { color: #ffeb7b; text-shadow: 0 0 8px rgba(255, 235, 123, 0.4); }
.text-uof { color: #ff4d4d; text-shadow: 0 0 8px rgba(255, 77, 77, 0.4); }

.server-time {
    text-align: center;
    color: #9e9e9e;
    font-size: 0.95rem;
    margin: 15px 0;
    letter-spacing: 1px;
}

.box-divider {
    height: 1px;
    background-color: #3e2723;
    margin: 20px 0;
    width: 100%;
}

/* --- SERVER STATUS --- */
.status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.status-row {
    display: grid;
    grid-template-columns: 30px 1fr 60px;
    align-items: center;
    width: 100%;
    max-width: 280px;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 1px dashed #3e2723;
}

.status-row:last-child {
    border-bottom: none;
}

.status-row i { font-size: 1.1rem; text-align: left; }
.status-text { text-align: left; padding-left: 5px; color: #b0a090; }
.status-count { text-align: right; font-family: monospace; color: #fff; }

.status-online { color: #9e9e9e; }
.status-aol { color: #ffeb7b; }
.status-uof { color: #ff4d4d; }

.stats-overview {
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.stat-main {
    margin: 5px 0;
    color: #e2c08d;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.class-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.class-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 220px;
    padding: 4px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.aol-theme .class-row { color: #ffeb7b; }
.uof-theme .class-row { color: #ff4d4d; }
.count-value { color: #fff; font-family: monospace; }

/* --- ERROR MESSAGE --- */
.error-msg-top {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(20, 0, 0, 0.95);
    color: #ff4d4d;
    border: 2px solid #8b0000;
    border-radius: 4px;
    padding: 15px 30px;
    z-index: 9999;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* --- UCP DROPDOWN --- */
.ucp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.ucp-list li { margin-bottom: 5px; }

.ucp-list li a {
    display: block;
    padding: 8px 10px;
    color: #d3d3d3;
    font-size: 0.9rem;
    font-family: 'Jost', sans-serif;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.ucp-list li a i {
    margin-right: 10px;
    color: #9e9e9e;
    width: 18px;
    text-align: center;
}

.ucp-list li a:hover {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding-left: 15px;
}

.ucp-list li a.logout-item:hover {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
}

.ucp-list li a.logout-item i { color: #ff4d4d; }
.ucp-list li a.admin-item { color: #ffeb7b; }

.ucp-list li a.admin-item:hover {
    background-color: rgba(255, 235, 123, 0.1);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 235, 123, 0.6);
}


/* v458: UCP notification badge + notification preview inside the header dropdown. */
.btn-ucp{position:relative;overflow:visible}
.ucp-notification-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:5px;border-radius:999px;background:#d94a43;border:1px solid #ff8a82;color:#fff;font-family:'Jost',sans-serif;font-size:10px;font-weight:900;line-height:1;box-shadow:0 0 0 2px rgba(0,0,0,.28),0 0 10px rgba(217,74,67,.4)}
.ucp-dropdown{width:min(620px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:none;overflow:visible;scrollbar-width:auto}
.ucp-dropdown>.ucp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px;align-items:start}
.ucp-dropdown>.ucp-list>.ucp-notification-menu,.ucp-dropdown>.ucp-list>.box-divider{grid-column:1/-1}
.ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu){margin-bottom:2px}
.ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu)>a{padding:7px 9px}
.ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu)>form{height:100%}
.ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu)>form>button{display:flex;align-items:center;width:100%;min-height:34px;padding:7px 9px!important;border-radius:4px;transition:all .2s ease}
.ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu)>form>button:hover{background-color:rgba(255,77,77,.1);color:#ff4d4d}
.ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu)>form>button i{margin-right:10px;width:18px;text-align:center;color:#ff4d4d}
.ucp-list .ucp-notification-menu{margin:0}
.ucp-notification-menu-head{margin-bottom:7px}
.ucp-list li a.ucp-notification-title-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 2px 7px;color:#efd6aa;font-weight:900}
.ucp-list li a.ucp-notification-title-link:hover{padding-left:2px;background:transparent;color:#fff}
.ucp-notification-title-link span{display:flex;align-items:center;gap:7px}
.ucp-notification-title-link strong{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(217,74,67,.18);border:1px solid rgba(255,110,100,.42);color:#ffaaa4;font-size:10px}
.ucp-notification-mini-list{display:grid;gap:5px}
.ucp-list li a.ucp-notification-mini{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) 8px;align-items:start;gap:8px;padding:8px;border:1px solid rgba(226,192,141,.1);border-radius:8px;background:rgba(255,255,255,.025);color:#cfc5b5}
.ucp-list li a.ucp-notification-mini:hover{padding-left:8px;background:rgba(226,192,141,.08);border-color:rgba(226,192,141,.28);color:#fff}
.ucp-list li a.ucp-notification-mini.is-unread{background:rgba(226,192,141,.08);border-color:rgba(226,192,141,.3)}
.ucp-notification-mini-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;background:rgba(226,192,141,.1);color:#e2c08d}
.ucp-notification-mini-icon i{margin:0!important;width:auto!important;color:inherit!important}
.ucp-notification-mini-copy{display:grid;gap:2px;min-width:0;line-height:1.25}
.ucp-notification-mini-copy b{color:#f0dfc3;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ucp-notification-mini-copy small{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#a99f90;font-size:10px;line-height:1.3}
.ucp-notification-mini-copy time{color:#786f62;font-size:9px;margin-top:1px}
.ucp-notification-dot{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#ef6d63;box-shadow:0 0 7px rgba(239,109,99,.7)}
.ucp-notification-empty{padding:11px 8px;border:1px dashed rgba(226,192,141,.16);border-radius:8px;color:#82796c;font-size:11px;text-align:center}
.ucp-notification-mark-form{margin:7px 0 0!important;padding:0!important}
.ucp-notification-mark-all{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 8px;border:1px solid rgba(88,214,141,.22);border-radius:6px;background:rgba(46,204,113,.07);color:#9fe5bb;font-family:inherit;font-size:11px;font-weight:800;cursor:pointer;transition:.15s ease}
.ucp-notification-mark-all:hover{background:rgba(46,204,113,.13);border-color:rgba(88,214,141,.42);color:#d8ffe7}
.ucp-notification-mark-all:disabled{opacity:.55;cursor:wait}
.ucp-list li a.ucp-notification-view-all{margin-top:7px;padding:7px 8px;text-align:center;color:#d9bd8c;font-size:11px;border:1px solid rgba(226,192,141,.14);background:rgba(0,0,0,.18)}
.ucp-list li a.ucp-notification-view-all:hover{padding-left:8px;background:rgba(226,192,141,.08);color:#fff}
.ucp-list li a.ucp-notification-view-all i{margin-right:6px}
.ucp-notification-divider{margin:10px 0!important}
@media(max-width:700px){
    .login-register .login-wrapper{justify-content:center}
    .login-register .ucp-dropdown{left:50%;right:auto;width:calc(100vw - 20px);max-width:390px;padding:14px;transform:translate(-50%,-10px);max-height:none;overflow:visible}
    .login-register .login-wrapper:hover .ucp-dropdown,.login-register .login-wrapper:focus-within .ucp-dropdown{transform:translate(-50%,0)}
    .ucp-dropdown>.ucp-list{display:block;text-align:center}
    .ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu){margin-bottom:3px}
    .ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu)>a{display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 10px}
    .ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu)>a:hover{padding-left:10px}
    .ucp-dropdown>.ucp-list>li:not(.ucp-notification-menu)>form>button{justify-content:center;text-align:center}
    .ucp-notification-mini-copy small{-webkit-line-clamp:1}
}
@media(max-width:400px){.login-register .ucp-dropdown{width:calc(100vw - 12px);padding:12px}}

/* --- FOOTER --- */
footer {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #3e2723;
    margin-top: 40px;
}

.footer-menu {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #b0a090;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.footer-menu a:hover {
    color: #9e9e9e;
    text-shadow: 0 0 8px rgba(158, 158, 158, 0.4);
}

.legal {
    background-color: #050505;
    padding: 20px;
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.legal a {
    color: #777;
    margin: 0 10px;
}

.legal a:hover { color: #e2c08d; }

.copyright {
    background-color: #000;
    padding: 15px;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- RESPONSIVES DESIGN --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-box {
        min-width: 100%;
        min-height: auto;
    }
    .main-header {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }
    .video-box {
        width: 100%;
    }
    .top-menu {
        flex-direction: column;
        height: auto;
        gap: 15px;
        padding: 20px;
    }
}
/* --- LANGUAGE SWITCH --- */
.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #5c3a21;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.language-switch a {
    color: #b0a090;
    padding: 2px 4px;
}

.language-switch a.active,
.language-switch a:hover {
    color: #ffeb7b;
    text-shadow: 0 0 6px rgba(255, 235, 123, 0.45);
}

.language-switch span {
    color: #5c3a21;
}

.currency-icon{width:18px;height:18px;display:inline-block;vertical-align:-4px;object-fit:contain;margin-right:6px;filter:drop-shadow(0 0 6px rgba(226,192,141,.35));image-rendering:auto}.currency-icon.small{width:16px;height:16px;vertical-align:-3px;margin-right:5px}.currency-icon.ucp-point-icon{width:20px;height:20px;vertical-align:-5px}.pm-currency .currency-icon{width:19px;height:19px;vertical-align:-5px}.mall-price .currency-icon,.wheel-cost .currency-icon,.wr-badge .currency-icon{width:17px;height:17px;vertical-align:-4px}.mall-chip,.wheel-chip{display:inline-flex;align-items:center;gap:6px}.mall-chip .currency-icon,.wheel-chip .currency-icon{margin-right:0}.pm-bal .currency-icon,.pm-currency .currency-icon{margin-right:0}

/* --- HEADER PROMO: LOTTERY + LUCKY WHEEL --- */
.header-promo {
    margin-left: auto;
    width: min(430px, 38vw);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.header-promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px 17px;
    text-decoration: none;
    color: #f5dfb7;
    border: 1px solid rgba(226, 192, 141, 0.34);
    border-radius: 16px;
    background: radial-gradient(circle at 20% 0%, rgba(255, 223, 127, 0.18), transparent 34%), linear-gradient(135deg, rgba(20, 15, 10, 0.88), rgba(5, 5, 5, 0.88));
    box-shadow: 0 14px 35px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.035);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
    backdrop-filter: blur(2px);
}
.header-promo-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 224, 130, .08);
    pointer-events: none;
}
.header-promo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 224, 154, .7);
    box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 24px rgba(226,192,141,.16);
    filter: brightness(1.06);
}
.header-promo-lottery {
    background: radial-gradient(circle at 18% 0%, rgba(57,240,255,.2), transparent 38%), linear-gradient(135deg, rgba(11, 25, 25, 0.9), rgba(5, 5, 5, 0.9));
    border-color: rgba(57, 240, 255, .32);
}
.header-promo-wheel {
    background: radial-gradient(circle at 18% 0%, rgba(255, 188, 76, .24), transparent 38%), linear-gradient(135deg, rgba(35, 19, 8, .9), rgba(5, 5, 5, .9));
}
.header-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(226,192,141,.25);
    color: #e2c08d;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .35px;
}
.header-promo-title {
    font-family: 'Cinzel', serif;
    color: #fff2ce;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 0 14px rgba(0,0,0,.75);
}
.header-promo-value {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 1000;
    line-height: 1.1;
    text-shadow: 0 0 16px rgba(57,240,255,.25);
}
.header-promo-value .currency-icon.small {
    width: 24px;
    height: 24px;
}
.header-promo-meta {
    color: #c9b894;
    font-size: 12px;
    font-weight: 700;
}
.header-promo-meta .currency-icon.mini {
    width: 14px;
    height: 14px;
    margin: 0 2px -2px 2px;
}
.header-promo-countdown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 2px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(57,240,255,.28);
    background: rgba(57,240,255,.09);
    color: #dffcff;
    font-weight: 900;
    font-size: 12px;
}
.header-promo-countdown.done {
    border-color: rgba(255,205,98,.45);
    background: rgba(255,205,98,.13);
    color: #ffdf9f;
}
.header-promo-cta {
    margin-top: 4px;
    color: #ffdf9f;
    font-weight: 1000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .25px;
}

@media (max-width: 980px) {
    .main-header {
        height: auto;
        min-height: 420px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 28px 24px;
    }
    .header-promo {
        width: 100%;
        margin-left: 0;
    }
    .video-box {
        max-width: 100%;
    }
    .video-box iframe {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .header-promo-title { font-size: 16px; }
    .header-promo-value { font-size: 20px; }
    .header-promo-card { padding: 13px; }
}

/* --- HEADER EVENT AD: EMERALD LOTTERY (design from provided example, v199) --- */
.main-header {
    justify-content: flex-start;
    gap: 30px;
}
.header-ad-box {
    position: relative;
    width: min(560px, 31vw);
    max-width: 560px;
    min-height: 285px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(226,192,141,.42);
    background: radial-gradient(circle at 18% 8%, rgba(57,240,255,.18), transparent 34%),
                radial-gradient(circle at 82% 18%, rgba(255,189,83,.18), transparent 35%),
                linear-gradient(135deg, rgba(8,8,10,.94), rgba(24,14,7,.92));
    box-shadow: 0 22px 60px rgba(0,0,0,.68), inset 0 0 0 1px rgba(255,255,255,.04);
}
.header-ad-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.06), transparent 28%, transparent 70%, rgba(226,192,141,.08));
    pointer-events: none;
}
.header-ad-bg {
    position: absolute;
    inset: -40px -60px auto auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57,240,255,.24), transparent 64%);
    filter: blur(1px);
    opacity: .9;
}
.header-ad-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 22px 24px;
}
.header-ad-main,
.header-ad-side {
    text-decoration: none;
    color: #f5dfb7;
}
.header-ad-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 4px 0;
}
.header-ad-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(226,192,141,.28);
    background: rgba(0,0,0,.38);
    color: #e2c08d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.header-ad-title {
    font-family: 'Cinzel', serif;
    color: #fff1cf;
    font-size: clamp(26px, 2.7vw, 42px);
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0,0,0,.86);
}
.header-ad-jackpot {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: clamp(30px, 3.3vw, 54px);
    line-height: 1;
    font-weight: 1000;
    text-shadow: 0 0 24px rgba(57,240,255,.36), 0 4px 22px rgba(0,0,0,.9);
}
.header-ad-jackpot .currency-icon.small {
    width: 36px;
    height: 36px;
    margin-right: 0;
    filter: drop-shadow(0 0 14px rgba(57,240,255,.65));
}
.header-ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #d5c5a5;
    font-weight: 800;
    font-size: 13px;
}
.header-ad-meta > span,
.header-ad-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(226,192,141,.18);
    background: rgba(0,0,0,.32);
}
.header-ad-meta .currency-icon.mini,
.header-ad-side-meta .currency-icon.mini {
    width: 15px;
    height: 15px;
    margin: 0 1px -2px 1px;
}
.header-ad-countdown {
    border-color: rgba(57,240,255,.32);
    background: rgba(57,240,255,.10);
    color: #dffcff;
    font-weight: 1000;
    font-size: 14px;
}
.header-ad-countdown.done {
    border-color: rgba(255,205,98,.48);
    background: rgba(255,205,98,.14);
    color: #ffdf9f;
}
.header-ad-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(226,192,141,.24), rgba(92,58,33,.48));
    border: 1px solid rgba(226,192,141,.38);
    color: #ffe3ad;
    font-size: 13px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.header-ad-side {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,188,76,.16), rgba(0,0,0,.38));
    border: 1px solid rgba(226,192,141,.24);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.header-ad-main:hover .header-ad-cta,
.header-ad-side:hover {
    transform: translateY(-1px);
    border-color: rgba(255,224,154,.66);
    background: linear-gradient(135deg, rgba(255,188,76,.22), rgba(0,0,0,.44));
}
.header-ad-side-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffe0a3;
    font-size: 24px;
    background: rgba(226,192,141,.13);
    border: 1px solid rgba(226,192,141,.3);
    box-shadow: 0 0 24px rgba(255,188,76,.16);
}
.header-ad-side-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.header-ad-side-title {
    font-family: 'Cinzel', serif;
    color: #fff1cf;
    font-size: 19px;
    font-weight: 900;
}
.header-ad-side-meta {
    color: #cdbb98;
    font-size: 12px;
    font-weight: 800;
}
.header-ad-arrow {
    color: #ffdf9f;
}

@media (min-width: 1181px) and (max-width: 1500px) {
    .header-ad-box { width: min(520px, 36vw); }
    .header-ad-title { font-size: clamp(24px, 2.3vw, 36px); }
    .header-ad-jackpot { font-size: clamp(28px, 2.8vw, 46px); }
}

@media (max-width: 1180px) {
    .header-ad-box { width: min(520px, 48vw); }
}
@media (max-width: 980px) {
    .header-ad-box { width: 100%; min-height: 0; }
    .header-ad-content { min-height: 0; }
}
@media (max-width: 640px) {
    .header-ad-content { padding: 18px; }
    .header-ad-meta { flex-direction: column; align-items: flex-start; }
    .header-ad-side { align-items: flex-start; }
}


/* v312 test: optional responsive/accessibility polish controlled by feature flag. */
body.v312-polish :focus-visible {
    outline: 2px solid #e2c08d;
    outline-offset: 3px;
}
body.v312-polish img { max-width: 100%; }
body.v312-polish button,
body.v312-polish input,
body.v312-polish select,
body.v312-polish textarea { font: inherit; }
body.v312-polish .left-box,
body.v312-polish .right-box { overflow-wrap: anywhere; }
@media (max-width: 1180px) {
    body.v312-polish .container { flex-direction: column; width: 100%; }
    body.v312-polish .left-box { min-width: 0; width: 100%; min-height: 0; }
    body.v312-polish .right-sidebar { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.v312-polish .top-menu { height: auto; min-height: 80px; flex-wrap: wrap; }
    body.v312-polish .menu-links { display: flex; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 700px) {
    body.v312-polish .main-content { padding-left: 10px; padding-right: 10px; }
    body.v312-polish .left-box,
    body.v312-polish .right-box { padding: 16px; }
    body.v312-polish .right-sidebar { grid-template-columns: 1fr; gap: 14px; }
    body.v312-polish .menu-links a { padding: 8px 14px; font-size: .95rem; }
    body.v312-polish button,
    body.v312-polish input:not([type="hidden"]),
    body.v312-polish select { min-height: 42px; }
    body.v312-polish input,
    body.v312-polish select,
    body.v312-polish textarea { font-size: 16px; }
    body.v312-polish table { max-width: 100%; }
}

/* v315: rotating header promotion slider */
.header-ad-content{padding:0;min-height:305px}
.header-ad-stage{position:relative;min-height:305px}
.header-ad-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transform:translateX(14px) scale(.992);pointer-events:none;transition:opacity .42s ease,transform .42s ease,visibility .42s;display:flex}
.header-ad-slide.active{opacity:1;visibility:visible;transform:translateX(0) scale(1);pointer-events:auto;z-index:2}
.header-ad-slide .header-ad-main{width:100%;min-height:305px;box-sizing:border-box;padding:26px 28px 48px}
.header-ad-main-feature{justify-content:flex-start}
.header-ad-feature-copy{display:block;max-width:470px;color:#d6c6ad;font-size:15px;line-height:1.48;text-shadow:0 2px 10px rgba(0,0,0,.72)}
.header-ad-feature-pills{display:flex;flex-wrap:wrap;gap:8px;color:#d5c5a5;font-weight:800;font-size:12px}
.header-ad-feature-pills>span{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(226,192,141,.18);border-radius:999px;background:rgba(0,0,0,.31)}
.header-ad-search-preview{display:flex;align-items:center;gap:10px;width:min(360px,100%);box-sizing:border-box;padding:10px 13px;border-radius:10px;border:1px solid rgba(226,192,141,.23);background:rgba(0,0,0,.36);color:#8f836f;font-size:13px}
.header-ad-search-preview i{color:#e2c08d}
.header-ad-dots{position:absolute;z-index:8;left:50%;bottom:13px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 9px;border-radius:999px;background:rgba(0,0,0,.32);border:1px solid rgba(226,192,141,.12);backdrop-filter:blur(7px)}
.header-ad-dot{appearance:none;width:8px;height:8px;padding:0;border-radius:999px;border:1px solid rgba(226,192,141,.52);background:rgba(226,192,141,.17);cursor:pointer;transition:width .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}
.header-ad-dot:hover,.header-ad-dot:focus-visible{transform:scale(1.15);background:rgba(226,192,141,.48);outline:none}
.header-ad-dot.active{width:25px;background:#e2c08d;border-color:#ffe0aa;box-shadow:0 0 13px rgba(226,192,141,.48)}
.header-ad-mall-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;max-width:500px}
.header-ad-mall-item{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid rgba(226,192,141,.18);border-radius:10px;background:rgba(0,0,0,.32)}
.header-ad-mall-item img{width:36px;height:36px;min-width:36px;object-fit:contain;border-radius:7px;background:#070707;border:1px solid rgba(226,192,141,.24)}
.header-ad-mall-item-text{display:flex;flex-direction:column;min-width:0;gap:3px}
.header-ad-mall-item-text b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f2d6a7;font-size:11px}
.header-ad-mall-item-text small{display:flex;align-items:center;gap:3px;color:#ffdf8d;font-weight:900;font-size:10px;white-space:nowrap}
.header-ad-mall-item-text .currency-icon.mini{width:13px;height:13px;margin:0}
.header-ad-main-mall .header-ad-title{font-size:clamp(25px,2.4vw,38px)}
@media (prefers-reduced-motion:reduce){.header-ad-slide,.header-ad-dot{transition:none}}
@media(max-width:640px){.header-ad-content,.header-ad-stage,.header-ad-slide .header-ad-main{min-height:330px}.header-ad-slide .header-ad-main{padding:20px 20px 46px}.header-ad-feature-copy{font-size:13px}.header-ad-mall-items{grid-template-columns:1fr}.header-ad-mall-item:nth-child(n+3){display:none}.header-ad-title{font-size:26px}}

/* v316: keep hero CTA fully inside the rotating promo card */
.header-ad-box{min-height:350px}
.header-ad-content,.header-ad-stage{min-height:350px}
.header-ad-slide .header-ad-main{min-height:350px;padding:24px 28px 58px;gap:8px;overflow:hidden}
.header-ad-slide .header-ad-cta{flex:0 0 auto;margin-top:auto}
.header-ad-dots{bottom:14px}
@media(max-width:640px){
    .header-ad-box{min-height:365px}
    .header-ad-content,.header-ad-stage,.header-ad-slide .header-ad-main{min-height:365px}
    .header-ad-slide .header-ad-main{padding:20px 20px 58px;gap:8px}
}

/* v322: premium Web Mall highlight hero */
.header-ad-main-mall {
    position: relative;
    isolation: isolate;
}
.header-ad-main-mall::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 310px;
    height: 210px;
    right: -78px;
    top: -62px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,210,118,.17) 0%, rgba(57,240,255,.08) 38%, transparent 72%);
    filter: blur(7px);
    pointer-events: none;
}
.header-ad-main-mall .header-ad-kicker {
    border-color: rgba(242,202,123,.42);
    background: linear-gradient(180deg, rgba(36,29,16,.75), rgba(7,7,7,.52));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 7px 18px rgba(0,0,0,.2);
}
.header-ad-main-mall .header-ad-title {
    font-size: clamp(27px,2.55vw,39px);
    letter-spacing: .3px;
    margin-bottom: 1px;
}
.header-ad-main-mall .header-ad-mall-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 9px;
    width: 100%;
    max-width: none;
    margin-top: 1px;
}
.header-ad-main-mall .header-ad-mall-item {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 82px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(226,192,141,.25);
    border-radius: 13px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 42%),
        linear-gradient(160deg, rgba(23,20,14,.86), rgba(5,6,7,.82));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 9px 22px rgba(0,0,0,.25);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-ad-main-mall .header-ad-mall-item::after {
    content: "";
    position: absolute;
    inset: auto -20px -35px auto;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: rgba(226,192,141,.07);
    filter: blur(2px);
    pointer-events: none;
}
.header-ad-main-mall:hover .header-ad-mall-item {
    border-color: rgba(226,192,141,.36);
}
.header-ad-main-mall:hover .header-ad-mall-item:nth-child(1) { transform: translateY(-2px); }
.header-ad-main-mall:hover .header-ad-mall-item:nth-child(2) { transform: translateY(-3px); }
.header-ad-main-mall:hover .header-ad-mall-item:nth-child(3) { transform: translateY(-2px); }
.header-ad-mall-icon-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 25%, rgba(226,192,141,.18), rgba(0,0,0,.62) 72%);
    border: 1px solid rgba(226,192,141,.3);
    box-shadow: inset 0 0 18px rgba(226,192,141,.06), 0 7px 18px rgba(0,0,0,.32);
}
.header-ad-main-mall .header-ad-mall-item img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    object-fit: contain;
    border-radius: 9px;
    background: #080808;
    border: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,.035);
}
.header-ad-mall-star {
    position: absolute;
    right: -4px;
    top: -5px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #2a1805;
    font-size: 8px;
    background: linear-gradient(145deg,#fff0a6,#d99a39);
    border: 1px solid rgba(255,239,177,.85);
    box-shadow: 0 0 12px rgba(247,189,79,.5);
}
.header-ad-main-mall .header-ad-mall-item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 4px;
}
.header-ad-main-mall .header-ad-mall-item-text b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff0cb;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    line-height: 1.12;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.header-ad-main-mall .header-ad-mall-category {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9f927d;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .65px;
}
.header-ad-main-mall .header-ad-mall-price {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 3px;
    padding: 4px 7px 4px 5px;
    border-radius: 999px;
    color: #f2d79f;
    background: rgba(0,0,0,.36);
    border: 1px solid rgba(226,192,141,.18);
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}
.header-ad-main-mall .header-ad-mall-price strong {
    color: #ffe782;
    font-size: 10px;
    font-weight: 1000;
}
.header-ad-main-mall .header-ad-mall-price .currency-icon.mini {
    width: 14px;
    height: 14px;
    margin: 0;
    filter: drop-shadow(0 0 5px rgba(226,192,141,.4));
}
.header-ad-main-mall .header-ad-cta {
    min-width: 142px;
    justify-content: center;
    background: linear-gradient(135deg, rgba(110,73,32,.7), rgba(51,30,16,.92));
    border-color: rgba(238,198,123,.52);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 7px 18px rgba(0,0,0,.28);
}
.header-ad-main-mall:hover .header-ad-cta {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 9px 22px rgba(0,0,0,.34), 0 0 18px rgba(226,192,141,.12);
}
@media (max-width: 1180px) {
    .header-ad-main-mall .header-ad-mall-item {
        grid-template-columns: 48px minmax(0,1fr);
        min-height: 76px;
        padding: 9px;
        gap: 8px;
    }
    .header-ad-mall-icon-wrap { width: 48px; height: 48px; }
    .header-ad-main-mall .header-ad-mall-item img { width: 41px; height: 41px; min-width: 41px; }
    .header-ad-main-mall .header-ad-mall-item-text b { font-size: 11px; }
}
@media (max-width: 640px) {
    .header-ad-main-mall .header-ad-mall-items {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }
    .header-ad-main-mall .header-ad-mall-item {
        grid-template-columns: 46px minmax(0,1fr);
        min-height: 72px;
    }
    .header-ad-main-mall .header-ad-mall-item:nth-child(n+3) { display:none; }
    .header-ad-mall-icon-wrap { width:46px;height:46px; }
    .header-ad-main-mall .header-ad-mall-item img { width:39px;height:39px;min-width:39px; }
    .header-ad-main-mall .header-ad-title { font-size: 27px; }
}


/* v323: refined Web Mall currency display in hero cards */
.header-ad-main-mall .header-ad-mall-price {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    gap: 7px;
    padding: 4px 8px 4px 5px;
    border-radius: 9px;
    color: #f2d79f;
    background: linear-gradient(135deg, rgba(3,15,13,.72), rgba(13,10,6,.72));
    border: 1px solid rgba(84,218,178,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 4px 12px rgba(0,0,0,.18);
    white-space: nowrap;
    overflow: hidden;
}
.header-ad-main-mall .header-ad-mall-currency-icon {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: radial-gradient(circle at 50% 35%, rgba(76,232,194,.18), rgba(0,0,0,.46));
    border: 1px solid rgba(76,232,194,.20);
    box-shadow: 0 0 10px rgba(46,207,171,.10);
}
.header-ad-main-mall .header-ad-mall-price .header-ad-mall-currency-icon .currency-icon.mini {
    display: block;
    width: 17px;
    height: 17px;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(57,240,201,.28));
}
.header-ad-main-mall .header-ad-mall-price-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 1px;
    line-height: 1;
}
.header-ad-main-mall .header-ad-mall-price-copy strong {
    display: block;
    color: #fff0a8;
    font-size: 11px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: .05px;
    text-shadow: 0 0 8px rgba(255,221,112,.12);
}
.header-ad-main-mall .header-ad-mall-price-copy small {
    display: block;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8fcdb9;
    font-size: 7.5px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .48px;
}
@media (max-width: 1180px) {
    .header-ad-main-mall .header-ad-mall-price { gap: 5px; padding-right: 6px; }
    .header-ad-main-mall .header-ad-mall-currency-icon { width:20px;height:20px;flex-basis:20px; }
    .header-ad-main-mall .header-ad-mall-price .header-ad-mall-currency-icon .currency-icon.mini { width:15px;height:15px; }
    .header-ad-main-mall .header-ad-mall-price-copy strong { font-size:10px; }
    .header-ad-main-mall .header-ad-mall-price-copy small { font-size:7px;max-width:62px; }
}

/* v324: larger Web Mall hero cards with complete text */
.header-ad-main-mall .header-ad-mall-items{
    gap:12px;
    margin-top:4px;
}
.header-ad-main-mall .header-ad-mall-item{
    grid-template-columns:58px minmax(0,1fr);
    gap:11px;
    min-height:104px;
    padding:12px;
    align-items:center;
    border-radius:14px;
}
.header-ad-main-mall .header-ad-mall-item-text{
    gap:5px;
    overflow:visible;
}
.header-ad-main-mall .header-ad-mall-item-text b{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:anywhere;
    font-size:12px;
    line-height:1.22;
    min-height:29px;
}
.header-ad-main-mall .header-ad-mall-category{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    line-height:1.15;
}
.header-ad-main-mall .header-ad-mall-price{
    width:100%;
    max-width:none;
    box-sizing:border-box;
    overflow:visible;
    white-space:normal;
}
.header-ad-main-mall .header-ad-mall-price-copy small{
    max-width:none;
    overflow:visible;
    text-overflow:clip;
    white-space:normal;
    font-size:8px;
}
.header-ad-main-mall .header-ad-mall-price-copy strong{font-size:11px}
.header-ad-main-mall .header-ad-mall-currency-icon{flex:0 0 23px;width:23px;height:23px}
@media(max-width:1180px){
    .header-ad-main-mall .header-ad-mall-items{gap:8px}
    .header-ad-main-mall .header-ad-mall-item{grid-template-columns:48px minmax(0,1fr);gap:8px;padding:9px;min-height:96px}
    .header-ad-main-mall .header-ad-mall-item-text b{font-size:10.5px;min-height:26px}
    .header-ad-main-mall .header-ad-mall-price-copy small{font-size:7px}
}
@media(max-width:640px){
    .header-ad-main-mall .header-ad-mall-items{grid-template-columns:1fr;gap:7px}
    .header-ad-main-mall .header-ad-mall-item{grid-template-columns:52px minmax(0,1fr);min-height:76px}
    .header-ad-main-mall .header-ad-mall-item:nth-child(n+3){display:none}
    .header-ad-main-mall .header-ad-mall-item-text b{font-size:11px;min-height:0}
}

/* v325: centered premium Web Mall hero cards */
.header-ad-main-mall .header-ad-mall-items{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    width:100%;
    margin-top:4px;
}
.header-ad-main-mall .header-ad-mall-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    min-width:0;
    min-height:168px;
    padding:13px 10px 12px;
    gap:0;
    text-align:center;
    overflow:hidden;
    border-radius:15px;
    background:
        radial-gradient(circle at 50% 0%,rgba(226,192,141,.12),transparent 42%),
        linear-gradient(160deg,rgba(27,23,16,.94),rgba(5,6,7,.90));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 24px rgba(0,0,0,.28);
}
.header-ad-main-mall .header-ad-mall-item::after{
    inset:auto 50% -52px auto;
    transform:translateX(50%);
    width:110px;
    height:92px;
    background:rgba(226,192,141,.055);
}
.header-ad-main-mall:hover .header-ad-mall-item:nth-child(1),
.header-ad-main-mall:hover .header-ad-mall-item:nth-child(2),
.header-ad-main-mall:hover .header-ad-mall-item:nth-child(3){transform:translateY(-3px)}
.header-ad-main-mall .header-ad-mall-icon-wrap{
    width:64px;
    height:64px;
    flex:0 0 64px;
    margin:0 auto 9px;
    border-radius:14px;
    background:radial-gradient(circle at 50% 28%,rgba(226,192,141,.22),rgba(0,0,0,.7) 74%);
    border-color:rgba(226,192,141,.38);
    box-shadow:inset 0 0 20px rgba(226,192,141,.07),0 8px 20px rgba(0,0,0,.36);
}
.header-ad-main-mall .header-ad-mall-item img{
    width:55px;
    height:55px;
    min-width:55px;
    border-radius:10px;
}
.header-ad-main-mall .header-ad-mall-star{
    right:-4px;
    top:-5px;
    width:19px;
    height:19px;
    font-size:8px;
}
.header-ad-main-mall .header-ad-mall-item-text{
    display:flex;
    flex:1 1 auto;
    width:100%;
    min-width:0;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:4px;
    overflow:visible;
}
.header-ad-main-mall .header-ad-mall-item-text b{
    display:-webkit-box;
    width:100%;
    min-height:30px;
    max-height:32px;
    margin:0;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    white-space:normal;
    overflow-wrap:anywhere;
    text-overflow:clip;
    color:#fff1cf;
    font-size:12px;
    line-height:1.25;
    font-weight:900;
    text-align:center;
}
.header-ad-main-mall .header-ad-mall-category{
    display:block;
    width:100%;
    min-height:11px;
    margin:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    color:#a99b84;
    font-size:8px;
    line-height:1.15;
    font-weight:900;
    letter-spacing:.75px;
    text-transform:uppercase;
    text-align:center;
}
.header-ad-main-mall .header-ad-mall-price{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    max-width:calc(100% - 8px);
    min-height:29px;
    margin:auto auto 0;
    padding:4px 10px 4px 6px;
    gap:7px;
    box-sizing:border-box;
    overflow:visible;
    white-space:nowrap;
    border-radius:999px;
    background:linear-gradient(135deg,rgba(3,20,16,.84),rgba(17,12,6,.86));
    border:1px solid rgba(84,218,178,.25);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 5px 14px rgba(0,0,0,.24);
}
.header-ad-main-mall .header-ad-mall-currency-icon{
    display:grid;
    place-items:center;
    flex:0 0 21px;
    width:21px;
    height:21px;
    border-radius:7px;
    background:radial-gradient(circle at 50% 35%,rgba(76,232,194,.20),rgba(0,0,0,.52));
    border:1px solid rgba(76,232,194,.22);
}
.header-ad-main-mall .header-ad-mall-price .header-ad-mall-currency-icon .currency-icon.mini{
    width:16px;
    height:16px;
    margin:0;
}
.header-ad-main-mall .header-ad-mall-price>strong{
    color:#ffe99a;
    font-size:12px;
    line-height:1;
    font-weight:1000;
    letter-spacing:.1px;
    text-shadow:0 0 9px rgba(255,221,112,.16);
}
@media(max-width:1180px){
    .header-ad-main-mall .header-ad-mall-items{gap:8px}
    .header-ad-main-mall .header-ad-mall-item{min-height:158px;padding:11px 8px 10px}
    .header-ad-main-mall .header-ad-mall-icon-wrap{width:56px;height:56px;flex-basis:56px;margin-bottom:7px}
    .header-ad-main-mall .header-ad-mall-item img{width:48px;height:48px;min-width:48px}
    .header-ad-main-mall .header-ad-mall-item-text b{font-size:10.5px;min-height:27px;max-height:28px}
    .header-ad-main-mall .header-ad-mall-category{font-size:7.5px}
    .header-ad-main-mall .header-ad-mall-price{min-height:27px;padding:3px 8px 3px 5px;gap:5px}
    .header-ad-main-mall .header-ad-mall-price>strong{font-size:10.5px}
}
@media(max-width:640px){
    .header-ad-main-mall .header-ad-mall-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .header-ad-main-mall .header-ad-mall-item{min-height:145px;padding:10px 7px 9px}
    .header-ad-main-mall .header-ad-mall-item:nth-child(n+3){display:none}
    .header-ad-main-mall .header-ad-mall-icon-wrap{width:52px;height:52px;flex-basis:52px}
    .header-ad-main-mall .header-ad-mall-item img{width:44px;height:44px;min-width:44px}
    .header-ad-main-mall .header-ad-mall-item-text b{font-size:10px;min-height:25px;max-height:26px}
}


/* v328: Web Mall highlight price without currency icon */
.header-ad-main-mall .header-ad-mall-price{
    flex-direction:column;
    gap:1px;
    min-width:92px;
    padding:5px 12px 4px;
}
.header-ad-main-mall .header-ad-mall-price>strong{
    font-size:13px;
    line-height:1.05;
}
.header-ad-main-mall .header-ad-mall-price>small{
    display:block;
    color:#b9aa8f;
    font-size:7px;
    line-height:1.05;
    font-weight:900;
    letter-spacing:.65px;
    text-transform:uppercase;
}
@media(max-width:1180px){
    .header-ad-main-mall .header-ad-mall-price{min-width:80px;padding:4px 9px}
    .header-ad-main-mall .header-ad-mall-price>strong{font-size:11px}
    .header-ad-main-mall .header-ad-mall-price>small{font-size:6.5px}
}


/* v329: use the same configurable Web Mall icon effects in header highlights */
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-gold{
    border-color:#ffd159;
    box-shadow:0 0 14px rgba(255,209,89,.85),0 0 28px rgba(255,160,40,.42);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-blue{
    border-color:#4aa8ff;
    box-shadow:0 0 14px rgba(74,168,255,.85),0 0 28px rgba(74,168,255,.42);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-purple{
    border-color:#be65ff;
    box-shadow:0 0 14px rgba(190,101,255,.85),0 0 28px rgba(190,101,255,.42);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-red{
    border-color:#ff5252;
    box-shadow:0 0 14px rgba(255,82,82,.85),0 0 28px rgba(255,82,82,.42);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-green{
    border-color:#53ff96;
    box-shadow:0 0 14px rgba(83,255,150,.80),0 0 28px rgba(83,255,150,.38);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-orange{
    border-color:#ff8f3a;
    box-shadow:0 0 14px rgba(255,143,58,.85),0 0 28px rgba(255,143,58,.42);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-white{
    border-color:#fff;
    box-shadow:0 0 14px rgba(255,255,255,.90),0 0 28px rgba(226,192,141,.50);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-cyan{
    border-color:#39f0ff;
    box-shadow:0 0 14px rgba(57,240,255,.90),0 0 28px rgba(57,240,255,.42);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-effect-pink{
    border-color:#ff5cc5;
    box-shadow:0 0 14px rgba(255,92,197,.90),0 0 28px rgba(255,92,197,.42);
}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-anim-pulse{animation:headerMallIconPulse 1.9s ease-in-out infinite alternate}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-anim-softpulse{animation:headerMallIconSoftPulse 2.8s ease-in-out infinite}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-anim-blink{animation:headerMallIconBlink 1.1s steps(2,end) infinite}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-anim-spark{animation:headerMallIconSpark 1.35s ease-in-out infinite}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-anim-rotate{animation:headerMallIconRotateGlow 2.6s linear infinite}
.header-ad-main-mall .header-ad-mall-product-icon.mall-icon-anim-float{animation:headerMallIconFloat 2.4s ease-in-out infinite}
@keyframes headerMallIconPulse{from{filter:brightness(1)}to{filter:brightness(1.3)}}
@keyframes headerMallIconSoftPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.18)}}
@keyframes headerMallIconBlink{0%,100%{filter:brightness(1)}50%{filter:brightness(1.45)}}
@keyframes headerMallIconSpark{0%,100%{filter:brightness(1) saturate(1)}35%{filter:brightness(1.45) saturate(1.35)}55%{filter:brightness(.95) saturate(1)}}
@keyframes headerMallIconRotateGlow{from{filter:hue-rotate(0deg) brightness(1.12)}to{filter:hue-rotate(360deg) brightness(1.12)}}
@keyframes headerMallIconFloat{0%,100%{transform:translateY(0);filter:brightness(1.05)}50%{transform:translateY(-3px);filter:brightness(1.25)}}
@media (prefers-reduced-motion:reduce){
    .header-ad-main-mall .header-ad-mall-product-icon[class*="mall-icon-anim-"]{animation:none!important}
}

/* v330: Web Mall highlight item-name border + direct product links */
.header-ad-main-mall .header-ad-mall-item{
    color:inherit;
    text-decoration:none;
    cursor:pointer;
}
.header-ad-main-mall .header-ad-mall-item:focus-visible{
    outline:2px solid rgba(255,232,177,.92);
    outline-offset:2px;
}
.header-ad-main-mall .header-ad-mall-icon-wrap{
    border:2px solid var(--mall-item-border,#fff);
    box-shadow:
        0 0 0 1px rgba(0,0,0,.75),
        0 0 12px color-mix(in srgb,var(--mall-item-border,#fff) 48%,transparent),
        inset 0 0 20px rgba(226,192,141,.07),
        0 8px 20px rgba(0,0,0,.36);
}
@supports not (color: color-mix(in srgb, #fff 50%, transparent)){
    .header-ad-main-mall .header-ad-mall-icon-wrap{
        box-shadow:0 0 0 1px rgba(0,0,0,.75),inset 0 0 20px rgba(226,192,141,.07),0 8px 20px rgba(0,0,0,.36);
    }
}
.header-ad-main-mall .header-ad-mall-item:hover .header-ad-mall-icon-wrap,
.header-ad-main-mall .header-ad-mall-item:focus-visible .header-ad-mall-icon-wrap{
    filter:brightness(1.08);
}
.header-ad-main-mall>.header-ad-cta{
    text-decoration:none;
}


/* v331: header deep links + compact Web Mall highlight cards matching sidebar presentation */
#register-account,
#game-client,
#drop-finder,
#item-mall,
#emerald-lottery,
[id^="mall-product-"]{
    scroll-margin-top:96px;
}

.header-ad-main-mall .header-ad-mall-items{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;
    gap:10px;
    width:100%;
    margin-top:5px;
}
.header-ad-main-mall .header-ad-mall-item{
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    align-items:center;
    min-width:0;
    min-height:104px;
    padding:10px 9px;
    gap:9px;
    text-align:left;
    border-radius:13px;
    overflow:hidden;
    background:
        radial-gradient(circle at 5% 50%,rgba(226,192,141,.09),transparent 38%),
        linear-gradient(145deg,rgba(22,20,17,.97),rgba(7,8,8,.95));
    border:1px solid rgba(226,192,141,.25);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 18px rgba(0,0,0,.26);
}
.header-ad-main-mall .header-ad-mall-item:hover,
.header-ad-main-mall .header-ad-mall-item:focus-visible{
    transform:translateY(-2px)!important;
    border-color:rgba(226,192,141,.52);
    background:
        radial-gradient(circle at 8% 50%,rgba(226,192,141,.15),transparent 42%),
        linear-gradient(145deg,rgba(27,23,18,.98),rgba(8,9,9,.97));
}
.header-ad-main-mall .header-ad-mall-icon-wrap{
    width:52px;
    height:52px;
    min-width:52px;
    flex:0 0 52px;
    margin:0;
    align-self:center;
    border-radius:11px;
}
.header-ad-main-mall .header-ad-mall-item img{
    width:44px;
    height:44px;
    min-width:44px;
    border-radius:8px;
}
.header-ad-main-mall .header-ad-mall-star{
    width:17px;
    height:17px;
    right:-4px;
    top:-5px;
    font-size:7px;
}
.header-ad-main-mall .header-ad-mall-item-text{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    width:100%;
    min-width:0;
    gap:3px;
    text-align:left;
}
.header-ad-main-mall .header-ad-mall-item-text b{
    display:-webkit-box;
    width:100%;
    min-height:0;
    max-height:31px;
    margin:0;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    white-space:normal;
    overflow-wrap:anywhere;
    color:#fff0cf;
    font-size:10.5px;
    line-height:1.28;
    font-weight:900;
    text-align:left;
}
.header-ad-main-mall .header-ad-mall-category{
    display:block;
    width:100%;
    min-height:0;
    margin:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    color:#a99a83;
    font-size:7px;
    line-height:1.15;
    font-weight:900;
    letter-spacing:.55px;
    text-transform:uppercase;
    text-align:left;
}
.header-ad-main-mall .header-ad-mall-price{
    display:flex;
    flex-direction:row;
    align-items:baseline;
    justify-content:flex-start;
    width:100%;
    min-width:0;
    min-height:0;
    max-width:none;
    margin:3px 0 0;
    padding:0;
    gap:4px;
    overflow:visible;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    white-space:normal;
}
.header-ad-main-mall .header-ad-mall-price>strong{
    color:#ffe77f;
    font-size:11px;
    line-height:1.1;
    font-weight:1000;
}
.header-ad-main-mall .header-ad-mall-price>small{
    display:inline;
    color:#d6bd82;
    font-size:7px;
    line-height:1.1;
    font-weight:900;
    letter-spacing:.2px;
    text-transform:none;
}
@media(max-width:1180px){
    .header-ad-main-mall .header-ad-mall-items{gap:7px}
    .header-ad-main-mall .header-ad-mall-item{grid-template-columns:46px minmax(0,1fr);min-height:96px;padding:9px 7px;gap:7px}
    .header-ad-main-mall .header-ad-mall-icon-wrap{width:46px;height:46px;min-width:46px;flex-basis:46px}
    .header-ad-main-mall .header-ad-mall-item img{width:39px;height:39px;min-width:39px}
    .header-ad-main-mall .header-ad-mall-item-text b{font-size:9.5px;max-height:29px}
    .header-ad-main-mall .header-ad-mall-price>strong{font-size:10px}
    .header-ad-main-mall .header-ad-mall-price>small{font-size:6.5px}
}
@media(max-width:640px){
    .header-ad-main-mall .header-ad-mall-items{grid-template-columns:1fr;gap:7px}
    .header-ad-main-mall .header-ad-mall-item{grid-template-columns:50px minmax(0,1fr);min-height:70px;padding:8px 10px;gap:10px}
    .header-ad-main-mall .header-ad-mall-item:nth-child(n+3){display:none}
    .header-ad-main-mall .header-ad-mall-icon-wrap{width:50px;height:50px;min-width:50px;flex-basis:50px}
    .header-ad-main-mall .header-ad-mall-item img{width:42px;height:42px;min-width:42px}
    .header-ad-main-mall .header-ad-mall-item-text b{font-size:11px;max-height:30px}
    .header-ad-main-mall .header-ad-mall-category{font-size:7.5px}
    .header-ad-main-mall .header-ad-mall-price>strong{font-size:11px}
    .header-ad-main-mall .header-ad-mall-price>small{font-size:7px}
}

/* v332: public hero links land above the social buttons, not inside a subsection. */
#page-content-top{scroll-margin-top:18px}
.social-btn.is-disabled{opacity:.42;cursor:default;pointer-events:none}

/* v340: dropdown categories use the exact same visual language as normal top-menu links. */
.menu-links{display:flex;align-items:center;flex-wrap:wrap}
.top-menu-dropdown{position:relative;display:inline-flex;align-items:center}
.top-menu-dropdown-trigger{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 28px;
    margin:0;
    border:0;
    border-radius:4px;
    background:transparent;
    color:#b0a090;
    font-family:'Cinzel',serif;
    font-size:1.1rem;
    font-weight:bold;
    line-height:normal;
    appearance:none;
    -webkit-appearance:none;
    cursor:pointer;
    white-space:nowrap;
    transition:all .3s ease;
}
.top-menu-dropdown-trigger:hover,
.top-menu-dropdown:hover .top-menu-dropdown-trigger,
.top-menu-dropdown.open .top-menu-dropdown-trigger,
.top-menu-dropdown:focus-within .top-menu-dropdown-trigger{
    background-color:rgba(0,0,0,.5);
    color:#9e9e9e;
    text-shadow:0 0 8px rgba(158,158,158,.5);
    outline:none;
}
.top-menu-dropdown-trigger::before,.top-menu-dropdown-trigger::after{
    content:'';
    position:absolute;
    top:50%;
    width:6px;
    height:6px;
    background-color:#9e9e9e;
    box-shadow:0 0 6px #9e9e9e;
    opacity:0;
    transition:all .3s ease;
}
.top-menu-dropdown-trigger::before{left:18px;transform:translateY(-50%) rotate(45deg)}
.top-menu-dropdown-trigger::after{right:18px;transform:translateY(-50%) rotate(45deg)}
.top-menu-dropdown-trigger:hover::before,
.top-menu-dropdown:hover .top-menu-dropdown-trigger::before,
.top-menu-dropdown.open .top-menu-dropdown-trigger::before,
.top-menu-dropdown:focus-within .top-menu-dropdown-trigger::before{opacity:1;left:10px}
.top-menu-dropdown-trigger:hover::after,
.top-menu-dropdown:hover .top-menu-dropdown-trigger::after,
.top-menu-dropdown.open .top-menu-dropdown-trigger::after,
.top-menu-dropdown:focus-within .top-menu-dropdown-trigger::after{opacity:1;right:10px}

/* The child pages start directly below the normal-looking parent menu item. */
.top-menu-dropdown-panel{
    position:absolute;
    top:100%;
    left:50%;
    transform:translate(-50%,4px);
    min-width:max(100%,210px);
    padding:5px;
    background:linear-gradient(180deg,rgba(18,18,18,.99),rgba(7,7,7,.99));
    border:1px solid rgba(92,58,33,.72);
    border-top:1px solid rgba(158,158,158,.28);
    border-radius:0 0 5px 5px;
    box-shadow:0 14px 30px rgba(0,0,0,.62);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease,transform .18s ease,visibility .18s;
    z-index:100;
}
.top-menu-dropdown:hover .top-menu-dropdown-panel,
.top-menu-dropdown.open .top-menu-dropdown-panel,
.top-menu-dropdown:focus-within .top-menu-dropdown-panel{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate(-50%,0);
}
.menu-links .top-menu-dropdown-panel a{
    display:block;
    padding:9px 13px;
    border-radius:3px;
    color:#b0a090;
    font-family:'Cinzel',serif;
    font-size:.94rem;
    text-align:left;
    white-space:nowrap;
    transition:all .22s ease;
}
.menu-links .top-menu-dropdown-panel a:hover,
.menu-links .top-menu-dropdown-panel a:focus{
    background-color:rgba(0,0,0,.5);
    color:#9e9e9e;
    text-shadow:0 0 7px rgba(158,158,158,.35);
    outline:none;
}
.menu-links .top-menu-dropdown-panel a::before,.menu-links .top-menu-dropdown-panel a::after{display:none!important}
@media(max-width:1180px){
    .top-menu-dropdown-trigger{padding:8px 18px;font-size:1rem}
    .top-menu-dropdown-trigger::before,.top-menu-dropdown-trigger::after{display:none}
}
@media(max-width:768px){
    .menu-links{width:100%;justify-content:center;gap:2px}
    .top-menu-dropdown{position:relative}
    .top-menu-dropdown-panel{min-width:200px;max-width:min(280px,90vw)}
    .menu-links .top-menu-dropdown-panel a{white-space:normal}
}
@media(max-width:700px){
    body.v312-polish .top-menu-dropdown-trigger{padding:8px 14px;font-size:.95rem}
}

/* v343: dropdown parent label must use the exact typography of normal top-menu links.
   The global * selector assigns Jost to the nested span, so reset it to inherit
   Cinzel, size and weight from the dropdown trigger. */
.menu-links > .top-menu-dropdown > .top-menu-dropdown-trigger > span{
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    line-height:inherit;
    letter-spacing:inherit;
}

/* v344: keep dropdown category typography pixel-identical to direct top-menu links.
   body.v312-polish button { font: inherit; } has higher specificity than the old
   trigger rule, so define both link types together here. */
body.v312-polish .menu-links > a,
body.v312-polish .menu-links > .top-menu-dropdown > .top-menu-dropdown-trigger,
body.v312-polish .menu-links > .top-menu-dropdown > .top-menu-dropdown-trigger > span {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: normal;
    letter-spacing: normal;
    text-transform: none;
}
@media (max-width: 700px) {
    body.v312-polish .menu-links > a,
    body.v312-polish .menu-links > .top-menu-dropdown > .top-menu-dropdown-trigger,
    body.v312-polish .menu-links > .top-menu-dropdown > .top-menu-dropdown-trigger > span {
        font-size: .95rem;
    }
}
