@charset "UTF-8";

:root {
  --bg-app: #0b0f14;
  --text: #0e1420;
  --muted: #6b7a8a;
  --placeholder: #6b7a8a;
  --card: #ffffff;
  --radius: 16px;
        --brand-rgb: 85, 198, 1;
  --accent-rgb: 71, 147, 255;
  --shadow: 0 12px 30px rgba(0, 0, 0, .08);
  --ball-size: 60px;
  --ground-gap: 50px;
  --move-speed: 8s;
  --spin-speed: 1.4s;
  --accent: var(--brand);
  --danger: #ff4d4d;
  --ok: #20c997;
  --warning: #f8b41c;

  --chip-bg: color-mix(in oklab, var(--cardSolid) 92%, transparent);
  --chip-border: var(--line);

  /* Brand */
  --brand: #55c601;
  --primary: var(--brand);
  --secondary: #dafacd;

  /* Surfaces / text */
--bg:  #f4f7f2;   /* blanc chaud légèrement vert */
  --bg2: #ffffff; 
  --card: rgba(255, 255, 255, .86);
  --cardSolid: #ffffff;
  --text: #0b1220;
  --muted: rgba(11, 18, 32, .62);

  /* margin */
  --mr-sm: 8px;
  --mt-md: 16px;
  --mb-md: 16px;

  /* Lines / shadows */
  --line: rgba(15, 23, 42, .08);
  --line2: rgba(15, 23, 42, .12);
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, .06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, .10);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .14);

  /* Radius / spacing */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;

  /* Focus ring */
  --ring: rgba(85, 198, 1, .28);

  /* Glass */
  --glass-blur: 14px;
  --glass-sat: 150%;

  /* Motion */
  --t-fast: 120ms;
  --t: 180ms;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --bar: #F8FAF6;
  --fill: var(--primary);
  --steady: #9ea7b3;
}

/* Dark mode (auto) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b12;
    --bg2: #0a1220;

    --card: rgba(13, 19, 32, .72);
    --cardSolid: #0b1220;

    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .62);

    --line: rgba(255, 255, 255, .10);
    --line2: rgba(255, 255, 255, .14);

    --shadow-sm: 0 10px 22px rgba(0, 0, 0, .30);
    --shadow-md: 0 18px 36px rgba(0, 0, 0, .42);
    --shadow-lg: 0 26px 60px rgba(0, 0, 0, .52);

    --ring: rgba(85, 198, 1, .24);

    --glass-blur: 16px;
    --glass-sat: 160%;
  }
}

/* fonts */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}


/* base */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
 background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
   min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--text);
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body::before {

  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 520px;
  pointer-events: none;
  z-index: -1;

  background:
  /* HALO PRINCIPAL (gauche) */
    radial-gradient(
      620px 620px at 18% 140px,
      rgba(var(--brand-rgb), 0.22),
      rgba(var(--brand-rgb), 0.12) 35%,
      rgba(var(--brand-rgb), 0.05) 55%,
      transparent 70%
    ),

    /* HALO DOUX D'ÉQUILIBRE (droite) */
    radial-gradient(
      900px 700px at 92% 120px,
      rgba(var(--accent-rgb), 0.10),
      transparent 60%
    );
}


h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h4 {
  font-size: 15px;
  font-weight: 700;
}

p {
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}

.mb {
  margin-bottom: var(--mb-md);
}

.mt {
  margin-top: var(--mt-md)
}

.mr-sm {
  margin-right: var(--mr-sm);
}

/* links */
a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 10px;
}

.link {
  color: var(--primary);
  position: relative;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.link::before {
  content: "";
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -8px;
  right: -8px;
}

.link:hover {
  color: var(--primary);
  background-size: 100% 1px;
}

.link--icon {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.link--icon svg {
  width: 35px;
}


[data-route] {
  cursor: pointer;
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}

[data-route]:hover {
  background: color-mix(in oklab, var(--brand) 6%, transparent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* list */
.list {
  margin: 8px 0 0;
  padding-left: 18px;
}

/* text format */
.muted {
  opacity: 0.8;
  font-size: 13px;
}

.small {
  font-size: 13px;
}


.bold {
  font-weight: 700;
}

.big {
  font-size: 22px;
  font-weight: 700;
}

.tiny {
  font-size: 0.85rem;
}

.view-fade-in {
  opacity: 0;
  animation: viewFade 0.6s ease-out forwards;
}

.is-hidden {
  display: none !important;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* layout */
/* header */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1020px;
  height: 50px;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: color-mix(in oklab, var(--cardSolid) 78%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: var(--r-lg);
  border-bottom-right-radius: var(--r-lg);
  backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
}

.header__item {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 50px;
  cursor: pointer;
  z-index: 999;
  border-radius: 999px;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}

.header__item:hover {
  background: color-mix(in oklab, var(--brand) 8%, transparent);
  transform: translateY(-1px);
}

.header__item .header__icon {
  height: 30px;
  width: auto;
  display: block;
}

.header__item .header__count {
  font-weight: 700;
  font-size: 20px;
}

.header__item--menu {
  position: relative;
}

.header__item--trophy .header__count {
  color: #eda800;
}

.header__item--sticker .header__count {
  color: #a17dfe;
}

.header__logo {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 0 30px;
  margin: auto;
}

.header__logo svg {
  width: 180px;
  max-width: 180px;
  display: block;
}

/* ---- Container / sections ---- */
.container {
  max-width: 620px;
  margin: 0 auto;
}


.section {
  padding: 16px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}

.section--no-right-padding {
  padding-right: 0;
}

.section--top {
  padding-top: 78px;
}

.section--first {
  margin-top: 50px;
}

.section--last {
  margin-bottom: 72px;
}

.section__title {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}

.section__title--space-between {
  justify-content: space-between;
}


/* Sentinel for lazy load */
.sentinel {
  height: 1px;
}

/* footer */
.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1020px;
  height: 60px;
  z-index: 999;
  background: color-mix(in oklab, var(--cardSolid) 78%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, .08);
  backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
}


.footer__item {
  flex: 1;
  text-align: center;
  color: #555;
  text-decoration: none;
  position: relative;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.footer__item:hover {
  color: color-mix(in oklab, var(--brand) 70%, var(--text));
  transform: translateY(-1px);
}

.footer__item.active {
  color: var(--text);
}

.footer__item .footer__icon-wrapper {
  position: relative;
  width: 40px;
  height: 30px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer__item .footer__icon-wrapper svg {
  height: 25px;
}

.footer__item .footer__icon {
  width: auto;
  height: 24px;
  transition: transform 0.3s ease;
}

.footer__item .footer__label {
  font-size: 12px;
  margin-top: 2px;
  display: block;
  font-weight: 400;
}

.footer__item.active .footer__label {
  font-weight: 700;
  color: var(--text);
}


.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}


/* components */
.empty {
  text-align: center;
  padding: 12px 0;
  color: black;
}

/* List */
.list {
  display: grid;
}

/* comments */
.item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.item:last-child {
  border-bottom: 0;
}

.item .avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #dfe9f3;
}

.item .item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.item .name {
  font-weight: 700;
}

.item .time {
  color: var(--muted);
  font-size: 0.9rem;
}

.item .content {
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14.5px;
  line-height: 1.3;
  color: #1f1f1f;
  letter-spacing: -0.1px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.actions .action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8faf6;
  color: var(--text);
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.actions .action--like[aria-pressed=true] {
  box-shadow: inset 0 0 0 1px rgba(73, 255, 27, 0.25);
  background: #ebf9dc;
}

.actions .action--dislike[aria-pressed=true] {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.25);
  background: rgba(255, 107, 107, 0.1);
}

.actions .count {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6b7a8a;
  display: inline-block;
}

/* end comments */

.live-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px auto;
  width: fit-content;
  background: color-mix(in oklab, var(--cardSolid) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
}

.sync {
  font-size: 13px;
  opacity: 0.85;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--muted);
}

.sync__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--brand) 18%, transparent);
  animation: v2Pulse 1.4s infinite ease-in-out;
}

