/* CSS Variables - Mahjong Theme */
:root {
    --bg-table: #0d5c3d;
    --bg-table-light: #0f7a4f;
    --bg-felt: #116b45;
    
    --tile-face: #f5f0e1;
    --tile-side: #d4c9a8;
    --tile-shadow: #8b7355;
    --tile-border: #c4b896;
    --tile-highlight: #fffef5;
    
    --accent-gold: #d4a853;
    --accent-gold-light: #f0d080;
    --accent-red: #c44536;
    --accent-green: #4ade80;
    
    --text-dark: #2c2416;
    --text-medium: #5c4d3a;
    --text-light: #8b7d6b;
    
    --badge-en: #3b82f6;
    --badge-pt: #f59e0b;
    
    --shadow-soft: rgba(0, 0, 0, 0.15);
    --shadow-medium: rgba(0, 0, 0, 0.25);
    --shadow-hard: rgba(0, 0, 0, 0.4);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font-main);
    background: var(--bg-table);
    color: var(--tile-face);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    background: 
        radial-gradient(ellipse at 50% 30%, var(--bg-table-light) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(13, 92, 61, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(17, 107, 69, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-table) 0%, var(--bg-felt) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Felt texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* App Container */
.app {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tile-face);
    text-shadow: 0 2px 4px var(--shadow-medium);
}

.logo span {
    color: var(--accent-gold);
}

.stats-bar {
    display: flex;
    gap: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px var(--shadow-soft);
}

/* Category Navigation */
.category-nav-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 16px;
    position: relative;
}

.nav-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--tile-face);
    font-size: 1.4rem;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.nav-arrow-left {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.nav-arrow-right {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
}

.nav-arrow:hover {
    background: rgba(0,0,0,0.4);
    color: var(--accent-gold);
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    flex: 1;
    justify-content: center;
}

.category-btn {
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
}

.category-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--tile-face);
    border-color: rgba(255,255,255,0.2);
}

.category-btn.active {
    background: var(--accent-gold);
    color: var(--text-dark);
    border-color: var(--accent-gold-light);
    box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
}

/* Game Container */
.game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

#round-progress {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 2px var(--shadow-soft);
}

