@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;600&display=swap');

/* ── Игровой экран ── */
#game-screen {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
}
#game-screen.active { display: flex; }

/* ── HUD ── */
.game-hud {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.9);
  border-bottom: 1px solid rgba(200,30,30,0.4);
  flex-shrink: 0;
  height: 44px;
}

.hud-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 4px;
  color: #C81E1E;
}

.hud-turn {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #666;
  flex: 1;
}
.hud-turn b { color: #ccc; }

.hud-coords {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: #555;
  min-width: 80px;
  text-align: right;
}

.hud-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #777;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.hud-btn:hover { color: #fff; border-color: rgba(200,30,30,0.5); }

/* ── Canvas ── */
#game-canvas-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

#game-canvas {
  display: block;
  cursor: crosshair;
  /* размер выставляется через JS */
}

/* ── Landscape: канвас занимает всё кроме HUD ── */
@media screen and (orientation: landscape) {
  #game-screen {
    flex-direction: column;
  }

  .game-hud {
    height: 40px;
    padding: 0 16px;
  }

  #game-canvas {
    flex: 1;
    width: 100%;
    /* height вычисляется автоматически через flex */
  }
}

.hud-btn-end {
  margin-left: auto;
  border-color: rgba(200,30,30,0.5);
  color: #e05555;
}
.hud-btn-end:hover { color: #ff8080; border-color: #C81E1E; }
