@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

/* =========================================================
   Challenger MU — cinematic glass / gold
   Replaces stretched MU sprites (let.webp, button_blue_*.webp)
   ========================================================= */

:root{
  --gold-100: #f7ecd8;
  --gold-300: #d8c09a;
  --gold-500: #c4a06a;
  --gold-700: #8a6230;
  --gold-900: #4a3018;
  --ink-000: #f6f1e8;
  --ink-100: #ddd6c8;
  --ink-300: #b8af9f;
  --ink-500: #8a8276;
  --line-gold: rgba(212, 176, 120, .38);
  --line-gold-soft: rgba(212, 176, 120, .16);
  --text-metal: linear-gradient(180deg, #fff6e6 0%, #e8c98a 42%, #c4a06a 72%, #8a6230 100%);
  --mu-surface-bg: linear-gradient(165deg, rgba(22, 18, 14, .88) 0%, rgba(10, 8, 7, .94) 55%, rgba(6, 5, 4, .96) 100%);
  --mu-cut: 0px;
  --mu-clip: none;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --btn-gold: linear-gradient(180deg, #f4e2c0 0%, #e0c088 38%, #c49652 70%, #9a6e32 100%);
  --btn-gold-hover: linear-gradient(180deg, #fff0d4 0%, #ebcc96 40%, #d0a45c 72%, #b07c38 100%);
  --btn-ghost: linear-gradient(180deg, rgba(28, 22, 16, .92), rgba(10, 8, 6, .96));
}

/* Smooth interpolation — no pixel sprites */
html{
  --cur-default: auto;
  --cur-pointer: pointer;
  --cur-text: text;
  --cur-help: help;
  --cur-not-allowed: not-allowed;
  --cur-wait: wait;
  --cur-move: move;
  --cur-crosshair: crosshair;
  --cur-col-resize: col-resize;
  --cur-row-resize: row-resize;
}
img:not(.hof-guild-mark){
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.site-bg-video{
  filter: saturate(1.08) contrast(1.06) brightness(.88);
  transform: scale(1.04) translateZ(0);
}
.site-bg-dim{
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(60, 42, 18, .28), transparent 58%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(0, 0, 0, .72), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.55) 42%, rgba(4,3,2,.82) 100%);
}

/* ---------- Cards: glass, not clipped sprites ---------- */
.mu-frame,
.mu-card,
.auth-wrap,
.hof-panel,
.feature-card,
.hero-stats,
.package-card__frame,
.package-card,
.rk-panel,
.news-card,
.news-detail-card,
.dl-launcher-card,
.dl-main-card,
.dl-section,
.db-side,
.db-main,
.db-card,
.dc-panel,
.guide-card,
.guide-cat,
.contact-card,
.legal-article,
.events-card,
.shop-panel,
.mu-bar,
.hof-row,
.feature-rail,
.news-strip{
  clip-path: none !important;
  filter: none !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--line-gold) !important;
  border-bottom: 1px solid var(--line-gold) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 28%),
    var(--mu-surface-bg) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 220, .08),
    0 18px 48px rgba(0, 0, 0, .45) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  padding-top: unset;
}
.mu-frame::before,
.mu-frame::after,
.mu-card::before,
.mu-card::after,
.auth-wrap::before,
.auth-wrap::after,
.hof-panel::before,
.hof-panel::after,
.feature-card::before,
.feature-card::after,
.hero-stats::before,
.hero-stats::after,
.package-card::before,
.package-card::after,
.rk-panel::before,
.rk-panel::after,
.news-card::before,
.news-card::after,
.news-detail-card::before,
.news-detail-card::after,
.dl-launcher-card::before,
.dl-launcher-card::after,
.dl-main-card::before,
.dl-main-card::after,
.db-side::before,
.db-side::after,
.db-main::before,
.db-main::after,
.dc-panel::before,
.dc-panel::after,
.feature-rail::before,
.feature-rail::after,
.news-strip::before,
.news-strip::after{
  display: block !important;
  left: 18px !important;
  right: 18px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(232, 201, 138, .55), transparent) !important;
  opacity: 1 !important;
  filter: none !important;
  z-index: 3;
}
.mu-frame::before,
.mu-card::before,
.auth-wrap::before,
.hof-panel::before,
.feature-card::before,
.hero-stats::before,
.package-card::before,
.rk-panel::before,
.news-card::before,
.news-detail-card::before,
.dl-launcher-card::before,
.dl-main-card::before,
.db-side::before,
.db-main::before,
.dc-panel::before,
.feature-rail::before,
.news-strip::before{ top: 0 !important; }
.mu-frame::after,
.mu-card::after,
.auth-wrap::after,
.hof-panel::after,
.feature-card::after,
.hero-stats::after,
.package-card::after,
.rk-panel::after,
.news-card::after,
.news-detail-card::after,
.dl-launcher-card::after,
.dl-main-card::after,
.db-side::after,
.db-main::after,
.dc-panel::after,
.feature-rail::after,
.news-strip::after{ bottom: 0 !important; top: auto !important; }