.sync__dot.is-warn {
  background: #F8B41C;
  box-shadow: 0 0 0 3px rgba(248, 180, 28, 0.18);
}

.sync__dot.is-bad {
  background: #E53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18);
}


/* swiper */
.swiper-wrapper {
  padding-bottom: 4px;
}

/* onboarding loader */
.roll-stage {
  position: relative;
  width: 100vw;
  height: calc(var(--ball-size) + 2 * var(--ground-gap));
  overflow: hidden;
}

.roll-track {
  position: absolute;
  bottom: var(--ground-gap);
  left: calc(-1 * var(--ball-size));
  width: var(--ball-size);
  height: var(--ball-size);
  will-change: transform;
  animation: move var(--move-speed) linear infinite;
}

.roll-ball {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  /* rotation continue (réaliste visuellement, sans synchro math exacte) */
  animation: spin var(--spin-speed) linear infinite;
}

.loader--container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  gap: 16px;
  max-width: 1020px;
  margin: auto;
}


/* accordion */
.accordion {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 6px;
}

.acc {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.acc__summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  background: #fff;
  transition: background 0.2s ease;
}

.acc__summary::-webkit-details-marker {
  display: none;
}

.acc__title {
  font-weight: 700;
}

.acc__chev {
  opacity: 0.6;
  transition: transform 0.18s ease;
}

.acc[open] .acc__chev {
  transform: rotate(180deg);
}

.acc__content {
  padding: 0 14px 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.acc[open]>.acc__summary {
  background: rgba(85, 198, 1, 0.08);
}

.acc[open]>.acc__summary {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}


/* dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.dashboard__round {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dashboard__card-body {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding-top: 20px;
}

.dashboard__card-metric {
  text-align: left;
}

.dashboard__card-icon {
  width: 50px;
  padding-bottom: 5px;
}

.dashboard__card-icon svg {
  display: block;
  width: 50px;
}

.dashboard__card__label {
  font-size: 13px;
}

.dashboard__card__label--black {
  color: #48463d;
}

.dashboard__card-value {
  font-size: 32px;
  font-weight: 700;
}

.dashboard__card-value--black {
  color: #48463d;
}

/* errors */
.error-msg {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #B00020;
  background: rgba(176, 0, 32, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.4;
  display: none;
}

.error-msg.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* misc */
.col-rank {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 54px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.player {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.name {
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.state--bck {
  background-color: white;
  padding: 4px 8px;
  border-radius: 8px;
}

.state svg {
  width: 16px;
  height: 16px;
}

.state .state-code {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #64748B;
}

.player-info {
  display: flex;
  flex-direction: column;
      align-items: flex-start;
}

.player-info svg {
  width: 20px;
}

.player-info .name {
  font-weight: 1000;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-info .state {
  margin-top: 6px;
  font-weight: 900;
}

td.points {
  width: 92px;
  text-align: right;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: color-mix(in oklab, var(--brand) 62%, var(--text));
}

.badge {
  font-size: 12px;
  margin-left: 6px;
  border: 1px solid color-mix(in oklab, var(--brand) 25%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--brand) 10%, var(--cardSolid));
  color: color-mix(in oklab, var(--brand) 70%, var(--text));
  font-weight: 1000;
  font-size: 12px;
}

.badge.me-badge {
  background: color-mix(in oklab, var(--brand) 16%, var(--cardSolid));
  border-color: color-mix(in oklab, var(--brand) 22%, var(--line));
}

.points {
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

tr.me {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: color-mix(in oklab, var(--brand) 10%, transparent);

}

/* tables */
/* table */
.table {
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.table .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.table .row:first-child {
  border-top: 0;
}

.table-wrap {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  margin-top: 12px;

}

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

table {
  border-collapse: collapse;
  width: 100%;
}

#lbBody tr {
  transition: background 180ms cubic-bezier(.22, .61, .36, 1);
}

#lbBody td {
  padding: 12px;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  vertical-align: middle;
}

#lbBody tr:last-child td {
  border-bottom: none;
}

#lbBody tr.me {
  background: color-mix(in oklab, var(--brand) 10%, transparent);
}

#lbBody tr.me td {
  border-bottom-color: color-mix(in oklab, var(--brand) 16%, var(--line));
}

#lbBody tr[data-route]:hover {
  background: color-mix(in oklab, var(--brand) 8%, transparent);
  cursor: pointer;
}

thead th {
  position: sticky;
  top: 0;
  text-align: left;
  font-weight: 500;
  padding: 12px;
  z-index: 2;
  background: color-mix(in oklab, var(--cardSolid) 85%, transparent);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

tbody td {
  padding: 12px;
  vertical-align: middle;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 75%, transparent);

}

/* lb */
.lb-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 1.5rem 0 1rem;
}

.lb-title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
}

.lb-actions {
  display: flex;
  justify-content: center;
  padding: 12px;
}

/* toggle */
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

.toggle__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* switch */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;

  width: 54px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--cardSolid) 86%, transparent);
  position: relative;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  transition: background 180ms cubic-bezier(.22, .61, .36, 1),
    border-color 180ms cubic-bezier(.22, .61, .36, 1),
    box-shadow 180ms cubic-bezier(.22, .61, .36, 1);
}

.switch[aria-checked=true] {
  background: var(--primary);
}

.switch[aria-checked="true"] {
  background: color-mix(in oklab, var(--brand) 20%, var(--cardSolid));
  border-color: color-mix(in oklab, var(--brand) 35%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent);
}

.switch[aria-checked=true] .switch__thumb {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  transform: translateY(-50%);

  border: 1px solid var(--line2);
  box-shadow: var(--shadow-sm);
  transition: left 180ms cubic-bezier(.22, .61, .36, 1),
    transform 180ms cubic-bezier(.22, .61, .36, 1);

  left: calc(100% - 28px);
  background: linear-gradient(180deg,
      color-mix(in oklab, var(--brand) 88%, white),
      color-mix(in oklab, var(--brand) 76%, black));
  border-color: color-mix(in oklab, var(--brand) 40%, transparent);
}

.switch:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3);
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

/* search */
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;

}

.search-field button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: background var(--t) var(--ease);
}

.search-field button:hover {
  background: color-mix(in oklab, var(--brand) 8%, transparent);
}

.search-field button svg {
  position: relative;
  width: 20px;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
  transform: translateZ(0);
}


/* input, fields */

input,
select,
textarea {
  border-radius: var(--r-md);
  border: 1px solid var(--line2);
  background: color-mix(in oklab, var(--cardSolid) 88%, transparent);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in oklab, var(--brand) 45%, var(--line2));
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;

}

input {
  padding: 0.75rem 1rem;
  font: inherit;
  outline: none;
  width: 100%;
}

select {
  padding: 0.75rem 1rem;
  font: inherit;
  outline: none;
  background: #fff;
  width: 100%;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}


select option {
  font: inherit;
}

.select-wrapper {
  width: 100%;
  position: relative;
  display: block;
}

