:root {
  --bg: #080b12;
  --panel: #11192b;
  --rim: #35415b;
  --text: #f4e8c9;
  --accent: #ffb84a;
  --danger: #ef4e4e;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 184, 74, 0.14), transparent 28rem),
    linear-gradient(180deg, #111827 0%, #06080d 70%, #030406 100%);
  color: var(--text);
  font-family: Consolas, "Lucida Console", Monaco, monospace;
}

body {
  display: grid;
  place-items: center;
  padding: 18px;
}

#cabinet {
  width: min(100vw - 28px, 1056px);
  border: 2px solid #4b5570;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #1a2031, #0d111d 54%, #080a11);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 4px rgba(255, 255, 255, 0.03);
}

#marquee {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #38435b;
  border-radius: 10px;
  background: linear-gradient(90deg, #1b2235, #2b1622 48%, #392612);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#marquee span {
  color: #fff1bd;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 900;
  text-shadow: 0 2px 0 #7a260f, 0 0 18px rgba(255, 126, 38, 0.55);
}

#marquee small {
  color: #8ff0ff;
  font-size: clamp(10px, 1.6vw, 14px);
}

#screen-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 2px solid #030407;
  border-radius: 12px;
  background: #05070b;
  overflow: hidden;
}

#screen-wrap::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.32;
}

#game {
  display: block;
  width: min(calc(100vw - 82px), 1024px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid #51607f;
  background: #111722;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
}

#game:focus { box-shadow: 0 0 0 2px #8ff0ff; }

#controls {
  margin: 12px 4px 0;
  color: #aebbd1;
  text-align: center;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: 0.04em;
}

