/* RaidSlot's design layer (#3141): RAIDSLOT_DESIGN_GUIDE.md's tokens and components, shared. raidslot.gg uses it now; the
 * app adopts it in its own issue (some names clash with raidslot.css's), so nothing here changes the app yet.
 * Where the guide and the logo differ, the logo wins: its SVGs' gradient (#0C94F6 → #113BF7) and its slots' 15% corners.
 */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url(plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url(plus-jakarta-sans-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url(jetbrains-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url(jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* §2.1, dark only. Contrast (WCAG 2.x) as measured for #3141, on --bg-base / --bg-surface / --bg-raised:
 *   --text-primary 17.0 / 15.8 / 14.4 · --text-secondary 9.1 / 8.5 / 7.7 · --text-muted 5.8 / 5.4 / 4.95 · --link 8.7 / 8.1 / 7.4
 *   --text-gradient 5.60–5.83 / 5.20–5.42 / 4.75–4.94 · --brand-cyan (the focus ring) 5.8 on --bg-base
 *   white on --cta-gradient 5.26–7.02, on --cta-gradient-hover 5.91–7.96, on --discord-blurple 4.61
 * The logo's own start, #0C94F6, under white is 3.19: the full gradient is decoration only, never a ground for text.
 */
:root {
  color-scheme: dark;
  --bg-sunken: #070D1D; --bg-base: #0A1227; --bg-surface: #0F1A33; --bg-raised: #15223F; --bg-hover: #1B2A4C;
  --border: #1E2B48; --border-strong: rgb(92 155 255 / 0.35);
  /* The logo's gradient, top left to bottom right; --brand-blue is the wordmark's "Slot". */
  --brand-cyan: #0C94F6; --brand-blue: #0F68FA; --brand-indigo: #113BF7;
  --brand-gradient: linear-gradient(135deg, #0C94F6 0%, #113BF7 100%);
  /* Its accessible versions: under white text (start darkened from the logo's), and as text (end lightened). */
  --cta-gradient: linear-gradient(135deg, #0B62EE 0%, #113BF7 100%);
  --cta-gradient-hover: linear-gradient(135deg, #0A5AE0 0%, #1033E6 100%);
  --text-gradient: linear-gradient(90deg, #0C94F6 0%, #3D8BFF 100%);
  --text-primary: #F1F5FB; --text-secondary: #A9B6CE; --text-muted: #8191AE;
  --link: #38BDF8; --link-hover: #5CB8FF;
  --success: #34D399; --warning: #FBBF24; --danger: #F87171; --neutral: #94A3B8;
  --on-accent: #FFFFFF; --discord-blurple: #5865F2; --discord-blurple-hover: #4752C4;
  --glow: 0 0 40px -10px rgb(10 132 248 / 0.5); --glow-under: 0 30px 80px -40px rgb(10 132 248 / 0.45);
  --tile-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 8px 24px -12px rgb(10 132 248 / 0.45);
  --ring-cyan: 0 0 0 4px rgb(12 148 246 / 0.25); --marker-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.55); --drop: 0 20px 40px -20px rgb(0 0 0 / 0.6);
  --haze-cyan: rgb(12 148 246 / 0.18); --haze-indigo: rgb(17 59 247 / 0.16);
  --glass: rgb(10 18 39 / 0.7);

  /* §4.4: radii and the 4px spacing scale. */
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --space-16: 64px; --space-24: 96px; --space-32: 128px;

  /* §3: type. */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.875rem, 2.5vw + 1rem, 2.75rem);
  --fs-h3: 1.25rem; --fs-body: 1.0625rem; --fs-small: 0.875rem; --fs-eyebrow: 0.8125rem;

  /* §7: motion. */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --dur-micro: 180ms; --dur-enter: 400ms;
}

/* §7: with reduced motion, the final state straight away. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* §6: buttons, 44px tall: primary (--cta-gradient, its glow on hover), secondary, ghost and Discord's (blurple, Discord's
 * own logo unaltered as an <img> inside). Every state: hover, :focus-visible, active, disabled, loading (spinner and text). */
.rs-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-md);
  font: 600 0.9375rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease); }
.rs-btn:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
.rs-btn:active { transform: scale(0.98); }
.rs-btn--primary { background: var(--cta-gradient); color: var(--on-accent); }
.rs-btn--primary::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--glow);
  opacity: 0; transition: opacity var(--dur-micro) var(--ease); pointer-events: none; }
.rs-btn--primary:hover { background: var(--cta-gradient-hover); }
.rs-btn--primary:hover::after { opacity: 1; }
.rs-btn--secondary { background: var(--bg-raised); border-color: var(--border); color: var(--text-primary); }
.rs-btn--secondary:hover { background: var(--bg-hover); }
.rs-btn--ghost { background: transparent; color: var(--link); }
.rs-btn--ghost:hover { color: var(--link-hover); text-decoration: underline; }
.rs-btn--discord { background: var(--discord-blurple); color: var(--on-accent); }
.rs-btn--discord:hover { background: var(--discord-blurple-hover); }
.rs-btn--discord img { height: 18px; width: auto; }
.rs-btn:disabled, .rs-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.rs-btn:disabled::after, .rs-btn[aria-disabled="true"]::after { opacity: 0; }
.rs-btn[aria-busy="true"]::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: rs-spin 0.8s linear infinite; }
@keyframes rs-spin { to { transform: rotate(360deg); } }

