html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #ecf6dd;
  background: #11371f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #11371f;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}:root {
  --dark-green: #082d20;
  --dark-green-2: #0b3828;
  --card-green: #123f2c;
  --card-green-light: #174c32;
  --input-green: #0e3a29;
  --text: #f1f7ee;
  --muted: #a9c2b0;
  --accent: #c7ff4d;
  --border: rgba(199, 255, 77, 0.14);
}

* { box-sizing: border-box; }

.login-page {
  display: flex;
  min-height: 100vh;
  background: var(--dark-green);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
}

/* ===== LEFT ===== */
.login-left {
  width: 50%;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  background: linear-gradient(160deg, #0d3b2b 0%, #082e21 60%, #06281d 100%);
}
.login-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.login-brand-logo {
  height: 40px;
  width: auto;
  display: block;
  margin: 0;
}
.login-brand-tagline { color: var(--accent); font-size: 10px; letter-spacing: 2px; }

.left-content h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 22px;
}
.left-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 360px;
  margin: 0;
}

/* ===== RIGHT ===== */
.login-right {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #0a3325;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-green);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 32px;
}
.form-label {
  font-size: 11px; letter-spacing: 2px;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}
.login-card h2 { font-size: 28px; font-weight: 800; margin: 0 0 22px; }

/* role tabs */
.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--input-green);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 22px;
}
.role-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.role-tab .role-icon { font-size: 18px; }
.role-tab.active {
  background: var(--card-green-light);
  border-color: var(--accent);
  color: var(--accent);
}

.field-group { margin-bottom: 18px; }
.field-group label {
  display: block; font-size: 11px; letter-spacing: 1px;
  color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
.field-group input {
  width: 100%;
  padding: 13px 14px;
  background: var(--input-green);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.field-group input::placeholder { color: #6f8a79; }
.field-group input:focus { border-color: var(--accent); }

.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { padding-right: 44px; }
.eye-button {
  position: absolute; right: 8px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--muted); padding: 6px;
}

.error {
  background: rgba(220, 60, 60, 0.12);
  color: #ff9d9d;
  border: 1px solid rgba(220, 60, 60, 0.3);
  border-radius: 8px;
  padding: 10px 12px; font-size: 13px; margin-bottom: 16px;
}

.submit-button {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #173d23;
  border: none;
  border-radius: 9px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
.submit-button:hover:not(:disabled) { filter: brightness(1.05); }
.submit-button:disabled { opacity: 0.5; cursor: not-allowed; }

.divider {
  display: flex; align-items: center; text-align: center;
  color: var(--muted); font-size: 12px; margin: 20px 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.divider span { padding: 0 12px; }

.secondary-button {
  display: block; text-align: center;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--accent);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.secondary-button:hover { background: var(--card-green-light); }

@media (max-width: 880px) {
  .login-page { flex-direction: column; }
  .login-left, .login-right { width: 100%; }
  .login-left { padding: 36px; gap: 32px; }
  .left-content h1 { font-size: 38px; }
}
:root {
  --dark-green: #082d20;
  --dark-green-2: #0b3828;
  --card-green: #174c32;
  --card-green-light: #1d583a;
  --border-green: rgba(188, 255, 126, 0.14);
  --text: #f1f7ee;
  --muted: #a9c2b0;
  --accent: #c7ff4d;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  background: var(--dark-green);
}


/* =====================================================
   PAGE
===================================================== */

.signup-page {
  min-height: 100vh;
  width: 100%;

  display: flex;

  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(60, 130, 75, 0.12),
      transparent 35%
    ),
    var(--dark-green);

  color: var(--text);
}


/* =====================================================
   LEFT SIDE
===================================================== */

.signup-left {
  flex: 1;

  min-height: 100vh;

  padding: 32px 48px;

  background:
    linear-gradient(
      145deg,
      #0d3b2b 0%,
      #082e21 55%,
      #06281d 100%
    );

  position: relative;
}


/* Brand */

.signup-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.signup-brand-logo {
  height: 34px;
  width: auto;
  display: block;
  margin: 0;
}

.signup-brand-tagline {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 2px;
}


/* Main left content */

.left-content {
  margin-top: 110px;
}

.left-content h1 {
  margin: 0;

  font-size: clamp(42px, 4vw, 62px);

  line-height: 1.08;

  letter-spacing: -2px;

  font-weight: 800;

  color: #f4f8f3;
}

.left-content p {
  margin-top: 34px;

  font-size: 15px;

  line-height: 1.7;

  color: #9bb8a4;
}


/* =====================================================
   RIGHT SIDE
===================================================== */

.signup-right {
  width: 51%;

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 35px 55px;

  background:
    linear-gradient(
      145deg,
      #174d33 0%,
      #123f2c 100%
    );
}


/* =====================================================
   CARD
===================================================== */

.signup-card {
  width: 100%;
  max-width: 500px;

  padding: 8px 0;

  color: var(--text);
}


/* Registration */

.form-label {
  margin-bottom: 7px;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 2px;

  color: #7fa98c;
}


/* Title */

.signup-card h2 {
  margin: 0 0 25px;

  font-size: 31px;

  line-height: 1.1;

  letter-spacing: -0.8px;

  font-weight: 800;

  color: #f2f7f0;
}


/* =====================================================
   PRIVACY BOX
===================================================== */

.privacy-box {
  display: flex;
  gap: 13px;

  padding: 17px;

  border-radius: 11px;

  border: 1px solid var(--border-green);

  background:
    linear-gradient(
      135deg,
      rgba(82, 145, 74, 0.18),
      rgba(31, 95, 57, 0.22)
    );

  margin-bottom: 16px;
}

.privacy-icon {
  flex-shrink: 0;

  width: 23px;
  height: 23px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);

  font-size: 19px;
}

.privacy-box strong {
  display: block;

  margin-bottom: 6px;

  font-size: 13px;

  color: #caff78;
}

.privacy-box p {
  margin: 0;

  font-size: 11px;

  line-height: 1.55;

  color: #a7c4ae;
}


/* =====================================================
   USERNAME
===================================================== */

.username-container {
  padding: 17px 19px;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      #1d5a38,
      #1b5235
    );

  border: 1px solid rgba(183, 255, 117, 0.08);

  margin-bottom: 17px;

  text-align: center;
}

.small-label {
  font-size: 8px;

  letter-spacing: 1.6px;

  font-weight: 700;

  color: #88aa92;

  margin-bottom: 5px;
}

.username {
  font-size: 31px;

  line-height: 1.1;

  font-weight: 900;

  letter-spacing: 1px;

  color: var(--accent);
}

.username-help {
  margin-top: 6px;

  font-size: 9px;

  color: #91b39c;
}


/* =====================================================
   FORM
===================================================== */

.field-group {
  margin-bottom: 14px;
}

.field-group label {
  display: block;

  margin-bottom: 7px;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1.2px;

  color: #9fbaa7;
}

.field-group label span {
  font-weight: 500;

  letter-spacing: 0;

  color: #73917d;
}


/* =====================================================
   DEPARTMENTS
===================================================== */

.departments {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;
}

.department-chip {
  border: 1px solid rgba(188, 225, 197, 0.1);

  background: rgba(255, 255, 255, 0.035);

  color: #aac2b1;

  padding: 8px 13px;

  border-radius: 7px;

  font-size: 10px;

  font-weight: 500;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border 0.15s ease,
    color 0.15s ease;
}

.department-chip:hover {
  background: rgba(255, 255, 255, 0.07);

  color: #d5e7d8;
}

.department-chip.active {
  background: #275c3d;

  border-color: rgba(199, 255, 77, 0.35);

  color: var(--accent);

  box-shadow:
    0 0 0 1px rgba(199, 255, 77, 0.04);
}


/* =====================================================
   PASSWORD
===================================================== */

.password-wrapper {
  position: relative;

  width: 100%;
}

.password-wrapper input {
  width: 100%;

  height: 42px;

  padding: 0 42px 0 13px;

  border-radius: 8px;

  border: 1px solid rgba(180, 220, 192, 0.09);

  outline: none;

  background: rgba(4, 31, 20, 0.22);

  color: #e7f2e9;

  font-size: 12px;

  transition:
    border 0.15s ease,
    background 0.15s ease;
}

.password-wrapper input::placeholder {
  color: #71907d;
}

.password-wrapper input:focus {
  border-color: rgba(199, 255, 77, 0.35);

  background: rgba(4, 31, 20, 0.3);
}

.eye-button {
  position: absolute;

  right: 11px;
  top: 50%;

  transform: translateY(-50%);

  border: none;

  background: transparent;

  color: #789684;

  cursor: pointer;

  font-size: 17px;

  padding: 3px;
}


/* =====================================================
   ERROR
===================================================== */

.error {
  padding: 9px 11px;

  margin-top: 5px;

  border-radius: 7px;

  background: rgba(180, 50, 50, 0.12);

  border: 1px solid rgba(255, 120, 120, 0.12);

  color: #ffcaca;

  font-size: 11px;

  line-height: 1.4;
}


/* =====================================================
   BUTTON
===================================================== */

.create-button {
  width: 100%;

  height: 44px;

  margin-top: 6px;

  border: none;

  border-radius: 8px;

  background:
    linear-gradient(
      135deg,
      #c8ff4e,
      #a9df3e
    );

  color: #102d18;

  font-size: 12px;

  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.create-button:hover:not(:disabled) {
  filter: brightness(1.05);

  transform: translateY(-1px);

  box-shadow:
    0 5px 20px rgba(199, 255, 77, 0.12);
}

.create-button:active:not(:disabled) {
  transform: translateY(0);
}

.create-button:disabled {
  opacity: 0.55;

  cursor: not-allowed;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
  .signup-page {
    flex-direction: column;
  }

  .signup-left {
    min-height: auto;

    padding: 28px 30px;
  }

  .left-content {
    margin-top: 55px;
    margin-bottom: 35px;
  }

  .left-content h1 {
    font-size: 42px;
  }

  .signup-right {
    width: 100%;

    min-height: auto;

    padding: 40px 30px;
  }
}


@media (max-width: 500px) {
  .signup-left {
    padding: 25px 20px;
  }

  .left-content {
    margin-top: 40px;
  }

  .left-content h1 {
    font-size: 36px;
  }

  .signup-right {
    padding: 30px 20px;
  }

  .signup-card h2 {
    font-size: 27px;
  }

  .username {
    font-size: 26px;
  }
}
/* --- Gamertag choisi par l'utilisateur : input + feedback + suggestions --- */
.username-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  outline: none;
}
.username-input:focus {
  border-color: #F5D000;
}
.username-help.ok {
  color: #7CFF9B;
}
.username-help.err {
  color: #FF8A8A;
  
  
  font-size: 12px;
  border-radius: 8px;
}
.username-suggestions {
  display: inline;
} */

.username-taken-message {
  margin-top: 9px;
  padding: 10px 12px;

  border-radius: 8px;

  background: rgba(180, 50, 50, 0.12);

  border: 1px solid rgba(255, 120, 120, 0.16);

  text-align: left;
}

.username-taken-title {
  color: #ff9b9b;

  font-size: 12px;
  font-weight: 700;

  line-height: 1.4;
}

.username-suggestions {
  margin-top: 7px;
}

.suggestions-label {
  display: block;

  margin-bottom: 6px;

  color: #d9bfc0;

  font-size: 11px;
  font-weight: 500;
}

.suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suggestion-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 11px;

  border-radius: 999px;

  border: 1px solid rgba(245, 208, 0, 0.45);

  background: rgba(245, 208, 0, 0.10);

  color: #f5d000;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.suggestion-chip:hover {
  background: rgba(245, 208, 0, 0.20);

  border-color: rgba(245, 208, 0, 0.7);

  transform: translateY(-1px);
}
.suggestion-chip {
  display: inline-block;
  margin: 2px 4px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 208, 0, 0.5);
  background: rgba(245, 208, 0, 0.12);
  color: #F5D000;
  font-size: 12px;
  cursor: pointer;
}
.suggestion-chip:hover {
  background: rgba(245, 208, 0, 0.25);
}/* ==========================================================================
   Notifications de nouveau signal.
   Les couleurs reprennent les variables de dashboard.css quand elles sont
   presentes, avec un repli explicite : ces toasts s'affichent aussi sur des
   ecrans qui ne chargent pas dashboard.css.
   ========================================================================== */

