/* Base Styles */
/* CSS Variables */
:root {
    --brand: #2563eb;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.nav {
    display: none;
    gap: 2rem;
}

.nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--brand);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--brand);
    color: var(--white);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-download {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: var(--white);
    font-size: 1rem;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--gray-600);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, #1e40af 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.app-preview {
    margin: 3rem 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.app-preview img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--gray-800);
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.step-number {
    background: var(--brand);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

/* Withdrawals Section */
.withdrawal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.withdrawal-card {
    background: rgba(6, 8, 15, 0.65);
    border: 1px solid rgba(0, 180, 220, 0.14);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.withdrawal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.8), rgba(57, 255, 136, 0.6));
    border-radius: 1.5rem 1.5rem 0 0;
    opacity: 0.7;
}

.withdrawal-icon {
    background: radial-gradient(circle at 35% 35%, rgba(0, 229, 255, 0.4), rgba(0, 110, 140, 0.8) 55%, rgba(10, 14, 24, 0.95) 100%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0, 110, 140, 0.45);
    border: 1px solid rgba(0, 110, 140, 0.6);
    transition: all 0.3s ease;
}

.withdrawal-card h3 {
    color: #f7fbff;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.withdrawal-card p {
    color: rgba(225, 240, 255, 0.8);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.withdrawal-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 229, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateX(4px);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-title {
    color: #f7fbff;
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-desc {
    color: rgba(225, 240, 255, 0.6);
    font-size: 0.85rem;
}

.withdrawal-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 229, 255, 0.15);
}

.withdrawal-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, rgba(0, 229, 255, 1), rgba(57, 255, 136, 0.8));
}

.withdrawal-card:hover .withdrawal-icon {
    box-shadow: 0 0 24px rgba(0, 110, 140, 0.6), 0 0 16px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

/* Keyboard focus within withdrawal card */
.withdrawal-card:focus-within {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}


/* Security Section */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.security-item {
    background: rgba(6, 8, 15, 0.65);
    border: 1px solid rgba(0, 180, 220, 0.14);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.security-item h3 {
    color: #f7fbff;
    margin-bottom: 1rem;
}

.security-item p {
    color: rgba(225, 240, 255, 0.8);
}

.security-icon {
    background: radial-gradient(circle at 35% 35%, rgba(0, 229, 255, 0.4), rgba(0, 110, 140, 0.8) 55%, rgba(10, 14, 24, 0.95) 100%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    box-shadow: 0 0 10px rgba(0, 110, 140, 0.45);
    border: 1px solid rgba(0, 110, 140, 0.6);
    transition: transform .3s ease, box-shadow .3s ease;
}

.security-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 110, 140, 0.8), rgba(40, 45, 65, 0.9));
    opacity: .45;
    transform: scaleX(.7);
    transition: opacity .3s ease, transform .3s ease;
    border-radius: 999px;
}

.security-item:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 110, 140, 0.5);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 110, 140, 0.18), 0 0 16px rgba(0, 229, 255, 0.12);
}

.security-item:hover::after {
    opacity: .75;
    transform: scaleX(1);
}

.security-item:hover .security-icon {
    box-shadow: 0 0 16px rgba(0, 110, 140, 0.55), 0 0 12px rgba(0, 229, 255, 0.28);
    transform: translateY(-2px);
}

/* Keyboard focus within security item */
.security-item:focus-within {
    border-color: rgba(0, 110, 140, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 110, 140, 0.2);
}

/* FAQs */
.faq-item {
    background: var(--white);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--gray-800);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Download Banner */
