.profile-lead {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-left: 6px solid var(--profile-color, var(--accent));
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.profile-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--profile-color, var(--accent));
}

.profile-card:active { transform: scale(0.99); }

.profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--profile-color, var(--accent));
  color: #0d1b2a;
  border-radius: 10px;
  font-weight: 700;
}

.profile-name {
  font-size: 19px;
  font-weight: 700;
}

.profile-desc {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.profile-target {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 12px;
}

.profile-games {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.profile-games-icons {
  font-size: 18px;
  color: var(--profile-color, var(--accent));
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.profile-games-names {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

.profile-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--profile-color, var(--accent));
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--profile-color, var(--border));
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.profile-pill .pill-icon {
  font-size: 14px;
  color: var(--profile-color, var(--accent));
}

.session-card {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--profile-color, var(--accent)) 25%, var(--bg-card)),
    var(--bg-card));
  border: 1px solid var(--profile-color, var(--accent));
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.session-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.session-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.session-progress-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.session-streak {
  font-size: 13px;
  color: var(--text-dim);
}

.session-streak strong { color: var(--profile-color, var(--accent)); font-size: 16px; }

.session-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.session-bar-fill {
  height: 100%;
  background: var(--profile-color, var(--accent));
  transition: width 0.4s;
}

.session-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.session-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.session-step:hover { background: var(--bg-card-hover); }

.session-step.done {
  background: rgba(74, 222, 128, 0.15);
  border-color: var(--good);
}

.session-step-icon {
  font-size: 18px;
  color: var(--profile-color, var(--accent));
}

.session-step.done .session-step-icon { color: var(--good); }

.session-step-mark {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.session-step.done .session-step-mark { color: var(--good); }

.session-cta {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.session-cta.done { color: var(--good); font-weight: 600; }

.history-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.history-cell {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-dim);
  position: relative;
}

.history-cell.has-1 { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent-dim); }
.history-cell.has-2 { background: color-mix(in srgb, var(--accent) 34%, transparent); border-color: var(--accent-dim); }
.history-cell.has-3 { background: color-mix(in srgb, var(--accent) 52%, transparent); border-color: var(--accent); }
.history-cell.has-4 { background: color-mix(in srgb, var(--accent) 72%, transparent); border-color: var(--accent); color: var(--bg); }
.history-cell.has-5 { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.history-cell .h-day { font-weight: 700; font-size: 12px; }
.history-cell .h-month { font-size: 9px; opacity: 0.7; }

.history-legend {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 20px;
  justify-content: flex-end;
}

.history-legend .legend-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.legend-cell.has-1 { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.legend-cell.has-3 { background: color-mix(in srgb, var(--accent) 52%, transparent); }
.legend-cell.has-5 { background: var(--accent); }

.history-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.history-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.history-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.history-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.history-game-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.history-game-row:last-child { border-bottom: none; }

.history-game-name {
  font-size: 14px;
}

.history-game-name .icon {
  display: inline-block;
  width: 24px;
  color: var(--accent);
  margin-right: 6px;
}

.history-game-level {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.cal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.cal-summary-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}

.cal-summary-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.cal-summary-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-nav-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

.cal-nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.cal-nav-title {
  font-size: 17px;
  font-weight: 700;
  text-transform: capitalize;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-cell.empty {
  background: transparent;
  border-color: transparent;
}

.cal-cell.today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.cal-cell.future { opacity: 0.4; }

.cal-daynum {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
}

.cal-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  transform: rotate(-12deg);
  border: 2px solid currentColor;
}

.cal-stamp.stamp-bronze { color: #c98a52; background: rgba(201, 138, 82, 0.15); }
.cal-stamp.stamp-silver { color: #9fb3c8; background: rgba(159, 179, 200, 0.15); }
.cal-stamp.stamp-gold { color: #f5b342; background: rgba(245, 179, 66, 0.2); }

.cal-stamp.stamp-fresh {
  animation: stamp-press 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}

@keyframes stamp-press {
  0% { transform: rotate(-12deg) scale(2.6); opacity: 0; }
  55% { transform: rotate(-12deg) scale(0.85); opacity: 1; }
  100% { transform: rotate(-12deg) scale(1); opacity: 1; }
}

.cal-braindot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.cal-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.cal-legend .cal-stamp {
  width: 26px;
  height: 26px;
  font-size: 13px;
  flex-shrink: 0;
}

.cal-legend .cal-braindot {
  position: static;
  flex-shrink: 0;
}

.cal-message {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  margin: 16px 0;
  line-height: 1.5;
}

/* ---- Page Profil joueur ---- */
.player-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), var(--glass));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 0 36px color-mix(in srgb, var(--accent) 18%, transparent);
}

.player-avatar {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  font-size: 46px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 35%, transparent);
}

.player-avatar:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--accent); }

