/* RAF Wrestling — Polymarket Dark Luxury Theme */
:root {
  --bg: #0c0e13;
  --bg2: #0c0e13;
  --panel: #1d1f26;
  --panel2: #262932;
  --panel2-hover: #2f333e;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.13);
  --text: #f0efeb;
  --muted: #8a8f98;
  --accent: #3e61f6;
  --accent-hover: #4f70f8;
  --blue: #3e61f6;
  --blue2: #4f70f8;
  --blue-tint: rgba(62, 97, 246, 0.16);
  --blue-txt: #93befa;
  --win: #4ade80;
  --win-tint: #22302a;
  --win-txt: #4ade80;
  --red: #f87171;
  --red2: #f87171;
  --red-tint: #341f23;
  --red-txt: #f87171;
  --gold: #8a8f98;
  --gold-tint: #262932;
  --gold-txt: #f0efeb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0c0e13;
  color: #f0efeb;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

a[style*="var(--red2)"] {
  color: #4f70f8 !important;
}

a[style*="var(--red2)"]:hover {
  color: #f0efeb !important;
}

.wrap {
  max-width: 1280px;
  padding: 0 20px;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f0efeb;
}

h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 28px 0 12px;
  color: #f0efeb;
}

.lede {
  color: #8a8f98;
  font-size: 15px;
  line-height: 1.55;
}

/* Frosted Sticky Header — Desktop Single Row (56px) */
header.top {
  background: rgba(12, 14, 19, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}

header.top .wrap {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 18px;
}

header.top .logo {
  order: 1;
  flex: none;
  display: flex;
  align-items: center;
}

header.top .logo img {
  height: 21px;
  width: auto;
  display: block;
}

header.top nav.main {
  order: 2;
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #8a8f98;
  min-width: 0;
}

header.top nav.main a {
  display: flex;
  align-items: center;
  padding: 0 2px;
  position: relative;
  white-space: nowrap;
  color: inherit;
  transition: color 0.15s;
}

header.top nav.main a:hover {
  color: #f0efeb;
}

header.top nav.main a.on {
  color: #f0efeb;
  font-weight: 600;
}

header.top nav.main a.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #f0efeb;
  border-radius: 2px 2px 0 0;
}

header.top .nav-acct {
  order: 3;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #3e61f6;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s;
}

header.top .nav-acct:hover {
  background: #4f70f8;
  color: #ffffff;
}

header.top .nav-acct.signed {
  background: #262932;
  border-color: rgba(255, 255, 255, 0.07);
  color: #f0efeb;
}

header.top .nav-acct.signed:hover {
  background: #2f333e;
  border-color: rgba(255, 255, 255, 0.13);
}

header.top .nav-acct .acct-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
  flex: none;
}

header.top .nav-acct.signed .acct-dot {
  background: #4ade80;
  box-shadow: none;
}

.burger {
  display: none !important;
}

.m-sep {
  display: none !important;
}

@media (max-width: 1100px) {
  header.top .wrap {
    gap: 12px;
  }
  header.top .logo img {
    height: 19px;
  }
  header.top nav.main {
    gap: 11px;
    font-size: 13px;
  }
}

