@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&display=swap');

:root {
    --primary-bg: #0a0e17;
    --secondary-bg: #121a2a;
    --primary-text: #e0f0ff;
    --accent-blue: #00a8ff;
    --accent-cyan: #00f7ff;
    --accent-purple: #b388ff;
    --accent-red: #ff3d71;
    --accent-green: #00e096;
    --card-bg: rgba(18, 26, 42, 0.7);
    --card-border: rgba(0, 168, 255, 0.3);
    --card-glow: 0 0 15px rgba(0, 168, 255, 0.3);
    --text-glow: 0 0 10px rgba(0, 247, 255, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--primary-bg);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 168, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(179, 136, 255, 0.1) 0%, transparent 20%),
        linear-gradient(to bottom right, #0a0e17, #0a0a17);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--primary-text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--primary-bg) 15px, transparent 1%) 50% 0 / 20px 20px,
        linear-gradient(var(--primary-bg) 15px, transparent 1%) 50% 0 / 20px 20px,
        linear-gradient(transparent 15px, rgba(0, 168, 255, 0.05) 1%) 0 0 / 20px 20px,
        linear-gradient(90deg, rgba(0, 168, 255, 0.05) 15px, transparent 1%) 0 0 / 20px 20px;
    z-index: -1;
    opacity: 0.5;
    animation: gridMove 60s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 0 1000px, 0 1000px, 0 0, 0 0; }
}

.parchment {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-glow), inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.parchment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(calc(100vh + 100%)); }
}

.container {
    width: 100%;
    max-width: 900px; /* Slightly wider to accommodate content */
    text-align: center;
    position: relative;
    padding: 2.5rem;
    box-sizing: border-box; /* Include padding in width */
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-text);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-blue);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px var(--accent-cyan), 0 0 10px var(--accent-blue); }
    to { text-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-blue); }
}

h1 {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 2.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 15px var(--accent-cyan);
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 10px var(--accent-blue);
}

h1 .subtitle {
    font-size: 1.2rem;
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--accent-purple);
    margin-top: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    font-family: 'Share Tech Mono', monospace;
    text-transform: none;
    opacity: 0.9;
}

.timer-controls {
    background: rgba(18, 26, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-glow), inset 0 0 30px rgba(0, 168, 255, 0.1);
    transition: var(--transition);
}

.timer-controls:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.3), inset 0 0 30px rgba(0, 168, 255, 0.2);
}

.timer-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { opacity: 0.3; width: 0; left: 0; right: auto; }
    33% { opacity: 1; width: 100%; left: 0; right: auto; }
    66% { opacity: 0; width: 100%; left: auto; right: 0; }
    100% { opacity: 0; width: 0; left: auto; right: 0; }
}

.timer-display {
    font-size: 4.5rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-cyan);
    margin: 0 0 2rem 0;
    text-shadow: 0 0 10px var(--accent-cyan);
    letter-spacing: 4px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.timer-display::before,
.timer-display::after {
    content: '⸻';
    position: absolute;
    top: 50%;
    color: var(--accent-blue);
    opacity: 0.5;
}

.timer-display::before {
    right: 100%;
    margin-right: 1rem;
}

.timer-display::after {
    left: 100%;
    margin-left: 1rem;
}

.timer-display {
    font-size: 3.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    width: 100%;
    padding: 0 1rem; /* Add consistent padding on both sides */
    box-sizing: border-box; /* Include padding in width calculation */
}

.stats > div {
    background: rgba(18, 26, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-glow), inset 0 0 30px rgba(0, 168, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.stats > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2);
}

.stats div {
    margin: 0;
    font-size: 1rem;
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats div span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: white;
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Special styling for specific stats */
#winPercentage {
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
}

#avgTime, #projectedTime, #projectedCompletion {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--accent-purple);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .controls, .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    button, .action-btn {
        width: 100%;
        max-width: 100%;
        margin: 0.25rem 0;
    }
    
    .stats {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .goal-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    #historyList {
        max-height: 200px;
    }
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.button-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
    position: relative;
    min-height: 0; /* Prevent any minimum height issues */
}

.button-group .action-btn {
    flex: 0 0 180px; /* Fixed width for both buttons */
    width: 180px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    background: linear-gradient(145deg, #0a1a2e, #0e0f2e);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
    transition: var(--transition);
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* Ensure consistent styling for both buttons */
#winBtn, #lossBtn {
    height: 50px;
    min-height: 50px; /* Ensure minimum height */
    line-height: 1;
    vertical-align: top;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden; /* Fix for sub-pixel rendering */
}

/* Ensure consistent button styling */
#winBtn, #lossBtn {
    width: 180px; /* Fixed width for both buttons */
    min-width: 0; /* Override any min-width */
    height: 50px; /* Fixed height */
    padding: 0; /* Remove padding to control height precisely */
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-group .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.3);
}

.button-group .action-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 15px rgba(0, 168, 255, 0.2);
}

@media (max-width: 500px) {
    .button-group {
        flex-direction: column;
        max-width: 300px;
    }
    
    .button-group .action-btn {
        width: 100%;
        min-width: auto;
    }
}

