/* =========================================================
   ARCADE - STAGE 2
========================================================= */

/* #arcade-window {
  width: min(1100px, 90vw);
  height: min(720px, 85vh);

  top: 100px;
  left: 50%;

  transform: translateX(-50%);
} */

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.arcade-window-header p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arcade-status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 10px var(--accent),
    0 0 20px rgba(255, 122, 0, 0.4);
}

/* ---------------------------------------------------------
   CONTENT
--------------------------------------------------------- */

.arcade-content {
  position: relative;

  height: calc(100% - 70px);

  padding: 40px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(255, 122, 0, 0.18),
      transparent 45%
    ),
    rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------
   ARCADE SCREENS
--------------------------------------------------------- */

.arcade-screen {
  position: absolute;

  inset: 0;

  padding: 40px;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transform: translateY(30px) scale(0.98);

  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}

.arcade-screen.active-arcade-screen {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform: translateY(0) scale(1);
}

/* ---------------------------------------------------------
   ARCADE TITLE
--------------------------------------------------------- */

.arcade-logo {
  text-align: left;

  margin-bottom: 40px;
}

.arcade-eyebrow {
  display: block;

  margin-bottom: 10px;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.25em;

  color: var(--accent);
}

.arcade-logo h1 {
  margin: 0;

  font-size: clamp(42px, 6vw, 72px);

  line-height: 0.9;

  letter-spacing: 0.08em;

  color: var(--text-secondary);
}

.arcade-logo p {
  margin-top: 18px;

  color: var(--text-secondary);
}

/* ---------------------------------------------------------
   GAME CARD
--------------------------------------------------------- */

.game-card {
  position: relative;

  min-height: 320px;
}

.game-number {
  position: absolute;

  top: 20px;
  right: 24px;

  font-size: 11px;

  letter-spacing: 0.15em;

  color: var(--text-secondary);

  opacity: 0.5;
}

.game-info {
  width: 100%;
}

.game-status {
  display: inline-block;

  margin-bottom: 10px;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.15em;

  color: var(--text-secondary);
}

.game-status.available {
  color: var(--accent);
}

/* ---------------------------------------------------------
   PLAY BUTTON
--------------------------------------------------------- */

.launch-game {
  margin-top: auto;
}

/* =========================================================
   AIR HOCKEY INTRO
========================================================= */

.hockey-screen {
  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;
}

/* ---------------------------------------------------------
   BACK BUTTON
--------------------------------------------------------- */

.arcade-back-btn {
  position: absolute;

  top: 30px;
  left: 30px;

  padding: 10px 16px;

  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.04);

  color: var(--text-secondary);

  font-family: inherit;

  cursor: pointer;

  transition: 0.3s ease;
}

.arcade-back-btn:hover {
  color: var(--accent);

  border-color: rgba(255, 122, 0, 0.3);

  background: rgba(255, 122, 0, 0.08);

  transform: translateX(-4px);
}

/* ---------------------------------------------------------
   INTRO
--------------------------------------------------------- */

.hockey-intro {
  display: flex;

  flex-direction: column;

  align-items: center;

  width: min(600px, 90%);
}

.hockey-intro h1 {
  margin-top: 12px;

  font-size: clamp(48px, 7vw, 80px);

  letter-spacing: 0.05em;

  line-height: 0.95;

  color: var(--text-secondary);
}

.hockey-intro > p {
  margin-top: 18px;

  font-size: 16px;

  color: var(--text-secondary);
}

/* ---------------------------------------------------------
   PUCK PREVIEW
--------------------------------------------------------- */

.hockey-puck-preview {
  position: relative;

  width: 130px;
  height: 130px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 25px;
}

.hockey-puck-preview::before {
  content: "";

  position: absolute;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(255, 122, 0, 0.2), transparent 65%);

  animation: hockeyPulse 2s ease-in-out infinite;
}

.preview-puck {
  position: relative;

  width: 70px;
  height: 70px;

  border-radius: 50%;

  background: radial-gradient(circle at 35% 30%, #555, #111 55%, #050505);

  border: 2px solid rgba(255, 122, 0, 0.55);

  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 122, 0, 0.25);

  animation: puckFloat 3s ease-in-out infinite;
}

@keyframes puckFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes hockeyPulse {
  0%,
  100% {
    transform: scale(0.8);

    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);

    opacity: 1;
  }
}

/* ---------------------------------------------------------
   HOCKEY MENU
--------------------------------------------------------- */

.hockey-menu {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 14px;

  margin-top: 35px;
}

.hockey-primary-btn,
.hockey-secondary-btn {
  padding: 15px 28px;

  border-radius: 999px;

  font-family: inherit;
  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.hockey-primary-btn {
  border: none;

  background: var(--accent);

  color: white;

  box-shadow: 0 10px 30px rgba(255, 122, 0, 0.2);
}

.hockey-primary-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 15px 40px rgba(255, 122, 0, 0.35);
}

