* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #050506 url("background.png") center center / cover no-repeat fixed;
  color: #f7fbff;
  font-family: Arial, sans-serif;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(520px, min(58vw, 980px));
  gap: clamp(18px, 4vw, 54px);
  height: 100%;
  padding: clamp(16px, 4vw, 54px);
}

.brand-panel {
  align-items: end;
  display: flex;
  min-width: 0;
  padding-bottom: clamp(24px, 8vh, 92px);
}

.brand-panel h1 {
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.62);
}

.brand-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 14px 0 0;
  text-transform: uppercase;
}

.game-frame {
  align-self: center;
  background: #030305;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.78),
    0 18px 0 rgba(0, 0, 0, 0.28),
    0 28px 90px rgba(0, 0, 0, 0.62);
  height: min(78vh, 760px);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.game-frame:fullscreen {
  border: 0;
  border-radius: 0;
  height: 100vh;
  width: 100vw;
}

#gameCanvas {
  display: block;
  height: 100%;
  outline: none;
  width: 100%;
}

.fullscreen-button {
  appearance: none;
  background: rgba(5, 5, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: 12px/1 Arial, sans-serif;
  padding: 8px 10px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 8;
}

.fullscreen-button:hover {
  background: rgba(26, 26, 32, 0.9);
}

.hud {
  align-items: center;
  background: rgba(5, 5, 7, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  bottom: 14px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
  left: 14px;
  line-height: 1;
  max-width: calc(100% - 28px);
  padding: 8px;
  pointer-events: none;
  position: absolute;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 7;
}

.hud span,
.status {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
}

.hud span {
  padding: 5px 7px;
  white-space: nowrap;
}

.status {
  color: #fff;
  font: 13px/1.35 Arial, sans-serif;
  left: 14px;
  max-width: min(520px, calc(100% - 28px));
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-shadow: 0 1px 2px #000;
  top: 14px;
  z-index: 7;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .brand-panel {
    align-items: start;
    padding-bottom: 0;
  }

  .brand-panel h1 {
    font-size: 42px;
  }

  .brand-panel p {
    margin-top: 6px;
  }

  .game-frame {
    align-self: stretch;
    height: auto;
    min-height: 0;
  }
}
