[hidden] { display: none !important; }


/* RandoLeague extra layout */
.navbar {
  height: var(--nav-height);
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 6, 8, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.logo {
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .95rem;
}
.logo span { color: var(--color-primary); }
.navlinks {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.navlinks a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--color-text-muted);
}
.navlinks a:hover, .navlinks a.active { color: var(--color-accent-soft); }
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  align-items: center;
  padding: var(--space-xl) 0;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 10% 10% 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: .45;
}
.hero__content { max-width: 840px; }
.hero__eyebrow {
  font-family: var(--font-heading);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  margin-bottom: var(--space-md);
}
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-lg); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.section { padding: var(--space-xl) 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--color-border); text-align: left; }
th {
  font-family: var(--font-heading);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
}
td { color: var(--color-text-muted); }
tr:hover td { color: var(--color-text); background: rgba(255,255,255,.02); }
.form-stack { display: grid; gap: var(--space-md); max-width: 520px; }
.form-row { display: grid; gap: var(--space-sm); }
label {
  font-family: var(--font-heading);
  color: var(--color-text);
  letter-spacing: .07em;
  font-size: .85rem;
}
.help { font-size: .86rem; color: var(--color-text-dim); margin-bottom: 0; }
.alert {
  padding: var(--space-md);
  border: 1px solid var(--color-border-light);
  background: rgba(192, 25, 43, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.alert--success { border-color: rgba(61, 158, 95, .5); background: rgba(61,158,95,.08); }
.kpi {
  display: grid;
  gap: var(--space-xs);
}
.kpi strong {
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 2rem;
}
.codebox {
  width: 100%;
  min-height: 180px;
  background: var(--color-bg-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: Consolas, Monaco, monospace;
  resize: vertical;
}
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  color: var(--color-text-dim);
}
.hidden-page-warning {
  border-color: var(--color-gold-dim);
  background: rgba(201,168,76,.08);
}
@media (max-width: 900px) {
  .grid, .grid--2 { grid-template-columns: 1fr; }
  .navbar { height: auto; padding: var(--space-md) 0; }
  .navbar__inner { align-items: flex-start; flex-direction: column; }
}


.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.podium {
  margin-top: var(--space-lg);
}
.podium-stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: var(--space-md);
  align-items: end;
}
.podium-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    linear-gradient(180deg, rgba(192,25,43,.18), rgba(20,10,12,.4));
  border: 1px solid var(--color-border-light);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 22px 18px 0;
  box-shadow: var(--shadow-card), var(--shadow-red), var(--shadow-inset);
  overflow: hidden;
  text-align: center;
}
.podium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.16), transparent 40%);
  pointer-events: none;
}
.podium-card > * { position: relative; z-index: 1; }
.podium-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-heading);
  letter-spacing: .08em;
}
.podium-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  border: 2px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(232,41,63,.8), rgba(61,24,32,.95));
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}
.podium-card h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.podium-score {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  color: var(--color-gold);
  margin: 0 0 10px;
  text-shadow: 0 0 22px rgba(201,168,76,.2);
}
.podium-meta {
  display: grid;
  gap: 4px;
  color: var(--color-text-muted);
  padding-bottom: 18px;
}
.podium-step {
  margin-top: 8px;
  display: grid;
  place-items: center;
  min-height: 68px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  font-family: var(--font-display);
  font-size: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
  color: #fff;
}
.podium-card--1 {
  border-color: rgba(201,168,76,.5);
}
.podium-card--1 .podium-avatar,
.podium-card--1 .podium-step {
  background: linear-gradient(135deg, rgba(201,168,76,.9), rgba(138,109,47,.95));
  color: #170d03;
}
.podium-card--1 {
  transform: translateY(-34px);
}
.podium-card--2 {
  transform: translateY(-16px);
}
.podium-card--3 {
  transform: translateY(0);
}
.podium-card--1 .podium-step { min-height: 130px; }
.podium-card--2 .podium-step { min-height: 96px; }
.podium-card--3 .podium-step { min-height: 64px; }
@media (max-width: 900px) {
  .podium-stage { grid-template-columns: 1fr; align-items: stretch; }
  .podium-card--1, .podium-card--2, .podium-card--3 { transform: none; }
  .podium-card--1 .podium-step,
  .podium-card--2 .podium-step,
  .podium-card--3 .podium-step { min-height: 64px; }
}



/* Alignment fix for calculator/leaderboard tables */
.table-wrap table { min-width: 1250px; }
.table-wrap th, .table-wrap td { vertical-align: middle; white-space: nowrap; }
.table-wrap td code { white-space: nowrap; }
.table-wrap td:nth-child(1),
.table-wrap td:nth-child(3),
.table-wrap td:nth-child(4),
.table-wrap td:nth-child(5),
.table-wrap td:nth-child(6),
.table-wrap td:nth-child(7),
.table-wrap td:nth-child(8),
.table-wrap td:nth-child(9),
.table-wrap td:nth-child(10) { text-align: center; }
#calculatorAggregateBody td:nth-child(2),
#calculatorHistoryBody td:nth-child(2),
#calculatorHistoryBody td:nth-child(3) { text-align: left; }

/* UI polish 20260511-ui-polish2 */
.navlinks,
#accountSlot,
#accountSlot a {
  display: inline-flex;
  align-items: center;
}
.navlinks a,
#accountSlot a {
  line-height: 1;
}

.section--tight {
  padding-top: var(--space-lg);
}
.stats-grid {
  margin-top: calc(var(--space-lg) * -1);
}

.leaderboard-search-card {
  max-width: 520px;
  display: grid;
  gap: var(--space-sm);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-search {
  width: min(320px, 100%);
}
.sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.table-wrap--no-scroll {
  overflow-x: visible;
}
.admin-table-card table {
  table-layout: fixed;
  min-width: 0;
}
.admin-table-card th:nth-child(1),
.admin-table-card td:nth-child(1) { width: 26%; }
.admin-table-card th:nth-child(2),
.admin-table-card td:nth-child(2) { width: 44%; }
.admin-table-card th:nth-child(3),
.admin-table-card td:nth-child(3) { width: 14%; }
.admin-table-card th:nth-child(4),
.admin-table-card td:nth-child(4) { width: 16%; text-align: right; }
.admin-user-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-hash-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}
.admin-hash-cell code {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-copy-hash {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: .7rem;
}
.btn-admin-action {
  padding: 8px 12px;
}

.account-profile-card {
  display: grid;
  gap: var(--space-md);
}
.account-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-md);
}
.account-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(232,41,63,.8), rgba(61,24,32,.95));
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-card), var(--shadow-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  overflow: hidden;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-uploader {
  display: grid;
  gap: var(--space-sm);
}

@media (max-width: 900px) {
  .stats-grid {
    margin-top: 0;
  }
  .admin-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .table-wrap--no-scroll {
    overflow-x: auto;
  }
  .admin-table-card table {
    min-width: 720px;
  }
}
@media (max-width: 520px) {
  .account-profile {
    grid-template-columns: 1fr;
  }
}


/* Shared navbar partial */
[data-include="partials/navbar.html"] { display: block; }
#accountSlot {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
#accountSlot a {
  display: inline-flex;
  align-items: center;
}


/* UI polish 20260511-downloadfix */
.table-wrap--fit {
  overflow-x: visible;
}
.table-wrap--fit table {
  min-width: 0 !important;
  table-layout: fixed;
  width: 100%;
}
.table-wrap--fit th,
.table-wrap--fit td {
  padding: 10px 10px;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leaderboard-search-card--wide {
  max-width: none;
  width: 100%;
  padding: 18px 22px;
}
.leaderboard-search-card--wide label {
  margin-bottom: 4px;
}
.leaderboard-search-card--wide .input {
  min-height: 46px;
  font-size: 1rem;
}
.leaderboard-table-card {
  padding: 22px;
}
.leaderboard-table th:nth-child(1), .leaderboard-table td:nth-child(1) { width: 8%; }
.leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) { width: 17%; text-align: left; }
.leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { width: 10%; }
.leaderboard-table th:nth-child(4), .leaderboard-table td:nth-child(4) { width: 8%; }
.leaderboard-table th:nth-child(5), .leaderboard-table td:nth-child(5),
.leaderboard-table th:nth-child(6), .leaderboard-table td:nth-child(6),
.leaderboard-table th:nth-child(7), .leaderboard-table td:nth-child(7) { width: 11%; }
.leaderboard-table th:nth-child(8), .leaderboard-table td:nth-child(8),
.leaderboard-table th:nth-child(9), .leaderboard-table td:nth-child(9) { width: 12%; }
.leaderboard-table th,
.leaderboard-table td { text-align: center; }

