/* =========================================================
   Puff Roller — direction artistique « arcade » appliquée à
   tout le site : formes coupées en biseau, halos bleus, titres
   percutants, boutons lumineux, tableaux et panneaux alignés.
   La barre de navigation du haut (.topbar, .nav) n'est pas touchée.
   Fond et couleurs de base : ceux de app.css.
   ========================================================= */

:root {
  --ar-cut: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  --ar-cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --ar-blue: linear-gradient(135deg, #51e0e8 0%, #4d8fff 100%);
  --ar-glow: 0 0 0 1px rgba(81, 224, 232, .18), 0 18px 44px -18px rgba(77, 143, 255, .45);
}

/* ---------- Typographie des titres ---------- */
h1, h2, h3 { letter-spacing: -.005em; }
.page-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; text-transform: uppercase; font-style: italic;
  line-height: .95; margin: 0 0 8px; position: relative; padding-left: 18px;
}
.page-head h1::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  background: var(--ar-blue); box-shadow: 0 0 16px rgba(81, 224, 232, .6);
}
.page-head p { color: var(--muted); max-width: 640px; }
h2 { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }

.section-title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 1.1rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em;
}
.section-title::before {
  content: ""; width: 4px; height: 20px; background: var(--ar-blue); box-shadow: 0 0 12px rgba(81, 224, 232, .7);
}

/* ---------- Boutons ---------- */
.btn {
  position: relative; border-radius: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem;
  clip-path: var(--ar-cut-sm); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  transition: transform .15s ease, filter .15s ease, background .15s ease, box-shadow .2s ease;
}
.btn:hover { background: rgba(81, 224, 232, .08); border-color: rgba(81, 224, 232, .45); text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn.primary {
  background: var(--ar-blue); color: #04111a; border-color: transparent; font-weight: 900;
  box-shadow: 0 10px 30px -10px rgba(81, 224, 232, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn.primary:hover { filter: brightness(1.1); background: var(--ar-blue); }
.btn.gold {
  background: linear-gradient(135deg, #ffd978, #f2b64a); color: #1a1205; border-color: transparent; font-weight: 900;
  box-shadow: 0 10px 26px -10px rgba(242, 197, 108, .7);
}
.btn.danger { clip-path: var(--ar-cut-sm); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 16px 28px; font-size: .92rem; min-height: 54px; }
.btn.sm { padding: 7px 12px; min-height: 32px; font-size: .74rem; }
.btn:disabled { opacity: .4; }

/* ---------- Cartes et panneaux ---------- */
.card {
  position: relative; background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line); border-radius: 0; box-shadow: var(--ar-glow);
  clip-path: var(--ar-cut); padding: 20px;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--ar-blue); opacity: .9; pointer-events: none;
}
.card.flat { box-shadow: none; }
.card.flat::before { opacity: .35; }
.card.glow::before { opacity: 1; }
.card h2, .card h3 { margin-top: 0; }

/* Cartes de statistiques */
.stat { padding: 18px 20px; background: linear-gradient(90deg, rgba(81, 224, 232, .08), transparent 60%), var(--panel); }
.stat .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.stat .value { font-size: 1.9rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent); }

/* ---------- Badges ---------- */
.badge {
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; border-radius: 0;
  padding: 4px 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: color-mix(in srgb, var(--bc, var(--accent)) 16%, transparent);
  color: var(--bc, var(--accent));
}

/* ---------- Tableaux ---------- */
.table-wrap { border-radius: 0; border: 1px solid var(--line); clip-path: var(--ar-cut-sm); background: var(--panel); }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th {
  background: var(--panel-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); font-weight: 900; padding: 12px 14px; border-bottom: 1px solid var(--line-strong);
}
td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(81, 224, 232, .05); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Champs de formulaire ---------- */
.field label, .label { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"],
input:not([type]), textarea, select {
  border-radius: 0; background: var(--bg-2); border: 1px solid var(--line-strong);
  clip-path: var(--ar-cut-sm);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(81, 224, 232, .18); outline: none; }

/* ---------- Onglets internes aux pages (la barre du haut n'est pas concernée) ---------- */
.tabs { border-bottom: 0; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); padding: 4px; clip-path: var(--ar-cut-sm); }
.tabs button { border-bottom: 0; clip-path: var(--ar-cut-sm); padding: 10px 16px; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; font-weight: 900; }
.tabs button.active { background: var(--ar-blue); color: #04111a; }

/* ---------- Avatars et lignes de liste ---------- */
.avatar { border: 2px solid var(--accent); box-shadow: 0 0 0 3px rgba(81, 224, 232, .12), 0 0 18px rgba(81, 224, 232, .35); }
.highlight { clip-path: var(--ar-cut-sm); background: var(--panel-2); border: 1px solid var(--line); transition: background .15s ease, transform .15s ease; }
.highlight:hover { background: rgba(81, 224, 232, .06); transform: translateX(3px); }

/* ---------- États vides ---------- */
.empty { border-radius: 0; border: 1px dashed rgba(81, 224, 232, .3); clip-path: var(--ar-cut-sm); background: rgba(81, 224, 232, .03); }

/* ---------- Cartes d'objets ---------- */
.item-card, .case-card {
  clip-path: var(--ar-cut); border-radius: 0; border: 1px solid var(--line-strong);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), box-shadow .25s ease, border-color .25s ease;
}
.item-card:hover, .case-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--rc, var(--c, var(--accent))) 70%, transparent);
  box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--rc, var(--c, var(--accent))) 65%, transparent);
}
.price {
  display: inline-block; padding: 6px 12px; font-weight: 900; font-variant-numeric: tabular-nums; color: #04111a;
  background: var(--ar-blue); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
}

