.game-result-panel .score-share-row {
    display: flex;
    justify-content: center;
    margin: 14px auto 0;
}

.game-result-panel .score-share-trigger,
.score-share-dialog .score-share-option,
.score-share-dialog .score-share-close {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid #8066bf;
    border-radius: 8px;
    color: #f6f1ff;
    background: #30225a;
    box-shadow: 0 4px 0 #1a1032;
    font: 700 1rem/1.25 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.game-result-panel .score-share-trigger:hover,
.score-share-dialog .score-share-option:hover,
.score-share-dialog .score-share-close:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.game-result-panel .score-share-trigger:focus-visible,
.score-share-dialog .score-share-option:focus-visible,
.score-share-dialog .score-share-close:focus-visible {
    outline: 3px solid #ffe17b;
    outline-offset: 3px;
}

.game-result-panel .score-share-trigger[hidden],
.score-share-dialog [hidden] {
    display: none;
}

.game-result-panel .game-result-entry .score-share-trigger {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 8px;
}

.game-result-panel .game-result-entry .score-share-icon {
    width: 21px;
    height: 21px;
    flex: none;
    fill: currentColor;
}

.game-result-panel .game-result-entry .score-share-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.score-share-dialog {
    box-sizing: border-box;
    width: min(520px, calc(100vw - 28px));
    max-width: 520px;
    max-height: min(90vh, 720px);
    padding: 0;
    overflow: auto;
    border: 1px solid #8d75c4;
    border-radius: 12px;
    color: #f8f8f8;
    background: #110d24;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .72), 0 0 24px rgba(149, 91, 255, .25);
}

.score-share-dialog::backdrop {
    background: rgba(4, 3, 12, .82);
    backdrop-filter: blur(4px);
}

.score-share-card {
    padding: clamp(20px, 5vw, 30px);
    text-align: center;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at top, rgba(81, 57, 130, .4), transparent 72%),
        #110d24;
}

.score-share-eyebrow {
    margin: 0 0 8px;
    color: #4ce8ff;
    font: 800 .75rem/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .1em;
}

.score-share-card h2 {
    margin: 0;
    color: #ffe17b;
    font: 800 clamp(1.35rem, 5vw, 1.8rem)/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.score-share-preview {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    margin: 16px auto;
    border: 1px solid rgba(76, 232, 255, .55);
    border-radius: 8px;
    background: #080914;
    box-shadow: 0 0 18px rgba(76, 232, 255, .12);
    object-fit: contain;
}

.score-share-message {
    margin: 14px 0 20px;
    color: #e2dced;
    font: 500 1rem/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-wrap: anywhere;
}

.score-share-options,
.score-share-extra-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.score-share-extra-options {
    margin-top: 10px;
}

.score-share-dialog .score-share-option {
    width: 100%;
    min-width: 0;
}

.score-share-dialog .score-share-close {
    min-width: 120px;
    margin-top: 18px;
}

.score-share-status {
    min-height: 1.4em;
    margin: 12px 0 0;
    color: #ffe17b;
    font: 600 .9rem/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 380px) {
    .score-share-options,
    .score-share-extra-options {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 360px) {
    .game-result-panel .game-result-entry .score-share-trigger {
        width: 44px;
        min-width: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-result-panel .score-share-trigger,
    .score-share-dialog .score-share-option,
    .score-share-dialog .score-share-close {
        transition: none;
    }
}