.select-wrapper select {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 54%;
  width: 10px;
  height: 10px;
  border-right: 2px solid color-mix(in oklab, var(--muted) 80%, transparent);
  border-bottom: 2px solid color-mix(in oklab, var(--muted) 80%, transparent);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}


/* form */
form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-disclaimer {
  font-size: 0.75rem;
  text-align: center;
  color: #666;
  margin-top: 1rem;
}

.form-disclaimer a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}

.form-group {
  margin-bottom: 0.25rem;
}

.form-label {
  font-weight: 500;


  display: block;
  margin: 0 0 8px;
  color: color-mix(in oklab, var(--muted) 92%, transparent);
}

.form-hint {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.5rem 0;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(85, 198, 1, 0.2);
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #888;
}



/* invite */
.invite-url {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 10px 0 12px;
}

.invite-url input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
}


/* menu */
.menu-slide {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.menu-slide.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.menu-slide.is-visible .menu-slide__content {
  transform: translateY(0);
  opacity: 1;
  max-width: 1020px;
  margin: auto;
}

.menu-slide__content {
  position: absolute;
  top: 60px;
  left: 20px;
  right: 20px;
  background: white;
  border-top: 1px solid var(--primary);
  border-radius: 22px;
  padding: 2rem 1rem;
}

.menu-slide__profile {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  width: 90%;
  gap: 1rem;
  margin: 16px 0;
}

.menu-slide__profile .menu-slide__username {
  font-weight: 500;
}

.menu-slide__profile .menu-slide__score {
  color: #666;
  font-size: 0.9rem;
}

.menu-slide__profile .menu-slide__user {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.menu-slide__profile .menu-slide__user img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
}

.menu-slide__profile .menu-slide__icon img {
  width: 24px;
  height: 24px;
}

.menu-slide__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.menu-slide__links li a {
  display: flex;
  gap: 4px;
  padding: 10px 0;
  align-items: center;
  color: #222;
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
}

.menu-slide__close {
  position: absolute;
  top: 4px;
  right: 4px;
}

.menu-slide__cap-dashboard {
  display: flex;
  background-color: #f8faf6;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 16px;
}

.menu-slide__cap-dashboard-icon {
  width: 40px;
  margin-right: 20px;
}

.menu-slide__cap-dashboard-items {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.menu-slide__cap-dashboard-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.menu-slide__cap-dashboard-label {
  color: #222;
  font-size: 13px;
}

.menu-slide__cap-dashboard-value {
  font-size: 22px;
  font-weight: 700;
}

.menu-slide__cap-dashboard-value-point {
  color: #4793ff;
}

.menu-slide__cap-dashboard-value-rank {
  color: #222;
}

.menu-slide__cap-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.menu-slide .menu-slide__badge {
  display: inline-block;
  min-width: 1.25rem;
  /* largeur mini */
  padding: 0 0.375rem;
  /* padding horizontal */
  /* espace avec le texte */
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: #fff;
  background-color: #e53935;
  /* rouge */
  border-radius: 9999px;
  /* rond */
  text-align: center;
  vertical-align: middle;
}

/* prediction */
.predict-popup__teams {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-around;
}

.predict-popup__teams .team {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.predict-popup__teams .team .jersey {
  height: 60px;
  width: auto;
}

.predict-popup__teams .team .score-input {
  width: 48px;
  height: 48px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f8faf6;
  -moz-appearance: textfield;
  appearance: textfield;
}

.predict-popup__teams .team .score-input::-webkit-outer-spin-button,
.predict-popup__teams .team .score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.predict-popup__teams .team img {
  width: 60px;
}

.predict-popup__teams .date {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(13px, 2vw, 15px);
}

.predict-popup__teams .score {
  display: flex;
  gap: 8px;
}

.predict-confirmation {
  text-align: center;
  margin-top: 2rem;
  background-color: white;
}

.predict-confirmation h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.predict-confirmation p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.predict-confirmation .predict-confirmation__icon {
  width: 45px;
  height: 45px;
  margin: 0 auto 1.5rem;
  display: block;
}

.predict-confirmation .button {
  margin-top: 1rem;
}

/* quick picks */
.quick-picks-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.quick-picks {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  width: 80%;
}

.quick-picks-bonus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
  width: 80%;
  margin-top: 12px;
}

.quick-pick {
  flex: 1;
  min-height: 44px;
  display: grid;
  place-items: center;
  row-gap: 2px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #f8faf6;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}

.quick-pick--white {
  background-color: white;
}

.quick-pick .qp-label {
  opacity: 0.7;
}

.quick-pick .qp-score {
  font-size: 1rem;
  font-weight: 700;
}

.quick-pick .qp-score .sep {
  opacity: 0.6;
  margin: 0 2px;
}

.quick-pick:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  background-color: white;
}

.quick-pick:active {
  transform: scale(0.98);
}

.quick-pick:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
}

/* socerr prediction */
.socerr-ai-prediction {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  padding: 1rem;
}

.socerr-ai-prediction--dark-background {
  background: #f8faf6;
}

.socerr-ai-prediction--white-background {
  background: white;
}

.socerr-ai-prediction .socerr-ai-avatar {
  width: 40px;
  height: 40px;
}

.socerr-ai-prediction__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.socerr-ai-prediction--img {
  width: 35px;
  height: auto;
  max-height: 50px;
}

.socerr-ai-prediction--img svg {
  width: 35px;
}

.predict-analysis.is-hidden {
  display: none;
}

/* load more */
.load-more {
  display: flex;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 75px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* read more */
.read-more-btn {
  font-size: 0.9rem;
  font-weight: 700;

  margin-top: 8px;
  border: 0;
  background: transparent;
  color: color-mix(in oklab, var(--brand) 60%, var(--text));

  cursor: pointer;
  padding: 0;
}

/* popup */
.popup__content--scroll {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.6s ease;
}

.popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-overlay .popup {
  width: 100%;
  max-width: 1020px;
  transform: translateY(100%);
  transition: transform 0.6s ease;
  background: var(--cardSolid);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1rem;
}

.popup-overlay .popup__title {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin: 16px 0;
}

.popup-overlay .popup__body {
  overflow-y: auto;
  max-height: 70dvh;
  height: fit-content;
}

.popup-overlay .popup__icon {
  width: 50px;
  height: 50px;
  margin-right: 16px;
}

.popup-overlay .popup--full-height {
  min-height: calc(100dvh - 30px);
  max-height: calc(100dvh - 30px);
  margin-top: 30px;
  padding-left: 0;
  padding-right: 0;
  height: calc(100dvh - 20px);
  overflow: hidden;
}

.popup-overlay .popup__content--scroll {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.popup-overlay.is-visible .popup {
  transform: translateY(0);
}

/* Chrome, Edge, Safari */
.popup__content--scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Firefox */
.popup__content--scroll {
  scrollbar-width: none;
}

/* IE 10+ (pour compat legacy) */
.popup__content--scroll {
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

/* Chrome, Edge, Safari */
.popup__body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Firefox */
.popup__body {
  scrollbar-width: none;
}

/* IE 10+ (pour compat legacy) */
.popup__body {
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}


/* Skeletons */
/* Skeletons */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}

.skel {
  position: relative;
  overflow: hidden;
  background: #eef2f6;
  border-radius: 10px;
}

.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmer 1.2s infinite;
}

/* Toast */
.toasts {
  position: fixed;
  inset: 1rem 1rem auto auto;
  /* top-right */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  pointer-events: none;
  /* évite de bloquer la page ; chaque toast réactive ses events */
}

/* Toast */
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem;
  min-width: min(92vw, 380px);
  max-width: min(92vw, 420px);
  padding: 0.875rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #222;
  background: white;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: saturate(140%) blur(12px);
  transform: translateX(120%);
  /* hors-écran à droite */
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s ease;
}

.toast__icon {
  margin-top: 0.1rem;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in oklab, currentColor 12%, transparent);
}

