/* ============================================
   Easter Egg Game Styles
   ============================================ */

.easter-egg-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s var(--transition);
    z-index: 50;
}

.easter-egg-trigger:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.easter-egg-trigger svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
}

.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(10px);
}

.game-modal.active {
    display: flex;
}

.game-container {
    background: var(--dark-lighter);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--primary);
    max-width: 400px;
    width: 90%;
}

.game-container h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-area {
    width: 300px;
    height: 300px;
    background: var(--dark);
    border-radius: 16px;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.game-target {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-target:hover {
    transform: scale(1.1);
}

.game-target svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.game-score {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.game-score span {
    color: var(--accent);
    font-weight: 700;
}

.game-timer {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.close-game {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

/* High score table (global – persisted in localStorage) */
.high-scores {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    text-align: left;
}

.high-scores h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

.high-score-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
}

.high-score-list li {
    display: grid;
    grid-template-columns: 1.5rem 1fr 2.5rem;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.high-score-list li:nth-child(odd) {
    background: rgba(99, 102, 241, 0.08);
}

.hs-rank {
    color: var(--text-muted);
    font-weight: 600;
}

.hs-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hs-score {
    text-align: right;
    color: var(--accent);
    font-weight: 700;
}

.hs-empty,
.hs-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Light Mode - Game Modal Overrides
   ============================================ */
[data-theme="light"] .game-modal {
    background: rgba(241, 245, 249, 0.95);
}

[data-theme="light"] .game-area {
    border-color: rgba(99, 102, 241, 0.4);
}
