/* Pictle AI Game Styles - TGGames Universe */

/* ============================================
   THEME VARIABLES
   ============================================ */
:root {
    /* Dark Mode Defaults (TGGames Universe) */
    --pg-text-color: white;
    --pg-panel-bg: #252525;
    --pg-panel-border: #000;
    --pg-accent-color: #ff4444;
    --pg-secondary-bg: #353535;
    --pg-secondary-border: #444;
    --pg-hover-bg: #404040;
    --pg-input-bg: #353535;
    --pg-input-text: white;
    --pg-placeholder: #888;
    --pg-shadow: rgba(0, 0, 0, 0.3);
    --pg-ad-placeholder-bg: #353535;
    --pg-ad-placeholder-border: #555;
    --pg-loading-bg: rgba(37, 37, 37, 0.95);
    --pg-scrollbar-track: #252525;
    --pg-scrollbar-thumb: #444;
    --pg-daily-color: #ffc107;
    --pg-free-color: #20c997;
}

body.light-mode {
    /* Light Mode Overrides */
    --pg-text-color: #2d2d2d;
    --pg-panel-bg: #f5f5f5;
    --pg-panel-border: #2d2d2d;
    --pg-accent-color: #cc0000;
    --pg-secondary-bg: #e8e8e8;
    --pg-secondary-border: #ccc;
    --pg-hover-bg: #fff;
    --pg-input-bg: #fff;
    --pg-input-text: #2d2d2d;
    --pg-placeholder: #999;
    --pg-shadow: rgba(0, 0, 0, 0.1);
    --pg-ad-placeholder-bg: #e0e0e0;
    --pg-ad-placeholder-border: #888;
    --pg-loading-bg: rgba(245, 245, 245, 0.95);
    --pg-scrollbar-track: #e0e0e0;
    --pg-scrollbar-thumb: #bbb;
    --pg-daily-color: #e6a800;
    --pg-free-color: #17a085;
}

/* ============================================
   BASE STYLES
   ============================================ */

/* Police simple pour Pictle (pas pixel) - Override complet pour lisibilité */
.pictle-game,
.pictle-game *,
.pictle-game h1,
.pictle-game h2,
.pictle-game h3,
.pictle-game p,
.pictle-game button,
.pictle-game input,
.pictle-game div,
.pictle-game span {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;
}

/* Container principal du jeu */
.pictle-game {
    min-height: calc(100vh - 160px);
    /* Background inherited from body (handled by style.css) */
    background-color: transparent; 
    padding: 40px 20px;
    color: var(--pg-text-color);
}

/* Layout Grid */
.game-layout {
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
    align-items: stretch;
}

/* Sidebar Styles */
.sidebar-left, .sidebar-right {
    position: relative;
}

.sidebar-panel {
    background: var(--pg-panel-bg);
    border: 2px solid var(--pg-panel-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px var(--pg-shadow);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Section des tentatives (2/3 hauteur) */
.attempts-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Checkbox hack base styles for Attempts (Desktop) */
.attempts-toggle { display: none; }
.attempts-header { cursor: default; display: block; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--pg-accent-color); }
.attempts-header .toggle-icon { display: none; }
.attempts-list { display: block; }

/* Section Comment jouer (1/3 hauteur) */
.howto-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--pg-secondary-bg);
    border-radius: 6px;
    padding: 10px;
    border: 1px solid var(--pg-secondary-border);
}

/* Checkbox hack base styles (Collapsible) */
.howto-toggle { display: none; }

.howto-header { 
    cursor: pointer; 
    display: block; 
    user-select: none;
}

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

.howto-header .toggle-icon { 
    display: inline-block; 
    transition: transform 0.3s;
    font-size: 12px;
}

.howto-content { 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
}

/* When checked (open) */
.howto-toggle:checked ~ .howto-content {
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

.howto-toggle:checked ~ .howto-header .toggle-icon {
    transform: rotate(180deg);
}

/* Studio Logo in HowTo */
.studio-logo-container {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--pg-secondary-border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.studio-logo {
    max-width: 60px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: block;
}

.studio-logo:hover {
    opacity: 1;
}

.howto-section ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.2;
}

.howto-section li {
    padding: 4px 0;
    padding-left: 15px;
    position: relative;
}

.howto-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--pg-accent-color);
}

