/* ============================================================
   SkinSignal / css / founder.css
   THE FOUNDER MARK, THE PERSONALISED FOUNDER CARD and THE FOUNDER DROP
   (2026-10-13). js/founder-badge.js draws the mark, js/founder-card.js
   the card's ink, js/founder-welcome.js the drop.
   Gold #e4ae39 is prestige, and this is prestige.
   ============================================================ */
:root { --fdr-gold: #e4ae39; --fdr-gold-hi: #f3c860; }

/* ---------- The mark ---------- */
.fdr-badge {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  padding: 3px 8px 3px 6px; border-radius: 4px;
  background: rgba(228, 174, 57, 0.1); box-shadow: inset 0 0 0 1px rgba(228, 174, 57, 0.7);
  font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em;
  color: var(--fdr-gold); white-space: nowrap;
}
.fdr-badge__mark {
  flex: none; width: 9px; height: 9px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--fdr-gold-hi), var(--fdr-gold));
  box-shadow: 0 0 6px rgba(228, 174, 57, 0.6);
}
.fdr-badge--name { margin-left: 10px; }
/* on a worn calling card's nameplate or caption: NEVER on the art (the
   art shows whole, nothing on it); the mark sits in the line beside the
   card's name */
.fdr-badge--card { margin: 0 8px; }

/* The founder card's frame, wherever a page draws it worn */
.pf-worn--exclusive .pf-worn__art { --rc: 228, 174, 57; }
.pf-worn--exclusive .pf-worn__rarity { color: var(--fdr-gold); }

/* ---------- The personalised founder card (js/founder-card.js) ----------
   THE ONE EXCEPTION to "nothing on the art": the founder card's crate
   carries "#NN" and the gamertag, sprayed in the stencil. The panel is
   the crate's face as measured on the real image (2172 x 724): left
   edge x 40, top 503, 202 tall, 1000 wide flat, turned 34deg away about
   its left edge under a perspective of 1323, the vanishing line 128
   down (63.37%). All of it in container units of the card's width
   (1 image px = 100 / 2172 cqw), so the ink holds at any size. */
@font-face {
  font-family: "Black Ops One";
  src: url("/fonts/black-ops-one.woff2") format("woff2");
  font-display: swap;
}
.fdr-art { position: relative; container-type: inline-size; }
.fdr-ink {
  --u: 0.046041cqw;
  position: absolute; z-index: 1; left: 1.842cqw; top: 23.158cqw; width: 46.041cqw; height: 9.3cqw;
  transform-origin: 0 63.37%; transform: perspective(60.912cqw) rotateY(34deg);
  pointer-events: none; white-space: nowrap; text-align: center; line-height: 1;
  font-family: "Black Ops One", "Saira", sans-serif; font-weight: 400; letter-spacing: 0.02em;
  color: #f3eee2; opacity: 0.93;
  -webkit-mask-image: var(--fdr-grain, none); mask-image: var(--fdr-grain, none);
  -webkit-mask-size: 64px 64px; mask-size: 64px 64px;
}
.fdr-ink > span {
  position: absolute; left: 0; right: 0; display: block;
  text-shadow: 0 0 calc(var(--u) * 3) rgba(243, 238, 226, 0.55), 0 0 calc(var(--u) * 12) rgba(243, 238, 226, 0.18);
}
/* line-height 1 puts Black Ops One's baseline 0.789em down: the number's
   baseline at 81 of the panel, the gamertag's at 157 */
.fdr-ink__num { font-size: calc(var(--u) * 64); top: calc(var(--u) * 30.5); }
.fdr-ink__tag { font-size: calc(var(--u) * var(--fs, 84)); top: calc(var(--u) * (157 - 0.789 * var(--fs, 84))); }

/* The Exclusive band's replay */
.xcl__replay {
  justify-self: start; margin-top: 6px; min-height: 36px; padding: 0 14px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(228, 174, 57, 0.6); background: rgba(228, 174, 57, 0.08);
  font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fdr-gold);
}
.xcl__replay:hover { background: rgba(228, 174, 57, 0.16); }
.xcl__replay:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- The founder drop (js/founder-welcome.js) ----------
   data-beat 0 to 6 on the dialog; each piece arrives with .is-on. Only
   opacity and transform move. */
