/**
 * [Senior Standard] Click Game Style v3.8
 * Features: Interactive Animations, Responsive Grid
 */

.click-game-app {
    max-width: 900px;
    margin: 0 auto;
}

/* Config Panel */
.config-panel {
    background: #fff;
    padding: 20px;
}
.config-panel h3 { margin: 0 0 15px 0; font-size: 1.1rem; color: #334155; }

.config-grid {
    display: flex;
    align-items: center;
    gap: 20px;
}
.input-group { display: flex; align-items: center; gap: 10px; }
.input-pastel {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 80px;
    text-align: center;
    font-size: 1rem;
}
.config-tip { font-size: 0.85rem; color: #94a3b8; margin: 0; }

/* Game Layout */
.game-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

/* Game Card */
.game-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.game-header h2 { margin: 0 0 20px 0; font-size: 1.5rem; color: #1e293b; }

.display-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.display-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.display-item .label { font-size: 0.9rem; color: #64748b; margin-bottom: 5px; }
.display-item .value { font-size: 2rem; font-weight: 800; color: #334155; font-variant-numeric: tabular-nums; }
.display-item .value.highlight { color: #3b82f6; }

.game-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-main-click {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(253, 160, 133, 0.4);
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.btn-main-click:active:not(:disabled) {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(253, 160, 133, 0.3);
}
.btn-main-click:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.game-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.game-controls button {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Ranking Card */
.ranking-card {
    background: #f8fafc;
    padding: 20px;
    max-height: 450px;
    overflow-y: auto;
}
.ranking-card h3 { margin: 0 0 15px 0; font-size: 1.1rem; color: #334155; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ranking-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}
.ranking-list li:last-child { border-bottom: none; }
.ranking-list .rank { font-weight: 800; color: #3b82f6; width: 30px; }
.ranking-list .score { font-weight: 700; color: #1e293b; }
.ranking-list .date { font-size: 0.8rem; color: #94a3b8; }
.empty-rank { color: #94a3b8; text-align: center; padding: 20px 0; }

.btn-text-only {
    background: none; border: none; color: #94a3b8; font-size: 0.85rem; cursor: pointer; width: 100%; text-align: right;
}
.btn-text-only:hover { color: #ef4444; }

/* Toast */
.toast-popup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
}
.toast-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .game-layout { grid-template-columns: 1fr; }
    .config-grid { flex-direction: column; align-items: flex-start; gap: 10px; }
    .btn-main-click { width: 150px; height: 150px; font-size: 1.2rem; }
}
