:root {
    --main-pink: #c01960;
    --main-blue: #728ea1;
    --glow-pink: 0 0 6px #c01960, 0 0 12px #c01960;
    --glow-blue: 0 0 15px #728ea1, 0 0 30px #728ea1;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    padding: 10px;
  }
  
  h1 {
    color: var(--main-pink);
    text-shadow: var(--glow-pink);
    margin: 10px 0;
    font-size: 2rem;
    text-align: center;
  }
  button {
    font-size: 1rem;
    padding: 10px 20px;
    background: var(--main-pink);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px var(--main-pink);
  }
  #scoreDisplay {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
  }
  
  .frame {
    padding: 20px;
    background-image: url('https://visworks.de/wp-content/uploads/2025/03/rennstreifenmuster.png');
    background-repeat: repeat;
    background-size: 20px 20px;
    box-shadow: 0 0 25px var(--main-pink);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
  }
  
  canvas {
    background: #111;
    box-shadow: inset 0 0 15px #000;
    image-rendering: pixelated;
    max-width: 100%;
    height: auto;
  }
  
  #highscore {
    margin: 10px 0;
    font-size: 1.4rem;
    color: var(--main-pink);
    text-shadow: var(--glow-pink);
    text-align: center;
  }
  
  .touch-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
    max-width: 100%;
    padding: 0 10px;
  }
  
  .btn {
    background: var(--main-pink);
    border: none;
    color: white;
    font-size: 1.4rem;
    border-radius: 10px;
    box-shadow: var(--glow-pink);
    transition: transform 0.1s ease;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .btn:active {
    transform: scale(0.95);
  }
  
  @media (max-width: 768px) {
    .btn {
      font-size: 1.6rem;
      width: 70px;
      height: 70px;
    }
  
    canvas {
      width: 95vw;
      height: auto;
      max-height: 50vh;
    }
  }
  
  .symbol-glow {
    color: #c01960;
    text-shadow: 0 0 6px #c01960, 0 0 12px #c01960;
    margin-right: 8px;
  }
  
  #startOverlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    z-index: 10;
    font-family: sans-serif;
    font-size: clamp(1rem, 4vw, 1.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
  }
  
  #startOverlay h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
    color: var(--main-pink);
    text-shadow: var(--glow-pink);
  }
  
  #startOverlay p {
    margin: 0.4em 0;
  }
  
  #gameover {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: white;
    text-shadow: 0 0 10px #c01960;
    font-family: sans-serif;
    text-align: center;
    z-index: 10;
  }
  
  #gameover-scores {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 20px;
  }
  
  #gameover button {
    font-size: clamp(1rem, 4vw, 1.2rem);
    padding: 10px 20px;
    background: #c01960;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px #c01960;
  }

  #backButton {
    position: fixed;
    top: 20px;
    left: 20px;
    max-height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    background: linear-gradient(135deg, #c01960 0%, #718D9F 100%);
    color: white;
    font-family: "Arboria", sans-serif, Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
    z-index: 9999;
  }
  #backButton:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
  }
  
  #backButton .arrow-left {
    font-size: 2rem;
  }
  
  #backButton .back-text {
    display: inline;
  }
  
  @media (max-width: 768px) {
    #backButton {
      padding: 0.4em;
      width: 40px;
      height: 40px;
      font-size: 0; /* Kein Text sichtbar */
      top: 15px;
      left: 15px;
    }
  
    #backButton .back-text {
      display: none;
    }
  
    #backButton .arrow-left {
      font-size: 1.6rem; /* Pfeil etwas kleiner */
    }
  }  
  
  #backButton:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
  }
  
  #backButton .arrow-left {
    font-size: 2.2rem;
    display: flex;
    align-items: center;   /* 👉 vertikal mittig */
    justify-content: center;
    line-height: 1;
  }

  