/* Next.js overrides to match legacy theme (must load last) */

/* Global page background (same asset + overlays on every route) */
html {
  min-height: 100%;
  background-color: var(--gt-bg, #0b0e13);
}

body {
  color: var(--gt-white, #ffffff) !important;
  background-color: var(--gt-bg, #0b0e13) !important;
  background-image:
    linear-gradient(180deg, rgba(11, 14, 19, 0.88), rgba(11, 14, 19, 0.94)),
    radial-gradient(900px 420px at 50% -15%, rgba(255, 8, 8, 0.16), transparent 55%),
    url("/assets/img/bg.jpg") !important;
  background-repeat: no-repeat !important;
  background-size: cover, cover, cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
}

@media (max-width: 991px) {
  body {
    background-attachment: scroll !important;
  }
}

/* Home hub: mobile-shell CSS uses opaque gradients on #sp-home-hub — they hide the global body background */
#sp-home-hub {
  background: transparent !important;
  overflow: visible !important;
}

#sp-home-hub.fix {
  overflow: visible !important;
}

/* Home landing: .fix clips flank PNGs + .gt-gallery-slider negative margins */
.sp-home-landing-sections > section.fix {
  overflow: visible !important;
}

/* Hub shortcuts → Squad up: light separation only */
#sp-home-hub .sp-home-landing-sections {
  margin-top: clamp(0.35rem, 1.2vw, 0.65rem);
}

#sp-home-hub .sp-home-landing-sections > section:first-child.section-padding {
  padding-top: 0 !important;
}

.sp-bank-card__corner-stack {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.sp-bank-card__corner-stack .sp-bank-card__corner-logo {
  position: static;
}

.sp-balance-visibility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.sp-balance-visibility-btn--corner {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.sp-balance-visibility-btn--corner i {
  font-size: 0.95rem;
}

.sp-balance-visibility-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--gt-white, #fff);
}

.sp-balance-visibility-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.25);
}

/* App mains with .fix — transparent decor extends past inner sections */
.sp-page-wallet.fix,
.sp-page-report.fix,
.sp-page-tournaments.fix,
.sp-page-tournament.fix {
  overflow: visible !important;
}

.card,
.card.mb-0 {
  background: var(--gt-bg-2, #1c1d20) !important;
  color: var(--gt-white, #ffffff) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
}

.card hr {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Tablet / iPad+: floating tab bar — wider on desktop than fit-content pill */
@media (min-width: 768px) {
  body.sp-mobile-nav-on {
    padding-bottom: calc(4.25rem + 24px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sp-mobile-nav {
    display: flex !important;
    width: min(680px, calc(100% - 40px)) !important;
    max-width: calc(100% - 32px) !important;
    min-width: min(420px, calc(100% - 40px)) !important;
    left: 50% !important;
    right: unset !important;
    transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    justify-content: space-evenly !important;
    gap: 0.35rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.5rem !important;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  }

  .sp-mobile-nav a {
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 4.5rem;
    padding: 0.5rem 0.65rem 0.45rem !important;
    font-size: 11px !important;
  }

  .sp-mobile-nav a i {
    font-size: 1.35rem !important;
  }
}

@media (min-width: 1200px) {
  .sp-mobile-nav {
    width: min(820px, calc(100% - 48px)) !important;
    min-width: min(560px, calc(100% - 48px)) !important;
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
    gap: 0.5rem;
  }

  .sp-mobile-nav a {
    min-width: 5.5rem;
    padding: 0.55rem 0.85rem 0.5rem !important;
    font-size: 12px !important;
  }

  .sp-mobile-nav a i {
    font-size: 1.45rem !important;
  }
}

/* Account: space below absolute header (.section-padding top was overridden by inline paddingTop: 20) */
.sp-page-account {
  padding-top: clamp(96px, 10vw, 128px) !important;
}

.sp-page-account__title {
  margin: 0 0 10px;
}

/* Account: main card inner padding (Bootstrap .card has no horizontal padding) */
.sp-ac-main-card.card {
  padding: 18px 18px 22px !important;
}

@media (min-width: 768px) {
  .sp-ac-main-card.card {
    padding: 22px 26px 28px !important;
  }
}

/* Account: main may bleed for layout; card + wrap clip — decor stays inside wrap (no negative inset) */
.sp-page-account.fix {
  overflow: visible !important;
}

/* visible: dropdowns (portal) + footer actions must not clip; decor stays inside via positioned max sizes */
.sp-page-account .sp-ac-main-card.card {
  overflow: visible;
}

.sp-page-account .sp-ac-main-card .sp-form-codm-wrap {
  overflow: visible;
}

/* Settings: save row full width, never beside the currency column */
#sp-account-edit .sp-ac-actions {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  margin-top: 1.25rem !important;
  padding-bottom: 4px;
}

#sp-account-edit .sp-ac-actions > .gt-theme-btn,
#sp-account-edit .sp-ac-actions > a.gt-theme-btn,
#sp-account-edit .sp-ac-actions > .sp-holo-cta {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  justify-content: center;
}

@media (min-width: 768px) {
  #sp-account-edit .sp-ac-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }

  #sp-account-edit .sp-ac-actions > .gt-theme-btn,
  #sp-account-edit .sp-ac-actions > a.gt-theme-btn,
  #sp-account-edit .sp-ac-actions > .sp-holo-cta {
    width: auto;
    min-width: 160px !important;
  }
}

.sp-page-account .sp-ac-main-card .sp-form-codm-decor {
  bottom: 0;
  right: 0;
  left: auto;
  top: auto;
  width: min(52%, 292px);
  height: min(48vh, 400px);
  max-height: min(48vh, 92%);
  opacity: 0.19;
}

.sp-page-account .sp-ac-main-card .sp-form-codm-decor.sp-form-codm-decor--tall {
  height: min(54vh, 440px);
  max-height: min(54vh, 94%);
  opacity: 0.16;
}

.sp-ac-profile-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 0.75rem;
  align-items: start;
}

@media (min-width: 768px) {
  .sp-ac-profile-top {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 16px 20px;
    margin-bottom: 0.65rem;
  }
}

.sp-ac-profile-id {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sp-ac-profile-upload {
  min-width: 0;
}

.sp-ac-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .sp-ac-avatar-preview {
    width: 108px;
    height: 108px;
  }
}

.sp-ac-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-ac-avatar-placeholder {
  font-size: 2.25rem;
  opacity: 0.9;
}

.sp-ac-meta-line {
  margin-bottom: 0.85rem !important;
  margin-top: 0;
}

.sp-ac-form-grid {
  --bs-gutter-y: 0.85rem;
}

/* Account → My tournaments: list inside card */
.sp-ac-my-matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.sp-my-tournament-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.sp-my-tournament-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.sp-my-tournament-row:hover {
  border-color: rgba(255, 8, 8, 0.28);
  background: rgba(0, 0, 0, 0.3);
}

.sp-my-tournament-row__main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
}

.sp-my-tournament-row__main:hover {
  color: inherit;
}

.sp-my-tournament-row__thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.sp-my-tournament-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-my-tournament-row__text {
  min-width: 0;
  flex: 1 1 auto;
}

