/**
 * games-highscore.css — arcade-style "NEW HIGH SCORE" panel injected into game
 * win modals by game-core.js (injectHighScore). Shown only when a finished game
 * lands in the visible top-5 of its all-time board. Guests get an inline name
 * entry; named/registered players see their rank. New file (games-section CSS
 * is owner-authorized in new files only).
 */

.game-hs {
    margin-top: 1rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: var(--border-radius, 10px);
    text-align: center;
    color: #3a2c00;
    background: linear-gradient(150deg, #fff3b0 0%, #ffd54a 55%, #f5b301 100%);
    border: 2px solid #e0a800;
    box-shadow: 0 4px 18px rgba(245, 179, 1, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: game-hs-pop 0.4s ease-out both;
}

.game-hs--loading {
    min-height: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
}

@keyframes game-hs-pop {
    0%   { transform: scale(0.82); opacity: 0; }
    60%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.game-hs-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.game-hs-medal {
    font-size: 1.9rem;
    line-height: 1;
    animation: game-hs-bob 1.4s ease-in-out infinite;
}

@keyframes game-hs-bob {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-3px) rotate(4deg); }
}

.game-hs-title {
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 1.15rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.game-hs-pos {
    font-weight: 800;
    font-size: 1.25rem;
    padding: 0.05rem 0.55rem;
    border-radius: var(--border-radius-full, 999px);
    background: #3a2c00;
    color: #ffd54a;
}

.game-hs-value {
    margin-top: 0.35rem;
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.game-hs-form {
    margin-top: 0.85rem;
}

.game-hs-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.game-hs-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.game-hs-input {
    flex: 1 1 12rem;
    max-width: 16rem;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e0a800;
    border-radius: var(--border-radius-sm, 6px);
    background: #fffdf5;
    color: #3a2c00;
}

.game-hs-input:focus {
    outline: none;
    border-color: #3a2c00;
    box-shadow: 0 0 0 3px rgba(58, 44, 0, 0.18);
}

.game-hs-msg {
    margin-top: 0.5rem;
    min-height: 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9a2b00;
}

.game-hs-saved {
    margin-top: 0.7rem;
    font-size: 1.05rem;
    font-weight: 700;
}
