/* ==========================================================================
   PENISPUMP ARCADE PARLOR — STYLESHEET
   Crafted under the unslop design discipline:
   4px spacing rhythm · Warm slate/brass ramp · Quiet chrome · Tactile arcade depth
   ========================================================================== */

:root {
  /* Neutral ramp: warm slate vault */
  --bg-dark: #0B0C0E;
  --surface-1: #111419;
  --surface-2: #161B24;
  --surface-3: #1E242F;
  --surface-highlight: #28303E;

  /* Hairlines and borders */
  --border-subtle: rgba(240, 237, 230, 0.07);
  --border-card: rgba(240, 237, 230, 0.12);
  --border-focus: rgba(197, 160, 89, 0.4);

  /* Text roles */
  --text-primary: #F0EDE6;
  --text-secondary: #A6A095;
  --text-muted: #6A655E;

  /* World Accents */
  --gold-accent: #C5A059;
  --gold-glow: rgba(197, 160, 89, 0.2);
  --gold-deep: #8E7138;
  --emerald-accent: #38B26A;
  --amber-crt: #E5A93C;
  --ruby-accent: #E04848;

  /* Typography */
  --font-display: 'Anton', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-ui: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --max-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-ui);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Typography Utilities */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on, 'zero' on;
}

.gold-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-accent);
}

/* ==========================================================================
   AMBIENT ATMOSPHERE & BACKGROUND
   ========================================================================== */
.arcade-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.05) 0%, rgba(11, 12, 14, 0) 70%);
}

.vault-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(240, 237, 230, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(240, 237, 230, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
}

/* ==========================================================================
   HEADER / TELEMETRY STRIP
   ========================================================================== */
.arcade-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-token-disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #221D13 0%, #0F1217 80%);
  border: 1.5px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-coin {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-coin {
  transform: rotate(15deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Telemetry Badge */
.arcade-telemetry {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
  box-shadow: 0 0 8px rgba(56, 178, 106, 0.6);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.network-badge {
  color: var(--text-muted);
  border-left: 1px solid var(--border-subtle);
  padding-left: 16px;
}

/* Actions: Coin Slot & Sound */
.arcade-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Physical Coin Slot Button */
.coin-slot-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-card);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease-out;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.coin-slot-btn:hover {
  background: var(--surface-3);
  border-color: var(--gold-accent);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 10px rgba(197, 160, 89, 0.15);
}

.coin-slot-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.coin-slot-aperture {
  width: 4px;
  height: 14px;
  background: #000;
  border: 1px solid var(--gold-accent);
  border-radius: 1px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.coin-slot-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-accent);
}

.credit-counter {
  font-size: 0.72rem;
  background: #000;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: var(--text-primary);
}

.credit-counter b {
  color: var(--amber-crt);
}

/* Sound Button */
.sound-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sound-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
  background: var(--surface-2);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   MAIN CONTENT & HERO LOUNGE MARQUEE
   ========================================================================== */
.arcade-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 64px;
  width: 100%;
}

.lounge-hero {
  margin-bottom: 48px;
}

.lounge-content {
  max-width: 820px;
}

/* Official Token Badge Frame */
.token-badge-frame {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-card);
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.token-badge-frame:hover {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(197, 160, 89, 0.15);
  transform: translateY(-1px);
}

.token-coin-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2A2418 0%, #111419 75%);
  border: 2px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 2px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.token-coin-ring::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px dashed rgba(197, 160, 89, 0.4);
  pointer-events: none;
}

.token-coin-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  position: relative;
  z-index: 1;
}

.token-meta {
  display: flex;
  flex-direction: column;
}

.token-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-accent);
}

.token-verify {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Hero Typography */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--gold-accent);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

/* ==========================================================================
   ARCADE FLOOR: PHYSICAL CABINETS
   ========================================================================== */
.arcade-floor {
  margin-bottom: 64px;
}

.floor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.floor-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-symbol {
  color: var(--gold-accent);
}

.floor-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Cabinets Grid */
.cabinets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  perspective: 1200px;
}

/* Cabinet Unit (Physical Kiosk Appearance) */
.arcade-cabinet {
  background: var(--surface-1);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.arcade-cabinet:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.35);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.6);
}

