:root {
  --bg: #0a0918;
  --bg-elev: #100e22;
  --bg-panel: #14122a;
  --bg-row: #1b1736;
  --bg-hover: #221c42;
  --border: rgba(167, 139, 250, 0.28);
  --border-soft: rgba(167, 139, 250, 0.16);
  --text: #f3f0ff;
  --muted: #b4aee0;
  --dim: #7e78b0;
  --accent: #a78bfa;
  --accent-2: #38bdf8;
  --accent-soft: rgba(167, 139, 250, 0.16);
  --accent-grad: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 45%, #38bdf8 100%);
  --live-wait: #eab308;
  --live-on: #22c55e;
  --live-off: #ef4444;
  --pink: #c4b5fd;
  --cyan: #38bdf8;
  --sidebar-w: 248px;
  --radius: 10px;
  --font: "Outfit", "Segoe UI", sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  overflow: hidden;
}

button, input, select { font-family: inherit; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(167, 139, 250, 0.16), transparent 52%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(56, 189, 248, 0.10), transparent 48%),
    var(--bg);
}

/* â€”â€” Sidebar â€”â€” */
.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border-right: 1px solid var(--border-soft);
  padding: 16px 12px 12px;
  gap: 8px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 12px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #0a0918;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.28),
    0 0 14px rgba(167, 139, 250, 0.35),
    0 0 18px rgba(56, 189, 248, 0.22);
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: #1a1400;
  background: linear-gradient(135deg, #f5d76e, #eab308);
  padding: 2px 7px;
  border-radius: 4px;
}

.live-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pseudo {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90px;
}

.live-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.18);
  color: var(--live-wait);
  white-space: nowrap;
}

.live-pill.on {
  background: rgba(34, 197, 94, 0.18);
  color: var(--live-on);
}

.live-pill.off {
  background: rgba(239, 68, 68, 0.15);
  color: var(--live-off);
}

.live-game {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 12px;
  padding-top: 2px;
  border-top: 1px solid var(--border-soft);
}

/* Sélecteur de scène active (barre latérale, sous le compte) */
.mt-scene-switch {
  position: relative;
  margin: 0 0 2px;
}
.mt-scene-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.mt-scene-switch-btn:hover,
.mt-scene-switch.is-open .mt-scene-switch-btn {
  background: var(--bg-hover);
  border-color: var(--border);
}
.mt-scene-switch-thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a4a, #1a2a4a);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.mt-scene-switch-thumb.has-img {
  background: #0b0f14;
  padding: 0;
}
.mt-scene-switch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mt-scene-switch-thumb.is-none {
  background: #1a1a1f;
  color: var(--dim);
  border: 1px dashed var(--border);
}
.mt-scene-switch-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.mt-scene-switch-chevron {
  flex-shrink: 0;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: transform 0.15s;
}
.mt-scene-switch.is-open .mt-scene-switch-chevron {
  transform: rotate(180deg);
}
.mt-scene-switch-menu {
  position: fixed;
  z-index: 2000;
  background: #16161c;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-height: min(70vh, 420px);
}
.mt-scene-switch-menu[hidden] { display: none; }
.mt-scene-switch-hdr {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 10px 4px;
}
.mt-scene-switch-list {
  overflow-y: auto;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mt-scene-switch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}
.mt-scene-switch-item:hover {
  background: var(--bg-hover);
}
.mt-scene-switch-item.is-active {
  background: var(--accent-soft);
}
.mt-scene-switch-item-thumb {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a4a, #1a2a4a);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.mt-scene-switch-item-thumb.has-img { background: #0b0f14; padding: 0; }
.mt-scene-switch-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-scene-switch-item-thumb--empty {
  background: #1a1a1f;
  border: 1px dashed var(--border);
}
.mt-scene-switch-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mt-scene-switch-check {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  width: 14px;
  text-align: center;
  opacity: 0;
}
.mt-scene-switch-item.is-active .mt-scene-switch-check { opacity: 1; }
.mt-scene-switch-manage {
  margin-top: 4px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-top: 1px solid var(--border-soft);
  background: transparent;
  color: var(--muted);
  border-radius: 0 0 8px 8px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}
.mt-scene-switch-manage:hover { color: var(--text); background: var(--bg-hover); }
.mts-none-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.1);
  color: #f5d76e;
  font-size: 13px;
}
.mts-none-note[hidden] { display: none; }

.nav-section {
  margin-top: 10px;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13.5px;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-item:disabled,
.nav-item.stub {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-item .ico {
  width: 18px;
  text-align: center;
  opacity: 0.9;
  color: var(--accent);
}
.nav-item.active .ico {
  color: var(--accent-2);
  opacity: 1;
}

.nav-sub {
  padding-left: 28px;
  font-size: 13px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.toggle-row.disabled { opacity: 0.45; }

.switch {
  margin-left: auto;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #33333a;
  position: relative;
  flex-shrink: 0;
  pointer-events: none;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #888;
  transition: transform 0.15s;
}

.switch.on {
  background: rgba(34, 197, 94, 0.35);
}

.switch.on::after {
  transform: translateX(16px);
  background: var(--live-on);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #7c3aed);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.foot-meta { min-width: 0; }
.foot-meta strong { display: block; font-size: 13px; }
.foot-meta span { display: block; font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version { margin-left: auto; font-size: 11px; color: var(--dim); }

/* â€”â€” Main â€”â€” */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.topbar h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.topbar p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content {
  flex: 1;
  overflow: auto;
  padding: 20px 28px 28px;
}

.view { display: none; }
.view.active { display: block; }

/* â€”â€” Controls â€”â€” */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover { background: var(--bg-hover); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--accent-grad);
  color: #0b0818;
  border-color: transparent;
  box-shadow: var(--accent-shadow, 0 4px 16px rgba(167, 139, 250, 0.28));
}

.btn-primary:hover {
  filter: brightness(1.08);
  background: var(--accent-grad);
}

.btn-connect {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--live-on);
}

.btn-connect.disconnect {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--live-off);
}

.btn-ghost {
  background: transparent;
}

.input, .select {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}

.input:focus, .select:focus {
  border-color: var(--accent);
}

.input::placeholder { color: var(--dim); }

.search {
  min-width: 220px;
  width: 280px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.overlay-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), rgba(255, 45, 85, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 13px;
  color: var(--cyan);
}

.overlay-banner button {
  margin-left: auto;
}

/* â€”â€” Tables / lists â€”â€” */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.scene-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.scene-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(167, 139, 250, 0.45), rgba(56, 189, 248, 0.28)),
    #1b1736;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg-row);
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge.gift {
  background: rgba(255, 45, 85, 0.12);
  border-color: rgba(255, 45, 85, 0.3);
  color: #ff7a96;
}

.badge.effect {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.28);
  color: #f5d76e;
}

.badge.http {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.32);
  color: #c4b5fd;
}

.badge.perso {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border);
}

.icon-btn.danger:hover {
  color: var(--live-off);
}

/* â€”â€” Scene editor tabs â€”â€” */
.scene-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.scene-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 12px 0 16px;
}

.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 560;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent-2);
  border-bottom-color: var(--accent);
}

.tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.scene-tab-pane {
  min-height: 120px;
}

.scene-chatbot-panel {
  max-width: 560px;
}

.scene-chatbot-connect {
  margin-top: 14px;
}

.cb-gate-note {
  margin: 0 0 12px;
}

.cb-message-banner {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  line-height: 1.45;
}

.cb-vars-box {
  margin-top: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.cb-vars-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.cb-vars-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cb-vars-braces {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
  font-weight: 700;
}

.cb-vars-title {
  flex: 1;
}

.cb-vars-caret {
  color: var(--muted);
  font-size: 12px;
}

.cb-vars-body {
  border-top: 1px solid var(--border-soft);
  padding: 12px 14px 14px;
  min-height: 96px;
}

.cb-vars-box.collapsed .cb-vars-body {
  display: none;
}

.cb-vars-box.collapsed .cb-vars-caret {
  transform: rotate(-90deg);
  display: inline-block;
}

.cb-vars-empty {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.45;
}

.cb-vars-list:empty {
  display: none;
}

.cb-vars-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 8px;
}

.wh-url {
  width: 100%;
}

.wh-adv-box {
  margin-top: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.wh-adv-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.wh-adv-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.wh-adv-title {
  flex: 1;
}

.wh-adv-caret {
  color: var(--muted);
  font-size: 12px;
}

.wh-adv-body {
  border-top: 1px solid var(--border-soft);
  padding: 12px 14px 14px;
}

.wh-adv-box.collapsed .wh-adv-body {
  display: none;
}

.wh-adv-box.collapsed .wh-adv-caret {
  transform: rotate(-90deg);
  display: inline-block;
}

.wh-content-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-row);
}

.wh-ct-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.wh-ct-btn + .wh-ct-btn {
  border-left: 1px solid var(--border-soft);
}

.wh-ct-btn.active {
  background: rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}

.wh-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wh-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: center;
}

.wh-field-row .input {
  width: 100%;
  min-width: 0;
}

.wh-field-remove {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.wh-field-remove:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
}

.wh-headers {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

/* â€”â€” Connect panel â€”â€” */
.connect-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .connect-panel { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.panel h3 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.field-row {
  display: flex;
  gap: 8px;
}

.field-row .input { flex: 1; }

.logs {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  height: 180px;
  overflow: auto;
  padding: 10px 12px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #c8c8d0;
}

.log-line .ts { color: var(--dim); margin-right: 8px; }

/* â€”â€” Gift mapping â€”â€” */
.map-select {
  min-width: 240px;
  max-width: 320px;
}

.empty-hint {
  color: var(--muted);
  padding: 40px 20px;
  text-align: center;
}

.stub-note {
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  color: var(--dim);
  font-size: 13px;
}

/* â€”â€” Full-page rule editor (Tik360-style) â€”â€” */
body.rule-editor-open .app { display: none; }

.rule-editor {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  background: var(--bg);
  color: var(--text);
}

.rule-editor[hidden] { display: none !important; }

.re-left,
.re-right {
  background: var(--bg-elev);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.re-right {
  border-right: none;
  border-left: 1px solid var(--border-soft);
}

.re-search-wrap { padding: 14px 12px 8px; }

.re-search { width: 100%; }

.re-cat {
  flex: 1;
  overflow: auto;
  padding: 4px 12px 12px;
}

.re-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 8px 0 10px;
}

.re-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.re-triggers { display: flex; flex-direction: column; gap: 6px; }

.trigger-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-panel);
  color: var(--text);
  cursor: grab;
  font-size: 13px;
  text-align: left;
  user-select: none;
}

.trigger-item:hover {
  background: var(--bg-hover);
  border-color: rgba(59, 130, 246, 0.35);
}

.trigger-item:active { cursor: grabbing; }

.trigger-item .trig-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