.ib-toasts {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  gap: 11px;

  width: min(390px, calc(100vw - 44px));

  /* Le conteneur ne doit jamais bloquer les clics sur la page. */
  pointer-events: none;
}

.ib-toast {
  position: relative;
  overflow: hidden;
  pointer-events: auto;

  padding: 15px 16px 14px;

  background: #0f3320;
  border: 1px solid rgba(126, 178, 137, 0.34);
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(2, 12, 6, 0.55);

  animation: ibToastIn 0.42s cubic-bezier(0.22, 1.2, 0.4, 1);
}

/* Barre verticale : meme code couleur que les cartes de signal. */
.ib-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #d8c96a;
}
.ib-toast[data-threat="THREAT"]::before      { background: #d84b55; }
.ib-toast[data-threat="OPPORTUNITY"]::before { background: #9bd46a; }
.ib-toast[data-threat="GTK"]::before         { background: #d8c96a; }

@keyframes ibToastIn {
  from { opacity: 0; transform: translateX(115%); }
  to   { opacity: 1; transform: none; }
}

/* --- en-tete --- */

.ib-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.ib-toast-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dashboard-accent, #d5ff4a);
}

.ib-toast-close {
  padding: 2px 5px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--dashboard-muted, #8dad93);
  font-family: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.ib-toast-close:hover {
  color: #edf4ed;
  background: rgba(255, 255, 255, 0.06);
}
.ib-toast-close:focus-visible {
  outline: 2px solid var(--dashboard-accent, #d5ff4a);
  outline-offset: 1px;
}

/* --- corps --- */

.ib-toast-question {
  margin: 0 0 11px;
  color: #edf4ed;
  font-size: 14.5px;
  line-height: 1.45;
}

.ib-toast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin-bottom: 13px;

  color: var(--dashboard-muted, #8dad93);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.ib-toast-meta .ib-soon {
  color: var(--dashboard-subtitle, #fdaa28);
  font-weight: 700;
}

/* --- actions --- */

.ib-toast-actions {
  display: flex;
  gap: 8px;
}

.ib-btn {
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;

  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;

  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ib-btn:focus-visible {
  outline: 2px solid var(--dashboard-accent, #d5ff4a);
  outline-offset: 2px;
}

.ib-btn-primary {
  background: var(--dashboard-accent, #d5ff4a);
  color: #0a2b18;
}
.ib-btn-primary:hover { filter: brightness(1.08); }

.ib-btn-ghost {
  background: transparent;
  color: var(--dashboard-muted, #8dad93);
  border-color: rgba(126, 178, 137, 0.3);
}
.ib-btn-ghost:hover {
  color: #edf4ed;
  background: rgba(255, 255, 255, 0.05);
}

/* --- barre de vie : montre le temps restant avant fermeture --- */

.ib-toast-life {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;

  background: var(--dashboard-accent, #d5ff4a);
  opacity: 0.55;

  transform-origin: left center;
  animation: ibToastLife linear forwards;
}

@keyframes ibToastLife {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ==========================================================================
   Pastille de compteur sur l'entree de menu "Crowd Games"
   ========================================================================== */

.ib-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: auto;

  border-radius: 999px;
  background: var(--dashboard-accent, #d5ff4a);
  color: #0a2b18;

  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;

  animation: ibBadgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ibBadgePop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.42); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Adaptations
   ========================================================================== */

@media (max-width: 640px) {
  .ib-toasts {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ib-toast,
  .ib-nav-badge {
    animation: none;
  }
  .ib-toast-life {
    display: none;
  }
}
:root {
  --dashboard-bg: #05402c;
  --dashboard-bg-deep: #05402c;
  --dashboard-panel: rgba(30, 76, 43, 0.9);
  --dashboard-panel-2: rgba(24, 68, 39, 0.92);
  --dashboard-border: rgba(187, 255, 120, 0.1);
  --dashboard-text: #ffffff;
  --dashboard-muted: #8dad93;
  --dashboard-accent: #d5ff4a;
  --dashboard-subtitle: #fdaa28;
  --dashboard-rail-active: #ffff00;
  --dashboard-bullet: #92d050;
  --dashboard-shadow: 0 18px 40px rgba(4, 14, 8, 0.35);
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 100%),
    radial-gradient(circle at top left, rgba(200, 255, 100, 0.12), transparent 34%),
    linear-gradient(180deg, var(--dashboard-bg), var(--dashboard-bg-deep));
  color: var(--dashboard-text);
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 38, 22, 0.55);
}

.sidebar-brand,
.sidebar-footer {
  padding-inline: 18px 16px;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sidebar-brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.sidebar-brand-mark,
.sidebar-user-badge,
.ranking-avatar,
.stat-icon {
  display: grid;
  place-items: center;
}

.sidebar-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--dashboard-accent);
  color: #173013;
  font-size: 18px;
  font-weight: 700;
}

.sidebar-brand-title {
  font-size: 0.96rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--dashboard-accent);
}

.sidebar-brand-subtitle {
  margin-top: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--dashboard-subtitle);
}

.sidebar-nav {
  margin-top: 34px;
  padding-right: 12px;
  display: grid;
  gap: 10px;
}

.nav-item {
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  color: rgba(232, 247, 212, 0.72);
  background: transparent;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(213, 255, 74, 0.16), rgba(213, 255, 74, 0.03));
  box-shadow: inset 0 0 0 1px rgba(213, 255, 74, 0.3);
}

.nav-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 247, 212, 0.6);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover .nav-icon {
  transform: translateY(-1px);
}

.nav-item.active .nav-icon {
  background: var(--dashboard-accent);
  color: #0b2817;
  box-shadow: 0 4px 14px rgba(213, 255, 74, 0.35);
}

.nav-arrow {
  margin-left: auto;
  opacity: 0;
  color: var(--dashboard-accent);
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-item:hover .nav-arrow,
.nav-item.active .nav-arrow {
  opacity: 0.85;
  transform: translateX(0);
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
}

.sidebar-user-badge {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(216, 255, 102, 0.18);
  color: var(--dashboard-accent);
  font-weight: 800;
}

.sidebar-user-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f5fbdf;
}

.sidebar-user-dept {
  font-size: 0.74rem;
  color: var(--dashboard-muted);
}

.signout-button {
  grid-column: 1 / -1;
  margin-top: 14px;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  color: rgba(235, 245, 217, 0.68);
  text-align: left;
  cursor: pointer;
}

.dashboard-main {
  padding: 34px 28px 28px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;
}

.dashboard-header {
  padding-left: 8px;
}

.dashboard-eyebrow,
.panel-kicker {
  font-size: 0.69rem;
  letter-spacing: 0.22em;
  color: var(--dashboard-subtitle);
}

.dashboard-header h1 {
  margin: 10px 0 10px;
  font-size: clamp(2.2rem, 3.7vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #f6ffea;
}

.dashboard-header h1 span {
  color: var(--dashboard-accent);
}

.dashboard-header p {
  color: rgba(186, 210, 189, 0.8);
  font-size: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.panel {
  border: 1px solid var(--dashboard-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 91, 53, 0.88), rgba(30, 73, 42, 0.9));
  box-shadow: var(--dashboard-shadow);
}

.stat-card {
  min-height: 120px;
  padding: 20px 18px 18px;
}

.stat-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #152e17;
  background: rgba(224, 255, 112, 0.9);
}

.stat-icon.tone-growth {
  background: rgba(150, 255, 111, 0.92);
}

.stat-icon.tone-rank {
  background: rgba(255, 198, 82, 0.95);
}

.stat-icon.tone-active {
  background: rgba(210, 234, 87, 0.9);
}

.stat-value {
  font-size: clamp(2.1rem, 2.4vw, 3rem);
  line-height: 1;
  font-weight: 800;
  color: var(--dashboard-accent);
}

.stat-label {
  margin-top: 8px;
  color: rgba(234, 247, 220, 0.76);
  font-size: 0.96rem;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  min-height: 420px;
}

.signals-shell {
  display: grid;
}

.signals-panel {
  display: grid;
  gap: 14px;
  min-height: 560px;
}

.signals-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signals-panel-title {
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f6ffea;
}

.signals-live-badge {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(216, 255, 102, 0.15);
  color: var(--dashboard-accent);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.signals-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(181, 205, 183, 0.74);
  font-size: 0.84rem;
}

.signals-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 120, 120, 0.08);
  border: 1px solid rgba(255, 120, 120, 0.14);
  color: #ffd9d9;
}

.signals-list {
  display: grid;
  gap: 12px;
}

.signal-card-clickable {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}

.signals-empty-state {
  padding: 40px 18px;
  border-radius: 18px;
  display: grid;
  justify-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(216, 255, 102, 0.14);
}

.signals-empty-value {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  font-weight: 800;
  color: rgba(212, 255, 84, 0.92);
}

.signals-empty-copy {
  max-width: 42ch;
  color: rgba(232, 245, 220, 0.72);
  text-align: center;
}

.panel {
  padding: 18px;
  background: var(--dashboard-panel);
}

.panel-muted {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-zero {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  font-weight: 800;
  color: rgba(212, 255, 84, 0.92);
}

.preview-copy {
  color: rgba(232, 245, 220, 0.7);
  max-width: 34ch;
}

.preview-metrics {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-metrics span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(216, 255, 102, 0.1);
  color: rgba(235, 248, 212, 0.82);
  font-size: 0.84rem;
}

.ranking-panel {
  background: var(--dashboard-panel-2);
}

.ranking-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ranking-row.highlighted {
  background: rgba(216, 255, 102, 0.08);
  border-color: rgba(216, 255, 102, 0.16);
}

.ranking-position {
  color: var(--dashboard-bullet);
  font-size: 0.92rem;
}

.ranking-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(216, 255, 102, 0.15);
  color: var(--dashboard-accent);
  font-weight: 800;
}

.ranking-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #f6fee9;
}

.current-user-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(216, 255, 102, 0.16);
  color: var(--dashboard-accent);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
}

.ranking-subtitle {
  margin-top: 4px;
  color: var(--dashboard-subtitle);
  font-size: 0.84rem;
}

.ranking-score {
  color: var(--dashboard-accent);
  font-weight: 800;
}

.app-loading {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--dashboard-bg), var(--dashboard-bg-deep));
}

