/* Keep the original 800x600 default. Larger views are an explicit choice. */
body {
  background: #000 !important;
  color: #c3e4e4;
}

.play-page {
  --game-width: min(100vw, 800px);
}

.play-page[data-game-size="large"] {
  --game-width: min(100vw, 1000px);
}

.play-page[data-game-size="fit"] {
  --game-width: min(100vw, calc((100vh - 72px) * 4 / 3));
  --game-width: min(100vw, calc((100dvh - 72px) * 4 / 3));
}

.play-page #navbar {
  display: flex !important;
  height: 48px !important;
  background: #002222 !important;
}

.play-page #navbar .navbar-collapse {
  margin-top: 0 !important;
  align-items: center;
  padding-right: 218px;
}

.play-page .game-sizing {
  position: absolute;
  top: 9px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  color: #c3e4e4;
}

.play-page .game-sizing label {
  margin: 0;
  font-size: 12px;
}

.play-page .game-sizing select {
  width: 164px;
  height: 30px;
  padding: 3px 6px;
  border: 1px solid #457777;
  border-radius: 3px;
  background: #002222;
  color: #fff;
  font: 13px 'Roboto', sans-serif;
  color-scheme: dark;
}

.play-page .navbar-item {
  display: block;
}

.play-page .mobile-brand {
  display: none;
}

.play-page .navbar-item:first-child .logo-image {
  display: block !important;
  width: 40px;
  height: auto;
  margin: 0 16px;
}

.play-page .navbar-nav {
  align-items: center;
}

.play-page .nav-item {
  line-height: 24px;
  padding: 0 6px;
  font-size: 14px;
}

.play-page .nav-first {
  margin: 0;
}

.play-page .nav-item:last-child {
  display: block;
  padding-bottom: 0;
}

.play-page .playbutton {
  color: #f1da04;
  font-weight: 500;
}

.play-page .dropdown-menu {
  margin-top: 0 !important;
}

.play-page button.dropdown-toggle {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.play-page #navbar > .navbar-collapse > .form-inline {
  margin: 0 8px 0 0;
  padding: 0;
}

.play-page .fb, .play-page .tw {
  width: 26px;
  margin: 0 12px 0 0;
}

.play-page .fb img, .play-page .tw img {
  width: 26px;
}

.play-page #game-container {
  position: relative;
  width: var(--game-width) !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  box-shadow: none;
  background: #000;
}

.play-page #game-container iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.play-page .game-status {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 16px;
  color: #c3e4e4;
}

.play-page footer {
  width: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 24px;
  color: #9daaaa;
}

.play-page footer ul {
  margin: 0;
  padding: 0;
}

.play-page footer a:hover {
  color: #fff;
}

.play-page footer a {
  color: inherit;
}

.play-page a:focus-visible, .play-page button:focus-visible,
.play-page .dropdown-toggle:focus-visible, .play-page select:focus-visible {
  outline: 2px solid #f1da04;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .play-page .mobile-brand {
    display: block;
    position: absolute;
    top: 9px;
    left: 56px;
  }

  .play-page .hamburger-menu {
    display: block;
    position: absolute;
    inset: 8px auto auto 12px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 4px;
    border-radius: 3px;
  }

  .play-page #navbar .navbar-collapse {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #002222;
    padding-right: 0;
  }

  .play-page .navbar-nav {
    align-items: stretch;
    padding: 8px 12px;
  }

  .play-page .navbar-item {
    display: none;
  }

  .play-page .nav-item {
    text-align: left;
    background: transparent;
  }

  .play-page .playbutton {
    color: #f1da04;
  }
}