.player-meta { flex: 1; min-width: 0; }

.player-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: -6px;
  width: 100%;
  max-width: 220px;
  font-family: inherit;
}
.player-name:hover { border-color: var(--border); }
.player-name:focus { outline: none; border-color: var(--accent); background: var(--bg); }

.player-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--accent);
  margin-top: 4px;
}

.player-level-num {
  background: var(--accent);
  color: var(--bg);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.xp-bar {
  height: 10px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
  border: 1px solid var(--glass-border);
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  border-radius: 999px;
  transition: width 0.8s ease;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
}

.avatar-picker {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}
.avatar-picker.show { display: flex; }
.avatar-option {
  width: 48px;
  height: 48px;
  font-size: 28px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.avatar-option:hover { border-color: var(--accent); transform: scale(1.05); }
.avatar-option.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, var(--bg));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.stat-tile {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
}
.stat-tile-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}
.stat-tile-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-top: 4px;
}
.stat-tile-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.badge-cell {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.badge-cell:hover { transform: scale(1.04); border-color: var(--accent-dim); }
.badge-cell.unlocked {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--bg-card)), var(--bg-card));
  border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 22%, transparent);
}
.badge-cell.locked { opacity: 0.45; }

.badge-cell-icon {
  font-size: 30px;
  margin-bottom: 4px;
}
.badge-cell.locked .badge-cell-icon { filter: grayscale(1) brightness(0.6); }

.badge-cell-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.badge-cell.locked .badge-cell-name { color: var(--text-dim); }

.badge-detail {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  min-height: 60px;
  display: none;
}
.badge-detail.show { display: block; }
.badge-detail-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}
.badge-detail-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.4;
}

.player-cognitive {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.player-cognitive-text { flex: 1; min-width: 0; }
.player-cognitive-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}
.player-cognitive-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}
.player-cognitive a {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.player-cognitive a:hover { text-decoration: underline; }

.no-pressure-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin: 18px 0;
  font-style: italic;
  line-height: 1.5;
  padding: 0 12px;
}

/* ---- Onboarding (welcome.html) ---- */
.wel-stage { display: none; animation: wel-fade 0.5s ease both; }
.wel-stage.show { display: block; }

@keyframes wel-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wel-skip {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--text-dim);
  font-size: 13px;
  text-decoration: none;
  z-index: 5;
}
.wel-skip:hover { color: var(--text); }

.wel-hero {
  text-align: center;
  padding: 30px 6px 12px;
}
.wel-logo-mark {
  font-size: 80px;
  margin-bottom: 14px;
  display: inline-block;
  animation: wel-pop 0.8s cubic-bezier(0.16, 1.6, 0.3, 1);
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 60%, transparent));
}
@keyframes wel-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.wel-brand {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 35%, white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.wel-tagline {
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 26px;
}
.wel-pitch {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 auto 32px;
  max-width: 320px;
}

.wel-stage-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}
.wel-stage-sub {
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 20px;
}

.wel-profile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.wel-profile-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-left: 6px solid var(--profile-color, var(--accent));
  border-radius: 16px;
  padding: 14px 14px 14px 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  display: flex;
  gap: 14px;
  align-items: center;
}
.wel-profile-card:hover {
  transform: translateY(-2px);
  border-color: var(--profile-color, var(--accent));
  background: var(--bg-card-hover);
}
.wel-profile-emoji {
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--profile-color, var(--accent));
  color: #0d1b2a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wel-profile-name {
  font-size: 16px;
  font-weight: 800;
}
.wel-profile-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.wel-id-row {
  margin-bottom: 22px;
}
.wel-id-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.wel-name-input {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 17px;
  font-family: inherit;
}
.wel-name-input:focus { outline: none; border-color: var(--accent); }
.wel-avatars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.wel-avatar-opt {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.wel-avatar-opt:hover { border-color: var(--accent-dim); transform: scale(1.06); }
.wel-avatar-opt.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-card));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent);
}

.wel-demo-zone {
  border-radius: 24px;
  aspect-ratio: 1 / 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  text-align: center;
  padding: 20px;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  transition: background 0.1s;
}
.wel-demo-zone.idle {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}
.wel-demo-zone.armed { background: #b53737; border: 2px solid #e44a4a; }
.wel-demo-zone.ready { background: var(--good); border: 2px solid #22c55e; color: #0d1b2a; }
.wel-demo-progress {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.wel-reward {
  text-align: center;
  padding: 20px 8px 6px;
}
.wel-reward-icon {
  font-size: 70px;
  margin-bottom: 8px;
  display: inline-block;
  animation: wel-pop 0.7s cubic-bezier(0.16, 1.6, 0.3, 1);
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--good) 55%, transparent));
}
.wel-reward-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--good);
  margin-bottom: 14px;
}
.wel-reward-line {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 6px;
}
.wel-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
}