@media (max-width: 1120px) {
  .dashboard-page {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .stats-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding-inline: 14px;
  }

  .dashboard-header h1 {
    font-size: 2.4rem;
  }

  .ranking-row {
    grid-template-columns: 34px 30px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
    margin-top: 2px;
  }
}
/* --- Dashboard PoC : KPI + driver origin + mes crowd games --- */
.poc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.poc-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
}
.poc-card-label { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.poc-card-value { font-size: 24px; font-weight: 500; color: #fff; margin-top: 4px; }

.poc-origin { padding: 14px; margin-bottom: 16px; }
.poc-origin-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 13px; font-weight: 500; color: #fff;
}
.poc-origin-total { font-size: 11px; color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.poc-origin-bar {
  height: 16px; border-radius: 6px; overflow: hidden; display: flex;
  margin-bottom: 12px; background: rgba(255, 255, 255, 0.08);
}
.poc-origin-own { background: #F5D000; }
.poc-origin-ai { background: rgba(255, 255, 255, 0.25); }
.poc-origin-legend { display: flex; gap: 24px; font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.poc-origin-legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  margin-right: 8px; vertical-align: middle;
}
.poc-origin-legend .dot.own { background: #F5D000; }
.poc-origin-legend .dot.ai { background: rgba(255, 255, 255, 0.25); }

.poc-section-head {
  display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px;
}
.poc-section-head > span { font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); }
.poc-link {
  background: none; border: none; color: #F5D000; font-size: 11px; cursor: pointer; padding: 0;
}

.poc-games { display: flex; flex-direction: column; gap: 10px; }
.poc-game {
  background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 14px;
  border: 0.5px solid transparent;
}
.poc-game.closing { border-color: rgba(245, 208, 0, 0.3); }
.poc-game.done { background: rgba(255, 255, 255, 0.03); }
.poc-game-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px;
}
.poc-game-title { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 3px; }
.poc-game-sub { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.poc-game-time { text-align: right; white-space: nowrap; }
.poc-game-left { font-size: 15px; font-weight: 500; color: #F5D000; }
.poc-game-left-label { font-size: 10px; color: rgba(255, 255, 255, 0.4); }
.poc-game-left-label.soon { color: #F5D000; }
.poc-game-closed { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.poc-game-bottom { display: flex; align-items: center; gap: 12px; }
.poc-progress {
  flex: 1; height: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 999px; overflow: hidden;
}
.poc-progress-fill { height: 100%; background: #F5D000; }
.poc-game-worlds { flex: 1; font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.poc-game-btn {
  font-size: 12px; color: #013D2B; background: #F5D000; padding: 6px 14px;
  border-radius: 8px; font-weight: 500; border: none; cursor: pointer; white-space: nowrap;
}
.poc-game-btn.ghost { color: #EAF3EE; background: transparent; border: 0.5px solid rgba(255, 255, 255, 0.25); }
.poc-empty {
  font-size: 13px; color: rgba(255, 255, 255, 0.55); padding: 16px;
  background: rgba(255, 255, 255, 0.03); border-radius: 12px;
}

@media (max-width: 900px) {
  .poc-kpi-grid { grid-template-columns: 1fr; }
}

/* --- v2 : contraste cartes + ranking activite --- */
.poc-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.poc-kpi { display: flex; flex-direction: column; align-items: flex-start; }
.poc-kpi:hover { border-color: rgba(245, 208, 0, 0.35); transform: translateY(-1px); }
.poc-kpi-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 208, 0, 0.12); color: #F5D000; margin-bottom: 10px;
}
.poc-kpi .poc-card-value { font-size: 28px; }
.poc-kpi .poc-card-label { margin-top: 2px; }

.poc-rank-note { text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, 0.4); }
.poc-rank { display: flex; flex-direction: column; gap: 8px; }
.poc-rank-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 10px 14px; transition: border-color 0.15s ease;
}
.poc-rank-row:hover { border-color: rgba(255, 255, 255, 0.16); }
.poc-rank-row.you { background: rgba(245, 208, 0, 0.1); border-color: rgba(245, 208, 0, 0.4); }
.poc-rank-pos { width: 26px; text-align: center; font-size: 15px; font-weight: 600; color: var(--dashboard-bullet); }
.poc-rank-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(245, 208, 0, 0.15); color: #F5D000;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.poc-rank-meta { flex: 1; min-width: 0; }
.poc-rank-name { font-size: 13px; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 8px; }
.poc-you-tag {
  font-size: 9px; letter-spacing: 0.08em; color: #013D2B; background: #F5D000;
  padding: 1px 6px; border-radius: 999px; font-weight: 600;
}
.poc-rank-sub { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.poc-rank-score {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05;
  font-size: 16px; font-weight: 600; color: #F5D000;
}
.poc-rank-score-label { font-size: 9px; color: rgba(255, 255, 255, 0.4); font-weight: 400; letter-spacing: 0.05em; }

/* --- v3 : panneaux verts pleins (fini le voile blanc plat) --- */
.poc-card,
.poc-game,
.poc-rank-row {
  background: linear-gradient(180deg, rgba(42, 91, 53, 0.9), rgba(30, 73, 42, 0.92));
  border: 1px solid var(--dashboard-border);
  box-shadow: var(--dashboard-shadow);
}
.poc-kpi:hover { border-color: rgba(245, 208, 0, 0.45); transform: translateY(-1px); }
.poc-rank-row:hover { border-color: rgba(245, 208, 0, 0.35); }

.poc-game.done {
  background: var(--dashboard-panel-2);
  box-shadow: none;
}
.poc-rank-row.you {
  background: linear-gradient(180deg, rgba(70, 124, 62, 0.6), rgba(52, 100, 48, 0.66));
  border-color: rgba(245, 208, 0, 0.5);
}

.poc-empty {
  background: var(--dashboard-panel-2);
  border: 1px solid var(--dashboard-border);
}

/* pistes de barres : un creux plus sombre pour contraster sur le panneau clair */
.poc-origin-bar { background: rgba(11, 40, 23, 0.65); }
.poc-progress { background: rgba(11, 40, 23, 0.6); }

/* --- v4 : fond sombre / panneaux vert clair + KPI vivants --- */
:root {
  --dashboard-bg: #0d2016;
  --dashboard-bg-deep: #06110a;
}

/* panneaux nettement plus clairs pour ressortir sur le fond sombre */
.poc-card,
.poc-game,
.poc-rank-row {
  background: linear-gradient(180deg, rgba(46, 100, 60, 0.95), rgba(34, 82, 48, 0.96));
  border: 1px solid rgba(213, 255, 74, 0.14);
}

/* KPI : gros chiffres en lime, plus de blanc plat */
.poc-card-value {
  color: var(--dashboard-accent);
  font-size: 30px;
  font-weight: 700;
}
.poc-kpi .poc-card-value { font-size: 34px; }
.poc-card-label { color: rgba(236, 246, 221, 0.72); font-size: 13px; }

/* pastille d'icone en lime (comme la maquette) */
.poc-kpi-icon {
  width: 36px; height: 36px;
  background: rgba(213, 255, 74, 0.16);
  color: var(--dashboard-accent);
}

.poc-rank-row.you {
  background: linear-gradient(180deg, rgba(70, 130, 66, 0.72), rgba(52, 104, 50, 0.74));
  border-color: rgba(245, 208, 0, 0.55);
}

/* --- v5 : recopie EXACTE du style .stat-card aime + revert du fond --- */
:root {
  --dashboard-bg: #11371f;
  --dashboard-bg-deep: #0b2817;
}

.poc-card,
.poc-game,
.poc-rank-row {
  background: linear-gradient(180deg, rgba(42, 91, 53, 0.88), rgba(30, 73, 42, 0.9));
  border: 1px solid var(--dashboard-border);
  box-shadow: var(--dashboard-shadow);
}

/* pastille d'icone : chip LIME PLEIN + glyphe sombre (identique a .stat-icon) */
.poc-kpi-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(224, 255, 112, 0.92);
  color: #152e17;
  margin-bottom: 14px;
}

/* chiffres KPI : gros, gras, lime (identique a .stat-value) */
.poc-card-value {
  color: var(--dashboard-accent);
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}
.poc-kpi .poc-card-value { font-size: clamp(2rem, 2.2vw, 2.6rem); }
.poc-card-label { margin-top: 8px; color: rgba(234, 247, 220, 0.76); font-size: 13px; }

.poc-rank-row.you {
  background: linear-gradient(180deg, rgba(66, 120, 60, 0.6), rgba(48, 96, 46, 0.62));
  border-color: rgba(245, 208, 0, 0.5);
}

/* --- v6 : fond d'ecran un cran plus clair (sur demande) --- */
:root {
  --dashboard-bg: #05402c;
  --dashboard-bg-deep: #05402c;
}

/* --- v7 : ranking dans un panneau (comme la maquette) --- */
.poc-rank-panel {
  background: var(--dashboard-panel-2);
  border: 1px solid var(--dashboard-border);
  border-radius: 16px;
  box-shadow: var(--dashboard-shadow);
  padding: 16px;
}
.poc-rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* --- v8 : 2 colonnes (community + ranking) + pulse --- */
.poc-lower-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  align-items: start;
}
.poc-pulse { display: flex; flex-direction: column; gap: 8px; }
.poc-pulse-row {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(42, 91, 53, 0.88), rgba(30, 73, 42, 0.9));
  border: 1px solid var(--dashboard-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.poc-pulse-row span { font-size: 13px; color: rgba(234, 247, 220, 0.8); }
.poc-pulse-row b { font-size: 18px; font-weight: 700; color: var(--dashboard-accent); }

@media (max-width: 900px) {
  .poc-lower-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SIGNAL CARD
   ========================================================= */

.signal-card {
  position: relative;

  padding: 20px 22px 18px;

  border: 1px solid rgba(112, 154, 121, 0.22);

  border-radius: 10px;

  /*
   * Plus clair que l'ancien fond presque noir.
   */
  background: #123b24;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;

  overflow: hidden;
}


/* Barre verticale à gauche */

.signal-card::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 3px;

  background: #d84b55;

  opacity: 0.9;
}


/* Hover + focus clavier (accessibilite) */

.signal-card-clickable:hover,
.signal-card-clickable:focus-visible {
  transform: translateY(-1px);

  background: #16452a;

  border-color: rgba(126, 178, 137, 0.35);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   TOP ROW
   ========================================================= */

.signal-card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  margin-bottom: 16px;
}


/* =========================================================
   THREAT BADGE
   ========================================================= */

.signal-threat-badge {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 5px 9px;

  border-radius: 5px;

  font-size: 10px;

  font-weight: 700;

  line-height: 1;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* THREAT */

.threat-badge-threat {
  color: #ff6972;

  background: rgba(216, 75, 85, 0.10);

  border: 1px solid rgba(216, 75, 85, 0.65);
}


/* OPPORTUNITY */

.threat-badge-opportunity {
  color: #9bd46a;

  background: rgba(155, 212, 106, 0.09);

  border: 1px solid rgba(155, 212, 106, 0.45);
}


/* GTK */

.threat-badge-gtk {
  color: #d8c96a;

  background: rgba(216, 201, 106, 0.09);

  border: 1px solid rgba(216, 201, 106, 0.45);
}


/* petit symbole */

.signal-threat-icon {
  font-size: 7px;
}


/* =========================================================
   STATUS TOP RIGHT
   ========================================================= */

.signal-status-indicator {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 5px 10px;

  border-radius: 5px;

  color: #8faa98;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  background: rgba(8, 61, 19, 0.1);

  border: 1px solid rgba(159, 193, 48, 0.45);
}


.signal-status-dot {
  width: 7px;
  height: 7px;

  flex-shrink: 0;

  border-radius: 50%;

  background: #82988a;
}


/* Active */

.status-dot-active,
.status-dot-in-progress,
.status-dot-started,
.status-dot-analyzing {
  background: #a9d45c;

  box-shadow:
    0 0 6px rgba(169, 212, 92, 0.35);
}


/* Not started */

.status-dot-not-started {
  background: #cbd112;
  font-size: 1.25rem;
  box-shadow: none;
}

.status-dot-brainstorming {
  background: #11e64d;
  font-size: 1.25rem;
  box-shadow: none;
}

.status-dot-ai-review {
  background: #a608e0;
  font-size: 1.25rem;
  box-shadow: none;
}

.status-dot-impact {
  background: #3fabea;
  font-size: 1.25rem;
  box-shadow: none;
}

.status-dot-uncertainty {
  background: #c90a0a;
  font-size: 1.25rem;
  box-shadow: none;
}

.status-dot-matrix {
  background: #b66405;
  font-size: 1.25rem;
  box-shadow: none;
}




/* Completed */

.status-dot-completed,
.status-dot-finished {
  background: #79c985;
}


/* =========================================================
   CONTEXT
   ========================================================= */

.signal-card-kicker {
  margin-bottom: 8px;

  color: var(--dashboard-subtitle);

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}


/* =========================================================
   QUESTION
   ========================================================= */

.signal-card-question {
  max-width: 94%;

  color: #edf4ed;

  /*
   * Beaucoup plus lisible que l'ancien texte minuscule.
   */
  font-size: 20px;

  line-height: 1.55;

  font-weight: 400;
}


/* =========================================================
   FOOTER
   ========================================================= */

.signal-card-footer {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 16px;

  margin-top: 17px;

  padding-top: 12px;

  border-top: 1px solid rgba(126, 166, 136, 0.13);

  color: #91a799;

  font-size: 12px;
}


/* =========================================================
   META
   ========================================================= */

.signal-meta {
  display: inline-flex;

  align-items: center;

  gap: 6px;
}


.signal-meta-icon {
  color: #829a89;

  font-size: 12px;
}


.signal-crowd-time {
  color: #91a799;
}


/* =========================================================
   ARROW
   ========================================================= */

.signal-card-arrow {
  position: absolute;

  right: 20px;
  bottom: 16px;

  color: #a8ce55;

  font-size: 15px;

  opacity: 0;

  transform: translateX(-4px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


.signal-card-clickable:hover .signal-card-arrow {
  opacity: 1;

  transform: translateX(0);
}.crowdgame-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(200, 255, 100, 0.1), transparent 34%),
    linear-gradient(180deg, var(--dashboard-bg), var(--dashboard-bg-deep));
  color: var(--dashboard-text);
  display: flex;
  flex-direction: column;
}

.crowdgame-topbar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crowdgame-back {
  border: 0;
  background: transparent;
  color: rgba(232, 247, 212, 0.86);
  font-size: 0.95rem;
  cursor: pointer;
}

.crowdgame-eyebrow {
  font-size: 0.69rem;
  letter-spacing: 0.22em;
  color: var(--dashboard-subtitle);
}

.crowdgame-rail {
  display: flex;
  align-items: center;
  gap: 0;
}

.rail-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rail-step-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 4px;
  margin: -4px;
  border-radius: 6px;
  cursor: not-allowed;
}

.rail-step-button:not(:disabled) {
  cursor: pointer;
}

.rail-step-button:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.06);
}

.rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
}

.rail-dot.done {
  background: rgba(255, 255, 0, 0.55);
}

.rail-dot.active {
  background: var(--dashboard-rail-active);
  box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.18);
}

.rail-label {
  font-size: 0.86rem;
  color: rgba(181, 205, 183, 0.6);
}

.rail-label.active {
  color: var(--dashboard-rail-active);
  font-weight: 700;
}

.rail-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 12px;
}