.cab-outer {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Marquee Header */
.cab-marquee {
  position: relative;
  padding: 20px 24px 16px;
  background: linear-gradient(180deg, #181D26 0%, #11151D 100%);
  border-bottom: 2px solid #000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
}

.marquee-backlight {
  position: absolute;
  top: -40px;
  left: 20px;
  right: 20px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(224, 72, 72, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.lom-backlight {
  background: radial-gradient(ellipse at center, rgba(56, 178, 106, 0.3) 0%, transparent 70%);
}

.locked-backlight {
  background: radial-gradient(ellipse at center, rgba(106, 101, 94, 0.2) 0%, transparent 70%);
}

.marquee-title-wrap {
  position: relative;
  z-index: 1;
}

.marquee-eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.marquee-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #FFF;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.lom-title {
  color: #D2FFD8;
  text-shadow: 0 0 16px rgba(56, 178, 106, 0.3);
}

.locked-title {
  color: var(--text-secondary);
}

.cab-badge {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.cab-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.locked-badge {
  border-color: var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Smoked CRT Display Bezel */
.cab-bezel {
  padding: 16px 20px;
  background: #0D1016;
  border-bottom: 1px solid var(--border-subtle);
}

.crt-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050608;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(240, 237, 230, 0.08);
}

.crt-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.arcade-cabinet:hover .crt-img {
  transform: scale(1.03);
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
}

.crt-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 3;
}

.crt-hud {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 4;
}

.hud-pill {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.live-pill {
  color: var(--emerald-accent);
}

/* Locked Bay Screen */
.locked-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090C;
}

.locked-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}

.padlock-icon {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.locked-heading {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.locked-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  max-width: 240px;
}

.locked-hint {
  font-size: 0.62rem;
  color: var(--gold-accent);
  margin-top: 4px;
}

/* Specs Placard */
.cab-specs {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  background: var(--surface-1);
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Control Deck & Launch Button */
.cab-control-deck {
  padding: 16px 24px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subdomain-indicator {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.subdomain-indicator b {
  color: var(--gold-accent);
  font-weight: 500;
}

.launch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease-out;
  border: 1px solid transparent;
}

.btn-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-coin-icon {
  font-size: 0.9rem;
}

.btn-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.btn-sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-top: 2px;
}

/* Button Variants */
.btn-zompeens {
  background: linear-gradient(180deg, #D93B3B 0%, #A82424 100%);
  color: #FFF;
  border-color: #E65A5A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(168, 36, 36, 0.4);
}

.btn-zompeens:hover {
  background: linear-gradient(180deg, #E64A4A 0%, #BA2C2C 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(168, 36, 36, 0.6);
}

.btn-lom {
  background: linear-gradient(180deg, #2E8B57 0%, #1E663D 100%);
  color: #FFF;
  border-color: #40A86D;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(30, 102, 61, 0.4);
}

.btn-lom:hover {
  background: linear-gradient(180deg, #379E64 0%, #247547 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(30, 102, 61, 0.6);
}

.btn-locked {
  background: var(--surface-3);
  color: var(--text-secondary);
  border-color: var(--border-card);
  box-shadow: none;
}

.btn-locked:hover {
  background: var(--surface-highlight);
  color: var(--text-primary);
  border-color: var(--gold-accent);
}

/* ==========================================================================
   SPECS / ARCHITECTURE PASS
   ========================================================================== */
.parlor-specs {
  margin-top: 32px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.spec-card {
  background: var(--surface-1);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-icon {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-accent);
  background: #000;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   FOOTER PASS
   ========================================================================== */
.arcade-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #08090C;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.contract-code {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--gold-accent);
  cursor: pointer;
  transition: all 0.15s ease;
}

.contract-code:hover {
  border-color: var(--gold-accent);
  background: var(--surface-2);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--gold-accent);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .header-inner {
    padding: 12px 16px;
  }

  .network-badge {
    display: none;
  }

  .cabinets-grid {
    grid-template-columns: 1fr;
  }

  .arcade-main {
    padding: 28px 16px 48px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
  }
}

@media (max-width: 600px) {
  .brand-sub {
    display: none;
  }

  .coin-slot-label {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .cab-marquee {
    padding: 16px 18px 12px;
  }

  .marquee-title {
    font-size: 1.7rem;
  }

  .cab-specs, .cab-control-deck {
    padding: 16px 18px;
  }
}
