:root {
    --bg-dark: #07000e;
    --bg-panel: rgba(13, 2, 23, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);

    --neon-green: #00ff66;
    --neon-blue: #00f0ff;
    --neon-purple: #bd00ff;
    --neon-pink: #ff007f;
    --neon-gold: #ffd700;
    --neon-red: #ff3b30;
    --neon-orange: #ff9500;

    --neon-green-glow: 0 0 10px #00ff66, 0 0 20px rgba(0, 255, 102, 0.5);
    --neon-blue-glow: 0 0 10px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.5);
    --neon-purple-glow: 0 0 10px #bd00ff, 0 0 20px rgba(189, 0, 255, 0.5);
    --neon-pink-glow: 0 0 10px #ff007f, 0 0 20px rgba(255, 0, 127, 0.5);
    --neon-gold-glow: 0 0 10px #ffd700, 0 0 20px rgba(255, 215, 0, 0.5);
    --neon-red-glow: 0 0 10px #ff3b30, 0 0 20px rgba(255, 59, 48, 0.5);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 50% 50%, #1a082e 0%, #07000e 100%),
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 100%, 100% 4px, 6px 100%;
    color: #e2d9f3;
    font-family: var(--font-body);
    font-size: 18px;
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CRT Screen Effect Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 9999;
}

.crt-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 6px 100%;
    z-index: 2;
    pointer-events: none;
}

/* Base Container */
.game-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: max-width 0.25s ease-in-out;
}

.game-container.wide-layout {
    max-width: 1600px;
}

/* Header */
.game-header {
    text-align: center;
    margin-bottom: 5px;
}

.neon-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink);
    letter-spacing: 4px;
    position: relative;
    animation: flicker 4s infinite alternate;
}

.neon-title::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 1px 0 0 rgba(255, 0, 0, 0.9);
    top: 0;
    color: #fff;
    background: var(--bg-dark);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-effect 3s infinite linear alternate-reverse;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--neon-blue);
    text-shadow: var(--neon-blue-glow);
    letter-spacing: 6px;
    margin-top: 5px;
}

/* Glassmorphism Panel style */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
}

/* Screen visibility structure */
.screen {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Selection Screen styling */
.selection-panel h2,
.scores-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-shadow: var(--neon-blue-glow);
}

.snake-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.snake-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.snake-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.snake-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.snake-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    transform: scale(1.03);
}

.snake-card[data-type="viper"].active {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.25);
}

.snake-card[data-type="veloscythe"].active {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.snake-card[data-type="phantom"].active {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.25);
}

.snake-card[data-type="monarch"].active {
    border-color: var(--neon-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.snake-card .card-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-bottom: 12px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Custom card icons representation using CSS gradients */
.viper-icon {
    background: radial-gradient(circle, var(--neon-green) 30%, #005020 90%);
    box-shadow: var(--neon-green-glow);
}

.veloscythe-icon {
    background: radial-gradient(circle, var(--neon-blue) 30%, #004550 90%);
    box-shadow: var(--neon-blue-glow);
}

.phantom-icon {
    background: radial-gradient(circle, var(--neon-purple) 30%, #400050 90%);
    box-shadow: var(--neon-purple-glow);
}

.monarch-icon {
    background: radial-gradient(circle, var(--neon-gold) 30%, #504000 90%);
    box-shadow: var(--neon-gold-glow);
}

.snake-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}

.snake-card .desc {
    font-size: 0.85rem;
    color: #b5a8cb;
    margin-bottom: 12px;
    line-height: 1.3;
    flex-grow: 1;
}

.snake-card .stats {
    display: grid;
    grid-template-columns: auto auto;
    font-size: 0.8rem;
    gap: 4px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    width: 100%;
}

.stat-lbl {
    color: #8c7ca5;
    text-align: left;
}

.stat-val {
    color: var(--neon-blue);
    text-align: right;
    font-family: monospace;
}

.snake-card[data-type="viper"] .stat-val {
    color: var(--neon-green);
}

.snake-card[data-type="veloscythe"] .stat-val {
    color: var(--neon-blue);
}

.snake-card[data-type="phantom"] .stat-val {
    color: var(--neon-purple);
}

.snake-card[data-type="monarch"] .stat-val {
    color: var(--neon-gold);
}

/* Buttons */
.menu-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-neon {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    background: transparent;
    border: 2px solid var(--neon-blue);
    border-radius: 6px;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: var(--neon-blue-glow);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15), inset 0 0 10px rgba(0, 240, 255, 0.1);
    letter-spacing: 2px;
}

.btn-neon:hover {
    background: var(--neon-blue);
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.btn-neon.secondary {
    border-color: var(--neon-pink);
    color: #fff;
    text-shadow: var(--neon-pink-glow);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.15), inset 0 0 10px rgba(255, 0, 127, 0.1);
}

.btn-neon.secondary:hover {
    background: var(--neon-pink);
    color: #fff;
    text-shadow: none;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.6);
}

.btn-neon:active {
    transform: scale(0.95);
}

/* Gameplay Screen & HUD */
.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.hud-item {
    display: flex;
    flex-direction: column;
}

.hud-label {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: #8c7ca5;
    letter-spacing: 1px;
}

.hud-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.neon-text-green {
    color: var(--neon-green);
    text-shadow: var(--neon-green-glow);
}

.neon-text-blue {
    color: var(--neon-blue);
    text-shadow: var(--neon-blue-glow);
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: var(--neon-purple-glow);
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: var(--neon-pink-glow);
}

.neon-text-gold {
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
}

.neon-text-red {
    color: var(--neon-red);
    text-shadow: var(--neon-red-glow);
}

/* Powerup Status in HUD */
.powerup-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

#hud-powerup-name {
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    min-width: 80px;
}

.timer-bar-bg {
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.timer-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
    transition: width 0.1s linear;
}

/* Canvas Wrapper & Overlays */
.canvas-wrapper {
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    background: #000;
    overflow: hidden;
    max-width: 100%;
    width: 720px;
    margin: 0 auto;
}

#game-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: radial-gradient(circle, #10061e 0%, #000000 100%);
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 450px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.15);
    animation: slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overlay.hidden {
    display: none;
}

.overlay h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 5px;
    letter-spacing: 3px;
}

