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

    body {
      font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
      background: #04113e;
      overflow: hidden;
      touch-action: none;
      color: #fff;
    }

    canvas {
      display: block;
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      z-index: 0;
    }

    #ui {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 10;
    }

    #score {
      position: fixed;
      top: 22px;
      left: 22px;
      min-width: 126px;
      padding: 8px 18px 10px;
      border: 4px solid #35eaff;
      border-radius: 17px;
      background: rgba(4, 13, 61, 0.92);
      box-shadow: inset 0 0 0 3px #102e92, 0 0 16px rgba(0, 211, 255, 0.52);
      color: white;
      font: 900 18px/1.1 'Courier New', monospace;
      letter-spacing: 1px;
      text-align: center;
      text-shadow: 2px 2px #07143c;
    }

    #score::first-line {
      font-size: 18px;
    }

    #start-screen {
      position: fixed;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: clamp(14px, 2.3vh, 24px);
      padding: 85px 18px 72px;
      background: transparent;
      pointer-events: auto;
      z-index: 100;
      transition: opacity 0.25s ease;
    }

    #start-screen.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .game-title {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 0;
      font: italic 1000 clamp(52px, 10vw, 128px)/0.82 Impact, 'Arial Black', sans-serif;
      letter-spacing: -0.07em;
      text-align: center;
      transform: rotate(-2deg);
      -webkit-text-stroke: 2px #061338;
      filter: drop-shadow(0 5px 0 #070d2f) drop-shadow(0 0 10px rgba(0, 157, 255, 0.62));
    }

    .game-title::before,
    .game-title::after {
      position: absolute;
      top: 28%;
      color: #0e9fff;
      font: 900 clamp(42px, 6vw, 76px)/1 Arial, sans-serif;
      -webkit-text-stroke: 2px #07143b;
      text-shadow: 3px 4px #07143b;
    }

    .game-title::before {
      content: '⬆';
      left: -0.85em;
      transform: rotate(-18deg);
    }

    .game-title::after {
      content: '⬇';
      right: -0.85em;
      transform: rotate(-18deg);
    }

    .game-title span {
      color: #f9fbff;
      font-size: 0.78em;
      text-shadow: 3px 3px 0 #173a97, -2px -2px 0 #173a97;
    }

    .game-title strong {
      color: #19aaff;
      font-size: 1.12em;
      -webkit-text-stroke: 3px #07153e;
      text-shadow: 3px 4px 0 #0755bd, -2px -2px 0 #effaff;
    }

    .description {
      min-width: min(440px, 90vw);
      padding: 10px 24px;
      border: 3px solid #12dfff;
      border-radius: 30px;
      background: #07184e;
      box-shadow: 0 0 0 3px #102e8b, 0 0 18px rgba(0, 204, 255, 0.54);
      color: #f5fbff;
      font: 800 clamp(16px, 2.1vw, 26px)/1.2 'Courier New', monospace;
      margin: 0;
      text-align: center;
      text-shadow: 2px 2px #0a2361;
    }

    .description em {
      color: #ffe629;
      font-style: normal;
    }

    button {
      font-family: 'Courier New', monospace;
      text-transform: uppercase;
      touch-action: manipulation;
    }

    .start-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      min-width: clamp(245px, 26vw, 340px);
      min-height: 100px;
      padding: 16px 30px;
      border: 5px solid white;
      border-radius: 23px;
      background: linear-gradient(180deg, #129aff, #0752df);
      color: white;
      cursor: pointer;
      font-size: clamp(32px, 4vw, 52px);
      font-weight: 1000;
      letter-spacing: 3px;
      text-shadow: 3px 4px #0b267a;
      box-shadow: 0 8px 0 #06123c, inset 0 0 0 4px #1675ff, 0 0 20px rgba(0, 194, 255, 0.68);
      transition: transform 0.12s, filter 0.12s;
    }

    .start-btn:hover, .restart-btn:hover {
      filter: brightness(1.18);
      transform: translateY(-2px);
    }

    .play-icon {
      font-family: Arial, sans-serif;
      font-size: 0.8em;
      text-shadow: 2px 3px #0b267a;
    }

    .controls-info {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 18px;
      min-width: min(320px, 88vw);
      padding: 13px 20px;
      border: 4px solid #1be4ff;
      border-radius: 19px;
      background: #071747;
      box-shadow: 0 5px 0 #030b28, inset 0 0 0 3px #1744a6;
      color: #fff;
      font: 800 clamp(13px, 1.6vw, 19px)/1.25 'Courier New', monospace;
      text-align: center;
      text-shadow: 2px 2px #07102f;
      pointer-events: none;
    }

    .hand-icon {
      color: #fff;
      font: 36px/1 Arial, sans-serif;
      text-shadow: 2px 3px #080f2b;
    }

    .arrows-icon {
      color: #fff;
      font: 900 32px/0.8 Arial, sans-serif;
      text-shadow: 2px 3px #080f2b;
    }

    #game-over-screen {
      position: fixed;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 20px;
      background: rgba(1, 7, 37, 0.78);
      pointer-events: auto;
      z-index: 100;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
    }

    #game-over-screen.visible {
      opacity: 1;
      visibility: visible;
    }

    .game-over-title {
      color: #fff;
      font: italic 1000 clamp(40px, 8vw, 76px)/1 'Trebuchet MS', sans-serif;
      letter-spacing: 2px;
      text-shadow: 4px 4px #0758dd, -2px -2px #15e5ff, 0 8px #06123c;
      -webkit-text-stroke: 2px #061338;
    }

    .final-score {
      padding: 12px 25px;
      border: 3px solid #28e6ff;
      border-radius: 14px;
      background: #081748;
      color: white;
      font: 900 24px 'Courier New', monospace;
      box-shadow: inset 0 0 0 3px #12337e, 0 4px 0 #020922;
    }

    .restart-btn {
      padding: 14px 28px;
      border: 4px solid #fff;
      border-radius: 14px;
      background: linear-gradient(#129aff, #0752df);
      color: white;
      cursor: pointer;
      font-size: 23px;
      font-weight: 900;
      box-shadow: 0 6px 0 #06123c;
      transition: transform 0.12s, filter 0.12s;
    }

    @media (max-width: 600px) {
      #score {
        top: 14px;
        left: 12px;
        min-width: 82px;
        padding: 6px 10px;
        border-width: 3px;
        border-radius: 12px;
        font-size: 15px;
      }

      #start-screen {
        gap: 18px;
        padding: 70px 14px 56px;
      }

      .game-title {
        font-size: clamp(44px, 15vw, 64px);
      }

      .description {
        min-width: 0;
        width: min(390px, 90vw);
        padding: 9px 14px;
      }

      .start-btn {
        min-height: 78px;
        min-width: min(270px, 78vw);
      }

      .controls-info {
        min-width: 0;
        width: min(300px, 86vw);
        gap: 12px;
        padding: 10px 14px;
      }

      .hand-icon {
        font-size: 30px;
      }

      .arrows-icon {
        font-size: 27px;
      }
    }

    @media (max-height: 520px) {
      #score {
        top: 8px;
        left: 8px;
        min-width: 70px;
        padding: 4px 8px;
        font-size: 13px;
      }

      #start-screen {
        gap: 8px;
        padding: 42px 12px 10px;
      }

      .game-title {
        font-size: clamp(34px, 12vh, 56px);
      }

      .game-title::before,
      .game-title::after {
        font-size: clamp(24px, 8vh, 36px);
      }

      .description {
        min-width: 0;
        width: min(390px, 82vw);
        padding: 5px 10px;
        font-size: clamp(13px, 3.5vh, 17px);
      }

      .start-btn {
        min-width: 190px;
        min-height: 54px;
        padding: 6px 18px;
        border-width: 3px;
        border-radius: 15px;
        font-size: clamp(25px, 7vh, 34px);
      }

      .controls-info {
        min-width: 0;
        width: min(290px, 76vw);
        gap: 10px;
        padding: 5px 12px;
        border-width: 3px;
        font-size: clamp(11px, 3vh, 15px);
      }

      .hand-icon {
        font-size: 25px;
      }

      .arrows-icon {
        font-size: 22px;
      }
    }/*  */