.game-result-panel {
    box-sizing: border-box;
    width: min(100%, 620px);
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 20px);
    border: 1px solid #655586;
    border-radius: 6px;
    color: #f8f8f8;
    background: rgba(7, 6, 19, .78);
    text-align: center;
}

.game-result-panel .game-result-brand {
    margin: 0 0 10px;
    color: #4ce8ff;
    font: 700 .7rem/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.game-result-panel h2,
.game-result-panel h3 {
    margin: 0;
    color: #ffe17b;
}

.game-result-panel .game-result-score,
.game-result-panel p.game-result-score {
    margin: 8px 0 10px;
    color: #4ce8ff;
    font: 900 clamp(3.5rem, 10vw, 4rem)/1.1 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
    text-shadow: 2px 2px #13545b;
}

.game-result-panel span.game-result-score { display: block; }
.game-result-panel #result-score[hidden] { display: none; }

.game-result-panel .game-result-score-label {
    display: block;
    margin-bottom: 2px;
    color: #c4bfd6;
    font: 700 .8rem/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.game-result-panel .game-result-copy,
.game-result-panel p.game-result-copy {
    max-width: 520px;
    margin: 8px auto 18px;
    color: #d4cde3;
    font: 500 1rem/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-result-panel .game-result-form {
    width: min(100%, 460px);
    margin: 18px auto 0;
    text-align: left;
}

.game-result-panel .game-result-form label {
    display: block;
    margin-bottom: 7px;
    color: #eee7fa;
    font: 800 1rem/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-result-panel .game-result-form label span {
    color: #c4bfd6;
    font-weight: 500;
}

.game-result-panel .game-result-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 9px;
}

.game-result-panel .game-result-entry input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 9px 12px;
    border: 1px solid #8066bf;
    border-radius: 8px;
    color: #fff;
    background: #100d20;
    font: 800 1rem/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.game-result-panel .game-result-entry input:focus-visible {
    outline: 3px solid #ffe17b;
    outline-offset: 2px;
}

.game-result-panel .game-result-help,
.game-result-panel .game-result-status {
    min-height: 1.3em;
    margin: 8px 0 0;
    color: #c4bfd6;
    font: 500 .875rem/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-result-panel .game-result-status { color: #ffe17b; }
.game-result-panel .game-result-status.is-error,
.game-result-panel .game-result-status.error { color: #ff9eb3; }

.game-result-panel .game-result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.game-result-panel .game-result-actions .game-result-action,
.game-result-panel .game-result-entry .game-result-action {
    box-sizing: border-box;
    display: inline-flex;
    width: auto;
    min-width: 140px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 700 1rem/1.25 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.game-result-panel .game-result-actions .game-result-primary,
.game-result-panel .game-result-entry .game-result-primary {
    border-color: #ff829e;
    color: #fff8f1;
    background: linear-gradient(180deg, #f34163, #bc1c48);
    box-shadow: 0 4px 0 #64142f, inset 0 0 10px rgba(255, 255, 255, .1);
    text-shadow: 1px 2px 0 #64142f;
}

.game-result-panel .game-result-actions .game-result-secondary,
.game-result-panel .game-result-entry .game-result-secondary {
    border-color: #8066bf;
    color: #f6f1ff;
    background: #30225a;
    box-shadow: 0 4px 0 #1a1032;
}

.game-result-panel .game-result-actions .game-result-action:hover:not(:disabled),
.game-result-panel .game-result-entry .game-result-action:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.game-result-panel .game-result-actions .game-result-action:active:not(:disabled),
.game-result-panel .game-result-entry .game-result-action:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #1a1032;
}

.game-result-panel .game-result-actions .game-result-action:disabled,
.game-result-panel .game-result-entry .game-result-action:disabled {
    opacity: .58;
    cursor: not-allowed;
}

@media (max-width: 360px) {
    .game-result-panel .game-result-entry { grid-template-columns: minmax(0, 1fr); }
    .game-result-panel .game-result-actions .game-result-action { flex: 1 1 140px; }
}
