/* Shareefico "Ranked" (approved 11 Oct 2026) for links.shareefi.co.
   Values come from shareefico-brand/design-system/project/tokens.json, graphite theme. Reference tokens by name in
   page styles; never write a hex there. Motion lives in ranked.js (press and ui springs). */

@font-face {
  font-family: "Satoshi";
  src: url("/assets/ranked/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #15151C;
  --surface: #24242F;
  --surface-2: #34323D;
  --line: #3A3A47;
  --ink: #F4F1EA;
  --ink-muted: #A6A4B0;
  --ink-faint: #8D8A97;
  --focus-ring: #F4F1EA;
  --on-tier: #15151C;
  --tier-rare: #3B82F6;
  --tier-legendary: #F5A524;
  /* Behind the profile badge only: the radial graphite falloff, warmed by the gold (kits/ranked.html r-profile). */
  --badge-pool: #2B2416;

  --font-display: "Satoshi", Arial, sans-serif;
  --font-label: "Unbounded", Verdana, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
  --dur-fade: 180ms;
}

/* Headlines: Satoshi Black, tight. */
.rk-head {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

/* Labels: Unbounded capitals, +0.08em. Eyebrows, group heads and level tags. */
.rk-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The wordmark as live text, exactly as the guidelines set it. */
.rk-wordmark {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}

/* Level tag: badge, then the tier and level. Its own graphite chip, so the tier colour passes as text on a slate card. */
.level-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-pill);
  background: var(--ground);
}
.level-tag img { display: block; width: 29px; height: 32px; }
.level-tag--rare { color: var(--tier-rare); }
.level-tag--legendary { color: var(--tier-legendary); }

/* Buttons: pills in Satoshi ExtraBold. Hover changes colour only; the press scale comes from ranked.js. */
.rk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  cursor: pointer;
  touch-action: manipulation;
  background: var(--ink);
  color: var(--ground);
  transition: background-color var(--dur-fade) linear, box-shadow var(--dur-fade) linear, color var(--dur-fade) linear;
}
.rk-btn:hover { background: var(--ink-muted); }
.rk-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink-muted); }
.rk-btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.rk-btn--rare { background: var(--tier-rare); color: var(--on-tier); }
.rk-btn--legendary { background: var(--tier-legendary); color: var(--on-tier); }
.rk-btn--rare:hover, .rk-btn--legendary:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.rk-btn:disabled { cursor: progress; background: var(--ink-muted); }
.rk-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* A card that lifts on hover or focus. The lift is transform only (ranked.js); the deeper shadow fades in on a
   pseudo-element, so nothing but opacity and transform ever animates. */
.rk-lift { position: relative; isolation: isolate; }
.rk-lift::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fade) linear;
}
@media (hover: hover) {
  .rk-lift:hover::after { opacity: 1; }
}
/* :has() sits in its own rule: a browser without it drops only that rule, never the :focus-visible one. */
.rk-lift:focus-visible::after { opacity: 1; }
.rk-lift:has(:focus-visible)::after { opacity: 1; }

/* Reduced motion: nothing moves or scales; the card border brightens instead, colours still change. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .rk-lift::after { display: none; }
  .rk-lift:hover, .rk-lift:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-muted); }
  .rk-lift:has(:focus-visible) { box-shadow: inset 0 0 0 1px var(--ink-muted); }
}

/* Windows High Contrast drops box-shadows and fills, so every button keeps a real outline there. */
@media (forced-colors: active) {
  .rk-btn { border: 2px solid ButtonText; }
  a.rk-btn { border-color: LinkText; }
  .rk-btn:disabled { border-color: GrayText; }
}