.toast__title {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.15rem 0;
  font-size: 0.95rem;
}

.toast__message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0.95;
}

.toast__close {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0.25rem;
  margin: -0.25rem -0.25rem 0 0;
  border-radius: 8px;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.toast__close:hover {
  opacity: 1;
  background: color-mix(in oklab, currentColor 12%, transparent);
}

.toast__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--toast-ring);
}

.toast__close svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.toast__progress {
  grid-column: 1/-1;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: color-mix(in oklab, currentColor 14%, transparent);
  overflow: hidden;
}

.toast__progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 100%);
  background: currentColor;
  opacity: 0.9;
  transition: width linear;
  /* anime avec JS via style="--progress: xx%" */
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.af-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #10151f;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.af-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);

  z-index: 1;
}

.modal__content {
  position: relative;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  animation: slideUp 0.6s ease-out;
  z-index: 1;

  background: var(--cardSolid);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.modal__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
  max-height: 90vh;
  overflow: auto;
  width: 100%;
}

.modal__body--centered {
  margin: auto;
  max-width: 400px;
  border-radius: 1rem;
  padding: 2rem;
}

.modal__title {
  font-size: 1.6rem;
  text-align: center;
}

.modal__text {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.modal__close {
  position: absolute;
  top: 4px;
  right: 4px;
}

/* filters */
.filter-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin-bottom: 1rem;
}

.filter-tabs--ml {
  margin-left: 16px;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tabs__tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--cardSolid) 86%, transparent);
  color: var(--muted);
  font-weight: 900;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  min-height: 44px;
  transition: transform 120ms cubic-bezier(.22, .61, .36, 1),
    box-shadow 180ms cubic-bezier(.22, .61, .36, 1),
    background 180ms cubic-bezier(.22, .61, .36, 1),
    border-color 180ms cubic-bezier(.22, .61, .36, 1);
}

.filter-tabs__tab--icon {
  padding: 4px 8px;
  background-color: white;
  border: 1px solid var(--primary);
}

.filter-tabs__tab--icon svg {
  width: 35px;
}

.filter-tabs__tab.is-active {
  color: var(--text);
  background: var(--secondary);

}

.filter-tabs__tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--brand) 18%, var(--line));
}


.filter-tabs__tab:hover:not(.is-active) {
  background: color-mix(in oklab, var(--brand) 8%, var(--cardSolid));
  border-color: color-mix(in oklab, var(--brand) 18%, var(--line));
}

.filter-tabs__tab--secondary {
  font-weight: 700;
  background-color: white;
  color: #6c757d;
  min-height: 40px;
  height: 40px;
}

.filter-tabs__tab--secondary.is-active {
  background: white;
  color: var(--primary);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.btn--ghost {
  background: transparent;
}

.btn {
  font: 600 14px/1 Inter, system-ui, sans-serif;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #f8faf6;
  background: #fff;
  cursor: pointer;
}

.btn:hover {
  background: #f9fafb;
}

.button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  min-height: 44px;
  padding: 0.70rem 1.15rem;
  box-shadow: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.button--primary {
  color: white;

  background: var(--brand);
}

.button--primary:hover {
  box-shadow: 0 14px 30px rgba(85, 198, 1, .26);
  transform: translateY(-1px);
}

.button--primary:active {
  transform: translateY(0) scale(.98);

}

.button--primary:disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.button--secondary {
  background: var(--cardSolid);
  border: 1px solid var(--line2);
  color: var(--text);
}

.button--secondary:hover {
  background: color-mix(in oklab, var(--brand) 6%, var(--cardSolid));
  border-color: color-mix(in oklab, var(--brand) 20%, var(--line2));
}

.button--secondary:active {
  transform: scale(0.98);
}

.button--large {
  width: 100%;
}

#appleid-signin {
  cursor: pointer;
}

.invite-sent {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #e6f9e0;
  color: #2e7d32;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

/* notification */
.notif-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  background-image: url(/assets/img/ui/dot.svg);
  display: none;
  z-index: 10;
}


/* avatar */
.avatar--svg svg {
  width: 100%;
  height: 100%;
  display: block;
}



/* images */
.icon-placeholder {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 12px;
}

.jersey {
  width: 40px;
  height: auto;
}

.state-image {
  width: 30px;
  height: 30px;
}

.btn-icon {

  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(.22, .61, .36, 1),
    box-shadow 180ms cubic-bezier(.22, .61, .36, 1),
    background 180ms cubic-bezier(.22, .61, .36, 1),
    border-color 180ms cubic-bezier(.22, .61, .36, 1);
}

.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: color-mix(in oklab, var(--brand) 6%, var(--cardSolid));
  border-color: color-mix(in oklab, var(--brand) 18%, var(--line));
}

.btn-icon__img {
  width: 20px;
  height: auto;
}

.btn-icon-info {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}


/* cards */

.friend-prono-card {


  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

.friend-prono-card__header {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.friend-prono-card__header .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.friend-prono-card__header .info .name {
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;

}

.friend-prono-card__header .info .time {
  font-size: 0.75rem;
  color: #888;
}

.friend-prono-card__header .info p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.friend-prono-card__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.friend-prono-card__match .team {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.friend-prono-card__match .team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .14));
}

.friend-prono-card__match .team .score {
  font-size: 16px;

  font-weight: 700;
}

.friend-prono-card__match .vs {
  color: var(--muted);
  font-weight: 700;
}

.friend-prono-card__footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8rem;
}

.friend-prono-card__footer .status {
  font-weight: 500;
}

.friend-prono-card__footer .status.win {
  color: #16a34a;
}

.friend-prono-card__footer .status.lose {
  color: #dc2626;
}

.friend-prono-card__footer .points {
  font-weight: 700;
  color: #2563eb;
}

.user-pronos {
  display: grid;
  gap: 12px;
}

.prono-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  /* Badges */
  /* États */
}

.prono-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.prono-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.prono-card__head .date {
  color: #6b7a8a;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  text-align: right;
}

.prono-card__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.prono-card__match .team {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prono-card__match .team .jersey {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}

.prono-card__match .team .name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prono-card__match .vs {
  font-weight: 900;
  color: #94a3b8;
  padding: 0 4px;
}

.prono-card__rows {
  border-top: 2px solid #f8faf6;
  margin-top: 10px;
}

.prono-card__rows .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
}

.prono-card__rows .row__label {
  color: #6b7a8a;
  font-size: 0.85rem;
}

.prono-card__rows .row__value {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prono-card__rows .row__value strong {
  font-weight: 900;
}

.prono-card__rows .row--icon {
  gap: 8px;
}

.prono-card__rows .result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #eef2f6;
}

.prono-card__rows .result .status {
  font-weight: 700;
}

.prono-card .row-tip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.prono-card .row-tip svg {
  display: block;
}

.prono-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
}

.prono-card .badge--upcoming {
  background: #eef2ff;
  color: #1e3a8a;
  border: 1px solid #c7d2fe;
}

.prono-card .badge--finished {
  background: #FFF9DB;
  border: 1px solid #FACC15;
  color: #ffe469;
}

.prono-card .badge__icon {
  width: 22px;
  height: 22px;
  display: block;
}

.prono-card.prono-card--finished.is-win {
  background: #fff;
  /* vert clair */
  border-color: #bbf7d0;
}