.trigger-item.stub-mark .trig-ico {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

.re-left-hint {
  padding: 10px 14px 14px;
  font-size: 11px;
  color: var(--dim);
  border-top: 1px solid var(--border-soft);
}

.re-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(59, 130, 246, 0.05), transparent 60%),
    var(--bg);
}

.re-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(18, 18, 20, 0.7);
}

.re-back {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.re-back:hover { background: var(--bg-hover); }

.re-scene-name {
  color: var(--muted);
  font-size: 13px;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.re-sep { color: var(--dim); font-size: 16px; }

.re-rule-name {
  flex: 1;
  max-width: 360px;
  border-radius: 999px;
  padding-left: 16px;
  padding-right: 16px;
}

.re-canvas {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 20px;
  position: relative;
}

.re-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 980px;
}

.re-lib-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 12px 10px;
  padding: 4px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.re-lib-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.re-lib-tab.active {
  background: var(--bg-row);
  color: var(--text);
}

.re-actions {
  padding: 0 8px 8px;
  overflow: auto;
  max-height: calc(100vh - 180px);
}

.re-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  width: 100%;
  flex-wrap: wrap;
}

.re-flow-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: min(420px, 100%);
}

.re-flow-link {
  width: 36px;
  height: 2px;
  margin-top: 64px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0.2));
  position: relative;
  flex-shrink: 0;
}

.re-flow-link::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: rgba(59, 130, 246, 0.9);
}

.re-block {
  position: relative;
}

.re-block-action {
  border-color: rgba(52, 211, 153, 0.28);
}

.re-block-label-action {
  color: #34d399;
}

.re-port {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #0b1220;
  transform: translateY(-50%);
}

.re-port-out { right: -7px; }
.re-port-in { left: -7px; background: #34d399; }

.mc-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mc-step {
  border: 1px solid var(--border-soft);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.mc-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.mc-cmd {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.mc-delay-field {
  margin-top: 8px;
  margin-bottom: 0;
}

.mc-specials {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.mc-specials-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mc-specials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mc-special {
  font-size: 12px;
}

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

.btn-link {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  padding: 4px 0;
}

.btn-link:hover {
  color: #93c5fd;
}

.vm-voice-banner {
  margin-bottom: 0;
}

.req-star {
  color: #f87171;
  font-weight: 700;
}

.sp-search {
  width: 100%;
}

.sp-var-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sp-var-group-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.sp-var-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-var-chip {
  border: 1px solid var(--border-soft);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
  line-height: 1.3;
}

.sp-var-chip:hover {
  border-color: var(--accent);
  color: #93c5fd;
}

.btn-link:disabled,
.btn-link[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: none;
}

.sp-skip-note {
  margin-top: 4px;
}

.ks-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ks-label-row label {
  margin-bottom: 0;
}

.ks-var-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ks-sequence-banner {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.ks-capture-btn.listening {
  border-color: var(--accent);
  color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.ks-specials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.ks-specials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ks-specials-label {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ks-key {
  border: 1px solid var(--border-soft);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  min-width: 34px;
  text-align: center;
}

.ks-key:hover {
  border-color: var(--accent);
  color: #93c5fd;
}

.ks-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.ks-mod,
.ks-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.ks-mod input,
.ks-check-label input {
  accent-color: var(--accent);
}

#cfgActionBattlePoints .field {
  margin-bottom: 12px;
}

#bpPointsField[hidden] {
  display: none !important;
}

.vm-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  margin-top: 4px;
}

.ta-temp-banner {
  margin-top: 12px;
  align-items: center;
}

.ta-temp-banner .toggle-switch {
  flex-shrink: 0;
  align-self: center;
}

#taTextField[data-disabled="1"] {
  opacity: 0.55;
  pointer-events: none;
}

/* â€”â€” DÃ©clencher dâ€™autres rÃ¨gles â€”â€” */
.tr-count-row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
  align-items: center;
}

.tr-count-stepper {
  width: 100%;
  text-align: center;
}

.tr-rules-field > label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tr-selected-badge {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-weight: 700;
  min-width: 1.6em;
  justify-content: center;
}

.tr-rules-table-wrap {
  margin-top: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg);
}

.tr-rules-table {
  margin: 0;
}

.tr-rules-table th,
.tr-rules-table td {
  padding: 10px 12px;
}

.tr-rules-table .tr-col-check {
  width: 36px;
}

.tr-rules-table tbody tr {
  cursor: pointer;
}

.tr-rules-table tbody tr.is-selected td {
  background: rgba(59, 130, 246, 0.08);
}

.tr-rules-empty {
  color: var(--dim);
  text-align: center;
  font-size: 12px;
}

.tr-trigger-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-row);
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: lowercase;
}

/* â€”â€” Bloquer / DÃ©bloquer rÃ¨gles â€”â€” */
.br-action-tabs {
  grid-template-columns: 1fr 1fr;
}

.br-autounblock-banner {
  margin-top: 12px;
  margin-bottom: 8px;
  align-items: center;
}

.br-autounblock-banner .toggle-switch {
  flex-shrink: 0;
  align-self: center;
}

.br-autounblock-banner .vm-toggle-text span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--dim);
  font-weight: 400;
  line-height: 1.35;
}

/* â€”â€” Bandeau dÃ©filant â€”â€” */
.bd-live-inserts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 10px;
}

.bd-live-chip {
  border: 1px solid var(--border-soft);
  background: var(--bg-row);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.bd-live-chip:hover {
  border-color: var(--accent, #5b8cff);
}

.bd-priority-row {
  margin-top: 8px;
  align-items: center;
}

.bd-priority-row .toggle-switch {
  flex-shrink: 0;
  align-self: center;
}

.vm-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vm-toggle-text strong {
  font-size: 12px;
}

.vm-toggle-text span {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.35;
}

.toggle-switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #1b1736;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.toggle-switch .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c4b5fd;
  transition: transform 0.15s ease, background 0.15s ease;
}

.toggle-switch.on {
  background: rgba(167, 139, 250, 0.38);
  border-color: rgba(167, 139, 250, 0.6);
}

.toggle-switch.on .toggle-knob {
  transform: translateX(18px);
  background: #38bdf8;
}

.re-canvas.drag-over {
  outline: 2px dashed rgba(167, 139, 250, 0.5);
  outline-offset: -12px;
}

.re-empty {
  text-align: center;
  color: var(--muted);
  max-width: 360px;
}

.re-empty-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 28px;
}

.re-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.re-empty-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
}

.re-block {
  width: min(420px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.re-block.selected {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.re-block-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #eab308;
  margin-bottom: 10px;
}

.re-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.re-block-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  font-size: 18px;
}

.re-gift-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-row);
  border: 1px solid var(--border-soft);
  font-size: 13px;
}

.re-block-stub {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
}

.re-block-conditions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.re-cond-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #eab308;
  margin-bottom: 8px;
}

.re-cond-btn { width: 100%; }

.re-bottom {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-soft);
  background: rgba(18, 18, 20, 0.55);
}

.re-right-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 10px;
  font-weight: 700;
  font-size: 15px;
}

.re-cfg {
  flex: 1;
  overflow: auto;
  padding: 8px 16px 20px;
}

.re-cfg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.re-cfg-ident {
  display: flex;
  align-items: center;
  gap: 10px;
}

.re-cfg-sub {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}

.btn-danger-ghost {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.08);
  white-space: nowrap;
}

.btn-danger-ghost:hover {
  background: rgba(239, 68, 68, 0.18);
}

.re-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.re-mode {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.re-mode.active {
  background: var(--bg-row);
  color: var(--text);
}

.gift-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-row);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gift-banner:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.gift-banner-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
  overflow: hidden;
}
.gift-banner-emoji {
  font-size: 22px;
  line-height: 1;
}
.gift-banner-img,
.gift-banner-thumb .gift-banner-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.gift-banner-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.gift-banner-coins {
  font-weight: 700;
  color: #eab308;
  font-size: 13px;
  white-space: nowrap;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.4;
}

.info-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}

.info-bubble-ico {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.4;
}

.info-bubble p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.mic-muted-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 12px;
  width: calc(100% - 24px);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mic-muted-chip[hidden] {
  display: none !important;
}

.mic-muted-chip:hover {
  background: rgba(239, 68, 68, 0.28);
}

.home-integrations-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border-soft);
  background: var(--bg);
}

.home-integrations-note strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.home-integrations-note p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.cond-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cond-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.cond-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
}

.cond-row-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cond-row-label {
  font-size: 12px;
  font-weight: 600;
}

.cond-val {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
}

.dim-coins {
  color: var(--dim);
  font-size: 11px;
  margin-left: 6px;
}

.gift-picker-overlay,
.cond-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gift-picker-overlay[hidden],
.cond-menu-overlay[hidden] {
  display: none !important;
}

.gift-picker {
  width: min(440px, 100%);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.gift-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px;
}

.gift-picker-filters {
  padding: 0 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gift-picker-value-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.gift-picker-grid {
  flex: 1;
  overflow: auto;
  padding: 4px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gift-picker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 10px;
  align-items: center;
}
.gift-pick-tab {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-row);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.gift-pick-tab.active {
  color: var(--text);
  border-color: rgba(255, 45, 85, 0.45);
  background: rgba(255, 45, 85, 0.12);
}
.gift-pick-refresh {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}
.gift-pick-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.gift-pick-item:hover,
.gift-pick-item.active {
  background: var(--bg-row);
  border-color: var(--border-soft);
}

.gift-pick-item.active {
  border-color: rgba(59, 130, 246, 0.45);
}

.gift-pick-emoji {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  font-size: 18px;
}

.gift-pick-name {
  font-size: 13px;
  font-weight: 600;
}

.gift-pick-coins {
  font-size: 12px;
  font-weight: 700;
  color: #eab308;
}

.gift-pick-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.cond-menu {
  width: min(320px, 100%);
  max-height: min(70vh, 560px);
  overflow: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  padding: 10px;
}

.cond-menu-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 10px 10px 6px;
}

.cond-opt {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.cond-opt:hover {
  background: var(--bg-row);
}

@media (max-width: 980px) {
  .rule-editor {
    grid-template-columns: 220px 1fr;
    grid-template-rows: 1fr auto;
  }
  .re-right {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border-soft);
    max-height: 40vh;
  }
}

/* â€”â€” Jouer un son (Tik360-style) â€”â€” */
.ps-source-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  padding: 4px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.ps-source-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.ps-source-tab.active {
  background: var(--bg-row);
  color: var(--text);
}

.ps-pick-banner {
  margin-bottom: 0;
}

.ps-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-row);
}

.ps-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.ps-play-btn:hover {
  background: rgba(59, 130, 246, 0.3);
}

.ps-play-btn.playing {
  background: rgba(59, 130, 246, 0.4);
}

.ps-selected-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ps-selected-meta strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-selected-meta span {
  font-size: 11px;
  color: var(--dim);
}

.ps-volume {
  width: 100%;
  margin-top: 8px;
  accent-color: #3b82f6;
}