button {
    background: linear-gradient(145deg, #0a1a2e, #0e0f2e);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    padding: 1.1rem 1.8rem; /* Consistent padding with action buttons */
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
    text-shadow: 0 0 5px var(--accent-cyan);
    height: 50px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 247, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

button:hover {
    background: linear-gradient(145deg, #0e223e, #12153e);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 168, 255, 0.3);
    color: white;
    text-shadow: 0 0 10px var(--accent-cyan);
}

button:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

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

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 168, 255, 0.2);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #666;
    border-color: #444;
}

.action-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.1rem 2.5rem;
    margin: 0.5rem;
    background: linear-gradient(145deg, #0a1a2e, #0e0f2e);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
    text-shadow: 0 0 8px var(--accent-cyan);
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 247, 255, 0.1), transparent);
    transform: translateX(-100%) skewX(-15deg);
    transition: var(--transition);
}

.action-btn:hover {
    background: linear-gradient(145deg, #0e223e, #12153e);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.3);
    color: white;
    text-shadow: 0 0 15px var(--accent-cyan);
}

.action-btn:hover::after {
    transform: translateX(100%) skewX(-15deg);
}

.action-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 15px rgba(0, 168, 255, 0.2);
}

.action-btn.win {
    background: linear-gradient(145deg, #004d40, #001a14);
    border-color: var(--accent-green);
    color: var(--accent-green);
    text-shadow: 0 0 8px var(--accent-green);
    margin-top: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    background: rgba(18, 26, 42, 0.5);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-glow), inset 0 0 30px rgba(0, 168, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(12, 20, 35, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 168, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.6;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 168, 255, 0.2);
    border-color: var(--accent-blue);
}

.stat-item h3 {
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.stat-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.stat-item p {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    color: white;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--accent-cyan);
    letter-spacing: 1px;
}

/* Special styling for win percentage */
#winPercentage {
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
}

/* Special styling for average time */
#avgTime {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--accent-purple);
}

.game-history {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    background: rgba(18, 26, 42, 0.5);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-glow), inset 0 0 30px rgba(0, 168, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* Include padding in width */
}

.game-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.game-history h3 {
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    padding: 0 0 1.5rem 0;
    margin: 0 0 2rem 0;
    border-bottom: 1px solid rgba(0, 168, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.game-history h3::before,
.game-history h3::after {
    content: '//';
    color: var(--accent-blue);
    margin: 0 15px;
    opacity: 0.7;
}

.game-history h3::before {
    margin-left: 0;
}

.game-history h3::after {
    margin-right: 0;
}

#historyList {
    list-style-type: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 8px;
    background: rgba(10, 18, 30, 0.6);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    position: relative;
}

#historyList::-webkit-scrollbar {
    width: 6px;
}

#historyList::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

#historyList li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 168, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    overflow: hidden;
}

#historyList li::before {
    content: '>';
    position: absolute;
    left: 10px;
    color: var(--accent-blue);
    opacity: 0.6;
    font-family: 'Courier New', monospace;
}

#historyList li:hover {
    background-color: rgba(0, 168, 255, 0.1);
    padding-left: 2rem;
}

#historyList li:last-child {
    border-bottom: none;
}

#historyList .win {
    background-color: rgba(0, 224, 150, 0.05);
    border-left: 3px solid var(--accent-green);
}

#historyList .win::before {
    content: '✓';
    color: var(--accent-green);
    margin-right: 1rem;
    font-size: 1.1em;
    text-shadow: 0 0 10px var(--accent-green);
    font-family: 'Arial', sans-serif;
}

#historyList .loss {
    background-color: rgba(255, 61, 113, 0.05);
    border-left: 3px solid var(--accent-red);
}

#historyList .loss::before {
    content: '✕';
    color: var(--accent-red);
    margin-right: 1rem;
    font-size: 1.1em;
    text-shadow: 0 0 10px var(--accent-red);
    font-family: 'Arial', sans-serif;
}

#historyList .time {
    color: rgba(0, 247, 255, 0.8);
    font-size: 0.85em;
    font-family: 'Share Tech Mono', monospace;
    margin-left: 1rem;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

/* Empty state */
#historyList:empty::after {
    content: 'No games recorded yet';
    display: block;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.goal-section {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    background: rgba(18, 26, 42, 0.5);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-glow), inset 0 0 30px rgba(0, 168, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.goal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.goal-section label {
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--accent-cyan);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.goal-section label::before {
    content: '»';
    color: var(--accent-blue);
    font-size: 1.2em;
}

.goal-section input {
    padding: 0.8rem 1rem;
    width: 100px;
    text-align: center;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    background: rgba(0, 20, 40, 0.7);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.goal-section input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.3);
    background: rgba(0, 30, 60, 0.7);
}

/* Responsive adjustments for goal section */
@media (max-width: 768px) {
    .goal-section {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.5rem;
    }
    
    .goal-section label {
        justify-content: center;
    }
    
    .goal-section input {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b38b3d;
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .controls, .action-buttons {
        flex-direction: column;
    }
    
    button, .action-btn {
        width: 100%;
        max-width: 100%;
        margin: 0.25rem 0;
    }
    
    .action-buttons {
        margin: 1.5rem 0;
    }
}
