:root {
    --bg-color: #0f172a;
    --panel-bg: rgba(15, 23, 42, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    user-select: none;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-container {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    max-width: 320px;
    transition: transform 0.3s ease;
}

h1 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#timer {
    font-family: monospace;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: #f8fafc;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
    letter-spacing: 2px;
}

.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

button {
    flex: 1;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.5);
}

button:active {
    transform: translateY(0);
}

#btn-reset {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: var(--text-main);
}

#btn-reset:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.d-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.d-pad-middle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.d-pad-center {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.d-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: 18px;
    border-radius: 12px;
}

.instructions p {
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.instructions strong {
    color: #e2e8f0;
}
