*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    min-height: 100dvh;
    background: #07060f;
    overflow-x: hidden;
    touch-action: manipulation;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(106, 92, 255, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 0% 60%, rgba(255, 46, 196, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 80%, rgba(255, 180, 50, 0.08) 0%, transparent 35%),
        linear-gradient(180deg, #0c0a18 0%, #07060f 100%);
    pointer-events: none;
}

.site-header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.site-header {
    padding: 1rem 1.125rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ff7a18, #ff2ec4);
    box-shadow: 0 4px 16px rgba(255, 46, 196, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-name .gold {
    background: linear-gradient(90deg, #ffb347, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: #7a7590;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Main ── */
main {
    padding: 0 1rem 1.5rem;
}

/* ── Hero ── */
.hero-banner {
    text-align: center;
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(106, 92, 255, 0.15);
}

.hero-banner h1 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.gradient-text {
    background: linear-gradient(90deg, #ff7a18, #ff2ec4, #6a5cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 0.875rem;
    color: #8a869a;
    font-weight: 500;
}

/* ── Game Grid ── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.game-tile {
    border-radius: 16px;
    background: rgba(18, 16, 32, 0.85);
    border: 1px solid rgba(106, 92, 255, 0.12);
    overflow: hidden;
    transition: transform 0.15s ease;
}

.game-tile:active {
    transform: scale(0.97);
}

.game-tile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.625rem 0.875rem;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    height: 100%;
}

.game-logo-ring {
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a18, #ff2ec4, #6a5cff);
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 20px rgba(106, 92, 255, 0.2);
}

.game-logo-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #12101f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

.game-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-name {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    background: linear-gradient(90deg, #fff 0%, #d4d0e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.game-desc {
    font-size: 0.6875rem;
    color: #7a7690;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.45;
    flex: 1;
}

.game-cta {
    display: block;
    width: 100%;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(90deg, rgba(106, 92, 255, 0.5), rgba(255, 46, 196, 0.4));
    border: 1px solid rgba(106, 92, 255, 0.35);
}

.game-tile:active .game-cta {
    background: linear-gradient(90deg, rgba(106, 92, 255, 0.7), rgba(255, 46, 196, 0.6));
}

/* Last odd tile spans full width on its own row */
.game-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
}

/* ── Contact Box ── */
.contact-box {
    margin-top: 1.5rem;
    padding: 1.125rem;
    border-radius: 16px;
    background: rgba(18, 150, 80, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.contact-box-inner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.contact-box-inner .fab {
    font-size: 2rem;
    color: #25d366;
}

.contact-label {
    font-size: 0.8125rem;
    color: #8a869a;
    font-weight: 500;
}

.contact-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 700;
}

.contact-btn:active {
    background: #1db954;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 1rem;
    color: #4a4658;
    font-size: 0.6875rem;
    font-weight: 500;
}

/* ── Floating WhatsApp ── */
.fab-whatsapp {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    right: 1.25rem;
    z-index: 100;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.45),
        0 0 0 4px rgba(37, 211, 102, 0.15);
    transition: transform 0.15s ease;
}

.fab-whatsapp:active {
    transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