.fdr-drop {
  position: fixed; inset: 0; z-index: 9000; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(70% 55% at 50% 42%, rgba(228, 174, 57, 0.07), rgba(0, 0, 0, 0) 70%), #020306;
  color: #e8ecf2; font: 400 16px/1.5 "Inter", system-ui, sans-serif;
  opacity: 0; animation: fdr-in 360ms ease-out forwards;
}
.fdr-drop [hidden] { display: none !important; }
.fdr-drop.is-leaving { animation: fdr-out 260ms ease-in forwards; }
.fdr-drop__fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.fdr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fdr-drop .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.fdr-drop__bar { position: fixed; top: 14px; right: 14px; z-index: 5; display: flex; gap: 8px; }
.fdr-drop__ctl {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(5, 8, 13, 0.72); color: #c9cfda;
  font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase;
}
.fdr-drop__ctl:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.fdr-drop__ctl:focus-visible, .fdr-drop__btn:focus-visible, .fdr-drop__open:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ----- beats 0 to 2: the moment ----- */
.fdr-drop__intro { position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; transition: opacity 400ms ease, visibility 0s linear 400ms; }
.fdr-drop:is([data-beat="3"], [data-beat="4"], [data-beat="5"], [data-beat="6"]) .fdr-drop__intro { opacity: 0; visibility: hidden; pointer-events: none; }
.fdr-drop__intro > * { grid-area: 1 / 1; }
.fdr-drop__open {
  display: grid; justify-items: center; gap: 14px; padding: 16px; border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer;
}
.fdr-drop__open:disabled { cursor: default; }
.fdr-drop__pack { position: relative; display: block; width: min(230px, 50vw); aspect-ratio: 2 / 3; }
.fdr-drop__glow {
  position: absolute; inset: -22%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228, 174, 57, 0.55), rgba(228, 174, 57, 0.12) 55%, rgba(228, 174, 57, 0) 75%);
  animation: fdr-pulse 1.9s ease-in-out infinite;
}
.fdr-drop__half { position: absolute; inset: 0; display: block; transition: transform 620ms cubic-bezier(0.2, 0.8, 0.3, 1), opacity 520ms ease 120ms; }
.fdr-drop__half img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.7)); }
.fdr-drop__half--top { clip-path: polygon(0 0, 100% 0, 100% 19%, 88% 21%, 74% 18.5%, 58% 21.5%, 43% 18.8%, 27% 21.2%, 12% 18.7%, 0 21%); }
.fdr-drop__half--bot { clip-path: polygon(0 21%, 12% 18.7%, 27% 21.2%, 43% 18.8%, 58% 21.5%, 74% 18.5%, 88% 21%, 100% 19%, 100% 100%, 0 100%); }
.fdr-drop__ready { font: 800 clamp(20px, 3.2vw, 30px)/1.1 "Saira", sans-serif; font-stretch: 112%; letter-spacing: 0.06em; color: var(--fdr-gold); text-align: center; }
.fdr-drop__tap { font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.22em; text-transform: uppercase; color: #8d97a8; animation: fdr-blink 1.6s ease-in-out infinite; }
.fdr-drop:not([data-beat="0"]) .fdr-drop__ready, .fdr-drop:not([data-beat="0"]) .fdr-drop__tap { opacity: 0; transition: opacity 240ms ease; animation: none; }
.fdr-drop:not([data-beat="0"]) .fdr-drop__glow { animation: none; opacity: 0; transition: opacity 500ms ease; }
.fdr-drop:not([data-beat="0"]) .fdr-drop__half--top { transform: translate(-14%, -46%) rotate(-14deg); opacity: 0; }
.fdr-drop:not([data-beat="0"]) .fdr-drop__half--bot { transform: translateY(24%) scale(0.94); opacity: 0; }

.fdr-drop__scan {
  align-self: start; width: 100%; height: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(61, 127, 255, 0), #3d7fff 20%, #9fc0ff 50%, #3d7fff 80%, rgba(61, 127, 255, 0));
  box-shadow: 0 0 18px 2px rgba(61, 127, 255, 0.55);
}
.fdr-drop[data-beat="1"] .fdr-drop__scan.is-on { animation: fdr-scan 1100ms cubic-bezier(0.4, 0, 0.6, 1) forwards; }
.fdr-drop__status {
  align-self: end; margin: 0 0 18vh; min-height: 1.5em; font-size: 14px; letter-spacing: 0.14em; color: #9fc0ff; text-align: center;
  opacity: 0; transition: opacity 300ms ease;
}
.fdr-drop:is([data-beat="1"], [data-beat="2"]) .fdr-drop__status { opacity: 1; }
.fdr-drop[data-beat="2"] .fdr-drop__status { opacity: 0.45; }
.fdr-drop__status.is-confirmed { color: #e8ecf2; }
.fdr-drop__num { margin: 0; display: grid; justify-items: center; gap: 2px; pointer-events: none; }
.fdr-drop__nn {
  font: 800 clamp(96px, 24vw, 220px)/0.9 "Saira", sans-serif; font-stretch: 112%; color: var(--fdr-gold);
  text-shadow: 0 0 42px rgba(228, 174, 57, 0.4); opacity: 0; transform: scale(2.4);
}
.fdr-drop__num.is-on .fdr-drop__nn { animation: fdr-stamp 220ms cubic-bezier(0.5, 0, 0.9, 0.6) 0ms forwards; }
.fdr-drop__of { font: 600 clamp(16px, 2.4vw, 22px)/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.4em; color: #c9cfda; opacity: 0; transition: opacity 400ms ease; padding-left: 0.4em; }
.fdr-drop__of.is-on { opacity: 1; }
.fdr-drop.is-shaking .fdr-drop__intro { animation: fdr-shake 320ms linear; }

/* ----- beats 3 to 6: what they hold ----- */
.fdr-drop__main {
  position: relative; z-index: 2; display: none; box-sizing: border-box; width: 100%; max-width: 1180px; min-height: 100%;
  margin: 0 auto; padding: 72px 24px 40px; align-content: center; gap: 28px 44px;
}
.fdr-drop:is([data-beat="3"], [data-beat="4"], [data-beat="5"], [data-beat="6"]) .fdr-drop__main { display: grid; }
.fdr-drop__col { min-width: 0; display: grid; align-content: start; gap: 16px; }
.fdr-drop__card {
  border-radius: 10px; overflow: hidden; background: #06080c;
  box-shadow: 0 0 0 2px var(--fdr-gold), 0 0 44px rgba(228, 174, 57, 0.32), 0 30px 60px -22px #000;
  opacity: 0; transform: translateY(44px) scale(0.96); transition: opacity 520ms ease, transform 700ms cubic-bezier(0.2, 0.9, 0.25, 1);
}
.fdr-drop__card.is-on { opacity: 1; transform: none; }
.fdr-drop__art { display: block; aspect-ratio: 3 / 1; }
.fdr-drop__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fdr-drop__caption { margin: 0; font: 800 clamp(18px, 2vw, 22px)/1.1 "Saira", sans-serif; font-stretch: 112%; letter-spacing: 0.1em; color: var(--fdr-gold); opacity: 0; transition: opacity 500ms ease 300ms; }
.fdr-drop__caption.is-on { opacity: 1; }
.fdr-drop__unlocks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.fdr-drop__unlock {
  position: relative; padding-left: 22px; font: 400 15px/1.5 "Inter", system-ui, sans-serif; color: #d6dbe4;
  opacity: 0; transform: translateX(-10px); transition: opacity 360ms ease, transform 360ms ease;
}
.fdr-drop__unlock::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--fdr-gold); box-shadow: 0 0 8px rgba(228, 174, 57, 0.6); }
.fdr-drop__unlock.is-on { opacity: 1; transform: none; }
.fdr-drop__letter {
  /* hidden: the stamp's slam (scaled up before it lands) stays on the paper and never widens the page */
  position: relative; overflow: hidden; padding: 26px 26px 22px; border-radius: 10px; background: #0a0e15; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  opacity: 0; transition: opacity 500ms ease;
}
.fdr-drop__letter.is-on { opacity: 1; }
.fdr-drop__typewrap { display: grid; }
.fdr-drop__typewrap > * { grid-area: 1 / 1; margin: 0; font: 400 17px/1.7 "Inter", system-ui, sans-serif; }
.fdr-drop__ghost { visibility: hidden; }
.fdr-drop__typed { color: #e2e6ee; }
.fdr-drop__sig { width: min(220px, 52%); margin: 14px 0 0 -6px; opacity: 0; }
.fdr-drop__sig.is-on { opacity: 1; }
.fdr-drop__tag { display: block; width: 100%; height: auto; overflow: visible; }
.fdr-drop__stamp {
  display: inline-block; margin: 14px 0 0; padding: 7px 12px 6px; border: 2px solid rgba(243, 238, 226, 0.8); border-radius: 3px;
  font: 400 15px/1 "Black Ops One", "Saira", sans-serif; letter-spacing: 0.16em; color: #f3eee2;
  opacity: 0; transform: rotate(-4deg) scale(1.9);
}
.fdr-drop__stamp.is-on { animation: fdr-stampx 240ms cubic-bezier(0.5, 0, 0.9, 0.6) forwards; }
.fdr-drop__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; opacity: 0; transition: opacity 400ms ease; }
.fdr-drop__acts.is-on { opacity: 1; }
.fdr-drop:not([data-beat="6"]) .fdr-drop__acts { visibility: hidden; }
.fdr-drop__btn {
  min-height: 48px; padding: 0 22px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); color: #e8ecf2;
  font: 700 15px/1 "Inter", system-ui, sans-serif;
}
.fdr-drop__btn:hover { border-color: rgba(255, 255, 255, 0.38); }
.fdr-drop__btn:disabled { cursor: default; opacity: 0.7; }
.fdr-drop__btn--gold { border: 0; background: linear-gradient(180deg, var(--fdr-gold-hi), var(--fdr-gold) 55%, #c98f1d); color: #120c02; }
.fdr-drop__btn--quiet { border-color: transparent; background: none; color: #aab2c0; }
.fdr-drop__msg { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: 12px; letter-spacing: 0.06em; color: #aab2c0; text-align: center; }

/* beats 3 and 4: the card alone, centred and large; from beat 5 the
   letter joins it (two columns on a desktop) */
.fdr-drop:is([data-beat="3"], [data-beat="4"]) .fdr-drop__main { max-width: 860px; }
.fdr-drop:is([data-beat="3"], [data-beat="4"]) .fdr-drop__col--letter,
.fdr-drop:is([data-beat="3"], [data-beat="4"]) .fdr-drop__acts { display: none; }
@media (min-width: 1024px) {
  .fdr-drop:is([data-beat="5"], [data-beat="6"]) .fdr-drop__main { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fdr-drop__main { padding: 64px 16px 28px; gap: 22px; }
  .fdr-drop__letter { padding: 20px 18px 18px; }
  .fdr-drop__typewrap > * { font-size: 15.5px; }
  .fdr-drop__btn { flex: 1 1 100%; }
  .fdr-drop__status { font-size: 12px; }
}

@keyframes fdr-in { to { opacity: 1; } }
@keyframes fdr-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fdr-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes fdr-blink { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes fdr-scan { 0% { opacity: 0; transform: translateY(8vh); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(88vh); } }
@keyframes fdr-stamp { to { opacity: 1; transform: scale(1); } }
@keyframes fdr-stampx { to { opacity: 0.88; transform: rotate(-4deg) scale(1); } }
@keyframes fdr-shake {
  0%, 100% { transform: none; } 15% { transform: translate(-7px, 4px); } 30% { transform: translate(6px, -5px); }
  45% { transform: translate(-5px, -3px); } 60% { transform: translate(4px, 4px); } 80% { transform: translate(-2px, 1px); }
}

/* Reduced motion: the beats simply fade. No shake, no tear, no scan, no
   stamp, no slide (and no particles or typing: js/founder-welcome.js). */
@media (prefers-reduced-motion: reduce) {
  .fdr-drop, .fdr-drop.is-leaving, .fdr-drop__glow, .fdr-drop__tap, .fdr-drop.is-shaking .fdr-drop__intro { animation: none; }
  .fdr-drop { opacity: 1; }
}
.fdr-drop--still .fdr-drop__half, .fdr-drop--still .fdr-drop__card, .fdr-drop--still .fdr-drop__unlock { transform: none !important; }
.fdr-drop--still .fdr-drop__scan { display: none; }
.fdr-drop--still .fdr-drop__nn { transform: none; transition: opacity 400ms ease; }
.fdr-drop--still .fdr-drop__num.is-on .fdr-drop__nn { animation: none; opacity: 1; }
.fdr-drop--still .fdr-drop__stamp { transform: rotate(-4deg); transition: opacity 400ms ease; }
.fdr-drop--still .fdr-drop__stamp.is-on { animation: none; opacity: 0.88; }

/* The founder card worn on the dashboard plaque, and in the card picker:
   gold, the prestige colour (the plaque's inline rarity material falls
   back to common for a rarity it does not know, so these win). */
.dash--climb .rst__card[data-rarity="exclusive"] { --rar: rgb(228, 174, 57) !important; --rar-rgb: 228, 174, 57 !important; }
.vpk__wear[data-rarity="exclusive"], .rst__tag[data-rarity="exclusive"] { color: var(--fdr-gold); }

/* ---------- The Exclusive band (js/achievements.js exclusiveSection) ----------
   Outside the 303: its own band, never a rarity rack. */
.xcl { padding: 8px 0 18px; }
.xcl__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 14px 0 12px; border-bottom: 1px solid rgba(228, 174, 57, 0.35); }
.xcl__name { margin: 0; font: 800 22px/1.1 "Saira", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fdr-gold); }
.xcl__line { margin: 0; flex: 1 1 260px; font: 400 13px/1.4 "Inter", system-ui, sans-serif; color: #aab2c0; }
.xcl__count { font-size: 12px; color: #c9cfda; }
.xcl__count b { color: var(--fdr-gold); }
.xcl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 16px; }
.xcl__card { margin: 0; }
.xcl__art { display: block; aspect-ratio: 3 / 1; border-radius: 8px; overflow: hidden; background: #06080c;
  box-shadow: 0 0 0 2px var(--fdr-gold), 0 0 22px rgba(228, 174, 57, 0.25); }
.xcl__art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xcl__meta { display: grid; gap: 4px; margin-top: 10px; }
.xcl__cardname { font: 700 15px/1.2 "Inter", system-ui, sans-serif; color: #f1f3f6; }
.xcl__tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fdr-gold); }
.xcl__desc { font: 400 13px/1.4 "Inter", system-ui, sans-serif; color: #aab2c0; }