/* §3: the eyebrow over a heading, and headings with at most one word in --text-gradient (`rs-grad`). */
.rs-eyebrow { margin: 0 0 var(--space-3); font: 600 var(--fs-eyebrow)/1.3 var(--font-body); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-cyan); }
.rs-heading { margin: 0; font: 800 var(--fs-h2)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--text-primary);
  text-wrap: balance; }
.rs-heading--hero { font-size: var(--fs-hero); line-height: 1.05; }
.rs-grad { color: var(--brand-cyan); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .rs-grad { background: var(--text-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}

/* §4.1: slots, the logo's raid members (its 15% corners): filled, open (dashed) or plain; in grids of groups of five.
 * `rs-slot-grid--fill` fills each filled slot once, `--i` apart (30–50ms); with reduced motion they're filled already. */
.rs-slot { position: relative; aspect-ratio: 1; border-radius: 15%; background: var(--bg-raised); border: 1px solid var(--border); }
.rs-slot--open { background: transparent; border: 1.5px dashed var(--border-strong); }
.rs-slot--filled { background: transparent; border: 1.5px dashed var(--border-strong); }
.rs-slot--filled::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; background: var(--brand-gradient); }
.rs-slot-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: var(--space-2); }
.rs-slot-groups { display: grid; grid-template-columns: repeat(var(--groups, 4), minmax(0, 1fr)); gap: var(--space-4); }
.rs-slot-grid--fill .rs-slot--filled::after, .rs-slot-groups--fill .rs-slot--filled::after {
  animation: rs-slot-fill var(--dur-enter) var(--ease) both; animation-delay: calc(300ms + var(--i, 0) * 40ms); }
@keyframes rs-slot-fill { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

/* §4.2: a feature's tile, as the app icon: --bg-surface, a fine border, a soft inner glow. */
.rs-icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 22%; border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 30% 20%, var(--bg-raised) 0%, var(--bg-surface) 60%);
  box-shadow: var(--tile-shadow); color: var(--brand-cyan); }

/* §6: a real screenshot's frame (--radius-xl, border, `--glow` for the one main shot) and its markers (#3154, #3169): on the
 * shot only a marker, a dot (a button, named by its aria-label) centred at `--x`/`--y` (percent of the shot, set on each; `--xs`/`--ys` on a phone's own
 * crop; `rs-callout--wide` where the crop leaves it out) beside what it marks, never over its text. Small, no number (#3190):
 * it pulses from the brand colour to nearly gone so it reads as something to point at (a still ring with reduced motion),
 * a ring pulsing once round it when hovered or focused, and only where the shot shows something
 * it doesn't say itself. Hovered, focused or tapped, it shows what it marks in its tooltip: above it, or under it with `data-tip="below"` (`data-tip-s` on a
 * phone's crop), and as far along the tooltip as the marker is along the shot, so it never leaves the shot (`--tw`, its width,
 * and `--tx`, that point along it, where another marker is in the way). One at a time. */
.rs-shot { position: relative; display: block; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg-surface); }
.rs-shot picture { display: block; }
.rs-shot img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius-xl) - 1px); }
.rs-shot--glow { box-shadow: var(--glow), var(--glow-under); }
.rs-callout { --cx: var(--x); --cy: var(--y); --r: 7px; position: absolute; left: var(--cx); top: var(--cy); width: 0; height: 0; }
.rs-callout-dot { position: absolute; left: calc(-1 * var(--r)); top: calc(-1 * var(--r)); display: grid; place-items: center;
  width: calc(2 * var(--r)); height: calc(2 * var(--r)); margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--brand-cyan); box-shadow: 0 0 0 2px var(--bg-base), var(--marker-shadow); cursor: pointer;
  animation: rs-callout-pulse 1.6s ease-in-out infinite alternate;
  transition: scale var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease), opacity var(--dur-micro); }
/* Its target, 44px whatever its size; and its ring. */
.rs-callout-dot::before { content: ""; position: absolute; inset: calc(var(--r) - 22px); border-radius: 50%; }
.rs-callout-dot::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--brand-cyan); border-radius: 50%;
  opacity: 0; pointer-events: none; }