/* ---------- Bandeau d'accueil pleine largeur ---------- */
.ar-page {
  width: 100%; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 22px;
}
.ar-hero {
  position: relative; overflow: hidden; min-height: 340px; display: flex; align-items: center; padding: 56px 64px;
  background:
    linear-gradient(90deg, rgba(7,10,17,.96) 0%, rgba(7,10,17,.5) 60%, rgba(7,10,17,.1) 100%),
    radial-gradient(700px 380px at 82% 35%, color-mix(in srgb, var(--hero-accent, #51e0e8) 32%, transparent), transparent 70%),
    linear-gradient(120deg, #0b1830, #101a33 55%, #0a0f1c);
  border: 1px solid var(--line-strong); clip-path: var(--ar-cut); box-shadow: var(--ar-glow);
}
.ar-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 26px, rgba(255,255,255,.018) 26px 27px);
}
.ar-hero { justify-content: center; text-align: center; }
.ar-hero-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 680px; margin: 0 auto; }
.ar-hero p { margin-left: auto; margin-right: auto; }
.ar-kicker {
  align-self: center; padding: 6px 12px; font-size: .72rem; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; color: #04111a; background: linear-gradient(110deg, var(--hero-accent, #51e0e8), color-mix(in srgb, var(--hero-accent, #51e0e8) 45%, #4d8fff)); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.ar-hero h1 { margin: 0; font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 900; line-height: .92; text-transform: uppercase; font-style: italic; }
.ar-hero h1 .hot {
  background: linear-gradient(90deg, #51e0e8, #4d8fff, #a98aff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ar-hero p { margin: 0; color: #d4d9e4; max-width: 520px; font-size: 1.02rem; }
.ar-countdown { display: flex; gap: 8px; justify-content: center; }
.ar-countdown div {
  min-width: 76px; padding: 10px 12px; text-align: center; background: rgba(0,0,0,.5); border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.ar-countdown b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.ar-countdown span { font-size: .62rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.ar-cta { animation: ar-pulse 2.4s ease-in-out infinite; }
.ar-hero .ar-cta { color: #04111a; background: linear-gradient(110deg, var(--hero-accent, #51e0e8), color-mix(in srgb, var(--hero-accent, #51e0e8) 42%, #4d8fff)); }

.ar-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.ar-stat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px;
  background: linear-gradient(90deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  clip-path: var(--ar-cut-sm); box-shadow: none;
}
.ar-stat::before { display: none; }
.ar-stat .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.ar-stat .value { font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent); }

.ar-ticker-wrap { display: flex; align-items: center; gap: 12px; width: 100%; }
.ar-ticker-label {
  flex: 0 0 auto; padding: 10px 14px; font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em;
  background: var(--accent); color: #04111a; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  display: inline-flex; align-items: center; gap: 6px;
}
.ar-ticker { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding-bottom: 4px;  }
.ar-ticker-item {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-width: 210px;
  background: var(--panel-2); border-bottom: 3px solid var(--c, var(--accent));
  clip-path: var(--ar-cut-sm);
}
.ar-ticker-item.ar-new, .ar-feed-item.ar-new { animation: ar-slide-in .55s cubic-bezier(.2,.9,.3,1.2) both; }
.ar-ticker-item img { width: 38px; height: 38px; object-fit: contain; }
.ar-ticker-item .who { font-weight: 800; font-size: .86rem; }
.ar-ticker-item .what { font-size: .74rem; color: var(--muted); }
.ar-live-dot { display: inline-block; width: 8px; height: 8px; background: #04111a; box-shadow: 0 0 6px #04111a; animation: ar-live 1.4s ease-in-out infinite; }

.ar-shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.ar-side {
  background: var(--bg-2); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px;
  max-height: 780px; overflow-y: auto; clip-path: var(--ar-cut-sm);
}
.ar-side-title { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 10px; }
.ar-side-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-decoration: none; color: var(--text);
  background: var(--panel); border-left: 3px solid var(--c, var(--accent)); transition: background .15s ease, transform .15s ease;
}
.ar-side-item:hover { background: var(--panel-2); transform: translateX(3px); text-decoration: none; }
.ar-side-item img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.ar-side-item .nm { font-weight: 800; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-side-item .pr { font-size: .74rem; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }

.ar-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ar-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ar-tabs { display: flex; gap: 4px; overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); padding: 4px; clip-path: var(--ar-cut-sm); }
.ar-tabs button {
  flex: 1 0 auto; background: transparent; border: 0; color: var(--muted); font: inherit; font-weight: 900; font-size: .78rem;
  padding: 12px 16px; cursor: pointer; text-transform: uppercase; letter-spacing: .05em; clip-path: var(--ar-cut-sm);
  transition: background .15s ease, color .15s ease;
}
.ar-tabs button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.ar-tabs button.active { color: #04111a; background: var(--ar-blue); }

.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ar-case {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong);
  clip-path: var(--ar-cut); transition: transform .25s cubic-bezier(.2,.9,.3,1.2), box-shadow .25s ease, border-color .25s ease;
  box-shadow: none;
}
.ar-case::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 130%; aspect-ratio: 1; transform: translate(-50%,-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--accent)) 36%, transparent), transparent 62%);
  opacity: .5; transition: opacity .3s ease, transform .4s ease; pointer-events: none;
}
.ar-case:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c, var(--accent)) 70%, transparent); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--c, var(--accent)) 65%, transparent); text-decoration: none; }
.ar-case:hover::before { opacity: 1; transform: translate(-50%,-50%) scale(1.12); }
.ar-case-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.ar-tag { padding: 3px 8px; font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: #1a1205; background: var(--gold); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.ar-case-img { position: relative; z-index: 1; height: 150px; display: grid; place-items: center; }
.ar-case-img .preview { display: flex; align-items: center; justify-content: center; gap: 4px; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.ar-case:hover .preview { transform: scale(1.08) rotate(-2deg); }
.ar-case-img img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.ar-case-img img:nth-child(2) { width: 88px; height: 88px; }
.ar-case-name { position: relative; z-index: 1; font-weight: 900; font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-case-meta { position: relative; z-index: 1; font-size: .74rem; color: var(--muted); }
.ar-price {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 10px; font-weight: 900;
  font-variant-numeric: tabular-nums; color: #04111a; background: var(--ar-blue); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
}

.ar-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@keyframes ar-pulse { 0%,100% { box-shadow: 0 8px 22px -8px rgba(81,224,232,.6); } 50% { box-shadow: 0 10px 40px -4px rgba(81,224,232,.95); } }
@keyframes ar-slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes ar-live { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .ar-cta, .ar-ticker-item, .ar-live-dot { animation: none !important; }
  .case-card, .item-card, .ar-case, .ar-case .preview { transition: none !important; }
}
@media (max-width: 1040px) {
  .ar-shop { grid-template-columns: 1fr; }
  .ar-side { max-height: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; clip-path: none; }
  .ar-side-item { min-width: 190px; }
  .ar-side-title { display: none; }
  .ar-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ar-hero { padding: 32px 22px; min-height: 300px; }
  .ar-stats { grid-template-columns: 1fr; }
  .ar-ticker-wrap { flex-direction: column; align-items: stretch; }
  .ar-ticker-label { align-self: flex-start; }
  .ar-countdown div { min-width: 60px; }
}

/* =========================================================
   Avatars parfaitement ronds et alignés (classements, listes)
   ========================================================= */
.avatar { border-radius: 50%; overflow: hidden; aspect-ratio: 1 / 1; }
.avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.highlight .avatar.sm, .lb-player .avatar.sm, .lb-step .avatar, .ar-side-item .avatar {
  width: 42px; height: 42px; min-width: 42px; flex: 0 0 42px; font-size: .95rem;
}
.highlight { align-items: center; }
.highlight > .avatar { margin: 0; }
.lb-player .avatar.sm { width: 40px; height: 40px; min-width: 40px; flex-basis: 40px; }
.lb-step .avatar { width: 96px; height: 96px; min-width: 96px; flex-basis: 96px; font-size: 2rem; }
.lb-step.first .avatar { width: 112px; height: 112px; min-width: 112px; flex-basis: 112px; }

/* =========================================================
   Admin : miniatures lisibles, tableaux compacts, actions
   toujours visibles sans défiler horizontalement
   ========================================================= */
.thumb-sm {
  width: 60px; height: 60px; min-width: 60px; object-fit: contain; border-radius: 12px; padding: 4px;
  background: radial-gradient(circle at 50% 40%, rgba(81,224,232,.14), rgba(255,255,255,.02) 70%);
  border: 1px solid var(--line-strong); display: block;
}
.admin-layout .table-wrap { overflow-x: visible; }
.admin-layout table { table-layout: auto; }
.admin-layout th, .admin-layout td { padding: 8px 12px; white-space: nowrap; }
.admin-layout td:first-child, .admin-layout th:first-child { white-space: normal; }
.admin-layout td:last-child, .admin-layout th:last-child {
  position: sticky; right: 0; z-index: 1; background: var(--panel-2); box-shadow: -10px 0 14px -10px rgba(0,0,0,.6);
  text-align: right; white-space: nowrap;
}
.admin-layout td:last-child .btn { margin-left: 6px; }
.admin-layout td:last-child .btn.sm { padding: 6px 10px; min-height: 30px; }
.admin-layout tbody tr:hover td:last-child { background: var(--panel-2); }
.admin-nav { max-height: calc(100vh - 100px); overflow-y: auto; }
.admin-toolbar .btn { white-space: nowrap; }
@media (max-width: 1040px) {
  .admin-layout td:last-child, .admin-layout th:last-child { position: static; box-shadow: none; }
}

/* =========================================================
   Correctif : les formes coupées ne doivent jamais rogner
   les boutons et listes qui contiennent des actions.
   ========================================================= */
.admin-nav,
.admin-layout .card,
.admin-layout .table-wrap,
.table-wrap,
.tabs,
.ar-side {
  clip-path: none !important;
}
.admin-nav { padding: 12px; }
.admin-nav a { display: flex; align-items: center; gap: 8px; }
.admin-layout .card { padding: 18px; }
.btn.sm { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.btn { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }

/* =========================================================
   Admin : tableaux complets, actions visibles, fond uniforme
   ========================================================= */
.admin-layout .table-wrap { overflow-x: auto; }
.admin-layout table { min-width: 100%; }
.admin-layout th, .admin-layout td { white-space: nowrap; vertical-align: middle; }
.admin-layout td:last-child, .admin-layout th:last-child {
  position: sticky; right: 0; z-index: 2; box-shadow: none; background: var(--panel);
}
.admin-layout th:last-child { background: var(--panel-2); }
.admin-layout tbody tr:hover td:last-child { background: var(--panel); }
.admin-layout tbody tr:hover td { background: rgba(81, 224, 232, .05); }
.admin-layout td:last-child .btn { margin: 2px 4px; }

/* Barre de recherche des catégories */
.rsearch {
  min-width: 260px; padding: 10px 14px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-strong); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.rsearch:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(81,224,232,.18); }
@media (max-width: 720px) { .rsearch { min-width: 0; width: 100%; } }

/* =========================================================
   Amélioration : roue, tension, particules, résultats
   ========================================================= */
.up-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.up-pick-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 720px; overflow-y: auto; padding: 4px; }
.up-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 10px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; text-align: center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform .2s cubic-bezier(.2,.9,.3,1.2), border-color .2s ease, box-shadow .2s ease;
  border-bottom: 3px solid var(--rc, var(--accent));
}
.up-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -12px var(--rc, var(--accent)); }
.up-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(81,224,232,.4), 0 14px 30px -12px rgba(81,224,232,.6); }
.up-tile img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.up-tile-ph { width: 74px; height: 74px; display: block; }
.up-tile-lvl { position: absolute; top: 6px; left: 6px; font-size: .62rem; font-weight: 900; padding: 2px 6px; background: var(--accent); color: #04111a; }
.up-tile-name { font-weight: 800; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.up-tile-val { font-size: .74rem; color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }

.up-stage { display: flex; flex-direction: column; gap: 14px; align-items: stretch; min-height: 560px; }
.up-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.up-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.up-item-img { width: 60px; height: 60px; object-fit: contain; }
.up-item-name { font-weight: 900; font-size: 1.05rem; text-transform: uppercase; }
.up-lvl-box { text-align: center; padding: 8px 14px; background: var(--bg-2); border: 1px solid var(--line-strong); clip-path: var(--ar-cut-sm); }
.up-lvl-box span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.up-lvl-box strong { font-size: 1.8rem; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Roue */
.up-wheel-wrap { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 6px auto; display: grid; place-items: center; }
.uw-wheel {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--line-strong);
  box-shadow: 0 0 0 6px rgba(81,224,232,.08), 0 0 40px -6px rgba(81,224,232,.45), inset 0 0 30px rgba(0,0,0,.45);
  transform: rotate(0deg); will-change: transform;
}
.uw-label { position: absolute; inset: 0; pointer-events: none; }
.uw-label span {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font-weight: 900; font-size: .95rem;
  color: #04111a; text-shadow: 0 1px 0 rgba(255,255,255,.3); font-variant-numeric: tabular-nums;
}
.uw-hub {
  position: relative; z-index: 2; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #1d2a44, #0a0f1c); border: 3px solid var(--accent);
  box-shadow: 0 0 22px rgba(81,224,232,.55); font-weight: 900; font-size: 1.4rem; color: var(--accent);
}
.uw-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 3; width: 0; height: 0;
  border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 26px solid var(--gold);
  filter: drop-shadow(0 4px 8px rgba(242,197,108,.5));
}
.up-fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.uw-particle {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 2px;
  box-shadow: 0 0 10px currentColor; animation: uw-burst 1.3s cubic-bezier(.15,.8,.25,1) forwards;
}
.is-rolling .uw-hub { animation: uw-hub-pulse .5s ease-in-out infinite; }
.is-up .uw-wheel { box-shadow: 0 0 0 6px rgba(81,224,232,.2), 0 0 70px -4px rgba(81,224,232,.95); }
.is-down .uw-wheel { box-shadow: 0 0 0 6px rgba(255,138,91,.2), 0 0 60px -4px rgba(255,77,94,.85); }
.is-down { animation: uw-shake .5s ease-in-out 2; }
.is-break .uw-wheel { box-shadow: 0 0 0 6px rgba(255,77,94,.3), 0 0 80px -2px rgba(255,77,94,1); }
.is-break { animation: uw-shake .25s linear 8; }

/* Résultats */
.up-result { min-height: 86px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.up-roll-text { font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); animation: uw-hub-pulse .6s ease-in-out infinite; }
.up-banner { font-weight: 900; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px 18px; clip-path: var(--ar-cut-sm); }
.up-banner.good { color: #04111a; background: linear-gradient(135deg, #51e0e8, #4d8fff); }
.up-banner.warn { color: #fff; background: linear-gradient(135deg, #ff8a5b, #ff4d5e); }
.up-banner.bad { color: #fff; background: linear-gradient(135deg, #ff4d5e, #7a1f2b); }
.up-banner.pop { animation: uw-pop .55s cubic-bezier(.2,1.4,.4,1) both; }
.up-value { font-size: .95rem; color: var(--muted); }
.up-value strong { color: var(--gold); font-variant-numeric: tabular-nums; }

.up-odds { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.up-odd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; background: var(--bg-2); border-bottom: 2px solid var(--c1, var(--accent)); font-size: .7rem; }
.up-odd.up { --c1: #51e0e8; }
.up-odd.down { --c1: #ff4d5e; }
.up-odd strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.up-warn { margin: 0; text-align: center; color: var(--warning); font-weight: 700; font-size: .85rem; }
.up-go { width: 100%; }
.up-go:disabled { opacity: .45; }

@keyframes uw-idle-spin { to { transform: rotate(360deg); } }
@keyframes uw-hub-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes uw-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px) rotate(-1deg); } 75% { transform: translateX(6px) rotate(1deg); } }
@keyframes uw-pop { from { opacity: 0; transform: scale(.4) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes uw-burst {
  0% { transform: translate(-50%,-50%) scale(.3) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot)); opacity: 0; }
}

@media (max-width: 1040px) {
  .up-layout { grid-template-columns: 1fr; }
  .up-stage { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .is-rolling .uw-hub, .up-roll-text, .up-banner.pop, .is-down, .is-break { animation: none !important; }
  .uw-particle { display: none; }
}

/* =========================================================
   Barres de défilement masquées (le défilement reste actif)
   ========================================================= */
html, body, * {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* Edge ancien */
}
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar {
  width: 0; height: 0; display: none;   /* Chrome, Edge, Safari */
}

/* Renforcement : zones défilantes sans barre (prime sur les règles précédentes) */
.ar-ticker, .ar-side, .up-grid, .table-wrap, .ar-tabs, .tabs, .admin-nav, .ar-page, .modal, .card {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.ar-ticker::-webkit-scrollbar, .ar-side::-webkit-scrollbar, .up-grid::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar, .ar-tabs::-webkit-scrollbar, .tabs::-webkit-scrollbar,
.admin-nav::-webkit-scrollbar, .ar-page::-webkit-scrollbar, .modal::-webkit-scrollbar, .card::-webkit-scrollbar {
  width: 0 !important; height: 0 !important; display: none !important;
}

/* Libellé « tickets » lisible sur les pastilles de prix (boutique, caisses…) */
.price .small,
.price span {
  color: #04111a !important;
  opacity: 1 !important;
  font-weight: 800;
}

/* ---------- Effets supplémentaires ---------- */
.fx-aurora { background-image: linear-gradient(90deg, #3ddc97, #51e0e8, #4d8fff, #a98aff, #3ddc97); animation: fx-sweep 6s linear infinite; }
.fx-sunset { background-image: linear-gradient(90deg, #ff7e5f, #ffb347, #ff3d7f, #ff7e5f); animation: fx-sweep 5s linear infinite; }
.fx-emerald { background-image: linear-gradient(90deg, #0f9d58, #3ddc97, #b7f7d8, #3ddc97, #0f9d58); filter: drop-shadow(0 0 6px rgba(61,220,151,.35)); animation: fx-sweep 4s linear infinite; }
.fx-ruby { background-image: linear-gradient(90deg, #8b0000, #ff4d5e, #ffb3bd, #ff4d5e, #8b0000); filter: drop-shadow(0 0 6px rgba(255,77,94,.4)); animation: fx-sweep 4s linear infinite; }
.fx-royal { background-image: linear-gradient(90deg, #6d28d9, #a98aff, #f2c56c, #a98aff, #6d28d9); filter: drop-shadow(0 0 6px rgba(169,138,255,.4)); animation: fx-sweep 5s linear infinite; }
.fx-candy { background-image: linear-gradient(90deg, #ff77c8, #ffb3e6, #77d7ff, #ff77c8); animation: fx-sweep 3.5s linear infinite; }
.fx-hologram { background-image: linear-gradient(115deg, #ff9a9e 0%, #fad0c4 15%, #a1c4fd 30%, #c2e9fb 45%, #d4fc79 60%, #96e6a1 75%, #ff9a9e 100%); background-size: 300% 300%; animation: fx-holo 4s ease infinite; }
.fx-electric { color: #bff9ff; -webkit-text-fill-color: #bff9ff; text-shadow: 0 0 4px #51e0e8, 0 0 12px #4d8fff; animation: fx-electric 1.4s steps(2, end) infinite; }
.fx-toxic { color: #c8ff3d; -webkit-text-fill-color: #c8ff3d; text-shadow: 0 0 6px rgba(200,255,61,.7), 0 0 16px rgba(120,255,0,.4); animation: fx-toxic 2.2s ease-in-out infinite; }
.fx-void { background-image: linear-gradient(90deg, #1e1b4b, #7c3aed, #0b0b14, #7c3aed, #1e1b4b); filter: drop-shadow(0 0 8px rgba(124,58,237,.6)); animation: fx-sweep 6s linear infinite; }
.fx-glitch { color: #eef3fb; -webkit-text-fill-color: #eef3fb; animation: fx-glitch 2.6s steps(1, end) infinite; }
.fx-diamond { background-image: linear-gradient(105deg, #dbeafe 0%, #ffffff 25%, #93c5fd 45%, #ffffff 60%, #dbeafe 100%); background-size: 260% 100%; filter: drop-shadow(0 0 5px rgba(255,255,255,.5)); animation: fx-sweep 3s linear infinite; }

@keyframes fx-holo { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes fx-electric { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes fx-toxic { 0%,100% { text-shadow: 0 0 6px rgba(200,255,61,.5); } 50% { text-shadow: 0 0 14px rgba(200,255,61,.95), 0 0 24px rgba(120,255,0,.5); } }
@keyframes fx-glitch {
  0%, 90%, 100% { text-shadow: none; transform: none; }
  91% { text-shadow: 2px 0 #ff4d5e, -2px 0 #51e0e8; transform: translateX(-1px); }
  93% { text-shadow: -2px 0 #ff4d5e, 2px 0 #51e0e8; transform: translateX(1px); }
  95% { text-shadow: 1px 0 #ff4d5e, -1px 0 #51e0e8; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-hologram, .fx-electric, .fx-toxic, .fx-glitch { animation: none !important; }
}

/* =========================================================
   EFFETS RENFORCÉS (les règles suivantes remplacent les précédentes)
   ========================================================= */
.name.fx { position: relative; display: inline-block; }

/* 🔥 FEU : texte incandescent + langues de flammes animées */
.name.fx-fire {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #fff1b8; -webkit-text-fill-color: #fff1b8; filter: none;
  text-shadow:
    0 0 2px #fff7d1,
    0 -2px 5px #ffd33d,
    0 -4px 9px #ff8a00,
    0 -6px 14px rgba(255, 69, 0, .7);
  animation: fx-fire-text 1.2s ease-in-out infinite alternate;
}
.name.fx-fire::before, .name.fx-fire::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: 45%; height: 95%; pointer-events: none;
  z-index: -1; mix-blend-mode: screen; transform-origin: 50% 100%;
}
.name.fx-fire::before {
  background:
    radial-gradient(ellipse 22% 60% at 12% 100%, #ffd33d 0%, #ff8a00 40%, transparent 70%),
    radial-gradient(ellipse 18% 75% at 32% 100%, #ffb300 0%, #ff4500 45%, transparent 72%),
    radial-gradient(ellipse 24% 55% at 52% 100%, #ffd33d 0%, #ff6a00 42%, transparent 70%),
    radial-gradient(ellipse 16% 80% at 72% 100%, #ffe066 0%, #ff3d00 45%, transparent 72%),
    radial-gradient(ellipse 20% 62% at 90% 100%, #ffd33d 0%, #ff8a00 42%, transparent 70%);
  filter: blur(2px);
  animation: fx-flames 0.9s ease-in-out infinite alternate;
}
.name.fx-fire::after {
  background:
    radial-gradient(ellipse 14% 90% at 22% 100%, #fff7b0 0%, #ffb300 35%, transparent 70%),
    radial-gradient(ellipse 12% 100% at 62% 100%, #fff7b0 0%, #ff8a00 35%, transparent 70%),
    radial-gradient(ellipse 14% 85% at 82% 100%, #fff7b0 0%, #ffb300 35%, transparent 70%);
  filter: blur(1px);
  animation: fx-flames 0.6s ease-in-out infinite alternate-reverse;
}
@keyframes fx-fire-text {
  0%   { text-shadow: 0 0 2px #fff7d1, 0 -2px 5px #ffd33d, 0 -4px 9px #ff8a00, 0 -6px 14px rgba(255,69,0,.7); }
  100% { text-shadow: 0 0 3px #fff7d1, 0 -3px 7px #ffd33d, 0 -5px 11px #ff8a00, 0 -8px 18px rgba(255,50,0,.55); }
}
@keyframes fx-flames {
  0%   { transform: scaleY(.7) skewX(-4deg) translateY(4px); opacity: .75; }
  50%  { transform: scaleY(1.15) skewX(3deg) translateY(-2px); opacity: 1; }
  100% { transform: scaleY(.85) skewX(-2deg) translateY(2px); opacity: .85; }
}

/* ❄️ GLACE : cristaux qui scintillent */
.name.fx-ice {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #e6fbff; -webkit-text-fill-color: #e6fbff;
  text-shadow: 0 0 4px #7dd3fc, 0 0 12px #38bdf8, 0 0 22px rgba(56,189,248,.5);
}
.name.fx-ice::after {
  content: "✦ ✧ ✦"; position: absolute; left: 0; right: 0; top: -.9em; font-size: .7em; letter-spacing: .4em;
  color: #e0f7ff; text-align: center; text-shadow: 0 0 6px #7dd3fc; animation: fx-sparkle 1.8s ease-in-out infinite; pointer-events: none;
}
@keyframes fx-sparkle { 0%,100% { opacity: .2; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-2px); } }

/* ⚡ ÉLECTRIQUE : éclairs qui frappent */
.name.fx-electric {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #e9fdff; -webkit-text-fill-color: #e9fdff;
  text-shadow: 0 0 4px #51e0e8, 0 0 10px #4d8fff, 0 0 20px #4d8fff;
  animation: fx-zap 2.4s steps(1, end) infinite;
}
.name.fx-electric::before {
  content: ""; position: absolute; inset: -40% -10%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(81,224,232,.55), transparent 65%);
  animation: fx-zap-glow 2.4s steps(1, end) infinite;
}
@keyframes fx-zap { 0%,86%,100% { opacity: 1; } 88% { opacity: .2; } 90% { opacity: 1; } 92% { opacity: .35; } 94% { opacity: 1; } }
@keyframes fx-zap-glow { 0%,86%,100% { opacity: .5; } 88%,92% { opacity: 1; } }

/* Page d'accès suspendu et action de wipe dans l'administration */
.ban-screen { min-height: min(760px, calc(100vh - 190px)); display: grid; place-items: center; position: relative; overflow: hidden; padding: 54px 16px; isolation: isolate; }
.ban-screen::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 36%, rgba(255,76,94,.13), transparent 42%), repeating-linear-gradient(115deg, transparent 0 42px, rgba(255,255,255,.018) 43px 44px); }
.ban-orbit { position: absolute; z-index: -1; width: min(70vw, 660px); aspect-ratio: 1; border: 1px solid rgba(255,91,108,.12); border-radius: 50%; animation: ban-orbit 28s linear infinite; }
.ban-orbit::before,.ban-orbit::after { content: ""; position: absolute; inset: 9%; border: 1px dashed rgba(81,224,232,.1); border-radius: inherit; }
.ban-orbit::after { inset: 19%; border-style: solid; border-color: rgba(255,255,255,.04); }
.ban-orbit-two { width: min(55vw, 520px); animation-direction: reverse; animation-duration: 38s; }
.ban-card { width: min(100%, 720px); padding: clamp(24px, 5vw, 48px); position: relative; overflow: hidden; border: 1px solid rgba(255,91,108,.35); background: linear-gradient(145deg, rgba(20,26,39,.97), rgba(9,13,21,.98)); box-shadow: 0 30px 100px rgba(0,0,0,.48), 0 0 70px rgba(255,76,94,.08); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); animation: ban-enter .72s cubic-bezier(.2,.8,.2,1) both; }
.ban-card::after { content: ""; position: absolute; top: 0; left: -45%; width: 38%; height: 100%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); animation: ban-scan 8s ease-in-out infinite; pointer-events: none; }
.ban-card-top,.ban-meta,.ban-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ban-status,.ban-id,.ban-kicker,.ban-detail span,.ban-meta span,.ban-caption { font-size: .7rem; font-weight: 900; letter-spacing: .15em; }
.ban-status { color: #ff7784; display: inline-flex; align-items: center; gap: 9px; }
.ban-status i { width: 8px; height: 8px; border-radius: 50%; background: #ff5b6c; box-shadow: 0 0 14px #ff5b6c; animation: ar-live 1.4s ease-in-out infinite; }
.ban-id { color: #78869a; }
.ban-emblem { width: 76px; height: 76px; margin: 38px auto 20px; display: grid; place-items: center; color: #fff; font-size: 2.4rem; font-weight: 1000; background: linear-gradient(145deg,#ff7180,#a92e49); clip-path: polygon(50% 0, 91% 17%, 84% 69%, 50% 100%, 16% 69%, 9% 17%); filter: drop-shadow(0 0 24px rgba(255,76,94,.35)); animation: ban-float 3s ease-in-out infinite; }
.ban-kicker { text-align: center; color: #ff7784; margin: 0 0 12px; }
.ban-card h1 { text-align: center; font-size: clamp(3rem, 8vw, 5.8rem); line-height: .84; letter-spacing: -.07em; margin: 0; text-transform: uppercase; font-weight: 1000; }
.ban-card h1 em { color: #ff7180; font-style: normal; }
.ban-intro { max-width: 490px; margin: 22px auto 28px; color: #aeb8c8; text-align: center; line-height: 1.7; }
.ban-intro strong { color: #eff4ff; }
.ban-details { padding: 20px 22px; background: rgba(5,9,16,.7); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid #ff5b6c; }
.ban-detail span,.ban-meta span { display: block; color: #758397; margin-bottom: 8px; }
.ban-detail strong { color: #e8edf6; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.ban-meta { justify-content: flex-start; border-top: 1px solid rgba(255,255,255,.07); margin-top: 16px; padding-top: 15px; }
.ban-meta > div { flex: 1; min-width: 0; }
.ban-meta strong { color: #cbd4e2; font-size: .88rem; }
.ban-footer { margin-top: 22px; color: #8390a3; font-size: .8rem; }
.ban-caption { position: absolute; bottom: 18px; color: #647186; }
.ban-caption b { padding: 0 8px; color: #ff7180; }
.maintenance-screen { position: fixed; inset: 0; z-index: 1000; min-height: 100vh; overflow-y: auto; padding: 48px 16px 58px; background: #080d14; }
.maintenance-screen::before { background: radial-gradient(ellipse at 50% 36%, rgba(81,224,232,.13), transparent 42%), repeating-linear-gradient(115deg, transparent 0 42px, rgba(255,255,255,.018) 43px 44px); }
.maintenance-screen .ban-orbit { border-color: rgba(81,224,232,.14); }
.maintenance-screen .ban-orbit::before { border-color: rgba(81,224,232,.12); }
.maintenance-card { border-color: rgba(81,224,232,.34); box-shadow: 0 30px 100px rgba(0,0,0,.48), 0 0 70px rgba(81,224,232,.08); }
.maintenance-card .ban-status,.maintenance-card .ban-kicker { color: #51e0e8; }
.maintenance-card .ban-status i { background: #51e0e8; box-shadow: 0 0 14px #51e0e8; }
.maintenance-card .ban-emblem { background: linear-gradient(145deg,#51e0e8,#3985f5); filter: drop-shadow(0 0 24px rgba(81,224,232,.35)); }
.maintenance-card h1 em,.maintenance-screen .ban-caption b { color: #51e0e8; }
.maintenance-details { border-left-color: #51e0e8; }
.maintenance-screen .ban-caption { position: fixed; bottom: 18px; }
body.site-maintenance .app-shell > #announce, body.site-maintenance .app-shell > .topbar, body.site-maintenance .app-shell > .footer { display: none; }
.wipe-inventory-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; border-color: rgba(255,91,108,.28); }
.wipe-inventory-card h2 { margin: 4px 0; }
.wipe-inventory-card p { margin: 0; }
.wipe-inventory-card .eyebrow { color: #ff7784; font-size: .68rem; letter-spacing: .12em; font-weight: 900; }
@keyframes ban-enter { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ban-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes ban-orbit { to { transform: rotate(360deg); } }
@keyframes ban-scan { 0%,40% { left: -45%; opacity: 0; } 48% { opacity: 1; } 70%,100% { left: 120%; opacity: 0; } }
@media (max-width: 640px) { .ban-screen { padding: 24px 8px 48px; } .ban-card { padding: 22px 18px; } .ban-footer { align-items: stretch; flex-direction: column; } .ban-meta { align-items: flex-start; flex-direction: column; gap: 14px; } .wipe-inventory-card { align-items: stretch; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .ban-orbit,.ban-emblem,.ban-card,.ban-card::after { animation: none !important; } }

/* 🌑 VIDE : fumée violette qui tourbillonne */
.name.fx-void {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #d8c8ff; -webkit-text-fill-color: #d8c8ff;
  text-shadow: 0 0 6px #7c3aed, 0 0 14px #4c1d95, 0 0 26px rgba(124,58,237,.6);
}
.name.fx-void::before {
  content: ""; position: absolute; inset: -60% -30%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(circle at 30% 40%, rgba(124,58,237,.55), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(76,29,149,.6), transparent 50%);
  filter: blur(6px); animation: fx-swirl 3.2s linear infinite;
}
@keyframes fx-swirl { from { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.15); } to { transform: rotate(360deg) scale(1); } }

/* 🧪 TOXIQUE : bulles vertes qui remontent */
.name.fx-toxic {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #eaffb0; -webkit-text-fill-color: #eaffb0;
  text-shadow: 0 0 4px #c8ff3d, 0 0 12px #7fff00, 0 0 24px rgba(127,255,0,.6);
  animation: fx-toxic-text 1.6s ease-in-out infinite alternate;
}
.name.fx-toxic::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 60%; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(circle 3px at 15% 80%, #c8ff3d, transparent 70%),
    radial-gradient(circle 2px at 40% 90%, #c8ff3d, transparent 70%),
    radial-gradient(circle 4px at 65% 85%, #9dff3d, transparent 70%),
    radial-gradient(circle 2px at 85% 95%, #c8ff3d, transparent 70%);
  animation: fx-bubbles 2s ease-in infinite;
}
@keyframes fx-toxic-text { from { text-shadow: 0 0 4px #c8ff3d, 0 0 12px #7fff00; } to { text-shadow: 0 0 8px #c8ff3d, 0 0 22px #7fff00, 0 0 34px rgba(127,255,0,.5); } }
@keyframes fx-bubbles { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-60%); opacity: 0; } }

/* 🔴 RUBIS : rouge intense avec reflet */
.name.fx-ruby {
  background-image: linear-gradient(90deg, #7f0014, #ff1f3d, #ffd1d8, #ff1f3d, #7f0014);
  background-size: 220% 100%; filter: drop-shadow(0 0 8px rgba(255,31,61,.7));
  animation: fx-sweep 3s linear infinite;
}

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
  .name.fx-fire, .name.fx-fire::before, .name.fx-fire::after,
  .name.fx-ice::after, .name.fx-electric, .name.fx-electric::before,
  .name.fx-void::before, .name.fx-toxic, .name.fx-toxic::before { animation: none !important; }
}

/* =========================================================
   PARTICULES DES EFFETS DE PSEUDO (fx.js)
   ========================================================= */
.name.fx { overflow: visible; }
.fxp {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  background: var(--c); border-radius: 50%; pointer-events: none; z-index: 2;
  box-shadow: 0 0 6px var(--glow), 0 0 12px var(--glow);
  opacity: 0; animation: fxp-life var(--t) ease-out forwards;
}
.fxp-star {
  border-radius: 0; clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  animation: fxp-life var(--t) ease-out forwards, fxp-spin 1.2s linear infinite;
}
.fxp-spark {
  width: 2px; height: calc(var(--s) * 4); border-radius: 2px; transform: rotate(var(--rot));
}
@keyframes fxp-life {
  0%   { opacity: 0; transform: translate(0, 0) scale(.4); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.1); }
}
@keyframes fxp-spin { to { rotate: 360deg; } }

/* Feu : texte plus chaud, flammes plus hautes */
.name.fx-fire { font-weight: 900; }
.name.fx-fire::before { height: 110%; bottom: 40%; filter: blur(2px); }
.name.fx-fire::after { height: 100%; bottom: 42%; }

/* Électrique : éclairs plus nets */
.name.fx-electric { font-weight: 900; }

/* Vide : vortex plus épais */
.name.fx-void::before { inset: -80% -40%; }

/* Particules plus travaillées sur les effets conservés */
.name.fx-fire .fxp { box-shadow: 0 0 8px #ff8a00, 0 0 16px #ff4500; }
.name.fx-ice .fxp-star { box-shadow: 0 0 10px #bfefff, 0 0 18px #7dd3fc; }
.name.fx-electric .fxp-spark { box-shadow: 0 0 8px #51e0e8, 0 0 14px #4d8fff; }

/* Flammes : hauteur réduite */
.name.fx-fire::before, .name.fx-fire::after { transform-origin: 50% 100%; }

/* =========================================================
   HOLOGRAMME RÉALISTE : reflets irisés, balayage, lignes, décalage chromatique
   (le texte source est lu depuis data-text, posé par nameHtml)
   ========================================================= */
.name.fx-hologram {
  position: relative; display: inline-block; font-weight: 900; isolation: isolate;
  background-image: linear-gradient(115deg, #6ef3ff 0%, #a78bfa 18%, #ff7ad9 34%, #ffe27a 50%, #7dffb0 66%, #6ef3ff 82%, #a78bfa 100%);
  background-size: 260% 260%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(-1.5px 0 rgba(255, 40, 120, .55)) drop-shadow(1.5px 0 rgba(0, 220, 255, .55)) drop-shadow(0 0 6px rgba(120, 200, 255, .35));
  animation: holo-shift 3.2s ease-in-out infinite;
}
/* Balayage de lumière + lignes de scan (même forme que le texte) */
.name.fx-hologram::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 3px);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat, repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  mix-blend-mode: overlay;
  animation: holo-sweep 2.6s ease-in-out infinite;
}
/* Décalage fantôme qui scintille (glitch holographique) */
.name.fx-hologram::before {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(90deg, rgba(0, 255, 255, .9), rgba(255, 0, 140, .9));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transform: translateX(-2px); opacity: .5; mix-blend-mode: screen;
  animation: holo-flicker 4.4s steps(1, end) infinite;
}
@keyframes holo-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes holo-sweep { 0% { background-position: 150% 0, 0 0; } 100% { background-position: -150% 0, 0 0; } }
@keyframes holo-flicker {
  0%, 88%, 100% { opacity: .5; transform: translateX(-2px); }
  90% { opacity: .9; transform: translateX(3px); }
  92% { opacity: .2; transform: translateX(-4px); }
  94% { opacity: .7; transform: translateX(1px); }
}
@media (prefers-reduced-motion: reduce) {
  .name.fx-hologram, .name.fx-hologram::after, .name.fx-hologram::before { animation: none !important; }
}

/* =========================================================
   ADMIN : tableaux pleine largeur, sans défilement horizontal
   ========================================================= */
main.content .container:has(.admin-layout) { width: min(1680px, calc(100% - 24px)); }
.admin-layout { grid-template-columns: 200px minmax(0, 1fr) !important; gap: 16px !important; }
.admin-nav { padding: 10px !important; }
.admin-toolbar { flex-wrap: nowrap !important; gap: 12px !important; }
.admin-toolbar h1 { white-space: nowrap; }
.admin-toolbar .row { flex-wrap: nowrap; }
.admin-layout .table-wrap { overflow-x: auto; }
.admin-layout table { width: 100%; table-layout: auto; }
.admin-layout th { white-space: normal !important; font-size: .66rem !important; line-height: 1.25; padding: 9px 8px !important; }
.admin-layout td { padding: 7px 8px !important; }
.admin-layout td:first-child, .admin-layout th:first-child { padding-left: 12px !important; }
.admin-layout td:last-child, .admin-layout th:last-child { padding-right: 12px !important; }
.admin-layout td:last-child .btn.sm { padding: 6px 9px !important; font-size: .7rem !important; }
.admin-layout .thumb-sm { width: 52px !important; height: 52px !important; min-width: 52px !important; }
.rsearch { min-width: 220px !important; }
@media (max-width: 1040px) {
  .admin-layout { grid-template-columns: 1fr !important; }
  main.content .container:has(.admin-layout) { width: min(100%, calc(100% - 24px)); }
}

/* =========================================================
   BADGES (profil)
   ========================================================= */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
.bd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 8px; }
.bd-icon {
  width: 84px; height: 84px; display: grid; place-items: center; font-size: 2.4rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), rgba(255,255,255,.02) 60%), var(--panel-2);
  border: 2px solid color-mix(in srgb, var(--bc) 70%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bc) 10%, transparent), 0 10px 26px -10px var(--bc);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.2), box-shadow .25s ease;
}
.bd.earned:hover .bd-icon { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bc) 18%, transparent), 0 16px 34px -10px var(--bc); }
.bd.earned::after {
  content: ""; position: absolute; top: 12px; left: 50%; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  background-size: 250% 100%; animation: bd-shine 3.5s ease-in-out infinite; pointer-events: none;
}
.bd-name { font-weight: 800; font-size: .88rem; color: var(--text); line-height: 1.2; }
.bd-desc { font-size: .72rem; color: var(--muted); line-height: 1.3; max-width: 170px; }
.bd.locked .bd-icon { filter: grayscale(1) brightness(.45); border-color: var(--line); box-shadow: none; }
.bd.locked .bd-name { color: var(--faint); }
.bd-lock { position: absolute; top: 58px; left: 50%; transform: translateX(22px); font-size: .9rem; }
@keyframes bd-shine { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .bd.earned::after { animation: none; } }

/* Console owner — surprises visuelles courtes et réversibles */
.troll-kicker { display: inline-block; color: var(--accent); font-size: .68rem; font-weight: 950; letter-spacing: .16em; }
.troll-target-card,.troll-action-card { display: grid; gap: 18px; margin-bottom: 16px; }
.troll-step { display: flex; align-items: center; gap: 14px; }
.troll-step > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #061018; font-size: .82rem; font-weight: 1000; background: linear-gradient(135deg,var(--accent),#4d8fff); clip-path: polygon(0 0,80% 0,100% 20%,100% 100%,20% 100%,0 80%); }
.troll-step h2 { margin: 0 0 3px; }
.troll-step p { margin: 0; }
.troll-results { display: grid; gap: 7px; max-height: 250px; overflow: auto; }
.troll-player { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; color: var(--text); text-align: left; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .16s, transform .16s; }
.troll-player:hover { border-color: var(--accent); transform: translateX(3px); }
.troll-player-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #061018; font-weight: 950; background: linear-gradient(135deg,var(--accent),var(--accent-2)); }
.troll-player > span:nth-child(2) { display: grid; flex: 1; }
.troll-player small { color: var(--muted); }
.troll-player-pick { color: var(--accent); font-size: .8rem; font-weight: 850; }
.troll-selected { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; color: var(--text); background: color-mix(in srgb,var(--accent) 10%,var(--bg-2)); border: 1px solid color-mix(in srgb,var(--accent) 45%,transparent); }
.troll-options { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(220px,1.3fr); gap: 14px; }
.troll-options .field { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.troll-prank-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.troll-prank { display: flex; flex-direction: column; align-items: flex-start; min-height: 220px; padding: 18px; background: linear-gradient(145deg,var(--panel-2),rgba(11,16,25,.85)); border: 1px solid var(--line-strong); clip-path: polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%); }
.troll-emoji { font-size: 1.8rem; }
.troll-prank h3 { margin: 10px 0 6px; }
.troll-prank p { flex: 1; color: var(--muted); font-size: .84rem; }
.troll-prank .btn { width: 100%; }
.troll-note { margin: 0; }
.troll-confetti-layer { position: fixed; z-index: 2000; inset: 0; overflow: hidden; pointer-events: none; }
.troll-confetti-piece { position: absolute; top: -18px; width: 9px; height: 15px; background: var(--confetti-color); opacity: .95; border-radius: 2px; animation: troll-confetti-fall var(--confetti-duration) cubic-bezier(.2,.65,.5,1) var(--confetti-delay) both; }
@keyframes troll-confetti-fall { to { transform: translate3d(var(--confetti-drift),110vh,0) rotate(820deg); opacity: .15; } }
.troll-puff-piece { position: absolute; top: -48px; font-style: normal; font-size: var(--puff-size); filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); animation: troll-puff-fall var(--puff-duration) cubic-bezier(.2,.65,.5,1) var(--puff-delay) both; }
@keyframes troll-puff-fall { to { transform: translate3d(var(--puff-drift),110vh,0) rotate(360deg) scale(.7); opacity: .2; } }
.troll-disco-active::after { content: ''; position: fixed; z-index: 999; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: hue; background: linear-gradient(115deg,#ff2f92,#ffcf4d,#5dffcf,#5d8bff,#be5dff,#ff2f92); background-size: 400% 400%; animation: troll-disco 1.4s linear infinite; }
@keyframes troll-disco { to { background-position: 100% 50%; } }
.troll-wobble-active #app { transform-origin: 50% 35%; animation: troll-wobble .48s ease-in-out infinite alternate; }
@keyframes troll-wobble { from { transform: rotate(-.45deg) translateX(-3px); } to { transform: rotate(.45deg) translateX(3px); } }
.troll-gravity-active .card:not(.troll-prank),.troll-gravity-active .case-card,.troll-gravity-active .stat { animation: troll-float 1.2s ease-in-out infinite alternate; }
@keyframes troll-float { from { transform: translateY(-5px) rotate(-.25deg); } to { transform: translateY(5px) rotate(.25deg); } }
.troll-page-hidden #app,.troll-page-hidden #toasts,.troll-page-hidden .modal-backdrop { visibility: hidden !important; pointer-events: none !important; }
.troll-disappear-layer { z-index: 2600; background: transparent; }
.troll-disappear-layer.is-portal { z-index: 2700; background: radial-gradient(ellipse at center, rgba(15,8,35,.28), rgba(2,4,10,.94) 72%); }
.troll-drop-piece { position: fixed !important; inset: auto !important; right: auto !important; bottom: auto !important; display: block !important; margin: 0 !important; max-width: min(90vw, 620px) !important; overflow: hidden; opacity: .96; pointer-events: none !important; transform-origin: 50% 20%; box-shadow: 0 22px 60px rgba(0,0,0,.45); animation: troll-piece-drop var(--drop-duration) cubic-bezier(.45,.05,.9,.45) var(--drop-delay) both; }
.troll-drop-piece.modal-backdrop,.troll-vacuum-piece.modal-backdrop { max-width: none !important; }
@keyframes troll-piece-drop { 0% { transform: translate3d(0,0,0) rotate(0) scale(1); opacity: 1; } 18% { transform: translate3d(calc(var(--drop-drift)*-.12),-24px,0) rotate(calc(var(--drop-spin)*-.18)) scale(1.04); } 100% { transform: translate3d(var(--drop-drift),115vh,0) rotate(var(--drop-spin)) scale(.78); opacity: .08; } }
.troll-vacuum-piece { position: fixed !important; inset: auto !important; right: auto !important; bottom: auto !important; display: block !important; margin: 0 !important; max-width: min(90vw, 620px) !important; overflow: hidden; opacity: .98; pointer-events: none !important; transform-origin: center; animation: troll-piece-vacuum var(--vacuum-duration) cubic-bezier(.55,0,.92,.22) var(--vacuum-delay) both; }
@keyframes troll-piece-vacuum { 0% { transform: translate3d(0,0,0) rotate(0) scale(1); opacity: 1; filter: blur(0); } 60% { opacity: 1; } 100% { transform: translate3d(var(--vacuum-x),var(--vacuum-y),0) rotate(720deg) scale(.015); opacity: 0; filter: blur(5px); } }
.troll-vacuum-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: clamp(90px,18vw,190px); aspect-ratio: 1; margin: 0; border-radius: 50%; font-size: clamp(4rem,12vw,8rem); line-height: 1; background: radial-gradient(circle, #070812 0 27%, rgba(169,138,255,.22) 34%, rgba(81,224,232,.35) 42%, rgba(169,138,255,.08) 60%, transparent 72%); filter: drop-shadow(0 0 34px rgba(81,224,232,.8)); animation: troll-vortex 1.15s ease-in-out infinite alternate; }
@keyframes troll-vortex { from { transform: translate(-50%,-50%) scale(.78) rotate(-18deg); filter: drop-shadow(0 0 24px rgba(81,224,232,.6)); } to { transform: translate(-50%,-50%) scale(1.18) rotate(24deg); filter: drop-shadow(0 0 54px rgba(169,138,255,.9)); } }
.troll-emoji-storm { z-index: 2700; }
.troll-emoji-piece { position: absolute; top: -70px; font-style: normal; font-size: var(--emoji-size); filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); animation: troll-emoji-fall var(--emoji-duration) cubic-bezier(.18,.65,.5,1) var(--emoji-delay) both; }
@keyframes troll-emoji-fall { 0% { transform: translate3d(0,-8vh,0) rotate(-35deg) scale(.5); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate3d(var(--emoji-drift),115vh,0) rotate(540deg) scale(1.25); opacity: .1; } }
.troll-earthquake-active #app { animation: troll-quake .12s linear infinite; }
@keyframes troll-quake { 0%,100% { transform: translate(0,0) rotate(0); } 20% { transform: translate(5px,-3px) rotate(.15deg); } 40% { transform: translate(-4px,3px) rotate(-.18deg); } 60% { transform: translate(3px,2px) rotate(.12deg); } 80% { transform: translate(-3px,-2px) rotate(-.1deg); } }
.troll-puffzilla-layer { z-index: 2800; }
.troll-puffzilla { position: absolute; left: -45vw; top: 30%; font-size: clamp(5rem, 20vw, 15rem); white-space: nowrap; filter: drop-shadow(0 20px 35px rgba(0,0,0,.62)); animation: troll-puffzilla-run 4.8s cubic-bezier(.2,.7,.3,1) both; }
@keyframes troll-puffzilla-run { 0% { transform: translateX(-30vw) rotate(-12deg) scale(.35); opacity: 0; } 14% { opacity: 1; } 54% { transform: translateX(72vw) rotate(12deg) scale(1.1); } 100% { transform: translateX(170vw) rotate(-8deg) scale(.55); opacity: 0; } }
.troll-parade-layer { z-index: 2900; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px; padding: 5vh 3vw; }
.troll-parade-card { width: min(520px, 88vw); padding: 15px 18px; color: #f8fbff; background: linear-gradient(110deg, #102234, #182133 72%, #27304a); border: 1px solid rgba(81,224,232,.7); border-left: 6px solid #51e0e8; box-shadow: 0 18px 60px rgba(0,0,0,.55); clip-path: polygon(0 0,97% 0,100% 18%,100% 100%,3% 100%,0 82%); animation: troll-news-in .72s cubic-bezier(.16,.84,.35,1.2) var(--parade-delay) both; }
.troll-parade-card b { display: block; margin-bottom: 6px; color: #51e0e8; font-size: .68rem; letter-spacing: .14em; }
.troll-parade-card span { font-size: clamp(.95rem,2.5vw,1.25rem); font-weight: 950; text-transform: uppercase; }
@keyframes troll-news-in { 0% { transform: translateX(120%) rotate(5deg) scale(.7); opacity: 0; } 70% { transform: translateX(-4%) rotate(-1deg) scale(1.02); opacity: 1; } 100% { transform: translateX(0) rotate(0) scale(1); opacity: 1; } }
@media (max-width: 800px) { .troll-prank-grid { grid-template-columns: 1fr; } .troll-prank { min-height: 0; } .troll-options { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .troll-confetti-piece,.troll-puff-piece,.troll-disco-active::after,.troll-wobble-active #app,.troll-gravity-active .card,.troll-gravity-active .case-card,.troll-gravity-active .stat,.troll-drop-piece,.troll-vacuum-piece,.troll-vacuum-core,.troll-emoji-piece,.troll-earthquake-active #app,.troll-puffzilla,.troll-parade-card { animation: none !important; } }

/* Boutons de badges (admin) */
button.bd { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
button.bd:disabled { cursor: default; opacity: .7; }
button.bd .badge { margin-top: 2px; }

/* Icônes image (badges, rangs) */
.ic { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.bd-icon .ic { width: 62px; height: 62px; object-fit: contain; }
.rank-ic { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; }

/* Prévisualisation des images dans l'admin */
.img-preview {
  margin-top: 8px; width: 120px; height: 120px; display: grid; place-items: center; overflow: hidden;
  border: 1px dashed var(--line-strong); background: radial-gradient(circle at 50% 40%, rgba(81,224,232,.12), rgba(255,255,255,.02) 70%);
  color: var(--faint); font-size: .75rem; text-align: center; padding: 6px;
}
.img-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.img-preview.broken img { display: none; }
.img-preview.broken::after { content: 'Image introuvable'; color: var(--danger); font-size: .75rem; }

/* Inventaire regroupé par marque et modèle */
.inv-brand { margin-bottom: 26px; padding: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 8%, transparent), transparent 40%), var(--panel); clip-path: var(--ar-cut); }
.inv-brand-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px 12px; border-bottom: 2px solid color-mix(in srgb, var(--bc) 60%, transparent); margin-bottom: 14px; }
.inv-brand-name { font-weight: 900; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bc); text-shadow: 0 0 14px color-mix(in srgb, var(--bc) 45%, transparent); }
.inv-model { margin-bottom: 16px; }
.inv-model-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }

/* Carte d'objet : étiquettes au-dessus de la photo */
.item-card { display: flex; flex-direction: column; gap: 6px; }
.item-card .tags { position: static !important; max-width: 100%; min-height: 24px; margin-bottom: 8px; }
.item-card .thumb { position: relative; isolation: isolate; overflow: hidden; }
.item-card .thumb img { width: 86%; height: 86%; position: relative; z-index: 1; }

/* =========================================================
   JEUX : mise en page claire (bannière, cartes, historique)
   ========================================================= */
.gm-top { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 12px; margin-bottom: 20px; }
.gm-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); clip-path: var(--ar-cut-sm); }
.gm-kpi span { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gm-kpi strong { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.gm-kpi small { color: var(--muted); font-size: .78rem; }
.gm-bar { height: 6px; background: var(--bg-2); margin: 6px 0; overflow: hidden; }
.gm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #4d8fff); transition: width .6s ease; }

.gm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
.gm-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--panel);
  border: 1px solid var(--line-strong); clip-path: var(--ar-cut); position: relative; }
.gm-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ar-blue); }
.gm-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.gm-title { margin: 4px 0 2px; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.gm-desc { margin: 0; color: var(--muted); font-size: .9rem; }

.gm-stage { position: relative; height: 180px; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(81,224,232,.16), transparent 62%), var(--bg-2); border: 1px solid var(--line); }
.scene { perspective: 900px; width: 110px; height: 110px; will-change: transform; }
.cube { position: relative; width: 110px; height: 110px; transform-style: preserve-3d; transform: rotateX(0deg) rotateY(0deg); }
.cube-face { position: absolute; inset: 0; background: linear-gradient(145deg, #222e46, #0b1020); border: 1px solid rgba(81,224,232,.4);
  border-radius: 14px; box-shadow: inset 0 0 18px rgba(81,224,232,.12); backface-visibility: hidden; }
.pip { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #e9fdff; box-shadow: 0 0 10px #51e0e8; }
.coin { position: relative; width: 110px; height: 110px; transform-style: preserve-3d; }
.coin-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f2c56c 45%, #9a6a1c); border: 4px solid #8a5a12;
  box-shadow: inset 0 0 18px rgba(255,255,255,.35), 0 10px 26px -8px rgba(242,197,108,.6); }
.coin-face.back { transform: rotateY(180deg); }
.coin-face span { font-weight: 900; letter-spacing: .14em; color: #5a3a0a; font-size: .85rem; }
.gm-spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #51e0e8; box-shadow: 0 0 8px #51e0e8;
  animation: gm-burst 1s ease-out forwards; pointer-events: none; }
@keyframes gm-burst { 0% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0); opacity: 0; } }

.gm-block { display: grid; gap: 8px; }
.gm-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.gm-hint { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--faint); }
.gm-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.gm-mode { position: relative; display: grid; gap: 4px; padding: 12px; cursor: pointer; background: var(--bg-2); border: 1px solid var(--line-strong);
  clip-path: var(--ar-cut-sm); transition: border-color .2s, background .2s, transform .15s; }
.gm-mode:hover { border-color: rgba(81,224,232,.5); }
.gm-mode input { position: absolute; opacity: 0; pointer-events: none; }
.gm-mode.on { border-color: var(--accent); background: linear-gradient(180deg, rgba(81,224,232,.14), rgba(77,143,255,.05)); box-shadow: 0 0 0 1px rgba(81,224,232,.25) inset; }
.gm-mode-name { font-weight: 800; }
.gm-mode-meta { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gm-mode-meta b { color: var(--gold); }

.gm-faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.gm-face { padding: 10px 0; font-weight: 900; font-size: 1rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-strong); cursor: pointer; transition: background .15s; }
.gm-face:hover { border-color: var(--accent); }
.gm-face.on { background: var(--ar-blue); color: #04111a; border-color: transparent; }

.gm-stake { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gm-input { width: 130px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gm-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.gm-quick button { padding: 8px 12px; font-weight: 800; font-size: .8rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-strong); cursor: pointer; }
.gm-quick button:hover { border-color: var(--accent); }
.gm-quick button.on { background: var(--ar-blue); color: #04111a; border-color: transparent; }

.gm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.gm-potential { font-size: .85rem; color: var(--muted); }
.gm-pot { color: var(--gold); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.gm-play { min-width: 210px; }
.gm-result { min-height: 58px; text-align: center; display: grid; gap: 2px; place-items: center; }
.gm-win { font-size: 1.6rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 18px rgba(242,197,108,.55); animation: uw-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.gm-lose { font-size: 1.3rem; font-weight: 900; color: var(--danger); animation: uw-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.gm-rolling { font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); animation: ar-live 1s ease-in-out infinite; }

.gm-history { margin-top: 26px; }
.gm-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gm-recent li { display: grid; grid-template-columns: 1.2fr 2fr auto auto; gap: 14px; align-items: center; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); }
.gm-recent li.won { border-left-color: var(--success); }
.gm-recent li.lost { border-left-color: var(--danger); }
.gm-recent li strong { font-variant-numeric: tabular-nums; }
.gm-recent li.won strong { color: var(--success); }
.gm-recent li.lost strong { color: var(--danger); }
.gm-rec-game { font-weight: 800; }
.gm-empty { color: var(--muted); padding: 12px; }

@media (max-width: 1040px) { .gm-top { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .gm-grid { grid-template-columns: 1fr; } .gm-card { padding: 18px; } .gm-recent li { grid-template-columns: 1fr auto; } }
@media (prefers-reduced-motion: reduce) { .gm-spark, .gm-rolling, .gm-win, .gm-lose { animation: none !important; } }

/* Nouveaux mini-jeux : scènes lisibles et animées dans la même direction arcade. */
.gm-stage-slots, .gm-stage-roulette, .gm-stage-rps { overflow: hidden; }
.gm-slots { display: flex; gap: 12px; align-items: center; justify-content: center; }
.gm-slots span { display: grid; place-items: center; width: 72px; height: 82px; color: var(--text); font-size: 2.5rem; font-weight: 900; background: linear-gradient(155deg, #202b3a, #0a1019); border: 1px solid rgba(81,224,232,.38); border-radius: 14px; box-shadow: 0 12px 28px #0008, inset 0 0 24px rgba(81,224,232,.08); }
.gm-wheel-inner { display: flex; align-items: center; justify-content: center; width: 164px; height: 164px; position: relative; border-radius: 50%; border: 8px solid #263347; background: conic-gradient(#f04c68 0 36%, #141c29 36% 72%, #51e0e8 72% 90%, #f04c68 90%); box-shadow: 0 0 32px rgba(81,224,232,.16), inset 0 0 0 4px #0a1018; }
.gm-wheel-inner::after { content: ''; position: absolute; inset: 36%; border-radius: 50%; background: #0c1420; border: 2px solid #fff5; }
.gm-wheel-inner span { position: absolute; left: 50%; top: 16%; z-index: 1; color: white; font-size: .55rem; font-weight: 900; text-shadow: 0 1px 4px #000; transform: translateX(-50%); }
.gm-wheel-inner span:nth-child(2) { left: 77%; top: 64%; }
.gm-wheel-inner span:nth-child(3) { left: 27%; top: 64%; }
.gm-wheel-inner.spinning { animation: gm-wheel-spin 1.8s cubic-bezier(.12,.72,.2,1) both; }
.gm-wheel[data-result="red"] { filter: drop-shadow(0 0 14px #f04c68aa); }
.gm-wheel[data-result="black"] { filter: drop-shadow(0 0 14px #aebbd0aa); }
.gm-wheel[data-result="green"] { filter: drop-shadow(0 0 18px #51e0e8cc); }
@keyframes gm-wheel-spin { to { transform: rotate(1440deg); } }
.gm-rps { display: grid; place-items: center; width: 112px; height: 112px; font-size: 4.3rem; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #28394d, #0b121d 68%); border: 1px solid rgba(81,224,232,.48); box-shadow: 0 0 40px rgba(81,224,232,.16); }
@media (max-width: 480px) { .gm-slots { gap: 7px; } .gm-slots span { width: 58px; height: 68px; font-size: 2rem; } .gm-wheel-inner { width: 145px; height: 145px; } }

/* =========================================================
   PILES D'OBJETS IDENTIQUES (inventaire)
   ========================================================= */
.item-card.stacked { position: relative; }
.item-card.stacked::before, .item-card.stacked::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 6px; bottom: -6px; z-index: -1; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: inherit;
}
.item-card.stacked::before { transform: translate(5px, 5px); opacity: .7; }
.item-card.stacked::after { transform: translate(10px, 10px); opacity: .45; }
.item-card { isolation: isolate; }
.stack-count {
  position: absolute; right: 6px; bottom: 6px; z-index: 3; min-width: 34px; height: 26px; padding: 0 9px;
  display: inline-grid; place-items: center; font-size: .82rem; font-weight: 900; font-variant-numeric: tabular-nums;
  color: #04111a; background: var(--ar-blue); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 6px 16px -6px rgba(81,224,232,.8), 0 0 0 2px var(--panel);
  letter-spacing: .02em;
}
.item-card.stacked:hover { transform: translateY(-3px) translateX(2px); }

/* Sélecteur de quantité */
.qty { display: grid; gap: 4px; }
.qty-row { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: center; }
.qty-btn { height: 56px; font-size: 1.6rem; font-weight: 900; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-strong); cursor: pointer; clip-path: var(--ar-cut-sm); }
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-input { height: 56px; text-align: center; font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.qty-presets { display: flex; gap: 8px; margin-top: 12px; }

/* =========================================================
   SUPPORT : tickets joueurs et espace staff
   ========================================================= */
.st-open { background: rgba(54,217,235,.14); color: #7ef0fb; border-color: rgba(54,217,235,.45); }
.st-claimed { background: rgba(169,138,255,.16); color: #cdbcff; border-color: rgba(169,138,255,.45); }
.st-waiting { background: rgba(242,197,108,.16); color: #ffd978; border-color: rgba(242,197,108,.5); }
.st-closed { background: rgba(140,155,176,.14); color: var(--muted); border-color: var(--line-strong); }
.sup-status { display: inline-flex; align-items: center; padding: 4px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  border: 1px solid; border-radius: 999px; white-space: nowrap; }
.sup-urg { display: inline-block; padding: 2px 7px; font-size: .62rem; font-weight: 900; letter-spacing: .1em; font-style: normal;
  color: #fff; background: linear-gradient(135deg, #ff4d5e, #b0102a); border-radius: 4px; }

/* Joueur : liste */
.sup-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; align-items: start; }
.sup-list-card { min-height: 320px; }
.sup-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sup-item { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); clip-path: var(--ar-cut-sm); transition: transform .15s, border-color .2s; }
.sup-item:hover { transform: translateX(3px); border-color: rgba(54,217,235,.45); text-decoration: none; }
.sup-item.unread { border-left: 3px solid var(--accent); }
.sup-item-cat { font-size: 1.5rem; text-align: center; }
.sup-item-main { display: grid; gap: 4px; min-width: 0; }
.sup-item-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sup-item-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: 0 0 auto; }
.sup-tips { display: grid; gap: 12px; }
.sup-tip { display: grid; gap: 2px; padding: 12px; background: var(--bg-2); border-left: 2px solid var(--accent); }
.sup-tip strong { font-size: .9rem; }

/* Modal de création */
.sup-form { display: grid; gap: 16px; }
.sup-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.sup-cat { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 8px; cursor: pointer; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line-strong); clip-path: var(--ar-cut-sm); transition: border-color .2s, background .2s; }
.sup-cat input { position: absolute; opacity: 0; pointer-events: none; }
.sup-cat span { font-size: 1.4rem; }
.sup-cat em { font-style: normal; font-weight: 800; font-size: .8rem; }
.sup-cat:has(input:checked) { border-color: var(--accent); background: rgba(54,217,235,.1); box-shadow: 0 0 0 1px rgba(54,217,235,.3) inset; }
.sup-cat:hover { border-color: rgba(54,217,235,.45); }
.sup-count { text-align: right; font-size: .75rem; color: var(--faint); font-variant-numeric: tabular-nums; }

/* Conversation (joueur) */
.sup-back { display: inline-block; margin-bottom: 12px; font-weight: 800; }
.sup-thread { display: grid; gap: 14px; padding: 0; overflow: hidden; }
.sup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.sup-title { margin: 4px 0 0; font-size: 1.35rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.sup-convo { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px; min-height: 340px; max-height: 58vh; overflow-y: auto; scroll-behavior: smooth; }
.sup-msg { display: grid; gap: 4px; max-width: 78%; }
.sup-msg.mine { margin-left: auto; justify-items: end; }
.sup-msg.other, .sup-msg.staff { margin-right: auto; }
.sup-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.sup-grade { display: inline-flex; align-items: center; min-height: 19px; padding: 1px 7px; border-radius: 3px; background: color-mix(in srgb, var(--sup-grade-color, #94a3b8) 18%, #17130e); border: 1px solid color-mix(in srgb, var(--sup-grade-color, #94a3b8) 42%, transparent); color: var(--sup-grade-color, #d1d5db); font-size: .62rem; font-weight: 900; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; }
.sup-bubble { padding: 11px 15px; line-height: 1.5; white-space: normal; word-break: break-word; border: 1px solid var(--line); background: var(--panel-2); clip-path: var(--ar-cut-sm); }
.sup-msg.mine .sup-bubble { background: linear-gradient(135deg, rgba(54,217,235,.22), rgba(77,143,255,.18)); border-color: rgba(54,217,235,.4); }
.sup-msg.staff .sup-bubble { background: linear-gradient(135deg, rgba(169,138,255,.16), rgba(54,217,235,.08)); border-color: rgba(169,138,255,.35); }
.sup-msg time, .sup-note time, .sup-sys time { font-size: .68rem; color: var(--faint); }
.sup-sys { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.sup-sys span { padding: 5px 12px; font-size: .78rem; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.sup-note { max-width: 84%; display: grid; gap: 4px; padding: 10px 14px; background: rgba(242,197,108,.08); border: 1px dashed rgba(242,197,108,.55); clip-path: var(--ar-cut-sm); }
.sup-note .sup-who { color: #ffd978; }
.sup-reply { display: grid; gap: 10px; padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--panel); }
.sup-reply textarea, .sup-compose textarea { resize: vertical; min-height: 84px; }
.sup-reply-foot, .sup-compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sup-closed { display: grid; justify-items: start; gap: 10px; padding: 18px 22px 22px; border-top: 1px solid var(--line); color: var(--muted); }
.sup-closed p { margin: 0; }

/* Staff : mise en page */
.sup-admin { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 14px; align-items: start; }
.sup-queue { padding: 16px; display: grid; gap: 12px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: hidden; grid-template-rows: auto auto auto 1fr; }
.sup-queue-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sup-queue-title { margin: 0; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.sup-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.sup-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; font-size: .74rem; font-weight: 800; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line-strong); cursor: pointer; clip-path: var(--ar-cut-sm); }
.sup-filters button.on { color: #04111a; background: var(--ar-blue); border-color: transparent; }
.sup-filters b { font-variant-numeric: tabular-nums; min-width: 1ch; font-size: .72rem; color: var(--accent); }
.sup-filters button.on b { color: #04111a; }
.sup-search { width: 100%; }
.sup-qlist { display: grid; gap: 8px; align-content: start; overflow-y: auto; padding-right: 2px; }
.sup-qitem { display: grid; gap: 6px; text-align: left; padding: 12px 14px; color: var(--text); cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid transparent; clip-path: var(--ar-cut-sm); transition: background .15s, border-color .15s; }
.sup-qitem:hover { background: rgba(54,217,235,.06); }
.sup-qitem.on { border-color: rgba(54,217,235,.5); border-left-color: var(--accent); background: rgba(54,217,235,.08); }
.sup-qitem.urgent { border-left-color: #ff4d5e; }
.sup-qitem.unread b { color: #fff; }
.sup-qtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sup-qtop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-qmeta { font-size: .8rem; color: var(--muted); }
.sup-qfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sup-detail { padding: 0; min-height: 520px; overflow: hidden; }
.sup-d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.sup-d-head h2 { margin: 4px 0 8px; font-size: 1.3rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.sup-d-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sup-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.sup-owner { font-size: .85rem; color: var(--muted); }
.sup-d-body { display: grid; grid-template-columns: minmax(0,1fr) 260px; }
.sup-d-main { display: grid; grid-template-rows: auto auto; min-width: 0; border-right: 1px solid var(--line); }
.sup-d-main .sup-convo { min-height: 380px; max-height: 52vh; }
.sup-compose { display: grid; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line); background: var(--panel); }
.sup-modes { display: inline-flex; width: max-content; padding: 3px; gap: 3px; background: var(--bg-2); border: 1px solid var(--line-strong); }
.sup-modes button { padding: 7px 12px; font-size: .76rem; font-weight: 800; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.sup-modes button.on { color: #04111a; background: var(--ar-blue); }
.sup-macros { display: flex; flex-wrap: wrap; gap: 6px; }
.sup-macro { padding: 5px 10px; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; }
.sup-macro:hover { color: var(--text); border-color: rgba(54,217,235,.45); }
.sup-compose textarea { width: 100%; }
.sup-d-side { display: grid; align-content: start; gap: 12px; padding: 14px; background: var(--bg-2); }
.sup-card { display: grid; gap: 8px; padding: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.sup-card-title { font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sup-player { display: flex; gap: 12px; align-items: center; }
.sup-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(54,217,235,.5); flex: 0 0 auto; }
.sup-avatar-ph { display: grid; place-items: center; font-weight: 900; background: var(--panel); color: var(--accent); }
.sup-pname { font-weight: 900; font-size: 1rem; color: var(--text); }
.sup-kv { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.sup-kv b { color: var(--text); text-align: right; }

@media (max-width: 1100px) {
  .sup-admin { grid-template-columns: 1fr; }
  .sup-queue { position: static; max-height: none; }
  .sup-qlist { max-height: 340px; }
  .sup-d-body { grid-template-columns: 1fr; }
  .sup-d-main { border-right: 0; }
}
@media (max-width: 860px) {
  .sup-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sup-msg { max-width: 92%; }
  .sup-head, .sup-d-head { padding: 14px; }
  .sup-convo { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sup-item, .sup-dot, .sup-qitem { transition: none !important; } }
