﻿
html, body
{
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus
{
    outline: none;
}

a, .btn-link
{
    color: #0077cc;
}

.btn-primary
{
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content
{
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox])
{
    outline: 1px solid #26b050;
}

.invalid
{
    outline: 1px solid red;
}

.validation-message
{
    color: red;
}

#blazor-error-ui
{
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss
    {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary
{
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4w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, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after
    {
        content: "An error has occurred."
    }

#theCanvas
{
    /* Laid out by .sonson-holder (flex-centered). Intrinsic size is the boot
       resolution; max-width/height aspect-fit it into whatever space the holder
       has — windowed (above the bottom bar) or fullscreen (1:1). */
    display: block;

    /* Disable text highlighting and magnifying glass on iPhone/webkit */
    -webkit-user-select: none;
}

/* ---- Sonson web shell ---- */
body { background: #0b0d12; }

.sonson-gate {
    position: fixed; inset: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    /* Original 1984 flyer artwork (cropped); the sky color continues above the
       image on tall windows. */
    background: url('../img/splash-art.jpg') center bottom / cover no-repeat #52a7d8;
}

/* CRT scanlines + vignette over the whole gate */
.sonson-crt {
    position: absolute; inset: 0; z-index: 6; pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
}

.sonson-gate-inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 2.6rem;
    padding-bottom: 4rem;
}

/* big round arcade cabinet button */
.sonson-play {
    width: 11rem; height: 11rem; border-radius: 50%;
    font-family: 'Press Start 2P', 'Segoe UI', monospace;
    font-size: 1.2rem; line-height: 1.7; letter-spacing: 0.08em;
    color: #fff; text-shadow: 2px 2px 0 #7a1010;
    background: radial-gradient(circle at 35% 30%, #ff7b6b, #e01414 55%, #a00b0b);
    border: 6px solid #ffcf40;
    box-shadow:
        0 10px 0 #7a0808,
        0 16px 28px rgba(0, 0, 0, 0.45),
        inset 0 -10px 0 rgba(0, 0, 0, 0.25),
        inset 0 8px 14px rgba(255, 255, 255, 0.35);
    cursor: pointer;
    animation: sonson-coin 1.4s steps(1) infinite;
}
.sonson-play:hover { filter: brightness(1.1); }
.sonson-play:active {
    transform: translateY(8px);
    box-shadow:
        0 2px 0 #7a0808,
        0 6px 12px rgba(0, 0, 0, 0.45),
        inset 0 -4px 0 rgba(0, 0, 0, 0.25),
        inset 0 8px 14px rgba(255, 255, 255, 0.35);
}
/* INSERT COIN-style blink on the gold ring */
@keyframes sonson-coin {
    0%, 55%  { border-color: #ffcf40; }
    56%, 100% { border-color: #fff6cf; }
}

/* cumulative play counter under the button */
.sonson-plays {
    margin-top: -0.9rem;
    font-family: 'Press Start 2P', 'Segoe UI', monospace;
    font-size: 0.72rem; letter-spacing: 0.12em; color: #fff;
    background: rgba(6, 10, 30, 0.55);
    border-radius: 8px; padding: 0.5rem 0.9rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}
.sonson-plays b, .sonson-plays { color: #ffe27a; }

.sonson-marquee {
    text-align: center;
    background: rgba(6, 10, 30, 0.55);
    border-radius: 14px;
    padding: 1.2rem 1.8rem 1rem;
    backdrop-filter: blur(2px);
}
.sonson-arcade-title {
    margin: 0;
    font-family: 'Press Start 2P', 'Segoe UI', monospace;
    font-size: 2rem; letter-spacing: 0.06em; color: #ffcf40;
    text-shadow: 0.12em 0.12em 0 #c23a3a, 0.24em 0.24em 0 rgba(0, 0, 0, 0.55);
}
.sonson-fanremake {
    margin-top: 1.1rem;
    font-family: 'Press Start 2P', 'Segoe UI', monospace;
    font-size: 0.85rem; letter-spacing: 0.18em; color: #fff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
    animation: sonson-blink 1.3s steps(1) infinite;
}
@keyframes sonson-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.15; } }
.sonson-tribute {
    margin-top: 0.7rem;
    font-size: 0.82rem; letter-spacing: 0.05em; color: #f0f4ff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.sonson-notice {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    margin: 0; padding: 0.55rem 1rem 0.65rem; text-align: center;
    background: rgba(4, 6, 18, 0.6);
    color: #e8eaf2; font-size: 0.85rem; line-height: 1.55;
    text-shadow: 0 1px 0 #000;
}
.sonson-notice b { color: #ffcf40; }
.sonson-notice .jp { display: block; margin-top: 0.15rem; color: #aeb6cc; font-size: 0.78rem; }
.sonson-card {
    width: 22rem; padding: 2rem;
    background: #141827; border: 1px solid #2c3350; border-radius: 12px;
    text-align: center; color: #e8eaf2;
}
.sonson-card h1 {
    font-size: 1.6rem; letter-spacing: 0.25em; margin: 0 0 0.25rem;
    color: #ffcf40;
}
.sonson-card .sub { color: #8a93b0; font-size: 0.85rem; margin-bottom: 1.2rem; }
.sonson-card input {
    display: block; width: 100%; box-sizing: border-box;
    margin: 0.4rem 0; padding: 0.6rem 0.8rem;
    background: #0d101c; color: #e8eaf2;
    border: 1px solid #2c3350; border-radius: 8px;
}
.sonson-card button {
    width: 100%; margin-top: 0.8rem; padding: 0.6rem;
    background: #ffcf40; color: #22201a; font-weight: 700;
    border: 0; border-radius: 8px; cursor: pointer;
}
.sonson-card button:hover { background: #ffe27a; }
.sonson-card .err { color: #ff7d7d; font-size: 0.85rem; margin-top: 0.8rem; }

.sonson-bottombar {
    position: fixed; bottom: 0; left: 0; right: 0; height: 2.2rem;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 0.8rem; box-sizing: border-box;
    background: #10131f; color: #8a93b0; font-size: 0.85rem;
    z-index: 10;
}
.sonson-bottombar b { color: #ffcf40; }
.import-btn {
    color: #cdd3e4; background: #1c2236; border: 1px solid #2c3350;
    border-radius: 6px; padding: 0.15rem 0.6rem; cursor: pointer;
}
.import-btn:hover { background: #273052; }

.sonson-holder {
    position: fixed; top: 0; left: 0; right: 0; bottom: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    background: #000;
}
.sonson-holder canvas {
    max-width: 100%; max-height: 100%;
}

.sonson-help { color: #8a93b0; font-size: 0.8rem; }
.sonson-help b { color: #cdd3e4; }

.sonson-yt { color: #ffcf40; text-decoration: none; }
.sonson-yt:hover { color: #ffe27a; text-decoration: underline; }

/* leaderboard name-entry overlay (shown over the canvas, inside #canvasHolder
   so it stays visible in fullscreen) */
.sonson-nameentry {
    position: absolute; inset: 0; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    background: rgba(4, 6, 18, 0.72);
}
.sonson-nameentry .sonson-card h1 { font-size: 1.3rem; letter-spacing: 0.18em; }