.calculator-table-card {
  padding: 20px;
}
.calculator-table th,
.calculator-table td {
  font-size: .82rem;
  padding: 9px 7px;
  text-align: center;
}
.calculator-table th:nth-child(2),
.calculator-table td:nth-child(2) { text-align: left; }
.calculator-table--aggregate th:nth-child(1), .calculator-table--aggregate td:nth-child(1) { width: 7%; }
.calculator-table--aggregate th:nth-child(2), .calculator-table--aggregate td:nth-child(2) { width: 17%; }
.calculator-table--aggregate th:nth-child(3), .calculator-table--aggregate td:nth-child(3) { width: 12%; }
.calculator-table--aggregate th:nth-child(4), .calculator-table--aggregate td:nth-child(4) { width: 7%; }
.calculator-table--aggregate th:nth-child(5), .calculator-table--aggregate td:nth-child(5),
.calculator-table--aggregate th:nth-child(6), .calculator-table--aggregate td:nth-child(6),
.calculator-table--aggregate th:nth-child(7), .calculator-table--aggregate td:nth-child(7) { width: 12%; }
.calculator-table--aggregate th:nth-child(8), .calculator-table--aggregate td:nth-child(8),
.calculator-table--aggregate th:nth-child(9), .calculator-table--aggregate td:nth-child(9) { width: 12%; }
.calculator-table--history th:nth-child(1), .calculator-table--history td:nth-child(1) { width: 5%; }
.calculator-table--history th:nth-child(2), .calculator-table--history td:nth-child(2) { width: 14%; }
.calculator-table--history th:nth-child(3), .calculator-table--history td:nth-child(3) { width: 14%; text-align: left; }
.calculator-table--history th:nth-child(4), .calculator-table--history td:nth-child(4) { width: 13%; }
.calculator-table--history th:nth-child(5), .calculator-table--history td:nth-child(5) { width: 10%; }
.calculator-table--history th:nth-child(6), .calculator-table--history td:nth-child(6),
.calculator-table--history th:nth-child(7), .calculator-table--history td:nth-child(7),
.calculator-table--history th:nth-child(8), .calculator-table--history td:nth-child(8),
.calculator-table--history th:nth-child(9), .calculator-table--history td:nth-child(9) { width: 8%; }
.calculator-table--history th:nth-child(10), .calculator-table--history td:nth-child(10) { width: 10%; }

.account-profile {
  grid-template-columns: auto minmax(0, 1fr);
}
.avatar-upload-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  cursor: pointer;
  letter-spacing: 0;
}
.avatar-upload-trigger .account-avatar {
  transition: filter var(--transition-medium), transform var(--transition-medium), opacity var(--transition-medium);
}
.avatar-upload-trigger:hover .account-avatar {
  filter: brightness(.62);
  transform: scale(.98);
  opacity: .78;
}
.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: 0;
  transition: opacity var(--transition-medium);
  pointer-events: none;
}
.avatar-upload-trigger:hover .avatar-upload-overlay {
  opacity: 1;
}
.avatar-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.account-actions,
.download-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.download-buttons .btn {
  flex: 1 1 210px;
  justify-content: center;
}

.btn-overlay-customizer {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.overlay-rainbow-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: conic-gradient(#ff3b3b, #ffb13b, #fff45c, #45e06f, #42b7ff, #8d5cff, #ff4fd8, #ff3b3b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 0 14px rgba(255,255,255,.18);
}
.overlay-rainbow-icon::after {
  content: "";
  display: block;
  width: 46%;
  height: 46%;
  margin: 27%;
  border-radius: 999px;
  background: rgba(8,10,18,.82);
}

.admin-toolbar {
  align-items: center;
}
.admin-actions {
  min-width: min(420px, 100%);
}
.admin-actions .admin-search {
  flex: 1 1 260px;
  min-height: 44px;
}
.admin-table-card {
  padding: 24px 32px;
}
.admin-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 0 !important;
}
.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.admin-table th:nth-child(1), .admin-table td:nth-child(1) { width: 25%; }
.admin-table th:nth-child(2), .admin-table td:nth-child(2) { width: 43%; text-align: left; }
.admin-table th:nth-child(3), .admin-table td:nth-child(3) { width: 16%; text-align: center; }
.admin-table th:nth-child(4), .admin-table td:nth-child(4) { width: 16%; text-align: right; }
.admin-hash-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}
.admin-hash-cell code {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-copy-hash {
  flex: 0 0 auto;
  padding: 6px 10px;
}

@media (max-width: 980px) {
  .table-wrap--fit {
    overflow-x: auto;
  }
  .table-wrap--fit table,
  .leaderboard-table,
  .calculator-table,
  .admin-table {
    min-width: 900px !important;
  }
}


/* Final navbar fallback + account avatar tweaks */
[data-include="partials/navbar.html"] { display: block; }
#accountSlot { display: inline-flex; align-items: center; }
#accountSlot a { display: inline-flex; align-items: center; line-height: 1; }
.account-avatar { text-transform: uppercase; }
.avatar-upload-trigger { cursor: pointer; }


/* Final requested fixes 20260511-finalrequested */
.hash-wrap,
#accountHash {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.hash-wrap {
  margin-bottom: 0;
}
#accountHash {
  display: inline-block;
  line-height: 1.6;
}

.auth-section {
  min-height: calc(100vh - var(--nav-height) - 120px);
}
.auth-container {
  max-width: 720px;
}
.auth-form-card {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.auth-container > p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.calculator-top-grid {
  align-items: start;
}
.calculator-mini-card {
  padding: 18px 20px;
}
.calculator-mini-card h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.calculator-mini-card p {
  font-size: .92rem;
  margin-bottom: 0;
}
.calculator-mini-card .form-stack {
  gap: 10px;
}
.calculator-mini-card .form-row {
  gap: 5px;
}
.calculator-mini-card .input {
  min-height: 38px;
  padding: 8px 12px;
}
.calculator-search-card {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
}
.calculator-search-card .input {
  min-height: 42px;
}

/* Make calculator tables fit better on desktop */
.calculator-table-card { padding: 16px; }
.calculator-table th,
.calculator-table td {
  font-size: .76rem;
  padding: 8px 5px;
}
.calculator-table--aggregate th:nth-child(1), .calculator-table--aggregate td:nth-child(1) { width: 7%; }
.calculator-table--aggregate th:nth-child(2), .calculator-table--aggregate td:nth-child(2) { width: 16%; }
.calculator-table--aggregate th:nth-child(3), .calculator-table--aggregate td:nth-child(3) { width: 11%; }
.calculator-table--aggregate th:nth-child(4), .calculator-table--aggregate td:nth-child(4) { width: 7%; }
.calculator-table--aggregate th:nth-child(5), .calculator-table--aggregate td:nth-child(5),
.calculator-table--aggregate th:nth-child(6), .calculator-table--aggregate td:nth-child(6),
.calculator-table--aggregate th:nth-child(7), .calculator-table--aggregate td:nth-child(7) { width: 11%; }
.calculator-table--aggregate th:nth-child(8), .calculator-table--aggregate td:nth-child(8),
.calculator-table--aggregate th:nth-child(9), .calculator-table--aggregate td:nth-child(9) { width: 13%; }
.calculator-table--history th:nth-child(1), .calculator-table--history td:nth-child(1) { width: 4%; }
.calculator-table--history th:nth-child(2), .calculator-table--history td:nth-child(2) { width: 13%; }
.calculator-table--history th:nth-child(3), .calculator-table--history td:nth-child(3) { width: 13%; }
.calculator-table--history th:nth-child(4), .calculator-table--history td:nth-child(4) { width: 13%; }
.calculator-table--history th:nth-child(5), .calculator-table--history td:nth-child(5) { width: 9%; }
.calculator-table--history th:nth-child(6), .calculator-table--history td:nth-child(6),
.calculator-table--history th:nth-child(7), .calculator-table--history td:nth-child(7),
.calculator-table--history th:nth-child(8), .calculator-table--history td:nth-child(8),
.calculator-table--history th:nth-child(9), .calculator-table--history td:nth-child(9) { width: 8%; }
.calculator-table--history th:nth-child(10), .calculator-table--history td:nth-child(10) { width: 8%; }

@media (min-width: 981px) {
  .calculator-table-card.table-wrap--fit { overflow-x: visible; }
  .calculator-table { min-width: 0 !important; width: 100%; table-layout: fixed; }
}


/* 20260511 direct download + hash overflow fixes */
.hash-wrap {
  max-width: 100%;
  overflow: hidden;
}
.hash-wrap code,
#accountHash {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
  line-height: 1.45;
}
.calculator-mini-card {
  padding: 18px;
}
.calculator-mini-card .form-stack {
  gap: 10px;
}
.calculator-mini-card .input {
  padding: 8px 12px;
}


/* Practice Tool / anti-cheat badges */
.anticheat-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.calculator-table--history th:nth-child(10),
.calculator-table--history td:nth-child(10) { width: 11%; }
.calculator-table--history th:nth-child(11),
.calculator-table--history td:nth-child(11) { width: 8%; }

.btn-small {
  padding: 6px 10px;
  font-size: .72rem;
  letter-spacing: .08em;
}
.run-abandoned td {
  opacity: .72;
  background: rgba(192,25,43,.06);
}
.pool-table th,
.pool-table td {
  white-space: nowrap;
}


/* Pool page: never expose or reserve space for player hashes */
.pool-table { min-width: 560px; }
.pool-table th, .pool-table td { white-space: nowrap; }


