* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center 8%, rgba(255, 214, 10, 0.15), transparent 34%),
    linear-gradient(180deg, #141018 0%, #08090e 100%);
  color: #f7f1d1;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.arcade {
  width: min(100%, 920px);
}

.cabinet {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #11131e;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.topbar,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}

p {
  margin: 5px 0 0;
  color: #b7b4c7;
}

.stats {
  display: flex;
  gap: 18px;
  text-align: right;
}

.stats span {
  display: block;
  color: #b7b4c7;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  min-width: 58px;
  color: #ffd60a;
  font-size: 1.5rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.screen-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #05060a;
}

canvas {
  display: block;
  width: min(100%, 672px);
  height: auto;
  image-rendering: crisp-edges;
  background: #02030a;
}

.overlay {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  pointer-events: none;
  color: #fff3b0;
  text-align: center;
  text-shadow: 0 3px 0 #000;
}

.overlay.is-hidden {
  display: none;
}

.overlay strong {
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1;
}

.overlay span {
  color: #f7f1d1;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.controls {
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b7b4c7;
}

button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 8px 12px;
  background: #22263a;
  color: #f7f1d1;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #303650;
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
  }

  .stats {
    gap: 10px;
  }
}