.crowdgame-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
}

.intro-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  margin-top: 60px;
  text-align: center;
}

.intro-card {
  border: 1px solid var(--dashboard-border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(42, 91, 53, 0.7), rgba(30, 73, 42, 0.75));
  padding: 40px 48px;
  box-shadow: var(--dashboard-shadow);
}

.intro-card h1 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.25;
  color: var(--dashboard-accent);
  letter-spacing: -0.01em;
}

.intro-horizon-badge {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 247, 212, 0.75);
  font-size: 0.9rem;
}

.crowdgame-cta {
  border: 0;
  border-radius: 12px;
  padding: 16px 32px;
  background: var(--dashboard-accent);
  color: #16220f;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.crowdgame-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.brainstorm-wrap {
  width: 100%;
  max-width: 760px;
  display: grid;
  gap: 20px;
}

.brainstorm-question-card {
  border: 1px solid var(--dashboard-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 91, 53, 0.6), rgba(30, 73, 42, 0.65));
  padding: 24px 28px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dashboard-accent);
  line-height: 1.4;
}

.brainstorm-panel {
  border: 1px solid var(--dashboard-border);
  border-radius: 16px;
  background: var(--dashboard-panel);
  padding: 24px 28px;
  display: grid;
  gap: 16px;
  box-shadow: var(--dashboard-shadow);
}

