html {
    font-size: 10px;
    color-scheme: dark;
}

body {
    background-color: #18002F;
    color: #FFF7FF;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.container {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    z-index: 0;
    background-color: #18002F;
}


.container .header {
    display: flex;
    position: relative;
    align-items: center;
    height: 0.85rem;
    width: 100%;
    justify-content: space-between;
    background: linear-gradient(90deg, #250044, #510078, #250044);
    padding: 8px 0;
    border-bottom: 1px solid #FFD52A;
    box-sizing: content-box;
    z-index: 1000;
}

.left-header {
    display: flex;
    padding: 0 8px;
    align-items: center;
    justify-content: space-between;
}

.left-header a {
    color: #FFF7FF;
    text-decoration: none;
}

.left-header img {
    width: .8rem;
    height: .8rem;
    margin-right: 9px;
    object-fit: contain;
}

.title {
    font-size: 0.32rem;
    font-weight: 800;
    color: #FFD52A;
    text-transform: capitalize;
    text-shadow:
        0 2px 2px #8A1600,
        0 0 8px rgba(255, 213, 42, 0.65);
}

.right-header {
    display: flex;
    padding: 0 8px 0 1px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #FFF7FF;
}

.topbtn {
    width: 2rem;
    height: .7rem;
    margin-right: 2px;
    margin-top: 5px;
    flex-shrink: 0;
    cursor: pointer;
}

.topbtn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (min-width: 720px) {
    .topbtn {
        width: 1.5rem;
        height: .6rem;
        margin-right: 12px;
    }
}

.menu-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    background: linear-gradient(145deg, #8A00D4, #350052);
    border-color: #FFD52A;
    box-shadow:
        0 0 8px rgba(255, 0, 184, 0.45),
        inset 0 0 6px rgba(255, 213, 42, 0.15);
    border: 1px solid #FFD52A;
    border-radius: 8px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.menu-icon span {
    position: absolute;
    width: 22px;
    height: 3px;
    left: 50%;
    background: #FFD52A;
    border-radius: 3px;
    transform: translateX(-50%);
    transition: transform 0.3s ease, top 0.3s ease,
                opacity 0.2s ease, background 0.2s ease;
}

.menu-icon span:nth-child(1) {
    top: 9px;
}
.menu-icon span:nth-child(2) {
    top: 15px;
}
.menu-icon span:nth-child(3) {
    top: 21px;
}

.menu-icon.active span:nth-child(1) {
    top: 15px;
    transform: translateX(-50%) rotate(45deg);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    top: 15px;
    transform: translateX(-50%) rotate(-45deg);
}

.menu-icon:hover {
    background: linear-gradient(145deg, #FFD52A, #FF9F1C);
    border-color: #FFF4B0;
}

.menu-icon:hover span {
    background: #510078;
}

.menu-icon:focus-visible {
    outline-color: #FF70D8;
    outline-offset: 3px;
}


.menu {
    display: block;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 1px);
    right: 6px;
    width: 260px;
    max-width: calc(100% - 12px);
    max-height: 0;
    background: linear-gradient(180deg, #410065, #1D0035);
    border-left: 1px solid #D99A24;
    border-right: 1px solid #D99A24;
    border-bottom: 1px solid #D99A24;
    border-color: #FF00B8;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
    transition: max-height 0.35s ease,
                opacity 0.25s ease,
                visibility 0.35s ease,
                border-color 0.25s ease;
}

.menu.expanded {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    border-left: 1px solid #FF00B8;
    border-right: 1px solid #FF00B8;
    border-bottom: 1px solid #FF00B8;
}

.menu ul {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}

.menu li {
    border-bottom: 1px solid rgba(255, 213, 42, 0.25);
    font-size: 15px;
    line-height: 1.3;
}

.menu li:last-child {
    border-bottom: none;
}

.menu a {
    display: block;
    padding: 13px 16px;
    color: #FFF7FF;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu a:hover {
    background: rgba(255, 0, 184, 0.20);
    color: #FFD52A;
}

.container .downBtn {
    position: absolute;
    top: 9.2rem;
    left: 15%;
    width: 70%;
    height: 1.2rem;
    background-image: url("../img/rummymost_btn.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: zoomInOut 2s infinite;
}



.rummy-banner-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 15px auto;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.rummy-banner-viewport {
    width: 100%;
    overflow: hidden;
    border: 1px solid #FFD52A;
    border-radius: 12px;
    touch-action: pan-y;
}

.rummy-banner-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s ease-in-out;
    will-change: transform;
}

.rummy-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 7 / 4;
    overflow: hidden;
    box-sizing: border-box;
    background: #290047;
}

.rummy-banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.rummy-banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
}

.rummy-banner-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    background: #9576AD;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rummy-banner-dot.active {
    width: 24px;
    background: #FFD52A;
    border-radius: 10px;
    box-shadow: 0 0 7px rgba(255, 213, 42, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .rummy-banner-track {
        transition: none;
    }
}

.new-heading {
  color: #FFD52A;
  font-size: 27px;
  text-align: center;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  text-shadow:
        0 2px 2px #7B120C,
        0 0 12px rgba(255, 0, 184, 0.40);
}

.heading-line {
  width: 115px;
  margin: 14px auto 28px;
  height: 5px;
  border-radius: 20px;
  background: linear-gradient(
        90deg,
        #FF00B8,
        #FFD52A,
        #FF5A1F
    );
}

.related-games {
    padding: 20px 10px;
    background: linear-gradient(180deg, #24003D, #160026);
}

.games-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-card {
    min-width: 175px;
    flex: 0 0 175px;
    scroll-snap-align: start;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid rgba(255, 213, 42, 0.55);
    border-radius: 20px;
    background: linear-gradient(145deg, #7200A8, #31004E);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.40),
        0 0 10px rgba(255, 0, 184, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-logo {
    width: 105px;
    height: 105px;
    border-radius: 10px;
    margin: 0 auto 19px;
    overflow: hidden;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.45);
}

.game-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.game-card h3 {
    min-height: 52px;
    margin: 0 0 1px;
    color: #FFF7FF;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}

.game-bonus {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 1px 2px;
    border-radius: 10px;
    color: #FFD52A;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 0, 184, 0.16);
}

.game-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px;
    border-radius: 12px;
    color: #4A005B;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(
        180deg,
        #FFF3A6 0%,
        #FFD52A 50%,
        #FF9F1C 100%
    );
    box-shadow: 0 5px 0 #A52A12;
    transition: transform 0.2s ease;
}

.game-download-btn:hover {
    transform: translateY(-2px);
    color: #350044;
}

.game-download-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #A52A12;
}

@media (max-width: 700px) {
    .games-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        overflow: visible;
        padding: 0;
    }

    .game-card {
        min-width: 0;
        padding: 14px 9px;
        border-radius: 16px;
    }

    .game-logo {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
    }

    .game-card h3 {
        min-height: 42px;
        font-size: 15px;
        line-height: 1.7;
    }

    .game-bonus {
        min-height: 42px;
        margin-bottom: 10px;
        padding: 5px 4px;
        font-size: 11px;
        line-height: 1.3;
    }

    .game-download-btn {
        padding: 10px 5px;
        border-radius: 9px;
        font-size: 12px;
    }
}

.container .footer {
    position: absolute;
    background: linear-gradient(180deg, #2B0047, #160026);
    width: 100%;
    border-top: 1px solid #FFD52A;
    color: #FFF7FF;
}

.webLink {
    margin-top: 10px;
    margin-bottom: 7px;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    font-size: 0.23rem;
    line-height: 10px;
}

.linkInfo {
    margin: 5px 0;
    text-decoration: none;
    color: #FFF7FF;
    font-weight: 600;
}

.linkInfo:hover {
    color: #FFD52A;
}

.footer p {
    padding: 0.2rem;
    margin: 0;
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
}