:root {
    --bg-color: #050510;
    --accent-primary: #00f2ff;
    --accent-secondary: #ff00e5;
    --accent-sumo: #f97316;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 10px rgba(0, 242, 255, 0.5), 0 0 20px rgba(0, 242, 255, 0.3);
    --neon-pink: 0 0 10px rgba(255, 0, 229, 0.5), 0 0 20px rgba(255, 0, 229, 0.3);
    --neon-orange: 0 0 10px rgba(249, 115, 22, 0.55), 0 0 20px rgba(249, 115, 22, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

.hub-back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 255, 0.4);
    border-radius: 50px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    box-shadow: var(--neon-shadow);
    transition: all 0.25s ease;
}

.hub-back:hover {
    color: var(--bg-color);
    background: var(--accent-primary);
    transform: translateY(-1px);
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 360px;
    height: 360px;
    background: var(--accent-sumo);
    top: 45%;
    left: -80px;
    opacity: 0.28;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

@keyframes badge-enter {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.game-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    z-index: 1;
}

.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.score-board {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-align: center;
    max-width: 160px;
    line-height: 1.3;
}

.value {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.p1-score .value {
    color: var(--accent-primary);
    text-shadow: var(--neon-shadow);
}

.p2-score .value {
    color: var(--accent-secondary);
    text-shadow: var(--neon-pink);
}

.dash-track {
    width: 100%;
    max-width: 120px;
    height: 6px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.dash-fill {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    border-radius: 999px;
    transition: transform 0.06s linear;
}

.dash-fill-p1 {
    background: linear-gradient(90deg, var(--accent-primary), rgba(0, 242, 255, 0.65));
    box-shadow: var(--neon-shadow);
}

.dash-fill-p2 {
    background: linear-gradient(90deg, var(--accent-secondary), rgba(255, 0, 229, 0.65));
    box-shadow: var(--neon-pink);
}

.teleport-track {
    width: 100%;
    max-width: 120px;
    height: 4px;
    margin-top: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.teleport-fill {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    border-radius: 999px;
    transition: transform 0.06s linear;
}

.teleport-fill-p1 {
    background: linear-gradient(90deg, #38bdf8, rgba(0, 242, 255, 0.55));
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.teleport-fill-p2 {
    background: linear-gradient(90deg, #c026d3, rgba(255, 0, 229, 0.55));
    box-shadow: 0 0 8px rgba(192, 38, 211, 0.45);
}

.status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    min-height: 14px;
    justify-content: center;
    max-width: 160px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    animation: badge-enter 0.3s ease-out;
    letter-spacing: 1px;
}

.brand {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-sumo), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.35));
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.12s ease;
}

.canvas-wrapper.point-flash {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.55), 0 0 40px rgba(249, 115, 22, 0.35),
        0 0 50px rgba(0, 0, 0, 0.5);
}

#sumo-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay h1,
.overlay h2 {
    font-size: clamp(1.75rem, 8vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: 0.35em;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-sumo), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.dual-scores {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-label {
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    opacity: 0.6;
}

.score-box span:last-child {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
}

.p1-color span:last-child {
    color: var(--accent-primary);
    text-shadow: var(--neon-shadow);
}

.p2-color span:last-child {
    color: var(--accent-secondary);
    text-shadow: var(--neon-pink);
}

button {
    background: transparent;
    border: 2px solid var(--accent-sumo);
    color: var(--accent-sumo);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--neon-orange);
}

button:hover {
    background: var(--accent-sumo);
    color: var(--bg-color);
    transform: scale(1.05);
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.65);
}

/* ── Side control hints ─────────────────────────────────────── */
.side-hint {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.42;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 5;
}

.side-hint:hover { opacity: 0.78; }

.side-hint-left  { left: 28px; }
.side-hint-right { right: 28px; }

.side-hint-title {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.45);
}

.side-hint-left  .side-hint-title { color: rgba(0,242,255,0.65); }
.side-hint-right .side-hint-title { color: rgba(255,0,229,0.65); }

.side-hint-keys {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.side-hint-right .side-hint-keys { align-items: flex-end; }

.key-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-direction: row;
}

.side-hint-right .key-row { flex-direction: row-reverse; }

.key-row kbd {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    padding: 4px 9px;
    color: #fff;
    min-width: 32px;
    text-align: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

.key-row span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.32);
    text-transform: uppercase;
}

.key-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 2px 0;
}

.side-hint-left  kbd { border-color: rgba(0,242,255,0.28); }
.side-hint-right kbd { border-color: rgba(255,0,229,0.28); }

/* nur anzeigen wenn genug Platz */
@media (max-width: 900px) {
    .side-hint { display: none; }
}

/* ─────────────────────────────────────────────────────────── */
.controls-hint {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0.4;
    font-size: 0.8rem;
    letter-spacing: 2px;
}