.btn-new-round {
    padding: 10px 18px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--tile-face);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-new-round:hover {
    background: rgba(0,0,0,0.45);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Mobile hint */
.mobile-hint {
    display: none;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* ===== MAHJONG BOARD ===== */
.mahjong-board {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 24px;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%),
        rgba(0,0,0,0.15);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(0,0,0,0.2);
    box-shadow: 
        inset 0 2px 20px rgba(0,0,0,0.2),
        0 4px 20px rgba(0,0,0,0.3);
    min-height: 400px;
    align-content: center;
    justify-items: center;
}

/* ===== MAHJONG TILES ===== */
.tile {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1 / 1.15;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
    transform-style: preserve-3d;
    perspective: 500px;
}

/* Tile 3D structure */
.tile-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    
    /* Face */
    background: linear-gradient(165deg, var(--tile-highlight) 0%, var(--tile-face) 50%, #e8e0cc 100%);
    border-radius: var(--radius-md);
    
    /* 3D effect borders */
    border: 1px solid var(--tile-border);
    box-shadow: 
        /* Top light edge */
        inset 0 1px 0 rgba(255,255,255,0.8),
        /* Left light edge */
        inset 1px 0 0 rgba(255,255,255,0.4),
        /* Bottom dark edge (3D depth) */
        0 4px 0 var(--tile-side),
        0 5px 0 var(--tile-shadow),
        /* Right dark edge (3D depth) */
        4px 4px 0 var(--tile-shadow),
        /* Ambient shadow */
        0 8px 16px var(--shadow-medium),
        4px 8px 12px var(--shadow-soft);
    
    transition: all var(--transition-fast);
}

/* Language badge */
.tile-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.tile-badge.en {
    background: linear-gradient(135deg, #4a90d9 0%, var(--badge-en) 100%);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.4);
}

.tile-badge.pt {
    background: linear-gradient(135deg, #f7b731 0%, var(--badge-pt) 100%);
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.4);
}

/* Word text */
.tile-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.25;
    padding: 4px 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphenate-limit-chars: 6 3 2;
    -webkit-hyphenate-limit-chars: 6 3 2;
}

/* Mastery indicator */
.tile-mastery {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: var(--accent-gold);
    letter-spacing: 3px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Tile States */
.tile:hover .tile-inner {
    transform: translateY(-4px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 1px 0 0 rgba(255,255,255,0.5),
        0 4px 0 var(--tile-side),
        0 5px 0 var(--tile-shadow),
        4px 4px 0 var(--tile-shadow),
        0 12px 24px var(--shadow-medium),
        4px 12px 20px var(--shadow-soft);
}

.tile:active .tile-inner {
    transform: translateY(2px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 1px 0 0 rgba(255,255,255,0.3),
        0 2px 0 var(--tile-side),
        0 3px 0 var(--tile-shadow),
        2px 2px 0 var(--tile-shadow),
        0 4px 8px var(--shadow-soft);
}

/* Selected state */
.tile.selected .tile-inner {
    transform: translateY(-6px) scale(1.03);
    background: linear-gradient(165deg, #e8ffe8 0%, #c8f7c8 50%, #a8e8a8 100%);
    border-color: var(--accent-green);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 1px 0 0 rgba(255,255,255,0.6),
        0 4px 0 #6bc96b,
        0 5px 0 #4a9a4a,
        4px 4px 0 #4a9a4a,
        0 0 20px rgba(74, 222, 128, 0.4),
        0 14px 28px var(--shadow-medium);
    animation: tileFloat 1.5s ease-in-out infinite;
}

@keyframes tileFloat {
    0%, 100% { transform: translateY(-6px) scale(1.03); }
    50% { transform: translateY(-10px) scale(1.03); }
}

/* Matched animation */
.tile.matched .tile-inner {
    animation: tileMatch 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tileMatch {
    0% {
        transform: scale(1) rotateY(0);
        opacity: 1;
    }
    30% {
        transform: scale(1.15) rotateY(180deg);
        background: linear-gradient(165deg, #fff7cc 0%, var(--accent-gold) 100%);
    }
    100% {
        transform: scale(0) rotateY(360deg);
        opacity: 0;
    }
}

/* Wrong match animation */
.tile.wrong .tile-inner {
    animation: tileShake 500ms ease;
    background: linear-gradient(165deg, #ffe8e8 0%, #ffcccc 50%, #ffaaaa 100%) !important;
    border-color: var(--accent-red) !important;
}

@keyframes tileShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    15%, 45%, 75% { transform: translateX(-8px) rotate(-2deg); }
    30%, 60%, 90% { transform: translateX(8px) rotate(2deg); }
}

/* Mastered tile styling */
.tile.mastered .tile-inner {
    background: linear-gradient(165deg, #fff9e6 0%, #fff0cc 50%, #ffe6b3 100%);
    border-color: var(--accent-gold);
}

.tile.mastered .tile-mastery {
    color: #b8860b;
}

/* Learning tile styling */
.tile.learning .tile-inner {
    border-color: #d4a853;
}

/* ===== ROUND COMPLETE OVERLAY ===== */
.round-complete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 92, 61, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 20px;
}

.round-complete-overlay.show {
    opacity: 1;
    visibility: visible;
}

.round-complete-modal {
    background: linear-gradient(180deg, var(--tile-face) 0%, #e8e0cc 100%);
    padding: 36px 44px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--tile-border);
    text-align: center;
    transform: scale(0.9) rotateX(10deg);
    transition: transform var(--transition-bounce);
    max-width: 360px;
    width: 100%;
    box-shadow: 
        0 4px 0 var(--tile-side),
        0 6px 0 var(--tile-shadow),
        0 20px 40px var(--shadow-hard);
}

.round-complete-overlay.show .round-complete-modal {
    transform: scale(1) rotateX(0);
}

.round-complete-modal h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bg-table);
    margin-bottom: 24px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.round-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.round-stats p {
    font-size: 1rem;
    color: var(--text-medium);
}

.round-stats span {
    font-weight: 700;
    color: var(--text-dark);
}

.btn-continue {
    padding: 14px 40px;
    background: linear-gradient(180deg, var(--bg-table-light) 0%, var(--bg-table) 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--tile-face);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 
        0 3px 0 #084d30,
        0 6px 12px var(--shadow-medium);
}

.btn-continue:hover {
    background: linear-gradient(180deg, #12a362 0%, var(--bg-table-light) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 5px 0 #084d30,
        0 10px 20px var(--shadow-medium);
}

.btn-continue:active {
    transform: translateY(2px);
    box-shadow: 
        0 1px 0 #084d30,
        0 2px 4px var(--shadow-soft);
}

/* Rating prompt */
.rating-prompt {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 16px;
    font-weight: 500;
}

.round-info {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Rating Buttons */
.rating-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 70px;
}

.rating-btn.rating-again {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 3px 0 #922b21, 0 4px 8px var(--shadow-medium);
}

.rating-btn.rating-again:hover {
    background: linear-gradient(180deg, #ff6b5b 0%, #e74c3c 100%);
    transform: translateY(-2px);
}

.rating-btn.rating-hard {
    background: linear-gradient(180deg, #f39c12 0%, #d68910 100%);
    color: white;
    box-shadow: 0 3px 0 #a6740c, 0 4px 8px var(--shadow-medium);
}

.rating-btn.rating-hard:hover {
    background: linear-gradient(180deg, #f7b731 0%, #f39c12 100%);
    transform: translateY(-2px);
}

.rating-btn.rating-good {
    background: linear-gradient(180deg, #27ae60 0%, #1e8449 100%);
    color: white;
    box-shadow: 0 3px 0 #145a32, 0 4px 8px var(--shadow-medium);
}

.rating-btn.rating-good:hover {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    transform: translateY(-2px);
}

.rating-btn.rating-easy {
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 3px 0 #1a5276, 0 4px 8px var(--shadow-medium);
}

.rating-btn.rating-easy:hover {
    background: linear-gradient(180deg, #5dade2 0%, #3498db 100%);
    transform: translateY(-2px);
}

.rating-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 currentColor;
}

/* Tier badge on tiles */
.tile-tier {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 1px 4px;
    font-size: 0.45rem;
    font-weight: 700;
    background: rgba(0,0,0,0.15);
    color: var(--text-light);
    border-radius: 2px;
}

/* Tier unlock notification */
.tier-unlock-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tier-unlock-notification.show {
    transform: translateX(-50%) translateY(0);
}

.tier-unlock-content {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.tier-unlock-content h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.tier-unlock-content p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    .app {
        padding: 8px;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
    
    .header {
        flex-direction: row;
        gap: 8px;
        padding: 10px 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }
    
    .stats-bar {
        gap: 16px;
        justify-content: center;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .category-nav-wrapper {
        margin-bottom: 10px;
    }
    
    .nav-arrow {
        display: flex;
        width: 30px;
        font-size: 1.2rem;
    }
    
    .category-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 6px;
        gap: 6px;
        border-radius: 0;
    }
    
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    
    .category-btn {
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 0.65rem;
    }
    
    .mobile-hint {
        display: block;
        padding: 8px 12px;
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .game-info {
        margin-bottom: 8px;
    }
    
    #round-progress {
        font-size: 0.8rem;
    }
    
    .btn-new-round {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    /* Mobile Mahjong Board - 4 columns */
    .mahjong-board {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 12px;
        min-height: 0;
        flex: 1;
        align-content: start;
        overflow-y: auto;
    }
    
    .tile {
        max-width: 100%;
        aspect-ratio: 1 / 1.1;
    }
    
    .tile-inner {
        padding: 6px;
        box-shadow: 
            inset 0 1px 0 rgba(255,255,255,0.8),
            inset 1px 0 0 rgba(255,255,255,0.4),
            0 3px 0 var(--tile-side),
            0 4px 0 var(--tile-shadow),
            3px 3px 0 var(--tile-shadow),
            0 6px 12px var(--shadow-medium);
    }
    
    .tile-badge {
        top: 4px;
        right: 4px;
        padding: 1px 4px;
        font-size: 0.45rem;
    }
    
    .tile-text {
        font-size: 0.83rem;
        padding: 2px 4px;
    }
    
    .tile-mastery {
        font-size: 0.4rem;
        bottom: 4px;
    }
    
    .round-complete-modal {
        padding: 28px 24px;
    }
    
    .round-complete-modal h2 {
        font-size: 1.3rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .header {
        padding: 8px 10px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .stats-bar {
        gap: 12px;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .category-btn {
        padding: 5px 10px;
        font-size: 0.6rem;
    }
    
    .mahjong-board {
        gap: 6px;
        padding: 8px;
    }
    
    .tile-text {
        font-size: 0.75rem;
    }
    
    .tile-badge {
        font-size: 0.4rem;
        padding: 1px 3px;
    }
}

/* Touch devices - disable hover effects */
@media (hover: none) {
    .tile:hover .tile-inner {
        transform: none;
        box-shadow: 
            inset 0 1px 0 rgba(255,255,255,0.8),
            inset 1px 0 0 rgba(255,255,255,0.4),
            0 4px 0 var(--tile-side),
            0 5px 0 var(--tile-shadow),
            4px 4px 0 var(--tile-shadow),
            0 8px 16px var(--shadow-medium);
    }
    
    .tile.selected:hover .tile-inner {
        transform: translateY(-6px) scale(1.03);
    }
    
    .tile:active .tile-inner {
        transform: scale(0.97);
        transition: transform 50ms ease;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 6px 12px;
    }
    
    .logo {
        width: auto;
    }
    
    .category-nav-wrapper {
        margin-bottom: 6px;
    }
    
    .mobile-hint {
        display: none;
    }
    
    .game-info {
        margin-bottom: 6px;
    }
    
    .mahjong-board {
        grid-template-columns: repeat(8, 1fr);
        padding: 10px;
    }
    
    .tile {
        aspect-ratio: 1 / 1;
    }
}