.download-banner {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.download-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.download-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

.legal-disclaimer {
    background: var(--gray-800);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero {
        padding: 10rem 0 6rem;
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .btn-download {
        width: 100%;
        max-width: 300px;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn:focus,
.faq-question:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Gaming Neon Overrides */
body {
    color: #e9f5ff;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(0, 255, 170, 0.22), transparent 60%), radial-gradient(900px 500px at 110% 10%, rgba(0, 180, 255, 0.22), transparent 60%), linear-gradient(180deg, #06080f 0%, #0c0f1a 100%);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --brand: #2b6cb0;
    /* royal blue */
    --accent: #ffd24d;
    /* brighter gold */
    --brand-2: #00e5ff;
    /* neon cyan */
    --win: #39ff88;
    /* neon green */
}

.header {
    background: rgba(17, 18, 26, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.logo {
    color: var(--brand-2);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 28px rgba(57, 255, 136, 0.4);
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
}

.nav a:hover {
    color: var(--brand-2);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.9);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -30%;
    width: 40%;
    height: 320%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -30%;
    }

    60% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

.btn-download {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--accent) 100%);
    box-shadow: 0 0 14px rgba(255, 210, 77, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-download::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -30%;
    width: 40%;
    height: 300%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -30%;
    }

    60% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

.bg-grid::before,
.bg-grid::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(0, 229, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.95));
    animation: gridFloat 22s linear infinite;
    z-index: -2;
}

.bg-grid::after {
    background-image: linear-gradient(rgba(57, 255, 136, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 255, 136, 0.06) 1px, transparent 1px);
    animation-duration: 36s;
    mix-blend-mode: screen;
}

@keyframes gridFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(-40px) translateX(20px) scale(1.02);
    }

    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

.section-alt {
    background: linear-gradient(180deg, rgba(26, 27, 38, 0.6), rgba(26, 27, 38, 0.9));
}

.section-header h2 {
    color: #faffff;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: .5px;
}

.step,
.withdrawal-card,
.security-item,
.faq-item {
    background: rgba(26, 27, 38, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.14);
    backdrop-filter: blur(10px);
}

.step-number {
    background: linear-gradient(135deg, var(--brand-2), var(--accent));
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

.app-preview img {
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    background: radial-gradient(900px 400px at 50% -10%, rgba(124, 58, 237, 0.45), transparent 60%), radial-gradient(700px 400px at 70% 10%, rgba(34, 211, 238, 0.35), transparent 60%), linear-gradient(180deg, rgba(17, 18, 26, 0.6) 0%, rgba(17, 18, 26, 0.9) 100%);
    overflow: hidden;
}

.download-banner {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(57, 255, 136, 0.25));
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 229, 255, 0.18);
    border-bottom: 1px solid rgba(57, 255, 136, 0.18);
}

.download-banner::after {
    content: "";
    position: absolute;
    inset: -100px;
    background: conic-gradient(from 0deg, transparent, rgba(0, 229, 255, 0.28), transparent 30%);
    animation: spin 10s linear infinite;
    filter: blur(40px);
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

.footer {
    background: #05070d;
    border-top: 1px solid rgba(0, 229, 255, 0.14);
}

.legal-disclaimer {
    background: #121424;
}

/* Ludo Showcase */
.ludo-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.ludo-card {
    /* Removed all visual boundaries - transparent background, no borders, no shadows */
}

.ludo-board {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #1c1e2e, #121425);
    position: relative;
    overflow: hidden;
}

.board-grid {
    position: absolute;
    inset: 12px;
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(15, 1fr);
    gap: 2px;
}

.cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cell.home {
    background: rgba(124, 58, 237, 0.2);
}

.cell.safe {
    background: rgba(34, 211, 238, 0.2);
}

.token {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: tokenFloat 3.5s ease-in-out infinite;
}

.token.red {
    background: #ef4444;
}

.token.blue {
    background: #3b82f6;
}

.token.green {
    background: #22c55e;
}

.token.yellow {
    background: #f59e0b;
}

@keyframes tokenFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

.dice-wrap {
    display: grid;
    gap: 1rem;
    justify-items: center;
    position: relative;
}

.dice-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.dice {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #1a1a2e, #16213e, #0f1419);
    border-radius: 1.2rem;
    position: relative;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.3);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dice::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 50px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4), transparent 70%);
    border-radius: 50%;
    transform: translateX(-50%);
    filter: blur(2px);
    z-index: -1;
}

.dice:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

