/* ==========================================================================
   POLMEXBOT PRODUCTION — Arcade Games Layer (/spin, /duel, /bonus)
   Celestial obsidian & liquid-gold casino floor, Space Grotesk headings,
   brushed-gold CTAs (replacing orange buttons), and mobile polish.
   ========================================================================== */

:root {
  --pmx-gold: #f0c64f;
  --pmx-gold-hi: #fae39e;
  --pmx-gold-line: rgba(240, 198, 79, 0.34);
  --pmx-hair: rgba(235, 214, 170, 0.14);
}

body.pmx-arc-v2 {
  background:
    radial-gradient(1000px 600px at 14% -6%, rgba(240, 198, 79, 0.15), transparent 62%),
    radial-gradient(860px 640px at 90% 14%, rgba(34, 58, 108, 0.24), transparent 64%),
    radial-gradient(860px 620px at 50% 108%, rgba(168, 118, 34, 0.15), transparent 62%),
    linear-gradient(175deg, #0d0c0f 0%, #12100d 46%, #0c0c10 100%) !important;
  position: relative;
}

body.pmx-arc-v2 .ap-bg {
  display: none !important;
}

.pmx-app-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 44vw at 48% -12vh, rgba(240, 198, 79, 0.11), transparent 70%),
    radial-gradient(48vw 48vw at 96% 96%, rgba(44, 78, 138, 0.15), transparent 70%);
}

#pmxSpaceCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

body.pmx-arc-v2 > nav,
body.pmx-arc-v2 > header {
  position: sticky;
  top: 0;
  z-index: 200 !important;
}

body.pmx-arc-v2 > main,
body.pmx-arc-v2 > footer {
  position: relative;
  z-index: 2;
}

/* Display typography upgrade -> Space Grotesk */
body.pmx-arc-v2 .ap-brand b,
body.pmx-arc-v2 .ap-links a,
body.pmx-arc-v2 .ap-games > summary,
body.pmx-arc-v2 .ap-hero h1,
body.pmx-arc-v2 .ap-panel h2,
body.pmx-arc-v2 .ap-nav-cta,
body.pmx-arc-v2 .ap-btn,
body.pmx-arc-v2 .ap-crosslink b,
body.pmx-arc-v2 .ap-segmented button,
body.pmx-arc-v2 .ap-direction,
body.pmx-arc-v2 .ap-fighter-name {
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

body.pmx-arc-v2 .ap-nav {
  background: linear-gradient(180deg, rgba(24, 20, 15, 0.88), rgba(14, 13, 15, 0.94)) !important;
  border-bottom: 1px solid rgba(240, 198, 79, 0.26) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
}

body.pmx-arc-v2 .ap-brand b {
  background: linear-gradient(125deg, #fbf0ce 0%, #f0c64f 52%, #cf9224 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

body.pmx-arc-v2 .ap-brand small {
  color: var(--pmx-gold-hi) !important;
  opacity: 0.85;
}

/* Brushed gold primary CTA buttons (replacing loud orange) */
body.pmx-arc-v2 .ap-nav-cta,
body.pmx-arc-v2 .ap-btn:not(.secondary):not(.green):not(.red) {
  background: linear-gradient(122deg, #faecc4 0%, #f0c64f 44%, #d69828 88%) !important;
  color: #181207 !important;
  border: 1px solid rgba(255, 246, 218, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 26px -10px rgba(240, 198, 79, 0.72) !important;
  font-weight: 700 !important;
}

body.pmx-arc-v2 .ap-nav-cta:hover,
body.pmx-arc-v2 .ap-btn:not(.secondary):not(.green):not(.red):hover {
  filter: brightness(1.06) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 14px 30px -10px rgba(240, 198, 79, 0.88) !important;
}

body.pmx-arc-v2 .ap-stage {
  background: linear-gradient(166deg, rgba(36, 30, 21, 0.92) 0%, rgba(15, 14, 17, 0.96) 100%) !important;
  border: 1px solid rgba(240, 198, 79, 0.36) !important;
  border-top-color: rgba(250, 227, 158, 0.56) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 218, 0.12),
    0 26px 70px -24px rgba(0, 0, 0, 0.92),
    0 0 44px -18px rgba(240, 198, 79, 0.25) !important;
}

body.pmx-arc-v2 .ap-panel,
body.pmx-arc-v2 .ap-crosslink {
  background: linear-gradient(166deg, rgba(28, 24, 18, 0.90) 0%, rgba(14, 13, 16, 0.96) 100%) !important;
  border: 1px solid rgba(240, 198, 79, 0.26) !important;
  border-top-color: rgba(250, 227, 158, 0.42) !important;
}

body.pmx-arc-v2 .ap-crosslink:hover {
  border-color: rgba(250, 227, 158, 0.62) !important;
}

body.pmx-arc-v2 .ap-burger {
  background: rgba(24, 21, 17, 0.90) !important;
  border: 1px solid rgba(240, 198, 79, 0.40) !important;
}

body.pmx-arc-v2 .ap-mobile {
  background: rgba(16, 14, 14, 0.96);
  border-top: 1px solid rgba(240, 198, 79, 0.22);
  border-radius: 0 0 16px 16px;
  padding: 10px 8px 14px;
}

body.pmx-arc-v2 .ap-footer {
  border-top: 1px solid rgba(240, 198, 79, 0.20);
}

/* Show ALL top-level menu items cleanly on PC (>=1060px) */
@media (min-width: 1060px) {
  body.pmx-arc-v2 .ap-wrap {
    width: min(1260px, calc(100% - 28px));
  }
  body.pmx-arc-v2 .ap-nav-row {
    gap: 10px;
  }
  body.pmx-arc-v2 .ap-links {
    gap: 2px;
    flex-wrap: nowrap;
  }
  body.pmx-arc-v2 .ap-links a,
  body.pmx-arc-v2 .ap-links summary {
    padding: 7px 8px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  body.pmx-arc-v2 .ap-nav-cta {
    padding: 9px 15px !important;
    font-size: 13px !important;
  }
}
@media (min-width: 1060px) and (max-width: 1280px) {
  body.pmx-arc-v2 .ap-links a,
  body.pmx-arc-v2 .ap-links summary {
    padding: 6px 6px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 1059px) {
  body.pmx-arc-v2 .ap-links { display: none !important; }
  body.pmx-arc-v2 .ap-burger { display: block !important; }
}
