:root {
    --ms-dark: #1a1a1a;
    --ms-dark-lighter: #252525;
    --ms-footer-bg: #0a0a0a;
    --ms-orange: #F37123;
    --ms-orange-hover: #ec9137;
    --ms-text: #ffffff;
    --ms-text-muted: #888;
}

body {
    background: linear-gradient(180deg, #121416 0%, #0D0E0F 100%);
    color: var(--ms-text);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Relative scaling: container grows with viewport (no per-resolution breakpoints) */
.container {
    max-width: min(92vw, 2600px);
}

/* Header - centered logo + tagline */
.ms-header {
    padding: clamp(1.2rem, 5vw, 8rem) 0 clamp(1rem, 1.5vw, 2rem);
    text-align: center;
}
.ms-logo-wrap {
    margin-bottom: 0.75rem;
}
.ms-logo-wrap img {
    max-height: clamp(200px, 15vw, 600px);
    width: auto;
    max-width: 90vw;
}
.ms-tagline {
    font-size: clamp(0.75rem, 2vw, 3.45rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--ms-orange);
    text-transform: uppercase;
    margin: 0;
    margin-top: 4rem;
}

/* Games section */
.ms-games {
    padding: clamp(2rem, 3vw, 4rem) 0 clamp(2rem, 3vw, 4rem);
    background-image: url("../images/new_design/games/bg-grid.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}
.ms-games .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -10px;
    margin-right: -10px;
}
.ms-games .row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    padding-left: 10px;
    padding-right: 10px;
}
.ms-game-card {
    text-align: center;
    margin-bottom: 20px;
}
.ms-games .row > [class*="col-"]:last-child .ms-game-card {
    margin-bottom: 0;
}
.ms-game-icon-area {
    position: relative;
    min-height: clamp(132px, 10vw, 232px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.ms-game-icon {
    width: clamp(100px, 8vw, 200px);
    height: clamp(100px, 8vw, 200px);
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
    /* box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    */
    transition: transform 0.3s ease;
}
.ms-game-icon-shadow {
    width: clamp(100px, 8vw, 200px);
    height: clamp(100px, 8vw, 200px);
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
    filter: blur(2px);
    rotate: 180deg;
    opacity: 9%;
    position: absolute;
    top: 80%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #ffffffd8 100%);
    mask-image: linear-gradient(to bottom, transparent 30%, #ffffff 100%);
}
.ms-game-card:hover .ms-game-icon {
    transform: translateY(-12px);
}
.ms-game-card:hover .ms-game-icon-shadow {
    transform: translateY(-12px);
}
.ms-game-card:hover .ms-game-title {
    transform: translateY(2px) scale(1.05);
}
.ms-game-badges {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 28px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ms-game-card:hover .ms-game-badges {
    opacity: 1;
    transform: translateY(0);
}
.ms-game-badges a {
    display: inline-flex;
    align-items: center;
}
.ms-game-badges img {
    height: 22px;
    width: auto;
    display: block;
}
.ms-game-badges .ms-store-sep {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    user-select: none;
    line-height: 1;
}
.ms-game-title {
    font-size: clamp(0.9rem, 1vw, 1.35rem);
    font-weight: 500;
    color: var(--ms-text);
    margin-top: 0.15rem;
    transition: transform 0.3s ease;
}

/* Stats section - full width */
.ms-stats {
    background: #16181c;
    padding: clamp(2rem, 2.5vw, 4rem) 0 clamp(2.5rem, 3vw, 4rem);
    width: 100%;
}
.ms-stats .ms-stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.ms-stat-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}
.ms-stat-item img {
    max-height: clamp(120px, 8vw, 200px);
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    margin-bottom: 3rem;
}
.ms-stat-sep {
    width: auto;
    height: clamp(90px, 9vw, 200px);
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    margin: 0 clamp(0.75rem, 1.5vw, 3rem);
}

/* CTA band - full width, same height as stats */
.ms-cta-band {
    background: #2A2F39;
    padding: clamp(1.5rem, 2.5vw, 4rem) 0 clamp(2rem, 3vw, 4rem);
    width: 100%;
}
.ms-cta-band .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 50vw;
}
.ms-cta-text {
    font-size: clamp(1rem, 2.5vw, 1.9rem);
    font-weight:700;
    letter-spacing: 0.08em;
    color: #AEB0B4;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}
.ms-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFF !important;
    border-radius: 9999px;
    font-weight: 500;
    font-size: clamp(1.7rem, 1.5vw, 2rem);
    text-decoration: none;
    white-space: nowrap;
    background: rgba(80, 93, 120, 0.41);
    width: clamp(20rem, 20vw, 25rem);
    height: clamp(5rem, 5vh, 10rem);
    align-content: center;
    justify-content: center;
    opacity: 1;
    transition: transform 0.3s ease;

    box-shadow: 0px 4.61px 61.18px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 4.61px 6.7px 0px rgba(255, 255, 255, 0.14) inset;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);   
    border: solid rgba(255, 255, 255, 0.4);
    border-width: 0 0.03rem 0 0.02rem ;
}
.ms-cta-btn:hover {
    text-decoration: none;
    transform: translateY(2px);
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.25);
}

/* Footer - full width
*/
.ms-footer {
    --ms-footer-icon: clamp(48px, 4vw, 80px);
    background: #0a0a0a;
    padding: clamp(2rem, 3vw, 4rem) 0;
    width: 100%;
}
.ms-footer-inner {
    max-width: 100%;
}
.ms-footer-follow {
    text-align: center;
    margin-bottom: 2rem;
}
.ms-footer-follow .ms-follow-text {
    font-size: clamp(1rem, 1.2vw, 1.8rem);
    color: #4F5260;
    margin-bottom: 1rem;
}
.ms-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}
.ms-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ms-footer-icon);
    height: var(--ms-footer-icon);
    overflow: hidden;
    border-radius: 50%;
    transition: opacity 0.2s ease;
    transition: transform 0.2s ease;
}
.ms-footer-social a:hover {
    opacity: 0.85;
    transform: translateY(1px);
}
/* Zoom into SVG center to crop glow; scale with viewport */
.ms-footer-social img {
    width: calc(var(--ms-footer-icon) * 2.4);
    height: calc(var(--ms-footer-icon) * 2.4);
    object-fit: contain;
    object-position: center;
}
.ms-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}
.ms-contact-line {
    font-size: clamp(1rem, 1vw, 1.3rem);
    margin-bottom: 0.35rem;
}
.ms-contact-line a {
    color: var(--ms-text);
    text-decoration: none;
}
.ms-contact-line a:hover {
    color: var(--ms-orange);
    text-decoration: underline;
}
.ms-contact-line .ms-label {
    color: var(--ms-orange);
}
.ms-contact-line .sep {
    color: var(--ms-text-muted);
    margin: 0 0.5rem;
}
.ms-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
.ms-legal-links li {
    margin-bottom: 0.35rem;
}
.ms-legal-links a {
    color: var(--ms-text);
    text-decoration: none;
    font-size: clamp(1rem, 1vw, 1.3rem);
}
.ms-legal-links a:hover {
    color: var(--ms-orange);
}

@media (max-width: 767px) {
    .ms-logo-wrap img {
        max-height: 160px;
    }
    .ms-game-icon {
        width: 100px;
        height: 100px;
    }
    .ms-stats .ms-stats-row {
        gap: 1rem;
    }
    .ms-stat-sep {
        height: 50px;
        margin: 0.5rem 0;
    }
    .ms-stat-item {
        min-width: 120px;
    }
    .ms-cta-band .container {
        flex-direction: column;
        text-align: center;
    }
    .ms-cta-text {
        text-align: center;
    }
    .ms-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    .ms-footer-bottom > div {
        text-align: center;
    }
    .ms-contact-line {
        text-align: center;
        word-break: break-word;
        margin-bottom: 0.5rem;
    }
    .ms-contact-line:last-child {
        margin-bottom: 0;
    }
    .ms-legal-links {
        text-align: center;
        padding-left: 0;
    }
    .ms-legal-links li {
        margin-bottom: 0.5rem;
    }
    .ms-legal-links li:last-child {
        margin-bottom: 0;
    }
}