.dice:active {
    transform: translateY(0px) scale(0.95);
    transition: all 0.1s ease;
}

.pip {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #f0f0f0 40%, #d0d0d0 70%, #a0a0a0 100%);
    border-radius: 50%;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.pip::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(1px);
}

.dice.rolling {
    animation: roll 0.9s ease-in-out;
}

@keyframes roll {
    0% {
        transform: rotate(0)
    }

    25% {
        transform: rotate(90deg)
    }

    50% {
        transform: rotate(180deg)
    }

    75% {
        transform: rotate(270deg)
    }

    100% {
        transform: rotate(360deg)
    }
}



/* Subtle theming elements: board and dice watermarks */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 15% 10%, rgba(245, 197, 66, 0.12), transparent 60%), radial-gradient(500px 260px at 85% 15%, rgba(34, 211, 238, 0.12), transparent 60%);
    pointer-events: none;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.1) 2px, transparent 2px), radial-gradient(circle at 80% 70%, rgba(57, 255, 136, 0.08) 2px, transparent 2px);
    background-size: 120px 120px;
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.section {
    position: relative;
}

/* Decorative coin accents */
.coin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff6c2, #f5c542 45%, #d4a427 70%);
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.5);
    animation: coinFloat 6s ease-in-out infinite;
}

.coin.big {
    width: 22px;
    height: 22px;
}

@keyframes coinFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(15deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Sticky mobile download bar */
.sticky-download {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    background: rgba(12, 13, 20, 0.9);
    border-top: 1px solid rgba(43, 108, 176, 0.2);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 1001;
}

@media (max-width: 767px) {
    .sticky-download {
        display: block;
    }

    body {
        padding-bottom: 84px;
    }
}

/* Arena lane and 3D dice */
.lane {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    width: 100%;
    height: 96px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(12, 14, 22, 0.85), rgba(8, 10, 18, 0.9));
    border-radius: 12px;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.12);
}

.house {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.14);
    border-radius: 10px;
    box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.35);
}

.house.kill {
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: inset 0 6px 14px rgba(90, 11, 11, 0.5), 0 0 18px rgba(255, 107, 107, 0.18);
    position: relative;
}

.house.kill::after {
    content: "✖";
    position: absolute;
    right: 6px;
    top: 4px;
    font-size: 12px;
    color: #ff6b6b;
    opacity: 0.9;
}

.pawn {
    position: absolute;
    width: 22px;
    height: 46px;
    left: 0;
    top: 50%;
    transform: translate(var(--px, 18px), -50%);
    transition: transform .5s ease;
    z-index: 10;
}

.pawn::before {
    /* head */
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, 0);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #39e2ff 45%, #0aa3c4 70%, #08121f 100%);
    box-shadow: 0 4px 12px rgba(57, 226, 255, 0.45);
}

