/* MoonTik — Stats du live. Chaque design a sa propre silhouette. */
.sbx { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  padding: 8px; box-sizing: border-box; transform: scale(calc(var(--sz, 100) / 100)); transform-origin: center center;
  font-family: "Segoe UI", system-ui, sans-serif; color: #fff8e8; }
.sbx em { font-style: normal; }
.sbx b { font-variant-numeric: tabular-nums; }
.sbx-ico { width: 16px; height: 16px; display: inline-grid; place-items: center; color: #f6d98a; }
.sbx-ico svg { width: 14px; height: 14px; }
.sbx-sub { display: block; font-size: 10px; letter-spacing: .04em; color: #d6b56a; font-weight: 700; }

.sbx-lune .sbx-rail { display: flex; align-items: center; gap: 0; background: linear-gradient(180deg, #221a33, #0e0b14);
  border: 1px solid rgba(246, 217, 138, .5); border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.sbx-lune.vert .sbx-rail { flex-direction: column; border-radius: 28px; padding: 10px 16px; align-items: stretch; }
.sbx-mark { width: 44px; height: 44px; border-radius: 50%; flex: none; margin-right: 4px;
  background: radial-gradient(circle at 32% 32%, #fff6d2 0 18%, #f0c14b 19% 46%, transparent 47%),
    radial-gradient(circle at 62% 58%, #1a1024 0 46%, #c9892a 47% 70%, #5a3412 71%);
  box-shadow: 0 0 0 2px rgba(246, 217, 138, .35); }
.sbx-lune.vert .sbx-mark { margin: 0 auto 8px; }
.sbx-lune .sbx-cell { min-width: 78px; padding: 4px 14px; text-align: center; border-left: 1px solid rgba(246, 217, 138, .28); }
.sbx-lune.vert .sbx-cell { border-left: 0; border-top: 1px solid rgba(246, 217, 138, .28); padding: 8px 4px; }
.sbx-lune .sbx-cell em { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #cbb892; }
.sbx-lune .sbx-cell b { display: block; font-size: 22px; font-weight: 800; line-height: 1.05; }
.sbx-lune.mode-car .sbx-cell b { font-size: 40px; }

.sbx-orbite { gap: 16px; }
.sbx-orbite.vert { flex-direction: column; }
.sbx-ring { width: 88px; text-align: center; }
.sbx-ring .dial { width: 74px; height: 74px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(12, 8, 20, .92) 0 56%, transparent 57%),
    conic-gradient(from 200deg, var(--c, #f6d98a), #3a2c14 62%, var(--c, #f6d98a));
  box-shadow: 0 0 0 1px rgba(246, 217, 138, .28), 0 8px 18px rgba(0,0,0,.35); }
.sbx-ring b { font-size: 16px; font-weight: 800; }
.sbx-ring em { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #cbb892; }
.sbx-orbite.mode-car .sbx-ring { width: 160px; }
.sbx-orbite.mode-car .dial { width: 132px; height: 132px; }
.sbx-orbite.mode-car b { font-size: 32px; }

.sbx-comete { width: 100%; }
.sbx-strip { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; max-width: 100%;
  background: linear-gradient(90deg, rgba(90, 40, 12, .9), rgba(14, 10, 22, .88) 28%);
  border-radius: 8px; padding: 7px 14px; border-bottom: 2px solid #f0c14b; }
.sbx-comete.vert .sbx-strip { flex-direction: column; align-items: flex-start; border-radius: 12px; border-bottom: 0; border-left: 3px solid #f0c14b; }
.sbx-bit { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.sbx-bit b { font-size: 18px; font-weight: 800; }
.sbx-bit em { font-size: 11px; color: #e7d7b0; letter-spacing: .04em; }
.sbx-sep { color: #f0c14b; opacity: .7; }
.sbx-comete.mode-car .sbx-bit b { font-size: 34px; }

.sbx-phenix { width: min(760px, 100%); }
.sbx-plate { display: grid; grid-template-columns: minmax(140px, .8fr) 1.2fr; width: 100%;
  background: radial-gradient(120% 80% at 0% 50%, rgba(180, 60, 20, .45), transparent 55%), linear-gradient(180deg, #1a100c, #0c0908);
  border: 1px solid rgba(240, 140, 60, .4); border-radius: 18px; overflow: hidden; }
.sbx-phenix.vert .sbx-plate, .sbx-phenix.mode-car .sbx-plate { grid-template-columns: 1fr; }
.sbx-hero { padding: 16px 18px; }
.sbx-hero em { display: block; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: #f0a07a; }
.sbx-hero b { display: block; font-size: 48px; line-height: .95; font-weight: 800; color: #ffe7c2; text-shadow: 0 0 18px rgba(240, 120, 40, .45); }
.sbx-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 14px 16px; align-content: center; }
.sbx-side .sbx-mini { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(240, 160, 90, .2); padding-bottom: 4px; }
.sbx-side em { color: #e7d7b0; font-size: 11px; }
.sbx-side b { font-size: 16px; }

.sbx-nebuleuse { width: min(420px, 100%); }
.sbx-stack { width: 100%; background: linear-gradient(180deg, rgba(30, 18, 58, .92), rgba(8, 6, 16, .92));
  border-radius: 16px; padding: 8px 12px; box-shadow: inset 0 0 0 1px rgba(180, 140, 255, .25); }
.sbx-line { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 7px 4px; }
.sbx-line + .sbx-line { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.sbx-line em { font-size: 13px; color: #ddd6fe; }
.sbx-line b { font-size: 18px; }
.sbx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #f6d98a); box-shadow: 0 0 8px var(--c, #f6d98a); }

.sbx-arcade { width: min(820px, 100%); }
.sbx-board { display: flex; gap: 8px; width: 100%; padding: 10px; border-radius: 12px;
  background: #140e24; box-shadow: inset 0 0 0 3px #2a1d4a, 0 0 0 2px #f6d98a; }
.sbx-arcade.vert .sbx-board { flex-direction: column; }
.sbx-score { flex: 1; background: #07060d; border-radius: 6px; padding: 8px 6px 6px; text-align: center;
  box-shadow: inset 0 0 12px rgba(246, 217, 138, .12); }
.sbx-score em { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #f6d98a; }
.sbx-score b { display: block; margin-top: 4px; font-family: "Courier New", ui-monospace, monospace; font-size: 20px; color: #fff4c2; letter-spacing: .06em; }
.sbx-arcade.mode-car .sbx-score b { font-size: 36px; }

/* Éditeur */
.sbed { display: grid; grid-template-rows: 56px minmax(0,1fr) 148px; height: 100%; background: #0c0c0e; color: #eee; font-family: "Segoe UI", system-ui, sans-serif; }
.sbed-top { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid #1f2027; background: #101014; }
.sbed-top .back { border: 0; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.sbed-top .ttl { font-weight: 800; font-size: 14px; margin-right: auto; }
.sbed-top .btn { border: 0; border-radius: 10px; padding: 9px 14px; font: 700 12px/1 "Segoe UI"; cursor: pointer; color: #fff; background: #1f2027; }
.sbed-top .btn.pri { background: #e11d48; }
.sbed-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; min-height: 0; }
.sbed-center { position: relative; display: grid; place-items: center; background:
  repeating-conic-gradient(#1b1b1f 0% 25%, #141417 0% 50%) 0 0 / 22px 22px; min-width: 0; }
.sbed-stage { width: min(920px, 94%); min-height: 120px; border-radius: 16px; border: 1px solid #2a2b33; background: #0a0a0c;
  display: grid; place-items: center; padding: 18px; box-sizing: border-box; }
.sbed-right { border-left: 1px solid #1f2027; background: #0f1013; overflow: auto; padding: 14px; }
.sbed-right h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; color: #a78bfa; text-transform: uppercase; }
.sbed-field { margin-bottom: 12px; }
.sbed-field label { display: block; font-size: 11px; color: #a1a1aa; margin-bottom: 5px; font-weight: 700; }
.sbed-field select, .sbed-field input[type="number"], .sbed-field input[type="text"] {
  width: 100%; background: #16161a; border: 1px solid #2a2b33; border-radius: 9px; color: #fff; padding: 8px 10px; font: 13px "Segoe UI"; }
.sbed-tog { width: 40px; height: 22px; border-radius: 99px; background: #27272a; border: 0; position: relative; cursor: pointer; }
.sbed-tog.on { background: #e11d48; }
.sbed-tog i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.sbed-tog.on i { left: 21px; }
.sbed-row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sbed-mets { display: flex; flex-direction: column; gap: 6px; }
.sbed-mets .m { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center; background: #16161a; border: 1px solid #2a2b33; border-radius: 10px; padding: 7px 8px; }
.sbed-mets .m .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.sbed-mets .m .ico svg { width: 14px; height: 14px; }
.sbed-mets .m button { border: 0; background: #222228; color: #fff; border-radius: 7px; width: 28px; height: 28px; cursor: pointer; }
.sbed-themes { border-top: 1px solid #1f2027; background: #0f1013; padding: 10px 14px; }
.sbed-themes h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; color: #a1a1aa; }
.sbed-themes .rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.sbed-themes .th { flex: none; width: 140px; border: 2px solid #2a2b33; border-radius: 12px; background: #16161a; cursor: pointer; padding: 0; overflow: hidden; color: #fff; }
.sbed-themes .th.on { border-color: #e11d48; box-shadow: 0 0 0 1px #e11d48; }
.sbed-themes .th .mini { height: 58px; display: grid; place-items: center; background: #0a0a0c; padding: 6px; transform: scale(.55); transform-origin: center; }
.sbed-themes .th b { display: block; padding: 6px 8px 8px; font-size: 11px; text-align: left; }
.sbed-toast { position: fixed; bottom: 170px; left: 50%; transform: translateX(-50%); background: #1f2937; padding: 8px 14px; border-radius: 8px; font-size: 13px; opacity: 0; transition: .2s; z-index: 20; pointer-events: none; }
.sbed-toast.on { opacity: 1; }
.sbx-prev .sbx { transform: scale(.85); }

.pulse { padding: 8px 4px 28px; display: flex; flex-direction: column; gap: 14px; }
.pulse-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pulse-h h2 { margin: 0; font-size: 22px; }
.pulse-h p { margin: 4px 0 0; color: #a39bb8; font-size: 13px; }
.pulse-stage { min-height: 200px; border-radius: 16px; border: 1px solid rgba(246, 217, 138, .28);
  background: repeating-conic-gradient(#1b1b22 0% 25%, #14141a 0% 50%) 0 0 / 18px 18px;
  display: grid; place-items: center; padding: 18px; overflow: auto; }
.pulse-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pulse-designs, .pulse-mets { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.pulse-d, .pulse-m { border: 1px solid #3a3348; background: #16141f; color: #fff8e8; border-radius: 999px; padding: 7px 12px; cursor: pointer; font: 700 12px "Segoe UI", system-ui; }
.pulse-d.on, .pulse-m.on { border-color: #f6d98a; color: #f6d98a; background: #241c12; }