 * {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #09051c;
  color: white;
  overflow-x: hidden;
}

.arcade-room {
  min-height: 100vh;
  position: relative;
  padding: 35px 40px 90px;
  background:
    radial-gradient(circle at top, rgba(191,47,47,.25), transparent 35%),
    linear-gradient(180deg, #0d0629 0%, #1F3A5F 65%, #141021 100%);
}

.brand {
  position: absolute;
  top: 28px;
  left: 32px;
  color: #F4F1EC;
  opacity: .75;
  font-weight: 800;
  letter-spacing: .5px;
  z-index: 4;
}

.neon-sign {
  text-align: center;
  margin: 40px auto 35px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.neon-sign .star {
  font-size: 54px;
  color: #F4F1EC;
  text-shadow:
    0 0 8px #fff,
    0 0 18px #BF2F2F,
    0 0 35px #BF2F2F;
}

.neon-sign h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .9;
  color: #F4F1EC;
  text-shadow:
    0 0 8px #fff,
    0 0 18px #BF2F2F,
    0 0 35px #BF2F2F;
}

.neon-sign span {
  color: #BF2F2F;
  text-shadow:
    0 0 8px #BF2F2F,
    0 0 22px #BF2F2F,
    0 0 45px #F4F1EC;
}

.neon-sign p {
  color: #F4F1EC;
  opacity: .85;
  margin-top: 12px;
  letter-spacing: 2px;
}

.machines {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 70px);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cabinet {
  width: 260px;
  height: 540px;
  border-radius: 14px 14px 6px 6px;
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: transform .25s ease, filter .25s ease;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

.cabinet:hover {
  transform: translateY(-14px) scale(1.03);
  filter: brightness(1.15);
}

.cabinet::after {
  content: "PLAY";
  position: absolute;
  inset: 0;
  background: rgba(31,58,95,.72);
  color: #F4F1EC;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 14px 14px 6px 6px;
  transition: opacity .2s ease;
  text-shadow: 0 0 12px #fff, 0 0 28px #BF2F2F;
  z-index: 10;
  pointer-events: none;
}

.cabinet:hover::after {
  opacity: 1;
}

.cabinet.orange {
  background: linear-gradient(180deg, #d78439, #733a22);
}

.cabinet.red {
  background: linear-gradient(180deg, #BF2F2F, #621a1a);
}

.cabinet.blue {
  background: linear-gradient(180deg, #1F3A5F, #102037);
}

.marquee {
  height: 70px;
  border-radius: 8px;
  background: #F4F1EC;
  color: #1F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.35);
}

.screen {
  margin: 24px auto 18px;
  width: 190px;
  height: 235px;
  background: #030303;
  border-radius: 12px;
  border: 10px solid #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  box-shadow: inset 0 0 30px rgba(255,255,255,.08);
}

.controls {
  height: 78px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.controls span {
  width: 18px;
  height: 48px;
  background: #333;
  border-radius: 10px;
  position: relative;
}

.controls span::before {
  content: "";
  width: 26px;
  height: 26px;
  background: #BF2F2F;
  border-radius: 50%;
  position: absolute;
  top: -12px;
  left: -4px;
}

.controls button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #F4F1EC;
}

.base {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 22px;
  height: 72px;
  background: rgba(0,0,0,.35);
  border-radius: 8px;
}

.floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    #1b132d;
  background-size: 80px 80px;
  transform: perspective(500px) rotateX(55deg);
  transform-origin: bottom;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 99;
  align-items: center;
  justify-content: center;
}

.modal iframe {
  width: min(92vw, 1100px);
  height: min(82vh, 760px);
  border: 0;
  border-radius: 18px;
  background: black;
}

.close {
  position: fixed;
  top: 22px;
  right: 28px;
  background: transparent;
  color: white;
  border: 0;
  font-size: 52px;
  cursor: pointer;
  z-index: 100;
}

@media (max-width: 700px) {
  .arcade-room {
    padding: 30px 16px 80px;
  }

  .neon-sign {
    margin-top: 40px;
  }

  .cabinet {
    width: 230px;
    height: 490px;
  }

  .screen {
    width: 165px;
    height: 205px;
  }
}
.screen {
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  text-align: center;
}

.screen-icon {
  font-size: 42px;
  line-height: 1;
}

.mini-board {
  width: 100%;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1.4;
  color: #F4F1EC;
}

.mini-board strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  color: #BF2F2F;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mini-board div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arcade-footer {
  text-align: center;
  margin: 40px auto 0;
  padding: 16px 20px;
  font-size: 14px;
  color: rgba(244,241,236,0.75);
  letter-spacing: 0.5px;

  max-width: 600px;
}

.arcade-footer a {
  color: #F4F1EC;
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.arcade-footer a:hover {
  color: #BF2F2F;
  text-shadow: 0 0 8px rgba(191,47,47,0.8);
}

.arcade-footer a:hover {
  color: #BF2F2F;
  text-shadow: 0 0 8px rgba(191,47,47,0.8);
}

.score-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.score-box {
  background: #1F3A5F;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  color: white;
  width: 280px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.score-box h2 {
  margin-top: 0;
}

.score-box input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
}

.score-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.score-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.score-actions button:first-child {
  background: #BF2F2F;
  color: white;
}

.score-actions button:last-child {
  background: #ccc;
}