.pawn::after {
    /* body */
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 26px;
    height: 28px;
    transform: translate(-50%, 0);
    border-radius: 50% 50% 6px 6px;
    background: radial-gradient(ellipse at 50% 30%, #78f6ff, #10bed6 45%, #0b2a3f 100%);
    box-shadow: 0 8px 16px rgba(16, 190, 214, 0.45);
}

/* removed .pawn-shadow as it's unused */

.pawn.jump {
    animation: pawnJump .9s ease-out;
}

@keyframes pawnJump {
    0% {
        transform: translate(var(--px, 18px), -50%) scale(1);
    }

    40% {
        transform: translate(calc(var(--px, 18px)), -80%) scale(1.05);
    }

    60% {
        transform: translate(calc(var(--px, 18px)), -40%) scale(0.98);
    }

    100% {
        transform: translate(calc(var(--px, 18px)), -50%) scale(1);
    }
}

.pawn.sad {
    animation: pawnSad .6s ease-in-out;
}

@keyframes pawnSad {

    0%,
    100% {
        transform: translate(var(--px, 18px), -50%);
    }

    25% {
        transform: translate(calc(var(--px, 18px) - 6px), -50%);
    }

    75% {
        transform: translate(calc(var(--px, 18px) + 6px), -50%);
    }
}

.pawn.kill {
    animation: pawnKill 1s ease-in-out forwards;
}

@keyframes pawnKill {
    0% {
        transform: translate(var(--px, 18px), -50%) scale(1);
        filter: none;
        opacity: 1;
    }

    40% {
        transform: translate(calc(var(--px, 18px)), -65%) scale(1.08) rotate(-8deg);
        filter: drop-shadow(0 6px 14px rgba(255, 107, 107, 0.45));
    }

    70% {
        transform: translate(calc(var(--px, 18px)), -35%) scale(0.85) rotate(10deg);
        opacity: .7;
    }

    100% {
        transform: translate(calc(var(--px, 18px)), -50%) scale(0.6) rotate(25deg);
        opacity: 0;
    }
}

.pawn.reinitiated {
    animation: pawnReinitiated 0.8s ease-out;
}

@keyframes pawnReinitiated {
    0% {
        transform: translate(var(--px, 18px), -50%) scale(0.8);
        filter: drop-shadow(0 0 8px rgba(57, 255, 136, 0.6));
    }

    50% {
        transform: translate(calc(var(--px, 18px)), -60%) scale(1.1);
        filter: drop-shadow(0 0 16px rgba(57, 255, 136, 0.8));
    }

    100% {
        transform: translate(calc(var(--px, 18px)), -50%) scale(1);
        filter: drop-shadow(0 0 12px rgba(57, 255, 136, 0.4));
    }
}

.kill-emote {
    position: absolute;
    pointer-events: none;
    font-size: 18px;
    transform: translate(-50%, -50%);
    animation: emotePop 1s ease-out forwards;
}

@keyframes emotePop {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.8);
    }

    25% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(0.9);
    }
}

.arena-msg {
    min-height: 1.25rem;
    color: #f9fbff;
    opacity: 0.9;
}

.arena-msg.ok {
    color: #39ff88;
}

.arena-msg.warn {
    color: #ffd24d;
}

.arena-msg.err {
    color: #ff6b6b;
}

.arena-controls {
    display: grid;
    gap: 3rem;
    justify-items: center;
}

/* 2D Dice Design with Rounded Corners and Shadow Effects */
.dice-container {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dice-container:hover {
    transform: scale(1.05);
}

.dice {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
    animation: diceFloat 3s ease-in-out infinite;
}

.dice.rolling {
    animation: diceRoll 1s ease-out;
}

.dice-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dice-face::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

.dice-face::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    height: 50%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), transparent);
    border-radius: 0 0 10px 10px;
    pointer-events: none;
}

/* All faces are positioned the same way for 2D */
.dice-face-1,
.dice-face-2,
.dice-face-3,
.dice-face-4,
.dice-face-5,
.dice-face-6 {
    transform: translateZ(0);
    opacity: 0;
}