/* Mobile 2-Tier Header (<=920px, <=96px total height) */
@media (max-width: 920px) {
  header.top .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding: 0;
    gap: 0;
  }
  header.top .logo {
    order: 1;
    padding: 12px 0 11px 16px;
  }
  header.top .logo img {
    height: 19px;
    width: auto;
  }
  header.top .nav-acct {
    order: 2;
    margin: 10px 16px 10px auto;
    height: 32px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  header.top nav.main {
    order: 3;
    flex-basis: 100%;
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    width: 100%;
    height: 42px;
    max-height: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px !important;
    gap: 18px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scrollbar-width: none;
  }
  header.top nav.main::-webkit-scrollbar {
    display: none;
  }
  header.top nav.main a {
    display: flex;
    align-items: center;
    flex: none;
    border-bottom: 0 !important;
    padding: 0 2px !important;
    font-size: 13.5px !important;
    font-weight: 600;
    color: #8a8f98 !important;
    letter-spacing: -0.005em;
  }
  header.top nav.main a.on {
    color: #f0efeb !important;
  }
  header.top nav.main a.on::after {
    bottom: 0;
    height: 2px;
    background: #f0efeb;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }
  body {
    padding-bottom: 70px;
  }
}

/* Flat Elevated Surfaces & Hairline Dividers (Zero Gradients, Zero Glows) */
.card {
  background: #1d1f26;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow: none;
}

.card .hd {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.card .hd a.more,
a.nxt-all {
  color: #4f70f8;
  font-weight: 600;
}

.card .hd a.more:hover,
a.nxt-all:hover {
  color: #f0efeb;
}

.hmain > section.card,
.hmain > .card,
.hside .card {
  margin-bottom: 12px;
}

.grid,
.duo {
  gap: 12px;
}

.home > section,
.home > .duo,
.home > h2 {
  margin-bottom: 16px;
}

.hero,
.feat .feat-top {
  background: #1d1f26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero .k,
.feat-info .k,
.nxt-hd .k {
  color: #8a8f98;
  font-weight: 600;
}

.hero p,
.feat-info p,
.bio,
.prose,
.faq p,
.watch,
.localtz {
  color: #c4c7ce;
}

.hhero {
  background: #0c0e13;
  padding-bottom: 8px;
}

.phero {
  background: #0c0e13;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ptabs {
  background: #0c0e13;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ptabs a {
  color: #8a8f98;
  border-bottom: 2px solid transparent;
}

.ptabs a:hover {
  color: #f0efeb;
}

.ptabs a.on {
  color: #f0efeb;
  border-bottom-color: #f0efeb;
  font-weight: 600;
}

/* Portrait Cutouts & Fighter Matchup Visuals (Clean against #1d1f26) */
.pcut:before {
  background: #262932;
  opacity: 0.35;
}

.pcut .flagbg {
  background-color: #1d1f26;
  opacity: 0.18;
}

.pcut .flagbg:before,
.pcut .flagbg:after {
  display: none;
}

.pcut .ph {
  background: #262932;
}

.pcut img {
  filter: none;
}

.feat-vs .pcut:before {
  display: none;
}

.feat-vs .pcut .flagbg {
  left: 0;
  right: 0;
  clip-path: none;
  background-color: transparent;
  opacity: 0.14;
}

.ccard {
  background: #1d1f26;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow: none;
  transition: border-color 0.15s;
}

.ccard:hover {
  border-color: rgba(255, 255, 255, 0.13);
  transform: none;
}

.ccard-img {
  background: #16181e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cflag {
  opacity: 0.15;
}

.cflag:before,
.cflag:after {
  display: none;
}

.ccard-img img {
  filter: none;
}

.prof .body {
  background: #1d1f26;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pstats {
  background: #1d1f26;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.pstats .t {
  background: #262932;
  color: #f0efeb;
}

.pinfo {
  border-left-color: rgba(255, 255, 255, 0.07);
}

.times {
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.times div {
  background: #1d1f26;
}

.times span {
  color: #8a8f98;
}

.bout,
.ev,
table.rk td,
table.rk th,
table.stt td,
table.stt th,
table.hist td,
table.hist th,
.watch,
.promo,
.nxt-list li,
table.champt td,
table.tot td,
.faq details {
  border-color: rgba(255, 255, 255, 0.07);
}

table.stt tr.tot td {
  background: #262932;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.bout,
.ev {
  transition: background 0.15s;
}

a.ev:hover,
.rail li a:hover,
ul.champs li a:hover {
  background: #262932;
}

.hs,
.av,
.rail li img,
.rail li .ph,
.nxt-list img,
.nxt-list .ph,
ul.champs img,
ul.champs .ph,
table.champt img,
table.champt .ph {
  background: #262932;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pmeta .fl {
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.rail select {
  background: #1d1f26;
  color: #f0efeb;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.rail select:focus {
  outline: none;
  border-color: #3e61f6;
}

.dot {
  background: #4ade80;
  box-shadow: none;
}

/* Restrained Tags & Semantic States */
.tag {
  background: #262932;
  color: #f0efeb;
  border-radius: 6px;
  padding: 2px 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tag.win {
  background: #22302a;
  color: #4ade80;
}

.tag.title {
  background: #262932;
  color: #f0efeb;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.tag.main {
  background: #262932;
  color: #f0efeb;
}

.tag.mma {
  background: #262932;
  color: #8a8f98;
}

.tag.live {
  background: #341f23;
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.22);
  animation: none;
}

.livebar {
  background: #341f23;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 10px;
}

.livebar .dotl {
  background: #f87171;
  box-shadow: none;
  animation: none;
}

.pwr {
  background: #22302a;
  color: #4ade80;
}

table.hist .res.w,
table.stt td.w,
table.stt td.better,
table.tot .better,
.wl.w {
  color: #4ade80;
}

table.hist .res.l,
table.stt td.lo,
.wl.l {
  color: #f87171;
}

/* Primary Action Pill & Controls */
.cta-pill {
  display: inline-block;
  background: #3e61f6;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: none;
  transition: background 0.15s;
}

.cta-pill:hover {
  background: #4f70f8;
  color: #ffffff !important;
}

a.pv,
.watch a {
  color: #4f70f8;
  font-weight: 600;
}

a.pv:hover,
.watch a:hover {
  color: #f0efeb;
}

.promo a {
  color: #f0efeb;
}

.promo a:hover {
  color: #4f70f8;
}

.callout {
  background: #1d1f26;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid #3e61f6;
  border-radius: 12px;
  color: #c4c7ce;
}

.pills a,
.langbar a,
.tbl-ctrl input,
.tbl-ctrl select {
  background: #262932;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #f0efeb;
  box-shadow: none;
}

.pills a,
.langbar a {
  border-radius: 999px;
  color: #8a8f98;
}

.pills a:hover,
.langbar a:hover,
.langbar a.on {
  background: #2f333e;
  border-color: rgba(255, 255, 255, 0.13);
  color: #f0efeb;
}

.tbl-ctrl input:focus,
.tbl-ctrl select:focus {
  outline: none;
  border-color: #3e61f6;
  box-shadow: none;
}

.arrows button {
  background: #262932;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f0efeb;
  box-shadow: none;
}

.arrows button:hover {
  background: #2f333e;
  border-color: rgba(255, 255, 255, 0.13);
}

dl.facts {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

dl.facts div {
  background: #1d1f26;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 44px;
  color: #8a8f98;
}

footer a {
  color: #c4c7ce;
}

footer a:hover {
  color: #f0efeb;
}

footer .langs {
  border-top-color: rgba(255, 255, 255, 0.07);
}

/* Mobile Bottom Tab Bar (<=768px) */
.pm-bnav {
  display: none;
}

@media (max-width: 768px) {
  .pm-bnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #1d1f26;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
    transition: transform 0.22s ease;
  }
  body.pm-bnav-hidden .pm-bnav {
    transform: translateY(105%);
  }
  .pm-bnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8a8f98;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
  }
  .pm-bnav a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .pm-bnav a.on {
    color: #f0efeb;
  }
  .pm-bnav a.on svg {
    stroke: #3e61f6;
  }
}
