/* RG PERF — Atelier UV : scène 3D + inspecteur UV + pellicule de modèles */
.tester {
  --ink: #f4f4f5;
  --muted: #a0a2a8;
  --dim: #70737a;
  --accent: #ff3b30;
  --line: #ffffff14;
  --line-strong: #ffffff26;
  --panel: #0b0c0e;
  --panel-2: #111216;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  font-family: inherit;
  color-scheme: dark;
  isolation: isolate;
}

.tester *,
.tester *::before,
.tester *::after { box-sizing: border-box; }
.tester [hidden] { display: none !important; }

/* ---------- En-tête ---------- */
.tester .tester-head {
  margin: 0 0 16px;
  padding: 18px 0 0;
  border-top: 2px solid var(--accent);
}
.tester .tester-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}
.tester .tester-eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tester .tester-eyebrow span { margin: 0 4px; color: var(--dim); }
.tester .tester-head-tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff05;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tester .tester-head-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px #4ade8020;
}
.tester h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.tester h1 span { color: var(--accent); }
.tester .tester-sub {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Barre de contrôles ---------- */
.tester .tester-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.tester .tester-studio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px 0 8px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tester .tester-studio i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #ff3b301f;
}

.tester .tester-control {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.tester .tester-control-label {
  flex: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tester .tester-control select {
  min-width: 0;
  min-height: 0;
  padding: 6px 17px 6px 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396989e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 11px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.tester .tester-control select:hover:not(:disabled),
.tester .tester-control select:open { border: 0; box-shadow: none; }
/* Une seule flèche : celle dessinée en fond (la flèche du navigateur faisait doublon et élargissait le bouton). */
.tester .tester-control select::picker-icon { display: none; }
.tester .tester-game-wrap { display: flex; align-items: center; min-width: 0; gap: 7px; }
.tester .tester-game-icon { flex: none; width: 17px; height: 17px; border-radius: 4px; object-fit: contain; }

.tester .tester-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.tester .tester-toggle:hover { border-color: var(--line-strong); color: var(--ink); }
.tester .tester-toggle input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff33;
  border-radius: 4px;
  background: #0a0b0d;
  cursor: pointer;
}
.tester .tester-toggle input:checked { border-color: var(--accent); background: var(--accent); }
.tester .tester-toggle input:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #0a0605;
  border-bottom: 2px solid #0a0605;
  transform: translate(0, -1px) rotate(-45deg);
}
.tester .tester-toggle .tester-icon { width: 15px; height: 15px; }

/* ---------- Composition ---------- */
.tester .tester-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "strip strip" "bar bar" "view uv";
  align-items: stretch;
  gap: 14px;
}
.tester .tester-view-panel { grid-area: view; }
.tester .tester-uv-panel { grid-area: uv; }
.tester .tester-model-strip { grid-area: strip; }
.tester .tester-main > .tester-bar { grid-area: bar; margin: 0; }

.tester .tester-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.tester .tester-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff04, transparent);
}
.tester .tester-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.tester .tester-panel-note {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tester .tester-panel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
  padding: 14px;
}