.prono-card.prono-card--finished.is-win .status {
  color: #16a34a;
}

.prono-card.prono-card--finished.is-lose {
  background: #fff;
  /* rouge clair */
  border-color: #fecaca;
}

.prono-card.prono-card--finished.is-lose .status {
  color: #dc2626;
}

.team-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 70px 1fr 50px;
  gap: 8px;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  min-width: 0;
}

.team-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.team-card--flex-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.team-card--selected {
  background-color: var(--primary);
  color: white;
}

.team-card__flag {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Le SVG inline s’adapte à la case */
}

.team-card__flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.team-card__flag svg[width],
.team-card__flag svg[height] {
  width: 100% !important;
  height: 100% !important;
}

.team-card__main {
  min-width: 0;
  /* FIX overflow */
}

.team-card__name {
  font-weight: 700;
  min-width: 0;
  /* indispensable pour l’ellipsis en grid */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.team-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 0;
  /* au cas où le compteur soit long */
}


.cards-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto auto;
  gap: 8px;
  grid-template-areas: "left-top    right" "left-bottom right";
}

.card-left-top {
  grid-area: left-top;
}

.card-left-bottom {
  grid-area: left-bottom;
}

.card-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
}

.card--bck {
  background: color-mix(in oklab, var(--brand) 10%, var(--card));

}

.card__info {
  position: absolute;
  top: 2px;
  right: 2px;
}

.card__row__start {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: start;
  gap: 12px;
}

.card__row__between {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.card__row__around {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.card__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card--border {
  border: 1px solid color-mix(in oklab, var(--brand) 55%, transparent);

}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--brand) 8%, var(--cardSolid));
  display: grid;
  place-items: center;
}

.card__icon svg {
  display: block;
  width: 50px;
  height: 50px;
}

.card__icon--back {
  width: 40px;
  height: auto;
  margin-right: 8px;
}

.card__icon--back svg {
  width: 40px;
  height: 40px;
  background: #f8faf6;
  border-radius: 50px;
  padding: 3px;
}

.card__icon--align-start {
  align-self: start;

}

.card__icon--small {
  width: 30px;
}

.card__icon--small svg {
  display: block;
  width: 30px;
  height: 30px;
}

.card__icon--20 {
  width: 20px;
  margin-right: 8px;
}

.card__icon--20 svg {
  display: block;
  width: 20px;
  height: 20px;
}

.card--gap {
  gap: 8px;
}

.card__body {
  width: 100%;
}

.card__body button {
  margin-top: 12px;
}

.card__body p.big {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.card__body p {
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 500;
}

.card__body h4 {
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15em;
  min-height: 2.3em;
}

.card--nopadding {
  padding: unset;
}

.card--pronostic {
  background-color: #fff;
  color: #222;
}

.card--sticker {
  background-color: #a17dfe;
  color: white;
}

.card--mb {
  margin-bottom: 0.75rem;
}

.card.is-unread {
  background: color-mix(in oklab, var(--brand) 8%, var(--card));
  border-color: color-mix(in oklab, var(--brand) 20%, var(--line));
}

.card-fly-out {
  animation: flyOutRight 0.8s ease forwards;
  will-change: transform, opacity;
}

.card-incoming {
  animation: cardIncomingStack 400ms cubic-bezier(0.25, 0.75, 0.25, 1) both;
  will-change: transform, opacity, box-shadow;
}

.card-fly-up {
  animation: flyOutUp 0.45s ease-out forwards;
  will-change: transform, opacity;
}

.friend--card {
  position: relative;
}

.friend--card__link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.friend--card__name {
  position: relative;
  z-index: 2;
  pointer-events: none;
  font-size: 14px;
  text-align: center;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.friend--card__name--fullname {
  margin-top: 8px;
  font-weight: 700;
}

.friend--card--avatar {
  position: relative;
  overflow: hidden;

  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--cardSolid) 90%, transparent);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.friend--card--avatar--img {
  position: relative;
  z-index: 2;
  pointer-events: none;
  align-self: center;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  overflow: hidden;
}

.friend--card--avatar--img--medium {
  width: 48px;
  height: 48px;
}

.friend--card--avatar--img--thumb {
  width: 32px;
  height: 32px;
}

.friend--card--avatar--initials {
  position: absolute;
  align-self: center;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 34px;
  font-weight: 700;
  color: blue;
}

.no-ranking {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line2);
  color: var(--muted);
  background: color-mix(in oklab, var(--cardSolid) 86%, transparent);
}

.friend--card--avatar--initials--medium {
  font-size: 24px;
}

.friend--card--avatar--initials--thumb {
  font-size: 24px;
  line-height: normal;

}

.friend--card--avatar--initials--first {
  font-size: 30px;
  top: calc(50% - 6px);
}

.friend--card .button,
.friend--card .invite-sent {
  position: relative;
  z-index: 3;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 44px;
  align-content: center;
  margin-top: 12px;
}

.friend-card-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px;
  align-items: left;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  min-width: 0;
  /* pour ellipsis interne */
  cursor: pointer;
}

.friend-card-grid:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.friend-card-grid__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.friend-card-grid__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.friend-card-grid__main {
  min-width: 0;
}

.friend-card-grid__name {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  line-height: 1.2;
  max-height: 2.4em;
  font-weight: 700;
  /* coupe après 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* pages */
/* match detail */

.match-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -50px;
}

.match-info__jerseys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  width: 100%;
  padding-bottom: 16px;
}

.match-info__jerseys .card__col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  padding: 14px 12px;

  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
}


.match-info__jerseys img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .18));
}

.match-info__jerseys h1 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
}

.match-info__jerseys p.big {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.match-info__date {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 6px;
  color: var(--muted);
  font-weight: 500;
}

.match-info__comment {

  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;

  width: min(560px, 100%);
  padding: 10px 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.match-info__comment--icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--brand) 8%, var(--cardSolid));
  display: grid;
  place-items: center;
}

.match-info__comment--text span {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.comment__close {
  display: flex;
  background: white;
  align-items: center;
  justify-content: space-between;
  padding-right: 10px;
  padding-left: 20px;
  border-bottom: 1px solid #eee;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
  margin-top: -25px;
  z-index: 999;
}

.matches-day+.matches-day {
  margin-top: 1rem;
}



#fanZone {
  position: relative;
}

#fanZone .composer {
  position: sticky;
  /* optionnel (peut rester normal) */
}

#fanZone .composer__box {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

#fanList {
  padding-bottom: 80px;
}

#fanInput {
  width: 100%;
  min-height: 84px;
  resize: none;
  padding: 10px 12px;
  border-radius: var(--r-md);
}

.composer {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.08);
}

.composer .avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfe9f3;
}

.composer .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.composer textarea {
  width: 100%;
  min-height: 40px;
  max-height: 180px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #bbb;
  font: inherit;
  font-size: 14.5px;
  background: #fff;
  outline: none;
}

.composer .composer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
  padding-bottom: 8px;
}

.composer .counter {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;

}

.fan-card {
  overflow: hidden;
  padding-right: 20px;
  padding-left: 20px;
}

.fan-card .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfe9f3;
  /* l'image remplit le cercle sans déformer */
}

.fan-card .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  /* override d’un éventuel img { height:auto } global */
  object-fit: cover;
  /* recadre au centre */
  object-position: center;
}

.fan-card .action .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  /* taille zone icône */
  height: 1rem;
  margin-right: 0.25rem;
}

.fan-card .action .icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fan-card .composer .avatar {
  width: 40px;
  height: 40px;
}