/* Pool en cours — compact list, no horizontal scroll */
.pool-panel {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}
.pool-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.pool-count {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-gold);
  line-height: 1;
}
.pool-list {
  display: grid;
  gap: 10px;
  overflow: visible;
}
.pool-player-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, .14);
}
.pool-player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(232,41,63,.75), rgba(61,24,32,.95));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .05em;
}
.pool-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pool-player-info {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}
.pool-player-info strong {
  color: var(--color-text);
  font-family: var(--font-heading);
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pool-player-info span {
  color: var(--color-text-muted);
  font-size: .92rem;
}
.pool-player-timer {
  display: grid;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
}
.pool-player-timer span {
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pool-player-timer strong {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1rem;
}
.pool-empty {
  margin: 0;
  padding: var(--space-md);
  color: var(--color-text-muted);
  text-align: left;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}
@media (max-width: 640px) {
  .pool-panel__head { align-items: flex-start; flex-direction: column; }
  .pool-player-card { grid-template-columns: 42px minmax(0, 1fr); }
  .pool-player-avatar { width: 42px; height: 42px; }
  .pool-player-timer { grid-column: 2; text-align: left; }
}


/* Pool finale: liste sans tableau, sans scroll horizontal */
.pool-list { display: grid; gap: 12px; margin-top: var(--space-lg); overflow: visible; }
.pool-player-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.025);
}
.pool-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(232,41,63,.85), rgba(61,24,32,.95));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-family: var(--font-display);
  font-size: .9rem;
}
.pool-player-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pool-player-info { min-width: 0; display: grid; gap: 2px; }
.pool-player-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-player-info span, .pool-player-timer span { color: var(--color-text-muted); font-size: .86rem; }
.pool-player-timer { text-align: right; display: grid; gap: 2px; }
.pool-player-timer strong { color: var(--color-gold); font-family: var(--font-heading); letter-spacing: .06em; }
@media (max-width: 640px) {
  .pool-player-card { grid-template-columns: 46px minmax(0, 1fr); }
  .pool-player-timer { grid-column: 2; text-align: left; }
}


/* 20260512 - Run Calculator layout fix */
.calculator-table-card {
  overflow: hidden;
}
.calculator-table--history {
  table-layout: fixed;
  width: 100%;
  min-width: 0 !important;
  font-size: .82rem;
}
.calculator-table--history th,
.calculator-table--history td {
  padding: 9px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.calculator-table--history th:nth-child(1), .calculator-table--history td:nth-child(1) { width: 4%; }
.calculator-table--history th:nth-child(2), .calculator-table--history td:nth-child(2) { width: 12%; }
.calculator-table--history th:nth-child(3), .calculator-table--history td:nth-child(3) { width: 12%; }
.calculator-table--history th:nth-child(4), .calculator-table--history td:nth-child(4) { width: 12%; }
.calculator-table--history th:nth-child(5), .calculator-table--history td:nth-child(5) { width: 8%; }
.calculator-table--history th:nth-child(6), .calculator-table--history td:nth-child(6),
.calculator-table--history th:nth-child(7), .calculator-table--history td:nth-child(7),
.calculator-table--history th:nth-child(8), .calculator-table--history td:nth-child(8),
.calculator-table--history th:nth-child(9), .calculator-table--history td:nth-child(9) { width: 6%; }
.calculator-table--history th:nth-child(10), .calculator-table--history td:nth-child(10) { width: 12%; }
.calculator-table--history th:nth-child(11), .calculator-table--history td:nth-child(11) { width: 9%; }
.calculator-table--history th:nth-child(12), .calculator-table--history td:nth-child(12) { width: 5%; }
.screens-row td {
  padding: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.screens-panel,
.screens-panel * {
  white-space: normal !important;
}
.screens-panel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 8px;
}
.screens-panel .alert,
.screens-panel code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.screens-panel__head {
  align-items: flex-start;
}
.screens-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
@media (max-width: 980px) {
  .calculator-table-card { overflow-x: auto; }
  .calculator-table--history { min-width: 900px !important; }
}


/* Race rules / pool action */
.pool-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: var(--space-md) 0 var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  background: rgba(0,0,0,.12);
  border-radius: var(--radius-md);
}
.btn-blue {
  background: #1f6feb;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(31,111,235,.55), 0 0 22px rgba(31,111,235,.25);
}
.btn-blue:hover { filter: brightness(1.12); color: #fff; }
.btn-disabled,
.btn-disabled:hover {
  background: rgba(255,255,255,.06);
  color: var(--color-text-dim);
  box-shadow: 0 0 0 1px var(--color-border);
  cursor: not-allowed;
  transform: none;
}
.pool-player-card--abandon,
.pool-player-card--timeout {
  opacity: .74;
  border-color: rgba(192,25,43,.5);
}
.calculator-table--history th,
.calculator-table--history td { font-size: .78rem; padding-left: 7px; padding-right: 7px; }
.calculator-table--history th:nth-child(1), .calculator-table--history td:nth-child(1) { width: 4%; }
.calculator-table--history th:nth-child(2), .calculator-table--history td:nth-child(2) { width: 10%; }
.calculator-table--history th:nth-child(3), .calculator-table--history td:nth-child(3) { width: 11%; }
.calculator-table--history th:nth-child(4), .calculator-table--history td:nth-child(4) { width: 12%; }
.calculator-table--history th:nth-child(5), .calculator-table--history td:nth-child(5) { width: 8%; }
.calculator-table--history th:nth-child(6), .calculator-table--history td:nth-child(6),
.calculator-table--history th:nth-child(7), .calculator-table--history td:nth-child(7),
.calculator-table--history th:nth-child(8), .calculator-table--history td:nth-child(8),
.calculator-table--history th:nth-child(9), .calculator-table--history td:nth-child(9),
.calculator-table--history th:nth-child(10), .calculator-table--history td:nth-child(10),
.calculator-table--history th:nth-child(11), .calculator-table--history td:nth-child(11) { width: 6%; text-align: center; }
.calculator-table--history th:nth-child(12), .calculator-table--history td:nth-child(12) { width: 9%; text-align: center; }
.calculator-table--history th:nth-child(13), .calculator-table--history td:nth-child(13) { width: 5%; text-align: center; }
@media (max-width: 760px) {
  .pool-actions { align-items: stretch; flex-direction: column; }
}


/* 20260512 - Pool hour slots */
.pool-panel {
  max-width: 1120px;
}
.pool-list {
  display: grid;
  gap: 16px;
  margin-top: var(--space-lg);
  overflow: visible;
}
.pool-slot-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.018);
  box-shadow: var(--shadow-card), var(--shadow-inset);
  overflow: hidden;
}
.pool-slot-card--current {
  border-color: var(--color-gold-dim);
}
.pool-slot-card--active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card), var(--shadow-red), var(--shadow-inset);
}
.pool-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(0,0,0,.16);
}
.pool-slot-head h2 {
  margin-top: 6px;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
}
.pool-slot-head strong {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}
.pool-slot-players {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.pool-slot-empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--color-text-dim);
  text-align: left;
}
.pool-player-card {
  grid-template-columns: 48px minmax(0, 1fr) 150px 100px;
  padding: 10px 12px;
  gap: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.12);
}
.pool-player-info span {
  color: var(--color-text-muted);
}
.pool-player-timer {
  text-align: right;
}
.pool-player-timer strong {
  color: var(--color-gold);
}
.pool-player-card--abandon .pool-player-timer strong,
.pool-player-card--timeout .pool-player-timer strong {
  color: var(--color-accent-soft);
}
.pool-player-status {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .pool-slot-head { align-items: flex-start; flex-direction: column; }
  .pool-player-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .pool-player-avatar { width: 42px; height: 42px; }
  .pool-player-timer,
  .pool-player-status {
    grid-column: 2;
    text-align: left;
    justify-content: flex-start;
  }
}


/* Règlement */
.rules-page ul {
  margin: var(--space-md) 0 0 1.2rem;
  color: var(--color-text-muted);
}
.rules-page li { margin: 6px 0; }
.rules-hero h2 { margin-top: var(--space-md); }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}
.rules-card p:last-child,
.rules-card ul:last-child { margin-bottom: 0; }
.rules-rank-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-sm);
}
.rules-rank-grid div {
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: grid;
  gap: 4px;
  text-align: center;
}
.rules-rank-grid strong {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-size: .82rem;
}
.rules-rank-grid span {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
@media (max-width: 980px) {
  .rules-grid { grid-template-columns: 1fr; }
  .rules-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .rules-rank-grid { grid-template-columns: 1fr; }
}


/* Rank / grade display */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border-light);
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(255,255,255,.045);
  white-space: nowrap;
}
.rank-iron { --rank-color: #8b8178; }
.rank-bronze { --rank-color: #b26b35; }
.rank-silver { --rank-color: #b8bec6; }
.rank-gold { --rank-color: #c9a84c; }
.rank-platinum { --rank-color: #8fd5d3; }
.rank-diamond { --rank-color: #7fb7ff; }
.rank-master { --rank-color: #e8293f; }
.rank-badge.rank-iron,
.rank-badge.rank-bronze,
.rank-badge.rank-silver,
.rank-badge.rank-gold,
.rank-badge.rank-platinum,
.rank-badge.rank-diamond,
.rank-badge.rank-master {
  color: var(--rank-color);
  border-color: color-mix(in srgb, var(--rank-color) 48%, transparent);
  background: color-mix(in srgb, var(--rank-color) 12%, transparent);
}
.podium-grade { margin: -4px 0 10px; }
.account-rank-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-color: color-mix(in srgb, var(--rank-color, var(--color-gold)) 45%, var(--color-border));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--rank-color, var(--color-gold)) 16%, transparent), transparent 45%),
    var(--color-surface);
}
.account-rank-main { min-width: 0; flex: 1; }
.account-rank-main h2 {
  margin-top: var(--space-sm);
  color: var(--rank-color, var(--color-gold));
}
.account-rank-main p { margin-bottom: var(--space-sm); }
.account-rank-score {
  display: grid;
  gap: 2px;
  text-align: right;
  min-width: 150px;
}
.account-rank-score strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--rank-color, var(--color-gold));
  line-height: 1;
}
.account-rank-score span {
  font-family: var(--font-heading);
  color: var(--color-text-muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.account-rank-bar {
  width: min(420px, 100%);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--color-border);
}
.account-rank-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rank-color, var(--color-gold)), var(--color-accent-soft));
  transition: width var(--transition-medium);
}
.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3) { text-align: center; }
@media (max-width: 768px) {
  .account-rank-banner { align-items: flex-start; flex-direction: column; }
  .account-rank-score { text-align: left; }
}

