:root {
    --main-pink: #c01960;
    --dark-pink: #80093b;
    --main-blue: #728ea1;
    --glow-pink: 0 0 4px #c01960, 0 0 6px #c01960;
  }
  
  * {
    user-select: none;
  }
  html, body, * {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: white;
    font-family: "Arboria", "Segoe UI", Tahoma, sans-serif;
    animation: bg-glow 5s ease-in-out infinite;

  }
  
  h1 {
    color: var(--main-pink);
    text-shadow: 0 0 10px #c01960;
    margin: 10px 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  #scoreDisplay {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 15px;
    text-align: center;
  }
  
  canvas {
    width: 800px;
    max-width: 800px;
    height: 600px;
    background: #111;
    border-radius: 10px;
    display: block;
    margin: 20px;
    animation: pulsePink 3s ease-in-out infinite;
    touch-action: none;
  }
  
  
  @media (max-width: 768px) {
    canvas {
      width: 100vw;
      height: auto;
      margin: 0;
    }
  
    html, body {
      overflow: hidden;
      height: 100%;
    }
  
    h1 {
      font-size: 1.8rem;
    }
  
    #scoreDisplay {
      font-size: 1rem;
    }
  
    #gameover,
    #nextLvl {
        width: 90vw;
        height: auto;
        max-height: 90vh;
        font-size: 1rem; /* kleiner als Standard */
        padding: 2em 1.5em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
    }
    
    #gameover-scores,
    #nextLvl-scores {
        font-size: 0.9rem;
        margin-bottom: 1em;
    }
    
    #gameover button,
    #nextLvl button {
        font-size: 1rem;
        padding: 0.8em 1.4em;
        margin: 0.5em;
    }
      
      
  }
  
  #startOverlay {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-family: sans-serif;
    font-size: clamp(1rem, 4vw, 1.2rem);
    z-index: 10;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
  }
  
  #gameover, #nextLvl {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 6vw, 3rem);
    color: white;
    text-shadow: 0 0 10px #c01960;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    z-index: 10;
    text-align: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
  }
  
  #startOverlay {
    background: rgba(0, 0, 0, 0.85);
    font-family: sans-serif;
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  
  button {
    font-size: 1rem;
    padding: 10px 20px;
    background: var(--main-pink);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--main-pink);
  }
  
  .control-button {
    position: absolute;
    bottom: 5%;
    width: 39%;
    background-color: rgba(192, 25, 96, 0.5);
    font-size: 2rem;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
  }
  
  #leftButton { left: 10%; }
  #rightButton { right: 10%; }
  
  .control-button:hover {
    background-color: rgba(192, 25, 96, 0.8);
  }
  
  .symbol-glow {
    font-size: 1.2em;
    text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  }
  
  @keyframes bg-glow {
    0%, 100% { background: linear-gradient(135deg, #0d0d0d, #1a1a1a); }
    50% { background: linear-gradient(135deg, #1a1a1a, #0d0d0d); }
  }
  
  @keyframes pulsePink {
    0%, 100% { box-shadow: 0 0 16px #c01960, 0 0 32px #c01960; }
    50% { box-shadow: 0 0 24px #c01960, 0 0 48px #c01960; }
  }
  
  @keyframes pulseBlue {
    0%, 100% { box-shadow: 0 0 16px #728ea1, 0 0 32px #728ea1; }
    50% { box-shadow: 0 0 24px #728ea1, 0 0 48px #728ea1; }
  }
  #backButton {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    background: linear-gradient(135deg, #c01960 0%, #718D9F 100%);
    color: white;
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 9999;
    transition: all 0.3s ease;
  }

  #backButton:focus {
    outline: none;
  }

  #backButton:hover {
    transform: scale(1.05);
  }

  #backButton .arrow-left {
    font-size: 2rem;
  }

  #backButton .back-text {
    display: inline;
  }

  @media (max-width: 768px) {
    #backButton {
      padding: 0;
      width: 40px;
      height: 40px;
      font-size: 0;
      top: 15px;
      left: 15px;
    }

    #backButton .back-text {
      display: none;
    }

    #backButton .arrow-left {
      font-size: 1.6rem;
    }
  }
  