/* ==========================================================
   Affiliate Program page — built on the landing's tokens
   (style.css variables: Baker Signet titles, Noto text, gold accents)
   ========================================================== */

.aff {
  --aff-gold: #e2bd73;
  --aff-gold-hi: #fbe3a8;
  --aff-line: rgba(226, 189, 115, .22);
  --aff-panel: rgba(14, 18, 34, .72);
  --aff-panel-2: rgba(20, 26, 46, .8);
  color: var(--color--desc);
  font-family: var(--font--p);
  font-size: var(--font--font-sise--p-d);
  line-height: 1.65;
  overflow: hidden;
}
.aff *, .aff *::before, .aff *::after { box-sizing: border-box; }
.aff p { margin: 0; }
.aff h1, .aff h2, .aff h3 { margin: 0; font-weight: 400; color: var(--color--title); text-transform: none; }
/* style.css centres every p / heading globally; here text follows its container */
.aff p, .aff h1, .aff h2, .aff h3, .aff li { text-align: inherit; }
.aff-hero__grid > div:first-child, .aff-steps, .aff-split > div, .aff-grid2 .aff-card, .aff-faq, .aff-rules .aff-list { text-align: left; }

.aff-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.aff-narrow { max-width: 820px; }
.aff-section { padding: 90px 0; position: relative; }
.aff-section--tint { background: linear-gradient(180deg, rgba(10, 14, 28, 0), rgba(10, 14, 28, .55) 20%, rgba(10, 14, 28, .55) 80%, rgba(10, 14, 28, 0)); }

.aff-eyebrow {
  display: inline-block;
  font-family: var(--font--aside);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--aff-gold);
  margin-bottom: 16px;
}
/* centred section title with gold rules — same idea as the landing headings */
.aff .aff-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 0 48px;
  font-family: var(--font--h1-h3);
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--color--title);
  text-align: center;
  text-transform: uppercase;
}
.aff-title::before, .aff-title::after {
  content: "";
  flex: 0 0 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aff-gold));
}
.aff-title::after { transform: scaleX(-1); }
.aff-lead { text-align: center; max-width: 680px; margin: -28px auto 40px; }
.aff-note { font-size: .95rem; color: #9aa0ad; }
.aff-note--center { text-align: center; max-width: 640px; margin: 32px auto 0; }
.aff strong { color: var(--aff-gold-hi); font-weight: 600; }

/* ---------- hero ---------- */
.aff-hero { padding: 160px 0 90px; position: relative; }
.aff-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 75% 45%, rgba(110, 70, 200, .22), transparent 70%),
    radial-gradient(40% 50% at 20% 30%, rgba(226, 189, 115, .08), transparent 70%);
  pointer-events: none;
}
.aff-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; position: relative; }
.aff-hero h1 {
  font-family: var(--font--h1-h3);
  font-size: 3.6rem;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.aff-hero p { max-width: 540px; margin-bottom: 36px; }

/* hero visual: fanned game cards + 20% medallion */
.aff-fan { position: relative; height: 440px; }
.aff-fan__card {
  position: absolute;
  top: 50%; left: 50%;
  width: 230px;
  aspect-ratio: 3 / 4;
  margin: -153px 0 0 -115px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(226, 189, 115, .7);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, .8), 0 0 0 5px rgba(10, 12, 24, .9), 0 0 0 6px rgba(226, 189, 115, .35);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.aff-fan__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aff-fan__card:nth-child(1) { transform: translate(-150px, 20px) rotate(-14deg); }
.aff-fan__card:nth-child(2) { transform: translate(150px, 20px) rotate(14deg); }
.aff-fan__card:nth-child(3) { transform: translateY(-10px); z-index: 2; }
.aff-fan:hover .aff-fan__card:nth-child(1) { transform: translate(-175px, 15px) rotate(-18deg); }
.aff-fan:hover .aff-fan__card:nth-child(2) { transform: translate(175px, 15px) rotate(18deg); }
.aff-fan__badge {
  position: absolute;
  z-index: 3;
  right: 8%; top: 4%;
  width: 118px; height: 118px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #2a3968, #0d1428 70%);
  border: 2px solid var(--aff-gold);
  box-shadow: 0 0 0 5px rgba(10, 12, 24, .85), 0 0 0 6px rgba(226, 189, 115, .4), 0 0 40px rgba(240, 190, 100, .35);
  font-family: var(--font--h1-h3);
  color: var(--aff-gold-hi);
  animation: aff-float 5s ease-in-out infinite;
}
.aff-fan__badge b { font-size: 2.3rem; line-height: 1; font-weight: 400; }
.aff-fan__badge span { font-family: var(--font--aside); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }
@keyframes aff-float { 50% { transform: translateY(-8px); } }

/* ---------- highlights ---------- */
.aff-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aff-card {
  background: linear-gradient(180deg, var(--aff-panel-2), var(--aff-panel));
  border: 1px solid var(--aff-line);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color .3s ease, transform .3s ease;
}
.aff-card:hover { border-color: rgba(226, 189, 115, .55); transform: translateY(-4px); }
.aff-card h3 { font-family: var(--font--h1-h3); font-size: 1.35rem; margin: 18px 0 10px; }
.aff-card p { font-size: .95rem; }
.aff-icon {
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(226, 189, 115, .55);
  background: radial-gradient(circle at 35% 30%, rgba(226, 189, 115, .18), rgba(226, 189, 115, .02) 70%);
  color: var(--aff-gold-hi);
}
.aff-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- steps ---------- */
.aff-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; }
.aff-steps li { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(226, 189, 115, .14); }
.aff-steps li:last-child { border-bottom: 0; }
.aff-steps__num {
  flex: 0 0 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--aff-gold);
  font-family: var(--font--h1-h3);
  font-size: 1.4rem;
  color: var(--aff-gold-hi);
  box-shadow: 0 0 18px rgba(226, 189, 115, .15);
}
.aff-steps h3 { font-family: var(--font--h1-h3); font-size: 1.4rem; color: var(--aff-gold-hi); margin-bottom: 6px; }
.aff-steps p { font-size: 1rem; }