/* 20260512 - petit timer dans les créneaux de race actifs */
.pool-slot-timer {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(232, 41, 63, .35);
  border-radius: 999px;
  background: rgba(192, 25, 43, .12);
  color: var(--color-accent-soft);
  font-family: var(--font-heading);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pool-slot-timer--closed {
  color: var(--color-text-muted);
  border-color: var(--color-border);
  background: rgba(255,255,255,.04);
}
.pool-slot-card--active .pool-slot-head {
  align-items: flex-start;
}

.pool-status-box {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}
@media (max-width: 768px) {
  .pool-status-box { justify-items: start; text-align: left; }
}


/* Discord integration */
.navlinks a.nav-discord {
  color: #fff;
  background: #5865F2;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(88,101,242,.55), 0 0 18px rgba(88,101,242,.18);
}
.navlinks a.nav-discord:hover {
  color: #fff;
  filter: brightness(1.12);
}
.inline-logout-form {
  margin-top: var(--space-md);
}
.inline-logout-form button {
  margin-top: var(--space-sm);
}


/* 20260522 - Mon compte : hash masqué + actions rapides */
.hash-secure-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm);
  max-width: 100%;
  margin-top: var(--space-xs);
}
.hash-secure-box code,
#accountHash.hash-mask {
  display: block;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(201,168,76,.22);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.22);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .08em;
  user-select: none;
}
#accountHash.hash-mask--visible {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  letter-spacing: normal;
  user-select: text;
}
.hash-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hash-icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 1rem;
  line-height: 1;
}
#regenerateHash.hash-icon-btn {
  min-width: 48px;
  width: 48px;
  height: 44px;
  padding: 0;
  border-color: rgba(80, 170, 255, .85);
  background: linear-gradient(135deg, rgba(80,170,255,.26), rgba(199,18,43,.16));
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(80,170,255,.95);
  box-shadow: 0 0 0 1px rgba(80,170,255,.18), 0 0 16px rgba(80,170,255,.22);
}
#regenerateHash.hash-icon-btn:hover,
#regenerateHash.hash-icon-btn:focus-visible {
  border-color: rgba(80, 170, 255, 1);
  background: linear-gradient(135deg, rgba(80,170,255,.42), rgba(199,18,43,.24));
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(80,170,255,.32), 0 0 22px rgba(80,170,255,.34);
}
@media (max-width: 640px) {
  .hash-secure-box {
    grid-template-columns: 1fr;
  }
  .hash-actions {
    justify-content: flex-start;
  }
}

.twofa-user-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--space-md, 1rem);
  align-items: start;
}
.twofa-user-qr-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 34px rgba(0,0,0,.32);
}
.twofa-user-qr-wrap[hidden] {
  display: none !important;
}
.twofa-user-qr {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  box-sizing: border-box;
  transition: filter .18s ease, transform .18s ease, opacity .18s ease;
}
.twofa-user-qr-wrap.is-blurred .twofa-user-qr {
  filter: blur(9px);
  transform: scale(1.04);
  opacity: .88;
}
.twofa-user-qr-wrap.is-blurred::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6,12,24,.18), rgba(6,12,24,.62));
  pointer-events: none;
}
.twofa-qr-reveal-btn,
.twofa-qr-hide-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  min-width: 116px;
  min-height: 44px;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(80,170,255,.75);
  background: linear-gradient(135deg, rgba(10,34,62,.96), rgba(32,136,224,.92));
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 0 24px rgba(80,170,255,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease;
}
.twofa-qr-reveal-btn[hidden],
.twofa-qr-hide-btn[hidden] {
  display: none !important;
}
.twofa-user-qr-wrap:hover .twofa-qr-reveal-btn:not([hidden]),
.twofa-user-qr-wrap:hover .twofa-qr-hide-btn:not([hidden]),
.twofa-user-qr-wrap:focus-within .twofa-qr-reveal-btn:not([hidden]),
.twofa-user-qr-wrap:focus-within .twofa-qr-hide-btn:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.twofa-qr-reveal-btn:hover,
.twofa-qr-hide-btn:hover {
  transform: translate(-50%, -50%) translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 30px rgba(80,170,255,.58);
}

.twofa-user-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm, .75rem);
}
.twofa-confirm-form {
  max-width: none;
}
.twofa-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm, .75rem);
  align-items: stretch;
}
.twofa-action-row .btn {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  text-align: center;
}
.twofa-user-qr-panel .twofa-regen-btn {
  width: 100%;
  max-width: 180px;
  min-height: 56px;
  justify-content: center;
  text-align: center;
}
.twofa-compact-help {
  margin-bottom: 0;
}
#userTwofaMessage {
  padding: .75rem .95rem;
}
@media (max-width: 760px) {
  .twofa-user-layout { grid-template-columns: 1fr; }
  .twofa-user-qr-wrap { width: 160px; height: 160px; }
  .twofa-user-qr-panel .twofa-regen-btn { max-width: 160px; }
  .twofa-action-row { grid-template-columns: 1fr; }
}