.howto-section .mode-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--pg-secondary-border);
}

.howto-section .mode-info p {
    font-size: 11px;
    margin: 5px 0;
    line-height: 1.4;
}

.sidebar-panel h3 {
    color: var(--pg-accent-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pg-accent-color);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Attempts List in Sidebar */
.attempts-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    min-height: 0;
}

.empty-state {
    text-align: center;
    color: var(--pg-placeholder);
    font-style: italic;
    margin-top: 20px;
    font-size: 0.9em;
}

.attempt-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--pg-secondary-bg);
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid var(--pg-secondary-border);
    border-left: 4px solid transparent;
    transition: background-color 0.3s;
}

.attempt-item:hover {
    background: var(--pg-hover-bg);
    border-color: #555;
}

.attempt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.attempt-score {
    font-weight: bold;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #222;
    color: white; /* Always white for contrast on badges */
}

.attempt-text {
    color: var(--pg-text-color);
    font-size: 12px;
    line-height: 1.4;
}

/* Score Colors */
.attempt-item.excellent { border-left-color: #28a745; }
.attempt-item.excellent .attempt-score { color: #28a745; background: #1a3320; }

.attempt-item.good { border-left-color: #20c997; }
.attempt-item.good .attempt-score { color: #20c997; background: #1a332e; }

.attempt-item.medium { border-left-color: #ffc107; }
.attempt-item.medium .attempt-score { color: #ffc107; background: #332b1a; }

.attempt-item.low { border-left-color: #dc3545; }
.attempt-item.low .attempt-score { color: #dc3545; background: #331a1c; }

/* Main Game Area */
.game-container {
    background: var(--pg-panel-bg);
    border: 2px solid var(--pg-panel-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px var(--pg-shadow);
    transition: background-color 0.3s, border-color 0.3s;
    min-height: 650px; /* Ensure minimum height for layout stability */
}

/* Ad Sidebar */
.ad-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--pg-panel-bg);
    border: 2px solid var(--pg-panel-border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column; /* Changed to column to stack title and ad */
    gap: 10px;
    align-items: stretch;
    justify-content: flex-start;
    transition: background-color 0.3s, border-color 0.3s;
    overflow-y: auto;
}

.ad-container h3 {
    color: var(--pg-accent-color);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pg-accent-color);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.ad-placeholder {
    width: 100%;
    flex: 1;
    background: var(--pg-ad-placeholder-bg);
    border: 2px dashed var(--pg-ad-placeholder-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 0; /* Let flex handle height */
    box-sizing: border-box;
}

/* Ensure ad content doesn't break the container */
.ad-placeholder ins.adsbygoogle {
    display: block !important;
    width: 100%;
    height: 100%;
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    background: rgba(0,0,0,0.5);
    padding: 2px 4px;
    border-radius: 2px;
}

body.light-mode .ad-label {
    background: rgba(255,255,255,0.8);
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 250px 1fr;
    }
    
    .sidebar-right {
        display: block;
        grid-column: 1 / -1; /* Full width at bottom */
        position: static; /* Reset position for tablet layout */
    }

    .ad-container {
        position: static; /* Reset position */
        min-height: 250px;
        height: auto !important;
        flex-direction: column;
        align-items: stretch;
        overflow-y: visible;
    }

    .ad-placeholder {
        min-height: 250px;
    }
}

@media (max-width: 900px) {
    .game-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-left {
        position: static; /* Reset position */
    }

    /* Reorganization of Sidebar Panel for Mobile */
    .sidebar-panel {
        height: auto !important;
        max-height: none;
        position: static; /* Reset position */
        order: 2; /* Below game */
        
        /* Remove container styling to let children breathe */
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Style Attempts Section as a card */
    .attempts-section {
        background: var(--pg-panel-bg);
        border: 2px solid var(--pg-panel-border);
        border-radius: 8px;
        padding: 0;
        max-height: none; /* Let it grow */
        box-shadow: 0 4px 10px var(--pg-shadow);
        overflow: hidden;
    }

    .attempts-header {
        cursor: pointer;
        padding: 15px;
        margin: 0;
        border-bottom: none;
        display: block;
    }

    .attempts-header .toggle-icon {
        display: inline-block;
        transition: transform 0.3s;
        font-size: 12px;
    }

    .attempts-list {
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s ease-out, padding 0.3s ease, opacity 0.3s ease;
        padding: 0 15px;
        opacity: 0;
    }

    /* When checked (open) */
    .attempts-toggle:checked ~ .attempts-list {
        max-height: 300px;
        padding-bottom: 15px;
        opacity: 1;
        transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
    }

    .attempts-toggle:checked ~ .attempts-header .toggle-icon {
        transform: rotate(180deg);
    }

    .attempts-toggle:checked ~ .attempts-header {
        border-bottom: 1px solid var(--pg-secondary-border);
    }

    /* Move How To Play to bottom and make it collapsible */

    /* Move How To Play to bottom and make it collapsible */
    .howto-section {
        order: 10;
        padding: 0;
        overflow: hidden;
    }

    .howto-header {
        cursor: pointer;
        padding: 15px;
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .howto-header h3 {
        margin: 0;
        border: none;
        padding: 0;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }

    .howto-header .toggle-icon {
        display: inline-block;
        transition: transform 0.3s;
        font-size: 12px;
        margin-left: 10px;
    }

    .howto-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease, opacity 0.3s ease;
        padding: 0 15px;
        opacity: 0;
    }

    /* When checked (open) */
    .howto-toggle:checked ~ .howto-content {
        max-height: 500px;
        padding-bottom: 15px;
        opacity: 1;
        transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
    }

    .howto-toggle:checked ~ .howto-header .toggle-icon {
        transform: rotate(180deg);
    }

    .game-center {
        order: 1;
    }

    .sidebar-right {
        display: block;
        order: 3;
    }
    
    .ad-container {
        height: auto;
        min-height: 250px;
        position: static;
    }

    /* Better Mode Selector for Mobile */
    .mode-selector {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .mode-btn {
        width: auto;
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 600px) {
    .pictle-game {
        padding: 10px 5px;
    }

    .game-container {
        padding: 15px;
    }

    .game-header h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .image-wrapper {
        height: 250px; /* Smaller image to keep input visible */
    }

    /* Compact Mode Selector */
    .mode-selector-container {
        gap: 10px;
        height: auto;
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .mode-selector {
        width: 100%;
    }
    
    .mode-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .mode-indicator {
        height: auto;
        width: 100%;
    }

    /* Input row optimization */
    .input-section {
        gap: 8px;
    }
    
    #promptInput {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .game-controls {
        gap: 5px;
    }
    
    .btn-secondary {
        padding: 8px;
        font-size: 12px;
    }
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 32px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--pg-placeholder);
    font-size: 14px;
    margin-bottom: 15px;
}

/* ============================================
   MODE SELECTOR
   ============================================ */

.mode-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    /* Pour garantir l'alignement vertical parfait */
    min-height: 48px;
    height: auto;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mode-btn {
    padding: 10px 20px;
    background: var(--pg-secondary-bg);
    color: var(--pg-placeholder);
    border: 2px solid var(--pg-secondary-border);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: var(--pg-hover-bg);
    border-color: var(--pg-accent-color);
    color: var(--pg-text-color);
}

.mode-btn.active {
    background: var(--pg-accent-color);
    border-color: var(--pg-accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

/* Mode-specific colors */
#dailyModeBtn.active {
    background: linear-gradient(135deg, var(--pg-daily-color) 0%, #e6a800 100%);
    border-color: var(--pg-daily-color);
}

#freeModeBtn.active {
    background: linear-gradient(135deg, var(--pg-free-color) 0%, #17a085 100%);
    border-color: var(--pg-free-color);
}

/* ============================================
   MODE INDICATOR
   ============================================ */

.mode-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
    height: 100%;
}

.mode-text {
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    padding: 0 8px;
}
.mode-text.daily {
    color: var(--pg-daily-color);
}
.mode-text.free {
    color: var(--pg-free-color);
}

.mode-date {
    font-size: 12px;
    color: var(--pg-placeholder);
}

.mode-note {
    font-size: 11px;
    color: var(--pg-placeholder);
    font-style: italic;
}

/* ============================================
   MODE INFO BOX
   ============================================ */

.mode-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--pg-secondary-border);
}

.mode-info p {
    font-size: 12px;
    color: var(--pg-placeholder);
    margin-bottom: 5px;
}

.mode-info p:last-child {
    margin-bottom: 0;
}

.mode-info strong {
    color: var(--pg-text-color);
}

/* Stats */
.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--pg-secondary-bg);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--pg-secondary-border);
}

.stat-label {
    font-size: 10px;
    color: var(--pg-placeholder);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--pg-accent-color);
}

/* Image */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #111;
    border: 2px solid #000;
}

body.light-mode .image-wrapper {
    background: #ddd;
    border-color: #2d2d2d;
}

#gameImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.8s ease;
}

#gameImage.blurred { filter: blur(40px) brightness(0.5); }
#gameImage.partially-revealed { filter: blur(15px) brightness(0.7); }
#gameImage.revealed { filter: none; }

/* ============================================
   LOADING STATES WITH STEPS
   ============================================ */

.loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--pg-loading-bg);
    z-index: 10;
    color: var(--pg-text-color);
}

.loading.hidden { display: none; }

.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--pg-secondary-border);
    border-top: 3px solid var(--pg-accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Loading Steps */
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    max-width: 300px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--pg-secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--pg-secondary-border);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.loading-step.active {
    opacity: 1;
    border-color: var(--pg-accent-color);
    background: rgba(255, 68, 68, 0.1);
}

