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

    .vesmir-obal {
          background:#e9f0f8 ;
          background: linear-gradient(to bottom,  #6697d3 0%,#7db9e8 100%);
          border-radius: 16px;
          position: relative;
    }

.vesmir-obal .sroubek {
 position: absolute;
    display: block;
    width: 5px;
    height: 5px;
    background: #5a5a5a;
    border-radius: 3px;

}

.vesmir-obal .sroubek:after {
content: "";
    display: block;
    position: absolute;
    top: 0;
    background: #939393;
    left: 2px;
    width: 1px;
    height: 5px;
}


    .vesmir-obal .sroubek1 {
      top: 8px;
      right: 8px;
      transform: rotate(160deg);
    }
    .vesmir-obal .sroubek2 {
      top: 8px;
      left: 8px;
       transform: rotate(15deg);
    }
    .vesmir-obal .sroubek3 {
      bottom: 8px;
      right: 8px; 
      transform: rotate(45deg);
    }
    .vesmir-obal .sroubek4 {
      bottom: 8px;
      left: 8px;
    }
#fuel {
 padding: 3px;
     width: 30px;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #d1d1d1;
    text-align: center;
    display: inline-block;
}


#vx {
 padding: 3px;
     width: 40px;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #d1d1d1;
    text-align: center;
    display: inline-block;
}


#vy {
 padding: 3px;
     width: 40px;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #d1d1d1;
    text-align: center;
    display: inline-block;
}

#status {
  padding: 3px;display: inline-block;
}
   

    .topbar {
    padding: 17px 16px 0px 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    }

    .topbar .hint {
      display: inline;
      opacity: 0.9;
    }

    .topbar span {
      font-size: 14px;
    }

    .wrap {
      flex: 1;
      display: grid;
      place-items: center;
      padding: 16px;
    }

    .game-shell {
      width: min(100%, 960px);
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      position: relative;
    }

    .topbar .info {
      display: block;width: 100%;
    }

    .topbar .ovladani-info {
      display: block;width: 100%;
    }

    canvas {
      width: 100%;
      height: auto;
      border-radius: 8px;
      aspect-ratio: 16 / 9;
      background: linear-gradient(to bottom, #060913 0%, #0d1530 70%, #131313 100%);
      border: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 20px 60px rgba(0,0,0,0.35);
      display: block;
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
      outline: none;
    }

    .touch-controls {
      display: grid;
      width: 100%;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .touch-btn {
      min-height: 64px;
      border: 1px solid #434343;
     background: linear-gradient(to bottom,  #dddddd 0%,#ffffff 100%);
box-shadow: inset 0px -3px 0 1px #434343;
      color: #434343;
      border-radius: 5px;
      font-size: 15px;
      font-weight: bold;
      cursor: pointer;
      touch-action: manipulation;
      user-select: none;
      -webkit-user-select: none;
      transition: 0.2s ease;
    }

    .touch-btn:active,
    .touch-btn.is-active {
  background: linear-gradient(to bottom,  #fff 0%,#ddd 100%);
       box-shadow: inset 0px -1px 0 1px #434343;
    }


.info-cedulka {
    width: calc(100% - 190px);
    color: #626262;
    padding: 12px;
    background: linear-gradient(to bottom, #d0d0d0 0%, #ffffff 100%);
    border-radius: 5px;
    font-family: Barlow;
    position: relative;
}

  .info {
  border-top: 1px solid #aeaeae;
    padding-top: 8px;
  }

    .info-ovladani {
      border-bottom: 1px solid #fff;
    padding-bottom: 8px;
    }

    .footer {
      padding: 10px 16px 16px;
      font-size: 13px;
      color: #b9c3ff;
      text-align: center;
    }

    .btn {
        border: 1px solid #434343;
     background: linear-gradient(to bottom,  #dddddd 0%,#ffffff 100%);
box-shadow: inset 0px -3px 0 1px #434343;
      color: #434343;
     border-radius: 5px;
      font-size: 15px;
      padding: 12px 16px;
      cursor: pointer;
    margin: 0 30px 0 0;
    }

    .btn:hover {
     background: linear-gradient(to bottom,  #fff 0%,#ddd 100%);
     box-shadow: inset 0px -1px 0 1px #434343;
    }

    .start-screen {
position: absolute;
      inset: 0;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
     border-radius: 5px;
      background: #000 center center / cover no-repeat;
      background-image: url('./assets/start-bg.jpg');
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

    .start-inner {
      background: rgba(0, 0, 0, 0.45);
      padding: 20px;
      border-radius: 14px;
      backdrop-filter: blur(2px);
    }

    .start-btn {
      min-width: 160px;
      min-height: 60px;
      border: 1px solid #434343;
     background: linear-gradient(to bottom,  #dddddd 0%,#ffffff 100%);
      box-shadow: inset 0px -3px 0 1px #434343;
      color: #434343;
      border-radius: 5px;
      cursor: pointer;
      font-size: 15px;
      
    }

    .start-btn:hover {
       background: linear-gradient(to bottom,  #fff 0%,#ddd 100%);
     box-shadow: inset 0px -1px 0 1px #434343;
    }


    .game-shell:after {
        content: "";
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        width: 36px;
        height: 36px;
        z-index: 15;
        background-size: cover;
        background-image: url('./assets/aktualne-logo.svg');
    }

    .desk {display:inline ;}
     .mob {display: none;}

    .svlevo, .svpravo {
    max-width: 17px;
    display: inline-block;
     }

    .snahoru {
      height: 17px;
    display: inline-block;
     }
      
    @media (max-width: 500px) {

      .mob {display: inline ;}
     .desk {display: none;}

 .stav, #status {display: none;}

    .info-ovladani {
 
    display: none;
}


    .info  {
 border-width: 0;padding-top: 0;
}
.info-cedulka {
    width: 100%;}
      .topbar span {
        font-size: 13px;
        min-width: 0;
      }

      .topbar .hint {
        grid-column: 1 / -1;
      }

      #restartBtn {
        grid-column: 1 / -1;
        width: 100%;
      }

      .wrap {
        padding:  10px 10px 17px 10px;
      }

      .game-shell {
        width: 100%;
      }

  
  

      canvas {
        aspect-ratio: 1 / 1;
      }

      .touch-btn {
        min-height: 72px;
      }
    }

.start-screen.is-hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}