.final-score-text {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.final-score-text span {
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: var(--neon-green-glow);
}

#highscore-input-container {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.highscore-badge {
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

#player-name {
    width: 80%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-pink);
    border-radius: 6px;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    outline: none;
    letter-spacing: 2px;
    transition: all 0.3s;
}

#player-name:focus {
    box-shadow: var(--neon-pink-glow);
    border-color: #fff;
}

.overlay-actions {
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 10px;
}

.overlay-actions button {
    width: 100%;
}

/* High Score screen styling */
.scores-panel {
    max-width: 550px;
    margin: 0 auto;
}

.scores-table-wrapper {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
}

.scores-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.scores-table th,
.scores-table td {
    padding: 12px 15px;
}

.scores-table th {
    font-family: var(--font-heading);
    color: var(--neon-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
    position: sticky;
    top: 0;
    background: rgba(13, 2, 23, 0.95);
    z-index: 1;
}

.scores-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scores-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.scores-table td {
    font-size: 1.1rem;
}

.scores-table tr:nth-child(1) td:first-child {
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
    font-weight: bold;
}

.scores-table tr:nth-child(2) td:first-child {
    color: #d1d1d1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.scores-table tr:nth-child(3) td:first-child {
    color: #cd7f32;
    text-shadow: 0 0 5px rgba(205, 127, 50, 0.5);
    font-weight: bold;
}

/* Keyboard tags styling */
kbd {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* Touch controls */
.touch-controls {
    display: none;
    /* Only show on small screen, touch devices or itch.io frame scale */
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    user-select: none;
}

.touch-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-ctrl {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--neon-blue);
    color: #fff;
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
    transition: all 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-ctrl:active {
    background: var(--neon-blue);
    color: #000;
    box-shadow: var(--neon-blue-glow);
    transform: scale(0.92);
}

.btn-pause {
    border-color: var(--neon-purple);
    width: 50px;
    height: 50px;
    font-size: 0.95rem;
    margin: 5px;
    box-shadow: 0 0 8px rgba(189, 0, 255, 0.15);
}

.btn-pause:active {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: var(--neon-purple-glow);
}

/* Footer Instructions */
.game-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #72628d;
    margin-top: 10px;
}

/* Animations */
@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 5px #fff,
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 40px var(--neon-pink);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

@keyframes glitch-effect {
    0% {
        clip: rect(44px, 9999px, 56px, 0);
    }

    10% {
        clip: rect(12px, 9999px, 85px, 0);
    }

    20% {
        clip: rect(78px, 9999px, 30px, 0);
    }

    30% {
        clip: rect(5px, 9999px, 60px, 0);
    }

    40% {
        clip: rect(88px, 9999px, 15px, 0);
    }

    50% {
        clip: rect(23px, 9999px, 92px, 0);
    }

    60% {
        clip: rect(71px, 9999px, 45px, 0);
    }

    70% {
        clip: rect(3px, 9999px, 78px, 0);
    }

    80% {
        clip: rect(95px, 9999px, 12px, 0);
    }

    90% {
        clip: rect(36px, 9999px, 54px, 0);
    }

    100% {
        clip: rect(62px, 9999px, 88px, 0);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.blink {
    animation: text-blink 1s steps(2, start) infinite;
}

@keyframes text-blink {
    to {
        visibility: hidden;
    }
}

/* Scrollbar customization */
.scores-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.scores-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.scores-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}


/* Incremental / Idle game additions */
.global-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    margin-bottom: 20px;
    background: rgba(255, 215, 0, 0.03);
    border: 1px dashed rgba(255, 215, 0, 0.25);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.02);
}