.hockey-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.04);

  color: var(--text-secondary);
}

.hockey-secondary-btn:hover {
  border-color: rgba(255, 122, 0, 0.3);

  background: rgba(255, 122, 0, 0.08);
}

/* ---------------------------------------------------------
   CONTROLS INFORMATION
--------------------------------------------------------- */

.hockey-controls-info {
  margin-top: 45px;

  padding-top: 25px;

  width: 100%;

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hockey-controls-info span {
  font-size: 10px;

  letter-spacing: 0.2em;

  color: var(--accent);
}

.hockey-controls-info p {
  margin-top: 8px;

  font-size: 13px;

  color: var(--text-secondary);
}

/* =========================================================
   AIR HOCKEY
   STEP 2A - GAME UI
========================================================= */

.hockey-screen {
  display: flex;
  flex-direction: column;

  padding: 24px 30px 20px;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 122, 0, 0.08),
      transparent 45%
    ),
    #080808;
}

/* =========================================================
   TOP BAR
========================================================= */

.hockey-topbar {
  position: relative;

  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  flex-shrink: 0;

  z-index: 10;
}

/* =========================================================
   BACK BUTTON
========================================================= */

.hockey-topbar .arcade-back-btn {
  position: relative;

  top: auto;
  left: auto;

  padding: 10px 18px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 100px;

  background: rgba(255, 255, 255, 0.04);

  color: var(--text-secondary);

  font-family: inherit;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.12em;

  cursor: pointer;

  transition: 0.3s ease;
}

.hockey-topbar .arcade-back-btn:hover {
  color: var(--accent);

  border-color: rgba(255, 122, 0, 0.4);

  background: rgba(255, 122, 0, 0.08);

  transform: translateX(-3px);
}

/* =========================================================
   SCOREBOARD
========================================================= */

.hockey-scoreboard {
  position: absolute;

  left: 50%;

  transform: translateX(-50%);

  display: flex;
  align-items: center;

  gap: 18px;

  padding: 8px 24px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 100px;

  background: rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(20px);
}

.score-player {
  display: flex;

  align-items: center;

  gap: 12px;
}

.score-player span {
  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.15em;

  color: var(--text-secondary);
}

.score-player strong {
  min-width: 24px;

  font-size: 26px;

  line-height: 1;

  text-align: center;

  color: var(--accent);
}

.cpu-score strong {
  color: white;
}

.score-divider {
  font-size: 20px;

  color: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   RESTART BUTTON
========================================================= */

.hockey-restart-btn {
  padding: 10px 18px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 100px;

  background: rgba(255, 255, 255, 0.04);

  color: var(--text-secondary);

  font-family: inherit;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.12em;

  cursor: pointer;

  transition: 0.3s ease;
}

.hockey-restart-btn:hover {
  color: white;

  border-color: rgba(255, 122, 0, 0.4);

  background: rgba(255, 122, 0, 0.08);
}

/* =========================================================
   GAME WRAPPER
========================================================= */

.hockey-game-wrapper {
  position: relative;

  flex: 1;

  min-height: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 10px 0;
}

/* =========================================================
   HOCKEY TABLE
========================================================= */

.hockey-table {
  position: relative;

  /* NEW SIZE */
  width: min(720px, 75vw);
  height: min(520px, 65vh);

  max-width: 100%;
  max-height: 100%;

  /* REMOVE THE OLD aspect-ratio: 0.62 */

  overflow: hidden;

  border-radius: 35px;

  border: 2px solid rgba(255, 122, 0, 0.5);

  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 122, 0, 0.07), transparent 45%),
    linear-gradient(145deg, #151515, #090909);

  background-size:
    25px 25px,
    25px 25px,
    auto,
    auto;

  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(255, 122, 0, 0.08),
    inset 0 0 60px rgba(0, 0, 0, 0.7);

  cursor: none;
  touch-action: none;
  user-select: none;
}

/* TABLE INNER EDGE */

.hockey-table::before {
  content: "";

  position: absolute;

  inset: 10px;

  border: 1px solid rgba(255, 255, 255, 0.05);

  border-radius: 27px;

  pointer-events: none;
}

/* TABLE LIGHT */

.hockey-table::after {
  content: "";

  position: absolute;

  width: 70%;
  height: 25%;

  top: 37%;
  left: 15%;

  border-radius: 50%;

  background: rgba(255, 122, 0, 0.04);

  filter: blur(40px);

  pointer-events: none;
}

#arcade-window.fullscreen .hockey-table {
  width: min(1000px, 82vw);
  height: min(680px, 72vh);
}

/* =========================================================
   CENTRE LINE
========================================================= */

.hockey-centre-line {
  position: absolute;

  top: 50%;
  left: 0;

  width: 100%;
  height: 1px;

  transform: translateY(-50%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 0, 0.7),
    transparent
  );

  box-shadow: 0 0 15px rgba(255, 122, 0, 0.35);
}