.fan-card .item .avatar {
  width: 32px;
  height: 32px;
}

.fan-card .avatar.skeleton {
  background: #f1f5f9;
}

.fan-card__header {
  padding-bottom: 10px;
}

.fan-card__title {
  font-weight: 900;
  margin: 0;
  font-size: 1.05rem;
}

.fan-card__toolbar {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.fan-card__meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.prono-stats-card {
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px 12px;
}

.prono-stats-card .row {

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label percent"
    "bar bar";
  gap: 8px 10px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.prono-stats-card .row:last-child {
  border-bottom: none;
}

.prono-stats-card .row.is-winner .label {
  font-weight: 700;
  color: color-mix(in oklab, var(--brand) 65%, var(--text));

}

.prono-stats-card .label {
  grid-area: label;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prono-stats-card .percent {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 700;

  grid-area: percent;

  color: var(--muted);
}

.prono-stats-card .bar {
  grid-column: 1/-1;
  position: relative;
  grid-area: bar;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--cardSolid) 88%, transparent);
  border: 1px solid var(--line);
  overflow: hidden;
}

.prono-stats-card .bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg,
      color-mix(in oklab, var(--brand) 70%, white),
      color-mix(in oklab, var(--brand) 55%, black));
}

.prono-stats-card .bar--teamA .bar__fill {
  background: var(--primary);
}

.prono-stats-card .bar--draw .bar__fill {
  background: var(--primary);
}

.prono-stats-card .bar--teamB .bar__fill {
  background: var(--primary);
}

.prono-stats-card .participants {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.prono-stats-card .bar__fill {
  width: 0%;
  /* point de départ */
  transition: width 0.8s ease;
  /* anim */
}

.popular-pronos-card {

  padding: 16px;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.popular-pronos-card .title {
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 1rem;
}

.popular-pronos-card .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 12px;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.popular-pronos-card .item:last-child {
  border-bottom: none;
}

.popular-pronos-card .rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.popular-pronos-card .label {
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;

}

.popular-pronos-card .percent {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

.popular-pronos-card .bar {
  grid-column: 1/-1;
  height: 8px;
  background: var(--bar);
  border-radius: 999px;
  overflow: hidden;
}

.popular-pronos-card .bar__fill {
  width: 0%;
  height: 100%;
  background: var(--fill);
  border-radius: 999px;
  transition: width 0.8s ease;
}

.popular-pronos-card .count {
  color: var(--muted);
  font-weight: 800;
}

.popular-pronos-card .meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.popular-pronos-card .trend {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.popular-pronos-card .trend--up {
  color: var(--up);
}

.popular-pronos-card .trend--down {
  color: var(--down);
}

.popular-pronos-card .trend--steady {
  color: var(--steady);
}

.popular-pronos-card .footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* login */

.view-login {
  max-width: 400px;
  margin: 5rem auto;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 1rem;
}

.welcome__lang {
  display: flex;
  align-items: center;
  width: 80%;
  margin: 0 auto;
  justify-content: space-evenly;
  font-size: 0.875rem;
  max-width: 1020px;
  cursor: pointer;
}

/* support */
.support {
  padding: 16px;
  background: #fff;
}

.support__header {
  max-width: 600px;
  margin: 0 auto 12px auto;
}

.support__title {
  font-size: 22px;
  margin: 0 0 6px;
}

.support__intro {
  margin: 0;
  opacity: 0.8;
}

.support__actions {
  max-width: 600px;
  margin: 10px auto 14px auto;
  display: flex;
  gap: 10px;
}

/* signup */
.signup {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.signup__container {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.signup__title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.signup__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup__form input {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #f9f9f9;
}

.signup__form .button {
  margin-top: 1rem;
}

.signup__divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.signup__divider span {
  position: relative;
  background: transparent;
  padding: 0 1rem;
  color: #999;
  font-size: 0.9rem;
  z-index: 1;
  text-transform: uppercase;
}

.signup__divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ddd;
  z-index: 0;
}

.signup__social {
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 8px;
  max-width: 280px;
}

.signup__social img {
  width: 20px;
  height: 20px;
}

.signup__social:hover {
  background: #efefef;
}

.signup__login-link {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.signup__login-link a {
  color: var(--primary);
  font-weight: bold;
}

/* team */
.team__avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  background: white;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: var(--r-lg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.team__avatar img {
  width: 100%;
}

.team__avatar svg {
  display: block;
  width: 80px;
  height: auto;
}

.team__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.team__info--fan {
  display: flex;
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  gap: 5px;
  cursor: pointer;
}

.team__info--fan svg {
  width: 20px;
  height: auto;
}

.team__info--fan--btn {
  position: relative;
  height: 40px;
  z-index: 999;
}

/* teams */
.teams-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px;
}

/* Header + toolbar sticky */
.teams-header {
  position: sticky;
  top: 0;
  /* adapte si tu as un header fixe */
  z-index: 5;
  background: #fff;
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--border);
}

.teams-header h1 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
}

.teams-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.teams-toolbar input[type=search] {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
  outline: none;
  background: #fff;
  min-width: 0;
  /* IMPORTANT pour éviter l’overflow */
}

.teams-toolbar select {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.teams-toolbar .toggle-fans {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.teams-toolbar .toggle-fans[aria-pressed=true] {
  background: #fff0f5;
  border-color: #ffc2d1;
}

/* Grid des équipes — FIX: minmax(0,1fr) pour empêcher le débordement */
.teams-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.teams-grid--pb {
  padding-bottom: 100px;
}

/* trophies */
.trophies {
  padding: 1rem;
}

.trophies__grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}


.trophy-card {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  aspect-ratio: 3/4;
  border-radius: 8px;
  outline: none;
  perspective: 1000px;
}

.trophy-card:focus-visible {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.trophy-card--locked .trophy-card__front {
  opacity: 0.55;
}

.trophy-card--locked .trophy-card__media img {
  filter: grayscale(100%) opacity(0.75) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.trophy-card.is-flipped .trophy-card__inner {
  transform: rotateY(180deg);
}

.trophy-card__inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.trophy-card__face {
  position: absolute;
  inset: 0;
  padding: 0.8rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  backface-visibility: hidden;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  align-content: start;
  justify-items: center;
  text-align: center;
  transition: box-shadow 0.15s ease;
}

.trophy-card__face p {
  font-weight: 700;
}

.trophy-card__face:hover,
.trophy-card__face:focus-within {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.trophy-card__face--no-sticker {
  background-color: white;
}

.trophy-card__face--no-sticker p {
  font-weight: 400;
  color: #6b7280;
}

.trophy-card__front .trophy-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  margin-bottom: 0.5rem;
}

.trophy-card__front .trophy-card__media img {
  height: auto;
  object-fit: contain;
  display: block;
}

.trophy-card__front .trophy-card__media svg {
  width: 70px;
  height: auto;
}

.trophy-card__front .trophy-card__media span {
  position: absolute;
  font-size: 24px;
  font-weight: 700;
  color: #dbdbdb;
}

.trophy-card__front .trophy-card__title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #111;
}

.trophy-card__front .trophy-card__desc {
  font-size: clamp(0.72rem, 2.4vw, 0.875rem);
  line-height: 1.35;
}

.trophy-card__back {
  transform: rotateY(180deg);
  padding: 1rem;
  background-color: var(--primary);
}

.trophy-card__back--no-sticker {
  background-color: #ececec;
}

.trophy-card__back .trophy-card__back-text {
  display: flex;
  flex-direction: column;
  font-size: clamp(0.72rem, 2.4vw, 0.875rem);
  line-height: 1.3;
  color: white;
}

.trophy-card__back .trophy-card__back-text--no-sticker {
  color: #6c757d;
}

.trophy-card__back .trophy-card__back-text--title {
  font-weight: 700;
  padding-top: 5px;
}

.trophy-card__back .trophy-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  margin-bottom: 0.5rem;
}

.trophy-card__back .trophy-card__media svg {
  width: 40px;
  height: auto;
  margin: 16px auto;
}


/* profiles */
.profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 10px;
}

.profile__avatar {
  position: relative;
  width: 88px;
  height: auto;
}

.profile__avatar img {
  width: 100%;
  border-radius: 50%;
}

.profile__avatar--default {
  position: relative;
}

.profile__avatar--default--img {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  align-self: center;
}

.profile__avatar--default--initials {
  position: absolute;
  align-self: center;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 48px;
  font-weight: 500;
  color: blue;
}

.profile__avatar--camera {
  position: absolute;
  display: block;
  right: -1px;
  top: -1px;
  border-radius: 8px;
  padding: 4px;
  background-color: white;
  width: 35px;
  cursor: pointer;
  z-index: 99;
}

.profile__info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  gap: 4px;
}

.profile__info-bio {
  font-weight: 500;
  padding-top: 0.5rem;
}

.profile-friends {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-friends__item {
  display: flex;
  flex: 1;
  gap: 8px;
}

.profile-friends__item-right {
  justify-content: flex-end;
}

.palmares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.palmares__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.palmares__icon svg {
  width: 30px;
  height: auto;
}

.palmares__title {
  font-size: 1rem;
}

.palmares__number {
  font-size: 20px;
  font-weight: 700;
}

.profile-settings {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* home */

.activities--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activities__card-value {
  font-size: 20px;
  font-weight: 700;
  font-size: 28px;

  letter-spacing: -0.03em;
  margin: 6px 0 0;
}

.welcome-home {
  padding-top: 10px;
}

.welcome-home--intro {
  font-size: 20px;
  font-weight: 400;
}

.welcome-home--name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text)
}

.round-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text);
  font-weight: 700;
  width: fit-content;
}

.round-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.round-status--live {
  border-color: color-mix(in oklab, var(--danger) 35%, var(--line));
  background: color-mix(in oklab, var(--danger) 10%, var(--chip-bg));
}

.round-status--live::before {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(85, 198, 1, 0.15);
}

.round-status--finished {
  border-color: color-mix(in oklab, var(--ok) 35%, var(--line));
  background: color-mix(in oklab, var(--ok) 10%, var(--chip-bg));
}

.round-status--finished::before {
  background: #444;
}

.round-status--scheduled {
  border-color: color-mix(in oklab, var(--warning) 35%, var(--line));
  background: color-mix(in oklab, var(--warning) 10%, var(--chip-bg));
}

.round-status--scheduled::before {
  background: #777;
  box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.08);
}