.global-status .status-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #8c7ca5;
    letter-spacing: 1px;
}

.global-status .status-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.skilltree-panel {
    max-width: 1600px;
    margin: 0 auto;
}

.skilltree-currency {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skilltree-currency .currency-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #8c7ca5;
    letter-spacing: 1px;
    margin-right: 8px;
}

.skilltree-currency #skilltree-bits {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom scrollbar for upgrades list */
.skills-grid::-webkit-scrollbar {
    width: 6px;
}

.skills-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}

.skills-grid::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.skill-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-node:hover:not(.locked-skill) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-node .skill-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0.7;
}

.skill-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.skill-icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.skill-info h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.skill-desc {
    font-size: 0.88rem;
    color: #b5a8cb;
    line-height: 1.35;
}

.skill-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 5px 2px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.skill-stats div {
    font-family: var(--font-body);
    color: #8c7ca5;
}

.skill-stats span {
    font-family: var(--font-heading);
    font-weight: 700;
}

.btn-upgrade {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-color: var(--neon-blue);
    text-shadow: var(--neon-blue-glow);
}

.btn-upgrade:hover:not(:disabled) {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.btn-upgrade:disabled {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.25) !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.01) !important;
}

/* Locked upgrade style */
.locked-skill {
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.2);
}

.locked-skill .skill-icon {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.04);
}

.locked-skill h3 {
    color: #8c7ca5;
}

.skill-status-tag {
    align-self: flex-end;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    color: #bd00ff;
    text-shadow: 0 0 8px rgba(189, 0, 255, 0.6);
    border: 1px solid rgba(189, 0, 255, 0.25);
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(189, 0, 255, 0.04);
    letter-spacing: 1px;
}

.global-balance-text {
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.global-balance-text span {
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
}

/* Responsiveness media queries */
@media (max-width: 600px) {
    .neon-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 4px;
    }

    .hud {
        padding: 8px 12px;
    }

    .hud-value {
        font-size: 1.2rem;
    }

    .touch-controls {
        display: flex;
    }

    .game-footer {
        display: none;
    }

    .snake-selector {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .snake-card {
        padding: 10px;
    }

    .snake-card h3 {
        font-size: 0.95rem;
    }

    .snake-card .desc {
        display: none;
    }
}

@media (max-pointer: coarse) {

    /* Touch device rules */
    .touch-controls {
        display: flex;
    }
}

/* Custom starting menu logo layout and animations */
.menu-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px 0;
}

.menu-logo-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.35);
    animation: menu-pulse 2s infinite ease-in-out;
}

@keyframes menu-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px var(--neon-green), 0 0 30px rgba(0, 255, 102, 0.4);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 25px var(--neon-green), 0 0 50px rgba(0, 255, 102, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px var(--neon-green), 0 0 30px rgba(0, 255, 102, 0.4);
    }
}

/* Combo Multiplier status styling */
.multiplier-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.combo-bar-bg {
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.combo-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--neon-gold);
    box-shadow: 0 0 8px var(--neon-gold);
    transition: width 0.05s linear;
}

/* Danger zone and compact Hard Reset styling at bottom of main menu */
.danger-zone-menu {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 59, 48, 0.2);
    width: 100%;
}

.btn-reset-small {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 59, 48, 0.65);
    background: transparent;
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-reset-small:hover {
    color: #fff;
    background: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: var(--neon-red-glow);
}

/* ── Hard Reset Confirm Modal ── */
.reset-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 0, 14, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.15s ease;
}

.reset-modal.hidden {
    display: none;
}

.reset-modal-box {
    padding: 32px 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 59, 48, 0.4);
    box-shadow: 0 0 40px rgba(255, 59, 48, 0.15);
    max-width: 420px;
    width: 90%;
}

.reset-modal-box h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.reset-modal-box p {
    color: rgba(226, 217, 243, 0.75);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.reset-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-danger {
    border-color: var(--neon-red) !important;
    color: var(--neon-red) !important;
}

.btn-danger:hover {
    background: var(--neon-red) !important;
    color: #fff !important;
    box-shadow: var(--neon-red-glow) !important;
}