html,
body {
  margin: 0;
  min-height: 100%;
  background: #061923;
  color: #f4fbff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: hidden;
}

#game-shell {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 18%, #17455b 0%, #061923 58%, #02070a 100%);
}

#game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

canvas,
video {
  display: block;
}

.trailer-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #02070a;
}

.trailer-frame {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  background: #02070a;
  overflow: hidden;
}

.trailer-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #02070a;
}

.trailer-brand-logo {
  position: absolute;
  z-index: 11;
  top: clamp(18px, 3vw, 36px);
  left: clamp(18px, 3vw, 36px);
  width: clamp(37px, 3.4vw, 50px);
  height: auto;
  opacity: 1;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}

.trailer-button,
.trailer-hud-button {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 11;
  display: block;
  width: clamp(150px, 16%, 172px);
  height: clamp(44px, 6.7%, 50px);
  padding: 0 10px;
  border: 2px solid rgba(155, 242, 255, 0.96);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 8%, rgba(255, 255, 255, 0) 36%),
    rgba(10, 70, 91, 0.82);
  box-shadow:
    0 0 0 5px rgba(57, 223, 255, 0.18),
    inset 0 0 0 1px rgba(214, 251, 255, 0.42),
    inset 0 7px 0 rgba(255, 255, 255, 0.09);
  color: #f4fbff;
  font: 700 clamp(18px, 1.55vw, 21px) Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-shadow: 0 2px 3px #031821;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.trailer-button:hover,
.trailer-hud-button:hover {
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 8%, rgba(255, 255, 255, 0) 36%),
    rgba(17, 110, 131, 0.82);
  box-shadow:
    0 0 0 5px rgba(57, 223, 255, 0.32),
    0 0 16px rgba(57, 223, 255, 0.3),
    inset 0 0 0 1px rgba(214, 251, 255, 0.42),
    inset 0 7px 0 rgba(255, 255, 255, 0.09);
  transform: scale(1.035);
}

.trailer-button:active,
.trailer-hud-button:active {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 8%, rgba(255, 255, 255, 0) 36%),
    rgba(7, 43, 57, 0.94);
  box-shadow:
    0 0 0 5px rgba(57, 223, 255, 0.18),
    inset 0 0 0 1px rgba(214, 251, 255, 0.24);
  transform: scale(0.985);
}

.trailer-skip {
  right: clamp(24px, 4vw, 52px);
  bottom: clamp(24px, 4vw, 52px);
  width: clamp(88px, 8%, 96px);
  height: clamp(28px, 3.6%, 32px);
  padding: 0 7px;
  border-width: 1px;
  border-radius: 999px;
  clip-path: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 10%, rgba(255, 255, 255, 0) 42%),
    rgba(10, 70, 91, 0.78);
  box-shadow:
    0 0 0 3px rgba(57, 223, 255, 0.16),
    inset 0 0 0 1px rgba(214, 251, 255, 0.36),
    inset 0 5px 0 rgba(255, 255, 255, 0.08);
  font-size: clamp(12px, 0.95vw, 14px);
}

.trailer-skip:hover {
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 10%, rgba(255, 255, 255, 0) 42%),
    rgba(17, 110, 131, 0.82);
  box-shadow:
    0 0 0 3px rgba(57, 223, 255, 0.3),
    0 0 12px rgba(57, 223, 255, 0.24),
    inset 0 0 0 1px rgba(214, 251, 255, 0.36),
    inset 0 5px 0 rgba(255, 255, 255, 0.08);
}

.trailer-start {
  left: clamp(24px, 4vw, 52px);
  bottom: clamp(24px, 4vw, 52px);
  width: clamp(88px, 8%, 96px);
  height: clamp(28px, 3.6%, 32px);
  padding: 0 7px;
  border-width: 1px;
  border-radius: 999px;
  clip-path: none;
  font-size: clamp(12px, 0.95vw, 14px);
  transform: none;
}

.trailer-start:hover {
  transform: scale(1.035);
}

.trailer-start:active {
  transform: scale(0.985);
}