/* 20260522 v23 - Règlement dynamique, compte compact et notice index */
.section--notice {
  padding-top: var(--space-xl);
  padding-bottom: 0;
}
.index-notice-card {
  display: grid;
  gap: var(--space-sm);
  border-color: rgba(201,168,76,.42);
  background:
    radial-gradient(circle at 10% 0%, rgba(201,168,76,.14), transparent 42%),
    var(--color-surface);
}
.index-notice-card h2,
.index-notice-card p {
  margin: 0;
}
.index-notice-card p {
  white-space: pre-wrap;
  color: var(--color-text-muted);
}
.rules-hero-clean {
  max-width: none;
}
.rules-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rules-mode-card {
  min-height: 100%;
}
.rules-mode-card--wide {
  grid-column: 1 / -1;
}
.rules-summary-list {
  display: grid;
  gap: 8px;
  margin-top: var(--space-md);
}
.rules-summary-list li strong,
.rules-mode-card strong {
  color: var(--color-text);
}
.account-page-clean .title-line {
  margin-bottom: 0;
}
.account-dashboard-card {
  overflow: hidden;
  border-color: rgba(201,168,76,.34);
  background:
    radial-gradient(circle at 10% -10%, rgba(201,168,76,.13), transparent 38%),
    radial-gradient(circle at 92% 10%, rgba(192,25,43,.15), transparent 36%),
    var(--color-surface);
}
.account-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.account-dashboard-head h2,
.account-dashboard-head p {
  margin-bottom: 0;
}
.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.account-block {
  min-width: 0;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.account-block h3 {
  margin-top: var(--space-sm);
}
.account-block--profile {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
  grid-row: span 2;
}
.account-profile-text {
  min-width: 0;
}
.account-block--rank.account-rank-banner {
  margin: 0;
  min-height: 190px;
  align-items: stretch;
  border-color: color-mix(in srgb, var(--rank-color, var(--color-gold)) 45%, var(--color-border));
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--rank-color, var(--color-gold)) 15%, transparent), transparent 48%),
    rgba(0,0,0,.14);
}
.account-block--rank .account-rank-score {
  align-self: center;
}
.account-block--rank .account-rank-bar {
  margin-top: var(--space-md);
}
.account-block--twofa {
  border-color: rgba(232,41,63,.34);
  background:
    linear-gradient(135deg, rgba(192,25,43,.15), transparent 42%),
    rgba(0,0,0,.17);
}
.twofa-highlight-title {
  display: grid;
  gap: var(--space-sm);
}
.twofa-highlight-title h3 {
  margin: 0;
}
.account-block--downloads {
  grid-column: 1 / -1;
}
.account-actions,
.download-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.avatar-upload-trigger {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.avatar-upload-overlay {
  position: absolute;
  inset: auto 8px 8px;
  display: grid;
  place-items: center;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}
.avatar-upload-trigger:hover .avatar-upload-overlay,
.avatar-upload-trigger:focus-visible .avatar-upload-overlay {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1060px) {
  .rules-grid--three,
  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .account-block--profile,
  .account-block--downloads {
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 640px) {
  .account-dashboard-head,
  .account-block--rank.account-rank-banner {
    flex-direction: column;
  }
  .account-block--rank .account-rank-score {
    align-self: flex-start;
    text-align: left;
  }
  .account-block--profile {
    grid-template-columns: 1fr;
  }
}

/* 20260522 v24 - annonces index, OOT public et compte joueur */
.section--notice-top {
  padding-top: var(--space-lg);
  padding-bottom: 0;
}
.index-notices-list {
  display: grid;
  gap: var(--space-md);
}
.oot-formula-box {
  display: grid;
  gap: 6px;
  margin-top: var(--space-md);
  padding: var(--space-md);
  border: 1px solid rgba(201,168,76,.28);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,.18);
}
.oot-formula-box strong {
  color: var(--color-text);
  font-family: var(--font-heading);
  letter-spacing: .02em;
}
.oot-formula-box span {
  color: var(--color-text-muted);
}
.account-dashboard-grid--clean {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: stretch;
}
.account-block--profile-main {
  grid-row: auto;
}
.account-downloads-inline {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.twofa-user-instructions,
.twofa-secret-line {
  min-width: 0;
}
.twofa-secret-code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.5;
}
@media (max-width: 1060px) {
  .account-dashboard-grid--clean {
    grid-template-columns: 1fr;
  }
}


/* 20260522 v25 - boutons copie compacts + annonces multi-pages */
.hash-copy-btn,
.copy-icon-btn,
.btn-copy-hash {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.hash-copy-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.hash-copy-line .code {
  min-width: 0;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section--notice + .section,
.section--notice + .rules-page {
  padding-top: var(--space-lg);
}
.site-notice-target-help {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
}

/* 20260523 v47 - compte unifié + orbe ELO liquide dynamique avec couleur par progression */
.account-dashboard-card--unified {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  border-color: rgba(201,168,76,.24);
  background:
    radial-gradient(circle at 8% 0%, rgba(201,168,76,.12), transparent 30%),
    radial-gradient(circle at 96% 18%, rgba(192,25,43,.18), transparent 34%),
    linear-gradient(135deg, rgba(41, 10, 16, .92), rgba(13, 4, 8, .92));
}
.account-dashboard-card--unified::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent),
    radial-gradient(circle at 50% -12%, rgba(255,255,255,.06), transparent 34%);
}
.account-dashboard-card--unified > * {
  position: relative;
  z-index: 1;
}
.account-dashboard-grid--single {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 0;
  margin-top: var(--space-lg);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  overflow: hidden;
}
.account-dashboard-grid--single .account-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.account-dashboard-grid--single .account-block--profile-main {
  grid-row: 1 / span 2;
  border-right: 1px solid rgba(255,255,255,.07);
}
.account-dashboard-grid--single .account-block--elo-orb {
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.account-dashboard-grid--single .account-block--twofa {
  border-color: transparent;
}
.account-dashboard-grid--single .account-downloads-inline {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top-color: rgba(255,255,255,.08);
}
.account-block--elo-orb {
  --elo-progress: 0%;
  --elo-fluid-color: #d71935;
  --elo-fluid-light: #ff7c8e;
  --elo-fluid-dark: #670412;
  --elo-fluid-glow: rgba(215, 25, 53, .42);
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
  min-height: 208px;
  background:
    radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--rank-color, var(--color-gold)) 18%, transparent), transparent 44%),
    linear-gradient(135deg, rgba(35, 7, 13, .34), rgba(0, 0, 0, .05));
  overflow: hidden;
}
.account-block--elo-orb.elo-progress-low {
  --elo-fluid-color: #d71935;
  --elo-fluid-light: #ff8a9a;
  --elo-fluid-dark: #610311;
  --elo-fluid-glow: rgba(215, 25, 53, .48);
}
.account-block--elo-orb.elo-progress-mid {
  --elo-fluid-color: #f59e0b;
  --elo-fluid-light: #ffd27a;
  --elo-fluid-dark: #7c2d12;
  --elo-fluid-glow: rgba(245, 158, 11, .45);
}
.account-block--elo-orb.elo-progress-high {
  --elo-fluid-color: #22c55e;
  --elo-fluid-light: #8cffb4;
  --elo-fluid-dark: #064e3b;
  --elo-fluid-glow: rgba(34, 197, 94, .42);
}
.account-elo-orb-wrap {
  display: grid;
  place-items: center;
}
.account-elo-orb {
  position: relative;
  width: 158px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.26), transparent 18%),
    radial-gradient(circle at 52% 66%, rgba(78, 6, 14, .96), rgba(21, 3, 7, 1) 70%);
  border: 2px solid color-mix(in srgb, var(--rank-color, var(--color-gold)) 58%, rgba(255,255,255,.22));
  box-shadow:
    inset 0 14px 24px rgba(255,255,255,.11),
    inset 0 -24px 38px rgba(0,0,0,.62),
    0 0 34px color-mix(in srgb, var(--rank-color, var(--color-gold)) 26%, transparent),
    0 18px 36px rgba(0,0,0,.34);
}
.account-elo-orb__liquid {
  position: absolute;
  z-index: 0;
  left: -16%;
  right: -16%;
  bottom: 0;
  height: var(--elo-progress);
  min-height: 6%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.30), transparent 13%),
    radial-gradient(circle at 72% 46%, rgba(255,255,255,.18), transparent 10%),
    linear-gradient(180deg,
      var(--elo-fluid-light),
      var(--elo-fluid-color) 46%,
      var(--elo-fluid-dark));
  background-size: 150% 150%, 130% 130%, 100% 100%;
  box-shadow:
    inset 0 12px 16px rgba(255,255,255,.16),
    inset 0 -16px 26px rgba(0,0,0,.45),
    0 -4px 18px var(--elo-fluid-glow);
  transition: height 700ms cubic-bezier(.2,.8,.2,1);
  animation: accountEloLiquidPulse 3.2s ease-in-out infinite;
}