.auth-wrap,
.hof-panel,
.feature-card,
.hero-stats,
.rk-panel,
.news-card,
.dl-launcher-card,
.dl-main-card{
  padding-top: 26px;
  padding-bottom: 26px;
}

.hof-row{
  border-radius: var(--radius-md) !important;
  padding-top: 10px;
}

/* ---------- Buttons: metallic gold, never sprites ---------- */
.btn,
.btn-blue,
.btn-gold,
.nav-pill,
.nav-pill-outline,
.hof-more,
.feature-rail__go,
.news-link,
.news-link.btn,
.auth-tab,
.rk-cats .tab-btn,
.action-btn,
.db-nav-item,
.db-plugin-nav .db-nav-item,
.db-acc-btn,
.shop-checkout-modal .cart-tabs .shop-nav-btn,
.shop-checkout-modal .checkout-button,
.shop-checkout-modal #process-payment-btn,
body.page-shop .package-card .action-btn{
  background-image: none !important;
  background-repeat: no-repeat;
  background-size: auto;
  background-color: transparent;
  border-radius: 999px !important;
  border: 1px solid rgba(232, 201, 138, .42) !important;
  color: #1a1208 !important;
  text-shadow: 0 1px 0 rgba(255, 248, 230, .45) !important;
  background: var(--btn-gold) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 8px 22px rgba(140, 90, 28, .32) !important;
  filter: none !important;
  letter-spacing: .12em;
  transition: transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease), background .18s !important;
}
.btn:hover,
.btn-blue:hover,
.btn-gold:hover,
.nav-pill:hover,
.hof-more:hover,
.feature-rail__item:hover .feature-rail__go,
.news-item:hover .news-link,
.auth-tab:hover,
.auth-tab.is-active,
.rk-cats .tab-btn:hover,
.rk-cats .tab-btn.active,
.action-btn:hover,
.action-btn:focus-visible,
.action-btn.is-hover,
.action-btn:active,
.db-nav-item:hover,
.db-nav-item.active,
.db-plugin-nav .db-nav-item:hover,
.db-acc-btn:hover,
.db-acc.is-open .db-acc-btn,
.shop-checkout-modal .cart-tabs .shop-nav-btn.active,
.shop-checkout-modal .cart-tabs .shop-nav-btn:hover,
.shop-checkout-modal .checkout-button:hover:not(:disabled),
.shop-checkout-modal #process-payment-btn:hover:not(:disabled),
body.page-shop .package-card .action-btn:hover,
body.page-shop .package-card .action-btn:focus-visible,
body.page-shop .package-card .action-btn.is-hover,
body.page-shop .package-card .action-btn:active,
.btn:focus,
.btn:focus-visible,
.btn:active,
.btn-blue:focus,
.btn-blue:focus-visible,
.btn-blue:active,
.btn-gold:focus-visible,
.nav-pill:focus,
.nav-pill:focus-visible,
.nav-pill:active{
  background-image: none !important;
  background: var(--btn-gold-hover) !important;
  color: #140e08 !important;
  filter: none !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 12px 28px rgba(180, 120, 40, .42) !important;
}

.nav-pill-outline,
.auth-tab:not(.is-active),
.rk-cats .tab-btn:not(.active),
.shop-checkout-modal .cart-tabs .shop-nav-btn:not(.active),
.db-nav-item:not(.active),
.db-acc-btn{
  background: var(--btn-ghost) !important;
  color: var(--gold-100) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.65) !important;
  border-color: rgba(212, 176, 120, .32) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px rgba(0,0,0,.28) !important;
}
.nav-pill-outline:hover,
.nav-pill-outline:focus,
.nav-pill-outline:focus-visible,
.nav-pill-outline:active,
.nav-pill-outline.active,
.auth-tab:not(.is-active):hover,
.rk-cats .tab-btn:not(.active):hover,
.shop-checkout-modal .cart-tabs .shop-nav-btn:not(.active):hover,
.db-nav-item:not(.active):hover,
.db-acc-btn:hover{
  background: rgba(212, 176, 120, .14) !important;
  color: #fff6e6 !important;
  border-color: rgba(232, 201, 138, .55) !important;
}