.ps-file-name {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.ps-trim {
  position: relative;
  width: 100%;
  height: 72px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #141418;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.ps-trim canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ps-trim-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  margin-left: -5px;
  background: rgba(59, 130, 246, 0.85);
  border-radius: 3px;
  cursor: ew-resize;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.ps-trim-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 18px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 1px;
  opacity: 0.85;
}

.ps-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #f8fafc;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}

.ps-trim-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.ps-mi-picker {
  max-width: 560px;
}

.ps-mi-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding: 4px 2px 8px;
}

.ps-mi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-soft);
  background: var(--bg-row);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.ps-mi-row:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.ps-mi-row strong {
  flex: 1;
  font-size: 13px;
}

.ps-mi-row span {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}

.ps-mi-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* â€”â€” TTS â€”â€” */
.tts-text-banner {
  min-height: 96px;
  resize: vertical;
  line-height: 1.4;
}

.tts-presets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.tts-preset {
  border: 1px solid var(--border-soft);
  background: var(--bg-row);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tts-preset:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.tts-preset.active {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

/* â€”â€” Timer overlay (Tik360-style) â€”â€” */
.tm-mode-tabs {
  grid-template-columns: 1fr 1fr 1fr;
}

.tm-fixed-row,
.tm-gift-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.tm-gift-row {
  grid-template-columns: 1fr 1.1fr auto;
}

.tm-per-coins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tm-coin-ico {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  font-size: 12px;
}

.tm-gift-examples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.tm-gift-example {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-row);
}

.tm-gift-ph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.25), rgba(71, 85, 105, 0.35));
  border: 1px dashed rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
}

.tm-gift-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tm-gift-meta strong {
  font-size: 13px;
}

.tm-gift-meta span {
  font-size: 11px;
  color: var(--muted);
}

.tm-gift-delta {
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
  white-space: nowrap;
}

.tm-formula-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

.tm-formula-preview-label {
  font-size: 12px;
  color: var(--muted);
}

.tm-formula-preview strong {
  font-size: 14px;
  color: #93c5fd;
}

/* â€”â€” RÃ¨gles table Tik360 management â€”â€” */
.rules-toolbar-top {
  margin-bottom: 10px;
}

.rules-search {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.rules-bandeaux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rules-filter-bandeau,
.rules-sort-bandeau {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.rules-chip {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.rules-chip:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.rules-chip.active {
  color: var(--text);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.28);
}

.rules-bulk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rules-bulk[hidden] {
  display: none !important;
}

.rules-toolbar-right {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-danger-outline {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.rules-table .col-check {
  width: 36px;
}

.rules-table .col-actions {
  text-align: right;
  min-width: 180px;
}

.rules-table tbody tr.is-disabled td {
  opacity: 0.55;
}

.rules-table tbody tr.is-selected td {
  background: rgba(0, 212, 255, 0.06);
}

.rules-table tbody tr.dragging {
  opacity: 0.45;
}

.rules-table tbody tr.drag-over td {
  box-shadow: inset 0 2px 0 var(--cyan);
}

.rules-table .rule-drag-handle {
  cursor: grab;
  color: var(--dim);
  margin-right: 6px;
  user-select: none;
}

.rules-table.manual-sort .rule-drag-handle {
  display: inline;
}

.rules-table:not(.manual-sort) .rule-drag-handle {
  display: none;
}

.rule-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.rule-shortcut-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}

.icon-btn.is-on {
  color: var(--live-on);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.icon-btn.is-off {
  color: var(--muted);
}

.rule-row-menu {
  position: fixed;
  z-index: 80;
  min-width: 220px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #16161c;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.rule-row-menu[hidden] {
  display: none !important;
}

.rule-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.rule-menu-item:hover {
  background: var(--bg-hover);
}

.rule-menu-item.danger {
  color: #fca5a5;
}

.rule-shortcut-dialog {
  max-width: 420px;
}

.rule-shortcut-display {
  margin: 14px 0;
  padding: 18px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 12px;
  border: 1px dashed rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.06);
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.rule-shortcut-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* —— Galerie Overlays (scène) —— */
.ov-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ov-search {
  flex: 1 1 240px;
  min-width: 180px;
  max-width: none;
}

.ov-toolbar-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.ov-dropdown {
  position: relative;
}

.ov-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 200px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.ov-dropdown-menu[hidden] {
  display: none !important;
}

.ov-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.ov-dropdown-item:hover {
  background: var(--bg-hover);
}

.ov-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 16px;
}

.ov-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(0,212,255,0.04));
  overflow: hidden;
  min-height: 260px;
}

.ov-card-preview {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,212,255,0.18), transparent 55%),
    rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
  font-size: 42px;
}

.ov-card-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: transparent;
}

.ov-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ov-card-title {
  font-weight: 700;
  font-size: 15px;
}

.ov-card-type {
  font-size: 12px;
  color: var(--muted);
}

.ov-url-bandeau {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.06);
}

.ov-url-text {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #93c5fd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.ov-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.ov-empty {
  color: var(--dim);
  padding: 24px 8px;
}

.ov-modal {
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
}

.ov-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  padding: 0 14px 8px;
  overflow: auto;
  max-height: 42vh;
}

.ov-type-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
}

.ov-type-card:hover {
  background: var(--bg-hover);
}

.ov-type-card.selected {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.1);
}

.ov-type-card .ov-type-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.ov-type-card strong {
  display: block;
  font-size: 13px;
}

.ov-type-card span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.ov-textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
}

.ov-install-files {
  margin: 0 14px;
  padding: 10px;
  max-height: 180px;
  overflow: auto;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--muted);
}

/* —— Règles : en-têtes triables + poignée DnD —— */
.rules-table th.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.rules-table th.sortable-th:hover {
  color: var(--cyan);
}

.rules-table th.sortable-th .th-sort-ind {
  margin-left: 4px;
  font-size: 10px;
  color: var(--muted);
}

.rules-table th.sortable-th.is-sorted .th-sort-ind {
  color: var(--cyan);
}

.rules-table .rule-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: grab;
  color: var(--dim);
  margin-right: 6px;
  user-select: none;
  flex-shrink: 0;
  touch-action: none;
}

.rules-table.manual-sort .rule-drag-handle {
  display: inline-flex;
}

.rules-table.manual-sort .rule-drag-handle:hover {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
}

.rules-table.manual-sort .rule-drag-handle:active {
  cursor: grabbing;
}

.rules-table tbody tr.dragging {
  opacity: 0.4;
}

.rules-table tbody tr.drag-over td {
  box-shadow: inset 0 2px 0 var(--cyan);
}