.account-elo-orb__liquid::before,
.account-elo-orb__liquid::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -22px;
  width: 210px;
  height: 48px;
  border-radius: 44%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 35% 42%, rgba(255,255,255,.42), transparent 30%),
    color-mix(in srgb, var(--elo-fluid-light) 38%, rgba(255,255,255,.16));
  filter: blur(.2px);
  animation: accountEloWave 2.6s ease-in-out infinite;
}
.account-elo-orb__liquid::after {
  top: -16px;
  width: 248px;
  height: 42px;
  opacity: .55;
  background:
    radial-gradient(ellipse at 66% 50%, rgba(255,255,255,.34), transparent 28%),
    color-mix(in srgb, var(--elo-fluid-color) 42%, rgba(255,255,255,.18));
  animation: accountEloWaveBack 3.4s ease-in-out infinite reverse;
}
.account-elo-orb__liquid > span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 80%, rgba(255,255,255,.22), transparent 5%),
    radial-gradient(circle at 55% 92%, rgba(255,255,255,.18), transparent 4%),
    radial-gradient(circle at 78% 76%, rgba(255,255,255,.16), transparent 5%),
    radial-gradient(circle at 35% 18%, rgba(255,255,255,.24), transparent 12%),
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.14), transparent 10%);
  background-size: 100% 140%;
  opacity: .9;
  animation: accountEloBubbles 2.9s linear infinite;
}
.account-elo-orb__shine {
  position: absolute;
  z-index: 2;
  inset: 10px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 18%),
    linear-gradient(120deg, rgba(255,255,255,.13), transparent 32%, transparent 70%, rgba(255,255,255,.07));
  mix-blend-mode: screen;
  animation: accountEloShine 4.5s ease-in-out infinite;
}
.account-elo-orb::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--rank-color, var(--color-gold)) 40%, transparent);
  pointer-events: none;
}
.account-elo-orb__inner {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 106px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,2,4,.70), rgba(12,2,4,.42));
  border: 1px solid rgba(255,255,255,.13);
  text-align: center;
  box-shadow: inset 0 1px 12px rgba(0,0,0,.35);
}
.account-elo-orb__inner strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: .9;
  color: var(--color-text);
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.account-elo-orb__inner span {
  margin-top: -10px;
  font-family: var(--font-heading);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--rank-color, var(--color-gold)) 82%, var(--color-text));
}
.account-elo-details {
  min-width: 0;
}
.account-elo-details h3 {
  margin: var(--space-sm) 0 2px;
  color: var(--rank-color, var(--color-gold));
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}
.account-elo-life-bar {
  width: min(360px, 100%);
  height: 10px;
  margin-top: var(--space-md);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  box-shadow: inset 0 1px 6px rgba(0,0,0,.55);
}
.account-elo-life-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--elo-fluid-dark), var(--elo-fluid-color), var(--elo-fluid-light));
  box-shadow: 0 0 18px var(--elo-fluid-glow);
  transition: width var(--transition-medium);
}
@keyframes accountEloWave {
  0%, 100% { transform: translateX(-53%) translateY(0) rotate(-1.5deg) scaleX(1); }
  25% { transform: translateX(-49%) translateY(3px) rotate(1.8deg) scaleX(1.05); }
  50% { transform: translateX(-46%) translateY(6px) rotate(3.2deg) scaleX(.96); }
  75% { transform: translateX(-51%) translateY(2px) rotate(-.8deg) scaleX(1.03); }
}
@keyframes accountEloWaveBack {
  0%, 100% { transform: translateX(-47%) translateY(2px) rotate(2deg) scaleX(1.04); }
  50% { transform: translateX(-55%) translateY(6px) rotate(-2.5deg) scaleX(.97); }
}
@keyframes accountEloLiquidPulse {
  0%, 100% { background-position: 0% 48%, 100% 42%, 0 0; filter: saturate(1) brightness(1); }
  50% { background-position: 100% 56%, 0% 48%, 0 0; filter: saturate(1.16) brightness(1.08); }
}
@keyframes accountEloBubbles {
  0% { background-position: 0 120%, 0 115%, 0 108%, 0 0, 0 0; opacity: .72; }
  45% { opacity: .95; }
  100% { background-position: 0 -35%, 0 -22%, 0 -30%, 0 0, 0 0; opacity: .78; }
}
@keyframes accountEloShine {
  0%, 100% { opacity: .85; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .account-elo-orb__liquid,
  .account-elo-orb__liquid::before,
  .account-elo-orb__liquid::after,
  .account-elo-orb__liquid > span,
  .account-elo-orb__shine {
    animation: none !important;
  }
}
@media (max-width: 1060px) {
  .account-dashboard-grid--single {
    grid-template-columns: 1fr;
  }
  .account-dashboard-grid--single .account-block--profile-main {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
}
@media (max-width: 640px) {
  .account-block--elo-orb {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .account-elo-life-bar {
    margin-inline: auto;
  }
}


/* ERRL v44 - accès DLL / historique de checks */
.btn-danger-soft {
  border-color: rgba(239, 68, 68, .45) !important;
  color: #fecaca !important;
  background: rgba(127, 29, 29, .18) !important;
}
.btn-danger-soft:hover {
  background: rgba(239, 68, 68, .24) !important;
}

.run-expand-btn {
  min-width: 34px;
  padding: .25rem .45rem;
  border-radius: 999px;
  line-height: 1;
}

.run-check-details-row[hidden] {
  display: none !important;
}

.run-check-details {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
}

.check-history-table {
  width: 100%;
  border-collapse: collapse;
}

.check-history-table th,
.check-history-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}

.check-history-table tr.check-major-rune {
  background: linear-gradient(90deg, rgba(22, 163, 74, .32), rgba(22, 163, 74, .08));
}

.check-history-table tr.check-major-rune td:first-child {
  border-left: 4px solid rgba(34, 197, 94, .95);
}

.check-history-name {
  font-weight: 700;
}

.check-history-place {
  display: block;
  opacity: .72;
  font-size: .84rem;
  margin-top: .15rem;
}


/* 20260524 - Discord seed pool layout */
.badge--blue {
  background: rgba(80, 170, 255, .14);
  color: #80c8ff;
  border: 1px solid rgba(80, 170, 255, .32);
}
.pool-slot-card--waiting {
  border-color: rgba(201,168,76,.34);
}
.pool-player-card--waiting .pool-player-timer strong {
  color: var(--color-text-muted);
}
.pool-player-card--active .pool-player-timer strong {
  color: #80c8ff;
}
.mt-xs { margin-top: 4px; }


/* ERRL equipment tracking */
.equipment-loadout{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.equipment-loadout--compact{max-width:280px}.equipment-chip{width:34px;height:34px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(255,255,255,.06);display:inline-grid;place-items:center;position:relative;overflow:hidden}.equipment-chip--compact{width:30px;height:30px;border-radius:9px}.equipment-chip img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.equipment-chip__fallback{font-size:.68rem;font-weight:800;opacity:.72;z-index:1}.equipment-chip:not(.equipment-chip--no-img) img+.equipment-chip__fallback{opacity:0}.equipment-chip--empty{opacity:.35}.pool-player-equipment{min-width:150px;display:flex;justify-content:center}.account-history-card{overflow:hidden}.account-run-history{display:grid;gap:.75rem}.account-run-card{border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.045);overflow:hidden}.account-run-card summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;list-style:none}.account-run-card summary::-webkit-details-marker{display:none}.account-run-card summary small{display:block;color:var(--muted);margin-top:.2rem}.account-run-card__body{border-top:1px solid rgba(255,255,255,.1);padding:1rem;display:grid;gap:1rem}.account-run-equipment h4,.account-run-events h4{margin:.1rem 0 .6rem}.account-timeline{display:grid;gap:.4rem}.account-timeline__row{display:grid;grid-template-columns:86px 1fr;gap:.75rem;align-items:start;padding:.55rem .65rem;border-radius:12px;background:rgba(0,0,0,.18)}.account-timeline__row strong{font-variant-numeric:tabular-nums;color:var(--gold)}.account-timeline__row>div{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.account-timeline__kind{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.account-timeline__row--equipment{background:rgba(64,146,255,.10)}@media (max-width:760px){.pool-player-equipment{justify-content:flex-start}.account-run-card summary{align-items:flex-start;flex-direction:column}.account-timeline__row{grid-template-columns:1fr}}


/* -------------------------------------------------------------------------
   Pool en cours - fix badge statut hors cadre
   ------------------------------------------------------------------------- */
.pool-player-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(150px, 220px) minmax(92px, 120px) max-content;
  align-items: center;
}

.pool-player-status {
  min-width: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: auto;
}

.pool-player-status .badge {
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 900px) {
  .pool-player-card {
    grid-template-columns: 46px minmax(0, 1fr) minmax(92px, auto);
  }

  .pool-player-equipment {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .pool-player-timer,
  .pool-player-status {
    grid-column: 2 / -1;
    text-align: left;
    justify-content: flex-start;
  }
}



/* Equipment V4 - carrés propres + fallback inconnu */
.equipment-loadout{display:flex;flex-wrap:wrap;gap:.42rem;align-items:center}.equipment-loadout--compact{max-width:340px}.equipment-chip{width:42px;height:42px;border:1px solid rgba(218,165,32,.28);border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(0,0,0,.22));display:inline-grid;place-items:center;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.28)}.equipment-chip--compact{width:34px;height:34px;border-radius:9px}.equipment-chip img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;padding:2px}.equipment-chip__fallback{font-size:.72rem;font-weight:900;opacity:.78;z-index:1;color:var(--gold)}.equipment-chip:not(.equipment-chip--no-img) img+.equipment-chip__fallback{opacity:0}.equipment-chip--empty{opacity:.28}.equipment-chip--unknown{border-color:rgba(255,255,255,.16);filter:saturate(.65)}.pool-player-equipment{min-width:190px;display:flex;justify-content:center}

/* -------------------------------------------------------------------------
   Pool en cours - stuff live / dernier signal ERRL
   ------------------------------------------------------------------------- */
.pool-player-equipment {
  min-width: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

.pool-player-equipment__label {
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pool-player-equipment .equipment-loadout--compact {
  max-width: 260px;
}

.pool-player-equipment .equipment-chip--compact {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.pool-equipment-empty {
  font-size: .78rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   Final equipment squares - slightly larger for better readability
   ------------------------------------------------------------------------- */
.account-run-equipment .equipment-loadout {
  gap: .5rem;
}

.account-run-equipment .equipment-chip {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.account-run-equipment .equipment-chip img {
  padding: 3px;
}

.account-run-equipment .equipment-chip__fallback {
  font-size: .8rem;
}

@media (max-width: 900px) {
  .pool-player-equipment {
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


/* -------------------------------------------------------------------------
   ERRL checks live/history - circular icons from assets/IMG/checks
   ------------------------------------------------------------------------- */
.pool-panel {
  max-width: 1280px;
}

.pool-player-card {
  grid-template-columns: 48px minmax(0, 1fr) minmax(210px, 260px) minmax(180px, 240px) minmax(92px, 120px) max-content;
}

.pool-player-checks {
  min-width: 180px;
  display: grid;
  gap: .4rem;
  justify-items: center;
  align-content: center;
}

.pool-player-checks__label {
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, var(--color-text-muted));
}

.pool-player-checks__label strong {
  color: var(--color-gold);
  font-family: var(--font-heading);
  letter-spacing: .04em;
}

.check-collection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .42rem;
}

.check-collection--compact {
  max-width: 220px;
  justify-content: center;
  gap: .28rem;
}

.check-chip {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(218,165,32,.34);
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.18), rgba(0,0,0,.34));
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35) inset, 0 7px 16px rgba(0,0,0,.25);
  flex: 0 0 auto;
}

.check-chip--compact {
  width: 30px;
  height: 30px;
  border-width: 1px;
}

.account-timeline .check-chip--compact {
  width: 26px;
  height: 26px;
}

.check-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.check-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.28), transparent 35%);
  pointer-events: none;
}

.check-chip__fallback {
  position: relative;
  z-index: 1;
  color: var(--color-gold);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.check-chip--compact .check-chip__fallback {
  font-size: .54rem;
}

.check-chip:not(.check-chip--no-img) .check-chip__fallback {
  opacity: 0;
}

.check-chip--major-rune {
  border-color: rgba(255, 220, 120, .85);
  box-shadow: 0 0 0 1px rgba(255,220,120,.24) inset, 0 0 14px rgba(218,165,32,.22), 0 7px 16px rgba(0,0,0,.25);
}

.check-chip--extra {
  opacity: .82;
  filter: saturate(.8);
}

.check-collection-empty,
.check-collection-fallback {
  color: var(--muted, var(--color-text-muted));
  font-size: .78rem;
  line-height: 1.2;
}

.account-run-checks {
  display: grid;
  gap: .6rem;
}

.account-run-checks h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: .1rem 0 0;
}