.btn{ width: 240px; height: 52px; }
.feature-rail__go{
  min-width: 138px;
  height: 38px;
  opacity: 1;
  font-size: 10px;
}
.news-link, .news-link.btn{
  min-width: 124px;
  height: 34px;
  font-size: 10px;
}
.hof-more{ height: 44px; }

/* ---------- Header ---------- */
.site-header{
  background: rgba(8, 6, 5, .55) !important;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid rgba(212, 176, 120, .18) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.site-header.is-scrolled{
  background: rgba(8, 6, 5, .88) !important;
  border-bottom-color: rgba(212, 176, 120, .28) !important;
}
.header-inner{ height: 68px; }
.brand{ gap: 12px; }
.brand-text{
  display: flex !important;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}
.brand-name{
  display: block !important;
  font-family: var(--font-deco), var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--gold-100);
}
.brand-sub{
  display: block !important;
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--gold-500);
  text-transform: uppercase;
}
.brand-mark{
  height: 46px;
  filter: drop-shadow(0 0 12px rgba(212, 176, 120, .45));
}
.nav-link{
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-300);
  border-radius: 999px;
  padding: 8px 14px;
}
.nav-link:hover{
  color: var(--gold-100);
  background-color: rgba(212, 176, 120, .1);
}
.nav-link.active{
  color: var(--gold-100);
  background: rgba(212, 176, 120, .12);
}

/* ---------- Hero ---------- */
.hero-eyebrow{
  color: var(--gold-300);
  letter-spacing: .32em;
  font-size: 12px;
}
.hero-stats{
  width: min(640px, 94vw);
  padding: 20px 28px !important;
  margin-top: 28px;
}
.hero-cta{ margin: 28px 0 8px; gap: 14px; }
.hero-online{
  background: var(--btn-ghost) !important;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
}

/* ---------- Feature rail as separate cards ---------- */
.feature-rail{
  gap: 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.feature-rail::before,
.feature-rail::after{ display: none !important; }
.feature-rail__item{
  min-height: 196px;
  padding: 32px 20px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%),
    var(--mu-surface-bg);
  box-shadow: inset 0 1px 0 rgba(255,244,220,.08), 0 16px 36px rgba(0,0,0,.35);
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.feature-rail__item + .feature-rail__item::before{ display: none; }
.feature-rail__item:hover{
  transform: translateY(-6px);
  border-color: rgba(232, 201, 138, .55);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212,176,120,.16), transparent 55%),
    var(--mu-surface-bg);
  box-shadow: 0 22px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(232,201,138,.2);
}

/* ---------- News ---------- */
.news-strip{
  gap: 12px;
  padding: 22px !important;
}
.news-item{
  clip-path: none !important;
  border-radius: var(--radius-md);
  border-color: rgba(212, 176, 120, .18);
  background: linear-gradient(90deg, rgba(28, 22, 16, .65), rgba(10, 8, 6, .5));
}
.news-item:hover{
  border-color: rgba(232, 201, 138, .42);
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(212,176,120,.12), transparent 50%),
    linear-gradient(90deg, rgba(32, 24, 16, .8), rgba(12, 10, 8, .6));
}
.news-thumb{
  border-radius: 12px;
  border-color: rgba(212, 176, 120, .28);
}