.brainstorm-hint {
  color: rgba(232, 245, 220, 0.72);
  line-height: 1.5;
  margin: 0;
}

.brainstorm-input-row {
  display: flex;
  gap: 12px;
}

.brainstorm-input-row input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--dashboard-text);
  padding: 14px 16px;
  font-size: 0.98rem;
}

.brainstorm-input-row input:focus {
  outline: 2px solid rgba(216, 255, 102, 0.4);
  outline-offset: 1px;
}

.brainstorm-input-row button {
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  background: var(--dashboard-accent);
  color: #16220f;
  font-weight: 800;
  cursor: pointer;
}

.brainstorm-idea-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brainstorm-idea-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #f5fce7;
}

.brainstorm-idea-list button {
  border: 0;
  background: transparent;
  color: rgba(232, 245, 220, 0.5);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.brainstorm-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 120, 120, 0.08);
  border: 1px solid rgba(255, 120, 120, 0.14);
  color: #ffd9d9;
  font-size: 0.9rem;
}

.brainstorm-done {
  justify-self: start;
}

.reformulated-list,
.ai-suggestion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.reformulated-list li,
.ai-suggestion-list li {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #f5fce7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(216, 255, 102, 0.14);
  color: var(--dashboard-accent);
  font-weight: 800;
}

.review-wrap {
  width: 100%;
  max-width: 1120px;
  display: grid;
  gap: 28px;
}

.review-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--dashboard-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42, 91, 53, 0.6), rgba(30, 73, 42, 0.65));
  padding: 22px 26px;
}

.review-banner-icon {
  font-size: 1.3rem;
  color: var(--dashboard-accent);
}

