/* EMTAC ARCADE Storefront - Phase 20L
 * 3-state logo cycle: Neon (default) / Standard / FLYNN'S
 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #06070b; color: #c0d4d8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}
.storefront {
  position: relative; width: 100vw; height: 100vh; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20, 28, 38, 0.6) 0%, rgba(6, 7, 11, 0) 60%),
    radial-gradient(ellipse at 50% 90%, rgba(8, 12, 18, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%),
    #06070b;
}

.layer-frame {
  position: absolute; top: 18px; right: 18px; bottom: 18px; left: 18px;
  border: 1px solid rgba(95,201,221,.10); pointer-events: none; z-index: 3;
}
.layer-frame::before, .layer-frame::after {
  content: ''; position: absolute; width: 10px; height: 10px;
  border: 1px solid #5fc9dd;
}
.layer-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.layer-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.topbar {
  position: absolute; top: 28px; left: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.2em; color: rgba(95,201,221,.50);
  z-index: 10;
}
.led-ind { color: rgba(94,231,154,.75); }
.led-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #5ee79a; margin-right: 6px; vertical-align: 1px;
  box-shadow: 0 0 6px #5ee79a, 0 0 12px rgba(94,231,154,.4);
  animation: led-blink 2.4s ease-in-out infinite;
}
@keyframes led-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.logo-row {
  position: absolute; top: 22%; left: 0; right: 0;
  text-align: center; z-index: 8; padding: 0 24px;
}

/* Stacked logos - 3 layers, switch via data-state on container.
   All three layers are absolutely positioned (true stack).
   A transparent placeholder sizes the container. */
.logo-stack {
  position: relative;
  display: inline-block;
  width: min(80vw, 720px);
  max-width: 720px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* Sizer: invisible img defining the container's intrinsic dimensions.
   We use the standard logo as the sizer since all three share the same canvas. */
.logo-stack::before {
  content: "";
  display: block;
  width: 100%;
  /* Match the 1583x266 aspect ratio of all 3 logos */
  padding-top: calc(266 / 1583 * 100%);
}
.logo-stack .logo-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.45s ease;
  opacity: 0;
}
/* data-state controls visibility */
.logo-stack[data-state="neon"]     .logo-neon     { opacity: 1; }
.logo-stack[data-state="standard"] .logo-standard { opacity: 1; }
.logo-stack[data-state="flynn"]    .logo-flynn    { opacity: 1; }
.logo-stack.flickering .logo-layer { transition: opacity 0.05s linear; }

/* Standard logo gets the same CSS neon glow as before when visible */
.logo-stack[data-state="standard"] .logo-standard {
  filter:
    drop-shadow(0 0 2px rgba(83, 204, 135, 0.95))
    drop-shadow(0 0 6px rgba(83, 204, 135, 0.75))
    drop-shadow(0 0 14px rgba(83, 204, 135, 0.5))
    drop-shadow(0 0 26px rgba(255, 122, 31, 0.4))
    drop-shadow(0 0 48px rgba(255, 122, 31, 0.25));
  animation: neon-pulse 3.2s ease-in-out infinite;
}
@keyframes neon-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(83, 204, 135, 0.95))
      drop-shadow(0 0 6px rgba(83, 204, 135, 0.75))
      drop-shadow(0 0 14px rgba(83, 204, 135, 0.5))
      drop-shadow(0 0 26px rgba(255, 122, 31, 0.4))
      drop-shadow(0 0 48px rgba(255, 122, 31, 0.25));
  }
  50% {
    filter:
      drop-shadow(0 0 2px rgba(83, 204, 135, 1.0))
      drop-shadow(0 0 8px rgba(83, 204, 135, 0.85))
      drop-shadow(0 0 18px rgba(83, 204, 135, 0.6))
      drop-shadow(0 0 32px rgba(255, 122, 31, 0.5))
      drop-shadow(0 0 60px rgba(255, 122, 31, 0.3));
  }
}

.enter-row {
  position: absolute; top: 52%; left: 0; right: 0;
  text-align: center; z-index: 8;
}
.enter-btn {
  display: inline-block; padding: 12px 32px;
  border: 1px solid rgba(95,201,221,.50); color: #5fc9dd;
  font-family: inherit; font-weight: 500; font-size: 11px; letter-spacing: 0.35em;
  text-shadow: 0 0 4px rgba(95,201,221,.45);
  background: rgba(6,8,11,.7); cursor: pointer; outline: none;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.enter-btn:hover {
  background: rgba(95,201,221,.12); color: #fff; border-color: #fff;
  box-shadow: 0 0 12px rgba(95,201,221,.3);
}
.enter-btn:active { transform: scale(0.98); }

.cabinet-row {
  position: absolute; bottom: 11%; left: 0; right: 0;
  display: flex; justify-content: center; align-items: flex-end;
  gap: 14px; padding: 0 20px; z-index: 5;
}
.cab-svg { width: 90px; height: auto; display: block; }
.cab-svg.hide-mobile { display: none; }
.cab-svg.hide-tablet { display: none; }

@media (min-width: 600px) {
  .cabinet-row { gap: 18px; }
  .cab-svg { width: 100px; }
  .cab-svg.hide-mobile { display: block; }
}
@media (min-width: 1000px) {
  .cabinet-row { gap: 22px; padding: 0 40px; }
  .cab-svg { width: 110px; }
  .cab-svg.hide-tablet { display: block; }
}

.footer {
  position: absolute; bottom: 28px; left: 32px; right: 32px;
  display: flex; justify-content: space-between;
  font-size: 9px; letter-spacing: 0.25em; color: rgba(192,212,216,.40);
  z-index: 10;
}

@media (max-height: 600px) {
  .footer { display: none; }
  .logo-row { top: 14%; }
  .enter-row { top: 48%; }
}
