/* STEELJAW 2087 — cabinet / CRT presentation */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, #1c1420 0%, #0a070c 55%, #050308 100%);
  color: #d8d2c8;
  font-family: "Courier New", ui-monospace, monospace;
  -webkit-user-select: none;
  user-select: none;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
}

/* ---------- cabinet bezel ---------- */
.cabinet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 14px 10px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, #3a2c22 0%, #241a14 30%, #171010 70%, #2a201a 100%);
  border: 1px solid #4a382c;
  box-shadow:
    0 0 0 3px #0c0805,
    0 0 60px rgba(255, 110, 40, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 220, 180, 0.18);
}

/* ---------- marquee ---------- */
.marquee {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 14px 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #12060a 0%, #1d0a10 100%);
  border: 1px solid rgba(255, 176, 87, 0.25);
  box-shadow: inset 0 -6px 18px rgba(255, 60, 30, 0.12);
}
.m-left, .m-right {
  font-size: 9px;
  letter-spacing: 4px;
  color: #8a6a4a;
  white-space: nowrap;
}
.m-title {
  font-family: "Arial Black", "Helvetica Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(18px, 3.2vw, 30px);
  letter-spacing: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #cfd6dd 22%, #5d6673 42%, #f4f6f9 52%, #7c8594 74%, #e8ecf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #12060a) drop-shadow(0 0 14px rgba(255, 150, 60, 0.35));
  animation: marquee-flicker 6s infinite steps(1);
  white-space: nowrap;
}
.m-title em {
  font-style: italic;
  background: linear-gradient(180deg, #ffd23f 0%, #ff8a2a 55%, #c9381a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes marquee-flicker {
  0%, 91%, 94%, 100% { opacity: 1; }
  92% { opacity: 0.55; }
  93% { opacity: 0.9; }
}

/* ---------- screen ---------- */
.screen-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 2px solid #050304;
  box-shadow:
    inset 0 0 40px #000,
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 44px rgba(255, 120, 40, 0.10);
}

#game {
  display: block;
  width: min(92vw, calc((100vh - 170px) * 1.7778), 1060px);
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  cursor: pointer;
}

.scanlines, .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.16) 3px,
    rgba(0, 0, 0, 0.16) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
}
.scanlines::after {
  /* slow travelling brightness band, like an old arcade monitor */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: band 7s linear infinite;
}
@keyframes band {
  0% { top: -90px; }
  100% { top: 110%; }
}
.vignette {
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.42) 88%, rgba(0, 0, 0, 0.78) 100%);
}

/* ---------- control plate ---------- */
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #b9ac9c;
  background: linear-gradient(180deg, #2b211a 0%, #1c1512 100%);
  border: 1px solid #3f3128;
  box-shadow: inset 0 1px 0 rgba(255, 225, 190, 0.12);
}
.panel b {
  color: #ffd23f;
  background: #14100c;
  border: 1px solid #453a30;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
}
.panel .sep {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4a3a2e;
}

.foot {
  font-size: 10px;
  letter-spacing: 1px;
  color: #57493e;
}

@media (max-width: 560px) {
  .m-left, .m-right { display: none; }
  .panel { font-size: 9px; gap: 6px; }
}
