/* ==========================================================================
   POLMEXBOT PRODUCTION — Markets Desks & Tools Layer
   Applies to: /politics, /politics/:slug, /esports, /esports/:slug,
               /uefa, /uefa/:slug, /live, /calculator, /replay
   Celestial obsidian & liquid-gold identity, zero grid squares, zero aurora
   blobs, Space Grotesk display typography, and mobile-first ergonomics.
   ========================================================================== */

:root {
  --pmx-gold: #f0c64f;
  --pmx-gold-hi: #fae39e;
  --pmx-gold-deep: #cf9224;
  --pmx-gold-line: rgba(240, 198, 79, 0.34);
  --pmx-hair: rgba(235, 214, 170, 0.14);
  --pmx-ink: #fbf8f1;
  --pmx-ink-2: #d3c6ae;
  --pmx-ink-3: #9d8f76;
  --pmx-up: #34e08a;
  --pmx-down: #f45872;
}

body.pmx-desk-v2 {
  --ink: #0c0c10;
  --ink-2: #141210;
  --panel: rgba(24, 21, 17, 0.88);
  --panel-2: #1f1b15;
  --hair: rgba(235, 214, 170, 0.14);
  --hair-2: rgba(240, 198, 79, 0.34);
  --t-hi: #fbf8f1;
  --t: #e8dfd0;
  --t-mid: #cfc3ac;
  --t-low: #9a8d76;
  --amber: #f0c64f;
  --amber-hi: #fae39e;
  --up: #34e08a;
  --down: #f45872;
  background:
    radial-gradient(1000px 600px at 14% -6%, rgba(240, 198, 79, 0.14), 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.14), transparent 62%),
    linear-gradient(175deg, #0d0c0f 0%, #12100d 46%, #0c0c10 100%) !important;
  color: var(--t) !important;
  overflow-x: hidden !important;
  position: relative;
}

body.pmx-desk-v2::before,
body.pmx-desk-v2 #k2-aurora,
body.pmx-desk-v2 #k2-stars,
body.pmx-desk-v2 #k2-glow {
  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.10), 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-desk-v2 > nav,
body.pmx-desk-v2 > header {
  position: sticky;
  top: 0;
  z-index: 200 !important;
}

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

body.pmx-desk-v2 .nav details[open] > .markets-dropdown,
body.pmx-desk-v2 .nav details[open] > .games-dropdown {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px;
}

body.pmx-desk-v2 .nav .nav-r .markets-dropdown a,
body.pmx-desk-v2 .nav .nav-r .markets-dropdown a.l,
body.pmx-desk-v2 .nav .nav-r .games-dropdown a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  border-radius: 9px !important;
  padding: 9px 12px !important;
}

body.pmx-desk-v2 h1,
body.pmx-desk-v2 h2,
body.pmx-desk-v2 h3,
body.pmx-desk-v2 h4,
body.pmx-desk-v2 .brand,
body.pmx-desk-v2 .r-p b,
body.pmx-desk-v2 .stat b,
body.pmx-desk-v2 .res-big,
body.pmx-desk-v2 .periods b,
body.pmx-desk-v2 .be b,
body.pmx-desk-v2 .btn-go {
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

::selection {
  background: rgba(240, 198, 79, 0.30);
  color: #fff;
}

/* ── Navigation Bar ──────────────────────────────────────────────────────── */
body.pmx-desk-v2 .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;
  box-shadow: inset 0 1px 0 rgba(255, 246, 218, 0.08), 0 14px 36px -20px rgba(0, 0, 0, 0.88) !important;
}

body.pmx-desk-v2 .brand {
  color: var(--pmx-ink) !important;
  font-weight: 700 !important;
}

body.pmx-desk-v2 .nav-r .l {
  border-radius: 999px !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 600 !important;
  color: var(--pmx-ink-2) !important;
  transition: background 0.16s ease, color 0.16s ease;
}

body.pmx-desk-v2 .nav-r .l:hover {
  background: rgba(240, 198, 79, 0.12) !important;
  color: #ffffff !important;
}

