/* MoonTik — pages Nouveautés */
.mp{display:flex;flex-direction:column;gap:14px;max-width:1280px;width:100%;min-width:0;box-sizing:border-box}
.mp-head{display:flex;align-items:center;gap:12px}
.mp-head h2{margin:0;font-size:20px;flex:1}
.mp-logo{width:34px;height:34px;border-radius:9px;object-fit:cover}
.mp-form{display:flex;flex-direction:column;gap:10px}
.mp-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px}
.mp-f{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);min-width:0}
.mp-f .input{min-width:120px;height:34px}
.mp-num{width:96px;min-width:0!important}
.mp-sm{height:26px!important;min-width:0!important;padding:0 6px;font-size:12px}
.mp-color{width:46px;height:34px;border:1px solid var(--border);border-radius:8px;background:var(--bg-row);padding:2px;cursor:pointer}
.mp-range{width:140px;accent-color:var(--accent);height:34px}
.mp-chk{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text);cursor:pointer;padding:6px 0}
.mp-chk input{accent-color:var(--accent);width:16px;height:16px}
.mp-ro{font-size:13px;color:var(--text);background:var(--bg-row);border:1px solid var(--border);border-radius:8px;padding:7px 10px;font-variant-numeric:tabular-nums}
.mp-big{font-size:18px;font-weight:700}
.mp-muted{color:var(--dim);font-size:12px;font-weight:400}
.mp-rules{max-height:190px;overflow:auto;background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;display:flex;flex-wrap:wrap;gap:4px 16px}
.mp-rules-h{position:sticky;top:-12px;background:var(--bg-panel);padding:4px 0;z-index:1;width:100%;font-weight:600;font-size:13px;display:flex;align-items:center;gap:10px;margin-bottom:4px}
.mp-prev{height:min(62vh,620px);min-height:280px;min-width:0;border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;background-color:#101014;background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);background-size:18px 18px}
.mp-prev iframe{width:100%;height:100%;border:0;background:transparent}
.mp-prev.mt-stage-slot iframe.mt-stage-iframe{width:auto;height:auto}
.mp-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.mp-card{background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.mp-card h4{margin:0;font-size:13px;letter-spacing:.02em}
.mp-li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.mp-li .input{height:32px;min-width:0;flex:1}
.mp-hist{max-height:220px;overflow:auto;font-size:12px;display:flex;flex-direction:column;gap:4px}
.mp-p{color:#4ade80;font-weight:700}.mp-m{color:#f87171;font-weight:700}
.mp-scen{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.mp-scen .mp-card{flex-direction:row;align-items:center;justify-content:space-between;font-size:13px}
.mp-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.mp-tpl{position:relative;display:flex;flex-direction:column;gap:6px;padding:6px;border-radius:10px;border:1px solid var(--border);background:#0d0d11;color:var(--text);cursor:pointer;text-align:left;font-size:12px}
.mp-tpl .mp-tw{height:130px;overflow:hidden;border-radius:7px;position:relative}
.mp-tpl iframe{width:200%;height:260px;transform:scale(.5);transform-origin:0 0;border:0;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1px);background-size:14px 14px}
.mp-tpl.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.mp-tpl:hover{border-color:#4b5563}
.mp-li select.input{min-width:110px}

/* t168 — Mode élimination : onglets, chrono, salon, cadeaux rapides */
.mp-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.mp-tab{height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--border);background:var(--bg-row);color:var(--text);font-size:12px;font-weight:600;cursor:pointer}
.mp-tab:hover{border-color:#4b5563}
.mp-tab.on{border-color:var(--accent);background:var(--accent-soft,rgba(167,139,250,.16));color:#fff;box-shadow:0 0 0 1px var(--accent)}
.mp-pane{display:none;flex-direction:column;gap:10px}
.mp-pane.on{display:flex}
.mp-clock{display:flex;align-items:flex-end;gap:6px}
.mp-clock .mp-hm{width:56px;min-width:0!important;text-align:center;font-variant-numeric:tabular-nums}
.mp-adj{display:flex;flex-wrap:wrap;gap:6px}
.mp-adj .btn{min-width:52px}
.mp-gifts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mp-gift{height:30px;padding:0 10px;border-radius:999px;border:1px solid var(--border);background:var(--bg-row);color:var(--text);font-size:12px;cursor:pointer;font-variant-numeric:tabular-nums}
.mp-gift.on{border-color:var(--accent);background:var(--accent-soft,rgba(167,139,250,.16))}
.mp-players{display:flex;flex-direction:column;gap:4px;max-height:220px;overflow:auto;font-size:13px}
.mp-player{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:8px;background:var(--bg-row);border:1px solid var(--border)}
.mp-player b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-player span{font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px}
.mp-empty{color:var(--dim);font-size:12px;padding:8px 2px}
.mp-sfx{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.mp-sfx .input{min-width:140px;flex:1}
.mp-count{display:flex;flex-wrap:wrap;gap:8px}
.mp-count .mp-ro{min-width:86px;text-align:center}
.mp-count small{display:block;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:500}

/* t172 — gift picker + sons élimination */
.mp-gpick { width: 100%; text-align: left; justify-content: flex-start; }
.mp-sfx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.mp-sfx .mp-chk { min-width: 160px; }
.mp-sfx .mp-in { flex: 1 1 180px; min-width: 140px; }
.mp-vol { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; }
.mp-vol .mp-range { width: 90px; }
.gift-picker-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gift-picker { width: min(460px, 100%); max-height: min(72vh, 640px); display: flex; flex-direction: column; background: #16161c; border: 1px solid #2a2a32; border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.5); overflow: hidden; color: #e8e8ef; }
.gift-picker-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.gift-picker-head h3 { margin: 0; font-size: 15px; }
.gift-picker-filters { padding: 0 14px 10px; }
.gift-picker-grid { flex: 1; overflow: auto; padding: 4px 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.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: inherit; cursor: pointer; text-align: left; }
.gift-pick-item:hover, .gift-pick-item.active { background: #1e1e28; border-color: #3b3b48; }
.gift-pick-item.active { border-color: rgba(59,130,246,.45); }
.gift-pick-emoji { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #0e0e14; border: 1px solid #2a2a32; overflow: hidden; }
.gift-pick-emoji img { width: 100%; height: 100%; object-fit: contain; }
.gift-pick-name { font-size: 13px; font-weight: 600; }
.gift-pick-coins { font-size: 12px; font-weight: 700; color: #eab308; }


/* t174 — cadeau rapide pills, custom dropdowns, steppers, gift thumbs */
.mp-gifts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mp-gift, button.mp-gift {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 32px; min-width: 52px; padding: 0 12px; margin: 0;
  border-radius: 999px; cursor: pointer; font: 650 12px/1 "Segoe UI", sans-serif;
  color: #e8e8ef; background: rgba(18,18,24,.88);
  border: 1px solid rgba(167,139,250,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  white-space: nowrap;
}
.mp-gift:hover { border-color: #a78bfa; background: rgba(46,33,88,.55); }
.mp-gift.on, button.mp-gift.on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
  box-shadow: 0 0 0 1px rgba(34,211,238,.35), 0 6px 16px rgba(124,58,237,.35);
}
.mp-gifts .mp-plus, .mp-gifts .mp-muted { display: inline-flex; align-items: center; height: 32px; padding: 0 8px; color: #94a3b8; font-weight: 700; }
.mp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.mp-tab, button.mp-tab {
  appearance: none; -webkit-appearance: none;
  background: rgba(18,18,24,.88); border: 1px solid #2a2a32; border-radius: 8px;
  padding: 6px 12px; color: #cbd5e1; cursor: pointer; font: 650 12px/1.2 "Segoe UI", sans-serif;
}
.mp-tab.on, button.mp-tab.on { background: #2e2158; color: #f3e8ff; border-color: #6d28d9; }

/* hide native number spinners */
.mp input[type=number]::-webkit-inner-spin-button,
.mp input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mp input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.mp-step { display: inline-flex; align-items: stretch; border: 1px solid #2a2a32; border-radius: 10px; overflow: hidden; background: #121218; min-height: 34px; }
.mp-step .mp-in, .mp-step input[type=number] {
  width: 64px; min-width: 52px; border: 0 !important; border-radius: 0 !important;
  text-align: center; background: transparent; color: #fff; box-shadow: none !important;
}
.mp-step-btn {
  appearance: none; -webkit-appearance: none;
  width: 28px; border: 0; background: rgba(255,255,255,.04); color: #e9d5ff;
  cursor: pointer; font: 700 16px/1 "Segoe UI", sans-serif; padding: 0;
}
.mp-step-btn:hover { background: rgba(124,58,237,.35); color: #fff; }
.mp-step-btn:focus-visible { outline: 2px solid #22d3ee; outline-offset: -2px; }

/* custom dropdown — dark glass */
.mp-dd { position: relative; min-width: 180px; max-width: 100%; }
.mp-dd-native {
  position: absolute !important; opacity: 0; pointer-events: none;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.mp-dd-btn {
  appearance: none; -webkit-appearance: none;
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  text-align: left; cursor: pointer;
  background: rgba(18,18,24,.92); color: #e8e8ef;
  border: 1px solid #2a2a32; border-radius: 10px;
  padding: 7px 28px 7px 12px;
  font: 650 13px/1.25 "Segoe UI", sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23c4b5fd' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.mp-dd.open .mp-dd-btn, .mp-dd-btn:focus-visible {
  border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124,58,237,.35);
  outline: none;
}
.mp-dd-lab { display: block; }
.mp-dd-hint { display: block; font-size: 11px; font-weight: 500; color: #94a3b8; line-height: 1.2; }
.mp-dd-menu {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 260px; overflow: auto;
  background: rgba(16,16,22,.96); color: #e8e8ef;
  border: 1px solid rgba(167,139,250,.35); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(12px); padding: 4px; margin: 0;
}
.mp-dd-opt {
  appearance: none; -webkit-appearance: none;
  display: flex; flex-direction: column; gap: 1px; width: 100%;
  text-align: left; cursor: pointer; border: 0; border-radius: 8px;
  background: transparent; color: inherit; padding: 8px 10px;
  font: 650 13px/1.25 "Segoe UI", sans-serif;
}
.mp-dd-opt:hover, .mp-dd-opt:focus { background: rgba(124,58,237,.28); outline: none; }
.mp-dd-opt.on { background: linear-gradient(135deg, rgba(124,58,237,.45), rgba(34,211,238,.22)); }

/* gift picker thumbs — same contract as Répliques (.gift-pick-img) */
.gift-picker { overflow: hidden; position: relative; }
.gift-picker-grid { position: relative; overflow: auto; }
.gift-pick-item { position: relative; overflow: hidden; }
.gift-pick-img, .gift-picker .gift-pick-img, .gift-pick-item > img.gift-pick-img {
  width: 36px !important; height: 36px !important; max-width: 36px !important; max-height: 36px !important;
  object-fit: contain !important; object-position: center !important;
  border-radius: 8px; background: rgba(255,255,255,.04); flex-shrink: 0;
  position: static !important; inset: auto !important;
  display: block;
}
.gift-pick-emoji {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: #0e0e14; border: 1px solid #2a2a32; overflow: hidden; flex-shrink: 0;
  font-size: 18px;
}
.gift-pick-emoji img { width: 36px !important; height: 36px !important; object-fit: contain !important; }

/* t231 — MoonTik toggles, segmented tabs, sfx rows, status, gift value, sliders */
.mp-chk, label.mp-chk {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text, #e8e8ef); cursor: pointer; padding: 4px 0;
  user-select: none;
}
.mp-sw-native {
  position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important; pointer-events: none;
}
.mp-sw {
  position: relative; flex-shrink: 0;
  width: 40px; height: 22px; border-radius: 999px;
  background: #1b1736; border: 1px solid rgba(255,255,255,.12);
  transition: background .15s ease, border-color .15s ease;
  pointer-events: none;
}
.mp-sw-knob {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #c4b5fd;
  transition: transform .15s ease, background .15s ease;
}
.mp-chk:has(.mp-sw-native:checked) .mp-sw,
.mp-sw.on {
  background: rgba(167, 139, 250, 0.38);
  border-color: rgba(167, 139, 250, 0.6);
}
.mp-chk:has(.mp-sw-native:checked) .mp-sw-knob,
.mp-sw.on .mp-sw-knob {
  transform: translateX(18px);
  background: #38bdf8;
}
.mp-chk:focus-within .mp-sw { box-shadow: 0 0 0 2px rgba(34,211,238,.35); }
.mp-chk-lab { line-height: 1.25; }

/* segmented tab bar */
.mp .mp-tabs, .mp-tabs {
  display: inline-flex; flex-wrap: nowrap; align-items: stretch;
  gap: 2px; margin: 10px 0; padding: 3px;
  background: rgba(18,18,24,.92);
  border: 1px solid #2a2a32;
  border-radius: 12px;
  width: fit-content; max-width: 100%;
  flex: 0 0 auto; align-self: flex-start;
}
.mp .mp-tab, .mp-tab, button.mp-tab {
  appearance: none; -webkit-appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: #94a3b8;
  border-radius: 9px;
  padding: 7px 16px;
  height: auto;
  font: 650 12px/1.2 "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: none !important;
}
.mp .mp-tab:hover, .mp-tab:hover { color: #e8e8ef; background: rgba(255,255,255,.04) !important; }
.mp .mp-tab.on, .mp-tab.on, button.mp-tab.on {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(124,58,237,.6), rgba(34,211,238,.28)) !important;
  box-shadow: 0 0 0 1px rgba(167,139,250,.35) !important;
}

/* status pill — not a raw action button */
#mpElim, .mp-status {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 12px; margin: 0;
  border-radius: 999px;
  background: rgba(18,18,24,.88);
  border: 1px solid rgba(167,139,250,.4);
  color: #e9d5ff;
  font: 650 12px/1 "Segoe UI", sans-serif;
  box-shadow: none;
  pointer-events: none;
}

/* inscription gift value button */
.mp-gpick, button.mp-gpick, button.btn.mp-gpick {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center;
  min-width: 180px; height: 36px;
  padding: 0 28px 0 12px;
  border-radius: 10px;
  text-align: left;
  justify-content: flex-start;
  color: #e8e8ef;
  font: 650 13px/1 "Segoe UI", sans-serif;
  background-color: rgba(18,18,24,.92);
  border: 1px solid #2a2a32;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23c4b5fd' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.mp-gpick:hover, button.btn.mp-gpick:hover {
  border-color: #7c3aed;
}

/* compact MoonTik range */
.mp input[type=range].mp-range, .mp-range, .mp-sfx-vol {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 6px; padding: 0; margin: 0;
  border-radius: 999px; border: 1px solid rgba(167,139,250,.35);
  background: #1e1e28;
  accent-color: #a78bfa;
}
.mp input[type=range].mp-range::-webkit-slider-thumb,
.mp-range::-webkit-slider-thumb,
.mp-sfx-vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  box-shadow: 0 0 0 2px rgba(12,10,20,.5);
  cursor: pointer;
}
.mp input[type=range].mp-range::-moz-range-thumb,
.mp-sfx-vol::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  cursor: pointer;
}

/* sfx rows: one line */
.mp-sfx {
  display: grid;
  grid-template-columns: 40px 140px minmax(110px, 1.2fr) 36px 110px auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: nowrap;
}
.mp-sfx .mp-chk { min-width: 0; padding: 0; }
.mp-sfx-lab {
  font: 650 13px/1.2 "Segoe UI", sans-serif;
  color: #e8e8ef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-sfx-name {
  min-width: 0;
  font: 500 12px/1.2 "Segoe UI", sans-serif;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-sfx-play {
  appearance: none; width: 32px; height: 32px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,.4);
  background: rgba(124,58,237,.2);
  color: #ddd6fe;
  cursor: pointer; font-size: 12px;
}
.mp-sfx-play:hover { background: rgba(124,58,237,.4); }
.mp-sfx .mp-sfx-vol { width: 110px; }
.mp-sfx-pick, button.mp-sfx-pick {
  appearance: none;
  height: 30px; padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(167,139,250,.4);
  background: rgba(18,18,24,.92);
  color: #e9d5ff;
  font: 650 12px/1 "Segoe UI", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.mp-sfx-pick:hover { border-color: #a78bfa; }
.mp-sfx input[data-p^="sound"] { display: none; }

.mp-snd-grid { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow: auto; padding: 4px 10px 12px; }
.mp-snd-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: inherit; text-align: left; cursor: pointer;
}
.mp-snd-row:hover, .mp-snd-row.active { background: #1e1e28; border-color: #3b3b48; }
.mp-snd-row .nm { font-weight: 650; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-snd-foot { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid #2a2a32; }
.mp-sfx .mp-chk-lab:empty{display:none}
