/* ============================================================================
   Weekly Game Cards — Game cards, Schedule button, Process Balance, Roll Focus
   ============================================================================ */

/* Games — redesigned cards */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-card-v3 {
    background: var(--gray-1);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
}

.game-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem 0.75rem;
}

.game-card-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.game-card-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.game-card-desc {
    padding: 0 1.25rem 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.game-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
}

.game-detail {
    background: var(--gray-1);
    padding: 0.75rem 1rem;
}

.game-detail.full-width {
    grid-column: 1 / -1;
}

.game-detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-quaternary, var(--text-tertiary));
    margin-bottom: 0.25rem;
}

.game-detail-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.game-card-reason {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-tertiary);
}

.game-card-concepts {
    padding: 0 1.25rem 0.75rem;
}

.game-card-concept-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 0.75rem;
    position: relative;
}

.game-card-concept-item::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.game-card-why {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 3px solid var(--accent);
    margin: 0 0.75rem 0.75rem;
    border-radius: 0 6px 6px 0;
    background: rgba(99, 102, 241, 0.04);
    border-top: none;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

/* Inline concept + techniques on improvement items (main page) */
.observation-concept {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.observation-concept-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.observation-concept-body {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Roll Focus */
.roll-focus-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.roll-focus-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

/* Schedule Button & Dropdown */
.schedule-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.schedule-btn:hover {
    background: var(--accent);
    color: #fff;
}

.schedule-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.schedule-btn-added {
    color: #22c55e;
    border-color: #22c55e;
    pointer-events: none;
}

.schedule-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.3));
    z-index: var(--z-overlay);
    overflow: hidden;
}

.schedule-dropdown-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: 0.75rem 1rem 0.375rem;
}

.schedule-dropdown-option {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    border-top: 1px solid var(--border-subtle);
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease;
}

.schedule-dropdown-option:hover {
    background: var(--gray-1);
}

.schedule-opt-day {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.schedule-opt-class {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Auto-generated badge (on summary cards) */
.auto-generated-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--gray-1);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    white-space: nowrap;
}

/* Process Balance — Per-system good/bad cards */
.process-balance {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.balance-system-card {
    background: var(--gray-1);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.balance-system-header {
    margin-bottom: 0.75rem;
}

.balance-system-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.balance-perspective-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}

.balance-perspective-row:last-child {
    margin-bottom: 0;
}

.balance-perspective-label {
    width: 80px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.balance-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.balance-bar-track {
    width: 100%;
    height: 8px;
    background: var(--gray-2, #2a2a2a);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.balance-success-rate {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-align: center;
}

.balance-bar-good {
    height: 100%;
    background: #16a34a;
    transition: width 0.3s ease;
}

.balance-bar-bad {
    height: 100%;
    background: #ef4444;
    transition: width 0.3s ease;
}