/* ---------- Aperçu UV ---------- */
.tester .tester-slot { min-width: 0; }
.tester .tester-slot + .tester-slot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tester .tester-slot-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #d2d3d6;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tester .tester-slot-label::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.tester .tester-2d {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3a3c42 #111216;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline-offset: -5px;
  isolation: isolate;
  background-color: #ececf0;
  background-image:
    linear-gradient(45deg, #d9d9e0 25%, transparent 25% 75%, #d9d9e0 75%),
    linear-gradient(45deg, #d9d9e0 25%, transparent 25% 75%, #d9d9e0 75%);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}
.tester .tester-dragging { outline: 2px dashed var(--accent); outline-offset: -6px; }

/* Pastille « Dépose ton image UV ici » (style RG), en bas de la zone, visible tant qu'aucune texture n'est importée. */
.tester .tester-drop-pill {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid #ff3b3059;
  border-radius: 8px;
  background: #0d0d0fe6;
  color: #e8e8e9;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px #00000059;
  transition: opacity .2s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tester .tester-drop-pill .tester-icon { width: 13px; height: 13px; flex: none; color: var(--accent); }
.tester .tester-2d:not(.has-texture) { cursor: pointer; }
.tester .tester-2d.tester-dragging .tester-drop-pill { border-color: var(--accent); background: var(--accent); color: #090607; }
.tester .tester-2d.tester-dragging .tester-drop-pill .tester-icon { color: #090607; }
.tester .tester-2d.has-texture .tester-drop-pill,
.tester .tester-2d:has(.tester-empty:not([hidden])) .tester-drop-pill { opacity: 0; }

.tester .tester-stage { position: relative; }
.tester .tester-image-wrap { position: relative; flex: none; margin: auto; }
.tester .tester-image { display: block; width: 100%; height: 100%; max-width: none; max-height: none; }
.tester .tester-uv-overlay { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: fill; pointer-events: none; }

.tester .tester-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 24px 16px 44px;
  color: #9a9da3;
  text-align: center;
  pointer-events: none;
}
.tester .tester-empty p { max-width: 240px; margin: 0; color: #a0a2a8; font-size: 12px; line-height: 1.6; }
.tester .tester-empty > span { font-size: 10px; color: #70737a; line-height: 1.5; }
.tester .tester-empty-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  background: #15161a;
  color: var(--accent);
}

.tester .tester-slot-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tester .tester-slot-actions .tester-file-label { flex: 1 1 auto; }
.tester .tester-status,
.tester .tester-error { margin: 8px 0 0; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.tester .tester-status { color: var(--muted); }
.tester .tester-error { color: #ff9a90; }
.tester .tester-status:empty,
.tester .tester-error:empty { display: none; }

.tester .tester-2d-footer {
  display: grid;
  gap: 11px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.tester .tester-hint { margin: 0; color: var(--dim); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.tester .tester-zoom-field { display: grid; gap: 6px; }
.tester .tester-zoom-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tester .tester-zoom-label output { color: var(--ink); font-variant-numeric: tabular-nums; }
.tester input.tester-zoom {
  display: block;
  width: 100%;
  min-width: 0;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}
.tester .tester-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.tester .tester-downloads .btn { flex: 1 1 150px; }
.tester .tester-downloads .tester-icon { width: 15px; height: 15px; }

/* ---------- Aperçu 3D ---------- */
.tester .tester-view-panel .tester-3d-viewport { flex: 1 1 auto; }
.tester .tester-3d-viewport {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  outline-offset: -5px;
  isolation: isolate;
  background-color: #0f1013;
  background-image:
    linear-gradient(#ffffff07 1px, transparent 1px),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px),
    radial-gradient(620px 400px at 50% 45%, #ffffff09, transparent 75%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.tester canvas.tester-renderer { display: block; width: 100%; height: 100%; max-width: none; max-height: none; touch-action: none; }

.tester .tester-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #0d0e11d9;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.tester .tester-loading-ring {
  width: 26px;
  height: 26px;
  border: 2px solid #ff3b3030;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tester-spin .8s linear infinite;
}
@keyframes tester-spin { to { transform: rotate(360deg); } }

.tester .tester-3d-error {
  position: absolute;
  inset: 20px 20px auto;
  z-index: 5;
  max-height: calc(100% - 40px);
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid #ff3b3050;
  border-radius: 8px;
  background: #151012f5;
  color: #ffb3ad;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tester .tester-model-warning {
  margin: 0;
  padding: 11px 17px;
  border-top: 1px solid #ff3b3030;
  background: #ff3b300b;
  color: #ffb3ad;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.tester .tester-3d-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
}
.tester .tester-view-label {
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff05;
  color: #d7d8db;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tester .tester-view-actions { display: flex; flex: none; align-items: center; gap: 7px; }

/* ---------- Pellicule de modèles ---------- */
.tester .tester-model-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.tester .tester-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.tester .tester-strip-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.tester .tester-strip-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; }
.tester .tester-strip-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.tester .tester-strip-tab span { color: var(--dim); font-family: var(--mono); font-size: 9px; }
.tester .tester-strip-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.tester .tester-strip-tab[aria-pressed="true"] { border-color: #ff3b3055; background: #ff3b3014; color: #fff; }
.tester .tester-strip-tab[aria-pressed="true"] span { color: var(--accent); }
/* Pastille glissante : posée par tester.js, elle remplace le fond de l'onglet actif. */
.tester .tester-strip-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  box-sizing: border-box;
  border: 1px solid #ff3b3055;
  border-radius: 999px;
  background: #ff3b3014;
  box-shadow: 0 0 14px #ff3b3014;
  opacity: 0;
  pointer-events: none;
}
.tester .tester-strip-tabs.has-indicator .tester-strip-indicator { opacity: 1; }
.tester .tester-strip-tabs.has-indicator .tester-strip-tab[aria-pressed="true"] { border-color: transparent; background: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .tester .tester-strip-tab { transition: color .22s ease, border-color .22s ease, background-color .22s ease; }
  .tester .tester-strip-tab span { transition: color .22s ease; }
  .tester .tester-strip-tabs.is-animated .tester-strip-indicator {
    transition:
      transform .4s cubic-bezier(.22, 1, .36, 1),
      width .4s cubic-bezier(.22, 1, .36, 1),
      height .4s cubic-bezier(.22, 1, .36, 1);
  }
}

.tester .tester-strip-list {
  display: flex;
  gap: 8px;
  /* La marge interne laisse la place au zoom du survol (sinon il serait rogné par le défilement). */
  margin: -6px -8px 0;
  padding: 10px 8px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #3a3c42 #111216;
  list-style: none;
}
.tester .tester-strip-item {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 8px;
  width: 84px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #b9bbc0;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tester .tester-strip-item .tester-model-img { width: 56px; height: 56px; border-radius: 10px; background: #ffffff08; object-fit: contain; transform: scaleX(-1); }
.tester .tester-strip-item > span { max-width: 100%; text-align: center; line-height: 1.25; white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.tester .tester-strip-item:hover { background: #ffffff08; color: #fff; }
.tester .tester-strip-item.is-selected { border-color: #ff3b3040; background: #ff3b3014; color: #fff; }

/* Survol façon tuiles PS5 : la carte grossit, passe au premier plan et s'éclaire. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tester .tester-strip-item {
    transition:
      transform .22s cubic-bezier(.2, .8, .2, 1),
      box-shadow .22s ease,
      background .15s ease,
      color .15s ease,
      border-color .15s ease;
  }
  .tester .tester-strip-item .tester-model-img { transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
  .tester .tester-strip-item:hover,
  .tester .tester-strip-item:focus-visible {
    z-index: 2;
    transform: scale(1.12);
    border-color: #ffffff59;
    background: #ffffff10;
    box-shadow: 0 4px 12px #00000080;
  }
  .tester .tester-strip-item.is-selected:hover,
  .tester .tester-strip-item.is-selected:focus-visible { border-color: #ff3b3099; background: #ff3b301f; }
  .tester .tester-strip-item:hover .tester-model-img,
  .tester .tester-strip-item:focus-visible .tester-model-img { transform: scale(-1.06, 1.06); }
  .tester .tester-strip-item:active { transform: scale(1.05); }
}

/* ---------- Boutons ---------- */
.tester .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  gap: 7px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #17181c;
  color: #e8e8e9;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
  cursor: pointer;
}
.tester .btn:hover:not(:disabled) { border-color: var(--line-strong); background: #202126; color: #fff; }
.tester .btn.btn-primary { border-color: var(--accent); background: var(--accent); color: #090607; font-weight: 700; }
.tester .btn.btn-primary:hover:not(:disabled) { border-color: #ff6358; background: #ff6358; color: #090607; }
.tester .tester-file-label { position: relative; }
.tester input.tester-file {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  max-width: none;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.tester .tester-file-label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.tester .tester-remove { background: transparent; color: var(--muted); }
.tester .tester-view-actions .btn { min-height: 34px; padding: 6px 10px; }
.tester .tester-icon { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: middle; }

.tester .tester-tip {
  margin: 15px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  color: var(--dim);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.tester :disabled,
.tester [aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.tester :focus-visible:not(option) { outline: 2px solid var(--accent); outline-offset: 3px; }
.tester .tester-2d:focus-visible,
.tester .tester-3d-viewport:focus-visible { outline-offset: -5px; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1100px) {
  .tester .tester-main { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 860px) {
  .tester .tester-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "strip" "bar" "view" "uv";
    gap: 12px;
  }
  .tester .tester-view-panel .tester-3d-viewport { flex: none; height: clamp(340px, 55vh, 520px); min-height: 0; }
  .tester .tester-uv-panel .tester-panel-body { width: 100%; max-width: 560px; margin: 0 auto; }
  .tester .tester-head-tag { display: none; }
}

@media (max-width: 720px) {
  .tester .tester-head { margin-bottom: 14px; padding-top: 14px; }
  .tester h1 { font-size: 28px; }
  .tester .tester-bar { padding: 8px; gap: 7px; }
  .tester .tester-studio { width: 100%; min-height: 0; padding: 2px 2px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tester .tester-control { flex: 1 1 auto; }
  .tester .tester-control-game { flex: 1 1 160px; }
  .tester .tester-control-bg { flex: 1 1 160px; }
  .tester .tester-toggle { flex: 0 1 auto; }
  .tester .tester-panel-note { display: none; }
  .tester .tester-panel-body { gap: 11px; padding: 12px; }
  .tester .tester-2d-footer { gap: 10px; }
  .tester .tester-model-strip { padding: 11px 12px; }
  .tester .tester-strip-item { width: 74px; }
  .tester .tester-strip-item .tester-model-img { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .tester .tester-view-panel .tester-3d-viewport { height: clamp(300px, 46vh, 400px); }
}

/* ---------- Plein écran ---------- */
.tester .tester-3d-viewport:fullscreen {
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #101010;
}
.tester .tester-3d-viewport:fullscreen::backdrop { background: #101010; }