.loading-step.completed {
    opacity: 1;
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.step-icon {
    font-size: 20px;
}

.step-text {
    flex: 1;
    font-size: 13px;
    color: var(--pg-text-color);
}

.step-status {
    font-size: 14px;
}

.loading-step.active .step-status {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Reveal Overlay */
.reveal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: fadeIn 0.5s ease;
}

.reveal-overlay.hidden { display: none; }

.reveal-content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 90%;
}

body.light-mode .reveal-content {
    color: #2d2d2d;
}

.reveal-content h2 { font-size: 28px; margin-bottom: 15px; color: var(--pg-accent-color); }
.reveal-content p { font-size: 16px; line-height: 1.5; background: rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; }

body.light-mode .reveal-content p {
    background: rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Messages */
.message-box { min-height: 40px; margin-bottom: 15px; }

.message {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 5px;
    animation: slideDown 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.message.success { background: #1a3320; color: #28a745; border-left: 4px solid #28a745; }
.message.error { background: #331a1c; color: #dc3545; border-left: 4px solid #dc3545; }
.message.info { background: #1a332e; color: #20c997; border-left: 4px solid #20c997; }
.message.warning { background: #332b1a; color: #ffc107; border-left: 4px solid #ffc107; }

/* Input */
.input-section { display: flex; gap: 10px; margin-bottom: 20px; }

#promptInput {
    flex: 1;
    padding: 12px 15px;
    background: var(--pg-input-bg);
    color: var(--pg-input-text);
    border: 2px solid var(--pg-secondary-border);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

#promptInput:focus { outline: none; border-color: var(--pg-accent-color); box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1); }
#promptInput::placeholder { color: var(--pg-placeholder); }

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    font-family: inherit;
    text-transform: uppercase;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Controls */
.game-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }

.btn-secondary {
    flex: 1;
    padding: 10px;
    background: var(--pg-secondary-bg);
    color: var(--pg-placeholder);
    border: 2px solid var(--pg-secondary-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-secondary:hover { background: var(--pg-hover-bg); border-color: var(--pg-accent-color); color: var(--pg-accent-color); }

/* Info Box */
.info-box {
    background: var(--pg-secondary-bg);
    border: 1px solid var(--pg-secondary-border);
    border-radius: 6px;
    padding: 15px;
}

.info-box h3 { color: var(--pg-accent-color); margin-bottom: 10px; font-size: 16px; }
.info-box ul { list-style: none; padding: 0; }
.info-box li { padding: 5px 0 5px 20px; position: relative; color: var(--pg-placeholder); font-size: 13px; }
.info-box li:before { content: "✔"; position: absolute; left: 0; color: var(--pg-accent-color); font-weight: bold; }

/* Scrollbar */
.attempts-list::-webkit-scrollbar { width: 6px; }
.attempts-list::-webkit-scrollbar-track { background: var(--pg-scrollbar-track); border-radius: 10px; }
.attempts-list::-webkit-scrollbar-thumb { background: var(--pg-scrollbar-thumb); border-radius: 10px; }
.attempts-list::-webkit-scrollbar-thumb:hover { background: #555; }