/* ---------- eligible purchases ---------- */
.aff-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.aff-split h2 { font-family: var(--font--h1-h3); font-size: 2.4rem; line-height: 1.15; text-transform: uppercase; margin-bottom: 18px; }
.aff-split > div > p { margin-bottom: 18px; }
.aff-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.aff-list li { position: relative; padding-left: 26px; }
.aff-list li::before { content: "\2726"; position: absolute; left: 0; top: 0; color: var(--aff-gold); }
.aff-list--check li::before { content: "\2713"; }

.aff-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aff-mosaic figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(226, 189, 115, .45);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8);
}
.aff-mosaic figure:nth-child(3n+2) { transform: translateY(22px); }
.aff-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.aff-mosaic figure:hover img { transform: scale(1.06); }

/* ---------- conditions + assets ---------- */
.aff-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.aff-grid2 .aff-card { text-align: left; padding: 34px 32px; }
.aff-grid2 .aff-icon { margin: 0; }
.aff-grid2 .aff-card h3 { margin-top: 20px; }
.aff-card--gold { border-color: rgba(226, 189, 115, .5); box-shadow: inset 0 0 40px rgba(226, 189, 115, .05); }

.aff-rules { max-width: 760px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.aff-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.aff-faq details { border: 1px solid var(--aff-line); background: var(--aff-panel); border-radius: 6px; transition: border-color .3s ease; }
.aff-faq details[open] { border-color: rgba(226, 189, 115, .5); }
.aff-faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 56px 20px 24px;
  font-family: var(--font--h1-h3);
  font-size: 1.2rem;
  color: var(--aff-gold-hi);
}
.aff-faq summary::-webkit-details-marker { display: none; }
.aff-faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--aff-gold); }
.aff-faq details[open] summary::after { content: "\2013"; }
.aff-faq details p { padding: 0 24px 22px; font-size: 1rem; }

/* ---------- final CTA ---------- */
.aff-cta { text-align: center; padding: 100px 0 40px; }
.aff-cta__box {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 40px;
  border: 1px solid rgba(226, 189, 115, .45);
  border-radius: 8px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(110, 70, 200, .25), transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 46, .9), rgba(10, 13, 26, .9));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.aff-cta h2 { font-family: var(--font--h1-h3); font-size: 2.6rem; text-transform: uppercase; margin-bottom: 16px; }
.aff-cta p { max-width: 600px; margin: 0 auto 34px; }

