/* Menu layout inspired by reacheight/home. License in licenses/reacheight-home.txt. */
html, body { width: 100%; height: 100%; }
body {
  overflow: hidden;
  background: #182236 url("../images/cs16-background.png") center / cover no-repeat;
}
.main-menu { min-height: 100%; min-height: 100svh; }
.game-menu {
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
  left: 10%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.menu-item {
  display: block;
  min-height: 44px;
  padding: 0 5px;
  margin-left: -5px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #ccc;
  font: 400 clamp(26px, 2.22vw, 34px)/1.25 ArialPixel, Tahoma, sans-serif;
  text-align: left;
  text-shadow: 1px 1px 2px #08101d;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.menu-item:hover, .menu-item:focus-visible { color: #fff; }
.menu-item:focus-visible { outline: 1px dotted #c4b550; outline-offset: 3px; }
.menu-item:active { color: #c4b550; }
.cs-dialog { width: 360px; min-width: 0; max-width: calc(100% - 32px); font-size: 18px; }
.cs-dialog::backdrop { background: rgb(0 0 0 / 28%); }
.cs-dialog .content { padding: 26px 16px; }
.cs-dialog .footer-btns { float: none; display: flex; justify-content: flex-end; }
.cs-btn { cursor: pointer; border-radius: 0; }
.cs-btn.back { min-height: 30px; }
.cs-btn:focus-visible { outline: 1px dotted #dedfd6; outline-offset: -4px; }
.cs-btn.close { width: 28px; height: 28px; }
@media (max-width: 600px) {
  body { background-position: 58% center; }
  .game-menu { left: max(24px, env(safe-area-inset-left)); bottom: max(12%, env(safe-area-inset-bottom)); }
  .menu-item { min-height: 48px; font-size: 30px; }
}
@media (max-height: 400px) { .game-menu { bottom: 7%; } }

