:root {
    /* Core Colors */
    --bg-primary: #0f0f13;
    --bg-secondary: #1a1a24;
    --bg-tertiary: #252533;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6b6b7b;

    /* Neon Accents (Paputu 8192 block colors) */
    --accent-2: #3b82f6;
    /* Blue */
    --accent-4: #8b5cf6;
    /* Purple */
    --accent-8: #ec4899;
    /* Pink */
    --accent-16: #ef4444;
    /* Red */
    --accent-32: #f97316;
    /* Orange */

    /* High Tier (64-2048) */
    --accent-64: #eab308;
    /* Yellow */
    --accent-128: #10b981;
    /* Green */
    --accent-256: #14b8a6;
    /* Teal */
    --accent-512: #06b6d4;
    /* Cyan */
    --accent-1024: #6366f1;
    /* Indigo */
    --accent-2048: #d946ef;
    /* Fuchsia */

    /* Legendary Tier (4096+) */
    --accent-4096: #c084fc;
    /* Purple/Amethyst */
    --accent-8192: #38bdf8;
    /* Light Blue/Sapphire */

    --accent-copper: #b45309;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --accent-sapphire: #0ea5e9;
    --accent-amethyst: #a855f7;

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;

    /* Animation */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Effects */
    --glow-sm: 0 0 10px rgba(255, 255, 255, 0.1);
    --glow-md: 0 0 20px rgba(255, 255, 255, 0.2);
    --glow-accent-2: 0 0 15px rgba(59, 130, 246, 0.4);
    --glow-accent-4: 0 0 15px rgba(139, 92, 246, 0.4);

    /* Grand Architect Glows */
    --glow-copper: 0 0 20px rgba(180, 83, 9, 0.5);
    --glow-gold: 0 0 25px rgba(245, 158, 11, 0.6);
    --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.5);
    --glow-sapphire: 0 0 30px rgba(14, 165, 233, 0.6);
    --glow-amethyst: 0 0 30px rgba(168, 85, 247, 0.6);
}

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

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

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

code, pre {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Base Link */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    word-break: break-word;
}

a:hover {
    color: var(--accent-2);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--accent-4), var(--accent-8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent-gold), #fde047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-legendary {
    background: linear-gradient(135deg, var(--accent-sapphire), var(--accent-amethyst));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s infinite linear;
    background-size: 200% auto;
}

/* Grand Architect Glow Utilities */
.glow-copper {
    box-shadow: var(--glow-copper);
    border-color: rgba(180, 83, 9, 0.5);
}

.glow-gold {
    box-shadow: var(--glow-gold);
    border-color: rgba(245, 158, 11, 0.5);
}

.glow-emerald {
    box-shadow: var(--glow-emerald);
    border-color: rgba(16, 185, 129, 0.5);
}

.glow-sapphire {
    box-shadow: var(--glow-sapphire);
    border-color: rgba(14, 165, 233, 0.5);
}

.glow-amethyst {
    box-shadow: var(--glow-amethyst);
    border-color: rgba(168, 85, 247, 0.5);
}

.bg-shimmer-legendary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(168, 85, 247, 0.1));
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.1), var(--glow-amethyst);
    border: 1px solid rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.bg-shimmer-legendary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

/* Grid Layouts constraints */
.grid-1-1 {
    aspect-ratio: 1 / 1;
    width: 100%;
}

/* Premium Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
    }
}

@keyframes text-shimmer {
    to {
        background-position: 200% center;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Block Game Specific UI - Reusable Component Base */
.block-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.block-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-md);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-4), var(--accent-1024));
    color: white;
    box-shadow: var(--glow-accent-4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* SVG Helpers */
.svg-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Layout components */

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

/* Common Text Utilities */
.text-center {
    text-align: center;
}

.my-12 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}