/* ---- Célébration de session du jour ---- */
.session-celebration {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: wel-fade 0.4s ease;
}
.session-celebration-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--bg-card)), var(--bg-card));
  border: 1px solid var(--accent);
  border-radius: 28px;
  padding: 30px 24px;
  text-align: center;
  max-width: 360px;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 40%, transparent);
}
.session-celebration-icon {
  font-size: 80px;
  display: inline-block;
  animation: wel-pop 0.9s cubic-bezier(0.16, 1.6, 0.3, 1);
}
.session-celebration-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  margin: 10px 0 8px;
}
.session-celebration-sub {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 14px;
}
.session-celebration-xp {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}

/* ---- Overlay générique (comeback, milestone) ---- */
.zk-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: wel-fade 0.4s ease;
}
.zk-overlay-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, var(--bg-card)), var(--bg-card));
  border: 1px solid var(--accent);
  border-radius: 28px;
  padding: 30px 24px;
  text-align: center;
  max-width: 380px;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 35%, transparent);
}
.zk-overlay-card.warm {
  border-color: var(--warn);
  background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 24%, var(--bg-card)), var(--bg-card));
  box-shadow: 0 0 60px color-mix(in srgb, var(--warn) 30%, transparent);
}
.zk-overlay-icon {
  font-size: 76px;
  display: inline-block;
  animation: wel-pop 0.9s cubic-bezier(0.16, 1.6, 0.3, 1);
  margin-bottom: 6px;
}
.zk-overlay-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
}
.zk-overlay-sub {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 18px;
}
.zk-overlay-reward {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  margin-bottom: 18px;
}
.zk-overlay-reward-line {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}
.zk-overlay-reward-line.dim { color: var(--text-dim); font-weight: 500; font-size: 12px; }
.zk-overlay-secondary {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.zk-overlay-secondary:hover { text-decoration: underline; }

/* Indicateur freeze dans le profil */
.freeze-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(120, 180, 255, 0.18);
  border: 1px solid rgba(120, 180, 255, 0.6);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #b3d8ff;
  margin-left: 8px;
}

/* ---- First-visit hint ---- */
.zk-first-hint-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 18px 0 22px;
}
.zk-first-hint-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
}
.zk-first-hint-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zk-first-hint-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ---- Setting toggle ---- */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.setting-row-meta { flex: 1; min-width: 0; }
.setting-row-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.setting-row-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 2px;
}
.zk-toggle {
  flex-shrink: 0;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--border);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.zk-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s;
}
.zk-toggle.on { background: var(--accent); }
.zk-toggle.on::after { transform: translateX(22px); }

/* ---- Comfort mode overrides ---- */
body.zk-comfort { font-size: 17.5px; }
body.zk-comfort h1 { font-size: 38px; }
body.zk-comfort .subtitle { font-size: 16px; }
body.zk-comfort .card { padding: 24px; border-radius: 22px; }
body.zk-comfort .btn { padding: 20px 28px; min-height: 62px; font-size: 18px; }
body.zk-comfort .hud-label { font-size: 13px; }
body.zk-comfort .hud-value { font-size: 22px; }
body.zk-comfort .section-title { font-size: 16px; }
body.zk-comfort .instructions { font-size: 17px; line-height: 1.65; }
body.zk-comfort .card-link:hover { transform: none; }
body.zk-comfort .btn:not(:disabled):hover { transform: none; }
body.zk-comfort *, body.zk-comfort *::before, body.zk-comfort *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.05ms !important;
}
body.zk-comfort .zikof-confetti { display: none !important; }
body.zk-comfort .daily-action-title { font-size: 30px; }
body.zk-comfort .zk-tab { font-size: 12px; }
body.zk-comfort .zk-tab svg { width: 26px; height: 26px; }
body.zk-comfort .ba-age { font-size: 96px; }

/* ---- Action quotidienne unique (portail) ---- */
.daily-action {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--bg-card)), var(--bg-card));
  border: 1px solid var(--accent);
  border-radius: 28px;
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 38px color-mix(in srgb, var(--accent) 25%, transparent);
}
.daily-action-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.daily-action-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.daily-action-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.5;
}
.daily-action-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.daily-action-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  border-radius: 999px;
  transition: width 0.6s ease;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.daily-action-progress {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.daily-action-progress strong { color: var(--text); }
.daily-action.complete {
  background: linear-gradient(135deg, color-mix(in srgb, var(--good) 26%, var(--bg-card)), var(--bg-card));
  border-color: var(--good);
}
.daily-action.complete .daily-action-label,
.daily-action.complete .daily-action-bar-fill { color: var(--good); }
.daily-action.complete .daily-action-bar-fill {
  background: linear-gradient(90deg, var(--good), color-mix(in srgb, var(--good) 60%, var(--accent)));
}
