/* Marakumi Casinos desktop navigation scale: tuned against the supplied reference screenshots. */
@media (min-width: 781px) {
    .menu-toggle {
        display: none;
    }

    .layout {
        grid-template-columns: 288px minmax(400px, 1fr) 288px;
        gap: 10px;
        padding: 14px 10px 0;
    }

    .jackpot {
        height: 198px;
    }

    .jackpot-head {
        height: 50px;
        padding: 4px 14px;
    }

    .jackpot-head > div > img:first-child {
        width: 103px;
        height: 24px;
    }

    .jackpot-head .amusnet {
        width: 62px;
        height: 10px;
    }

    .jackpot-head span {
        gap: 16px;
        font-size: 25px;
    }

    .jackpot .pots {
        padding: 16px;
        gap: 16px 10px;
    }

    .jackpot .pots span {
        box-sizing: border-box;
        min-height: 48px;
        padding: 8px 6px 7px 31px;
        font-size: 11px;
    }

    .jackpot .pots span::before {
        top: 7px;
        left: 8px;
        font-size: 16px;
    }

    .activity {
        margin-top: 25px;
    }

    .activity-head {
        height: 100px;
        min-height: 100px;
        padding: 16px 11px;
    }

    .activity-head h2 {
        font-size: 18px;
    }

    .activity-head [role=tablist] {
        margin-top: 10px;
    }

    .activity-tab {
        min-width: 94px;
        padding: 10px 11px;
        font-size: 12px;
    }

    .activity-row {
        min-height: 118px;
        grid-template-columns: 24px 1fr 94px;
        gap: 8px;
        padding: 11px 16px;
    }

    .activity-row p {
        font-size: 15px;
    }

    .activity-row p small {
        margin-top: 4px;
        font-size: 14px;
    }

    .activity-row p b {
        font-size: 18px;
    }

    .activity-row img {
        width: 94px;
        height: 63px;
    }

    .header {
        height: 62px;
        gap: 16px;
        padding: 0 10px;
    }

    .logo {
        width: 138px;
        height: 52px;
    }

    .header-seo-links {
        gap: 2px;
    }

    .header-seo-links a {
        padding: 6px 7px;
        font-size: 10px;
    }

    .header-actions {
        gap: 13px;
    }

    .promotions,
    .login {
        min-height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }

    .promotions {
        display: inline-flex;
        align-items: center;
        gap: 0;
    }

    .promotions img {
        width: 20px;
        height: 20px;
        margin: 4px;
    }

    .search {
        width: 250px;
        height: 38px;
    }

    .search input {
        padding: 0 38px 0 12px;
        font-size: 13px;
    }

    .search span {
        top: 9px;
        right: 11px;
        width: 17px;
        height: 17px;
        border-width: 2px;
    }

    .search span::after {
        right: -5px;
        bottom: -3px;
        width: 8px;
        height: 2px;
    }

    .register {
        font-size: 13px;
    }

    .icon-button {
        width: 25px;
    }

    .game-nav {
        height: 73px;
        justify-content: center;
    }

    .game-nav .category:nth-child(n + 17) {
        display: none;
    }

    .category {
        min-width: 93px;
        cursor: default;
        gap: 3px;
        padding: 5px;
        font-size: 11px;
        line-height: 1.05;
    }

    .category span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
    }

    .category img {
        width: 27px;
        height: 27px;
    }

    .category b {
        top: 5px;
        right: 5px;
        padding: 1px 2px;
        font-size: 8px;
    }

    .category.active::after {
        height: 3px;
    }

    .ticker.mobile-only {
        display: none !important;
    }

    .right-column h2 {
        margin-bottom: 14px;
        font-size: 21px;
    }

    .mpesa {
        height: 98px;
        margin-bottom: 14px;
        justify-content: space-between;
        gap: 8px;
        padding: 0 10px;
    }

    .mpesa-logo {
        display: block;
        width: 128px;
        height: 52px;
        object-fit: contain;
    }

    .mpesa a {
        margin-right: 0;
        padding: 11px 14px;
        font-size: 12px;
    }

    .ad {
        margin-bottom: 15px;
    }

    .ad img {
        aspect-ratio: auto;
        height: auto;
    }

    .right-column .ad:last-child img {
        height: 256px;
        object-fit: cover;
    }
}

/* The mobile content keeps the reference banner height, while controls use the same 80% scale. */
@media (max-width: 780px) {
    .site {
        padding-bottom: 0;
    }

    .header {
        height: 57px;
        padding: 0 13px;
    }

    .logo {
        width: 126px;
        height: 50px;
    }

    .header-actions {
        gap: 13px;
    }

    .login {
        min-height: 33px;
        padding: 0 14px;
        font-size: 13px;
    }

    .register {
        font-size: 12px;
    }

    .icon-button {
        width: 20px;
    }

    .ticker {
        height: 31px;
        font-size: 11px;
    }

    .game-nav {
        height: 75px;
    }

    .category {
        min-width: 74px;
        height: 68px;
        padding: 4px;
        gap: 3px;
        font-size: 11px;
        line-height: 1.05;
    }

    .category span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
    }

    .category img {
        width: 27px;
        height: 27px;
    }

    .category b {
        top: 4px;
        right: 4px;
        padding: 1px 2px;
        font-size: 8px;
    }

    .category.active::after {
        height: 3px;
    }

    .mobile-jackpot {
        min-height: 66px;
        gap: 5px;
        padding: 7px 6px;
    }

    .mobile-jackpot span {
        padding: 8px 5px;
        border-width: 2px;
        border-radius: 7px;
        font-size: 12px;
    }

    .mobile-jackpot span small {
        font-size: 6px;
    }

    .mobile-jackpot strong {
        font-size: 17px;
    }

    .mobile-jackpot strong small {
        font-size: 7px;
    }

    .layout {
        padding-top: 4px;
    }

    .games {
        gap: 3px;
    }

    .game-badge {
        top: 3px;
        left: 3px;
        padding: 2px 3px;
        font-size: 8px;
    }

    .bottom-nav {
        height: 54px;
    }

    .bottom-nav a {
        gap: 2px;
        font-size: 10px;
    }

    .bottom-nav svg {
        width: 21px;
        height: 21px;
    }

    .bottom-nav .deposit svg {
        top: -22px;
        width: 47px;
        height: 47px;
        padding: 10px;
        border-width: 6px;
    }
}

@media (max-width: 500px) {
    .header {
        padding: 0 10px;
    }

    .logo {
        width: 98px;
    }

    .header-actions {
        gap: 10px;
    }

    .category {
        min-width: 70px;
    }
}

@media (min-width: 781px) and (max-width: 1180px) {
    .header-seo-links {
        display: none;
    }
}