.review-banner-title {
  font-weight: 800;
  color: var(--dashboard-accent);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.review-banner p {
  margin: 0;
  color: rgba(232, 245, 220, 0.78);
  line-height: 1.5;
}

.review-panel {
  border: 1px solid var(--dashboard-border);
  border-radius: 18px;
  background: var(--dashboard-panel);
  padding: 28px;
  display: grid;
  gap: 20px;
  box-shadow: var(--dashboard-shadow);
}

.review-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .review-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.review-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-list li.rejected {
  opacity: 0.55;
}

.review-item-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.review-item-name {
  color: #f5fce7;
  font-weight: 700;
  font-size: 1.02rem;
}

.review-item-mapping {
  color: rgba(232, 245, 220, 0.55);
  font-weight: 500;
}

.review-item-arrow {
  color: var(--dashboard-accent);
}

.review-item-category {
  color: var(--dashboard-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(216, 255, 102, 0.12);
  border: 1px solid rgba(216, 255, 102, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.review-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 245, 220, 0.5);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.review-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.review-btn.reject.active {
  background: rgba(255, 120, 120, 0.14);
  border-color: rgba(255, 120, 120, 0.4);
  color: #ffb3b3;
}

.review-btn.accept.active {
  background: rgba(216, 255, 102, 0.18);
  border-color: rgba(216, 255, 102, 0.5);
  color: var(--dashboard-accent);
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-footer span {
  color: rgba(232, 245, 220, 0.7);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .crowdgame-rail {
    display: none;
  }
  .intro-card {
    padding: 28px 24px;
  }
}
.weights-wrap {
  width: min(730px, 100%);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.weights-question-card {
  background: rgba(34, 75, 43, 0.9);
  border: 1px solid rgba(200, 230, 70, 0.25);
  border-radius: 14px;
  padding: 24px 20px;
  margin-bottom: 22px;
}

.weights-question-card h1 {
  margin: 0 0 12px;
  color: #d8f13f;
  font-size: 24px;
  line-height: 1.35;
  text-transform: uppercase;
}

.weights-question-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.weights-total-card {
  background: rgba(35, 77, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 22px;
}

.weights-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.weights-total-row strong {
  color: #d8f13f;
}

.weights-total-row strong.complete {
  color: #9be15d;
}

.weights-progress,
.weight-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.weights-progress-fill,
.weight-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: #d8f13f;
  transition: width 0.2s ease;
}

.weights-remaining {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.weights-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.weight-card {
  background: rgba(35, 77, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
}

.weight-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.weight-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 17px;
  font-weight: 600;
}

.weight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8f13f;
  flex-shrink: 0;
}

.weight-card-info p {
  margin: 7px 0 0 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.weight-input-wrapper input {
  width: 72px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8f13f;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.weight-input-wrapper input:focus {
  border-color: #d8f13f;
}

.weight-bar {
  margin-top: 15px;
}

.weights-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.weights-footer > span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.weights-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 50px;
  position: relative;
}

.weights-question-card {
  margin-bottom: 25px;
}

.weights-question-card h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.weights-question-card p {
  max-width: 850px;
  line-height: 1.5;
  opacity: 0.85;
}

/* Counter */

.weights-counter {
  position: absolute;
  top: 25px;
  right: 25px;

  min-width: 110px;
  height: 80px;

  border: 1px solid #d8ff00;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  font-size: 26px;
  font-weight: 700;
}

.weights-counter small {
  font-size: 14px;
  opacity: 0.7;
}

/* Progress */

.weights-progress {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  margin: 25px 0 35px;
  overflow: hidden;
}

.weights-progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.25s ease;
}

/* Grid */

.weights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Category card */

.weight-system-card {
  min-width: 0;
}

.weight-system-title {
  min-height: 42px;
  padding: 10px 14px;

  border-radius: 6px;

  display: flex;
  align-items: center;
  gap: 8px;

  font-weight: 700;
  font-size: 14px;
}

.weight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Number input */

.weight-number-box {
  margin-top: 18px;

  height: 100px;

  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.weight-number-box input {
  width: 100%;
  height: 100%;

  border: none;
  outline: none;
  background: transparent;

  text-align: center;

  font-size: 30px;
  font-weight: 700;

  color: inherit;
}

/* remove browser arrows */

.weight-number-box input::-webkit-inner-spin-button,
.weight-number-box input::-webkit-outer-spin-button {
  opacity: 1;
}

/* Bar */

.weight-bar {
  margin-top: 15px;
  height: 6px;

  border-radius: 10px;
  overflow: hidden;

  background: rgba(255,255,255,0.08);
}

.weight-bar-fill {
  height: 100%;
  transition: width 0.25s ease;
}

/* Footer */

.weights-footer {
  margin-top: 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .weights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weights-counter {
    position: static;
    margin: 20px 0;
  }
}

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

  .weights-footer {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}


/* =========================================================
   IMPACT SCORING
   ========================================================= */

.impact-wrap {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 25px 20px 50px;
}

/* Question */

.impact-question-card {
  background: rgba(20, 69, 48, 0.95);
  border-left: 4px solid #d8ff00;
  border-top: 1px solid rgba(216, 255, 0, 0.25);
  border-bottom: 1px solid rgba(216, 255, 0, 0.12);
  padding: 22px 25px;
  margin-bottom: 20px;
}

.impact-eyebrow {
  color: var(--dashboard-subtitle);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.impact-question-card h1 {
  margin: 0 0 15px;
  color: #d8ff00;
  font-size: 26px;
  line-height: 1.3;
}

.impact-description {
  margin: 0 0 12px;
  color: rgba(235, 248, 226, 0.9);
  font-size: 15px;
}

.impact-instructions {
  margin: 0;
  padding-left: 20px;
  color: rgba(235, 248, 226, 0.72);
  line-height: 1.7;
  font-size: 14px;
}

.impact-instructions li::marker {
  color: var(--dashboard-bullet);
}

/* Global information */

.impact-global-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 4px;
  color: rgba(235, 248, 226, 0.65);
  font-size: 14px;
}

.impact-global-info strong {
  color: #d8ff00;
}

/* Grid */

.impact-table-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* Table */

.impact-table {
  overflow: hidden;
  background: #084c38;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Category header */

.impact-table-header {
  min-height: 38px;
  padding: 9px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 12px;
  font-weight: 800;
  color: #102010;
}

/*
 * Couleurs des catégories.
 * On utilise nth-child pour garder les couleurs
 * correspondant à ton exemple.
 */

.impact-table:nth-child(1) .impact-table-header {
  background: #f0b900;
}

.impact-table:nth-child(2) .impact-table-header {
  background: #8bcf45;
}

.impact-table:nth-child(3) .impact-table-header {
  background: #e6ff00;
}

.impact-table:nth-child(4) .impact-table-header {
  background: #ff00df;
  color: #ffffff;
}

.impact-category-name {
  font-weight: 900;
}

.impact-points-title {
  font-weight: 800;
}

/* Body */

.impact-table-body {
  padding: 3px 10px 5px;
}

/* Driver row */

.impact-table-row {
  min-height: 29px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.impact-table-row:last-child {
  border-bottom: 0;
}

.impact-driver-name {
  color: #e9f6e4;
  font-size: 11px;
  line-height: 1.25;
}

/* Score */

.impact-score-input {
  width: 36px;
  height: 24px;

  border: 0;
  border-radius: 2px;

  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;

  text-align: center;
  font-size: 11px;
  font-weight: 800;

  outline: none;
}

.impact-score-input:focus {
  background: rgba(216, 255, 0, 0.12);
  box-shadow: inset 0 0 0 1px #d8ff00;
}

.impact-score-input::-webkit-inner-spin-button,
.impact-score-input::-webkit-outer-spin-button {
  opacity: 1;
}

/* Total */

.impact-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 7px 10px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  color: #e9f6e4;
  font-size: 11px;
  font-weight: 800;
}

.impact-table-footer strong {
  color: #ffffff;
}

.impact-table.complete .impact-table-footer strong {
  color: #d8ff00;
}

/* Status */

.impact-category-status {
  padding: 0 10px 9px;

  color: rgba(235, 248, 226, 0.5);
  font-size: 9px;
}

.impact-table.complete .impact-category-status {
  color: #d8ff00;
}

/* Footer */

.impact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
  margin-top: 30px;
}

.impact-completion {
  color: rgba(235, 248, 226, 0.65);
  font-size: 13px;
}

@media (max-width: 1000px) {
  .impact-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .impact-table-grid {
    grid-template-columns: 1fr;
  }

  .impact-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-footer .crowdgame-cta {
    width: 100%;
  }
}

/* =========================================================
   MATRIX
   ========================================================= */

.matrix-wrap {
  width: min(1400px, 96vw);
  margin: 0 auto;
  padding: 30px 0 50px;
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.matrix-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dashboard-subtitle);
  margin-bottom: 8px;
}

.matrix-header h1 {
  margin: 0;
  font-size: 30px;
}

.matrix-header p {
  margin: 8px 0 0;
  opacity: 0.65;
}

.matrix-participation-badge {
  padding: 8px 12px;
  border: 1px solid rgba(190, 230, 60, 0.3);
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 1px;
}

/* LAYOUT */

.matrix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.matrix-card,
.matrix-detail-card,
.matrix-critical-card {
  border-radius: 18px;
  border: 1px solid rgba(160, 210, 90, 0.16);
  background: rgba(7, 30, 20, 0.72);
}

.matrix-card {
  padding: 26px;
}

/* CHART */

.matrix-chart {
  position: relative;
  height: 600px;
  padding: 35px 45px 45px 65px;
}

.matrix-grid {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(180, 220, 100, 0.2);
  background:
    linear-gradient(
      to right,
      transparent 33.333%,
      rgba(180, 220, 100, 0.08) 33.333%,
      rgba(180, 220, 100, 0.08) calc(33.333% + 1px),
      transparent calc(33.333% + 1px),
      transparent 66.666%,
      rgba(180, 220, 100, 0.08) 66.666%,
      rgba(180, 220, 100, 0.08) calc(66.666% + 1px),
      transparent calc(66.666% + 1px)
    ),
    linear-gradient(
      to top,
      transparent 33.333%,
      rgba(180, 220, 100, 0.08) 33.333%,
      rgba(180, 220, 100, 0.08) calc(33.333% + 1px),
      transparent calc(33.333% + 1px),
      transparent 66.666%,
      rgba(180, 220, 100, 0.08) 66.666%,
      rgba(180, 220, 100, 0.08) calc(66.666% + 1px),
      transparent calc(66.666% + 1px)
    );
}

/* AXES */

.matrix-axis-top {
  position: absolute;
  top: 8px;
  left: 8px;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.matrix-axis-bottom {
  position: absolute;
  bottom: 42px;
  left: 8px;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.matrix-axis-left {
  position: absolute;
  bottom: 5px;
  left: 65px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.matrix-axis-right {
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.matrix-y-label {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}
.matrix-x-label {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

/* QUADRANTS */

.matrix-quadrant {
  position: absolute;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  pointer-events: none;
}

.q-critical {
  left: 66%;
  right: 0;
  top: 0;
  bottom: 66%;

  color: #ffd0d3;

  background: rgba(216, 75, 85, 0.13);

  border: 1px solid rgba(216, 75, 85, 0.4);

  border-radius: 0 10px 0 0;
}

.q-planning {
  left: 0;
  right: 66%;
  top: 0;
  bottom: 66%;

  color: rgba(240, 245, 220, 0.8);
}

.q-monitor {
  left: 0;
  right: 66%;
  top: 66%;
  bottom: 0;

  color: rgba(180, 195, 175, 0.75);
}

.q-adjust {
  left: 66%;
  right: 0;
  top: 66%;
  bottom: 0;

  color: rgba(180, 195, 175, 0.75);
}

/* THRESHOLDS */

.matrix-threshold-line {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-style: dashed;
  opacity: 0.3;
}

.matrix-threshold-line.vertical {
  top: 0;
  bottom: 0;
  width: 0;
  border-left-width: 1px;
}

.matrix-threshold-line.horizontal {
  left: 0;
  right: 0;
  height: 0;
  border-top-width: 1px;
}

/* DRIVER DOTS */

.matrix-driver-dot {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, 50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(220, 240, 100, 0.55);
  background: rgba(10, 30, 20, 0.35);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* Disque interieur : porte la couleur de CATEGORIE (injectee en style
   inline depuis CrowdGame.tsx, cf. getCategoryColor). L'anneau exterieur
   (bordure du bouton, ci-dessous) porte lui la couleur de STATUT. */
.matrix-driver-dot-inner {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.matrix-driver-dot:hover {
  transform: translate(-50%, 50%) scale(1.25);
}

.matrix-driver-dot.selected {
  transform: translate(-50%, 50%) scale(1.35);
  box-shadow:
    0 0 0 5px rgba(220, 230, 100, 0.12),
    0 0 25px rgba(210, 230, 80, 0.35);
}

/* Anneau colore selon le statut Impact x Uncertainty -- les 6 statuts
   possibles (cf. get_matrix_status cote backend) ont chacun leur couleur,
   avant seul "critical" en avait une. */
.matrix-driver-dot.critical {
  border-color: #ff5252;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.45);
}

.matrix-driver-dot.critical-planning {
  border-color: #ff9800;
}

.matrix-driver-dot.important-scenario {
  border-color: #ffd740;
}

.matrix-driver-dot.important-planning {
  border-color: #64b5f6;
}

.matrix-driver-dot.monitor-and-adjust {
  border-color: #ba68c8;
}

.matrix-driver-dot.monitor {
  border-color: rgba(220, 240, 100, 0.55);
}

/* LEGEND */

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(160, 210, 90, 0.1);
  font-size: 12px;
  opacity: 0.7;
}

.matrix-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dot,
.critical-item-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* La couleur du legend-dot est injectee en style inline (getCategoryColor,
   par nom de categorie) -- les categories etant dynamiques (creees par les
   gamers/l'IA), un jeu fixe de 5 classes ne peut pas les couvrir toutes. */

/* SIDEBAR */

.matrix-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.matrix-detail-card {
  padding: 22px;
}

.matrix-detail-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dashboard-subtitle);
  margin-bottom: 8px;
}

.matrix-detail-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.matrix-category-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(190, 220, 50, 0.1);
  font-size: 11px;
  color: #d9ed5a;
}

.matrix-driver-description {
  margin: 15px 0 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.7;
}

.matrix-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.matrix-stat {
  padding: 13px;
  border-radius: 10px;
  border: 1px solid rgba(160, 210, 90, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.matrix-stat span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.45;
  margin-bottom: 7px;
}

.matrix-stat strong {
  font-size: 17px;
}

.matrix-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(200, 220, 70, 0.2);
}

.matrix-status strong {
  display: block;
  font-size: 12px;
}

.matrix-status small {
  display: block;
  margin-top: 4px;
  opacity: 0.6;
}

.matrix-status.critical {
  background: rgba(210, 220, 60, 0.09);
}

/* CRITICAL LIST */

.matrix-critical-card {
  padding: 20px;
  background: rgba(216, 75, 85, 0.13);
  border: 1px solid rgba(216, 75, 85, 0.4);
}

.matrix-critical-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.matrix-critical-header > span {
  font-size: 18px;
}

.matrix-critical-header > div {
  font-size: 11px;
  letter-spacing: 1.5px;
}

.matrix-critical-header small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  opacity: 0.5;
}

.matrix-critical-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-critical-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid rgba(160, 210, 90, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.matrix-critical-item:hover {
  border-color: rgba(200, 220, 70, 0.35);
}

.critical-item-dot {
  background: #e8e94e;
  flex: 0 0 auto;
}

.critical-item-name {
  flex: 1;
  font-size: 13px;
}

.matrix-critical-item strong {
  font-size: 11px;
  color: #e8e94e;
}

.matrix-empty {
  padding: 15px 5px;
  font-size: 12px;
  opacity: 0.55;
}

/* FOOTER */

.matrix-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(160, 210, 90, 0.12);
}

.matrix-footer strong,
.matrix-footer span {
  display: block;
}

.matrix-footer strong {
  font-size: 13px;
}

.matrix-footer span {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.55;
}

.matrix-loading {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0.65;
}

.matrix-loading-spinner {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid rgba(190, 220, 70, 0.2);
  border-top-color: #d8e94d;
  animation: matrix-spin 0.8s linear infinite;
}

@keyframes matrix-spin {
  to {
    transform: rotate(360deg);
  }
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .matrix-layout {
    grid-template-columns: 1fr;
  }

  .matrix-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .matrix-sidebar {
    grid-template-columns: 1fr;
  }

  .matrix-chart {
    height: 450px;
  }

  .matrix-header,
  .matrix-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

.matrix-scenario-prompt {
  margin-top: 28px;
  padding: 28px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  border: 1px solid rgba(190, 240, 60, 0.28);
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(190, 240, 60, 0.08),
      rgba(255, 255, 255, 0.025)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.matrix-scenario-prompt-content {
  max-width: 780px;
}

.matrix-scenario-prompt-eyebrow {
  margin-bottom: 10px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--dashboard-subtitle);
}

.matrix-scenario-prompt h3 {
  margin: 0;

  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;

  color: #f4f7ed;
}

.matrix-scenario-prompt p {
  margin: 10px 0 0;

  font-size: 13px;
  line-height: 1.5;

  color: rgba(230, 238, 220, 0.62);
}

.matrix-scenario-cta {
  flex-shrink: 0;

  padding: 13px 20px;

  border: 1px solid rgba(199, 244, 43, 0.5);
  border-radius: 10px;

  background: #c7f42b;
  color: #082414;

  font-size: 13px;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.matrix-scenario-cta:hover {
  transform: translateY(-1px);

  background: #d4ff45;

  box-shadow:
    0 8px 24px rgba(199, 244, 43, 0.18);
}
@media (max-width: 800px) {
  .matrix-scenario-prompt {
    flex-direction: column;
    align-items: stretch;
  }

  .matrix-scenario-cta {
    width: 100%;
  }
}

/* =========================================================
   SCENARIO
   ========================================================= */

.scenario-wrap {
  width: min(1400px, 94%);
  margin: 0 auto;
  padding: 40px 0 80px;
}

.scenario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--dashboard-border);
}

.scenario-header-icon {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 120px;
  height: 120px;
  border-radius: 999px;

  background: linear-gradient(180deg, rgba(213, 255, 74, 0.28), rgba(213, 255, 74, 0.06));
  box-shadow: inset 0 0 0 2px rgba(213, 255, 74, 0.5), 0 12px 32px rgba(213, 255, 74, 0.22);

  color: var(--dashboard-accent);
}

.scenario-header-icon svg {
  width: 56px;
  height: 56px;
}

@media (max-width: 720px) {
  .scenario-header-icon {
    display: none;
  }
}

.scenario-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  color: var(--dashboard-subtitle);
}

.scenario-header h1 {
  margin: 0 0 12px;
  font-size: 38px;
  font-weight: 800;
  color: var(--dashboard-text);
  letter-spacing: -0.01em;
}

.scenario-header p {
  max-width: 760px;
  margin: 0;
  line-height: 1.6;
  color: rgba(236, 246, 221, 0.65);
}


/* =========================================================
   PAIRS
   ========================================================= */

.scenario-pairs {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.scenario-pair-card {
  position: relative;
  border: 1px solid var(--dashboard-border);
  border-radius: 20px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  box-shadow: var(--dashboard-shadow);
  overflow: hidden;
}

.scenario-pair-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dashboard-accent), rgba(213, 255, 74, 0));
}

.scenario-pair-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 28px;
}

.scenario-pair-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(213, 255, 74, 0.1);
  border: 1px solid rgba(213, 255, 74, 0.28);
  color: var(--dashboard-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.scenario-pair-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--dashboard-text);
}

.scenario-pair-header h2 span {
  color: var(--dashboard-accent);
  font-weight: 400;
  opacity: 0.6;
  margin: 0 10px;
}

.scenario-loading {
  min-height: 420px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 18px;

  opacity: 0.75;
}

.scenario-loading-spinner {
  width: 34px;
  height: 34px;

  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: currentColor;

  border-radius: 50%;

  animation: scenario-spin 0.8s linear infinite;
}
@keyframes scenario-spin {
  to {
    transform: rotate(360deg);
  }
}


.scenario-axis-labels {
  display: flex;
  justify-content: space-between;

  margin-top: 16px;
  padding: 0 2px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;

  color: rgba(236, 246, 221, 0.4);
}

.scenario-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 18px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;

  color: rgba(213, 255, 74, 0.85);
}

/* =========================================================
   2 × 2 MATRIX — TABLE LAYOUT
   ========================================================= */

.scenario-matrix {
  display: grid;

  grid-template-columns:
    minmax(140px, 0.55fr)
    minmax(260px, 1fr)
    minmax(260px, 1fr);

  grid-template-rows:
    auto
    minmax(200px, 1fr)
    minmax(200px, 1fr);

  gap: 1px;

  background: var(--dashboard-border);

  border: 1px solid var(--dashboard-border);

  border-radius: 16px;

  overflow: hidden;
}

.scenario-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 16px;

  background: linear-gradient(180deg, rgba(213, 255, 74, 0.1), rgba(213, 255, 74, 0.03));

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dashboard-text);
}