/* ---------- Hall of Fame ---------- */
.hof{
  background: linear-gradient(180deg, rgba(6,5,4,.55) 0%, rgba(6,5,4,.92) 40%, #070605 100%);
  border-top: 1px solid rgba(212, 176, 120, .14);
}
.hof-panel{ min-height: 0; }
.hof-rank{
  border-radius: 10px;
  width: 32px; height: 32px;
}

/* ---------- Footer ---------- */
.site-footer{
  background: #070605;
  border-top: 1px solid rgba(212, 176, 120, .14);
  padding: 36px 0;
}

/* ---------- Auth / forms ---------- */
.auth-tab{ height: 46px; }
.lang-btn,
.header-user-btn{
  border-radius: 999px !important;
  border-color: rgba(212, 176, 120, .32);
  background: rgba(10, 8, 6, .55);
}
.breadcrumb{
  background: linear-gradient(180deg, rgba(8,6,5,.2), rgba(8,6,5,.55));
  border-bottom-color: rgba(212, 176, 120, .18);
}

/* ---------- Preloader ---------- */
.preloader-inner::before{
  background: radial-gradient(circle, rgba(212,176,120,.35), transparent 70%);
}

@media (max-width: 860px){
  .brand-text{ display: none !important; }
  .header-inner{ height: 58px; }
  .feature-rail{ display: none !important; }
  .main-nav{
    background: linear-gradient(180deg, #16120e, #0c0a08) !important;
    border-bottom-color: rgba(212, 176, 120, .22);
  }
}
@media (max-width: 640px){
  .btn{ width: min(240px, 100%); height: 48px; }
}

/* ===== Challengerweb assets bridge ===== */
:root{
  --color-accent: #c4a06a;
  --color-text-muted: #b8af9f;
  --font-head: Cinzel, "Times New Roman", serif;
}

/* Prefer MU cinematic hero as page backdrop */
img#site-bg-image.site-bg-video{
  object-fit: cover;
  object-position: center 22%;
}
body[data-page] img#site-bg-image.site-bg-video[src*="background-1"]{
  /* fallback if HTML not yet updated — CSS layer below can still paint art */
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,5,4,.55) 0%, rgba(6,5,4,.22) 48%, rgba(6,5,4,.18) 100%),
    linear-gradient(180deg, rgba(6,5,4,.18) 0%, rgba(6,5,4,.72) 100%),
    url("../img/art/hero.jpg") center 22% / cover no-repeat;
}
body.has-art-bg img#site-bg-image.site-bg-video,
img#site-bg-image.site-bg-video[src*="art/hero"]{
  opacity: 1;
}
/* When HTML still points at old bg, hide it so ::before art shows */
img#site-bg-image.site-bg-video[src*="background-1"]{
  opacity: 0 !important;
}

.brand-mark,
.footer-logo,
.preloader-logo,
.hero-mark,
.emblem-img{
  object-fit: contain;
  background: transparent;
}
.brand-mark{ width: 46px; height: 46px; }
.footer-logo{ width: 52px; height: 52px; }

/* Guide hub cards on Challenger pages */
.guide-hub .info-grid,
.page.guide-hub .info-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.guide-hub .info-card,
.page.guide-hub .info-card{
  background: var(--mu-surface-bg);
  border: 1px solid var(--line-gold-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.guide-hub .info-card h2{
  font-family: Cinzel, serif;
  font-size: 1.15rem;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-100);
}
.guide-hub .info-card h2 i{ color: var(--gold-500); }
.guide-hub .info-card p{ color: var(--ink-300); margin: 0 0 16px; line-height: 1.5; }
.guide-hub .info-card .btn{ display: inline-flex; min-width: 140px; }
.guide-hub .full-row{ grid-column: 1 / -1; }
.guide-hub .info-card--guide:first-child:nth-last-child(odd),
.guide-hub .info-card--guide:first-child:nth-last-child(odd) ~ .info-card--guide:nth-last-child(odd) {
  grid-column: auto;
}
.guide-hub .info-card--guide:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}
.guide-hub .rules{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.guide-hub .rules li{
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--ink-100);
}
@media (max-width: 820px){
  .guide-hub .info-grid, .page.guide-hub .info-grid{ grid-template-columns: 1fr; }
}

.feature-rail__item{ position: relative; overflow: hidden; }
.feature-rail__art{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  opacity: .42; z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}
.feature-rail__item > *:not(.feature-rail__art){ position: relative; z-index: 1; }
.news-thumb--art img, .news-thumb img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ===== Simpler typeface (Outfit) — loaded via HTML/fonts; vars below ===== */

:root{
  --font-display: "Outfit", system-ui, sans-serif;
  --font-deco: "Outfit", system-ui, sans-serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-num: "Outfit", system-ui, sans-serif;
  --font-head: "Outfit", system-ui, sans-serif;
}
body, button, input, select, textarea{
  font-family: var(--font-ui);
}
.brand-name,
.brand-sub,
.nav-link,
.hero-eyebrow,
.page h1,
.breadcrumb h1,
.guide-hub .info-card h2{
  font-family: var(--font-display) !important;
  letter-spacing: .04em;
}

/* ===== Rotating MU art backgrounds ===== */
.site-bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.site-bg-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.06) brightness(.88);
}
.site-bg-slide.is-on{ opacity: 1; }
body:has(.site-bg)::before{ display: none !important; }
body:has(.site-bg) img#site-bg-image.site-bg-video{ display: none !important; }
.lang-flag{
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
.lang-btn .lang-flag{ margin-right: 6px; }