.sp-my-tournament-row__title {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-my-tournament-row__meta {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.52);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-my-tournament-row__cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.sp-my-tournament-row__btn.gt-theme-btn,
.sp-my-tournament-row__btn.sp-mk8-cta__btn {
  padding: 0.4rem 0.78rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  min-height: 0 !important;
  line-height: 1.25;
  white-space: nowrap;
}

.sp-my-tournaments-compact-btn.gt-theme-btn,
.sp-my-tournaments-compact-btn.sp-mk8-cta__btn {
  padding: 0.32rem 0.65rem !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  min-height: 0 !important;
}

@media (max-width: 575.98px) {
  .sp-my-tournament-row {
    flex-wrap: wrap;
  }

  .sp-my-tournament-row__main {
    flex: 1 1 100%;
  }

  .sp-my-tournament-row__cta {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

#sp-account-my-tournaments h4,
#sp-account-find h4,
#sp-account-organize h4 {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
}

#sp-account-edit .form-clt,
#sp-account-booking .form-clt,
#sp-account-organize .form-clt,
#sp-account-find .form-clt,
#sp-account-my-tournaments .form-clt,
#sp-report-form .form-clt,
#sp-wallet-convert .form-clt,
#sp-wallet-withdraw .form-clt,
.sp-page-my-tournaments .form-clt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

#sp-account-edit .form-clt > span:first-of-type,
#sp-account-booking .form-clt > span:first-of-type,
#sp-account-organize .form-clt > span:first-of-type,
#sp-account-find .form-clt > span:first-of-type,
#sp-account-my-tournaments .form-clt > span:first-of-type,
#sp-report-form .form-clt > span:first-of-type,
#sp-wallet-convert .form-clt > span:first-of-type,
#sp-wallet-withdraw .form-clt > span:first-of-type,
.sp-page-my-tournaments .form-clt > span:first-of-type {
  display: block;
  margin-bottom: 7px;
  padding-right: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

#sp-account-edit .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-account-booking .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-account-organize .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-account-find .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-account-my-tournaments .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-report-form .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-wallet-convert .form-clt input:not([type="checkbox"]):not([type="radio"]),
#sp-wallet-withdraw .form-clt input:not([type="checkbox"]):not([type="radio"]),
.sp-page-my-tournaments .form-clt input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
}

#sp-account-edit .form-clt input:focus,
#sp-account-booking .form-clt input:focus,
#sp-account-organize .form-clt input:focus,
#sp-account-find .form-clt input:focus,
#sp-account-my-tournaments .form-clt input:focus,
#sp-report-form .form-clt input:focus,
#sp-wallet-convert .form-clt input:focus,
#sp-wallet-withdraw .form-clt input:focus,
.sp-page-my-tournaments .form-clt input:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.1);
}

#sp-account-edit .form-clt textarea,
#sp-report-form .form-clt textarea {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  resize: vertical;
}

#sp-account-edit .form-clt textarea:focus,
#sp-report-form .form-clt textarea:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.1);
}

/* Account: sidebar sections */
.sp-ac-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 992px) {
  .sp-ac-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
}

.sp-ac-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(28, 29, 32, 0.65);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.sp-ac-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-ac-sidebar__toggle {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  min-width: 0 !important;
}

.sp-ac-sidebar__toggle i {
  font-size: 1.1rem;
}

.sp-ac-sidebar__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.sp-ac-sidebar__nav {
  display: grid;
  padding: 10px;
  gap: 8px;
}

.sp-ac-sidebar__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.sp-ac-sidebar__btn.is-active {
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.12);
}

.sp-ac-sidebar__btn i {
  opacity: 0.8;
}

.sp-ac-sidebar__signout {
  margin: 8px 10px 12px;
  width: calc(100% - 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 80, 80, 0.45);
  background: rgba(255, 8, 8, 0.08);
  color: #ffb4b4 !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .sp-ac-sidebar.is-collapsed .sp-ac-sidebar__nav {
    display: none;
  }
}

/* Header: constrain raster logo (replaces small SVG from theme) */
.header-1 .header-left .logo .header-logo img {
  height: auto !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain;
}

.sp-landing {
  padding-top: 14px;
  padding-bottom: 80px;
  min-height: 100vh;
  filter: none !important;
  backdrop-filter: none !important;
}

.sp-landing .sp-home-hub__container {
  padding-top: 0 !important;
}

.sp-landing-header .header-right {
  gap: 12px;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}

.sp-landing-header .header-right .header-right-icon {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}

.sp-landing-header .header-right .sp-holo-cta,
.sp-landing-header .sp-landing-header__signin-holo {
  flex-shrink: 0;
  line-height: 1;
}

/* Landing: navbar fixe — toujours visible au scroll (ancres #section incluses) */
.sp-landing-header.header-1 {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999999;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* main.js ajoute .sticky après 250px — même rendu, sans animation / ombre du thème */
.sp-landing-header.header-1.sticky {
  animation: none !important;
  -webkit-animation: none !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 999999;
}

html:has(main.sp-gx-landing) {
  scroll-padding-top: max(5.5rem, calc(env(safe-area-inset-top, 0px) + 4.5rem));
}

.sp-landing-header.header-1 .mega-menu-wrapper {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.sp-landing-header.header-1 .header-main {
  background: transparent !important;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 12px;
}

.sp-landing-header .header-left {
  gap: 20px !important;
}

.sp-landing-header__sections {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px;
}

@media (min-width: 992px) {
  .sp-landing-header__sections {
    display: flex !important;
  }
}

.sp-landing-header__section-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 6px;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.sp-landing-header__section-link:hover {
  color: var(--gt-theme, #ff0808) !important;
}

@media (max-width: 520px) {
  .sp-landing-header .header-main {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
  .sp-landing-header .header-right {
    gap: 8px;
  }
}

.sp-landing-hero {
  position: relative;
  min-height: clamp(200px, 22vw, 320px);
  margin: 6px 0 12px;
  border-radius: 18px;
  overflow: hidden;
  background-image: url("/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none !important;
  backdrop-filter: none !important;
}

.sp-landing-hero__soldier {
  position: absolute;
  left: 0;
  bottom: -22px;
  top: auto;
  width: min(32vw, 260px);
  max-width: 260px;
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

@media (max-width: 991px) {
  .sp-landing-hero__soldier {
    width: min(44vw, 230px);
    bottom: -18px;
    left: 0;
    opacity: 0.45;
  }
}

@media (max-width: 520px) {
  .sp-landing-hero__soldier {
    display: none;
  }
}

/* —— Landing refresh (marketing home) —— */
.sp-landing--fresh {
  padding-top: 0;
  padding-bottom: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

.sp-landing-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 calc(-1 * clamp(16px, 4vw, 28px)) 28px;
  padding: 12px clamp(16px, 4vw, 28px);
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.94) 0%, rgba(10, 12, 18, 0.72) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-landing-topbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.sp-landing-topbar__logo {
  flex: 0 1 auto;
  min-width: 0;
}

.sp-landing-topbar__logo img {
  max-height: 40px !important;
  width: auto !important;
  max-width: min(160px, 38vw);
}

.sp-landing-topbar__nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.sp-landing-topbar__link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.sp-landing-topbar__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.sp-landing-topbar__btn.gt-theme-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  min-width: 0 !important;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .sp-landing-topbar {
    padding: 10px clamp(12px, 3vw, 20px);
    margin-bottom: 20px;
  }
  .sp-landing-topbar__inner {
    gap: 10px;
  }
  .sp-landing-topbar__logo img {
    max-height: 34px !important;
    max-width: min(140px, 42vw);
  }
  .sp-landing-topbar__nav {
    gap: 6px;
  }
  .sp-landing-topbar__link {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
  .sp-landing-topbar__btn.gt-theme-btn {
    padding: 8px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
}

.sp-landing-hero-v2 {
  padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 6vw, 64px);
}

.sp-landing-hero-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

@media (min-width: 900px) {
  .sp-landing-hero-v2__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.sp-landing-hero-v2__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.9);
  margin-bottom: 12px;
  font-weight: 600;
}

.sp-landing-hero-v2__title {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.sp-landing-hero-v2__accent {
  color: #fbbf24;
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.25);
}

.sp-landing-hero-v2__lead {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  max-width: 36rem;
  margin: 0 0 26px;
}

.sp-landing-hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.sp-landing-hero-v2__cta-primary.gt-theme-btn {
  padding: 14px 22px;
  font-weight: 700;
}

.sp-landing-hero-v2__cta-secondary.gt-theme-btn {
  padding: 14px 20px;
}

.sp-landing-hero-v2__ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.sp-landing-hero-v2__ticks i {
  color: #4ade80;
  margin-right: 10px;
  width: 1em;
}

.sp-landing-hero-v2__panel {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.08) 0%, rgba(59, 130, 246, 0.06) 50%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 260px;
}

.sp-landing-hero-v2__panel-deco {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  pointer-events: none;
}

.sp-landing-hero-v2__deco-diamond {
  width: 26px;
  height: auto;
}

.sp-landing-hero-v2__deco-dice {
  width: 34px;
  height: auto;
}

.sp-landing-hero-v2__panel-inner {
  padding: clamp(22px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  justify-content: center;
}

.sp-landing-hero-v2__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-landing-hero-v2__stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sp-landing-hero-v2__stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.sp-landing-hero-v2__stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.sp-landing-section {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Landing gallery: allow slider overflow + align with padded main */
.sp-landing-gallery.fix {
  overflow: visible !important;
}

.sp-landing-gallery .sp-landing-section__head {
  margin-bottom: 28px;
}

.sp-landing-gallery__swiper.gt-gallery-slider {
  margin-left: calc(-1 * clamp(16px, 4vw, 28px) - 8%);
  margin-right: calc(-1 * clamp(16px, 4vw, 28px) - 8%);
}

@media (max-width: 1199px) {
  .sp-landing-gallery__swiper.gt-gallery-slider {
    margin-left: calc(-1 * clamp(16px, 4vw, 28px));
    margin-right: calc(-1 * clamp(16px, 4vw, 28px));
  }
}

.sp-landing-section__head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 36px;
}

.sp-landing-section__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.sp-landing-section__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  line-height: 1.55;
}

.sp-landing-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 700px) {
  .sp-landing-feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.sp-landing-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.sp-landing-card:hover {
  border-color: rgba(251, 191, 36, 0.25);
  transform: translateY(-2px);
}

.sp-landing-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.sp-landing-card__icon-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sp-landing-card__icon-img--light {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.sp-landing-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.35;
}

.sp-landing-card__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.sp-landing-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .sp-landing-step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: none;
  }
}

.sp-landing-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px 18px;
}

.sp-landing-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-landing-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.sp-landing-step__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.sp-landing-quotes__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  opacity: 0.5;
}

