/* Blinta's shared visual system. Load after page styles. Page-specific files
   own layout and data visualizations; this file owns the common UI language. */
:root {
  color-scheme: var(--theme-color-scheme, light);
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display: var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-sans: var(--sans);
  --font-mono: var(--mono);
  --text: #171717;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg1: #ffffff;
  --bg2: #f7f7f7;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-3: #efefef;
  --text-2: #454545;
  --text-3: #6b6b6b;
  --text-4: #757575;
  --border: #e6e6e6;
  --border-strong: #d3d3d3;
  --accent: #171717;
  --accent-soft: #eeeeee;
  --accent-text: #171717;
  --brand: #171717;
  --ink-900: #ffffff;
  --ink-850: #fafafa;
  --ink-800: #ffffff;
  --ink-700: #f7f7f7;
  --ink-600: #efefef;
  --paper: #171717;
  --paper-dim: #626262;
  --paper-mute: #737373;
  --paper-ghost: #dedede;
  --red: #171717;
  --red-hot: #383838;
  --red-deep: #222222;
  --gold: #735b27;
  --gold-lt: #795e28;
  --gold-deep: #654b1c;
  --line: #e9e9e9;
  --line-mid: #dedede;
  --line-hot: #bdbdbd;
  --notch: none;
  --notch-sm: none;
  --notch-tr: none;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;
  --shadow-sm: 0 2px 8px #00000004;
  --shadow-md: 0 8px 24px #0000000a;
  --shadow-lg: 0 20px 60px #00000018;
  --focus: 0 0 0 3px #477b4233;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Type and page canvas */
.app-ui,
.admin-ui {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
}
.app-ui::after {
  content: none;
}
.app-ui .blinta-home,
.app-ui .app-shell {
  background: var(--bg);
}
.app-ui .page-main {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 122px 32px 64px;
  gap: 24px;
}
.app-ui .pf-main {
  max-width: 1184px;
}
.app-ui .auth-page-main {
  max-width: 1100px;
}
.app-ui :is(h1, h2, h3, h4, .section-title) {
  font-family: var(--sans);
  text-transform: none;
  color: var(--text);
}
.app-ui h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.055em;
}
.app-ui h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.app-ui :is(h3, h4, .section-title) {
  font-weight: 550;
  letter-spacing: -0.02em;
}
.app-ui :is(.helper, .muted, .page-subtitle) {
  color: var(--muted);
  line-height: 1.65;
}
.app-ui .eyebrow {
  font: 500 12px/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.app-ui a {
  color: inherit;
}
.app-ui :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #477b42;
  outline-offset: 3px;
}
::selection {
  background: #d8f5b7;
  color: var(--theme-text, #171717);
}

/* Shared navigation. The homepage uses the same components in a smaller shell. */
.app-ui .bx-header,
.app-ui .bx-header.is-stuck,
.app-ui .bx-header:has([aria-expanded="true"]) {
  position: fixed;
  top: 20px;
  left: 24px;
  right: 24px;
  height: 64px;
  border: 1px solid var(--theme-border, #ededed);
  border-radius: 999px;
  background: rgba(var(--theme-raised-rgb, 245, 245, 245), 0.961);
  backdrop-filter: blur(16px);
  box-shadow: none;
}
.app-ui .bx-header.is-stuck {
  box-shadow: var(--shadow-sm);
}
.app-ui .bx-header-in {
  width: 100%;
  max-width: none;
  padding: 0 22px;
  gap: 22px;
}
.app-ui .blinta-brand {
  font: 800 23px/1 var(--sans);
  letter-spacing: -1px;
  text-transform: lowercase;
  gap: 8px;
  color: var(--text);
}
.app-ui .blinta-brand::before {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 0;
  background: transparent url("/images/blinta-mark.png") center / contain no-repeat;
  filter: none;
}
.app-ui .blinta-brand:hover::before {
  transform: none;
  filter: none;
}
.app-ui .bx-nav {
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.app-ui .bx-nav a {
  padding: 9px 10px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--theme-muted, #626262);
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.app-ui .bx-nav a:hover,
.app-ui .bx-nav a[aria-current="page"] {
  background: var(--theme-raised, #e8e8e8);
  color: var(--theme-text, #171717);
}
.app-ui .bx-nav a::after {
  content: none;
}
.app-ui .bx-header-actions {
  display: flex;
  gap: 10px;
}
.app-ui .bx-header-actions :is(button, a) {
  font-size: 12px;
}
.app-ui .bx-header-actions .side-riot-chip {
  background: var(--theme-surface, #fff);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.app-ui .bx-game-menu-trigger {
  background: var(--theme-raised, #e9e9e9);
  box-shadow: none;
  border-radius: 999px;
  font-family: var(--sans);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.app-ui .bx-game-menu-panel {
  background: var(--theme-surface, #fff);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-radius: 18px;
  left: auto;
  right: 0;
}
.app-ui .bx-game-tile {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-transform: none;
}
.app-ui .bx-game-tile-soon {
  color: #fff;
}
.app-ui .bx-mobile-nav {
  background: var(--theme-surface, #fff);
  padding-top: 110px;
}
.app-ui .bx-mobile-nav a {
  color: var(--text);
  font: 550 22px/1.4 var(--sans);
  letter-spacing: -0.4px;
  text-transform: none;
}
.app-ui .bx-mobile-nav a::before {
  content: none;
}
.app-ui .bx-mobile-nav a[aria-current="page"] {
  color: #477b42;
}
.app-ui .bx-mobile-actions :is(a, button) {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--theme-raised, #f7f7f7);
  color: var(--text);
  text-transform: none;
  font-family: var(--sans);
  letter-spacing: 0;
}
.app-ui .bx-burger {
  border: 0;
  background: none;
  border-radius: 50%;
}

/* Buttons and form fields */
.app-ui button {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 550;
}

/* The pill is for controls. A button a page shapes as a card, a row or a
   full-bleed overlay keeps its own radius: 999px across a wide block curves the
   sides into an ellipse, which clips the content inside an `overflow: hidden`
   card and turns a modal backdrop into a dark oval. Add a new card-, row- or
   overlay-shaped button to the list below rather than fighting this rule from the
   page file. The list sits inside :where() so it costs no specificity: this rule
   stays a one-class-one-element default that every card rule further down — a
   .trd-card or a .quick-rail-btn that happens to be a button — outranks on its own. */
.app-ui
  button:not(
    :where(
      .analytics-premium-sidebar-item,
      .cp-enemy-option,
      .cs2an-match-row,
      .cs2an-rm-card,
      .cs2hit-row,
      .cs2weapon-hit-backdrop,
      .cs2weapon-hit-open,
      .lolmap-game-card,
      .lolmap-moment,
      .support-ticket-card,
      .upgrade-plan-card
    )
  ) {
  border-radius: 999px;
}
.app-ui
  :is(
    .link-btn,
    .bx-btn,
    .inv-button,
    .collector-button-small,
    .recap-cta-btn,
    .side-footer-button-link,
    .comp-btn-primary,
    .comp-btn-secondary
  ) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--theme-surface, #fff);
  color: var(--text);
  box-shadow: none;
  clip-path: none;
  font: 550 13px/1.4 var(--sans);
  letter-spacing: -0.15px;
  text-transform: none;
  text-decoration: none;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.app-ui :is(.link-btn, .inv-button, .collector-button-small, .comp-btn-secondary):hover {
  background: var(--theme-raised, #f3f3f3);
  border-color: var(--theme-border, #c9c9c9);
  color: var(--text);
  transform: none;
}
.app-ui :is(.link-btn, .buttonupgrade)::after {
  content: none;
}
.app-ui
  :is(
    button[type="submit"],
    .link-btn.is-primary,
    .link-btn[data-variant="primary"],
    .side-footer-button-link,
    .bx-btn,
    .recap-cta-btn,
    .comp-btn-primary
  ) {
  background: #171717;
  border-color: #171717;
  color: #fff;
}
.app-ui
  :is(
    button[type="submit"],
    .link-btn.is-primary,
    .link-btn[data-variant="primary"],
    .side-footer-button-link,
    .bx-btn,
    .recap-cta-btn,
    .comp-btn-primary
  ):hover {
  background: #383838;
  border-color: #383838;
  color: #fff;
}
.app-ui :is(.buttonupgrade, .upgrade-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  background: #171717;
  color: #fff;
  border: 1px solid #171717;
  border-radius: 999px;
  clip-path: none;
  font: 550 12px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}
.app-ui :is(.buttonupgrade, .upgrade-link):hover {
  background: #383838;
  color: #fff;
}
.app-ui :is(.buttonupgrade, .upgrade-link) svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.app-ui
  :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
        [type="color"]
      ),
    select,
    textarea
  ) {
  border: 1px solid var(--theme-border, #dedede);
  border-radius: 12px;
  clip-path: none;
  box-shadow: none;
  background: var(--theme-surface, #fff);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 11px 14px;
  color-scheme: var(--theme-color-scheme, light);
}
.app-ui :is(input, select, textarea):focus {
  border-color: #888;
  box-shadow: 0 0 0 3px #17171708;
}
.app-ui :is(input, textarea)::placeholder {
  color: var(--theme-muted, #808080);
}
.app-ui :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: #171717;
  clip-path: none;
}
.app-ui option {
  background: var(--theme-surface, #fff);
  color: var(--text);
}
.app-ui label {
  color: var(--theme-muted, #626262);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.app-ui :is(button:disabled, [aria-disabled="true"]) {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards, panels and modal surfaces */
.app-ui
  :is(
    .panel,
    .ov-col-pool,
    .ov-col-matches,
    .inv-stat,
    .inv-card,
    .inv-state,
    .collector-panel,
    .trd-card,
    .comp-card,
    .pf-card
  ) {
  background: var(--theme-surface, #fff);
  border: 1px solid var(--border);
  border-radius: 20px;
  clip-path: none;
  box-shadow: none;
}
.app-ui .panel {
  padding: 26px;
}
.app-ui :is(.inv-stat-value, .upgrade-hero) {
  background: var(--theme-raised, #eef2e9);
  border-color: #e0e7d9;
}
.app-ui :is(.inv-stat-value strong, .inv-state-mark) {
  color: #477044;
}
.app-ui :is(.inv-card-art, .collector-thumb) {
  background: var(--theme-raised, #f3f4f1);
}
.app-ui .inv-card {
  border-top-color: var(--rarity, var(--border));
}
.app-ui :is(.inv-card-flags span, .pf-pill, .collector-badge) {
  border-radius: 999px;
}
.app-ui
  :is(
    .quick-profile-card,
    .payment-success-card,
    .pf-dialog,
    .trd-dialog,
    .blinta-dialog-card,
    .lmd-modal,
    .cookie-banner
  ) {
  background: var(--theme-surface, #fff);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 22px;
  clip-path: none;
  box-shadow: var(--shadow-lg);
}
.app-ui
  :is(
    .quick-rail-avatar,
    .quick-rail-btn,
    .quick-modal-icon,
    .quick-modal-fallback,
    .quick-riot-icon,
    .quick-riot-fallback
  ) {
  border-radius: 14px;
  clip-path: none;
}
.app-ui .quick-rail-btn {
  background: var(--theme-raised, #f6f6f6);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.app-ui .quick-rail-btn svg {
  fill: var(--theme-muted, #555);
}
.app-ui .quick-rail-btn.has-notifications {
  background: var(--theme-raised, #eef2e9);
  border-color: #91ae83;
}
.app-ui .quick-profile-overlay {
  background: #17171766;
}
.app-ui .missions-quick-rail {
  background: transparent;
  border-left: 0;
}
.app-ui :is(.auth-card, .reset-password-card) {
  border-radius: 24px;
  padding: 36px;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.app-ui .auth-tabs {
  background: var(--theme-raised, #f3f3f3);
  padding: 5px;
  border: 0;
  border-radius: 999px;
  gap: 4px;
}
.app-ui .auth-tab {
  border: 0;
  border-radius: 999px;
  color: var(--theme-muted, #666);
  background: transparent;
}
.app-ui .auth-tab[aria-selected="true"] {
  background: #171717;
  color: #fff;
  box-shadow: none;
}
.app-ui .auth-steam-btn {
  background: var(--theme-raised, #f6f6f6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
}

/* Tables, filters and status colors */
.app-ui table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.app-ui thead th {
  background: var(--theme-raised, #f7f7f7);
  color: var(--theme-muted, #686868);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--border);
}
.app-ui tbody td {
  border-bottom-color: var(--border);
}
.app-ui tbody tr:hover {
  background: var(--theme-raised, #f8f8f8);
}
.app-ui :is(.cs2an-subnav, .pf-jump-nav, .collector-nav) {
  background: rgba(var(--theme-raised-rgb, 245, 245, 245), 0.961);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  top: 100px;
}
.app-ui :is(.cs2an-subnav a, .collector-nav button) {
  border-radius: 999px;
  color: var(--theme-muted, #686868);
  font: 550 13px/1.4 var(--sans);
}
.app-ui
  :is(.cs2an-subnav a.is-active, .collector-nav button[aria-pressed="true"]) {
  background: #171717;
  color: #fff;
  border-color: #171717;
}
.app-ui .pf-main,
.app-ui .pf-dialog {
  --ok: #287248;
  --ok-soft: #edf6ef;
  --ok-ring: #c6dfca;
  --warn: #88611e;
  --warn-soft: #fff6e3;
  --warn-ring: #ecdbaf;
  --danger: #b13939;
  --danger-soft: #fff0ef;
  --danger-ring: #edc6c3;
  --gold-soft: #f6f1e5;
  --gold-ring: #e5d9bc;
}
.app-ui :is(.camp-connect, .inv-notice) {
  background: #fff8ea;
  border-color: #e7d8b5;
  color: #725721;
  border-radius: 14px;
}
.app-ui :is(.collector-heading h1, .camp-hero h1) {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.05em;
}
.app-ui
  :is(
    .collector-section > summary:hover h2,
    .inv-text-button,
    .inv-card a,
    .collector-record a
  ) {
  color: #365d31;
}
.app-ui .collector-section > summary:focus-visible {
  outline-color: #477b42;
}
.app-ui .collector-tip {
  background: var(--theme-surface, #fff);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.app-ui .collector-axis {
  fill: var(--theme-muted, #6b6b6b);
}
.app-ui :is(.collector-line, .collector-spark-line) {
  stroke: #477b42;
}
.app-ui :is(.collector-area, .collector-spark-area) {
  fill: #477b42;
}
.app-ui .collector-point {
  fill: #477b42;
  stroke: #fff;
}
.app-ui .collector-chart .collector-point:focus {
  stroke: var(--theme-text, #171717);
}
.app-ui .collector-grid-line {
  stroke: #e6e6e6;
}
.app-ui .collector-baseline {
  stroke: #bbb;
}
.app-ui :is(.collector-key, .collector-bar-fill.is-up) {
  background: #477b42;
}
.app-ui .collector-key.is-down {
  background: #c44747;
}
.app-ui .collector-key.is-estimate {
  background: #477b42;
}
.app-ui .collector-delta.is-up {
  color: #366b36;
}
.app-ui .collector-delta.is-down {
  color: #b13939;
}
.app-ui .collector-section > summary::after {
  border-color: #777;
}
.app-ui .collector-eyebrow {
  color: var(--theme-muted, #6b6b6b);
  font-family: var(--sans);
  text-transform: none;
}
.app-ui .collector-nav button[aria-pressed="true"] .collector-badge {
  color: #fff;
  border-color: #777;
}
.app-ui .upgrade-plan-card {
  border-radius: 16px;
}
.app-ui .upgrade-plan-card:is(.is-selected, :hover) {
  border-color: #171717;
  box-shadow: none;
}
.app-ui .upgrade-plan-card .plan-label {
  color: var(--theme-muted, #626262);
}
.app-ui .upgrade-pay-btn {
  background: #171717;
  color: #fff;
  padding: 12px 22px;
}
.app-ui .upgrade-pay-btn:hover {
  background: #383838;
}
.app-ui .bx-header-actions #logout-btn {
  border-radius: 999px;
}
.app-ui .mission-browser-card {
  border-radius: 18px;
  padding: 14px;
  border-color: var(--border);
  background: var(--theme-surface, #fff);
  box-shadow: none;
}
.app-ui .mission-browser-card-thumb {
  border-radius: 12px;
}
.app-ui .mission-browser-card h3 {
  font-size: 18px;
  line-height: 1.3;
}
.app-ui .mission-browser-card.is-selected {
  border-color: #171717;
  box-shadow: none;
}
.app-ui .mission-browser-tab.is-active {
  background: #171717;
  border-color: #171717;
  color: #fff;
}
.app-ui .cs2sc-dek {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
}
.app-ui :is(.cs2sc-code-card, .cs2c-card) {
  border-radius: 18px;
}
.app-ui .cs2sc-code-sample {
  border-radius: 8px;
  background: var(--theme-raised, #f6f6f6);
}

/* Footer */
.app-ui .bx-footer {
  padding: 52px 32px 24px;
  background: var(--theme-raised, #f5f5f5);
  border-top: 0;
}
.app-ui .bx-footer-word {
  width: min(1240px, 100%);
  margin: 0 auto 26px;
  font: 800 36px/1.1 var(--sans);
  text-transform: lowercase;
  text-align: left;
  letter-spacing: -2px;
  color: var(--theme-text, #171717);
  -webkit-text-stroke: 0;
}
.app-ui .bx-footer-in {
  width: min(1240px, 100%);
  margin: auto;
  padding: 0;
}
.app-ui .bx-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0;
}
.app-ui .bx-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.app-ui .bx-footer-k {
  color: var(--theme-muted, #757575);
  font: 400 12px/1.5 var(--sans);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 6px;
}
.app-ui .bx-footer-col a {
  color: var(--theme-text, #333);
  font-size: 13px;
  text-decoration: none;
}
.app-ui .bx-footer-col a:hover {
  text-decoration: underline;
  transform: none;
}
.app-ui .bx-footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
}
.app-ui .bx-footer-discord img {
  width: 18px;
  filter: grayscale(1) brightness(0.3);
}
.app-ui .bx-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--theme-border, #dedede);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 11px;
  color: var(--theme-muted, #757575);
}
.app-ui .bx-footer-legal {
  max-width: 700px;
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

/* Consent is also used on the standalone homepage. */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: min(560px, calc(100vw - 40px));
  padding: 18px 22px;
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #171717);
  border: 1px solid var(--theme-border, #e6e6e6);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  clip-path: none;
}
.cookie-banner__text {
  margin: 0;
  font: 400 12px/1.6 var(--sans);
  color: var(--theme-muted, #626262);
}
.cookie-banner__link {
  display: inline;
  color: var(--theme-text, #171717);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
}
.cookie-banner__btn {
  padding: 9px 14px;
  border: 1px solid var(--theme-border, #dedede);
  border-radius: 999px;
  font: 550 12px/1.4 var(--sans);
  text-transform: none;
  letter-spacing: 0;
  clip-path: none;
  cursor: pointer;
}
.cookie-banner__btn--accept {
  background: #171717;
  color: #fff;
}
.cookie-banner__btn--decline {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #171717);
}
.cookie-banner--hiding {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

/* Recap artwork stays a presentation canvas; entry screens use app chrome. */
.app-ui.recap-body {
  background: var(--theme-surface, #fff);
}
.app-ui :is(.recap-back-bar, .recap-progress) {
  background: rgba(var(--theme-raised-rgb, 245, 245, 245), 0.961);
  color: var(--theme-text, #171717);
  border-color: var(--theme-border, #e6e6e6);
}
.app-ui :is(.recap-screen-loading, .recap-screen-error) {
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #171717);
}
.app-ui :is(.recap-loading-logo, .recap-loading-label, .recap-error-inner h1) {
  color: var(--theme-text, #171717);
  font-family: var(--sans);
  text-shadow: none;
}
.app-ui .recap-loading-logo::before,
.app-ui .recap-loading-logo::after {
  content: none;
}
.app-ui .recap-slide {
  --text: #f4f4f4;
  --muted: #b5b5b5;
  --paper: #f4f4f4;
  --paper-dim: #b5b5b5;
}
.app-ui .recap-slide :is(h1, h2, h3, h4) {
  color: #fff;
}
.app-ui .recap-year-btn {
  border-radius: 999px;
  color: var(--theme-muted, #666);
  border-color: var(--theme-border, #ddd);
}
.app-ui .recap-year-btn-active {
  color: var(--theme-text, #171717);
  background: var(--theme-raised, #e8e8e8);
  border-color: var(--theme-border, #ddd);
}

/* Admin keeps its information architecture and shares the visual primitives. */
.admin-ui .sidebar {
  background: var(--theme-raised, #f7f7f7);
  border-right-color: var(--border);
}
.admin-ui .topbar {
  background: rgba(var(--theme-surface-rgb, 255, 255, 255), 0.929);
  border-bottom-color: var(--border);
}
.admin-ui .content {
  padding: 32px;
}
.admin-ui .brand {
  color: var(--theme-text, #171717);
  letter-spacing: -0.6px;
}
.admin-ui .brand-mark {
  position: relative;
  background: transparent;
  border-radius: 0;
}
.admin-ui .brand-mark img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}
.admin-ui .btn {
  border-radius: 999px;
}
.admin-ui .btn.primary {
  background: #171717;
  border-color: #171717;
  color: #fff;
}
.admin-ui .btn.primary:hover {
  background: #383838;
}
.admin-ui :is(.card, .kpi, .login-card) {
  border-radius: 20px;
  box-shadow: none;
}
.admin-ui :is(.nav-item, .sidebar-nav a) {
  border-radius: 12px;
}
.admin-ui h1 {
  font-weight: 600;
  letter-spacing: -0.035em;
}
.admin-ui :is(input, select, textarea) {
  border-radius: 10px;
}

@media (min-width: 1281px) {
  .app-ui .bx-burger {
    display: none;
  }
  .app-ui #bx-game-switcher {
    display: block;
  }
  .app-ui .bx-game-menu-label {
    max-width: 110px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
}
@media (max-width: 1280px) {
  .app-ui .bx-nav {
    display: none;
  }
  .app-ui .bx-burger {
    display: flex;
    margin-left: 0;
  }
  .app-ui .bx-header-actions {
    margin-left: auto;
  }
  .app-ui #bx-game-switcher {
    display: block;
  }
}
@media (max-width: 900px) {
  .app-ui .bx-header,
  .app-ui .bx-header.is-stuck {
    top: 12px;
    left: 12px;
    right: 12px;
    height: 58px;
  }
  .app-ui .bx-header-in {
    padding: 0 16px;
    gap: 12px;
  }
  .app-ui .page-main {
    padding: 98px 20px 40px;
    gap: 18px;
  }
  .app-ui #bx-game-switcher {
    display: none;
  }
  .app-ui .bx-header-actions .side-riot-chip {
    display: none;
  }
  .app-ui :is(.cs2an-subnav, .pf-jump-nav, .collector-nav) {
    top: 82px;
  }
  .app-ui .panel {
    padding: 20px;
  }
  .app-ui .bx-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-ui .bx-footer-base {
    flex-direction: column;
    gap: 16px;
  }
  .admin-ui .content {
    padding: 20px;
  }
}
@media (max-width: 600px) {
  .app-ui .bx-header-actions .upgrade-link {
    display: none;
  }
  .app-ui .bx-header-actions :is(a, button) {
    padding: 8px 12px;
  }
  .app-ui .bx-burger {
    width: 34px;
    padding: 0 6px;
  }
  .app-ui .page-main {
    padding-inline: 16px;
  }
  .app-ui .panel {
    padding: 18px;
    border-radius: 16px;
  }
  .app-ui .bx-footer {
    padding: 36px 24px 24px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .app-ui .auth-card {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