.aff .cof-btn__plate { text-transform: uppercase; letter-spacing: .06em; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .aff-hero__grid, .aff-split { grid-template-columns: 1fr; }
  .aff-hero { padding-top: 130px; }
  .aff-hero__grid > div:first-child { text-align: center; }
  .aff-hero p { margin-left: auto; margin-right: auto; }
  .aff-grid4 { grid-template-columns: repeat(2, 1fr); }
  .aff-fan { height: 400px; }
}
@media (max-width: 767px) {
  .aff { font-size: var(--font--font-sise--p-m); }
  .aff-section { padding: 64px 0; }
  .aff-hero h1 { font-size: 2.4rem; }
  .aff .aff-title { font-size: 1.8rem; gap: 12px; }
  .aff-title::before, .aff-title::after { flex-basis: 30px; }
  .aff-split h2, .aff-cta h2 { font-size: 1.8rem; }
  .aff-grid2 { grid-template-columns: 1fr; }
  .aff-fan { height: 330px; }
  .aff-fan__card { width: 170px; margin: -113px 0 0 -85px; }
  .aff-fan__card:nth-child(1), .aff-fan:hover .aff-fan__card:nth-child(1) { transform: translate(-95px, 16px) rotate(-12deg); }
  .aff-fan__card:nth-child(2), .aff-fan:hover .aff-fan__card:nth-child(2) { transform: translate(95px, 16px) rotate(12deg); }
  .aff-fan__badge { width: 92px; height: 92px; right: 2%; }
  .aff-fan__badge b { font-size: 1.8rem; }
  .aff-cta__box { padding: 44px 20px; }
}
@media (max-width: 520px) {
  .aff-grid4 { grid-template-columns: 1fr; }
  .aff-steps li { gap: 16px; }
  .aff-steps__num { flex-basis: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .aff-fan__badge { animation: none; }
}

/* ==========================================================
   Landing mini-block (index): "Join Our Affiliate Program"
   ========================================================== */
.aff-promo { position: relative; padding: 0 24px 40px; z-index: 2; }
.aff-promo__box {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 56px;
  border: 1px solid rgba(226, 189, 115, .45);
  border-radius: 8px;
  background:
    radial-gradient(60% 90% at 85% 50%, rgba(110, 70, 200, .22), transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 46, .88), rgba(8, 11, 22, .92));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 0 40px rgba(226, 189, 115, .04);
  text-align: left;
}
.aff-promo__eyebrow { display: inline-block; font-family: var(--font--aside); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #e2bd73; margin-bottom: 12px; }
.aff-promo h2 {
  margin: 0 0 16px;
  font-family: var(--font--h1-h3);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color--title);
  text-transform: uppercase;
  text-align: left;
}
.aff-promo p { margin: 0 0 12px; color: var(--color--desc); font-family: var(--font--p); font-size: 1.05rem; line-height: 1.6; text-align: left; }
.aff-promo p strong { color: #fbe3a8; font-weight: 600; }
.aff-promo .cof-btn { margin-top: 14px; }
.aff-promo__stats { display: grid; gap: 12px; }
.aff-promo__stat {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(226, 189, 115, .25);
  border-radius: 6px;
  background: rgba(10, 13, 26, .6);
}
.aff-promo__stat b { flex: 0 0 auto; min-width: 72px; font-family: var(--font--h1-h3); font-weight: 400; font-size: 1.9rem; line-height: 1; color: #fbe3a8; text-align: center; }
.aff-promo__stat span { font-family: var(--font--aside); font-size: 1rem; color: var(--color--desc); line-height: 1.3; }
@media (max-width: 860px) {
  .aff-promo__box { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
  .aff-promo h2 { font-size: 1.9rem; }
}

/* ---------- centred intro lines under section titles (override style.css p rules) ---------- */
.aff .aff-lead {
  text-align: center;
  max-width: 720px;
  margin: -20px auto 44px;
}
.aff .aff-note--center { text-align: center; }

/* ---------- FAQ uses the landing's accordion (style.css .accordeon / .faq-*) ---------- */
.aff .aff-accordeon { width: 100%; max-width: 900px; }
.aff .aff-accordeon .h3.faq { text-align: left; }
.aff .aff-accordeon .icon-arrow { flex: none; }
/* smaller questions/answers than the landing's section-size FAQ */
.aff .aff-accordeon .h3.faq { font-size: 1.5rem; line-height: 1.3; }
.aff .aff-accordeon .p-2.faq { font-size: 1rem; line-height: 1.6; }
.aff .aff-accordeon .heading-2.faq { padding-bottom: 12px; align-items: center; }
.aff .aff-accordeon .icon-arrow { width: 24px; height: 24px; }
.aff .aff-accordeon .collection-item { padding-bottom: 8px; }
.aff .aff-accordeon .faq-line { padding-top: 8px; padding-bottom: 12px; }
@media (max-width: 767px) {
  .aff .aff-accordeon .h3.faq { font-size: 1.2rem; }
  .aff .aff-accordeon .p-2.faq { font-size: .95rem; }
}

/* titles in the landing's gold (style.css .h2-title / .heading-3 use --color--aside) */
.aff .aff-title,
.aff .aff-split h2,
.aff .aff-cta h2 { color: var(--color--aside); }
/* promo now sits between FAQ and "Join the Battle": give the next heading room */
.aff-promo { padding-bottom: 140px; }
@media (max-width: 767px) { .aff-promo { padding-bottom: 80px; } }
/* promo placed inside the landing FAQ list: same width as the questions, sits right under them */
.aff-promo.aff-promo--in-faq { padding: 0; margin-top: 84px; }
.aff-promo--in-faq .aff-promo__box { max-width: none; }
.aff-promo, .aff-promo * { box-sizing: border-box; }
.aff-promo__box > * { min-width: 0; }