.scenario-axis {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 16px;

  background: linear-gradient(180deg, rgba(213, 255, 74, 0.1), rgba(213, 255, 74, 0.03));

  font-size: 13px;
  font-weight: 700;
  color: var(--dashboard-text);
}

.scenario-axis-top {
  min-height: 64px;
}

.scenario-axis-left {
  min-height: 200px;
  background: linear-gradient(90deg, rgba(213, 255, 74, 0.1), rgba(213, 255, 74, 0.03));
}


/* =========================================================
   WORLD CARD
   ========================================================= */

.scenario-world {
  position: relative;

  min-height: 250px;

  padding: 28px 30px;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  cursor: pointer;

  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(213, 255, 74, 0.08),
      transparent 35%
    ),
    rgba(6, 24, 14, 0.72);

  border: 1px solid rgba(213, 255, 74, 0.14);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.scenario-world:hover {
  transform: translateY(-6px) scale(1.01);

  border-color: rgba(213, 255, 74, 0.55);

  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(213, 255, 74, 0.13),
      transparent 40%
    ),
    rgba(7, 29, 17, 0.92);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 35px rgba(213, 255, 74, 0.08);
}

.scenario-world:hover::before {
  opacity: 1;
}
.scenario-world-label {
  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.28em;

  color: rgba(213, 255, 74, 0.45);

  margin-bottom: 18px;
}

