/* ==========================================================================
   ARKADE LOUNGE — the welcome page (owner, 5 Nov 2026)
   An arcade cabinet of our own design, drawn here in CSS: no image to load,
   no copy of any real machine. The screen carries the welcome and ENTER.
   On a phone the cabinet slims down to its marquee and screen, so it never
   crowds the words. The service rows below use home.css.
   ========================================================================== */

.cab-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  padding: calc(var(--header-h) + var(--sp-5)) var(--gutter) var(--sp-7);
  background: var(--surface-void);
}

/* The neon scene from the main site's hero, behind the whole stage, so the
   cabinet stands on the grid floor. */
.cab-stage .neon-scene { z-index: -1; inset: 0; block-size: auto; }

.cab {
  position: relative;
  inline-size: min(100%, 46rem);
  transform-origin: 50% 40%;
}

/* THE MARQUEE: the lit sign at the top of the machine. */
.cab__marquee {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-inline: 5%;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--neon-purple);
  border-block-end: 0;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(180deg, rgba(156, 91, 207, 0.22), transparent 70%),
    linear-gradient(180deg, #2A1238, #170D1F);
  box-shadow: 0 0 22px rgba(156, 91, 207, 0.45), inset 0 0 22px rgba(202, 35, 53, 0.3);
}
.cab__marquee-mark { inline-size: 31px; block-size: 36px; }
.cab__marquee-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 8px var(--neon-magenta), 0 0 22px var(--neon-magenta);
}

/* THE BODY: the screen in its bezel, the control deck, the coin door. The
   two neon side rails are the body's own edges. */
.cab__body {
  position: relative;
  padding: clamp(0.6rem, 2.5vw, 1.5rem);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #2E2A35 0%, #1D1B22 100%);
  box-shadow:
    -3px 0 0 var(--neon-magenta), 3px 0 0 var(--neon-purple),
    -6px 0 18px rgba(202, 35, 53, 0.45), 6px 0 18px rgba(156, 91, 207, 0.45),
    0 30px 60px rgba(0, 0, 0, 0.6);
}

/* THE SCREEN: a dark CRT with curved corners and faint scanlines. */
.cab__screen {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4.5vw, 3rem) clamp(1rem, 4.5vw, 3rem);
  border-radius: 26px / 20px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 35%, #261A33 0%, #120F17 72%);
  box-shadow:
    inset 0 0 0 2px rgba(156, 91, 207, 0.4),
    inset 0 0 48px rgba(0, 0, 0, 0.85),
    0 0 26px rgba(156, 91, 207, 0.22);
}
.cab__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}

.cab__eyebrow {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.cab__title { margin-block: var(--sp-3); }
.cab .hero__tags { margin-block-start: var(--sp-3); }

/* Above the scanlines, so the button reads clean. */
.cab__enter-row { position: relative; z-index: 1; margin-block: var(--sp-6) 0; }

.cab__hours {
  margin-block: var(--sp-5) 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

/* ENTER: an arcade button. White on brand magenta is 5.0:1. It presses in
   when clicked, and its glow breathes slowly (never a blink); the glow is
   off under reduced motion. */
.cab__enter {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3.5rem;
  padding: var(--sp-4) var(--sp-7);
  border-radius: 10px;
  font-family: var(--font-pixel);
  font-size: clamp(0.95rem, 0.8rem + 0.8vw, 1.35rem);
  letter-spacing: var(--tracking-pixel);
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-accent);
  background: var(--neon-magenta);
  box-shadow: 0 6px 0 var(--magenta-800), 0 0 0 2px rgba(255, 255, 255, 0.14);
  transition: transform var(--dur-instant) var(--ease-out), box-shadow var(--dur-instant) var(--ease-out);
}
.cab__enter::before {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 14px;
  background: var(--neon-edge);
  filter: blur(14px);
  opacity: 0.55;
  animation: neon-pulse 2.8s ease-in-out infinite;
}
.cab__enter:hover { color: var(--text-on-accent); background: #B01E2E; }
.cab__enter:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--magenta-800), 0 0 0 2px rgba(255, 255, 255, 0.14); }
.cab__enter:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 6px; }

/* THE CONTROL DECK: a joystick and six buttons, angled out like the real
   thing. Decoration only. */
.cab__deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 8vw, 4.5rem);
  margin: clamp(0.6rem, 2.5vw, 1.5rem) -4% 0;
  padding-block: var(--sp-5);
  background: linear-gradient(180deg, #3B3644, #24212A);
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}
.cab__stick {
  position: relative;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF7A88, var(--neon-magenta) 55%, var(--magenta-800));
  box-shadow: 0 10px 0 -6px #0C0B0F, 0 14px 0 -4px #0C0B0F;
}
.cab__btns { display: grid; grid-template-columns: repeat(3, 1.15rem); gap: 0.55rem 0.8rem; }
.cab__btn {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF7A88, var(--neon-magenta) 60%, var(--magenta-800));
  box-shadow: 0 3px 0 #0C0B0F;
}
.cab__btn--b { background: radial-gradient(circle at 35% 30%, #D9B6F5, var(--neon-purple) 60%, var(--purple-800)); }

/* THE COIN DOOR. */
.cab__kick {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-inline: 2%;
  padding-block: var(--sp-5) var(--sp-6);
  background: linear-gradient(180deg, #211E26, #16141A);
}
.cab__coin {
  inline-size: 1rem;
  block-size: 1.75rem;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 44%, #000 44% 56%, transparent 56%) center / 100% 70% no-repeat, #0D0C10;
  box-shadow: inset 0 0 0 2px #45414D, 0 0 10px rgba(202, 35, 53, 0.55);
}

.cab__more {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--text-2);
  text-underline-offset: 0.3em;
}

/* PHONES: the marquee and the screen only, in a slim frame. */
@media (max-width: 40rem) {
  .cab__deck,
  .cab__kick { display: none; }
  .cab__marquee { margin-inline: 3%; padding-block: var(--sp-2); }
  .cab__marquee-mark { inline-size: 24px; block-size: 28px; }
  .cab__body { padding: 0.45rem; border-radius: 8px; }
  .cab__screen { border-radius: 18px / 14px; }
  .cab__enter { inline-size: 100%; }
}

/* ENTER AT THE END of the rows. */
.welcome-end .final-cta__title { margin-block-end: var(--sp-6); }

/* --------------------------------------------------------------------------
   THE ZOOM INTO THE SCREEN (welcome.js). A dark panel grows from the screen
   (or from the ENTER pressed at the end) to the whole window, the cabinet
   swells a little behind it, and then the main site loads. Transform and
   opacity only. welcome.js never runs it under reduced motion.
   -------------------------------------------------------------------------- */
.enter-zoom {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  pointer-events: none;
  transform-origin: 0 0;
  border-radius: 26px / 20px;
  background: radial-gradient(120% 90% at 50% 35%, #261A33 0%, #131218 72%);
  box-shadow: 0 0 60px rgba(156, 91, 207, 0.5);
  opacity: 0.6;
}
.enter-zoom.is-on {
  transform: none;
  border-radius: 0;
  opacity: 1;
  transition: transform 480ms var(--ease-in), opacity 240ms linear, border-radius 480ms var(--ease-in);
}
.cab.is-entering {
  transform: scale(1.06);
  transition: transform 480ms var(--ease-in);
}

@media (prefers-reduced-motion: reduce) {
  .cab__enter::before { animation: none; }
  .cab__enter { transition: none; }
  .cab.is-entering { transform: none; transition: none; }
}
