:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --battleship-color: #00cec9;
    --rps-color: #ff7675;
    --ttt-color: #fdcb6e;
    --c4-color: #6c5ce7;
    --chess-color: #ecf0f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-content h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-content p {
    font-size: 14px;
    color: var(--text-dim);
}

.user-badge {
    background: var(--glass);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-card:active {
    transform: scale(0.97);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    fill: var(--text-light);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* Theme Colors for Icons */
.icon-box.battleship {
    border-color: rgba(0, 206, 201, 0.3);
}

.icon-box.battleship svg {
    fill: var(--battleship-color);
}

.icon-box.rps {
    border-color: rgba(255, 118, 117, 0.3);
}

.icon-box.rps svg {
    fill: var(--rps-color);
}

.icon-box.ttt {
    border-color: rgba(253, 203, 110, 0.3);
}

.icon-box.ttt svg {
    fill: var(--ttt-color);
}

.icon-box.c4 {
    border-color: rgba(108, 92, 231, 0.3);
}

.icon-box.c4 svg {
    fill: var(--c4-color);
}

.icon-box.chess {
    border-color: rgba(236, 240, 241, 0.3);
}

.icon-box.chess svg {
    fill: var(--chess-color);
}

.game-info {
    flex: 1;
}

.game-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.game-info p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.4;
}

.go-icon {
    font-size: 20px;
    color: var(--text-dim);
    opacity: 0.5;
    transition: transform 0.3s;
}

.game-card:hover .go-icon {
    transform: translateX(4px);
    opacity: 1;
    color: var(--text-light);
}

footer {
    margin-top: auto;
    padding: 40px 0 20px;
    text-align: center;
}

footer p {
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.6;
}

@media (hover: hover) {
    .game-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
}