.round-carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.round-carousel__track {
  display: flex;
  gap: 0;
  will-change: transform;
  transition: transform 240ms ease;
  touch-action: pan-y;
}

.round-card {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.round-carousel.is-animating .round-card.is-active {
  animation: roundCardIn 240ms ease;
}

.round-carousel__dots {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.round-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 0;
}

.round-carousel__dot.is-active {
  background: var(--primary);
}

/* friends page */
.friends-footer {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}

/* ad friends page */
.add-friends-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 12px calc(84px + env(safe-area-inset-bottom));
  /* place pour la barre fixe */
}

.searchbar input[type=search] {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font: inherit;
  outline: none;
  background: #fff;
}

.af-results {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding-bottom: 100px;
}

.af-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 18px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  background-color: white;
  cursor: pointer;
}

.af-item__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.af-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.af-item__main {
  min-width: 0;
}

.af-item__name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-item__action .btn-add {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.af-item__action .btn-add[aria-pressed=true] {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #065f46;
}

/* Barre d’invitation fixe */
.af-invitebar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1020px;
  bottom: 0;
  z-index: 6;
  background: #fff;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}

.af-invitebar__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.af-invitebar .hint {
  font-size: 0.95rem;
}

/* Modal */
.af-modal[aria-hidden=true] {
  display: none;
}

.af-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.af-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.af-modal__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 100% - 24px);
  background: var(--cardSolid);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.af-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.af-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.af-modal__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

.af-modal__body {
  padding: 14px;
}

/* responsive */
@media (min-width: 768px) {
  .footer {
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
  }
}

@media (max-width: 560px) {
  .composer {
    grid-template-columns: 1fr;
  }

  .composer .avatar {
    display: none;
  }
}

