/* Game specific styles for Stopwatch Challenge */

:root {
    --primary-color: #FF9800;
    --primary-hover: #F57C00;
    --primary-shadow: #E65100;
    --secondary-color: #5d4037;
    --text-main: #333;
    --bg-card: #FFFFFF;
    --border-color: #e0e0e0;
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.game-container h1 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.game-description {
    margin-bottom: 3rem;
    color: #555;
    font-size: 1.1rem;
}

/* Timer Display */
.timer-display-wrapper {
    background: #fff;
    padding: 3rem 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 4px solid var(--primary-color);
}

.timer-display {
    font-size: 6rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Courier New', Courier, monospace;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.timer-display.hidden-nums {
    color: transparent;
    /* text-shadow: 0 0 20px rgba(0, 0, 0, 0.1); */
    /* Blur effect hint */
    position: relative;
}

.timer-display.hidden-nums::after {
    content: "???";
    color: #ccc;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    text-shadow: none;
}

.diff-display {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
}

.diff-display.perfect {
    color: #E91E63;
}

/* Pink for Perfect */
.diff-display.good {
    color: #FF9800;
}

.diff-display.bad {
    color: #555;
}

/* Controls */
.controls {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-large {
    font-size: 1.5rem;
    padding: 1rem 4rem;
    width: 100%;
    max-width: 300px;
}

.secondary-btn {
    background: none;
    border: none;
    color: #777;
    text-decoration: underline;
    cursor: pointer;
}

.secondary-btn:hover {
    color: #333;
}

/* Score History */
.score-history {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.score-history h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.score-history ol {
    padding-left: 2rem;
}

.score-history li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.score-history li.perfect-score {
    color: #E91E63;
    font-weight: bold;
}

/* Instructions */
.instructions {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    margin: 3rem auto 5rem;
    color: #444;
    line-height: 1.8;
}

.instructions h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.instructions h3:first-child {
    margin-top: 0.5rem;
}

/* Buttons */
.primary-btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 0 var(--primary-shadow);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

/* Pressed state for big button */
.primary-btn.pressed {
    background-color: #E91E63;
    /* Change color when stopping */
    box-shadow: 0 4px 0 #C2185B;
}

.hidden {
    display: none;
}