.account-run-checks h4 span {
  color: var(--color-gold);
  font-size: .82rem;
  font-family: var(--font-heading);
}

.account-run-checks .check-collection {
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
}

.account-timeline__row--check {
  background: rgba(218,165,32,.09);
}

@media (max-width: 1100px) {
  .pool-player-card {
    grid-template-columns: 46px minmax(0, 1fr) minmax(170px, auto) minmax(92px, auto);
  }

  .pool-player-equipment,
  .pool-player-checks {
    grid-column: 2 / -1;
    justify-content: flex-start;
    justify-items: flex-start;
  }

  .pool-player-timer,
  .pool-player-status {
    grid-column: 2 / -1;
    text-align: left;
    justify-content: flex-start;
  }

  .check-collection--compact {
    max-width: none;
    justify-content: flex-start;
  }
}

/* Public history + rules refresh 20260526 */
.leaderboard-player-link {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}
.leaderboard-player-link:hover {
  color: var(--color-gold);
  text-decoration: underline;
}
.history-profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  overflow: hidden;
  position: relative;
}
.history-profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(201,168,76,.16), transparent 35%);
  pointer-events: none;
}
.history-profile-card > * { position: relative; z-index: 1; }
.history-profile-card__avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(192,25,43,.9), rgba(61,24,32,.95));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.history-profile-card__rank {
  text-align: right;
  display: grid;
  gap: 4px;
}
.history-profile-card__rank strong {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.25rem;
}
.history-profile-card__rank span { color: var(--color-text-muted); }
.pool-actions--split {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.pool-actions__main {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
}
.rules-page--cinematic .rules-hero--large {
  padding: clamp(26px, 5vw, 56px);
  overflow: hidden;
  position: relative;
}
.rules-page--cinematic .rules-hero--large::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  top: -180px;
  background: radial-gradient(circle, rgba(201,168,76,.20), transparent 62%);
  pointer-events: none;
}
.rules-hero--large h1 {
  max-width: 920px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: .95;
  margin: var(--space-md) 0;
}
.rules-hero--large p { max-width: 780px; color: var(--color-text-muted); }
.rules-hero__stats {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}
.rules-hero__stats div {
  min-width: 128px;
  padding: 16px 18px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-inset);
}
.rules-hero__stats strong {
  display: block;
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.8rem;
}
.rules-hero__stats span {
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.rules-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: var(--shadow-card), var(--shadow-inset);
}
.rules-card--accent {
  border-color: rgba(192,25,43,.42);
  background: linear-gradient(180deg, rgba(192,25,43,.12), rgba(255,255,255,.02));
}
.rules-card ul,
.rules-mode-points,
.rules-flow-item ul {
  padding-left: 1.15rem;
  color: var(--color-text-muted);
}
.rules-mode-list--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.rules-mode-list--cards .rules-mode-row {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.rules-multiplier-wrap table { min-width: 520px; }
.rules-multiplier-public td:nth-child(2),
.rules-multiplier-public td:nth-child(3),
.rules-multiplier-public th:nth-child(2),
.rules-multiplier-public th:nth-child(3) { text-align: center; }
.rules-inline-list--cards {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.rules-inline-list--cards span {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--color-text-muted);
}
@media (max-width: 900px) {
  .history-profile-card,
  .rules-grid,
  .rules-mode-list--cards { grid-template-columns: 1fr; }
  .history-profile-card__rank { text-align: left; }
}

/* Public rules/leaderboard fixes 20260526 */
.rules-hero__stats strong span {
  color: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
}
.leaderboard-loading-row td {
  color: var(--color-text-muted);
  text-align: center !important;
}

/* Public player avatars 20260526 */
.podium-avatar,
.history-profile-card__avatar,
.leaderboard-player-avatar {
  overflow: hidden;
}
.podium-avatar img,
.history-profile-card__avatar img,
.leaderboard-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leaderboard-player-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.leaderboard-player-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: .72rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(192,25,43,.9), rgba(61,24,32,.95));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}


/* -------------------------------------------------------------------------
   Historique de run - icônes équipement dans la timeline
   ------------------------------------------------------------------------- */
.account-timeline .equipment-chip--compact {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
}

.account-timeline .equipment-chip--compact img {
  padding: 2px;
}

.account-timeline__equipment-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Historique de run - alignement des icônes et couleur spéciale talismans */
.account-timeline__event {
  display: grid;
  grid-template-columns: 92px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.account-timeline__row > .account-timeline__event {
  display: grid;
}
.account-timeline__event .account-timeline__kind {
  width: 92px;
  text-align: left;
}
.account-timeline__event .check-chip,
.account-timeline__event .equipment-chip {
  grid-column: 2;
  justify-self: center;
}
.account-timeline__event-text,
.account-timeline__equipment-text {
  grid-column: 3;
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-timeline__event .badge {
  grid-column: 4;
  justify-self: start;
}
.account-timeline__row--talisman {
  background: linear-gradient(90deg, rgba(126, 80, 220, .17), rgba(201, 168, 76, .08));
  border: 1px solid rgba(201, 168, 76, .11);
}
.account-timeline__row--talisman .account-timeline__kind {
  color: var(--color-gold, #c9a84c);
}
.account-timeline__row--talisman .equipment-chip {
  border-color: rgba(201, 168, 76, .42);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, .16) inset, 0 0 14px rgba(126, 80, 220, .16);
}
@media (max-width: 760px) {
  .account-timeline__event {
    grid-template-columns: 82px 36px minmax(0, 1fr);
  }
  .account-timeline__event .badge {
    grid-column: 3;
  }
}

/* Leaderboard grade column fix 20260527
   The generic table ellipsis was appearing after rank badges on classement.html. */
.leaderboard-table th:nth-child(1), .leaderboard-table td:nth-child(1) { width: 7%; }
.leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) { width: 18%; }
.leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { width: 13%; min-width: 120px; }
.leaderboard-table th:nth-child(4), .leaderboard-table td:nth-child(4) { width: 8%; }
.leaderboard-table th:nth-child(5), .leaderboard-table td:nth-child(5) { width: 7%; }
.leaderboard-table th:nth-child(6), .leaderboard-table td:nth-child(6) { width: 10%; }
.leaderboard-table th:nth-child(7), .leaderboard-table td:nth-child(7) { width: 10%; }
.leaderboard-table th:nth-child(8), .leaderboard-table td:nth-child(8) { width: 9%; }
.leaderboard-table th:nth-child(9), .leaderboard-table td:nth-child(9) { width: 9%; }
.leaderboard-table th:nth-child(10), .leaderboard-table td:nth-child(10) { width: 9%; }
.leaderboard-table td:nth-child(3) {
  overflow: visible !important;
  text-overflow: clip !important;
}
.leaderboard-table td:nth-child(3) .rank-badge {
  max-width: none;
}

/* RandoLeague guide page */
.guide-page .card { overflow: hidden; }
.guide-hero h2,
.guide-section h2 { margin-top: 0.75rem; }
.guide-section h3 { margin: 0.35rem 0 0.65rem; color: var(--color-text); letter-spacing: 0.04em; }
.guide-section p,
.guide-hero p { max-width: 960px; }
.guide-page code { color: var(--color-gold); background: rgba(201, 168, 76, 0.08); border: 1px solid rgba(201, 168, 76, 0.18); border-radius: 8px; padding: 0.05rem 0.35rem; }
.guide-shot { margin: 1rem 0 0; border: 1px solid rgba(201, 168, 76, 0.22); border-radius: 18px; overflow: hidden; background: rgba(0, 0, 0, 0.25); box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22); }
.guide-shot img { display: block; width: 100%; height: auto; cursor: zoom-in; transition: transform 0.22s ease, filter 0.22s ease; }
.guide-shot:hover img { transform: scale(1.012); filter: brightness(1.08); }
.guide-shot figcaption { padding: 0.8rem 0.95rem; border-top: 1px solid rgba(201, 168, 76, 0.14); color: var(--color-muted); font-size: 0.92rem; line-height: 1.45; background: rgba(12, 2, 6, 0.54); }
.guide-shot--compact img { max-height: 230px; object-fit: contain; background: rgba(0, 0, 0, 0.18); }
.guide-shot--square { aspect-ratio: 1 / 1; display: flex; flex-direction: column; }
.guide-shot--square img { flex: 1; min-height: 0; height: 100%; object-fit: contain; padding: 0.75rem; box-sizing: border-box; background: radial-gradient(circle at center, rgba(201, 168, 76, 0.08), rgba(0, 0, 0, 0.26)); }
.guide-orb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.guide-orb-grid .guide-shot--compact { height: 100%; min-height: 260px; display: flex; flex-direction: column; }
.guide-orb-grid .guide-shot--compact img { height: 190px; max-height: none; object-fit: contain; }
.guide-orb-grid .guide-shot--compact figcaption { flex: 1; display: flex; align-items: center; }
.guide-orb-grid--elo { align-items: start; justify-items: center; }
.guide-orb-grid .guide-shot--elo { height: auto; min-height: 0; display: block; }
.guide-shot--elo { width: 100%; max-width: 290px; }
.guide-shot--elo img { height: 145px !important; object-fit: cover !important; object-position: center top; }
.guide-orb-grid .guide-shot--elo figcaption,
.guide-shot--elo figcaption { min-height: 0; padding: 0.42rem 0.75rem; line-height: 1.2; display: block; }
.guide-step-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.guide-step-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-numbered-steps { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.guide-step-card { position: relative; padding: 1.15rem; border: 1px solid rgba(201, 168, 76, 0.22); border-radius: 20px; background: linear-gradient(135deg, rgba(80, 17, 31, 0.32), rgba(14, 4, 8, 0.42)); }
.guide-step-index { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(201, 168, 76, 0.48); border-radius: 999px; color: var(--color-gold); font-family: var(--font-title); font-weight: 800; letter-spacing: 0.08em; background: rgba(201, 168, 76, 0.08); }
.guide-step-card--generate { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr); gap: 1.1rem; align-items: start; }
.guide-generate-media { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr); gap: 1rem; align-items: stretch; }
.guide-page a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 3px; }
.guide-page a:hover { color: var(--color-text); }
.guide-important { display: block; width: 100%; max-width: none !important; box-sizing: border-box; margin: 1.15rem 0 0; padding: 1rem 1.2rem; border: 1px solid rgba(201, 168, 76, 0.38); border-radius: 16px; background: linear-gradient(135deg, rgba(201, 168, 76, 0.13), rgba(198, 24, 45, 0.09)); color: var(--color-text); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.guide-important--security { border-color: rgba(75, 177, 255, 0.35); background: linear-gradient(135deg, rgba(75, 177, 255, 0.12), rgba(201, 168, 76, 0.08)); }
.guide-important--randomizer { border-color: rgba(201, 168, 76, 0.46); }
.guide-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 2.5rem; background: rgba(3, 0, 2, 0.88); backdrop-filter: blur(6px); }
.guide-lightbox.is-open { display: flex; flex-direction: column; }
.guide-lightbox__image { max-width: min(96vw, 1500px); max-height: 82vh; width: auto; height: auto; border: 1px solid rgba(201, 168, 76, 0.35); border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65); background: rgba(0, 0, 0, 0.35); }
.guide-lightbox__caption { max-width: min(96vw, 1100px); margin: 1rem 0 0; color: var(--color-text); text-align: center; }
.guide-lightbox__close { position: fixed; top: 1.1rem; right: 1.2rem; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(201, 168, 76, 0.42); border-radius: 999px; color: var(--color-text); background: rgba(23, 4, 9, 0.92); font-size: 2rem; line-height: 1; cursor: pointer; }
.guide-lightbox-open { overflow: hidden; }