@media (min-width: 576px) {
  .af-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .quick-picks {
    flex-wrap: wrap;
  }

  .quick-pick {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 600px) {
  .avatar {
    width: 48px;
    height: 48px;
  }

  thead th,
  tbody td {
    padding: 10px;
  }

  .lb-header {
    flex-wrap: wrap;
    margin: 10px 0 12px;

  }
}

@media (min-width: 768px) {
  .header {
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 18px;
  }
}

@media (min-width: 768px) {
  .trophies__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}


@media (max-width: 520px) {
  .prono-stats-card .row {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 560px) {
  .teams-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* keyframes */
@keyframes v2Pulse {
  0% {
    transform: scale(.9);
    opacity: .9;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(.9);
    opacity: .9;
  }
}


@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flyOutRight {
  0% {
    transform: translateX(0) rotate(0);
    opacity: 1;
  }

  100% {
    transform: translateX(150%) rotate(12deg);
    opacity: 0;
  }
}

@keyframes cardIncomingStack {
  0% {
    transform: translateY(12px) rotate(-1.5deg) scale(0.96);
    opacity: 0.75;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  }

  50% {
    transform: translateY(-4px) rotate(0.5deg) scale(1.01);
    opacity: 0.95;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
  }

  100% {
    transform: translateY(0) rotate(0) scale(1);
    opacity: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  }
}

@keyframes flyOutUp {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-140%) rotate(-6deg);
    opacity: 0;
  }
}


@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


@keyframes roundCardIn {
  from {
    opacity: 0.6;
    transform: translateX(var(--enter-x, 0));
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(100vw + var(--ball-size) * 2));
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}


@keyframes viewFade {
  to {
    opacity: 1;
  }
}


@media (prefers-color-scheme: dark) {
  .socerr-loading .socerr-spinner {
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary);
  }

  .socerr-loading p {
    color: #f0f0f0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b12;
    --bg2: #0a1220;

    --card: rgba(13, 19, 32, .72);
    --cardSolid: #0b1220;

    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .62);

    --line: rgba(255, 255, 255, .10);
    --line2: rgba(255, 255, 255, .14);

    --shadow-sm: 0 10px 22px rgba(0, 0, 0, .30);
    --shadow-md: 0 18px 36px rgba(0, 0, 0, .42);
    --shadow-lg: 0 26px 60px rgba(0, 0, 0, .52);

    --ring: rgba(85, 198, 1, .24);

    --glass-blur: 16px;
    --glass-sat: 160%;
  }

  /* Background */
  html,
  body {
    background:
      radial-gradient(1200px 800px at 15% -10%, rgba(85, 198, 1, .16), transparent 55%),
      radial-gradient(900px 650px at 95% 10%, rgba(71, 147, 255, .12), transparent 55%),
      linear-gradient(180deg, var(--bg), var(--bg2));
    color: var(--text);
  }

  /* Text + muted helpers */
  p,
  .text,
  .label,
  .hint {
    color: var(--text);
  }

  /* Cards */
  .card {
    background: var(--card);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
  }

  [data-route]:hover {
    background: color-mix(in oklab, rgba(85, 198, 1, .10) 100%, transparent);
    box-shadow: var(--shadow-md);
  }

  /* Header (glass) */
  .header {
    background: rgba(11, 18, 32, .62);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
    backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  }

  /* footer */
  .footer {
    background: rgba(11, 18, 32, .62);
    border-color: var(--line);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .35);
    backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur));
  }

  .footer__item {
    color: rgba(255, 255, 255, .70);
  }

  .footer__item.active {
    color: rgba(255, 255, 255, .92);
  }

  /* Buttons */
  .button--primary {
    background: var(--brand);
    color: rgba(255, 255, 255, .95);
  }

  .button--secondary {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .88);
  }

  .button:focus-visible,
  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
  }

  /* Inputs */
  input,
  select,
  textarea {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .92);
  }

  input::placeholder,
  textarea::placeholder {
    color: rgba(255, 255, 255, .42);
  }

  /* Tabs */
  .filter-tabs__tab {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .78);
  }

  .filter-tabs__tab.is-active {
    background: linear-gradient(180deg,
        color-mix(in oklab, var(--brand) 78%, #0b1220),
        color-mix(in oklab, var(--brand) 52%, #070b12));
    border-color: color-mix(in oklab, var(--brand) 35%, transparent);
    color: rgba(255, 255, 255, .95);
    box-shadow: 0 14px 30px rgba(85, 198, 1, .18);
  }

  /* Tables / leaderboard */
  .table-wrap {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .10);
  }

  thead th {
    background: rgba(255, 255, 255, .05);
    border-bottom-color: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .88);
  }

  tbody td {
    border-bottom-color: rgba(255, 255, 255, .08);
  }

  tr.me {
    background: rgba(85, 198, 1, .10);
  }

  /* Modals / overlays */
  .modal__overlay,
  .popup-overlay {
    background: rgba(0, 0, 0, .56);
  }

  .modal__content,
  .popup-overlay .popup,
  .af-modal__content {
    background: rgba(11, 18, 32, .92);
    border-color: rgba(255, 255, 255, .10);
    box-shadow: var(--shadow-lg);
  }

  /* Icons / svg (avoid “too gray”) */
  svg,
  .icon {
    color: rgba(255, 255, 255, .86);
  }

  /* Scrollbars (optional, nicer in dark) */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: content-box;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .22);
  }


  /* --- Dark tokens (MANUAL OVERRIDE) ---
   Use when you want a toggle:
   <html data-theme="dark"> or <body data-theme="dark">
*/
  :root[data-theme="dark"],
  body[data-theme="dark"] {
    --bg: #070b12;
    --bg2: #0a1220;
    --card: rgba(13, 19, 32, .72);
    --cardSolid: #0b1220;
    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .62);
    --line: rgba(255, 255, 255, .10);
    --line2: rgba(255, 255, 255, .14);
    --shadow-sm: 0 10px 22px rgba(0, 0, 0, .30);
    --shadow-md: 0 18px 36px rgba(0, 0, 0, .42);
    --shadow-lg: 0 26px 60px rgba(0, 0, 0, .52);
    --ring: rgba(85, 198, 1, .24);
    --glass-blur: 16px;
    --glass-sat: 160%;
  }

  :root[data-theme="dark"] html,
  :root[data-theme="dark"] body,
  body[data-theme="dark"] {
    background:
      radial-gradient(1200px 800px at 15% -10%, rgba(85, 198, 1, .16), transparent 55%),
      radial-gradient(900px 650px at 95% 10%, rgba(71, 147, 255, .12), transparent 55%),
      linear-gradient(180deg, var(--bg), var(--bg2));
    color: var(--text);
  }
}


/* ==========================================================================
   SOCCERR — DARK FIX (more contrast / readable)
   Paste AFTER your dark theme block
   ========================================================================== */

/* Auto dark */
@media (prefers-color-scheme: dark) {
  :root {
    /* Lighter background than "almost black" */
    --bg: #0b1220;
    --bg2: #0f1b2d;

    /* Cards: more visible */
    --card: rgba(255, 255, 255, .08);
    --cardSolid: #111c30;

    /* Text: higher contrast */
    --text: rgba(255, 255, 255, .94);
    --muted: rgba(255, 255, 255, .72);

    /* Lines: clearer separators */
    --line: rgba(255, 255, 255, .14);
    --line2: rgba(255, 255, 255, .18);

    /* Shadows: softer but present */
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, .28);
    --shadow-md: 0 18px 42px rgba(0, 0, 0, .36);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, .44);

    /* Ring: more visible */
    --ring: rgba(85, 198, 1, .34);
  }

  html,
  body {
    background:
      radial-gradient(1100px 700px at 15% -10%, rgba(85, 198, 1, .18), transparent 55%),
      radial-gradient(900px 650px at 95% 10%, rgba(71, 147, 255, .16), transparent 55%),
      linear-gradient(180deg, var(--bg), var(--bg2));
    color: var(--text);
  }

  /* Force readable text on common elements */
  body,
  p,
  span,
  li,
  label,
  small,
  .label,
  .text {
    color: var(--text);
  }

  .text-muted,
  .muted,
  .hint,
  .sub,
  .desc,
  .small {
    color: var(--muted) !important;
  }

  /* Cards stronger */
  .card,
  .table-wrap,
  .modal__content,
  .popup-overlay .popup,
  .af-modal__content {
    background: color-mix(in oklab, var(--cardSolid) 80%, transparent) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-sm);
  }

  /* Card headers / titles */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .title,
  .card__title,
  .header__title {
    color: rgba(255, 255, 255, .96) !important;
  }

  /* Links */
  a {
    color: rgba(255, 255, 255, .92);
  }

  a:hover {
    color: color-mix(in oklab, var(--brand) 55%, white);
  }


  /* Buttons readability */
  .button--secondary {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    color: rgba(255, 255, 255, .90) !important;
  }

  /* Inputs readability */
  input,
  select,
  textarea {
    background: rgba(255, 255, 255, .07) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    color: rgba(255, 255, 255, .92) !important;
  }

  input::placeholder,
  textarea::placeholder {
    color: rgba(255, 255, 255, .55) !important;
  }

  /* Table header a bit brighter */
  thead th {
    background: rgba(255, 255, 255, .06) !important;
    color: rgba(255, 255, 255, .90) !important;
    border-bottom-color: rgba(255, 255, 255, .14) !important;
  }

  tbody td {
    border-bottom-color: rgba(255, 255, 255, .10) !important;
  }

  /* Footer/header glass: slightly brighter */
  .header,
  .footer {
    background: rgba(17, 28, 48, .72) !important;
    border-color: rgba(255, 255, 255, .14) !important;
  }
}

/* Manual forced dark */
:root[data-theme="dark"],
body[data-theme="dark"] {
  --bg: #0b1220;
  --bg2: #0f1b2d;
  --card: rgba(255, 255, 255, .08);
  --cardSolid: #111c30;
  --text: rgba(255, 255, 255, .94);
  --muted: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .14);
  --line2: rgba(255, 255, 255, .18);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, .28);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, .36);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .44);
  --ring: rgba(85, 198, 1, .34);
}


body .state{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--cardSolid) 92%, transparent);
  font-weight: 900;
  color: var(--muted);
}
body .state svg{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: block;
}
body .state-code{
  font-size: 12px;
  letter-spacing: -0.01em;
}