/* ==========================================================================
   HAPPY CITY — CSS
   ========================================================================== */

.hc-container { animation: fade-in 0.3s ease; }

.hc-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.hc-player-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}
.hc-player-card.hc-leader {
    box-shadow: var(--shadow-lg);
}

.hc-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
}
.hc-player-name { font-weight: 800; font-size: 0.95rem; }
.hc-crown { font-size: 1.2rem; }

.hc-score-big {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    padding: 0.5rem 1rem 0.1rem;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hc-score-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.hc-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}
.hc-formula-val { font-weight: 900; font-size: 1.1rem; }
.hc-formula-op { color: var(--text-secondary); font-size: 0.85rem; }

.hc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
}
.hc-input-group { display: flex; flex-direction: column; gap: 0.3rem; }
.hc-input-label { font-size: 0.78rem; font-weight: 700; text-align: center; }

.hc-stepper {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
}
.hc-step-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 900;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hc-step-btn:hover { background: var(--accent-light); }
.hc-num-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
    padding: 0;
    width: 0;
    outline: none;
    -moz-appearance: textfield;
}
.hc-num-input::-webkit-outer-spin-button,
.hc-num-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.hc-buildings {
    padding: 0.5rem 0.75rem 0.75rem;
    border-top: 1px solid var(--bg-tertiary);
}
.hc-bld-label { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); display: block; margin-bottom: 0.4rem; }
.hc-bld-track {
    display: flex;
    gap: 0.3rem;
}
.hc-bld-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--bg-tertiary);
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.hc-bld-dot.filled { border-color: transparent; }
.hc-bld-dot:hover { transform: scale(1.15); }

