/**
 * 9777 dbt - Core Stylesheet
 * All classes use v3ad- prefix for namespace isolation
 * Color palette: #34495E | #FA8072 | #FFCCCB | #FF69B4 | #E0E0E0 | #FFEB3B
 */

/* CSS Variables */
:root {
    --v3ad-primary: #FA8072;
    --v3ad-secondary: #FF69B4;
    --v3ad-accent: #FFEB3B;
    --v3ad-bg-dark: #34495E;
    --v3ad-bg-darker: #2c3e50;
    --v3ad-bg-light: #E0E0E0;
    --v3ad-text-light: #FFCCCB;
    --v3ad-text-white: #ffffff;
    --v3ad-border: rgba(255, 105, 180, 0.3);
    --v3ad-radius: 1.2rem;
    --v3ad-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
    font-size: 62.5%;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--v3ad-bg-dark);
    color: var(--v3ad-text-white);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--v3ad-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.v3ad-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--v3ad-bg-darker);
    z-index: 1000;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.2rem solid var(--v3ad-border);
    backdrop-filter: blur(1rem);
}

.v3ad-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.v3ad-logo-area img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.5rem;
}

.v3ad-logo-area span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v3ad-accent);
    letter-spacing: 0.05rem;
}

.v3ad-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.v3ad-btn-register {
    background: linear-gradient(135deg, var(--v3ad-primary), var(--v3ad-secondary));
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.v3ad-btn-register:hover { transform: scale(1.05); box-shadow: 0 0.2rem 0.8rem rgba(250, 128, 114, 0.4); }

.v3ad-btn-login {
    background: transparent;
    color: var(--v3ad-text-light);
    border: 0.15rem solid var(--v3ad-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.v3ad-btn-login:hover { background: var(--v3ad-primary); color: #fff; }

.v3ad-menu-btn {
    background: none;
    border: none;
    color: var(--v3ad-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.v3ad-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.v3ad-overlay-active { opacity: 1; pointer-events: auto; }

.v3ad-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--v3ad-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.v3ad-menu-active { right: 0; }

.v3ad-mobile-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--v3ad-text-light);
    font-size: 1.4rem;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s, padding-left 0.2s;
}

.v3ad-mobile-menu a:hover {
    color: var(--v3ad-accent);
    padding-left: 0.8rem;
}

/* Carousel */
.v3ad-carousel {
    position: relative;
    margin-top: 5.2rem;
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
}

.v3ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    cursor: pointer;
}

.v3ad-slide-active { opacity: 1; }

.v3ad-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v3ad-dots {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v3ad-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.v3ad-dot-active { background: var(--v3ad-accent); }

/* Container */
.v3ad-container {
    padding: 1.5rem 1rem;
}

/* Section Titles */
.v3ad-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 0.3rem solid var(--v3ad-primary);
    color: var(--v3ad-text-white);
}

.v3ad-section-title span {
    color: var(--v3ad-accent);
}

/* Game Grid */
.v3ad-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.v3ad-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
}

.v3ad-game-item:hover { transform: translateY(-0.2rem); }

.v3ad-game-item img {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1rem;
    border: 0.15rem solid var(--v3ad-border);
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.v3ad-game-item span {
    font-size: 1.1rem;
    color: var(--v3ad-text-light);
    line-height: 1.3rem;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Label */
.v3ad-cat-label {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem;
    color: var(--v3ad-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Promo Banner */
.v3ad-promo-banner {
    background: linear-gradient(135deg, var(--v3ad-primary), var(--v3ad-secondary));
    border-radius: var(--v3ad-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.v3ad-promo-banner h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.v3ad-promo-banner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.v3ad-promo-btn {
    display: inline-block;
    background: var(--v3ad-accent);
    color: var(--v3ad-bg-dark);
    font-weight: 700;
    padding: 0.7rem 2rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.v3ad-promo-btn:hover { transform: scale(1.05); }

/* Card */
.v3ad-card {
    background: var(--v3ad-bg-darker);
    border-radius: var(--v3ad-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 0.1rem solid var(--v3ad-border);
}

.v3ad-card h3 {
    font-size: 1.4rem;
    color: var(--v3ad-primary);
    margin-bottom: 0.6rem;
}

.v3ad-card p {
    font-size: 1.2rem;
    color: var(--v3ad-text-light);
    line-height: 1.6rem;
}

/* Info Section */
.v3ad-info-block {
    background: var(--v3ad-bg-darker);
    border-radius: var(--v3ad-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 0.3rem solid var(--v3ad-secondary);
}

.v3ad-info-block h2 {
    font-size: 1.6rem;
    color: var(--v3ad-accent);
    margin-bottom: 0.8rem;
}

.v3ad-info-block p, .v3ad-info-block li {
    font-size: 1.3rem;
    color: var(--v3ad-text-light);
    line-height: 1.8rem;
}

.v3ad-info-block ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.v3ad-info-block li {
    margin-bottom: 0.3rem;
}

/* Footer */
.v3ad-footer {
    background: var(--v3ad-bg-darker);
    padding: 2rem 1rem 8rem;
    border-top: 0.2rem solid var(--v3ad-border);
    text-align: center;
}

.v3ad-footer p {
    font-size: 1.2rem;
    color: var(--v3ad-text-light);
    line-height: 1.7rem;
    margin-bottom: 0.5rem;
}

.v3ad-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.v3ad-footer-links a {
    background: rgba(250, 128, 114, 0.15);
    color: var(--v3ad-primary);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.v3ad-footer-links a:hover { background: rgba(250, 128, 114, 0.3); }

.v3ad-copyright {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}

/* Bottom Navigation */
.v3ad-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--v3ad-bg-darker);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    z-index: 1000;
    border-top: 0.15rem solid var(--v3ad-border);
    box-shadow: 0 -0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}

.v3ad-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.2rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    position: relative;
    gap: 0.2rem;
}

.v3ad-bottom-btn:hover,
.v3ad-bottom-btn:active {
    color: var(--v3ad-accent);
}

.v3ad-bottom-btn .v3ad-bnav-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.v3ad-bottom-btn .v3ad-bnav-text {
    font-size: 1rem;
    font-weight: 500;
}

.v3ad-bottom-active {
    color: var(--v3ad-primary) !important;
}

.v3ad-bottom-active::after {
    content: '';
    position: absolute;
    top: -0.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 0.2rem;
    background: var(--v3ad-primary);
    border-radius: 0.1rem;
}

/* Text link */
.v3ad-text-link {
    color: var(--v3ad-primary);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 0.1rem dashed var(--v3ad-primary);
    transition: color 0.2s;
}

.v3ad-text-link:hover { color: var(--v3ad-accent); }

/* Winners list */
.v3ad-winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
}

.v3ad-winner-row .v3ad-win-name { color: var(--v3ad-text-light); }
.v3ad-winner-row .v3ad-win-game { color: var(--v3ad-secondary); }
.v3ad-winner-row .v3ad-win-amount { color: var(--v3ad-accent); font-weight: 700; }

/* Responsive */
@media (min-width: 769px) {
    .v3ad-bottom-nav { display: none; }
}

@media (max-width: 768px) {
    body { padding-bottom: 8rem; }
}

/* Utility */
.v3ad-mt-1 { margin-top: 1rem; }
.v3ad-mt-2 { margin-top: 2rem; }
.v3ad-mb-1 { margin-bottom: 1rem; }
.v3ad-text-center { text-align: center; }
.v3ad-text-accent { color: var(--v3ad-accent); }
.v3ad-text-pink { color: var(--v3ad-secondary); }