/* =========================================================
   CENTRE CIRCLE
========================================================= */

.hockey-centre-circle {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 100px;
  height: 100px;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(255, 122, 0, 0.45);

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  box-shadow: inset 0 0 25px rgba(255, 122, 0, 0.04);
}

.centre-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow: 0 0 15px var(--accent);
}

/* =========================================================
   GOALS
========================================================= */

.hockey-goal {
  position: absolute;

  left: 50%;

  width: 42%;
  height: 28px;

  transform: translateX(-50%);

  border: 2px solid rgba(255, 255, 255, 0.15);

  background: rgba(0, 0, 0, 0.65);

  z-index: 2;
}

.hockey-goal-top {
  top: -2px;

  border-top: none;

  border-radius: 0 0 18px 18px;
}

.hockey-goal-bottom {
  bottom: -2px;

  border-bottom: none;

  border-radius: 18px 18px 0 0;
}

.goal-net {
  position: absolute;

  inset: 4px;

  opacity: 0.25;

  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%);

  background-size: 8px 8px;
}

/* =========================================================
   SIDE MARKINGS
========================================================= */

.rink-mark {
  position: absolute;

  top: 50%;

  width: 25px;
  height: 70px;

  transform: translateY(-50%);

  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rink-mark-left {
  left: -12px;

  border-radius: 0 50px 50px 0;
}

.rink-mark-right {
  right: -12px;

  border-radius: 50px 0 0 50px;
}

/* =========================================================
   PLAYER LABELS
========================================================= */

.hockey-side-label {
  position: absolute;

  left: 50%;

  transform: translateX(-50%);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.25em;

  color: rgba(255, 255, 255, 0.15);

  pointer-events: none;
}

.cpu-label {
  top: 15%;
}

.player-label {
  bottom: 15%;
}

/* =========================================================
   PADDLES
========================================================= */

.hockey-paddle {
  position: absolute;

  width: clamp(68px, 6vw, 86px);
  height: clamp(68px, 6vw, 86px);

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translate(-50%, -50%);

  z-index: 5;

  user-select: none;
  pointer-events: none;
}

/* CPU */

.cpu-paddle {
  top: 24%;
  left: 50%;

  background: radial-gradient(
    circle at 35% 30%,
    #ffffff,
    #bcbcbc 15%,
    #3b3b3b 48%,
    #101010 75%
  );

  border: 2px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.08);
}

/* PLAYER */

.player-paddle {
  top: 76%;
  left: 50%;

  background: radial-gradient(
    circle at 35% 30%,
    #ffb66e,
    var(--accent) 25%,
    #d75d00 55%,
    #5b2500 100%
  );

  border: 2px solid rgba(255, 160, 70, 0.75);

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(255, 122, 0, 0.3);

  will-change: left, top;
}

.paddle-inner {
  width: 36%;
  height: 36%;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.35);

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   PUCK
========================================================= */

.hockey-puck {
  position: absolute;

  top: 50%;
  left: 50%;

  width: clamp(38px, 3vw, 48px);
  height: clamp(38px, 3vw, 48px);

  transform: translate(-50%, -50%);

  border-radius: 50%;

  z-index: 6;

  background: radial-gradient(
    circle at 35% 30%,
    #4d4d4d,
    #191919 45%,
    #050505 80%
  );

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 8px 15px rgba(0, 0, 0, 0.65),
    0 0 15px rgba(255, 122, 0, 0.15);

  pointer-events: none;

  will-change: left, top;

  transition: box-shadow 0.15s ease;
}

.puck-highlight {
  position: absolute;

  top: 6px;
  left: 8px;

  width: 10px;
  height: 6px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.18);

  filter: blur(1px);
}

/* =========================================================
   FOOTER
========================================================= */

.hockey-footer {
  min-height: 42px;

  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  flex-shrink: 0;

  font-size: 9px;

  letter-spacing: 0.12em;

  color: var(--text-secondary);
}

/* STATUS */

.hockey-status {
  display: flex;

  align-items: center;

  gap: 8px;
}

.status-light {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow: 0 0 10px var(--accent);
}

/* INSTRUCTIONS */

.hockey-instructions {
  opacity: 0.55;
}

/* MATCH */

.hockey-match-info {
  justify-self: end;

  opacity: 0.6;
}

.hockey-match-info strong {
  margin-left: 4px;

  color: var(--accent);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {
  .hockey-screen {
    padding: 15px;
  }

  .hockey-scoreboard {
    gap: 10px;

    padding: 8px 15px;
  }

  .score-player span {
    display: none;
  }

  .hockey-instructions {
    display: none;
  }

  .hockey-footer {
    grid-template-columns: 1fr 1fr;
  }

  .hockey-match-info {
    justify-self: end;
  }
}
