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

:root {
    --primary: #000000;
    --primary-hover: #333333;
    --secondary: #666666;
    --accent: #18a0fb;
    --bg: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --border: #e5e5e5;
    --border-hover: #d0d0d0;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ========================================
   HERO WITH APPS SECTION
   ======================================== */

.hero-apps {
    padding: 140px 0 80px;
    background: var(--bg);
}

.studio-header {
    margin-bottom: 48px;
}

.studio-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.studio-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Featured App (Study Arcade) */
.featured-app {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    cursor: pointer;
}

.featured-app:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.featured-app-preview {
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
}

.featured-app-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-app-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon-large {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.featured-app-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.featured-app-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.featured-app-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.featured-app-cta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--text-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.btn-primary-large:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Secondary Apps Row */
.secondary-apps-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.secondary-app {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.secondary-app:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.secondary-app-preview {
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.secondary-app-coming-soon .coming-soon-overlay {
    opacity: 1;
}

.coming-soon-overlay span {
    background: white;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.secondary-app-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.secondary-app-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.secondary-app-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.secondary-app-tagline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.secondary-app-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.secondary-app-cta {
    display: flex;
    gap: 12px;
}

/* App Icon Placeholder */
.app-icon-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.kk-icon {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}

/* Notify Button */
.btn-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: default;
}

/* ---- KANJI KING THUMB ---- */
.kk-thumb {
    background: linear-gradient(165deg, #7f1d1d 0%, #991b1b 40%, #dc2626 100%);
}

.kk-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kk-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.1) 40px,
            rgba(255,255,255,0.1) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.1) 40px,
            rgba(255,255,255,0.1) 41px
        );
}

.kk-center {
    position: relative;
    text-align: center;
    margin-bottom: 16px;
}

.kk-crown {
    font-size: 28px;
    margin-bottom: 8px;
}

.kk-kanji-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.kk-kanji {
    font-size: 64px;
    font-weight: 400;
    color: white;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.kk-reading {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 8px;
}

.kk-stats {
    display: flex;
    gap: 24px;
    position: relative;
}

.kk-stat {
    text-align: center;
}

.kk-stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.kk-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 968px) {
    .featured-app {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .featured-app-preview {
        height: 420px;
    }

    .secondary-app {
        grid-template-columns: 1fr;
    }

    .secondary-app-preview {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .hero-apps {
        padding: 120px 0 60px;
    }

    .featured-app,
    .secondary-app {
        padding: 24px;
    }

    .featured-app-cta,
    .secondary-app-cta {
        flex-direction: column;
    }

    .btn-primary-large,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   APPS SHOWCASE SECTION
   ======================================== */

.apps-section {
    padding: 120px 0;
    background: var(--bg);
}

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

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title-large {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

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

.app-card {
    background: var(--bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.app-card-inner {
    display: flex;
    flex-direction: column;
}

.app-card-preview {
    height: 400px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.app-card-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-card-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.app-tagline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.app-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.app-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.badge-platform {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.app-cta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--text-primary);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex: 1;
}

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

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

/* Responsive for apps section */
@media (max-width: 968px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 120px 0 80px;
    }

    .app-card-preview {
        height: 320px;
    }

    .app-cta {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Legacy classes kept for compatibility */
.game-card-compact {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.game-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.game-image-compact {
    position: relative;
    height: 340px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.game-placeholder-compact {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content-compact {
    text-align: center;
}

.placeholder-icon-compact {
    font-size: 3rem;
    opacity: 0.3;
}

.game-overlay-compact {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.game-badge-compact {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.game-info-compact {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-number-small {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.game-title-compact {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.game-1 { background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%); }
.game-2 { background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%); }
.game-3 { background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%); }
.game-4 { background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%); }

/* ========================================
   PREMIUM APP THUMBNAILS
   ======================================== */

.app-thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* ---- STUDY ARCADE THUMB ---- */
.sa-thumb {
    background: linear-gradient(165deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
}

.sa-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.sa-orb-1 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: -100px;
    right: -80px;
}

.sa-orb-2 {
    width: 200px;
    height: 200px;
    background: #06b6d4;
    bottom: -50px;
    left: -50px;
}

.sa-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sa-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sa-logo-mark {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: white;
}

.sa-stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.sa-stat-icon {
    color: #fbbf24;
}

.sa-challenge-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.sa-challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sa-challenge-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}

.sa-multiplier {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: white;
}

.sa-challenge-title {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0 0 6px 0;
    line-height: 1.1;
}

.sa-challenge-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 16px 0;
}

.sa-challenge-btn {
    background: white;
    color: #4338ca;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 12px 20px;
    border-radius: 12px;
}

.sa-games-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sa-games-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

.sa-game-tiles {
    display: flex;
    gap: 10px;
    flex: 1;
}

.sa-tile {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sa-tile-memory {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.sa-tile-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 8px;
}

.sa-tile-grid span {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 11px;
}

.sa-tile-grid span.revealed {
    background: white;
    color: #4f46e5;
}

/* Match 3 Grammar Tile */
.sa-tile-match3 {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
}

.sa-match3-scene {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.match3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 100%;
    height: 100%;
}

.match3-grid span {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.m3-noun {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

.m3-verb {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.m3-adj {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.sa-tile-match3 .sa-tile-label {
    color: #047857;
    background: rgba(16, 185, 129, 0.2);
}

/* Space Shooter Tile */
.sa-tile-space {
    background: linear-gradient(180deg, #0a0a1f 0%, #1a0a2e 50%, #0f172a 100%);
}

.sa-space-scene {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.sa-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 15% 25%, white, transparent),
        radial-gradient(2px 2px at 75% 12%, white, transparent),
        radial-gradient(1px 1px at 45% 55%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 25% 75%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 88% 40%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,0.5), transparent);
}

.sa-target-label {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    z-index: 5;
}

.sa-meteor-wrap {
    position: absolute;
    top: 28px;
    left: 12%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-meteor-wrap.sa-meteor-2 {
    left: auto;
    right: 12%;
    top: 42px;
}

.sa-meteor-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
}

.sa-meteor-text {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.sa-meteor-text.sa-target {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.8), 0 1px 3px rgba(0,0,0,0.8);
}

.sa-ship-img {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}

.sa-tile-label {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.2);
}

/* ---- FLASHI THUMB ---- */
.fl-thumb {
    background: linear-gradient(165deg, #fafafa 0%, #f1f5f9 100%);
}

.fl-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fl-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fl-logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: white;
}

.fl-brand {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.fl-review-card {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.fl-review-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-review-num {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.fl-review-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.fl-review-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.fl-play-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.fl-decks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fl-deck-row {
    background: white;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.fl-deck-avatar {
    width: 40px;
    height: 40px;
    background: #eef2ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fl-deck-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fl-deck-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.fl-deck-sub {
    font-size: 12px;
    color: #64748b;
}

.fl-progress-ring {
    width: 40px;
    height: 40px;
    position: relative;
}

.fl-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fl-ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.fl-ring-fill {
    fill: none;
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
}

.fl-progress-ring span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--bg);
}

.about-content {
    max-width: 700px;
}

.about-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Legal Section */
.legal-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.legal-section .section-header {
    margin-bottom: 1.5rem;
}

.legal-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.legal-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.legal-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.legal-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: var(--text-primary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    .game-featured {
        grid-template-columns: 1fr;
    }

    .games-grid-compact {
        grid-template-columns: 1fr;
    }

    .featured-app {
        grid-template-columns: 1fr;
    }

    .secondary-apps-row {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-visual {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}
