:root {
    --bg: #030014;
    --accent: #00ffe1;
    --text: #ffffff
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    overflow: hidden;
    font-family: 'Press Start 2P', system-ui
}

#wrap {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh
}

header {
    height: 70px;
    min-height: 60px;
    background: linear-gradient(90deg, #040018, rgba(0, 0, 0, 0));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    letter-spacing: 2px
}

#gameArea {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

canvas {
    display: block;
    width: 100%;
    height: 100%
}

#playBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 22px;
    background: #00ffe1;
    color: #000;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 15px #00ffe1;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    text-align: center;
    display: none;
    white-space: pre-line;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px;
    border-radius: 6px;
    z-index: 10;
}

#highScoreDisplay {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 10px;
    color: #00ffe1;
    z-index: 5;
}

a.credit {
    position: fixed;
    left: 8px;
    bottom: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 10px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    opacity: 0.2;
    transition: opacity 150ms ease;
    z-index: 5;
}

a.credit.visible {
    opacity: 1
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}
@media (orientation: landscape) and (max-width: 768px) {
    #gameArea {
      padding-top: 20px;
    }
    
    canvas {
      height: calc(100vh - 40px);
    }
    
    #playBtn, #gameOver {
      transform: translate(-50%, -40%);
    }
    
    #highScoreDisplay {
      top: 10px;
      right: 10px;
      font-size: 9px;
    }
    
    a.credit {
      bottom: 5px;
      left: 5px;
      font-size: 9px;
    }
  }

@media (max-height: 700px) {
  header {
    display: none !important;
  }
  
  #gameArea {
    height: 100vh;
  }
}

@media (max-width: 350px) {
  #playBtn, #gameOver {
    font-size: 12px;
    padding: 10px 16px;
  }
  
  #highScoreDisplay {
    font-size: 8px;
    top: 15px;
    right: 15px;
  }
}