/* Public mobile layout. Loaded after the legacy desktop stylesheet. */
@media (max-width: 1099px) {
    html, body { min-width: 0; width: 100%; --wrap: 20px; }
    .wrap { min-width: 0; }
    .header { height: auto; min-height: 100px; flex-wrap: wrap; gap: 16px; padding: 20px; }
    .header .logo { flex: 0 0 160px; width: 160px; height: 56px; margin: 0; background-size: contain !important; background-position: center !important; }
    .header .menu { order: 3; width: 100%; margin: 0; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
    .header .menu li { margin: 0; }
    .header .menu a { display: flex; align-items: center; min-height: 44px; }
    .header-right { gap: 12px; min-width: 0; }
    .header-right .offdrop-btn-h { padding: 0 16px; }
    .header-right .login-flex { gap: 10px; }
    .header-right .login-flex a { margin: 0; }
    .live-panel { height: auto; min-height: 90px; flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
    .live-panel .live-stats { flex-wrap: wrap; gap: 14px; }
    .live-panel .live-stats li { margin: 0; font-size: 12px; }
    .container { margin-left: 20px; margin-right: 20px; min-width: 0; }
    .bonus-flexs { padding: 0 !important; gap: 16px; margin-bottom: 28px; }
    .bonus-flexs .bonus { margin: 0; padding: 16px; width: 100% !important; height: auto; min-height: 104px; border-radius: 18px; background: #141416; }
    .bonus-flexs .bonus:after { display: none; }
    .bonus-flexs .bonus:before { inset: 0; transform: none; border-radius: 18px; }
    .bonus-item-wp { width: 100px; flex-shrink: 0; margin: 0; }
    .bonus-item-pole { min-width: 0; }
    .bonus-btn { margin-left: auto; }
    .case-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; margin: 0; padding: 0 0 32px; }
    .case-loop .case { width: 100%; margin: 0; min-width: 0; }
    .case-loop .case-in { width: 100%; min-width: 0; }
    .case-loop .case-images { width: 100%; height: auto; aspect-ratio: 1.2; margin: 16px 0 -8px; }
    .case-loop .case-images img { width: 125%; height: auto; max-width: none; }
    .case-loop .case-name { font-size: 13px; overflow-wrap: anywhere; }
    .case-title2:after { max-width: 100%; }
    .footer { height: auto; min-height: 150px; margin: 0; padding: 20px 20px 76px; }
    .ftext { height: auto; min-height: 100px; width: 100%; background: none; }
    .ftext p { width: auto; padding: 0; line-height: 1.65; overflow-wrap: anywhere; }
    .ftext p:first-child:after { max-width: 100%; }
}
@media (max-width: 600px) {
    html, body { --wrap: 14px; }
    .header { padding: 14px; gap: 12px; }
    .header .logo { flex-basis: 130px; width: 130px; height: 48px; }
    .header-right { display: contents; }
    .header-right > span { margin-left: auto; }
    .header-right .offdrop-btn-h { min-height: 44px; }
    .header-right .login-flex { order: 4; width: 100%; }
    .header-right .login-flex a { flex: 1; width: auto; min-height: 44px; padding: 0 22px; }
    .header .menu { gap: 4px 16px; justify-content: space-between; }
    .header .menu a { font-size: 12px; }
    .header .mini-profile { order: 4; width: 100%; justify-content: center; }
    .header .mini-profile-pole { width: auto; flex: 1; max-width: 230px; }
    .live { height: 110px; }
    .live:before, .live:after { display: none; }
    .live-ul { margin-left: 0; }
    .live-item { width: 125px; height: 110px; background-size: 100% 100%; }
    .live-case, .live-weapon { height: 84px; }
    .live-panel { padding: 14px; gap: 8px; }
    .live-panel .live-nav { justify-content: space-between; width: 100%; }
    .live-panel .live-nav li { min-height: 40px; display: flex; align-items: center; font-size: 12px; margin-right: 0; }
    .live-panel .live-stats { width: 100%; justify-content: space-between; gap: 6px; }
    .live-panel .live-stats li { font-size: 10px; }
    .live-panel .live-stats li:before { display: none; }
    .live-panel .live-stats li p:nth-child(2) { margin-left: 4px; color: #a1adbb; }
    .container { margin: 0 14px; padding-bottom: 24px; }
    .bonus-flexs .bonus { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; padding: 16px; }
    .bonus-flexs .bonus > span { grid-column: 1; grid-row: 2; }
    .bonus-flexs .bonus .bonus-item { grid-column: 1 / -1; grid-row: 1; gap: 10px; }
    .bonus-flexs .bonus .bonus-item-wp { width: 58px; height: 58px; }
    .bonus-flexs .bonus .bonus-item-wp img { max-width: 64px; }
    .bonus-flexs .bonus .bonus-btn { grid-column: 2; grid-row: 2; padding: 0 14px; min-height: 44px; margin: 0; font-size: 12px; }
    .bonus-timer .countdown-amount { width: 34px; height: 40px; font-size: 15px; }
    .bonus-timer .countdown-amount:after { width: 34px; height: 40px; }
    .bonus-timer .countdown-section:not(:last-child) .countdown-period:after { margin: 0 3px; }
    .case-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
    .case-title span:before, .case-title span:after { width: 28px; margin: 0 10px; }
    .case-title2 { font-size: 12px; text-align: center; padding: 24px 4px 0; }
    .case-loop .case-price { max-width: 100%; box-sizing: border-box; }
    .case-loop .case-new { right: 4px; }
    .incognito { padding: 0; }
    .ftext p:first-child, .ftext p:nth-child(2) { font-size: 12px; }
}
@media (max-width: 1099px) {
    .header .logo { width: 195px; flex-basis: 195px; height: 78px; zoom: .82; }
}
@media (max-width: 600px) {
    .header .logo { width: 195px; flex-basis: 195px; height: 78px; zoom: .67; }
}
/* Corrections from phone and tablet browser review. */
@media (max-width: 1099px) {
    .case-loop .case-images { position: relative; aspect-ratio: 1; height: auto; margin: 8px 0 0; }
    .case-loop .case-images img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
    .case-loop .case-in:hover .case-images img { transform: none; }
}
@media (max-width: 600px) {
    .header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
    .header .logo { grid-column: 1; grid-row: 1; width: 130px; height: 52px; zoom: 1; flex-basis: auto; position: relative; background: none !important; }
    .header .logo:after { content: ''; position: absolute; inset: 0; background: url('/images/mtcase-logo.png?v=2') no-repeat center / contain; }
    .header-right > span { grid-column: 2; grid-row: 1; margin: 0; }
    .header .menu { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: auto auto auto auto; gap: 4px; justify-content: space-between; min-width: 0; }
    .header .menu a { font-size: 11px; }
    .header .menu .ico-vk { font-size: 19px; }
    .header-right .login-flex, .header .mini-profile { grid-column: 1 / -1; grid-row: 3; }
    .header-right .offdrop-btn-h { padding: 0 12px; font-size: 12px; }
    .bonus-flexs .bonus .bonus-item-pole p:nth-child(2) { color: #a1adbb; }
    .case-loop { gap: 20px 12px; }
    .case-loop .case-images { aspect-ratio: 1; }
    .footer { padding-bottom: 28px; }
    #wot-snow-toggle { position: relative; display: flex; width: max-content; margin: 0 14px 20px auto; right: auto; bottom: auto; }
}
@media (max-width: 600px) {
    .header .logo:after { background-color: #0d1a29; }
}
@media (max-width: 350px) {
    .header .menu { grid-template-columns: repeat(3, minmax(0, 1fr)) 22px; }
    .header .menu a { font-size: 10px; white-space: nowrap; }
    .header .menu li:last-child { justify-self: end; }
    .live-panel .live-nav li { font-size: 11px; padding-left: 25px; }
}
/* One consistent case grid across phone, tablet and desktop widths. */
#app .container > .case-loop, #app .container .incognito .case-loop {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 20px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 0 40px;
    box-sizing: border-box;
}
#app .case-loop > .case { width: 100%; min-width: 0; margin: 0; }
#app .case-loop .case-in { width: 100%; min-width: 0; max-width: 300px; margin: 0 auto; }
#app .case-loop .case-images { position: relative; width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
#app .case-loop .case-images img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; transform: none; }
#app .case-loop .case-pole {
    margin-top: -40px;
}
#app .case-loop .case-name { font-size: clamp(12px, 1vw, 15px); overflow-wrap: anywhere; }
@media (min-width: 1100px) and (max-width: 1399px) {
    #app .container { margin-left: 32px; margin-right: 32px; }
}
@media (max-width: 1399px) {
    #app .container > .case-loop, #app .container .incognito .case-loop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
    #app .container > .case-loop, #app .container .incognito .case-loop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (max-width: 639px) {
    #app .container > .case-loop, #app .container .incognito .case-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
}
/* Solid raffle panels on compact screens, matching the supplied reference. */
@media (max-width: 600px) {
    #app .bonus-flexs { gap: 14px; }
    #app .bonus-flexs .bonus {
        background-color: #141416 !important;
        background-image: none !important;
        border: 1px solid rgba(255,255,255,.035);
        box-shadow: 0 8px 20px rgba(0,0,0,.14);
    }
    #app .bonus-flexs .bonus:before {
        background-color: #141416 !important;
        background-image: none !important;
        border-radius: inherit;
    }
    #app .bonus-flexs .bonus:after { display: none !important; }
    #app .bonus-flexs .bonus-new:before { background-image: none !important; }
}
/* Keep raffle cards visually consistent from phones through compact desktop widths. */
@media (max-width: 1099px) {
    #app .bonus-flexs { gap: 14px; }
    #app .bonus-flexs .bonus {
        background-color: #141416 !important;
        background-image: none !important;
        border: 1px solid rgba(255,255,255,.035);
        box-shadow: 0 8px 20px rgba(0,0,0,.14);
    }
    #app .bonus-flexs .bonus:before {
        background-color: #141416 !important;
        background-image: none !important;
        border-radius: inherit;
    }
    #app .bonus-flexs .bonus:after { display: none !important; }
    #app .bonus-flexs .bonus-new:before { background-image: none !important; }
}
/* Angled accent panel on the energy raffle card, echoing the regular raffle arrow. */
@media (max-width: 1099px) {
    #app .bonus-flexs .bonus-new { overflow: hidden; }
    #app .bonus-flexs .bonus-new:after {
        display: block !important;
        content: '';
        position: absolute;
        z-index: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: clamp(120px, 28%, 260px);
        border-radius: 0 18px 18px 0;
        background: linear-gradient(135deg, rgba(36,36,38,.96) 0%, rgba(28,29,32,.98) 72%, rgba(0,89,92,.72) 100%);
        clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%, 14% 52%);
        pointer-events: none;
    }
    #app .bonus-flexs .bonus-new > * { position: relative; z-index: 1; }
}
@media (max-width: 1099px) {
    #app .bonus-flexs .bonus-new:after { left: auto; }
}
/* Reuse the existing raffle arrow artwork for the energy card on desktop. */
@media (min-width: 1100px) {
    #app .bonus-flexs .bonus-new:before {
        background-image: url('/images/bonus.png') !important;
        background-repeat: no-repeat !important;
        background-position: right 0 !important;
    }
}
/* Live feed menu labels */
#app .live-nav li { font-size: 16px !important; }
/* 16px primary header navigation; keep live feed tabs at their original scale. */
#app .menu a { font-size: 16px !important; }
#app .live-nav li { font-size: 14.68px !important; }
/* Match the regular raffle card to the energy card's right-side arrow. */
@media (max-width: 1099px) {
    #app .bonus-flexs .bonus:not(.bonus-new):after {
        display: block !important;
        content: '';
        position: absolute;
        z-index: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: clamp(120px, 28%, 260px);
        border-radius: 0 18px 18px 0;
        background: linear-gradient(135deg, rgba(36,36,38,.96) 0%, rgba(28,29,32,.98) 72%, rgba(0,89,92,.72) 100%);
        clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%, 14% 52%);
        pointer-events: none;
    }
}
/* Hide rarity art behind prize icons on compact layouts; it shifts away from the icon. */
@media (max-width: 1099px) {
    #app .bonus-flexs .bonus-item-wp { background-image: none !important; }
}
@media (min-width: 1100px) {
    #app .bonus-flexs .bonus-new:before {
        transform: skewX(-4deg) !important;
        background-position: calc(100% + 20px) 0 !important;
    }
}
/* Use a rectangular accent instead of the diagonal raffle arrow below 1100px. */
@media (max-width: 1099px) {
    #app .bonus-flexs .bonus:after,
    #app .bonus-flexs .bonus-new:after {
        clip-path: none !important;
        border-radius: 0 18px 18px 0 !important;
        transform: skewX(-4deg) !important;
    }
}/* Keep raffle text above the angled accent on compact screens. */
@media (max-width: 1099px) {
    #app .bonus-flexs .bonus > * {
        position: relative;
        z-index: 1;
    }
}
/* Spread compact header navigation between the screen margins. */
@media (min-width: 601px) and (max-width: 1099px) {
    #app .header .menu {
        justify-content: space-between;
        padding-left: 60px;
        padding-right: 40px;
        box-sizing: border-box;
    }
}
/* Mobile bonus-left and collapsible navigation. */
.mobile-menu-toggle { display: none; }
@media (max-width: 1099px) {
    #app .header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
        height: auto;
        min-height: 0;
        padding: 16px 20px;
    }
    #app .header .logo { grid-column: 1; grid-row: 1; justify-self: start; }
    #app .header-right { display: contents !important; }
    #app .header-right > span { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; }
    #app .header-right .login-flex,
    #app .header .mini-profile { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
    #app .header .mobile-menu-toggle {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 9px;
        background: #142435;
        cursor: pointer;
        z-index: 5;
    }
    #app .header .mobile-menu-toggle span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform .18s ease, opacity .18s ease;
    }
    #app .header .mobile-menu-toggle.is-open .mobile-menu-bars span:first-child { transform: translateY(6px) rotate(45deg); }
    #app .header .mobile-menu-toggle.is-open .mobile-menu-bars span:nth-child(2) { opacity: 0; }
    #app .header .mobile-menu-toggle.is-open .mobile-menu-bars span:last-child { transform: translateY(-6px) rotate(-45deg); }
    #app .header .menu {
        display: none;
        grid-column: 1 / -1;
        grid-row: 3;
        width: auto;
        margin: 0;
        padding: 8px 20px;
        box-sizing: border-box;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 4px 16px;
        border-radius: 12px;
        background: rgba(16,29,44,.96);
    }
    #app .header .menu.is-open { display: flex; }
    #app .header .menu li { margin: 0; }
    #app .header .menu a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 600px) {
    #app .header { grid-template-columns: minmax(0,1fr) 44px; padding: 14px; }
    #app .header .logo { grid-column: 1; grid-row: 1; }
    #app .header-right > span { grid-column: 1; grid-row: 2; }
    #app .header .mobile-menu-toggle { grid-column: 2; grid-row: 2; }
    #app .header .menu { grid-column: 1 / -1; grid-row: 3; padding: 8px; }
    #app .header .menu.is-open { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
    #app .header-right .login-flex,
    #app .header .mini-profile { grid-column: 1 / -1; grid-row: 4; width: 100%; justify-self: stretch; }
    #app .header-right .login-flex a { flex: 1; min-width: 0; padding: 0 8px; }
}
@media (max-width: 350px) {
    #app .header .menu.is-open { grid-template-columns: repeat(3,minmax(0,1fr)) 22px; }
    #app .header .menu a { font-size: 10px; white-space: nowrap; }
}
/* Keep mobile navigation labels separated in the expanded menu. */
@media (max-width: 600px) {
    #app .header .menu.is-open {
        grid-template-columns: minmax(0,1fr) minmax(0,1.6fr) minmax(0,1.3fr) 22px;
        column-gap: 8px;
    }
    #app .header .menu a { font-size: 12px !important; white-space: nowrap; }
}
@media (max-width: 350px) {
    #app .header .menu.is-open {
        grid-template-columns: minmax(0,1fr) minmax(0,1.45fr) minmax(0,1.2fr) 22px;
        column-gap: 4px;
        padding-left: 6px;
        padding-right: 6px;
    }
    #app .header .menu a { font-size: 10px !important; }
}
/* Match the hamburger to the site buttons and drop its menu below it. */
.mobile-menu-control { display: contents; }
@media (max-width: 1099px) {
    #app .header .mobile-menu-control {
        display: block;
        position: relative;
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        align-self: start;
        z-index: 30;
    }
    #app .header .mobile-menu-toggle {
        background: var(--ww-primary, #FFB700);
        border: 1px solid var(--ww-primary, #FFB700);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,.16);
    }
    #app .header .mobile-menu-toggle:hover { background: var(--ww-primary-hover, #FFC633); }
    #app .header .mobile-menu-toggle:active { background: var(--ww-primary-active, #D99100); }
    #app .header .mobile-menu-toggle span { background: var(--ww-on-accent, #101B29); }
    #app .header .mobile-menu-control .menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        grid-column: auto;
        grid-row: auto;
        width: min(260px, calc(100vw - 28px));
        min-width: 210px;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        border: 1px solid var(--ww-border, #30465B);
        border-radius: 10px;
        background: var(--ww-surface, #142435);
        box-shadow: 0 12px 28px rgba(0,0,0,.34);
        z-index: 40;
    }
    #app .header .mobile-menu-control .menu.is-open { display: flex; }
    #app .header .mobile-menu-control .menu li { width: 100%; }
    #app .header .mobile-menu-control .menu a {
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        box-sizing: border-box;
        justify-content: flex-start;
        border-radius: 7px;
        text-align: left;
    }
    #app .header .mobile-menu-control .menu a:hover { background: var(--ww-surface-raised, #1B3044); }
}
/* Match the hamburger to the outlined energy button. */
@media (max-width: 1099px) {
    #app .header .mobile-menu-toggle {
        border: 0 !important;
        color: var(--ww-text, #FFFFFF);
        background: transparent !important;
        box-shadow: none !important;
    }
    #app .header .mobile-menu-toggle::before {
        content: '';
        inset: 0;
        box-sizing: border-box;
        border: 1px solid #91A7BA !important;
        border-radius: 9px;
        background: transparent !important;
        transform: skewX(-4deg);
        transition: border-color var(--ww-button-transition, 160ms ease), background-color var(--ww-button-transition, 160ms ease);
    }
    #app .header .mobile-menu-toggle:hover::before {
        border-color: #C4D1E0 !important;
        background: rgba(255,255,255,.08) !important;
        box-shadow: none !important;
    }
    #app .header .mobile-menu-toggle:active::before {
        border-color: var(--ww-primary, #FFB700) !important;
        background: rgba(255,183,0,.12) !important;
    }
    #app .header .mobile-menu-toggle span { background: var(--ww-text, #FFFFFF); }
}
/* Center the larger phone logo and set dropdown labels to 16px. */
@media (max-width: 1099px) {
    #app .header .mobile-menu-control .menu a { font-size: 16px !important; }
}
@media (max-width: 600px) {
    #app .header .logo {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        width: 180px;
        height: 72px;
        flex-basis: auto;
        zoom: 1;
        background-color: transparent !important;
    }
}
@media (max-width: 350px) {
    #app .header .logo { width: 160px; height: 64px; }
}
/* Keep the centered phone logo on the page background. */
@media (max-width: 600px) {
    #app .header .logo::after { background-color: transparent !important; }
}
/* Replace the profile plus with the top-up action. */
#app .mini-profile-topup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    min-width: 124px;
    padding: 0 14px;
    white-space: nowrap;
}
#app .mini-profile-topup .fa-wallet { font-size: 15px; }
#app .mini-profile-topup span { display: inline-block; }
@media (max-width: 600px) {
    #app .header .mini-profile { gap: 8px; }
    #app .mini-profile-topup { min-width: 116px; padding: 0 10px; }
    #app .header .mini-profile-pole {
        width: auto;
        min-width: 90px;
        max-width: 150px;
        flex: 1;
        padding-left: 8px;
        padding-right: 8px;
    }
}
/* Keep the menu label beside the hamburger and add breathing room. */
@media (max-width: 1099px) {
    #app .header .mobile-menu-toggle {
        flex-direction: row;
        gap: 10px;
        width: auto;
        min-width: 112px;
        height: 44px;
        margin: 8px 0;
        padding: 0 12px;
    }
    #app .header .mobile-menu-toggle .mobile-menu-bars {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 19px;
        height: 20px;
    }
    #app .header .mobile-menu-toggle .mobile-menu-bars span {
        flex: 0 0 2px;
        width: 19px;
        height: 2px;
    }
    #app .header .mobile-menu-toggle .mobile-menu-label {
        display: inline-block;
        width: auto;
        height: auto;
        color: var(--ww-text, #FFFFFF);
        background: transparent;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }
}
/* Use a single menu glyph that switches to a close icon when expanded. */
@media (max-width: 1099px) {
    #app .header .mobile-menu-toggle {
        gap: 9px;
        min-width: 112px;
        justify-content: center;
    }
    #app .header .mobile-menu-toggle > .mobile-menu-icon {
        position: relative;
        z-index: 1;
        display: block;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        overflow: visible;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    #app .header .mobile-menu-toggle > .mobile-menu-icon .menu-icon-close { display: none; }
    #app .header .mobile-menu-toggle.is-open > .mobile-menu-icon .menu-icon-lines { display: none; }
    #app .header .mobile-menu-toggle.is-open > .mobile-menu-icon .menu-icon-close { display: block; }
    #app .header .mobile-menu-toggle > .mobile-menu-label {
        position: relative;
        z-index: 1;
        display: inline-block;
        flex: 0 0 auto;
        width: auto;
        height: auto;
        color: var(--ww-text, #FFFFFF);
        background: transparent;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }
}
/* Enlarge the bonus and menu actions in the compact header. */
@media (max-width: 1099px) {
    #app .header-right .offdrop-btn-h {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 50px;
        padding: 0 16px;
        font-size: 14px !important;
    }
    #app .header-right .offdrop-btn-h svg { width: 26px; height: 26px; flex: 0 0 26px; }
    #app .header .mobile-menu-toggle {
        min-width: 126px;
        min-height: 50px;
        height: 50px;
    }
    #app .header .mobile-menu-toggle > .mobile-menu-icon { width: 24px; height: 24px; flex-basis: 24px; }
    #app .header .mobile-menu-toggle > .mobile-menu-label { font-size: 16px; }
}
/* Spread live navigation and statistics across tablet widths below 800px. */
@media (min-width: 601px) and (max-width: 799px) {
    #app .live-panel .live-nav,
    #app .live-panel .live-stats {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }
    #app .live-panel .live-nav li { flex: 0 0 auto; justify-content: flex-start; padding-left: 30px; margin: 0; }
    #app .live-panel .live-stats li { flex: 1 1 0; justify-content: center; margin: 0; }
}
/* Fit the supplied 400px MTCASE wordmark cleanly in each header size. */
#app .header .logo { background-size: contain !important; background-position: center !important; }
/* Add a brighter cyan glow to the case-section divider. */
#app .case-title2 {
    border-top-color: transparent;
}
#app .case-title2::after {
    width: min(92%, 454px);
    height: 4px;
    top: -4px;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0,185,255,.12) 10%, rgba(0,185,255,.42) 34%, rgba(0,185,255,.7) 48%, rgba(0,185,255,.7) 52%, rgba(0,185,255,.42) 66%, rgba(0,185,255,.12) 90%, transparent 100%) center / 100% 1px no-repeat,
        linear-gradient(90deg, transparent 0 38%, #00c8ff 38% 62%, transparent 62% 100%) center / 100% 3px no-repeat;
    filter: drop-shadow(0 0 4px rgba(0,185,255,.65));
}
/* Lighten navigation text and align the desktop menu with the wordmark. */
#app .header .menu a { font-weight: 400 !important; }
@media (min-width: 1100px) {
    #app .header .menu { align-items: center; transform: translateY(-8px); }
}
/* Enlarge the MTCASE wordmark while preserving its full aspect ratio. */
@media (min-width: 1100px) {
    #app .header .logo { width: 260px; flex: 0 0 260px; height: 78px; }
}
@media (min-width: 601px) and (max-width: 1099px) {
    #app .header .logo { width: 220px; flex: 0 1 220px; height: 78px; zoom: 1; }
}
@media (max-width: 600px) {
    #app .header .logo { width: 220px; height: 82px; }
}
@media (max-width: 350px) {
    #app .header .logo { width: 190px; height: 72px; }
}
/* Keep the centered mobile MTCASE wordmark at least 300px wide. */
@media (max-width: 600px) {
    #app .header .logo {
        width: 300px;
        min-width: 300px;
        max-width: none;
        flex: 0 0 300px;
        height: 82px;
    }
}
/* Reflow header blocks below 700px: brand, actions, account. */
@media (max-width: 699px) {
    #app .header .logo {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        width: 300px;
        min-width: 300px;
        flex: 0 0 300px;
        height: 82px;
    }
    #app .header-right > span { grid-column: 1; grid-row: 2; justify-self: start; }
    #app .header .mobile-menu-control { grid-column: 2; grid-row: 2; justify-self: end; }
    #app .header-right .login-flex,
    #app .header .mini-profile {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        justify-self: stretch;
    }
    #app .header .mini-profile { justify-content: center; }
    #app .header-right .login-flex { justify-content: center; }
}
/* Keep the diagonal raffle-card accent below 1100px and close the outer corners. */
@media (max-width: 1099px) {
    #app .bonus-flexs .bonus:not(.bonus-new):after,
    #app .bonus-flexs .bonus-new:after {
        width: clamp(120px, 44%, 240px) !important;
        transform: none !important;
        clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%) !important;
        border-radius: 0 18px 18px 0 !important;
        background:
            linear-gradient(145deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.035) 42%, rgba(0,185,255,.2) 100%),
            linear-gradient(135deg, #25272b 0%, #17191d 66%, #07383e 100%) !important;
        filter: drop-shadow(-4px 0 10px rgba(0,185,255,.22));
    }
}
/* Center every case row, including categories with fewer cards than the grid. */
#app .case-loop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 20px;
}
#app .case-loop > .case { flex: 0 0 calc((100% - 80px) / 5); }
@media (max-width: 1399px) {
    #app .case-loop > .case { flex-basis: calc((100% - 60px) / 4); }
}
@media (max-width: 999px) {
    #app .case-loop { gap: 24px 16px; }
    #app .case-loop > .case { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 639px) {
    #app .case-loop { gap: 24px 12px; }
    #app .case-loop > .case { flex-basis: calc((100% - 12px) / 2); }
}
/* Override the more specific grid declaration for the case containers. */
#app .container > .case-loop,
#app .container .incognito .case-loop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}