/* Individual Face Colors */
.dice-face-1 {
    opacity: 1;
    /* Show face 1 by default */
    background: linear-gradient(135deg, #ef4444, #dc2626);
    /* Red */
    border-color: #b91c1c;
    box-shadow:
        0 8px 24px rgba(239, 68, 68, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-face-2 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    /* Blue */
    border-color: #1d4ed8;
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-face-3 {
    background: linear-gradient(135deg, #10b981, #059669);
    /* Green */
    border-color: #047857;
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-face-4 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    /* Orange */
    border-color: #b45309;
    box-shadow:
        0 8px 24px rgba(245, 158, 11, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-face-5 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    /* Purple */
    border-color: #6d28d9;
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-face-6 {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    /* Cyan */
    border-color: #0e7490;
    box-shadow:
        0 8px 24px rgba(6, 182, 212, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Number Styling */
.dice-face {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Animations */
@keyframes diceFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

@keyframes diceRoll {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }

    12.5% {
        transform: translateX(20px) translateY(-10px) rotate(45deg) scale(1.1);
    }

    25% {
        transform: translateX(0) translateY(-20px) rotate(90deg) scale(0.9);
    }

    37.5% {
        transform: translateX(-20px) translateY(-10px) rotate(135deg) scale(1.1);
    }

    50% {
        transform: translateX(-20px) translateY(0) rotate(180deg) scale(0.8);
    }

    62.5% {
        transform: translateX(-10px) translateY(20px) rotate(225deg) scale(1.1);
    }

    75% {
        transform: translateX(0) translateY(20px) rotate(270deg) scale(0.9);
    }

    87.5% {
        transform: translateX(20px) translateY(10px) rotate(315deg) scale(1.1);
    }

    100% {
        transform: translateX(0) translateY(0) rotate(360deg) scale(1);
    }
}

/* Hover Effects */
.dice-container:hover .dice {
    animation: none;
    transform: rotate(5deg);
}

.dice-container:hover .dice-face-1 {
    box-shadow:
        0 12px 32px rgba(239, 68, 68, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-container:hover .dice-face-2 {
    box-shadow:
        0 12px 32px rgba(59, 130, 246, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-container:hover .dice-face-3 {
    box-shadow:
        0 12px 32px rgba(16, 185, 129, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-container:hover .dice-face-4 {
    box-shadow:
        0 12px 32px rgba(245, 158, 11, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-container:hover .dice-face-5 {
    box-shadow:
        0 12px 32px rgba(139, 92, 246, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-container:hover .dice-face-6 {
    box-shadow:
        0 12px 32px rgba(6, 182, 212, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}




/* How It Works – readability and hover enhancements */
#how-it-works .section-header h2 {
    color: #f7feff;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.5), 0 0 28px rgba(57, 255, 136, 0.25);
}

#how-it-works .section-header p {
    color: rgba(233, 245, 255, 0.82);
}

/* Security Section – readability and hover enhancements */
#security .section-header h2 {
    color: #f7feff;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.5), 0 0 28px rgba(57, 255, 136, 0.25);
}

#security .section-header p {
    color: rgba(233, 245, 255, 0.82);
}

/* Withdrawals Section – readability and hover enhancements */
#withdrawals .section-header h2 {
    color: #f7feff;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.5), 0 0 28px rgba(57, 255, 136, 0.25);
}

#withdrawals .section-header p {
    color: rgba(233, 245, 255, 0.82);
}

#how-it-works .step {
    background: rgba(6, 8, 15, 0.65);
    border: 1px solid rgba(0, 180, 220, 0.14);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

#how-it-works .step h3 {
    color: #f7fbff;
}

#how-it-works .step p {
    color: rgba(225, 240, 255, 0.8);
}

#how-it-works .step-number {
    background: radial-gradient(circle at 35% 35%, rgba(0, 229, 255, 0.4), rgba(0, 110, 140, 0.8) 55%, rgba(10, 14, 24, 0.95) 100%);
    box-shadow: 0 0 10px rgba(0, 110, 140, 0.45);
    border: 1px solid rgba(0, 110, 140, 0.6);
}

#how-it-works .step::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 110, 140, 0.8), rgba(40, 45, 65, 0.9));
    opacity: .45;
    transform: scaleX(.7);
    transition: opacity .3s ease, transform .3s ease;
    border-radius: 999px;
}

#how-it-works .step:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 110, 140, 0.5);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 110, 140, 0.18), 0 0 16px rgba(0, 229, 255, 0.12);
}

#how-it-works .step:hover::after {
    opacity: .75;
    transform: scaleX(1);
}

#how-it-works .step:hover .step-number {
    box-shadow: 0 0 16px rgba(0, 110, 140, 0.55), 0 0 12px rgba(0, 229, 255, 0.28);
    transform: translateY(-2px);
}

/* Keyboard focus within step */
#how-it-works .step:focus-within {
    border-color: rgba(0, 110, 140, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 110, 140, 0.2);
}

/* QR Modal Styles */
.qr-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.qr-modal.active {
    display: block;
}

.qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.qr-box {
    position: relative;
    max-width: 360px;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #fff;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    z-index: 2;
}

.qr-box img {
    width: 220px;
    height: auto;
    margin: 16px 0;
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}