.rs-callout-dot:hover::after, .rs-callout-dot:focus::after { animation: rs-callout-ring 1.2s var(--ease) 1; }
@keyframes rs-callout-ring { 0% { opacity: 0.5; scale: 1; } 100% { opacity: 0; scale: 1.8; } }
@keyframes rs-callout-pulse { 0% { opacity: 1; scale: 1; } 100% { opacity: 0.15; scale: 0.8; } }
@media (prefers-reduced-motion: reduce) {
  .rs-callout-dot { animation: none; box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 4px var(--brand-cyan), var(--marker-shadow); }
  .rs-callout-dot::after { animation: none !important; }
}
.rs-callout-dot:hover, .rs-callout-dot:focus { animation: none; scale: 1.25; opacity: 1;
  box-shadow: 0 0 0 2px var(--bg-base), var(--ring-cyan), var(--marker-shadow); }
.rs-callout-dot:focus { outline: none; }
.rs-callout-dot:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 3px; border-radius: 50%; }
.rs-callout-tip { --gap: calc(var(--r) + 9px); position: absolute; z-index: 2; left: 0; bottom: var(--gap);
  translate: calc(-1 * var(--tx, var(--cx))) 4px; width: max-content; max-width: var(--tw, min(13rem, 70vw)); padding: 7px 11px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-raised); box-shadow: var(--drop);
  color: var(--text-primary); font: 500 var(--fs-small)/1.35 var(--font-body); text-align: left; text-wrap: balance;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-micro) var(--ease), translate var(--dur-micro) var(--ease), visibility var(--dur-micro); }
/* Its pointer, over the marker; and a bridge to it, so the pointer can move onto the tooltip without losing it. */
.rs-callout-tip::before { content: ""; position: absolute; left: clamp(12px, var(--tx, var(--cx)), calc(100% - 12px)); top: 100%; width: 8px; height: 8px;
  translate: -50% -4px; rotate: 45deg; background: var(--bg-raised); border: solid var(--border-strong); border-width: 0 1px 1px 0; }
.rs-callout-tip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.rs-callout[data-tip="below"] .rs-callout-tip { bottom: auto; top: var(--gap); translate: calc(-1 * var(--tx, var(--cx))) -4px; }
.rs-callout[data-tip="below"] .rs-callout-tip::before { top: auto; bottom: 100%; translate: -50% 4px; border-width: 1px 0 0 1px; }
.rs-callout[data-tip="below"] .rs-callout-tip::after { top: auto; bottom: 100%; }
.rs-callout:hover .rs-callout-tip, .rs-callout-dot:focus + .rs-callout-tip {
  opacity: 1; visibility: visible; pointer-events: auto; translate: calc(-1 * var(--tx, var(--cx))) 0; }
/* One at a time: the hovered one's, not a focused one's beside it. */
.rs-shot:has(.rs-callout-dot:hover) .rs-callout:not(:hover) .rs-callout-tip { opacity: 0; visibility: hidden; }
/* From 768 to 1024px the shots are at their smallest: smaller markers, to keep the controls they mark in view. */
@media (min-width: 768px) and (max-width: 1023.98px) { .rs-callout { --r: 6px; } .rs-callout-tip { max-width: var(--tw, 10.5rem); } }
/* Under 768px a phone's own crop: the markers at --xs/--ys on it, their tooltips on its side (`data-tip-s`). */
@media (max-width: 767.98px) {
  .rs-callout { --cx: var(--xs, var(--x)); --cy: var(--ys, var(--y)); }
  .rs-callout--wide { display: none; } /* What it marks isn't on the phone's crop. */
  .rs-callout[data-tip-s="above"] .rs-callout-tip { top: auto; bottom: var(--gap); translate: calc(-1 * var(--tx, var(--cx))) 4px; }
  .rs-callout[data-tip-s="above"] .rs-callout-tip::before { top: 100%; bottom: auto; translate: -50% -4px; border-width: 0 1px 1px 0; }
  .rs-callout[data-tip-s="above"] .rs-callout-tip::after { top: 100%; bottom: auto; }
  .rs-callout[data-tip-s="below"] .rs-callout-tip { bottom: auto; top: var(--gap); translate: calc(-1 * var(--tx, var(--cx))) -4px; }
  .rs-callout[data-tip-s="below"] .rs-callout-tip::before { top: auto; bottom: 100%; translate: -50% 4px; border-width: 1px 0 0 1px; }
  .rs-callout[data-tip-s="below"] .rs-callout-tip::after { top: auto; bottom: 100%; }
  .rs-callout:hover .rs-callout-tip, .rs-callout-dot:focus + .rs-callout-tip { translate: calc(-1 * var(--tx, var(--cx))) 0; }
}

/* Text only screen readers read: a step's number beside its slots, say. */
.rs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A command, as typed in Discord. */
.rs-cmd { padding: 2px var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raised);
  color: var(--brand-cyan); font: 500 0.9em var(--font-mono); }
