* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --dark-color: #0b1220;
    --light-color: #f6f9ff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #f59e0b 100%);
    --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #fb7185 100%);
    --shadow: 0 8px 16px -10px rgba(15, 23, 42, 0.28);
    --shadow-lg: 0 18px 32px -16px rgba(15, 23, 42, 0.32);
    --shadow-xl: 0 28px 50px -28px rgba(15, 23, 42, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Prompt', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, 0.78);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: rgba(226, 232, 240, 0.92);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #93c5fd;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.lang-switch {
    display: flex;
    gap: 8px;
    background: rgba(248, 250, 252, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: rgba(226, 232, 240, 0.86);
}

.lang-btn.active {
    background: var(--gradient-1);
    color: white;
}

.hero {
    margin-top: 80px;
    padding: 120px 0;
    background: radial-gradient(1200px 800px at 15% 15%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
        radial-gradient(900px 700px at 85% 10%, rgba(245, 158, 11, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #070b14 0%, #0b1220 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.26) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 18px;
    color: rgba(203, 213, 225, 0.92);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(37, 99, 235, 0.34);
}

.btn-secondary {
    background: rgba(248, 250, 252, 0.06);
    color: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(248, 250, 252, 0.14);
    border-color: rgba(147, 197, 253, 0.55);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.hero-media-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: rgba(226, 232, 240, 0.9);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
}

.hero-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
    background: var(--gradient-1);
    animation-delay: 0s;
}

.card-2 {
    top: 10%;
    right: 20%;
    background: var(--gradient-2);
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    background: var(--gradient-3);
    animation-delay: 1s;
}

.card-4 {
    bottom: 10%;
    right: 10%;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.company-info {
    padding: 80px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

.about {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.about-hero-image {
    margin-bottom: 40px;
    text-align: center;
}

.hero-image {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.about-visual-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-content-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-offices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.office-card {
    background: white;
    padding: 24px 26px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.office-flag {
    font-size: 42px;
    line-height: 1;
    flex-shrink: 0;
}

.office-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.office-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.about-capabilities {
    margin-top: 8px;
}

.about-capability {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-capability-badge {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border: 1px solid #dbeafe;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
}

@media (max-width: 968px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
}

.about-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.products {
    padding: 100px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ecosystem {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
}

.ecosystem-card {
    position: relative;
    min-height: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0f172a;
}

.ecosystem-card-large {
    grid-row: span 2;
    min-height: 584px;
}

.ecosystem-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ecosystem-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 60%, rgba(15, 23, 42, 0.96) 100%);
    color: white;
}

.ecosystem-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.ecosystem-overlay p {
    color: rgba(255, 255, 255, 0.82);
}

.ecosystem-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.24);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.capability-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.capability-pill {
    padding: 12px 16px;
    border-radius: 999px;
    background: white;
    border: 1px solid #dbeafe;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--text-primary);
}

.game-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.game-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.game-thumbnail {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.game-thumbnail-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.06);
}

.game-thumbnail::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
}

.game-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.55) 100%);
    pointer-events: none;
}

.game-icon-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    color: #fff;
    z-index: 1;
}

@keyframes shine {
    0%, 100% { transform: translate(-30%, -30%); }
    50% { transform: translate(30%, 30%); }
}

.game-thumbnail.puzzle { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.game-thumbnail.memory { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.game-thumbnail.action { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.game-thumbnail.lucky { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.game-thumbnail.strategy { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.game-thumbnail.sports { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.game-thumbnail.arcade { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.game-thumbnail.blindbox { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%); }

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.game-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.game-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.game-tag {
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.features {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.features-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 22px;
    padding: 28px 26px;
    color: white;
    box-shadow: var(--shadow-xl);
}

.showcase-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.showcase-header span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.showcase-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.showcase-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.showcase-number {
    font-size: 18px;
    font-weight: 800;
    color: #60a5fa;
    min-width: 40px;
}

.showcase-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.showcase-item p {
    font-size: 13px;
    color: rgba(209, 213, 219, 0.88);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 968px) {
    .features-layout {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    padding: 40px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.10);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: inline-flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    margin-bottom: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.10) 55%, rgba(245, 158, 11, 0.10) 100%);
    border: 1px solid rgba(148, 163, 184, 0.26);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.credentials {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.credential-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.credential-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.credential-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.credential-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.credential-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.credentials-note {
    margin-top: 22px;
    text-align: center;
    color: var(--text-secondary);
}

.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-form {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px;
    border-radius: 20px;
}

.contact-visual-panel {
    margin-top: 32px;
    border-radius: 24px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-xl);
}

.contact-visual-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.contact-visual-copy {
    padding: 28px;
    color: white;
    background: linear-gradient(180deg, rgba(15,23,42,0.08) 0%, rgba(15,23,42,0.92) 100%);
}

.contact-visual-copy h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.contact-visual-copy p {
    color: rgba(255,255,255,0.82);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .info-grid,
    .products-grid,
    .ecosystem-grid,
    .features-grid,
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecosystem-card-large {
        grid-row: auto;
        min-height: 360px;
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .info-grid,
    .products-grid,
    .ecosystem-grid,
    .features-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .ecosystem-card-large {
        grid-column: auto;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .game-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
}

.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-modal.active {
    display: flex;
}

.game-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--gradient-1);
    color: white;
}

.game-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.game-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.game-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.game-container {
    text-align: center;
}

.game-canvas {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.game-controls {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

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

.game-btn-primary:hover {
    background: #4f46e5;
}

.game-btn-secondary {
    background: #e2e8f0;
    color: var(--text-primary);
}

.game-btn-secondary:hover {
    background: #cbd5e1;
}

.game-score {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.game-message {
    font-size: 18px;
    margin: 16px 0;
    color: var(--text-primary);
}

.game-result,
.status-note {
    margin: 12px 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.mini-sudoku-grid {
    display: grid;
    grid-template-columns: repeat(4, 56px);
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.mini-sudoku-cell {
    width: 56px;
    height: 56px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.mini-sudoku-cell.fixed {
    background: #e0e7ff;
    color: #312e81;
}

.mini-sudoku-cell.selected {
    outline: 3px solid #6366f1;
}

.number-pad,
.choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 16px 0;
}

.choice-btn {
    min-width: 54px;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice-btn:hover,
.choice-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.meter {
    position: relative;
    width: min(360px, 100%);
    height: 24px;
    margin: 24px auto;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.meter-zone {
    position: absolute;
    left: 45%;
    width: 17%;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

.meter-cursor {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 32px;
    border-radius: 999px;
    background: #0f172a;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}

.skill-board {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border-radius: 24px;
    background:
        radial-gradient(circle at center, rgba(99,102,241,0.2) 0%, rgba(99,102,241,0.06) 45%, transparent 46%),
        linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.moving-target {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 10px solid #ef4444;
    background: #f8fafc;
    box-shadow:
        inset 0 0 0 10px #f97316,
        inset 0 0 0 20px #eab308,
        inset 0 0 0 28px #22c55e,
        inset 0 0 0 36px #3b82f6;
}

.memory-grid,
.sudoku-grid,
.twenty48-grid {
    display: grid;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.memory-grid {
    grid-template-columns: repeat(4, 70px);
}

.memory-card {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.memory-card.flipped,
.memory-card.matched {
    background: white;
    border: 2px solid var(--primary-color);
}

.sudoku-grid {
    grid-template-columns: repeat(9, 40px);
}

.sudoku-cell {
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background: white;
}

.sudoku-cell:nth-child(3n) {
    border-right: 2px solid var(--text-primary);
}

.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid var(--text-primary);
}

.twenty48-grid {
    grid-template-columns: repeat(4, 80px);
    background: #bbada0;
    padding: 10px;
    border-radius: 10px;
}

.twenty48-cell {
    width: 80px;
    height: 80px;
    background: #cdc1b4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #776e65;
}

.twenty48-cell[data-value="2"] { background: #eee4da; }
.twenty48-cell[data-value="4"] { background: #ede0c8; }
.twenty48-cell[data-value="8"] { background: #f2b179; color: white; }
.twenty48-cell[data-value="16"] { background: #f59563; color: white; }
.twenty48-cell[data-value="32"] { background: #f67c5f; color: white; }
.twenty48-cell[data-value="64"] { background: #f65e3b; color: white; }
.twenty48-cell[data-value="128"] { background: #edcf72; color: white; }

.blind-box-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.blind-box {
    width: 120px;
    height: 160px;
    background: var(--gradient-3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blind-box:hover {
    transform: scale(1.05);
}

.blind-box.opened {
    background: white;
    border: 3px solid var(--primary-color);
}

.blind-box-icon {
    font-size: 48px;
}

.blind-box-label {
    margin-top: 12px;
    font-weight: 600;
    color: white;
}

.blind-box.opened .blind-box-label {
    color: var(--text-primary);
}

.dice-container {
    text-align: center;
    margin: 20px 0;
}

.dice {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

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

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

.snake-canvas {
    background: #1e1b4b;
    border-radius: 12px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.color-option {
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
}

.color-option:hover {
    transform: scale(1.1);
}

.target-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

.target-circle {
    position: absolute;
    border-radius: 50%;
    cursor: crosshair;
}

.target-1 { width: 300px; height: 300px; background: #ef4444; }
.target-2 { width: 240px; height: 240px; background: #f97316; top: 30px; left: 30px; }
.target-3 { width: 180px; height: 180px; background: #eab308; top: 60px; left: 60px; }
.target-4 { width: 120px; height: 120px; background: #22c55e; top: 90px; left: 90px; }
.target-5 { width: 60px; height: 60px; background: #3b82f6; top: 120px; left: 120px; }

.football-goal {
    width: 300px;
    height: 200px;
    background: linear-gradient(to bottom, #22c55e 0%, #16a34a 100%);
    border-radius: 12px;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
}

.goal-posts {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 160px;
    border: 8px solid white;
    border-bottom: none;
}

.football {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 50px);
    border: 4px solid #8b4513;
    border-radius: 8px;
    margin: 20px auto;
    width: fit-content;
}

.chess-cell {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
}

.chess-cell.light { background: #f0d9b5; }
.chess-cell.dark { background: #b58863; }

.tic-grid {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.tic-cell {
    width: 90px;
    height: 90px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: white;
    font-size: 38px;
    font-weight: 800;
    cursor: pointer;
}

.whack-grid {
    display: grid;
    grid-template-columns: repeat(3, 88px);
    gap: 14px;
    justify-content: center;
    margin: 20px 0;
}

.whack-hole {
    width: 88px;
    height: 88px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    font-size: 34px;
    cursor: pointer;
    box-shadow: inset 0 10px 24px rgba(15, 23, 42, 0.15);
}

.whack-hole.active {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
}

.simon-grid {
    display: grid;
    grid-template-columns: repeat(2, 110px);
    gap: 14px;
    justify-content: center;
    margin: 20px 0;
}

.simon-pad {
    width: 110px;
    height: 110px;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.simon-pad.green { background: #22c55e; }
.simon-pad.red { background: #ef4444; }
.simon-pad.yellow { background: #eab308; }
.simon-pad.blue { background: #3b82f6; }

.simon-pad.active {
    opacity: 1;
    transform: scale(1.04);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.penalty-goal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: min(420px, 100%);
    margin: 20px auto;
}

.penalty-zone {
    min-height: 140px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
}

.penalty-zone:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.game-canvas,
.snake-canvas {
    display: block;
    margin: 0 auto;
}

.snake-canvas,
.twenty48-grid {
    touch-action: none;
}

.choice-btn,
.tic-cell,
.whack-hole,
.penalty-zone,
.mini-sudoku-cell,
.memory-card,
.blind-box {
    -webkit-tap-highlight-color: transparent;
}