@media (max-width: 980px) {
  .guide-step-card--generate,
  .guide-generate-media,
  .guide-step-grid--three { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .guide-orb-grid,
  .guide-step-grid,
  .guide-step-grid--two,
  .guide-step-grid--three { grid-template-columns: 1fr; }
  .guide-lightbox { padding: 1rem; }
  .guide-lightbox__image { max-height: 78vh; }
}


/* Run de la semaine + 404 redesign 20260529 */
.weekly-runs-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.11), rgba(192, 25, 43, 0.12), rgba(0, 0, 0, 0.18));
}
.weekly-runs-kpis { display: flex; gap: .8rem; flex-wrap: wrap; }
.weekly-runs-kpis article {
  min-width: 120px;
  padding: .9rem 1rem;
  border: 1px solid rgba(201, 168, 76, .24);
  border-radius: 16px;
  background: rgba(0, 0, 0, .22);
  text-align: center;
}
.weekly-runs-kpis strong { display: block; color: var(--color-gold); font-family: var(--font-heading); font-size: 2rem; line-height: 1; }
.weekly-runs-kpis span { color: var(--color-text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.weekly-runs-toolbar { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 1rem; align-items: center; }
.weekly-runs-list, .weekly-day-runs { display: grid; gap: .85rem; }
.weekly-day-group { display: grid; gap: .85rem; }
.weekly-day-group + .weekly-day-group { margin-top: 1.35rem; }
.weekly-day-group > h2 { font-size: 1.15rem; color: var(--color-gold); }
.weekly-run-meta { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; color: var(--color-text-muted); font-size: .9rem; }
.weekly-run-meta a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 3px; }
.error-page--clean { min-height: calc(100vh - var(--nav-height)); display: grid; align-items: center; padding: clamp(2rem, 7vw, 6rem) 0; }
.error-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, .28);
  border-radius: 28px;
  background: radial-gradient(circle at 72% 8%, rgba(201,168,76,.22), transparent 34%), linear-gradient(135deg, rgba(32,8,14,.94), rgba(7,3,6,.94));
  box-shadow: 0 30px 90px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.035);
}
.error-hero-card__glow { position: absolute; inset: -35%; background: radial-gradient(circle, rgba(192,25,43,.22), transparent 45%); filter: blur(18px); opacity: .75; }
.error-hero-card__content { position: relative; padding: clamp(1.5rem, 5vw, 4rem); max-width: 900px; }
.error-code { font-family: var(--font-display); font-size: clamp(4.5rem, 15vw, 10rem); line-height: .88; color: var(--color-gold); text-shadow: 0 0 28px rgba(201,168,76,.18); margin: .5rem 0; }
.error-subtitle { color: var(--color-text); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.error-quote { max-width: 760px; }
.error-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
@media (max-width: 760px) {
  .weekly-runs-hero, .weekly-runs-toolbar { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .weekly-runs-kpis article { flex: 1 1 130px; }
}


/* Overlay customizer */
.overlay-customizer-card {
  display: grid;
  grid-template-columns: minmax(340px, .95fr) minmax(320px, 1.05fr);
  gap: 1.35rem;
  align-items: stretch;
}
.overlay-customizer-preview {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  padding: 1rem;
  background: radial-gradient(circle at top left, rgba(80,170,255,.10), transparent 38%), rgba(0,0,0,.22);
}
.overlay-preview-window {
  position: relative;
  min-height: 388px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 24px 60px rgba(0,0,0,.35);
}
.overlay-game-preview {
  position: absolute;
  inset: 0;
  background: #000;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff;
}
.overlay-preview-title {
  position: absolute;
  top: 2px;
  right: 6px;
  left: 0;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 7.3vw, 3.55rem);
  font-weight: 700;
  line-height: 1;
  color: #50AAFF;
  text-align: right;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #000;
}
.overlay-preview-tabs {
  position: absolute;
  top: 80px;
  right: 0;
  display: flex;
  gap: 6px;
}
.overlay-preview-tab {
  width: 126px;
  height: 38px;
  padding: 0;
  border: 1px solid rgb(110,110,110);
  border-radius: 7px;
  background: rgb(10,10,16);
  color: rgb(230,230,230);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  pointer-events: none;
}
.overlay-preview-tab--active {
  border: 2px solid var(--overlay-preview-main, rgb(80,170,255));
  background: rgb(12,20,34);
  color: var(--overlay-preview-main, rgb(80,200,255));
}
.overlay-preview-stats {
  position: absolute;
  top: 144px;
  right: 16px;
  display: grid;
  gap: 14px;
  justify-items: end;
  text-align: right;
}
.overlay-preview-stat {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.45rem, 4.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
}
.overlay-preview-stat--deaths { color: rgb(70,255,140); }
.overlay-preview-stat--checks,
.overlay-preview-stat--runes,
.overlay-preview-stat--timer { color: var(--overlay-preview-main, rgb(80,200,255)); }
.overlay-customizer-controls { display: grid; align-content: center; gap: .85rem; }
.overlay-color-group {
  display: grid;
  gap: .65rem;
  padding: .9rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
}
.overlay-color-group strong {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.mb-0 { margin-bottom: 0 !important; }
.overlay-color-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.overlay-color-picker {
  width: 72px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  padding: .25rem;
  cursor: pointer;
}
.overlay-hex-input { max-width: 180px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.overlay-preset-row { display: flex; gap: .55rem; flex-wrap: wrap; }

.overlay-customizer-page .download-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.overlay-customizer-page .download-buttons .btn {
  width: 100%;
  min-height: 56px;
  height: 100%;
  flex: none;
  justify-content: center;
  text-align: center;
}
@media (max-width: 620px) {
  .overlay-customizer-page .download-buttons {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1080px) {
  .overlay-preview-title { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .overlay-preview-stat { font-size: clamp(1.35rem, 7vw, 2rem); }
}
@media (max-width: 860px) {
  .overlay-customizer-card { grid-template-columns: 1fr; }
  .overlay-preview-window { min-height: 360px; }
}
@media (max-width: 520px) {
  .overlay-customizer-preview { padding: .75rem; }
  .overlay-preview-window { min-height: 330px; }
  .overlay-preview-title { font-size: 2.45rem; }
  .overlay-preview-tabs { top: 76px; right: 0; gap: 5px; }
  .overlay-preview-tab { width: 118px; height: 38px; }
  .overlay-preview-stats { top: 140px; gap: 13px; }
  .overlay-preview-stat { font-size: 1.65rem; }
}