/* —— Nouveau Overlay wizard —— */
.ov-wizard-overlay {
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ov-wizard {
  width: min(1280px, 100%);
  height: min(92vh, 920px);
  max-height: min(92vh, 920px);
  min-height: min(70vh, 640px);
  margin: 0 auto;
  background: linear-gradient(180deg, #12131a, #0c0d12);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
/* Hard guard: never let flex collapse the catalog pane to 0 */
.ov-wizard-overlay .ov-wizard {
  height: min(92vh, 920px) !important;
  min-height: 640px !important;
}
.ov-wizard-overlay .ov-wiz-body {
  flex: 1 1 auto !important;
  min-height: 360px !important;
  overflow: auto !important;
  display: block !important;
}
.ov-wizard-overlay .ov-wiz-body[hidden] {
  display: none !important;
}
.ov-wizard-overlay .ov-wiz-sections {
  min-height: 320px !important;
  display: block !important;
}
.ov-wiz-bubble {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  flex: 0 0 auto;
  background: radial-gradient(120% 140% at 0% 0%, rgba(0,212,255,0.16), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ov-wiz-bubble-left { display: flex; gap: 10px; align-items: flex-start; }
.ov-wiz-bubble h2 { margin: 0; font-size: 22px; }
.ov-wiz-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; max-width: 520px; }
.ov-wiz-bubble-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ov-wiz-create-row { display: flex; gap: 8px; align-items: center; }
.ov-wiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ov-wiz-chips em { font-style: normal; opacity: 0.7; margin-left: 4px; }
.ov-wiz-body {
  overflow: auto;
  padding: 14px 20px 20px;
  flex: 1 1 auto;
  min-height: 280px;
}
.ov-wiz-sections { min-height: 200px; }
.ov-wiz-body[hidden],
.ov-wiz-chips[hidden],
.ov-wiz-perso[hidden],
.ov-wiz-create-row[hidden] {
  display: none !important;
}
.ov-wiz-body { container-type: inline-size; container-name: ovwiz; }
.ov-wiz-section { margin-bottom: 18px; }
.ov-wiz-section h3 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8ea0c8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ov-wiz-section h3 small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 11.5px;
  color: #a1a1aa;
  margin-left: 8px;
}
/* 5 compact cards per row on desktop (~200×170), 4/3/2 as the wizard narrows */
.ov-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
@container ovwiz (max-width: 1040px) {
  .ov-cat-grid:not(.ov-skin-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container ovwiz (max-width: 780px) {
  .ov-cat-grid:not(.ov-skin-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container ovwiz (max-width: 520px) {
  .ov-cat-grid:not(.ov-skin-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .ov-cat-grid:not(.ov-skin-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ov-cat-grid:not(.ov-skin-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ov-cat-grid:not(.ov-skin-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ov-cat-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  padding: 8px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.ov-cat-card:hover, .ov-cat-card.selected {
  border-color: rgba(0,212,255,0.45);
  background: rgba(0,212,255,0.08);
}
.ov-cat-preview {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #243149, #10131c 70%);
  position: relative;
}
.ov-cat-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; }
.ov-cat-meta strong { font-size: 12px; }
.ov-skin-bubble {
  min-width: 22px; height: 22px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: rgba(0,212,255,0.18); color: #9fe7ff; font-size: 11px; font-weight: 700;
}
.ov-live-preview { width: 100%; height: 100%; position: relative; }
.ov-prev-fontaine .ov-f-item {
  position: absolute; width: 28%; left: 18%; bottom: 18%;
  animation: ovFloatUp 2.8s ease-in-out infinite;
}
.ov-prev-fontaine .ov-f-item.delay { left: 48%; animation-delay: 0.5s; }
.ov-prev-fontaine .ov-f-item.delay2 { left: 68%; animation-delay: 1s; }
.ov-prev-fontaine .ov-f-bubble {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 42%, rgba(180,220,255,0.12));
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 -4px 10px rgba(0,40,80,0.18), inset 0 6px 12px rgba(255,255,255,0.35);
}
.ov-prev-fontaine .ov-f-bubble.no-soap {
  background: transparent;
  border: none;
  box-shadow: none;
}
.ov-prev-fontaine .ov-f-bubble.no-soap .ov-f-shine { display: none; }
.ov-prev-fontaine .ov-f-shine {
  position: absolute; inset: 8% 18% auto 12%; height: 28%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
  pointer-events: none;
}
.ov-prev-fontaine .ov-f-bubble img { width: 70%; height: 70%; object-fit: contain; position: relative; z-index: 1; }
.ov-prev-fontaine .ov-f-avatar {
  position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%;
  right: -8%; bottom: -6%; z-index: 3; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  background: #222;
}
.ov-prev-fontaine .ov-f-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ov-prev-fontaine .ov-f-reflect {
  display: block; width: 78%; margin: 4px auto 0; height: 38%;
  border-radius: 50%; transform: scaleY(-1); opacity: 0.32;
  filter: blur(1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.ov-prev-fontaine .ov-f-reflect img { width: 100%; height: 100%; object-fit: contain; opacity: 0.75; }
/* Skin: Classique â€” clear glass soap */
.ov-prev-fontaine.skin-classic .ov-f-bubble.is-soap {
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.6), rgba(200,230,255,0.12) 50%, rgba(120,170,220,0.1));
  border-color: rgba(255,255,255,0.4);
}
/* Skin: Or â€” amber / gold */
.ov-prev-fontaine.skin-or .ov-f-bubble.is-soap {
  background: radial-gradient(circle at 28% 26%, rgba(255,245,200,0.75), rgba(255,196,64,0.28) 45%, rgba(180,110,20,0.22));
  border-color: rgba(255,210,100,0.65);
  box-shadow: inset 0 -4px 10px rgba(120,60,0,0.25), 0 0 14px rgba(255,180,40,0.35);
}
.ov-prev-fontaine.skin-or .ov-f-avatar { border-color: #ffd56a; }
/* Skin: Arc-en-ciel â€” rainbow rim */
.ov-prev-fontaine.skin-rainbow .ov-f-bubble.is-soap {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.55), rgba(255,255,255,0.06) 48%, transparent 70%),
    conic-gradient(from 0deg, #ff0050, #ffd166, #06d6a0, #00f2fe, #9b5de5, #ff0050);
  border: 2px solid transparent;
  box-shadow: 0 0 16px rgba(255,0,128,0.25);
}
.ov-prev-fontaine.skin-rainbow .ov-f-bubble.is-soap img {
  background: rgba(10,14,22,0.35); border-radius: 50%; padding: 6%;
}
/* Skin: NÃ©on â€” cyan/magenta glow */
.ov-prev-fontaine.skin-neon .ov-f-bubble.is-soap {
  background: radial-gradient(circle at 32% 28%, rgba(0,242,254,0.35), rgba(255,0,80,0.18) 55%, rgba(10,10,20,0.4));
  border-color: rgba(0,242,254,0.75);
  box-shadow: 0 0 12px rgba(0,242,254,0.55), 0 0 22px rgba(255,0,80,0.35), inset 0 0 10px rgba(0,242,254,0.25);
}
.ov-prev-fontaine.skin-neon .ov-f-avatar {
  border-color: #00f2fe;
  box-shadow: 0 0 8px rgba(0,242,254,0.6);
}
.ov-prev-hearts .ov-h {
  position: absolute; width: 30%; height: auto; aspect-ratio: 1;
  left: 16%; bottom: 6%;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid; place-items: center;
  animation: ovFloatUp 2.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(180, 0, 60, 0.35));
}
.ov-prev-hearts .ov-h.winged { width: 42%; }
.ov-prev-hearts .ov-heart-svg {
  width: 100%; height: 100%; display: block;
  overflow: visible;
}
.ov-prev-hearts .ov-heart-svg.winged .ov-wing.left {
  transform-origin: 42px 36px;
  animation: ovWingFlapL 0.85s ease-in-out infinite alternate;
}
.ov-prev-hearts .ov-heart-svg.winged .ov-wing.right {
  transform-origin: 58px 36px;
  animation: ovWingFlapR 0.85s ease-in-out infinite alternate;
  animation-delay: 0.1s;
}
.ov-prev-hearts.tint-neon {
  filter: drop-shadow(0 0 10px rgba(255, 45, 214, 0.45));
}
.ov-prev-hearts.tint-rose .ov-h {
  filter: drop-shadow(0 4px 8px rgba(200, 40, 90, 0.4));
}
@keyframes ovWingFlapL {
  from { transform: rotate(0deg); }
  to { transform: rotate(-12deg); }
}
@keyframes ovWingFlapR {
  from { transform: rotate(0deg); }
  to { transform: rotate(12deg); }
}
.ov-prev-hearts .delay { left: 44%; animation-delay: 0.4s; }
.ov-prev-hearts .delay2 { left: 68%; animation-delay: 0.9s; }
@keyframes ovFloatUp {
  0% { transform: translateY(20%) scale(0.85); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-120%) translateX(8px) scale(1); opacity: 0; }
}
.ov-prev-timer { display:grid; place-items:center; height:100%; }
.ov-timer-face {
  font-weight: 800; font-size: 22px; letter-spacing: 0.06em;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(0,212,255,0.35);
  animation: ovPulse 1.6s ease-in-out infinite;
}
@keyframes ovPulse { 50% { transform: scale(1.04); box-shadow: 0 0 18px rgba(0,212,255,0.25); } }
.ov-prev-wheel { display:grid; place-items:center; height:100%; }
.ov-wheel {
  width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(#ff5a5a, #ffd166, #06d6a0, #118ab2, #9b5de5, #ff5a5a);
  animation: ovSpin 4s linear infinite;
  box-shadow: inset 0 0 0 6px rgba(0,0,0,0.25);
}
@keyframes ovSpin { to { transform: rotate(360deg); } }
.ov-prev-bandeau {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 8px 6px;
  box-sizing: border-box;
}
.ov-prev-bandeau .ov-bd-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 28px;
  gap: 0;
  overflow: hidden;
}
.ov-prev-bandeau .ov-bd-live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}
.ov-prev-bandeau .ov-bd-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  animation: ovBdPulse 1.1s ease-in-out infinite;
}
.ov-prev-bandeau .ov-bd-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-width: 0;
}
.ov-prev-bandeau .ov-bd-text {
  white-space: nowrap;
  animation: ovMarquee 7s linear infinite;
  font-size: 11px;
  font-weight: 600;
  padding-left: 8px;
}
@keyframes ovMarquee { from { transform: translateX(35%); } to { transform: translateX(-95%); } }
@keyframes ovBdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
@keyframes ovBdGrad {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Information TV â€” lower-third news ticker */
.ov-prev-bandeau.skin-tv .ov-bd-live {
  background: #e11d48;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  padding-right: 14px;
}
.ov-prev-bandeau.skin-tv .ov-bd-live-dot { background: #fff; }
.ov-prev-bandeau.skin-tv .ov-bd-track {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%);
  border-top: 2px solid #fbbf24;
  border-bottom: 2px solid #fbbf24;
}
.ov-prev-bandeau.skin-tv .ov-bd-text {
  color: #f8fafc;
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 10px;
}

/* Stream nÃ©on */
.ov-prev-bandeau.skin-neon .ov-bd-live {
  background: #050510;
  color: #39ff14;
  border: 1px solid #39ff14;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.55), inset 0 0 8px rgba(57, 255, 20, 0.2);
  border-radius: 4px 0 0 4px;
  text-shadow: 0 0 8px #39ff14;
}
.ov-prev-bandeau.skin-neon .ov-bd-live-dot {
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14;
}
.ov-prev-bandeau.skin-neon .ov-bd-track {
  background: linear-gradient(90deg, #7c3aed, #ec4899, #06b6d4, #7c3aed);
  background-size: 300% 100%;
  animation: ovBdGrad 4s linear infinite;
  border-radius: 0 4px 4px 0;
}
.ov-prev-bandeau.skin-neon .ov-bd-text {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

/* Soft glass */
.ov-prev-bandeau.skin-glass .ov-bd-row {
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
}
.ov-prev-bandeau.skin-glass .ov-bd-live {
  background: linear-gradient(135deg, #f472b6, #fb7185);
  color: #fff;
  border-radius: 999px;
  margin: 3px;
  padding: 0 10px;
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.45);
}
.ov-prev-bandeau.skin-glass .ov-bd-live-dot { background: #fff; }
.ov-prev-bandeau.skin-glass .ov-bd-track {
  background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(186,230,253,0.28), rgba(255,255,255,0.18));
  border: 1px solid rgba(255,255,255,0.28);
  border-left: none;
  border-radius: 0 999px 999px 0;
  margin: 3px 3px 3px 0;
}
.ov-prev-bandeau.skin-glass .ov-bd-text {
  color: #f8fafc;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Sport bold */
.ov-prev-bandeau.skin-sport .ov-bd-live {
  background: #facc15;
  color: #111827;
  font-style: italic;
  transform: skewX(-12deg);
  border: 2px solid #111827;
  box-shadow: 3px 3px 0 #111827;
  margin-right: 4px;
}
.ov-prev-bandeau.skin-sport .ov-bd-live-dot { background: #dc2626; }
.ov-prev-bandeau.skin-sport .ov-bd-track {
  background: #111827;
  border: 2px solid #facc15;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
}
.ov-prev-bandeau.skin-sport .ov-bd-text {
  color: #facc15;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}
.ov-prev-generic { display:grid; place-items:center; height:100%; gap: 6px; }
.ov-gen-orb {
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #7dd3fc, #2563eb 55%, #0f172a);
  animation: ovPulse 2s ease-in-out infinite;
}
.ov-gen-label { font-size: 10px; opacity: 0.75; text-align: center; padding: 0 6px; }
.ov-wiz-perso { padding: 16px 20px 20px; overflow: auto; }
.ov-perso-layout { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 16px; }
.ov-perso-preview-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ov-perso-live {
  aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #243149, #10131c 70%);
  border: 1px solid rgba(255,255,255,0.08);
}
/* Affichage score : preview centrÃ©, skins distincts */
.ov-perso-layout.is-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.ov-perso-layout.is-score .ov-perso-preview-col {
  width: min(460px, 100%);
  order: 0;
}
.ov-perso-layout.is-score .ov-perso-fields {
  width: min(720px, 100%);
}
.ov-perso-layout.is-score .ov-perso-live {
  aspect-ratio: 4 / 3;
  min-height: 260px;
  display: grid;
  place-items: center;
}
.ov-score-skin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.ov-score-skin-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text, #e2e8f0);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.ov-score-skin-btn.active {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.16);
  color: #fff;
}
.ov-score-section {
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.ov-score-section > summary {
  cursor: pointer;
  font-weight: 650;
  margin-bottom: 8px;
}
.ov-score-section .chk { display: flex; margin: 6px 0; }
.ov-score-cond-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 6px;
}
.ov-score-cond-list { display: flex; flex-direction: column; gap: 6px; }
.ov-score-cond-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}
.ov-score-text-part {
  margin: 10px 0 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.12);
}
.ov-score-text-part h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.ov-slider-field { margin: 8px 0; }
.ov-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ov-slider-row input[type="range"] { flex: 1; }
.ov-num-sm { width: 72px !important; }
.ov-unit { font-size: 12px; color: var(--muted); }
.ov-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.35);
  background: var(--swatch, #00d4ff);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.ov-color-overlay { z-index: 80; }
.ov-color-dialog {
  width: min(360px, 94vw);
  background: var(--panel, #151a24);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.ov-color-body { padding: 12px 14px; }
.ov-color-sv {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, hsl(190, 100%, 50%));
  cursor: crosshair;
  touch-action: none;
}
.ov-color-bubble {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #000, 0 2px 8px rgba(0,0,0,0.4);
  transform: translate(-50%, -50%);
  left: 80%;
  top: 20%;
  pointer-events: none;
}
.ov-color-hue {
  width: 100%;
  margin: 12px 0;
  accent-color: #00d4ff;
}
.ov-color-hex-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4px 10px;
}
.ov-hex-hash { opacity: 0.7; font-weight: 700; }
.ov-color-hex-row .input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Live preview â€” Affichage score (5 skins) */
.ov-prev-score {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  box-sizing: border-box;
}
.ov-sc-card {
  --accent: #00d4ff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 78%;
  max-width: 96%;
  padding: 12px 14px;
  color: #fff;
  box-sizing: border-box;
}
.ov-sc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background:
    radial-gradient(circle at 50% 35%, #cbd5e1 0 28%, transparent 29%),
    radial-gradient(circle at 50% 78%, #94a3b8 0 34%, #334155 35%);
  flex-shrink: 0;
}
.ov-sc-body { min-width: 0; flex: 1; }
.ov-sc-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.ov-sc-pseudo, .ov-sc-points, .ov-sc-rank { display: inline-block; line-height: 1.1; }
.ov-sc-next {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--accent);
}
.ov-sc-txt-glow { text-shadow: 0 0 8px currentColor, 0 0 16px currentColor; }
.ov-sc-txt-rainbow {
  background: linear-gradient(90deg, #ff0040, #ffcc00, #00ff66, #00ccff, #cc00ff, #ff0040);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: ovScRainbow 3s linear infinite;
}
@keyframes ovScRainbow {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
.ov-sc-speed { display: none; position: absolute; inset: -6px -14px; pointer-events: none; }
.ov-sc-speed i {
  position: absolute; right: 0; height: 2px; background: rgba(255,255,255,0.5);
}

.ov-prev-score.skin-classic .ov-sc-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.95), rgba(30,41,59,0.9));
  border: 2px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.ov-prev-score.skin-classic .ov-sc-avatar { border-radius: 12px; }

.ov-prev-score.skin-minimal .ov-sc-card {
  background: rgba(248,250,252,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  box-shadow: none;
  padding: 10px 12px;
}
.ov-prev-score.skin-minimal .ov-sc-avatar {
  border-width: 1px;
  border-color: rgba(255,255,255,0.35);
}

.ov-prev-score.skin-contour .ov-sc-card {
  background: transparent;
  border: 3px solid #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 5px var(--accent), 6px 6px 0 rgba(0,0,0,0.35);
}
.ov-prev-score.skin-contour .ov-sc-avatar {
  border-radius: 0;
  border-width: 2px;
  border-color: #fff;
}

.ov-prev-score.skin-manga .ov-sc-card {
  background: #0a0a0a;
  border: 3px solid #fff;
  border-radius: 0;
  clip-path: polygon(0 10%, 8% 0, 100% 0, 100% 90%, 92% 100%, 0 100%);
  box-shadow: 8px 8px 0 #ef4444;
  transform: skewX(-2deg) rotate(var(--tilt, -1deg));
}
.ov-prev-score.skin-manga .ov-sc-speed { display: block; }
.ov-prev-score.skin-manga .ov-sc-pseudo,
.ov-prev-score.skin-manga .ov-sc-points,
.ov-prev-score.skin-manga .ov-sc-rank {
  font-family: Impact, "Arial Black", sans-serif !important;
  text-transform: uppercase;
}
.ov-prev-score.skin-manga .ov-sc-avatar {
  border-radius: 0;
  border: 2px solid #fff;
}

.ov-prev-score.skin-sticker .ov-sc-card {
  background: #fff;
  color: #0f172a;
  border: 2px dashed #0f172a;
  border-radius: 16px;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px #0f172a, 10px 12px 0 rgba(15,23,42,0.18);
  transform: rotate(var(--tilt, -2deg));
}
.ov-prev-score.skin-sticker .ov-sc-next { color: #334155; }
.ov-prev-score.skin-sticker .ov-sc-avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0f172a;
}
.ov-prev-score.anim-on .ov-sc-card { animation: ovScPop 0.55s ease; }
@keyframes ovScPop {
  0% { transform: scale(0.92) rotate(var(--tilt, 0deg)); opacity: 0.35; }
  70% { transform: scale(1.03) rotate(var(--tilt, 0deg)); }
  100% { transform: scale(1) rotate(var(--tilt, 0deg)); opacity: 1; }
}

/* Live preview â€” Carte membre (4 skins distincts) */
.ov-prev-carte {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  box-sizing: border-box;
}
.ov-cm-card {
  --accent: #a78bfa;
  --card-bg: #1e1b4b;
  --tilt: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72%;
  max-width: 94%;
  padding: 14px 16px;
  color: #fff;
  box-sizing: border-box;
  transform: rotate(var(--tilt));
}
.ov-cm-top {
  position: absolute;
  top: -8px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #0f172a;
}
.ov-cm-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background:
    radial-gradient(circle at 50% 35%, #cbd5e1 0 28%, transparent 29%),
    radial-gradient(circle at 50% 78%, #94a3b8 0 34%, #334155 35%);
  flex-shrink: 0;
}
.ov-cm-pseudo { display: inline-block; line-height: 1.1; text-align: center; }
.ov-cm-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: 100%;
}
.ov-cm-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
}
.ov-cm-bubble em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.ov-prev-carte.skin-glass .ov-cm-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.ov-prev-carte.skin-dark .ov-cm-card {
  background: var(--card-bg, #0b1220);
  border: 2px solid #1f2937;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 10px 12px 0 rgba(0,0,0,0.4);
}
.ov-prev-carte.skin-dark .ov-cm-avatar { border-radius: 8px; }
.ov-prev-carte.skin-dark .ov-cm-bubble {
  border-radius: 6px;
  border-color: var(--accent);
  background: rgba(15,23,42,0.85);
}
.ov-prev-carte.skin-gold .ov-cm-card {
  background: linear-gradient(145deg, #3b2a12 0%, #1a1208 55%, #2a1c0c 100%);
  border: 3px solid #f5d78e;
  border-radius: 16px;
  box-shadow: 0 0 0 2px #8b6914, 0 0 22px rgba(245,215,142,0.3), 8px 10px 0 rgba(0,0,0,0.35);
}
.ov-prev-carte.skin-gold .ov-cm-avatar { border-color: #f5d78e; }
.ov-prev-carte.skin-gold .ov-cm-bubble {
  background: rgba(245,215,142,0.12);
  border-color: rgba(245,215,142,0.45);
  color: #fde68a;
}
.ov-prev-carte.skin-gold .ov-cm-top {
  background: linear-gradient(90deg, #f5d78e, #eab308);
  color: #422006;
}
.ov-prev-carte.skin-neon .ov-cm-card {
  background: #050510;
  border: 2px solid var(--accent);
  border-radius: 14px;
  box-shadow:
    0 0 10px var(--accent),
    0 0 22px color-mix(in srgb, var(--accent) 50%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--accent) 16%, transparent);
}
.ov-prev-carte.skin-neon .ov-cm-avatar { box-shadow: 0 0 12px var(--accent); }
.ov-prev-carte.skin-neon .ov-cm-bubble {
  border-color: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent);
  background: rgba(5,5,16,0.85);
}
.ov-prev-carte.anim-on .ov-cm-card { animation: ovCmPop 0.55s ease; }
@keyframes ovCmPop {
  0% { transform: scale(0.9) rotate(var(--tilt, 0deg)); opacity: 0.3; }
  70% { transform: scale(1.04) rotate(var(--tilt, 0deg)); }
  100% { transform: scale(1) rotate(var(--tilt, 0deg)); opacity: 1; }
}
.gift-pick-img, .gift-inline-img, .tm-gift-img, .gift-thumb {
  width: 36px; height: 36px; object-fit: contain; border-radius: 8px;
  background: rgba(255,255,255,0.04); flex-shrink: 0;
}
.badge.gift.gift-trigger-badge,
.re-gift-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge.gift .gift-inline-img {
  width: 22px; height: 22px; border-radius: 6px;
}
.re-gift-chip .gift-inline-img {
  width: 28px; height: 28px;
}
.gift-cell { display: flex; align-items: center; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 820px) {
  .ov-perso-layout { grid-template-columns: 1fr; }
  .ov-perso-layout.is-score { display: flex; }
  .ov-wiz-bubble { flex-direction: column; }
}

/* === AT31 overlays preview === */
.ov-prev-top { min-height:120px; display:grid; place-items:center; padding:12px; }
.ov-tl-card { --accent:#ffd700; --size:1; display:flex; align-items:center; gap:10px; padding:10px 14px; color:#fff; transform:scale(var(--size)); max-width:100%; }
.ov-tl-card.is-float { animation: ovTlBob 2.4s ease-in-out infinite; }
@keyframes ovTlBob { 0%,100%{transform:scale(var(--size)) translateY(0)} 50%{transform:scale(var(--size)) translateY(-6px)} }
.ov-tl-gift-wrap { position:relative; width:52px; height:52px; display:grid; place-items:center; flex-shrink:0; }
.ov-tl-glow { position:absolute; inset:-8px; border-radius:50%; background:radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%); filter:blur(5px); }
.ov-tl-gift { width:48px; height:48px; object-fit:contain; position:relative; z-index:1; }
.ov-tl-gift.is-anime { animation: ovTlGift 2.8s ease-in-out infinite; }
@keyframes ovTlGift { 0%,100%{transform:rotate(-5deg)} 50%{transform:rotate(5deg) scale(1.06)} }
.ov-tl-avatar { width:36px; height:36px; border-radius:50%; border:2px solid var(--accent); background:#334155; flex-shrink:0; }
.ov-tl-body { display:flex; flex-direction:column; gap:2px; min-width:0; }
.ov-tl-bubble { display:inline-flex; padding:2px 8px; border-radius:999px; background:rgba(15,23,42,.72); border:1px solid color-mix(in srgb, var(--accent) 55%, #fff); width:fit-content; }
.ov-prev-top.skin-podium .ov-tl-card, .ov-prev-top.skin-braise .ov-tl-card, .ov-prev-top.skin-split .ov-tl-card {
  background:linear-gradient(145deg,rgba(30,41,59,.92),rgba(15,23,42,.95)); border-radius:14px; border:2px solid var(--accent);
}
.ov-prev-top.skin-flash .ov-tl-card, .ov-prev-top.skin-streak .ov-tl-card, .ov-prev-top.skin-crossfade .ov-tl-card {
  background:radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 30%, transparent), rgba(15,23,42,.9)); border-radius:16px; box-shadow:0 0 18px color-mix(in srgb, var(--accent) 40%, transparent);
}
.ov-prev-top.skin-capsule .ov-tl-card, .ov-prev-top.skin-pulse .ov-tl-card, .ov-prev-top.skin-flip .ov-tl-card {
  background:rgba(15,23,42,.88); border-radius:999px; border:2px solid color-mix(in srgb, var(--accent) 70%, #fff);
}
.ov-prev-top.skin-orbit .ov-tl-card, .ov-prev-top.skin-cascade .ov-tl-card, .ov-prev-top.skin-dual .ov-tl-card {
  background:rgba(2,6,23,.8); border-radius:50% 14px 50% 14px; border:2px dashed var(--accent);
}
.ov-prev-alertc { min-height:130px; display:grid; place-items:center; position:relative; }
.ov-ac-hero { width:64px; height:64px; object-fit:contain; filter:drop-shadow(0 0 12px color-mix(in srgb, var(--accent,#ff4d6d) 50%, transparent)); z-index:2; }
.ov-ac-info { margin-top:8px; padding:8px 12px; border-radius:10px; background:rgba(15,23,42,.8); border:1px solid color-mix(in srgb, var(--accent,#ff4d6d) 50%, #fff); color:#fff; z-index:2; }
.ov-ac-parts { position:absolute; inset:10px; pointer-events:none; }
.ov-ac-parts i { position:absolute; left:50%; top:45%; width:22px; height:22px; background:center/contain no-repeat; animation: ovAcBoom 1.2s ease-out infinite; opacity:.85; }
@keyframes ovAcBoom { 0%{transform:translate(0,0) scale(.4);opacity:1} 100%{transform:translate(var(--dx),var(--dy)) scale(.5);opacity:0} }
.ov-prev-alertf { min-height:110px; display:grid; place-items:center; }
.ov-af-card { --accent:#38bdf8; --card-bg:#0f172a; display:flex; gap:10px; align-items:center; padding:12px 14px; color:#fff; border-radius:14px; max-width:100%; }
.ov-prev-alertf.skin-glass .ov-af-card { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.28); }
.ov-prev-alertf.skin-dark .ov-af-card { background:#0b1220; border-radius:8px; border:1px solid #334155; box-shadow:4px 4px 0 #020617; }
.ov-prev-alertf.skin-gold .ov-af-card { background:linear-gradient(145deg,#3b2f14,#1e1b4b); border:2px solid #f5d78e; }
.ov-prev-alertf.skin-neon .ov-af-card { background:var(--card-bg); border:2px solid var(--accent); box-shadow:0 0 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.ov-af-avatar { width:40px; height:40px; border-radius:50%; border:2px solid var(--accent); background:#334155; }
.ov-af-kind { font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); }
.ov-prev-canon, .ov-prev-feux { min-height:120px; position:relative; overflow:hidden; }
.ov-cn-cannon { position:absolute; left:12px; bottom:16px; width:54px; height:36px; border-radius:10px 22px 10px 10px; background:#1e293b; border:2px solid var(--accent,#fbbf24); }
.ov-cn-shot { position:absolute; left:70px; bottom:28px; width:36px; height:36px; object-fit:contain; animation: ovCnFly 1.8s ease-out infinite; }
@keyframes ovCnFly { 0%{transform:translate(0,0) rotate(0)} 40%{transform:translate(70px,-40px) rotate(40deg)} 70%{transform:translate(120px,-10px) rotate(90deg)} 100%{transform:translate(170px,-80px) rotate(160deg);opacity:0} }
.ov-cn-donor { position:absolute; left:90px; bottom:60px; color:#fff; font-size:12px; }
.ov-fx-burst { position:absolute; left:50%; top:45%; }
.ov-fx-burst i { position:absolute; width:18px; height:18px; background:center/contain no-repeat; animation: ovFxBoom 1.4s ease-out infinite; }
@keyframes ovFxBoom { 0%{transform:translate(0,0) scale(.3);opacity:1} 100%{transform:translate(var(--dx),var(--dy)) scale(.5);opacity:0} }
.ov-fx-donor { position:absolute; left:50%; top:58%; transform:translateX(-50%); color:#fff; font-size:13px; }
.ov-cm-level { font-size:12px; opacity:.9; }
/* === AT33 Classement pièces / Like / alterné === */
.ov-prev-lb {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  color: #fff;
  --delta: #22c55e;
  --gap: 8px;
}
.ov-prev-lb.spacing-serre { --gap: 4px; }
.ov-prev-lb.spacing-normal { --gap: 8px; }
.ov-prev-lb.spacing-aere { --gap: 14px; }
.ov-lb-title {
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.2;
}
.ov-lb-goat-mark::before { content: "🐐 "; }
.ov-lb-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.ov-lb-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  min-height: 46px;
  box-sizing: border-box;
}
.ov-prev-lb.invert .ov-lb-row { flex-direction: row-reverse; }
.ov-prev-lb.invert .ov-lb-main { align-items: flex-end; text-align: right; }
.ov-prev-lb.invert .ov-lb-value-wrap { align-items: flex-end; }
.ov-lb-rank {
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
}
.ov-lb-medal { font-size: 16px; }
.ov-lb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 38%, #cbd5e1 0 38%, transparent 40%),
    radial-gradient(circle at 50% 78%, #94a3b8 0 34%, transparent 36%),
    #334155;
  border: 2px solid #fbbf24;
}
.ov-lb-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ov-lb-pseudo {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-lb-value-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}
.ov-prev-lb.value-newline .ov-lb-value-wrap { align-items: flex-start; }
.ov-lb-delta {
  font-size: 10px;
  font-weight: 700;
  color: var(--delta);
  line-height: 1;
}
.ov-lb-value-line {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ov-lb-icon { width: 14px; height: 14px; }
.ov-lb-crown {
  position: absolute;
  top: -7px;
  left: 30px;
  font-size: 12px;
}
.ov-prev-lb.invert .ov-lb-crown { left: auto; right: 30px; }
.ov-lb-speed {
  display: none;
  position: absolute;
  inset: -4px -10px;
  pointer-events: none;
}
.ov-lb-speed i {
  position: absolute;
  height: 2px;
  background: rgba(255,255,255,0.5);
  right: 0;
}

.ov-prev-lb.skin-classic.frame-bg .ov-lb-row {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
  border: 2px solid #fbbf24;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}
.ov-prev-lb.skin-classic.frame-nobg .ov-lb-row {
  background: transparent;
  border: none;
  box-shadow: none;
}
.ov-prev-lb.skin-classic .ov-lb-avatar { border-radius: 10px; }

.ov-prev-lb.skin-contour .ov-lb-row {
  background: transparent;
  border: 3px solid #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 5px #fbbf24, 5px 5px 0 rgba(0,0,0,0.35);
}
.ov-prev-lb.skin-contour .ov-lb-avatar {
  border-radius: 0;
  border-width: 3px;
  border-color: #fff;
  box-shadow: 0 0 0 2px #0f172a;
}

.ov-prev-lb.skin-goat .ov-lb-row {
  background: linear-gradient(120deg, #1a1205 0%, #3b2a0a 45%, #1a1205 100%);
  border: 2px solid #f5d76e;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(245, 215, 110, 0.35), inset 0 0 10px rgba(245, 215, 110, 0.12);
}
.ov-prev-lb.skin-goat .ov-lb-row.rank-1 {
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.5), inset 0 0 14px rgba(255, 215, 0, 0.18);
  border-color: #ffe566;
}
.ov-prev-lb.skin-goat .ov-lb-avatar { border-color: #f5d76e; }

.ov-prev-lb.skin-manga .ov-lb-row {
  background: #0a0a0a;
  border: 3px solid #fff;
  border-radius: 0;
  clip-path: polygon(0 10%, 5% 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
  box-shadow: 7px 7px 0 #ef4444;
  transform: skewX(-1.5deg);
}
.ov-prev-lb.skin-manga .ov-lb-speed { display: block; }
.ov-prev-lb.skin-manga .ov-lb-pseudo,
.ov-prev-lb.skin-manga .ov-lb-value,
.ov-prev-lb.skin-manga .ov-lb-title {
  font-family: Impact, "Arial Black", sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ov-prev-lb.skin-manga .ov-lb-avatar {
  border-radius: 0;
  border: 3px solid #fff;
  transform: skewX(1.5deg);
}

.ov-prev-lb.skin-sticker .ov-lb-row {
  background: #fff;
  color: #0f172a;
  border: 3px dashed #0f172a;
  border-radius: 14px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #0f172a, 7px 8px 0 rgba(15, 23, 42, 0.16);
  transform: rotate(-0.5deg);
}
.ov-prev-lb.skin-sticker .ov-lb-row:nth-child(even) { transform: rotate(0.4deg); }
.ov-prev-lb.skin-sticker .ov-lb-delta { color: #16a34a; }
.ov-prev-lb.skin-sticker .ov-lb-avatar {
  border: 3px solid #fbbf24;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0f172a;
}

/* Gallery card compact */
.ov-cat-preview .ov-prev-lb {
  transform: scale(0.72);
  transform-origin: top center;
  max-width: 260px;
}
.ov-cat-preview .ov-lb-row { min-height: 34px; padding: 4px 6px; }
.ov-cat-preview .ov-lb-avatar { width: 24px; height: 24px; }
/* === AT34 Classement TikTok === */
.ov-prev-tt {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  color: #fff;
  --tt-gap: 8px;
  --tt-trophy: #fbbf24;
  --tt-frame-bg: #111827;
  --tt-frame-border: #334155;
  --tt-frame-radius: 16px;
  --tt-row-bg: #1e293b;
  --tt-row-border: #334155;
  --tt-row-radius: 12px;
  box-sizing: border-box;
}
.ov-prev-tt.spacing-serre { --tt-gap: 4px; }
.ov-prev-tt.spacing-normal { --tt-gap: 8px; }
.ov-prev-tt.spacing-aere { --tt-gap: 14px; }
.ov-prev-tt.has-frame {
  background: var(--tt-frame-bg);
  border: 1px solid var(--tt-frame-border);
  border-radius: var(--tt-frame-radius);
  padding: 12px;
}
.ov-tt-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ov-tt-cup { font-size: 18px; line-height: 1; filter: drop-shadow(0 0 4px var(--tt-trophy)); }
.ov-tt-title { line-height: 1.2; text-align: center; }
.ov-tt-rewarded {
  text-align: center;
  margin-bottom: 8px;
  opacity: 0.95;
}
.ov-tt-list {
  display: flex;
  flex-direction: column;
  gap: var(--tt-gap);
}
.ov-tt-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  min-height: 46px;
  box-sizing: border-box;
  background: var(--tt-row-bg);
  border: 1px solid var(--tt-row-border);
  border-radius: var(--tt-row-radius);
}
.ov-prev-tt.no-frame .ov-tt-row {
  background: transparent;
  border-color: transparent;
}
.ov-prev-tt.invert .ov-tt-row { flex-direction: row-reverse; }
.ov-prev-tt.invert .ov-tt-main { align-items: flex-end; text-align: right; }
.ov-prev-tt.invert .ov-tt-value-wrap { align-items: flex-end; }
.ov-tt-row.is-self {
  outline: 2px solid #22d3ee;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}
.ov-tt-row.overtake-anim {
  animation: ovTtOvertake 0.7s ease;
}
@keyframes ovTtOvertake {
  0% { transform: translateY(6px); opacity: 0.55; }
  60% { transform: translateY(-2px); opacity: 1; }
  100% { transform: none; }
}
.ov-tt-rank {
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
}
.ov-tt-medal { font-size: 16px; }
.ov-tt-crown {
  position: absolute;
  top: -8px;
  left: 18px;
  font-size: 14px;
  z-index: 2;
}
.ov-prev-tt.invert .ov-tt-crown { left: auto; right: 18px; }
.ov-tt-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 38%, #cbd5e1 0 38%, transparent 40%),
    radial-gradient(circle at 50% 78%, #94a3b8 0 34%, transparent 36%),
    #334155;
  border: 2px solid var(--tt-trophy);
  position: relative;
}
.ov-tt-live {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #ef4444;
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.2;
}
.ov-tt-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ov-tt-pseudo {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-tt-handle {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-tt-value-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}
.ov-prev-tt.value-newline .ov-tt-value-wrap { align-items: flex-start; }
.ov-tt-value-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ov-tt-trophy-ico {
  width: 14px;
  height: 14px;
  display: inline-block;
}
.ov-tt-gap-line {
  margin-top: 4px;
  opacity: 0.9;
}
.ov-tt-pin {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}
.ov-tt-end {
  margin-top: 8px;
  text-align: center;
  opacity: 0.9;
}

/* Skins */
.ov-prev-tt.skin-tiktok .ov-tt-row {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.18), rgba(37, 244, 238, 0.12));
  border-color: rgba(254, 44, 85, 0.35);
}
.ov-prev-tt.skin-tiktok.has-frame {
  background: #0a0a0f;
  border-color: #fe2c55;
  box-shadow: 0 0 0 1px rgba(37, 244, 238, 0.25);
}
.ov-prev-tt.skin-dark .ov-tt-row {
  background: #0b1220;
  border-color: #1f2937;
}
.ov-prev-tt.skin-dark.has-frame {
  background: #020617;
  border-color: #1e293b;
}
.ov-prev-tt.skin-classic .ov-tt-row {
  background: var(--tt-row-bg);
  border-color: var(--tt-row-border);
}
.ov-prev-tt.skin-neon .ov-tt-row {
  background: rgba(15, 23, 42, 0.85);
  border-color: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.25);
}
.ov-prev-tt.skin-neon.has-frame {
  border-color: #a78bfa;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.35);
}
.ov-prev-tt.skin-neon .ov-tt-live {
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}
/* === AT35 Top de la semaine / mois / alterné === */
.ov-prev-tp {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  color: #fff;
  --accent: #fbbf24;
  --gap: 8px;
}
.ov-prev-tp.spacing-serre { --gap: 4px; }
.ov-prev-tp.spacing-normal { --gap: 8px; }
.ov-prev-tp.spacing-aere { --gap: 14px; }
.ov-tp-title {
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.2;
}
.ov-tp-countdown {
  text-align: center;
  margin-bottom: 8px;
  opacity: 0.92;
  line-height: 1.2;
}
.ov-tp-bubble {
  display: inline-block;
  margin: 0 auto 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, #0f172a);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  width: fit-content;
  max-width: 100%;
}
.ov-prev-tp .ov-tp-bubble { display: block; }
.ov-tp-empty {
  margin-top: 8px;
  opacity: 0.85;
  font-weight: 600;
}
.ov-tp-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.ov-tp-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  min-height: 46px;
  box-sizing: border-box;
}
.ov-tp-rank {
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
}
.ov-tp-medal { font-size: 16px; }
.ov-tp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 38%, #cbd5e1 0 38%, transparent 40%),
    radial-gradient(circle at 50% 78%, #94a3b8 0 34%, transparent 36%),
    #334155;
  border: 2px solid var(--accent);
}
.ov-tp-main {
  flex: 1;
  min-width: 0;
}
.ov-tp-pseudo {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-tp-value-line {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.ov-tp-icon { width: 14px; height: 14px; }

/* 1 Classique — couronne + plaque or pour le n°1 */
.ov-prev-tp.skin-classic.frame-bar .ov-tp-row {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.ov-prev-tp.skin-classic .ov-tp-row.rank-1 {
  background: linear-gradient(90deg, #3b2a08, #1a1206);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 18px rgba(251,191,36,.4);
  transform: scale(1.04);
}
.ov-prev-tp.skin-classic .ov-tp-title {
  font-family: "Luckiest Guy", "Lilita One", sans-serif;
  letter-spacing: .06em;
  text-shadow: 0 3px 0 #7c2d12;
}
.ov-prev-tp.skin-classic.frame-nobg .ov-tp-row { background: transparent; border: none; box-shadow: none; }
.ov-prev-tp.skin-classic .ov-tp-avatar { border-radius: 12px; }

/* 2 Contour — bande dessinée, fond blanc, ombre dure */
.ov-prev-tp.skin-contour .ov-tp-row {
  background: #fff;
  color: #111;
  border: 3px solid #111;
  border-radius: 0;
  box-shadow: 4px 4px 0 #000;
}
.ov-prev-tp.skin-contour .ov-tp-row.rank-1 { background: #facc15; }
.ov-prev-tp.skin-contour .ov-tp-rank { background:#111; color:#fff; border-radius:0; }
.ov-prev-tp.skin-contour .ov-tp-title {
  font-family: "Luckiest Guy", sans-serif;
  color: #fff;
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #000;
}
.ov-prev-tp.skin-contour .ov-tp-avatar { border-radius: 0; border: 3px solid #111; }
.ov-prev-tp.skin-contour .ov-tp-countdown { color:#111; background:#fff; border:2px solid #111; padding:1px 8px; }

/* 3 Manga Impact — panneaux inclinés, burst n°1 */
.ov-prev-tp.skin-manga { background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,.06) 14px 15px); }
.ov-prev-tp.skin-manga .ov-tp-row {
  background: #fff;
  color: #111;
  border: 3px solid #111;
  box-shadow: 5px 5px 0 #111;
  transform: skewX(-6deg);
}
.ov-prev-tp.skin-manga .ov-tp-row > * { transform: skewX(6deg); }
.ov-prev-tp.skin-manga .ov-tp-row.rank-1 { background: #111; color: #facc15; }
.ov-prev-tp.skin-manga .ov-tp-title {
  font-family: Impact, "Arial Black", sans-serif;
  background: #111;
  color: #facc15;
  display: inline-block;
  padding: 2px 10px;
  transform: skewX(-10deg);
  text-transform: uppercase;
}
.ov-prev-tp.skin-manga .ov-tp-avatar { border: 3px solid #111; border-radius: 4px; }

/* 4 Sticker — bulles inclinées, titres en pastilles */
.ov-prev-tp.skin-sticker .ov-tp-row {
  background: #fff;
  color: #111;
  border: 4px solid #fff;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,.35), 3px 3px 0 #0004;
  transform: rotate(-2deg);
}
.ov-prev-tp.skin-sticker .ov-tp-row:nth-child(even) { transform: rotate(1.6deg); }
.ov-prev-tp.skin-sticker .ov-tp-row.rank-1 { background: #ff8fab; color: #fff; transform: rotate(2deg) scale(1.03); }
.ov-prev-tp.skin-sticker .ov-tp-title {
  background: #fff; color: #e11d48; border-radius: 14px; display: inline-block;
  padding: 4px 12px; transform: rotate(-3deg); box-shadow: 2px 3px 0 #0004;
  font-family: "Lilita One", sans-serif;
}
.ov-prev-tp.skin-sticker .ov-tp-countdown {
  background: #22d3ee; color: #083344; border-radius: 999px; padding: 2px 8px;
  display: inline-block; transform: rotate(2deg);
}
.ov-prev-tp.skin-sticker .ov-tp-avatar { border: 3px solid #fff; box-shadow: 0 0 0 2px #111; }

/* Top Alterné : 4 cartes vraiment distinctes */
.ov-prev-top.skin-split .ov-tl-card {
  background: linear-gradient(90deg, #3b0764 0 50%, #0f172a 50% 100%);
  border-radius: 8px; border: 3px solid #e9d5ff; box-shadow: 6px 6px 0 #3b0764;
}
.ov-prev-top.skin-crossfade .ov-tl-card {
  background: radial-gradient(circle at 30% 20%, #c4b5fd, #1e1b4b 60%);
  border-radius: 50%; width: 200px; height: 200px; flex-direction: column; justify-content: center; text-align: center;
  border: 4px solid #ddd6fe; box-shadow: 0 0 28px rgba(167,139,250,.55);
}
.ov-prev-top.skin-flip .ov-tl-card {
  background: linear-gradient(180deg, #fef3c7, #b45309);
  color: #111; border-radius: 12px 12px 6px 6px; border: 3px solid #78350f;
  box-shadow: 0 10px 0 #78350f; transform: perspective(400px) rotateY(-12deg);
}
.ov-prev-top.skin-flip .ov-tl-label { color: #7c2d12 !important; }
.ov-prev-top.skin-dual .ov-tl-card {
  background: transparent; border: 0; box-shadow: none; gap: 14px; padding: 0;
}
.ov-prev-top.skin-dual .ov-tl-card::before,
.ov-prev-top.skin-dual .ov-tl-card::after { content: none; }
.ov-prev-top.skin-dual .ov-tl-body {
  background: #0f172a; border: 2px solid #22d3ee; border-radius: 16px; padding: 8px 12px;
}
.ov-prev-top.skin-dual .ov-tl-gift-wrap {
  background: #1e1b4b; border: 2px solid #a78bfa; border-radius: 16px; width: 64px; height: 64px;
}

/* AT-36 : les champs masqués de la personnalisation restent masqués (.field force display:flex) */
.ov-perso-fields .field[hidden], .ov-perso-fields .chk[hidden], .ov-perso-fields [hidden] { display: none !important; }

/* ===== Galerie overlays (v2) : cartes sombres, titre + description au-dessus de l'aperçu ===== */
.ov-cat-grid.ov-skin-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ov-cat-card.ov-skin-card, .ov-cat-card.ov-type-card { padding: 0; overflow: hidden; background: #0b0b0e; border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ov-cat-card.ov-skin-card:hover, .ov-cat-card.ov-type-card:hover { border-color: rgba(255,255,255,0.28); background: #0e0e12; transform: translateY(-1px); }
.ov-cat-card.ov-skin-card.selected { border-color: rgba(255,255,255,0.75); box-shadow: 0 0 0 1px rgba(255,255,255,0.4); background: #0e0e12; }
.ov-skin-head { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 9px; border-bottom: 1px solid rgba(255,255,255,0.08); min-width: 0; }
.ov-skin-head strong { font-size: 13px; font-weight: 700; color: #f4f4f6; }
.ov-skin-head span { font-size: 10.5px; color: #9a9aa6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-skin-card .ov-cat-preview { aspect-ratio: 1.12; border-radius: 0; background: radial-gradient(circle at 50% 0%, #17171c, #050506 70%); }
.ov-type-card .ov-cat-preview {
  aspect-ratio: auto;
  height: 134px;
  border-radius: 0;
  background-color: #17171b;
  background-image:
    linear-gradient(45deg, #1f1f24 25%, transparent 25%),
    linear-gradient(-45deg, #1f1f24 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1f1f24 75%),
    linear-gradient(-45deg, transparent 75%, #1f1f24 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.ov-type-card .ov-cat-meta { margin: 0; padding: 7px 9px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); min-height: 32px; gap: 6px; }
.ov-type-card .ov-cat-meta strong { font-size: 12px; font-weight: 700; color: #f4f4f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-type-card .ov-skin-bubble { flex: none; height: 18px; padding: 0 7px; font-size: 10px; background: rgba(255,255,255,0.06); color: #d4d4dc; border: 1px solid rgba(255,255,255,0.18); font-weight: 600; }
.ov-wiz-hint { color: #c9c9d2; font-size: 13px; white-space: nowrap; }
.ov-wiz-hint[hidden] { display: none !important; }
.mtv-chip.is-soon { opacity: .6; }
.mtv-soon { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fbbf24; margin-left: 4px; }

/* —— Roue de la Fortune : wizard + modal éditeur —— */
.ov-roue-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ov-roue-hint { color: #9a9daa; font-size: 12px; }
.ov-roue-live { width: 100%; height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ov-roue-live-in { transform: scale(.85); transform-origin: center; }
.mt-roue-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); display: flex; padding: 18px; }
.mt-roue-modal[hidden] { display: none; }
.mt-roue-modal iframe { flex: 1; border: 1px solid #26282f; border-radius: 14px; background: #0c0c0e; }

/* —— Statistiques : Analytics + Top spectateurs —— */
.mts-page { display: grid; gap: 16px; max-width: 1100px; }
.mts-status { display: flex; gap: 14px; align-items: center; color: var(--muted, #9a9daa); font-size: 13px; }
.mts-status.on { color: #4ade80; }
.mts-status span { color: var(--muted, #9a9daa); }
.mts-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.mts-kpi { display: flex; gap: 12px; align-items: center; background: var(--panel, #141519); border: 1px solid var(--border, #24262d); border-radius: 14px; padding: 14px; }
.mts-kico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.05); display: grid; place-items: center; font-size: 18px; }
.mts-kval { font-size: 22px; font-weight: 800; }
.mts-klab { font-size: 12px; color: var(--muted, #9a9daa); }
.mts-card { background: var(--panel, #141519); border: 1px solid var(--border, #24262d); border-radius: 14px; padding: 16px; overflow: auto; }
.mts-card h3 { margin: 0 0 12px; font-size: 15px; }
.mts-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mts-card-h h3 { margin: 0; }
.mts-tabs { display: inline-flex; gap: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--border, #24262d); border-radius: 10px; padding: 3px; }
.mts-tabs button { background: none; border: 0; color: var(--muted, #9a9daa); font: 600 12px inherit; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.mts-tabs button.on { background: #f3f4f6; color: #111; }
.mts-chart { width: 100%; height: 190px; margin-top: 10px; }
.mts-chart .bars rect { fill: #ff2d6f; }
.mts-chart .ax { stroke: rgba(255,255,255,.12); }
.mts-chart .lb { fill: #8b8e99; font-size: 11px; }
.mts-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .mts-grid2 { grid-template-columns: 1fr; } }
.mts-list { display: grid; gap: 6px; }
.mts-li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.03); }
.mts-gimg { width: 30px; height: 30px; object-fit: contain; display: grid; place-items: center; }
.mts-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.mts-num { font-weight: 800; font-size: 13px; }
.mts-rank { width: 22px; height: 22px; border-radius: 50%; background: #2a2c34; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.mts-rank.r1 { background: #f7c623; color: #111; } .mts-rank.r2 { background: #cbd5e1; color: #111; } .mts-rank.r3 { background: #d97706; color: #111; }
.mts-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #2a2c34; display: inline-grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; vertical-align: middle; }
.mts-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mts-table th { text-align: left; color: var(--muted, #9a9daa); font-weight: 600; font-size: 12px; padding: 8px; border-bottom: 1px solid var(--border, #24262d); white-space: nowrap; }
.mts-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.04); white-space: nowrap; }
.mts-u { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mts-empty { color: var(--muted, #9a9daa); font-size: 13px; padding: 18px 4px; }
.mts-vbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mts-search { max-width: 280px; }
.mts-podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 18px 0; }
.mts-pod { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 130px; }
.mts-pod .mts-av { width: 48px; height: 48px; font-size: 18px; }
.mts-pname { font-weight: 700; font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mts-pval { color: var(--muted, #9a9daa); font-size: 12px; font-weight: 700; }
.mts-pstep { width: 100%; border-radius: 10px 10px 0 0; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #111; }
.mts-pod.p1 .mts-pstep { height: 74px; background: linear-gradient(#ffe27a, #f7c623); }
.mts-pod.p2 .mts-pstep { height: 54px; background: linear-gradient(#e2e8f0, #cbd5e1); }
.mts-pod.p3 .mts-pstep { height: 40px; background: linear-gradient(#f59e0b, #d97706); }
.mts-foot { color: var(--muted, #9a9daa); font-size: 12px; margin-top: 8px; }

.ov-car-live { width: 100%; height: 100%; min-height: 240px; min-width: 0; overflow: hidden; }


/* MoonTik theme: section / header icons */
.page-head .ico,
.view-head .ico,
.sec-h .ico,
.section-title .ico,
h2 .ico, h3 .ico,
.p2-h .ico,
.card-h .ico {
  color: var(--accent);
}

/* Alerte follow / abonné : 4 skins réellement distincts (Classique, Contour, Manga, Sticker) */
.ov-prev-alertf { min-height: 120px; display: grid; place-items: center; padding: 8px; box-sizing: border-box; }
.ov-af-classique { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ov-af-classique-av { width: 52px; height: 52px; border-radius: 50%; background: var(--accent, #38bdf8); color: #fff; display: grid; place-items: center; font: 800 22px/1 "Segoe UI", sans-serif; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent, #38bdf8) 45%, transparent); border: 3px solid color-mix(in srgb, var(--accent, #38bdf8) 70%, #fff); }
.ov-af-classique-kind { font: 800 9px/1 "Segoe UI", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, #38bdf8); }
.ov-af-classique-msg { font: 800 13px/1.15 "Segoe UI", sans-serif; color: #ffd23f; text-shadow: 0 2px 0 #7c2d12; }
.ov-af-contour { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.ov-af-contour-av { width: 50px; height: 50px; border-radius: 50%; background: var(--accent, #38bdf8); color: #fff; display: grid; place-items: center; font: 900 20px/1 "Luckiest Guy", "Segoe UI", sans-serif; box-shadow: 0 0 0 4px #fff, 0 0 0 7px #111, 4px 4px 0 #111; }
.ov-af-contour-kind, .ov-af-contour-msg { font-family: "Luckiest Guy", "Segoe UI", sans-serif; text-transform: uppercase; color: #ffd23f; -webkit-text-stroke: 3px #111; paint-order: stroke fill; text-shadow: 3px 3px 0 #111; }
.ov-af-contour-kind { font-size: 11px; letter-spacing: .08em; }
.ov-af-contour-msg { font-size: 14px; }
.ov-af-manga { background: #f4efe2; border: 3px solid #111; border-radius: 4px; box-shadow: 5px 5px 0 #111; padding: 8px 10px; display: flex; align-items: center; gap: 8px; transform: rotate(-2.4deg); position: relative; overflow: hidden; max-width: 92%; }
.ov-af-manga::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,.06) 14px 15px); pointer-events: none; }
.ov-af-manga-av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent, #fb7185); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; z-index: 1; }
.ov-af-manga-tag { background: #111; color: #fff; font: 800 8px/1 "Segoe UI", sans-serif; letter-spacing: .12em; padding: 2px 6px; display: inline-block; z-index: 1; position: relative; }
.ov-af-manga-msg { font: 900 13px/1.1 Impact, "Arial Black", sans-serif; color: #e11d48; text-transform: uppercase; text-shadow: 2px 2px 0 #111; z-index: 1; position: relative; margin-top: 3px; }
.ov-af-sticker { display: flex; align-items: center; gap: 8px; background: transparent; }
.ov-af-sticker-av { width: 56px; height: 56px; border-radius: 50%; background: #ff8fab; color: #fff; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.4); display: grid; place-items: center; font: 800 24px/1 "Lilita One", "Segoe UI", sans-serif; flex: none; }
.ov-af-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ov-af-b { display: inline-block; border: 3px solid #fff; border-radius: 14px; padding: 3px 10px; font: 800 12px/1.1 "Lilita One", "Segoe UI", sans-serif; box-shadow: 2px 3px 0 rgba(0,0,0,.28); }
.ov-af-b-name { background: #fff; color: #111; transform: rotate(-8deg); }
.ov-af-b-thanks { background: #22d3ee; color: #fff; transform: rotate(3deg); }
.ov-prev-alertf[data-alert-kind="abonne"] .ov-af-sticker-av { background: #fbbf24; color: #3b1d00; }
.ov-prev-alertf[data-alert-kind="abonne"] .ov-af-b-thanks { background: #a78bfa; }

/* —— Design switcher (t68) : galerie de modèles —— */
.ov-des-bar,
#ovScoreSkinBar.ov-des-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0 0 10px;
}
.ov-des-card {
  width: 112px;
  padding: 0 0 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 8, 16, 0.5);
  color: var(--text, #e2e8f0);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, transform .15s, background .15s;
}
.ov-des-card:hover { border-color: rgba(0,212,255,.5); transform: translateY(-1px); }
.ov-des-card.active {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0,212,255,.3);
}
.ov-des-mini {
  display: block;
  position: relative;
  height: 58px;
  margin: 4px 4px 6px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, #0a0a14) 0%, #0d0d18 100%);
}
.ov-des-mini-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--c) 55%, transparent), transparent 50%),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(255,255,255,.04) 6px, rgba(255,255,255,.04) 7px);
}
.ov-des-mini-icon {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  font-size: 18px; filter: drop-shadow(0 0 6px var(--c));
}
.ov-des-mini-chip {
  position: absolute; left: 6px; right: 6px; bottom: 5px;
  font-size: 8px; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-des-name {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* compact switcher used on module / game pages */
.mt-des-switch {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px;
}
.mt-des-switch .ov-des-card { width: 100px; }