.sp-landing-quotes__mark img {
  width: 36px;
  height: auto;
}

.sp-landing-quote-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .sp-landing-quote-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.sp-landing-quote {
  margin: 0;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(251, 191, 36, 0.55);
  border-radius: 0 12px 12px 0;
}

.sp-landing-quote p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
}

.sp-landing-quote footer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.sp-landing-final-cta {
  padding: clamp(48px, 8vw, 72px) 0 80px;
}

.sp-landing-final-cta__inner {
  text-align: center;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(251, 191, 36, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.sp-landing-final-cta__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.sp-landing-final-cta__text {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.sp-landing-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sp-landing-final-cta__actions .gt-theme-btn {
  padding: 12px 24px;
  font-weight: 700;
}

.offcanvas__logo img {
  height: auto !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
}

@media (max-width: 991px) {
  .header-1 .header-left .logo .header-logo img {
    max-height: 36px !important;
    max-width: 140px !important;
  }
}

/* Offcanvas: slide from RIGHT */
.offcanvas__info {
  left: auto !important;
  right: 0 !important;
  border-right: none !important;
  border-left: 2px solid var(--gt-theme, #ff0808) !important;
  transform: translateX(calc(100% + 80px)) !important;
  background: var(--gt-bg-2, #1c1d20) !important;
}

.offcanvas__info.info-open {
  transform: translateX(0) !important;
}

.offcanvas__wrapper .offcanvas__content .text {
  color: rgba(255, 255, 255, 0.78) !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact h4 {
  color: var(--gt-white, #fff) !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact ul li a {
  color: rgba(255, 255, 255, 0.88) !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__contact .social-icon a {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.sp-offcanvas-nav {
  display: grid;
  gap: 8px;
}

.sp-offcanvas-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--gt-white, #fff) !important;
  font-weight: 700;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

.sp-offcanvas-nav__link i {
  color: var(--gt-theme, #ff0808);
}

button.sp-offcanvas-nav__link {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.sp-header-icon-btn {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  color: inherit;
  line-height: 1;
}

.header-right-icon .sp-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* main.css hides .search-toggler under 575px — restore invite-code search on mobile */
@media (max-width: 575px) {
  .header-1 .header-right .header-right-icon .main-header__search.search-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

button.sidebar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove empty meanmenu bar if legacy scripts inject markup */
.mean-container .mean-bar:empty {
  display: none !important;
}

/* Closed menu / search layers: must not intercept vertical scroll touches (iOS) */
.offcanvas__overlay:not(.overlay-open) {
  pointer-events: none !important;
}

.search-popup:not(.active) {
  pointer-events: none !important;
}

/* Invite search: legacy focus used var(--gt-header) (#fff) → invisible on white input; body is also white !important */
.search-popup__form input[type="search"],
.search-popup__form input[type="text"] {
  color: #141414 !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #141414;
}

.search-popup__form input[type="search"]::placeholder,
.search-popup__form input[type="text"]::placeholder {
  color: #6b7280;
  opacity: 1;
}

.search-popup__form input[type="search"]:focus,
.search-popup__form input[type="text"]:focus {
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a;
}

/* Tournament / match detail — compact toolbar, no stretched thumbs, readable copy */
.sp-page-tournament {
  text-transform: none;
  padding-top: clamp(92px, 13vw, 128px) !important;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden;
}

@media (max-width: 991.98px) {
  /* Détail match : garde le pinch zoom ; liste tournois : défilement natif (pan-y seul pouvait gêner le scroll) */
  .sp-page-tournament {
    touch-action: pan-y pinch-zoom;
  }

  /* Liste Play / tournois : pan-y explicite (liens + cartes d’aide) pour éviter le scroll « collant » sur iOS */
  .sp-page-tournaments {
    touch-action: pan-y pinch-zoom;
  }

  .sp-app__content {
    overflow: visible;
    min-height: 0;
  }
}

.sp-tournament-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  gap: clamp(6px, 2vw, 10px);
  margin: 0 0 1rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sp-tournament-toolbar::-webkit-scrollbar {
  height: 3px;
}

.sp-tournament-toolbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
}

/* HoloCta wraps in .sp-holo-cta — constrain flex on the wrapper, not a max-width on the hex (was clipping “Back” / “All”). */
.sp-tournament-toolbar > .sp-holo-cta {
  flex: 0 0 auto;
  flex-shrink: 0;
  max-width: 100%;
}

.sp-tournament-toolbar .sp-tournament-toolbar__btn {
  flex: none !important;
  align-self: center !important;
  min-width: min-content !important;
  width: max-content !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.25 !important;
  white-space: nowrap;
}

.sp-tournament-toolbar .sp-tournament-toolbar__btn .sp-mk8-cta__face {
  max-width: none;
}

@media (max-width: 420px) {
  .sp-tournament-toolbar > .sp-holo-cta.sp-holo-cta--sm {
    --sp-mk8-fs: 6px;
    --sp-mk8-pad-x: 2.65em;
  }

  .sp-tournament-toolbar .sp-tournament-toolbar__btn {
    padding: 8px 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.05em !important;
  }
}

.sp-tournament-statusline {
  margin: 0 0 0.75rem;
}

.sp-tournament-thumb-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 0 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.sp-tournament-thumb {
  width: 100%;
  height: auto;
  max-height: min(60vh, 520px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.sp-tournament-title {
  font-size: clamp(1.2rem, 4.2vw, 1.65rem);
  line-height: 1.25;
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--gt-white, #fff);
}

.sp-tournament-meta {
  margin: 0 0 1.1rem;
  line-height: 1.55;
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.sp-tournament-actions {
  margin: 0 0 0.25rem;
}

.sp-tournament-actions--row {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sp-tournament-join,
.sp-tournament-join.sp-mk8-cta__btn {
  min-width: 0 !important;
  width: 100%;
  max-width: 340px;
  padding: 0.3em !important;
  font-size: inherit !important;
}

/* Holo hex on tournament page: avoid px padding fighting clip-path; slightly tighter label scale on small screens */
.sp-tournament-actions .sp-holo-cta--md {
  --sp-mk8-fs: 7.25px;
  --sp-mk8-pad-x: 2.85em;
}

@media (max-width: 420px) {
  .sp-tournament-actions .sp-holo-cta--md {
    --sp-mk8-fs: 6.5px;
    --sp-mk8-pad-x: 2.5em;
  }

  .sp-tournament-actions .sp-holo-cta--md .sp-mk8-cta__text {
    letter-spacing: 0.02em;
  }
}

.sp-tournament-note,
.sp-tournament-msg {
  margin-top: 10px;
  line-height: 1.45;
  text-transform: none;
}

.sp-tournament-section {
  margin-top: 22px;
}

.sp-tournament-section__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.sp-tournament-section__text {
  line-height: 1.6;
  margin: 0;
  text-transform: none;
}

/* Host Holo CTAs: avoid horizontal clip from section/stacking contexts */
.sp-page-tournament .sp-tournament-section .d-flex.flex-wrap {
  overflow: visible;
}

.sp-manage-lobby .sp-tournament-section .gt-theme-btn {
  padding: 0.3rem 0.6rem !important;
  font-size: 0.72rem !important;
  min-height: 0 !important;
  min-width: 0 !important;
  line-height: 1.25;
  letter-spacing: 0.05em;
  white-space: normal;
  text-align: center;
  max-width: min(100%, 280px);
}

@keyframes sp-room-status-cta-blink {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.9;
    filter: brightness(1.12);
  }
}

@keyframes sp-room-status-cta-glow-start {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.45);
  }
  50% {
    box-shadow: 0 0 28px 8px rgba(25, 135, 84, 0.38);
  }
}

@keyframes sp-room-status-cta-glow-complete {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
  }
  50% {
    box-shadow: 0 0 32px 10px rgba(220, 53, 69, 0.42);
  }
}

/*
 * Host room Holo hex: flat-button padding + normal wrap broke clip-path / drop-shadow (clipped text, esp. left).
 * Match holo-cta-button defaults; tune size via --sp-mk8-* on the wrapper below.
 */
.sp-room-status-cta,
.sp-mk8-cta__btn.sp-room-status-cta {
  display: inline-block !important;
  padding: 0.3em !important;
  min-height: 0 !important;
  font-size: inherit !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1.15 !important;
  max-width: none !important;
  white-space: nowrap !important;
  text-align: center !important;
  animation: sp-room-status-cta-blink 1.45s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.sp-page-tournament .sp-holo-cta:has(.sp-room-status-cta),
.sp-manage-lobby .sp-holo-cta:has(.sp-room-status-cta) {
  --sp-mk8-fs: 6.65px;
  --sp-mk8-pad-x: 2.35em;
}

@media (min-width: 576px) {
  .sp-page-tournament .sp-holo-cta:has(.sp-room-status-cta),
  .sp-manage-lobby .sp-holo-cta:has(.sp-room-status-cta) {
    --sp-mk8-fs: 7.15px;
    --sp-mk8-pad-x: 2.55em;
  }
}

.sp-room-status-cta:not(:disabled):hover,
.sp-mk8-cta__btn.sp-room-status-cta:not(:disabled):hover {
  transform: translateY(-2px);
}

.sp-room-status-cta:disabled,
.sp-mk8-cta__btn.sp-room-status-cta:disabled {
  animation: none !important;
  box-shadow: none !important;
  opacity: 0.58;
}

.sp-room-status-cta--start,
.sp-mk8-cta__btn.sp-room-status-cta--start {
  animation: sp-room-status-cta-blink 1.45s ease-in-out infinite, sp-room-status-cta-glow-start 1.85s ease-in-out infinite;
}

.sp-room-status-cta--complete,
.sp-mk8-cta__btn.sp-room-status-cta--complete {
  animation: sp-room-status-cta-blink 1.45s ease-in-out infinite, sp-room-status-cta-glow-complete 1.85s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sp-room-status-cta,
  .sp-room-status-cta--start,
  .sp-room-status-cta--complete,
  .sp-mk8-cta__btn.sp-room-status-cta,
  .sp-mk8-cta__btn.sp-room-status-cta--start,
  .sp-mk8-cta__btn.sp-room-status-cta--complete {
    animation: none !important;
    box-shadow: none !important;
  }
}

.sp-tournament-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.sp-tournament-private__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

@media (min-width: 576px) {
  .sp-tournament-private__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sp-tournament-private__label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.sp-tournament-private__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gt-white, #fff);
}

.sp-tournament-join-reveal {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-organizer-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sp-organizer-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.sp-organizer-pick-card:hover:not(:disabled) {
  border-color: rgba(255, 8, 8, 0.45);
  background: rgba(255, 8, 8, 0.08);
}

.sp-organizer-pick-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sp-organizer-pick-card.is-picked {
  border-color: rgba(255, 8, 8, 0.65);
  background: rgba(255, 8, 8, 0.14);
}

.sp-organizer-pick-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
}

.sp-organizer-pick-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-organizer-pick-card__name {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
}

.sp-organizer-pick-card__tag {
  font-size: 0.65rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-tournament-roster {
  padding-left: 1.1rem;
  margin: 0;
  line-height: 1.55;
  text-transform: none;
}

/* Lobby roster: teams + slots (BR solo/duo/squad, multiplayer) */
.sp-lobby-roster__meta {
  line-height: 1.45;
  margin-top: 0;
}

.sp-lobby-roster__meta-sep {
  opacity: 0.65;
}

.sp-lobby-roster__cap-note {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.sp-lobby-roster__teams {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  /* grid-template-columns set inline from squad size (auto-fill) */
}

.sp-lobby-team {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  padding: 12px 14px 14px;
  min-width: 0;
}

.sp-lobby-team__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sp-lobby-team__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gt-white, #fff);
}

.sp-lobby-team__pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 8, 8, 0.16);
  border: 1px solid rgba(255, 8, 8, 0.32);
  color: rgba(255, 255, 255, 0.92);
}

.sp-lobby-team__slots {
  display: grid;
  gap: 10px;
  min-width: 0;
  grid-template-columns: repeat(var(--sp-slot-cols, 4), minmax(0, 1fr));
}

/* Narrow viewports: avoid 4 squeezed columns — badges overflow into adjacent cells */
@media (max-width: 575.98px) {
  .sp-lobby-team__slots[data-slot-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-lobby-team__slots[data-slot-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sp-lobby-slot {
  border-radius: 12px;
  padding: 10px 10px 11px;
  min-height: 5.5rem;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-lobby-slot--open {
  border-style: dashed;
  border-color: rgba(120, 220, 160, 0.35);
  background: rgba(80, 200, 120, 0.06);
}

.sp-lobby-slot--pickable {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.sp-lobby-slot--pickable:hover,
.sp-lobby-slot--pickable:focus-visible {
  border-color: rgba(255, 90, 90, 0.55);
  background: rgba(255, 60, 60, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 100, 100, 0.25);
  outline: none;
}

.sp-lobby-slot__badge--taken {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

.sp-lobby-slot__body--anon {
  min-height: 52px;
}

.sp-lobby-roster__hint strong {
  font-weight: 700;
}

.sp-lobby-slot--empty {
  justify-content: center;
  min-height: 4.25rem;
}

.sp-lobby-slot--empty .sp-lobby-slot__head {
  margin-bottom: 0;
  width: 100%;
}

.sp-lobby-slot--filled {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
}

.sp-lobby-slot--out {
  opacity: 0.48;
  border-style: dashed;
  background: rgba(0, 0, 0, 0.12);
}

.sp-lobby-slot__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.sp-lobby-slot__spot-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  min-width: 0;
  flex: 1 1 auto;
}

.sp-lobby-slot__badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  line-height: 1.2;
  flex: 0 1 auto;
  max-width: 100%;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .sp-lobby-slot__head {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .sp-lobby-slot__badge {
    text-align: left;
    align-self: flex-start;
    max-width: 100%;
  }
}

.sp-lobby-slot__badge--open {
  color: rgba(160, 245, 190, 0.95);
  background: rgba(60, 180, 100, 0.2);
  border: 1px solid rgba(100, 210, 140, 0.35);
}

.sp-lobby-slot__badge--you {
  color: #fff;
  background: rgba(255, 8, 8, 0.35);
  border: 1px solid rgba(255, 120, 120, 0.45);
}

.sp-lobby-slot__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.sp-lobby-slot__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-lobby-slot__avatar--ph {
  background: rgba(255, 255, 255, 0.08);
}

.sp-lobby-slot__text {
  min-width: 0;
  flex: 1;
}

.sp-lobby-slot__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gt-white, #fff);
  line-height: 1.25;
  word-break: break-word;
}

.sp-lobby-slot__codm {
  font-size: 0.72rem;
  margin-top: 4px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.sp-lobby-slot__codm--muted {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.sp-lobby-slot__available-msg,
.sp-lobby-slot__na-msg {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  margin-top: auto;
}

.sp-lobby-roster__pending {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-lobby-roster__pending-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
  color: rgba(255, 220, 160, 0.95);
}

.sp-lobby-roster__pending-list {
  padding: 0;
  margin: 0;
}

.sp-lobby-roster__pending-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  line-height: 1.4;
}

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

.sp-tournament-winners {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.sp-tournament-winners li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  text-transform: none;
}

.sp-tournament-winners__place {
  flex: 0 0 auto;
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: rgba(255, 8, 8, 0.18);
  border: 1px solid rgba(255, 8, 8, 0.35);
  color: var(--gt-white, #fff);
}

.sp-tournament-winners__name {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.sp-tournament-embed {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 180px;
  border: 0;
  border-radius: 12px;
  margin-top: 4px;
}

.sp-tournament-form-field {
  margin-top: 12px;
}

.sp-tournament-form-field:first-of-type {
  margin-top: 0;
}

.sp-tournament-form-field label {
  display: block;
  margin-bottom: 8px;
  text-transform: none;
}

.sp-tournament-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  font-size: 14px;
  text-transform: none;
}

.sp-tournament-input:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.12);
}

.sp-tournament-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 576px) {
  .sp-tournament-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wallet page — same bank card as home + card-bg art + corner logo */
.sp-page-wallet,
.sp-page-report {
  padding-top: clamp(92px, 12vw, 128px) !important;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)) !important;
}

.sp-page-wallet .container {
  min-width: 0;
  max-width: 100%;
}

.sp-wallet-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.sp-wallet-page-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: 0.04em;
}

.sp-wallet-page-head__link {
  flex: 0 0 auto;
  min-width: 0 !important;
  padding: 10px 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.07em !important;
}

.sp-wallet-status {
  margin: 0 0 0.75rem;
}

.sp-wallet-balance-card {
  margin-bottom: 1.25rem;
}

.sp-wallet-top-row .sp-wallet-balance-card {
  margin-bottom: 0;
}

/* /assets/img/new-transparent — balance + form backdrops */
.sp-new-transparent-decor {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  z-index: 0;
  opacity: 0.26;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
}

.sp-bank-card > .sp-bank-card__new-decor.sp-new-transparent-decor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(58%, 300px);
  height: min(78%, 320px);
  opacity: 0.34;
  z-index: 0;
}

.sp-form-codm-wrap {
  position: relative;
  overflow: visible;
}

.sp-form-codm-wrap > *:not(.sp-new-transparent-decor) {
  position: relative;
  z-index: 1;
}

.sp-wallet-panel.sp-form-codm-wrap {
  min-height: 0;
}

.sp-form-codm-decor {
  width: min(56%, 300px);
  height: min(52vh, 400px);
  max-height: 90%;
  bottom: -14%;
  right: -8%;
  opacity: 0.2;
}

.sp-form-codm-decor--left {
  right: auto;
  left: -8%;
  transform: scaleX(-1);
}

.sp-form-codm-decor--tall {
  height: min(58vh, 460px);
  opacity: 0.17;
}

.sp-door__right.sp-form-codm-wrap {
  overflow: visible;
}

.sp-door__form-bg {
  width: min(100%, 400px);
  height: 78%;
  left: -22%;
  right: auto;
  bottom: -10%;
  opacity: 0.15;
  background-position: left bottom;
}

.sp-tournament-section.sp-form-codm-wrap {
  padding-bottom: 6px;
}

.sp-form-codm-decor--tournament {
  width: min(48%, 240px);
  height: 220px;
  bottom: -4%;
  right: -10%;
  opacity: 0.16;
}

/* Full-route / gate loading (Next loading.tsx, AuthGate) */
.sp-route-loading-root {
  min-height: min(70vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.sp-route-loading-inner {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.sp-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.sp-loading__bar {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sp-loading__bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background-image: linear-gradient(to right, rgba(255, 8, 8, 0.1), rgba(255, 8, 8, 0.9), rgba(255, 8, 8, 0.1));
  animation: sp-loading-slide 1.25s ease-in-out infinite;
}

@keyframes sp-loading-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(420%);
  }
}

.sp-loading__text {
  font-size: 0.95rem;
}

.sp-tournaments-page-codm .sp-tournaments-page-decor {
  width: min(70%, 420px);
  height: min(50vh, 540px);
  bottom: -24%;
  right: -12%;
  opacity: 0.14;
}

.sp-bank-card.sp-bank-card--cardbg {
  background:
    linear-gradient(180deg, rgba(11, 14, 19, 0.68) 0%, rgba(11, 14, 19, 0.9) 100%),
    radial-gradient(720px 280px at 8% 0%, rgba(255, 8, 8, 0.22), transparent 58%),
    url("/assets/img/card-bg.jpg") center / cover no-repeat,
    var(--gt-bg-2, #1c1d20) !important;
}

.sp-bank-card.sp-bank-card--cardbg::before {
  opacity: 0.45;
}

.sp-bank-card__corner-logo {
  width: 92px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
}

@media (max-width: 400px) {
  .sp-bank-card__corner-stack {
    top: 10px;
    right: 10px;
    gap: 5px;
  }

  .sp-bank-card__corner-logo {
    width: 80px;
    max-height: 60px;
  }

  .sp-balance-visibility-btn--corner {
    width: 34px;
    height: 34px;
  }
}

.sp-bank-card__brand--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#wallet-deposit,
#wallet-withdraw,
#wallet-history {
  scroll-margin-top: 96px;
}

.sp-wallet-panel {
  margin-top: 1rem;
  padding: 1.1rem 1.15rem !important;
}

.sp-wallet-panel__title {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-wallet-deposit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sp-wallet-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  font-size: 14px;
  text-transform: none;
}

.sp-wallet-input:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.1);
}

.sp-wallet-fee-preview {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.sp-wallet-fee-preview strong {
  color: var(--gt-white, #fff);
  font-weight: 700;
}

.sp-wallet-deposit-btn,
.sp-wallet-deposit-btn.sp-mk8-cta__btn {
  flex: 0 0 auto;
  min-width: 120px !important;
  padding: 12px 18px !important;
  font-size: 12px !important;
}

#sp-wallet-convert .sp-wallet-convert-actions {
  margin-top: 4px;
}

.sp-wallet-msg {
  margin: 10px 0 0;
  text-transform: none;
}

/* Wallet: transaction rows aligned with withdrawal-request list (wallet + history pages) */
.sp-wallet-wd-list .sp-wallet-wd-tx-link {
  color: inherit;
  border-radius: 0;
  transition: background 0.15s ease;
}

.sp-wallet-wd-list .sp-wallet-wd-tx-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sp-wallet-wd-list .sp-wallet-wd-tx-link:focus-visible {
  outline: 2px solid rgba(255, 8, 8, 0.55);
  outline-offset: 0;
}

/* Wallet: columnar ledger — default 3 cols (e.g. withdrawals); --with-tx-status = Type | Status | Date | Amount */
.sp-wallet-ledger-table {
  width: 100%;
}

.sp-wallet-ledger-table__head {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1.05fr) minmax(9rem, 1.35fr) minmax(5.5rem, 0.85fr);
  gap: 0.5rem 0.75rem;
  padding: 0.35rem 0.5rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.sp-wallet-ledger-table__head-cell--amt {
  text-align: right;
}

.sp-wallet-ledger-table__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-wallet-ledger-table__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1.05fr) minmax(9rem, 1.35fr) minmax(5.5rem, 0.85fr);
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  transition: background 0.12s ease;
}

button.sp-wallet-ledger-table__row {
  width: 100%;
  margin: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}

button.sp-wallet-ledger-table__row:focus-visible {
  outline: 2px solid rgba(255, 8, 8, 0.55);
  outline-offset: -2px;
}

.sp-wallet-ledger-table__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sp-wallet-ledger-table__row--static {
  cursor: default;
}

.sp-wallet-ledger-table__row--static:hover {
  background: transparent;
}

.sp-wallet-ledger-table__cell--type {
  min-width: 0;
}

.sp-wallet-ledger-table__cell--date {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  min-width: 0;
}

.sp-wallet-ledger-table__cell--amt {
  text-align: right;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gt-white, #fff);
  min-width: 0;
}

.sp-wallet-ledger-table--with-tx-status .sp-wallet-ledger-table__head,
.sp-wallet-ledger-table--with-tx-status .sp-wallet-ledger-table__row {
  grid-template-columns: minmax(5rem, 1fr) minmax(4.25rem, 0.75fr) minmax(8rem, 1.2fr) minmax(5rem, 0.85fr);
}

.sp-wallet-ledger-table--with-tx-status .sp-wallet-ledger-table__cell--status {
  min-width: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .sp-wallet-ledger-table__head,
  .sp-wallet-ledger-table__row {
    grid-template-columns: minmax(4.5rem, 1fr) minmax(7rem, 1.2fr) minmax(4.5rem, 0.9fr);
    gap: 0.35rem 0.5rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .sp-wallet-ledger-table--with-tx-status .sp-wallet-ledger-table__head,
  .sp-wallet-ledger-table--with-tx-status .sp-wallet-ledger-table__row {
    grid-template-columns: minmax(4rem, 1fr) minmax(3.5rem, 0.7fr) minmax(6rem, 1.1fr) minmax(4rem, 0.85fr);
    gap: 0.35rem 0.45rem;
  }

  .sp-wallet-ledger-table__cell--date {
    font-size: 0.75rem;
  }
}

.sp-wallet-tx-list {
  display: grid;
  gap: 10px;
}

.sp-wallet-tx {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.sp-wallet-tx__main {
  min-width: 0;
  flex: 1 1 auto;
}

.sp-wallet-tx__type {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

.sp-wallet-tx__meta {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sp-wallet-tx__amt {
  font-weight: 800;
  white-space: nowrap;
  color: var(--gt-white, #fff);
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: center;
  text-align: right;
  padding-left: 10px;
  max-width: 100%;
}

a.sp-wallet-tx--link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.sp-wallet-tx--link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

a.sp-wallet-tx--link:focus-visible {
  outline: 2px solid rgba(255, 8, 8, 0.65);
  outline-offset: 2px;
}

.sp-wallet-tx-dl {
  display: grid;
  grid-template-columns: minmax(5.5rem, 9rem) 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
  align-items: start;
  margin: 0 0 0.75rem;
  text-transform: none;
}

.sp-wallet-tx-dl dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.sp-wallet-tx-dl dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  word-break: break-word;
}

.sp-wallet-tx-dl__amount {
  font-weight: 800;
}

.sp-wallet-tx-dl__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.sp-wallet-tx-detail__summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  text-transform: none;
}

.sp-wallet-tx-detail__refs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
  text-transform: none;
}

.sp-wallet-tx-detail__cell {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.sp-wallet-tx-detail__cell--wide {
  grid-column: 1 / -1;
}

.sp-wallet-tx-detail__cell-k {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-wallet-tx-detail__cell-v {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

@media (max-width: 900px) {
  .sp-wallet-tx-detail__summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sp-wallet-tx-detail__summary-grid {
    grid-template-columns: 1fr;
  }
}

.sp-wallet-tx-detail__amount {
  font-weight: 800;
}

.sp-wallet-tx-detail__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.sp-wallet-tx-detail__extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
  text-transform: none;
  align-items: start;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__extras {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0.35rem;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__info {
  padding: 0.85rem 0 0;
  margin: 0.85rem 0 0;
  border: none;
  border-radius: 0;
  background: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__extras > .sp-wallet-tx-detail__info:first-child,
.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__extras > .sp-wallet-tx-detail__match:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__match {
  padding: 0.85rem 0 0;
  margin: 0.85rem 0 0;
  border: none;
  border-radius: 0;
  background: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__info-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__info-list li {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.1rem 0;
  border: none;
  border-radius: 0;
  background: none;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__info-list .sp-wallet-tx-detail__info-k {
  min-width: 6.5rem;
  flex: 0 0 auto;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__info-list .sp-wallet-tx-detail__info-v {
  flex: 1 1 12rem;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__match-facts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__match-facts li {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.1rem 0;
  border: none;
  border-radius: 0;
  background: none;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__match-facts .sp-wallet-tx-detail__match-k {
  min-width: 6.5rem;
  flex: 0 0 auto;
}

.sp-wallet-tx-detail--modal .sp-wallet-tx-detail__match-facts .sp-wallet-tx-detail__match-v {
  flex: 1 1 12rem;
}

.sp-wallet-tx-detail__match {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.sp-wallet-tx-detail__match-title {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-wallet-tx-detail__match-name {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gt-white, #fff);
  line-height: 1.25;
}

.sp-wallet-tx-detail__match-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: 0.5rem;
}

.sp-wallet-tx-detail__match-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.sp-wallet-tx-detail__match-k {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-wallet-tx-detail__match-v {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  word-break: break-word;
}

.sp-wallet-tx-detail__info {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.sp-wallet-tx-detail__info-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-wallet-tx-detail__info-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.sp-wallet-tx-detail__info-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.sp-wallet-tx-detail__info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 0.5rem;
}

.sp-wallet-tx-detail__info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  align-items: stretch;
}

.sp-wallet-tx-detail__info-k {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sp-wallet-tx-detail__info-v {
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
  line-height: 1.3;
}

/* Tournaments list — filters, badges, hover row + Join */
.sp-page-tournaments {
  padding-top: clamp(92px, 12vw, 128px) !important;
  /* Marge basse confortable sous la dernière carte + barre mobile (évite le « scroll bloqué » en bas) */
  padding-bottom: calc(5.5rem + 28px + env(safe-area-inset-bottom, 0px)) !important;
}

.sp-page-my-tournaments {
  padding-top: clamp(92px, 12vw, 128px) !important;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)) !important;
}

.sp-page-my-tournaments.fix {
  overflow: visible !important;
}

.sp-page-my-tournaments .container {
  min-width: 0;
}

.sp-my-matches-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-my-matches-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.04em;
}

.sp-my-matches-filters {
  margin: 1rem 0 1.25rem;
}

.sp-my-matches-pagination {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 1.5rem;
}

.sp-my-matches-pagination__meta {
  text-align: center;
}

.sp-my-matches-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sp-my-matches-pagination__nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sp-my-matches-pagination__num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-my-matches-pagination__page.is-active {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.sp-my-matches-pagination__ellipsis {
  padding: 0 4px;
  user-select: none;
}

.sp-page-tournaments-inner {
  min-width: 0;
}

.sp-tournaments-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.04em;
}

.sp-tournaments-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .sp-tournaments-filters {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 28px;
  }
}

.sp-tournaments-filters__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sp-tournaments-filters__block--region {
  flex: 1 1 220px;
  max-width: min(100%, 420px);
}

.sp-tournaments-filters__region-select {
  width: 100%;
}

/* Searchable country (ISO2) picker */
.sp-country-combobox {
  position: relative;
  width: 100%;
}

.sp-country-combobox__input {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.sp-country-combobox__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  text-transform: none;
}

.sp-country-combobox__input:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 8, 8, 0.12);
}

.sp-country-combobox__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10060;
  max-height: min(52vh, 320px);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gt-bg-2, #1c1d20);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.sp-country-combobox__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.sp-country-combobox__opt:hover,
.sp-country-combobox__opt.is-active {
  background: rgba(255, 8, 8, 0.12);
  color: var(--gt-white, #fff);
}

.sp-country-combobox__flag {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
}

.sp-country-combobox__name {
  flex: 1 1 auto;
  min-width: 0;
}

.sp-country-combobox__code {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

/* NG bank picker: name only (no ISO code column) */
.sp-ng-bank-combobox .sp-country-combobox__opt {
  gap: 0;
}

.sp-tournaments-filters__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sp-tournaments-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-tournaments-filter-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.sp-tournaments-filter-chip:hover {
  border-color: rgba(255, 8, 8, 0.45);
  color: var(--gt-white, #fff);
}

.sp-tournaments-filter-chip.is-active {
  border-color: rgba(255, 8, 8, 0.65);
  background: rgba(255, 8, 8, 0.14);
  color: var(--gt-white, #fff);
}

.sp-tournaments-status {
  margin: 0 0 12px;
}

.sp-tournaments-context-hint.card {
  padding: 1rem 1.15rem !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(28, 29, 32, 0.55) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-y: auto;
}

@media (max-width: 991.98px) {
  .sp-tournaments-context-hint.card a {
    touch-action: pan-y pinch-zoom;
    -webkit-tap-highlight-color: transparent;
  }
}

.sp-tournaments-context-hint p:last-child {
  margin-bottom: 0 !important;
}

.sp-tournaments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-tournament-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(28, 29, 32, 0.75);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .sp-tournament-card:hover {
    border-color: rgba(255, 8, 8, 0.38);
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 8, 8, 0.12);
    transform: translateY(-2px);
  }
}

.sp-tournament-card__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  text-decoration: none !important;
  color: inherit !important;
}

.sp-tournament-card__thumb-wrap {
  width: 112px;
  min-height: 100%;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
}

@media (min-width: 576px) {
  .sp-tournament-card__thumb-wrap {
    width: 140px;
  }
}

.sp-tournament-card__thumb {
  width: 100%;
  height: 100%;
  min-height: 104px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sp-tournament-card__body {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.sp-tournament-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.2;
}

.sp-tournament-badge--upcoming {
  color: rgba(255, 220, 160, 0.95);
  border-color: rgba(255, 200, 120, 0.45);
  background: rgba(255, 160, 40, 0.1);
}

.sp-tournament-badge--live {
  color: #fff;
  border-color: rgba(255, 8, 8, 0.65);
  background: rgba(255, 8, 8, 0.22);
  box-shadow: 0 0 16px rgba(255, 8, 8, 0.2);
}

.sp-tournament-badge--started {
  color: #fff;
  border-color: rgba(255, 8, 8, 0.75);
  background: rgba(255, 8, 8, 0.22);
  box-shadow: 0 0 16px rgba(255, 8, 8, 0.25);
  animation: sp-tournament-started-blink 1.05s ease-in-out infinite;
}

@keyframes sp-tournament-started-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 14px rgba(255, 8, 8, 0.55);
  }
  50% {
    opacity: 0.72;
    box-shadow: 0 0 28px rgba(255, 40, 40, 0.95);
  }
}

.sp-tournament-badge--completed {
  color: rgba(180, 220, 200, 0.95);
  border-color: rgba(100, 200, 140, 0.35);
  background: rgba(60, 140, 100, 0.12);
}

.sp-tournament-badge--cancelled {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.sp-tournament-badge--muted {
  color: rgba(255, 255, 255, 0.65);
}

.sp-tournament-card__title {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.25;
}

.sp-tournament-card__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55) !important;
  text-transform: none;
  line-height: 1.45;
}

.sp-tournament-card__cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

/* Laisser HoloCtaButton (clip-path / em) intact — pas de bouton « plat » type thème legacy */
.sp-tournament-card__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.sp-tournament-card .sp-tournament-card__btn.gt-theme-btn,
.sp-tournament-card .sp-tournament-card__btn.sp-mk8-cta__btn {
  width: max-content;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .sp-tournament-card {
    flex-direction: column;
  }

  .sp-tournament-card__main {
    flex-direction: column;
  }

  .sp-tournament-card__thumb-wrap {
    width: 100%;
    height: 140px;
  }

  .sp-tournament-card__thumb {
    min-height: 140px;
  }

  .sp-tournament-card__cta {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
  }

  .sp-tournament-card__btn {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .sp-tournament-card .sp-tournament-card__btn.gt-theme-btn,
  .sp-tournament-card .sp-tournament-card__btn.sp-mk8-cta__btn {
    width: max-content;
    max-width: 100%;
  }
}

/* App modals (confirm / result) */
.sp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.sp-modal-backdrop--layer-top {
  z-index: 10060;
}

.sp-modal-sheet--tx-detail {
  max-width: min(560px, 100%);
}

.sp-modal-sheet {
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--gt-bg-2, #1c1d20);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* Paired transparent art in confirm/result modals: compact, fully inside the sheet (no overflow clip) */
.sp-modal-sheet .sp-form-codm-wrap {
  overflow: visible;
  padding: 0.25rem 0 96px;
  min-height: 0;
}

.sp-modal-sheet .sp-form-codm-wrap .sp-form-codm-decor.sp-form-codm-decor--tall {
  width: min(34%, 118px);
  height: 124px;
  max-height: 124px;
  bottom: 8px;
  opacity: 0.22;
  background-position: center bottom;
}

.sp-modal-sheet .sp-form-codm-wrap .sp-form-codm-decor.sp-form-codm-decor--tall:not(.sp-form-codm-decor--left) {
  right: 6%;
  left: auto;
}

.sp-modal-sheet .sp-form-codm-wrap .sp-form-codm-decor.sp-form-codm-decor--tall.sp-form-codm-decor--left {
  left: 6%;
  right: auto;
  bottom: 8px;
}

.sp-modal-sheet__title {
  margin: 0 0 0.75rem;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gt-white, #fff);
}

.sp-modal-sheet__body {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sp-modal-sheet__footer {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: stretch;
  align-items: stretch;
  flex-shrink: 0;
  margin-top: 1.15rem;
}

.sp-modal-sheet__footer > .gt-theme-btn,
.sp-modal-sheet__footer > a.gt-theme-btn,
.sp-modal-sheet__footer > .sp-holo-cta {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

.sp-modal-sheet__footer.sp-modal-sheet__footer--sm-actions {
  margin-top: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sp-modal-sheet__footer.sp-modal-sheet__footer--sm-actions > .gt-theme-btn,
.sp-modal-sheet__footer.sp-modal-sheet__footer--sm-actions > a.gt-theme-btn,
.sp-modal-sheet__footer.sp-modal-sheet__footer--sm-actions > .sp-holo-cta {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0 !important;
  padding: 8px 14px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.2 !important;
}

/* Create tournament: compact modal actions + form submit row */
.sp-modal-sheet__footer.sp-modal-sheet__footer--organize {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.sp-modal-sheet__footer.sp-modal-sheet__footer--organize > .gt-theme-btn,
.sp-modal-sheet__footer.sp-modal-sheet__footer--organize > a.gt-theme-btn,
.sp-modal-sheet__footer.sp-modal-sheet__footer--organize > .sp-holo-cta {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0 !important;
  padding: 8px 14px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

#sp-account-organize .sp-ac-actions--organize-submit .gt-theme-btn,
#sp-account-organize .sp-ac-actions--organize-submit a.gt-theme-btn,
#sp-account-organize .sp-ac-actions--organize-submit .sp-holo-cta {
  min-height: 0 !important;
  padding: 10px 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.2 !important;
}

.sp-ac-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Header / offcanvas logo — ensure visible on dark bar */
.header-1 .header-left .logo .header-logo img,
.offcanvas__logo img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: relative;
  z-index: 2;
}

/* Page header tagline (formerly paired transparent artwork) */
.sp-codm-pair {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.sp-codm-pair--text-only .sp-codm-pair__caption {
  margin-top: 0;
}

.sp-codm-pair--text-only.sp-codm-pair--tall .sp-codm-pair__caption {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-codm-pair__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  flex-wrap: wrap;
  min-height: 0;
}

.sp-codm-pair__img {
  display: block;
  max-height: 220px;
  width: auto;
  max-width: min(48%, 280px);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.sp-codm-pair--compact .sp-codm-pair__img {
  max-height: 150px;
  max-width: min(46%, 200px);
}

.sp-codm-pair--tall .sp-codm-pair__img {
  max-height: 280px;
}

.sp-codm-pair__caption {
  margin-top: 0.5rem;
}

.sp-door__left .sp-codm-pair {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.sp-tournament-codm-pair {
  margin-bottom: 1rem;
}

/* Themed dropdown (replaces native <select> list panel) */
.sp-theme-select {
  position: relative;
  width: 100%;
}

.sp-theme-select.is-disabled .sp-theme-select__trigger {
  opacity: 0.55;
  cursor: not-allowed;
}

.sp-theme-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gt-white, #fff);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.sp-theme-select__trigger:hover:not(:disabled) {
  border-color: rgba(255, 8, 8, 0.45);
}

.sp-theme-select__trigger:focus {
  outline: none;
  border-color: rgba(255, 8, 8, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 8, 8, 0.1);
}

.sp-theme-select__value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-theme-select__caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.sp-theme-select__list {
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--gt-bg-2, #1c1d20);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  max-height: min(280px, 52vh);
  overflow-y: auto;
}

.sp-theme-select__list--fixed {
  right: auto;
}

.sp-theme-select__list--portal {
  box-sizing: border-box;
}

.sp-theme-select__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.sp-theme-select__option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sp-theme-select__option.is-selected {
  background: rgba(255, 8, 8, 0.2);
  color: var(--gt-white, #fff);
}

.sp-theme-select--inline {
  width: auto;
  min-width: 7.5rem;
}

/* Organize — thumbnail upload strip */
.sp-organize-thumb {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 4px;
}

.sp-organize-thumb__preview {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sp-organize-thumb__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-organize-thumb__preview .fa-image {
  font-size: 1.75rem;
  opacity: 0.35;
}

.sp-organize-thumb__side {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.sp-organize-thumb__hint {
  margin: 0;
  line-height: 1.45;
}

.sp-organize-thumb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sp-organize-thumb__name {
  width: 100%;
  font-size: 0.78rem;
}

/* Carte étroite (dashboard col-lg-6, wallet col-lg-6) : CTA sans rognage — hors mobile pleine largeur */
@container sp-bank-card (max-width: 580px) {
  @media (min-width: 577px) {
    .sp-bank-card__actions {
      gap: 5px;
      padding-left: 2px;
      padding-right: 2px;
    }

    .sp-bank-card__actions .sp-holo-cta--lg {
      --sp-mk8-pad-x: 2.35em;
      --sp-mk8-fs: 7.15px;
      --sp-mk8-face-h: 6.45em;
    }

    .sp-bank-card__actions .sp-mk8-cta {
      transform: scale(0.64);
      transform-origin: center center;
    }

    .sp-bank-card--hub .sp-bank-card__actions .sp-mk8-cta {
      transform: scale(0.73);
      transform-origin: center center;
    }

    .sp-bank-card--hub .sp-bank-card__actions .sp-holo-cta--lg {
      --sp-mk8-pad-x: 2.5em;
      --sp-mk8-fs: 7.35px;
      --sp-mk8-face-h: 6.55em;
    }
  }
}

@container sp-bank-card (max-width: 480px) {
  @media (min-width: 577px) {
    .sp-bank-card__actions {
      gap: 3px;
    }

    .sp-bank-card__actions .sp-holo-cta--lg {
      --sp-mk8-pad-x: 2.05em;
      --sp-mk8-fs: 6.75px;
      --sp-mk8-face-h: 6.2em;
    }

    .sp-bank-card__actions .sp-mk8-cta {
      transform: scale(0.56);
      transform-origin: center center;
    }

    .sp-bank-card--hub .sp-bank-card__actions .sp-mk8-cta {
      transform: scale(0.64);
      transform-origin: center center;
    }

    .sp-bank-card--hub .sp-bank-card__actions .sp-holo-cta--lg {
      --sp-mk8-pad-x: 2.2em;
      --sp-mk8-fs: 6.95px;
      --sp-mk8-face-h: 6.3em;
    }
  }
}

