:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-bg: #0a0a0f;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--neon-bg);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    box-shadow: 0 0 50px var(--neon-blue);
    border: 4px solid var(--neon-blue);
}

canvas {
    display: block;
    background: linear-gradient(to bottom, #0a0a0f, #1a1a2e);
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.screen {
    pointer-events: auto;
    background: rgba(10, 10, 15, 0.85);
    padding: 2rem;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
    border-radius: 10px;
}

h1 {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
    pointer-events: none;
}

.score-display-right {
    left: auto;
    right: 20px;
    text-align: right;
}

button {
    background: transparent;
    color: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

button:hover {
    background: var(--neon-pink);
    color: white;
    box-shadow: 0 0 15px var(--neon-pink);
}

.share-hint {
    margin: 1rem 0 1.25rem;
    max-width: 280px;
    color: var(--neon-blue);
    line-height: 1.5;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.35);
}

#share-btn {
    margin-bottom: 0.85rem;
}

.poster-screen {
    width: min(88vw, 360px);
}

.poster-card {
    overflow: hidden;
    margin: 1rem 0;
    border: 2px solid var(--neon-blue);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(5, 8, 18, 0.98), rgba(19, 13, 41, 0.98));
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.22);
}

.poster-snapshot {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(to bottom, #0a0a0f, #1a1a2e);
}

.poster-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.poster-copy {
    text-align: left;
}

.poster-kicker,
.poster-score,
.poster-url {
    margin: 0;
}

.poster-kicker {
    color: var(--neon-pink);
    font-size: 0.9rem;
    letter-spacing: 0.14em;
}

.poster-score {
    margin: 0.45rem 0;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.poster-url {
    color: var(--neon-blue);
    font-size: 0.95rem;
}

.poster-qr {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    background: white;
    padding: 6px;
    box-sizing: border-box;
}

#close-share-btn {
    margin-top: 0.25rem;
}

.hidden { display: none !important; }
