/* ==========================================================================
   Odyssey buttons v1 — site-wide button finish (loaded after odyssey-ds.css)
   - smooth even gold gradient, thin darker-gold outline, soft outer shadow
   - no bright bottom/top highlight lines
   - hover: warm brightening + amber ember sparks (pills / Play Now) or a
     warm light sweep (chamfered buttons, whose clip-path would clip sparks)
   - focus: thin gold ring that follows the button shape; no cyan/green tints
   ========================================================================== */
:root{
  --bt-gold:linear-gradient(180deg,#f3dca4 0%,#e3bf7f 46%,#caa05c 100%);
  --bt-gold-hi:linear-gradient(180deg,#fcebc0 0%,#efcd8e 46%,#d8ad65 100%);
  --bt-line:#9a7138;
  --bt-line-hi:#b88a45;
  --bt-shadow:0 3px 10px rgba(0,0,0,.38);
  --bt-shadow-hi:0 4px 14px rgba(0,0,0,.42),0 0 16px rgba(255,150,50,.30);
  --bt-ghost:linear-gradient(180deg,rgba(28,22,16,.94),rgba(12,9,6,.96));
  --bt-ghost-hi:linear-gradient(180deg,rgba(52,36,20,.94),rgba(22,15,9,.96));
  --bt-focus:#f2cf86;
  /* ember dots used by the hover spark layers */
  --bt-dot:radial-gradient(circle,#fff4cf 0,#ffcf6a 38%,#ff8a2a 62%,rgba(255,138,42,0) 72%);
}

/* ---------- 1. Gold pills (header Register, .btn / .btn-gold, Full Rankings, guide buttons) ---------- */
.btn,.btn-blue,.btn-gold,.nav-pill,.hof-more,.feature-rail__go,.news-link.btn,.action-btn,.dl-btn,
.shop-checkout-modal .checkout-button,.shop-checkout-modal #process-payment-btn,body.page-shop .package-card .action-btn,
.ds-btn--gold:not(.ds-btn--chamfer){
  background:var(--bt-gold) !important;
  border:1px solid var(--bt-line) !important;
  box-shadow:var(--bt-shadow) !important;
  text-shadow:none !important;
  filter:none !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.btn,.action-btn:hover,.action-btn.is-hover,.dl-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.is-hover,
.ds-btn--gold:not(.ds-btn--chamfer):hover,
.btn:focus,.btn-blue:focus,.nav-pill:focus,.btn:active,.nav-pill:active,.btn-blue:active{
  background:var(--bt-gold-hi) !important;
  border-color:var(--bt-line-hi) !important;
  box-shadow:var(--bt-shadow-hi) !important;
  filter:none !important;
}
/* the old inner rectangle drawn by odyssey-theme on rounded pills */
.btn::before,.button::before{border:0 !important}

/* ---------- 2. Ghost / outline pills (header Login, All News, ranking tabs, auth tabs) ---------- */
.nav-pill-outline,.ds-btn--outline:not(.ds-btn--chamfer),.rk-cats .tab-btn:not(.active),.auth-tab:not(.is-active),.db-acc-btn{
  background:var(--bt-ghost) !important;
  border:1px solid rgba(201,160,92,.55) !important;
  box-shadow:var(--bt-shadow) !important;
  text-shadow:0 1px 3px rgba(0,0,0,.6) !important;
}
.ds-btn--outline:not(.ds-btn--chamfer){border-color:#b88a45 !important}
.nav-pill-outline:hover,.ds-btn--outline:not(.ds-btn--chamfer):hover,.rk-cats .tab-btn:not(.active):hover,
.auth-tab:not(.is-active):hover,.db-acc-btn:hover,.nav-pill-outline:focus,.nav-pill-outline:active{
  background:var(--bt-ghost-hi) !important;
  border-color:#d9b06a !important;
  color:#fff3dc !important;
  box-shadow:0 4px 14px rgba(0,0,0,.42),0 0 14px rgba(255,140,40,.22) !important;
}

/* ---------- 3. Play Now (SVG-shaped) — effects must follow the notched shape ---------- */
.odyssey-hero .review-play{
  background-image:url('../img/odyssey/button-gold.svg?v=2') !important;
  box-shadow:none !important;
  outline:none;
  filter:drop-shadow(0 6px 9px rgba(0,0,0,.55));
  transition:filter .2s ease,transform .2s ease;
}
.odyssey-hero .review-play:hover,.odyssey-hero .review-play:focus{
  box-shadow:none !important;
  transform:translateY(-1px);
  filter:brightness(1.07) saturate(1.04) drop-shadow(0 0 9px rgba(255,150,50,.42)) drop-shadow(0 6px 9px rgba(0,0,0,.5));
}
.odyssey-button:hover,.odyssey-button:focus{box-shadow:none !important}
.odyssey-hero .review-play:focus-visible{
  outline:none !important;
  filter:drop-shadow(0 0 1px var(--bt-focus)) drop-shadow(0 0 1px var(--bt-focus)) drop-shadow(0 0 8px rgba(255,150,50,.4));
}

/* ---------- 4. Chamfered buttons (Download Client, Register Account, Join Discord) ---------- */
.ds-btn--chamfer.ds-btn--gold{
  background:linear-gradient(110deg,rgba(255,240,200,0) 38%,rgba(255,240,205,.55) 50%,rgba(255,240,200,0) 62%) 160% 0/260% 100% no-repeat,var(--bt-gold) !important;
  box-shadow:inset 0 0 0 1px var(--bt-line) !important;
}
.ds-btn--chamfer.ds-btn--outline::after{
  background:linear-gradient(110deg,rgba(255,170,70,0) 38%,rgba(255,170,70,.20) 50%,rgba(255,170,70,0) 62%) 160% 0/260% 100% no-repeat,linear-gradient(180deg,#1c150e,#0b0806) !important;
}
.ds-btn--chamfer.ds-btn--gold:hover,.ds-btn--chamfer.ds-btn--gold:focus-visible{
  background:linear-gradient(110deg,rgba(255,240,200,0) 38%,rgba(255,240,205,.55) 50%,rgba(255,240,200,0) 62%) -60% 0/260% 100% no-repeat,var(--bt-gold-hi) !important;
  transition:background-position .7s ease;
  filter:none;
}
.ds-btn--chamfer.ds-btn--outline:hover::after,.ds-btn--chamfer.ds-btn--outline:focus-visible::after{
  background-position:-60% 0,0 0 !important;transition:background-position .7s ease;
}
.ds-btn--chamfer.ds-btn--outline:hover::before{background:#d9b06a}
.ds-btn--chamfer.ds-btn--outline:hover{color:#fff3dc;filter:none}

/* ---------- 5. Ember sparks on hover (non-clipped buttons) ---------- */
.nav-pill,.nav-pill-outline,.btn,.btn-gold,.dl-btn,.hof-more,.ds-btn--pill,.odyssey-hero .review-play{position:relative;overflow:visible !important}
.nav-pill::after,.nav-pill-outline::after,.btn::after,.dl-btn::after,.hof-more::after,.ds-btn--pill::after,
.odyssey-hero .review-play::after{
  content:"" !important;display:block !important;position:absolute !important;left:8%;right:8%;top:-85%;bottom:88%;
  pointer-events:none;opacity:0;z-index:3;border:0 !important;box-shadow:none !important;
  background:
    var(--bt-dot) 4% 88%/5px 5px no-repeat,
    var(--bt-dot) 21% 35%/3px 3px no-repeat,
    var(--bt-dot) 37% 100%/4px 4px no-repeat,
    var(--bt-dot) 55% 20%/3px 3px no-repeat,
    var(--bt-dot) 71% 70%/5px 5px no-repeat,
    var(--bt-dot) 88% 45%/3px 3px no-repeat,
    var(--bt-dot) 97% 96%/4px 4px no-repeat !important;
}
.odyssey-hero .review-play::before{
  content:"" !important;display:block !important;position:absolute;left:14%;right:14%;top:-50%;bottom:90%;
  pointer-events:none;opacity:0;z-index:3;border:0;
  background:
    var(--bt-dot) 10% 45%/4px 4px no-repeat,
    var(--bt-dot) 30% 100%/6px 6px no-repeat,
    var(--bt-dot) 48% 15%/3px 3px no-repeat,
    var(--bt-dot) 64% 98%/4px 4px no-repeat,
    var(--bt-dot) 82% 60%/6px 6px no-repeat;
}
.nav-pill:hover::after,.nav-pill-outline:hover::after,.btn:hover::after,.dl-btn:hover::after,.hof-more:hover::after,.ds-btn--pill:hover::after,
.odyssey-hero .review-play:hover::after{animation:btEmbers 1.5s ease-out infinite}
.odyssey-hero .review-play:hover::before{animation:btEmbers 1.9s ease-out .55s infinite}
@keyframes btEmbers{
  0%{opacity:0;transform:translateY(10px) scale(.8)}
  18%{opacity:1}
  45%{opacity:.7}
  60%{opacity:.95}
  100%{opacity:0;transform:translateY(-16px) scale(1.05)}}

/* ---------- 6. Keyboard focus: thin gold ring following the shape (no cyan) ---------- */
.odyssey-button:focus-visible,.btn:focus-visible,.button:focus-visible,.ds-btn:focus-visible,.nav-pill:focus-visible,
.nav-pill-outline:focus-visible,.dl-btn:focus-visible,.rk-cats .tab-btn:focus-visible,.auth-tab:focus-visible{
  outline:1.5px solid var(--bt-focus) !important;outline-offset:2px !important;
}
.ds-btn--chamfer:focus-visible{outline:none !important;box-shadow:inset 0 0 0 2px var(--bt-focus) !important}
.ds-btn--chamfer.ds-btn--outline:focus-visible::before{background:var(--bt-focus)}

@media (prefers-reduced-motion:reduce){
  .nav-pill::after,.nav-pill-outline::after,.btn::after,.dl-btn::after,.hof-more::after,.ds-btn--pill::after,
  .odyssey-hero .review-play::after,.odyssey-hero .review-play::before{animation:none !important;opacity:0 !important}
  .ds-btn--chamfer.ds-btn--gold:hover,.ds-btn--chamfer.ds-btn--outline:hover::after{transition:none}
}
