:root {
    --primary: #ff2a5f;
    --primary-glow: rgba(255, 42, 95, 0.4);
    --secondary: #00d2ff;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --panel-bg: rgba(30, 41, 59, 0.65);
    --panel-border: rgba(255, 255, 255, 0.1);
    --canvas-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at center 20%, var(--bg-dark), var(--bg-darker));
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 40px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

.title-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.main-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px var(--primary-glow));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    will-change: transform, filter;
}

.main-logo-img:hover {
    transform: scale(1.1) rotate(-6deg);
    filter: drop-shadow(0 8px 24px var(--primary));
}

.logo {
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 1px;
}

.score-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    text-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
    min-width: 60px;
    text-align: right;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.canvas-wrapper {
    position: relative;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#gameCanvas {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    box-shadow: inset 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: grab;
    display: block;
}

#gameCanvas:active {
    cursor: grabbing;
}

.footer {
    width: 100%;
    display: flex;
    justify-content: center;
}

.instructions {
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instructions strong {
    color: var(--text-main);
}