.scenario-world-arrow {
  position: absolute;

  top: 24px;
  right: 26px;

  font-size: 25px;

  color: rgba(213, 255, 74, 0.45);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.scenario-world:hover .scenario-world-arrow {
  transform: translate(4px, -4px);

  color: #d5ff4a;
}

.scenario-world-heading {
  position: relative;

  z-index: 1;

  margin-bottom: 20px;
}

.scenario-world-heading h3 {
  margin: 0;

  font-size: clamp(28px, 3vw, 42px);

  line-height: 0.95;

  font-weight: 900;

  letter-spacing: -0.04em;

  color: #d5ff4a;

  text-transform: uppercase;

  transition:
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.scenario-world:hover .scenario-world-heading h3 {
  transform: translateX(4px);

  text-shadow:
    0 0 25px rgba(213, 255, 74, 0.25);
}

.scenario-world-states {
  position: relative;

  z-index: 1;

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: auto;

  padding-top: 16px;
}

.scenario-state {
  padding: 6px 12px;

  border-radius: 999px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.04em;
}

.scenario-state-a {
  background: rgba(213, 255, 74, 0.08);

  border: 1px solid rgba(213, 255, 74, 0.3);

  color: #d5ff4a;
}

.scenario-state-b {
  background: rgba(125, 211, 252, 0.08);

  border: 1px solid rgba(125, 211, 252, 0.3);

  color: #7dd3fc;
}

.scenario-state-separator {
  color: rgba(236, 246, 221, 0.25);

  font-size: 11px;
}

.scenario-world-explore {
  position: relative;

  z-index: 1;

  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 20px;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.15em;

  color: rgba(213, 255, 74, 0.65);

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.scenario-world:hover .scenario-world-explore {
  color: #d5ff4a;

  transform: translateX(5px);
}

.scenario-world-explore-arrow {
  font-size: 16px;

  transition: transform 0.3s ease;
}

.scenario-world:hover .scenario-world-explore-arrow {
  transform: translateX(5px);
}

.world-modal-overlay {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 30px;

  background: rgba(1, 8, 5, 0.78);

  backdrop-filter: blur(14px);

  animation: worldOverlayIn 0.25s ease;
}

.world-modal {
  position: relative;

  width: min(900px, 100%);

  max-height: 85vh;

  overflow-y: auto;

  padding: 42px;

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(213, 255, 74, 0.09),
      transparent 30%
    ),
    #06180e;

  border: 1px solid rgba(213, 255, 74, 0.25);

  border-radius: 22px;

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(213, 255, 74, 0.06);

  animation: worldModalIn 0.35s ease;
}

.world-modal-close {
  position: absolute;

  top: 20px;
  right: 22px;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  border: 1px solid rgba(236, 246, 221, 0.15);

  background: rgba(255, 255, 255, 0.03);

  color: rgba(236, 246, 221, 0.65);

  font-size: 24px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.world-modal-close:hover {
  background: rgba(213, 255, 74, 0.1);

  color: #d5ff4a;

  transform: rotate(90deg);
}

.world-modal-eyebrow {
  margin-bottom: 14px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.3em;

  color: rgba(213, 255, 74, 0.45);
}

.world-modal-header h2 {
  margin: 0;

  font-size: clamp(38px, 6vw, 72px);

  line-height: 0.95;

  font-weight: 900;

  letter-spacing: -0.05em;

  color: #d5ff4a;

  text-transform: uppercase;
}

.world-modal-subtitle {
  margin: 14px 0 0;

  font-size: 19px;

  color: rgba(236, 246, 221, 0.72);
}

.world-modal-details {
  margin-top: 38px;

  padding-top: 28px;

  border-top: 1px solid rgba(236, 246, 221, 0.1);
}

.world-modal-section-title {
  margin-bottom: 22px;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.25em;

  color: rgba(213, 255, 74, 0.5);
}

.world-modal-points {
  display: flex;

  flex-direction: column;

  gap: 16px;
}

.world-modal-point {
  display: flex;

  gap: 14px;

  align-items: flex-start;

  padding: 14px 16px;

  background: rgba(255, 255, 255, 0.025);

  border: 1px solid rgba(236, 246, 221, 0.06);

  border-radius: 12px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.world-modal-point:hover {
  background: rgba(213, 255, 74, 0.035);

  border-color: rgba(213, 255, 74, 0.15);

  transform: translateX(4px);
}

.world-modal-point-icon {
  flex-shrink: 0;

  color: #d5ff4a;

  font-size: 20px;

  line-height: 1;
}

.world-modal-point p {
  margin: 0;

  font-size: 14px;

  line-height: 1.65;

  color: rgba(236, 246, 221, 0.72);
}

.world-modal-footer {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 35px;

  padding-top: 20px;

  border-top: 1px solid rgba(236, 246, 221, 0.08);
}

.world-modal-footer span {
  font-size: 10px;

  letter-spacing: 0.12em;

  color: rgba(236, 246, 221, 0.3);
}

.world-modal-footer button {
  padding: 9px 18px;

  border-radius: 999px;

  border: 1px solid rgba(213, 255, 74, 0.3);

  background: rgba(213, 255, 74, 0.05);

  color: #d5ff4a;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.12em;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.world-modal-footer button:hover {
  background: rgba(213, 255, 74, 0.12);

  transform: translateY(-2px);
}

@keyframes worldOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes worldModalIn {
  from {
    opacity: 0;

    transform:
      translateY(25px)
      scale(0.97);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}
/* =========================================================
   WORLD CARDS VARIANTS & COLORS
   ========================================================= */

.scenario-world {
  position: relative;
  min-height: 260px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  background: rgba(6, 24, 14, 0.72);
  border: 1px solid var(--world-border, rgba(213, 255, 74, 0.14));
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.scenario-world-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.scenario-world-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--world-bg, rgba(213, 255, 74, 0.08));
  border: 1px solid var(--world-border, rgba(213, 255, 74, 0.2));
  color: var(--world-color, #d5ff4a);
}

.scenario-world-tagline {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(236, 246, 221, 0.75);
}

/* Hover Glow per Variant */
.scenario-world-smooth:hover {
  border-color: #22c55e;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(34, 197, 94, 0.15);
}

.scenario-world-surge:hover {
  border-color: #d5ff4a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(213, 255, 74, 0.15);
}

.scenario-world-phantom:hover {
  border-color: #c084fc;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(192, 132, 252, 0.15);
}

.scenario-world-chaos:hover {
  border-color: #f97316;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 35px rgba(249, 115, 22, 0.25);
}

/* =========================================================
   MODAL STYLES WITH ICON
   ========================================================= */

.world-modal-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.world-modal-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--world-border);
}

.world-modal-badge {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}