body.pmx-desk-v2 .nav-r .l[aria-current="page"] {
  background: rgba(240, 198, 79, 0.14) !important;
  border: 1px solid rgba(240, 198, 79, 0.36);
  color: var(--pmx-gold-hi) !important;
}

/* Always keep Blog visible in desktop top menu (>=980px) */
@media (min-width: 980px) {
  body.pmx-desk-v2 .nav-r .l.opt[href="/blog"] {
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* Brushed-gold primary CTAs (replacing loud orange) */
body.pmx-desk-v2 .btn-go,
body.pmx-desk-v2 .rp-btn.play {
  background: linear-gradient(122deg, #faecc4 0%, #f0c64f 44%, #d69828 88%) !important;
  color: #181207 !important;
  border: 1px solid rgba(255, 246, 218, 0.68) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 24px -10px rgba(240, 198, 79, 0.72) !important;
}

body.pmx-desk-v2 .btn-go:hover,
body.pmx-desk-v2 .rp-btn.play:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px);
  color: #181207 !important;
}

/* Mobile burger & dropdown menu on politics/esports/uefa/live/tools */
body.pmx-desk-v2 .nav-mbtn {
  background: rgba(24, 21, 17, 0.90) !important;
  border: 1px solid rgba(240, 198, 79, 0.38) !important;
  border-radius: 12px !important;
  color: var(--pmx-gold-hi) !important;
}

body.pmx-desk-v2 .nav-mmenu {
  background: linear-gradient(166deg, rgba(26, 22, 17, 0.98), rgba(13, 12, 15, 0.99)) !important;
  border-bottom: 1px solid rgba(240, 198, 79, 0.30) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92) !important;
}

body.pmx-desk-v2 .nav-mmenu a {
  border-radius: 10px !important;
  color: var(--pmx-ink-2) !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 600 !important;
}

body.pmx-desk-v2 .nav-mmenu a[aria-current="page"] {
  background: rgba(240, 198, 79, 0.14) !important;
  color: var(--pmx-gold-hi) !important;
}

/* ── Hero Eyebrow & Section Rhythm ───────────────────────────────────────── */
body.pmx-desk-v2 .cap {
  color: var(--pmx-gold-hi) !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 700 !important;
}

body.pmx-desk-v2 .cap::before {
  background: var(--pmx-gold) !important;
}

body.pmx-desk-v2 .cap a:hover,
body.pmx-desk-v2 .meta a:hover,
body.pmx-desk-v2 .go:hover,
body.pmx-desk-v2 .rp-more:hover {
  color: #ffffff !important;
}

/* Kill any residual cyan inline links or live bot-card borders */
body.pmx-desk-v2 .go,
body.pmx-desk-v2 .mcard-go,
body.pmx-desk-v2 .fld a,
body.pmx-desk-v2 .rp-more,
body.pmx-desk-v2 main a[style*="#22e8f0"],
body.pmx-desk-v2 main a[style*="#7ff3f7"],
body.pmx-desk-v2 .m-go {
  color: var(--pmx-gold-hi) !important;
}

body.pmx-desk-v2 .bot-card,
body.pmx-desk-v2 .bcard,
body.pmx-desk-v2 .trader-card,
body.pmx-desk-v2 .tcard,
body.pmx-desk-v2 .lv-bot,
body.pmx-desk-v2 .lv-kpi {
  background: linear-gradient(166deg, rgba(30, 26, 20, 0.90), rgba(14, 13, 16, 0.96)) !important;
  border: 1px solid rgba(240, 198, 79, 0.28) !important;
  border-top-color: rgba(250, 227, 158, 0.44) !important;
  box-shadow: inset 0 1px 0 rgba(255, 246, 218, 0.08), 0 16px 36px -20px rgba(0, 0, 0, 0.88) !important;
}

body.pmx-desk-v2 .lv-row,
body.pmx-desk-v2 .lv-table td {
  background: rgba(18, 16, 15, 0.84) !important;
  border-color: rgba(240, 198, 79, 0.18) !important;
}

