/* Sam's Game Engine — high-score overlay. CRT-amber vibe, monospace. */

.sge-scoreboard {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;  /* pass through until inner gets it */
    font-family: ui-monospace, Menlo, Consolas, monospace;
    z-index: 10;
    letter-spacing: 0.05em;
}

.sge-scoreboard__inner {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.88);
    border: 2px solid #ffb000;  /* amber */
    padding: 18px 22px 16px;
    min-width: 260px;
    max-width: 90vw;
    color: #ffd070;
    box-shadow: 0 0 0 2px #000, 0 0 24px rgba(255, 176, 0, 0.25);
    text-shadow: 0 0 4px rgba(255, 176, 0, 0.6);
}

.sge-scoreboard__title {
    text-align: center;
    color: #ffec80;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sge-scoreboard__list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 12px;
    min-height: 14px;  /* reserve space while loading */
}

.sge-scoreboard__row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 2px 0;
}
.sge-scoreboard__row--fresh {
    color: #ffffff;
    font-weight: bold;
}
.sge-scoreboard__rank {
    width: 2.5em;
    text-align: right;
    color: #c8a050;
}
.sge-scoreboard__nick {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}
.sge-scoreboard__score {
    text-align: right;
    min-width: 7ch;
}
.sge-scoreboard__empty {
    color: #8a6f30;
    font-size: 11px;
    text-align: center;
    padding: 6px 0 10px;
}

.sge-scoreboard__form {
    border-top: 1px dashed #8a6f30;
    padding-top: 10px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sge-scoreboard__form-label {
    font-size: 11px;
    color: #ff8040;  /* neon orange — "NEW HIGH SCORE!" */
    text-align: center;
    font-weight: bold;
}
.sge-scoreboard__form-input {
    background: #000;
    border: 1px solid #ffb000;
    color: #ffec80;
    padding: 6px 8px;
    font-family: inherit;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    caret-color: #ffec80;
    outline: none;
}
.sge-scoreboard__form-input:focus {
    border-color: #ffec80;
    box-shadow: 0 0 6px rgba(255, 236, 128, 0.5);
}
.sge-scoreboard__form-submit {
    background: #ffb000;
    color: #000;
    border: none;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.1em;
}
.sge-scoreboard__form-submit:hover { background: #ffec80; }
.sge-scoreboard__form-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.sge-scoreboard__hint {
    font-size: 10px;
    color: #8a6f30;
    text-align: center;
    margin-top: 8px;
}