body.pmx-desk-v2 .lv-wr .bar i {
  background: linear-gradient(90deg, #d69828, #fae39e) !important;
}

body.pmx-desk-v2 .lv-table .w a:hover {
  color: var(--pmx-gold-hi) !important;
}

body.pmx-desk-v2 .lv-chip {
  border-color: rgba(240, 198, 79, 0.42) !important;
  background: rgba(240, 198, 79, 0.11) !important;
  color: var(--pmx-gold-hi) !important;
}

body.pmx-desk-v2 h1 {
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  color: var(--pmx-ink) !important;
}

/* ── Specular Obsidian-Gold Panels, Market Cards & Hairline Grids ────────── */
body.pmx-desk-v2 .panel,
body.pmx-desk-v2 .hg,
body.pmx-desk-v2 .mcard,
body.pmx-desk-v2 .card,
body.pmx-desk-v2 .mc,
body.pmx-desk-v2 .live-card,
body.pmx-desk-v2 .rp-list,
body.pmx-desk-v2 .rp-view {
  background: linear-gradient(166deg, rgba(34, 29, 22, 0.88) 0%, rgba(15, 14, 17, 0.95) 100%) !important;
  border: 1px solid rgba(240, 198, 79, 0.28) !important;
  border-top-color: rgba(250, 227, 158, 0.44) !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 218, 0.09),
    0 20px 48px -24px rgba(0, 0, 0, 0.90),
    0 0 32px -18px rgba(240, 198, 79, 0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.pmx-desk-v2 .mcard:hover,
body.pmx-desk-v2 .card:hover,
body.pmx-desk-v2 .mc:hover {
  border-color: rgba(250, 227, 158, 0.56) !important;
  transform: translateY(-2px);
}

body.pmx-desk-v2 .hg > * {
  background: rgba(16, 15, 17, 0.88) !important;
}

body.pmx-desk-v2 .panel-h {
  background: linear-gradient(180deg, rgba(240, 198, 79, 0.08), rgba(18, 16, 14, 0.42)) !important;
  border-bottom: 1px solid var(--pmx-hair) !important;
  border-radius: 17px 17px 0 0 !important;
}

body.pmx-desk-v2 .panel-h h3 {
  color: var(--pmx-gold-hi) !important;
  font-weight: 700 !important;
}

body.pmx-desk-v2 .rule {
  background: rgba(240, 198, 79, 0.07) !important;
  border: 1px solid rgba(240, 198, 79, 0.26) !important;
  border-left: 3px solid var(--pmx-gold) !important;
  border-radius: 14px !important;
}

body.pmx-desk-v2 .tip {
  background: rgba(20, 18, 15, 0.96) !important;
  border: 1px solid rgba(240, 198, 79, 0.40) !important;
}

/* ── Calculator & Replay Controls — Pure Liquid Gold (Zero Cyan!) ────────── */
body.pmx-desk-v2 input[type="range"]::-webkit-slider-thumb {
  background: linear-gradient(135deg, #fff2c9, #f0c64f) !important;
  border: 3px solid #14120e !important;
  box-shadow: 0 0 0 1px rgba(240, 198, 79, 0.8), 0 0 12px rgba(240, 198, 79, 0.45) !important;
}

body.pmx-desk-v2 input[type="range"]::-moz-range-thumb {
  background: linear-gradient(135deg, #fff2c9, #f0c64f) !important;
  border: 3px solid #14120e !important;
  box-shadow: 0 0 0 1px rgba(240, 198, 79, 0.8) !important;
}

body.pmx-desk-v2 .seg {
  background: rgba(12, 11, 12, 0.78) !important;
  border: 1px solid rgba(240, 198, 79, 0.22) !important;
  border-radius: 12px !important;
  padding: 3px !important;
}

body.pmx-desk-v2 .seg button {
  border-radius: 9px !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 600 !important;
}

body.pmx-desk-v2 .seg button[aria-pressed="true"] {
  background: linear-gradient(122deg, #faecc4 0%, #f0c64f 45%, #d69828 100%) !important;
  color: #181207 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px -8px rgba(240, 198, 79, 0.72) !important;
}

body.pmx-desk-v2 .seg button[aria-pressed="true"] small {
  color: rgba(24, 18, 7, 0.78) !important;
}

body.pmx-desk-v2 .rp-item[aria-current="true"],
body.pmx-desk-v2 .coin.target {
  background: rgba(240, 198, 79, 0.11) !important;
  box-shadow: inset 3px 0 0 var(--pmx-gold) !important;
}

body.pmx-desk-v2 .clock .prog {
  background: linear-gradient(90deg, rgba(240, 198, 79, 0.45), #fae39e) !important;
}

body.pmx-desk-v2 .clock .tick.on::after {
  background: var(--pmx-gold-hi) !important;
  box-shadow: 0 0 0 3px rgba(240, 198, 79, 0.24) !important;
}

body.pmx-desk-v2 .rp-btn {
  background: rgba(22, 19, 16, 0.88) !important;
  border-color: rgba(240, 198, 79, 0.28) !important;
  border-radius: 10px !important;
}

body.pmx-desk-v2 .rp-btn:hover:not(:disabled) {
  border-color: rgba(250, 227, 158, 0.60) !important;
  color: var(--pmx-gold-hi) !important;
}

body.pmx-desk-v2 .decide {
  background: rgba(18, 16, 15, 0.86) !important;
  border-color: rgba(240, 198, 79, 0.28) !important;
  border-radius: 14px !important;
}

body.pmx-desk-v2 footer,
body.pmx-desk-v2 .foot {
  border-top: 1px solid rgba(240, 198, 79, 0.18) !important;
}

body.pmx-desk-v2 footer a,
body.pmx-desk-v2 .foot a {
  color: var(--pmx-gold-hi) !important;
}

/* ── Mobile Polish (<=760px) ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  body.pmx-desk-v2 .hero {
    padding: 2.2rem 0 0.8rem !important;
  }
  body.pmx-desk-v2 .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.pmx-desk-v2 .board,
  body.pmx-desk-v2 .seats,
  body.pmx-desk-v2 .paths {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.pmx-desk-v2 .runner:first-child .r-p b {
    font-size: 32px !important;
  }
  body.pmx-desk-v2 .periods {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.pmx-desk-v2 .seg {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  body.pmx-desk-v2 .seg button {
    flex: 1 1 auto !important;
    min-width: 78px;
  }
}

/* Show ALL top-level menu items on PC (>=1060px) in one balanced row */
@media (min-width: 1060px) {
  body.pmx-desk-v2 .nav {
    max-width: 1260px !important;
    width: min(1260px, calc(100% - 24px)) !important;
    margin: 14px auto 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(240, 198, 79, 0.30) !important;
    padding: 8px 12px 8px 16px !important;
    gap: 8px !important;
  }
  body.pmx-desk-v2 .nav-r {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    flex-wrap: nowrap !important;
  }
  body.pmx-desk-v2 .nav-r .l.opt,
  body.pmx-desk-v2 .nav-r .l.opt[href="/blog"],
  body.pmx-desk-v2 .nav-r .l.opt[href="/signals"],
  body.pmx-desk-v2 .nav-r .l.opt[href="/calculator"],
  body.pmx-desk-v2 .nav-r .l.opt[href="/replay"],
  body.pmx-desk-v2 .nav-r details.games-nav {
    display: inline-flex !important;
    align-items: center !important;
  }
  body.pmx-desk-v2 .nav-r .l,
  body.pmx-desk-v2 .nav-r summary {
    font-size: 13px !important;
    padding: 7px 8px !important;
    white-space: nowrap !important;
  }
  body.pmx-desk-v2 .btn-go {
    height: 38px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    margin-left: 6px !important;
  }
}
@media (min-width: 1060px) and (max-width: 1280px) {
  body.pmx-desk-v2 .nav-r .l,
  body.pmx-desk-v2 .nav-r summary {
    font-size: 12px !important;
    padding: 6px 6px !important;
  }
}
