/* ==========================================================================
   Vitrine des trophées : trophées (modèles néon et acier, image envoyée), vitrine d'une équipe ou d'un profil,
   fenêtre de détail, trophée sur la page du tournoi, choix du trophée par l'organisation.
   Les trophées sont exposés comme dans une vitrine de musée : niche sombre, faisceau de lumière, reflet du socle.
   ========================================================================== */

:root {
  --t-cyan: 63 212 255;
  --t-magenta: 200 75 255;
  --t-copper: 227 154 99;
  --t-steel: 201 208 219;
  --t-gold: 255 200 87;
  --t-niche-top: #03050A;
  --t-niche-bottom: #0B101A;
}

/* --- Trophée -------------------------------------------------------------------------- */
.trophy {
  position: relative; flex: none;
  height: 100%; aspect-ratio: 1 / 2;
  user-select: none;
}
.trophy__img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; -webkit-user-drag: none; }
.trophy--image { aspect-ratio: auto; width: 100%; }
.trophy__img--custom { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }

/* Texte gravé (SVG dans le repère de l'image 400 × 800) : suit la taille du trophée, sans taille minimale du navigateur */
.trophy__plate { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trophy__t { font-family: var(--font); font-variation-settings: "SHRP" 100; text-anchor: middle; font-weight: 760; }
.trophy--neon .trophy__t { fill: #E8EEFF; }
.trophy--neon .trophy__t--winner { fill: #F6F8FF; letter-spacing: .035em; text-shadow: 0 0 5px rgb(var(--t-cyan) / .65); }
.trophy--neon .trophy__t--game { fill: #D9E8FF; font-weight: 640; letter-spacing: .09em; }
.trophy--neon .trophy__t--season { font-weight: 700; letter-spacing: .15em; }
.trophy--neon .trophy__t--year { font-weight: 700; letter-spacing: .18em; text-shadow: 0 0 5px rgb(var(--t-magenta) / .6); }
.trophy--acier .trophy__t { fill: #2F3238; text-shadow: 0 .8px 0 rgba(255, 255, 255, .55), 0 -.4px 0 rgba(0, 0, 0, .3); }
.trophy--acier .trophy__t--season { font-weight: 700; letter-spacing: .24em; }
.trophy--acier .trophy__t--year { font-weight: 800; letter-spacing: .03em; }
.trophy--acier .trophy__t--winner { letter-spacing: .035em; }
.trophy--acier .trophy__t--name { font-weight: 680; letter-spacing: .07em; }

/* --- Vitrine : en-tête avec les chiffres ------------------------------------------------ */
.trophy-hall {
  position: relative; isolation: isolate; overflow: hidden;
  container-type: inline-size;
  display: grid; gap: 22px; align-items: center;
  padding: 24px 20px; margin-bottom: 20px;
  background:
    radial-gradient(380px 240px at 100% 0, rgb(var(--t-cyan) / .16), transparent 70%),
    radial-gradient(380px 240px at 0 100%, rgb(var(--t-magenta) / .13), transparent 70%),
    linear-gradient(135deg, #0F1422, #090C14);
  box-shadow: inset 0 0 0 1px rgb(var(--t-cyan) / .2);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.trophy-hall::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.trophy-hall__title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.5rem, 1.1rem + 2cqw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: .005em; font-variation-settings: "SHRP" 100; }
.trophy-hall__title .icon { width: 1em; height: 1em; color: rgb(var(--t-gold)); filter: drop-shadow(0 0 10px rgb(var(--t-gold) / .45)); }
.trophy-hall__lead { margin: 10px 0 0; max-width: 56ch; color: var(--steel); font-size: var(--fs-sm); }
.trophy-hall__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
@container (min-width: 520px) { .trophy-hall__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 900px) {
  .trophy-hall { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 34px 36px; }
}
.trophy-stat {
  --tone: var(--frost);
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px;
  padding: 14px 12px; text-align: center;
  background: rgba(6, 8, 14, .72); border: 1px solid var(--line);
  transition: border-color .25s;
}
.trophy-stat:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); }
.trophy-stat dt { font-size: var(--fs-xs); color: var(--steel); line-height: 1.3; }
.trophy-stat dd { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--tone); font-variant-numeric: tabular-nums; font-variation-settings: "SHRP" 100; }
.trophy-stat--ice { --tone: rgb(var(--t-cyan)); }
.trophy-stat--volt { --tone: rgb(var(--t-magenta)); }
.trophy-stat--gold { --tone: rgb(var(--t-gold)); }
.trophy-stat--steel { --tone: #DCE3EF; }

/* Étincelles qui montent (décor) */
.trophy-hall__sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.trophy-hall__sparks i {
  position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%;
  background: rgb(var(--t-cyan)); box-shadow: 0 0 7px 1px rgb(var(--t-cyan) / .7);
  opacity: 0; animation: trophy-spark var(--d) linear var(--t) infinite;
}
.trophy-hall__sparks i.is-volt { background: rgb(var(--t-magenta)); box-shadow: 0 0 7px 1px rgb(var(--t-magenta) / .7); }
@keyframes trophy-spark {
  0% { transform: translate3d(0, 24px, 0); opacity: 0; }
  20% { opacity: .75; }
  80% { opacity: .45; }
  100% { transform: translate3d(14px, -110px, 0); opacity: 0; }
}

/* --- Filtres -------------------------------------------------------------------------- */
.trophy-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.trophy-filters[hidden] { display: none; }
.trophy-filters .pill .count { font-size: 11px; color: inherit; opacity: .75; font-variant-numeric: tabular-nums; }
.trophy-filters__search { position: relative; display: block; width: 100%; }
@media (min-width: 700px) { .trophy-filters__search { width: 250px; } }
.trophy-filters__search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--steel-dim); pointer-events: none; }
.trophy-filters__search .input { padding-left: 36px; height: 38px; }

/* --- Cartes de la vitrine --------------------------------------------------------------- */
.trophy-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
@media (max-width: 520px) { .trophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.trophy-card {
  --accent: var(--t-cyan); --accent-2: var(--t-magenta);
  --edge: var(--line);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--edge);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.trophy-card::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0;
  background: linear-gradient(160deg, rgb(var(--accent) / .95), var(--line) 40%, var(--line) 62%, rgb(var(--accent-2) / .8));
  transition: opacity .3s;
}
.trophy-card:hover::after, .trophy-card:focus-within::after { opacity: 1; }
.trophy-card[hidden] { display: none; }
.trophy-card::before {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  background: linear-gradient(180deg, #111725, #0C111B);
  clip-path: polygon(0 0, calc(100% - 13.6px) 0, 100% 13.6px, 100% 100%, 13.6px 100%, 0 calc(100% - 13.6px));
}
.trophy-card--acier { --accent: var(--t-copper); --accent-2: var(--t-steel); }
.trophy-card--image { --accent: var(--t-gold); --accent-2: var(--t-cyan); }
.trophy-card.is-interactive { cursor: pointer; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .trophy-card:hover { transform: perspective(900px) translateY(-6px) rotateX(3deg) rotateY(-2deg); }
  .trophy-card:hover .trophy { transform: translateY(-4px) scale(1.035); }
}

/* Niche : faisceau de lumière, halo du socle, reflet sur la vitre */
.trophy-card__case {
  position: relative; overflow: hidden; height: 300px;
  background:
    radial-gradient(55% 22% at 50% 96%, rgb(var(--accent) / .3), transparent 75%),
    radial-gradient(70% 55% at 50% 42%, rgb(var(--accent-2) / .09), transparent 72%),
    linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom));
}
@media (max-width: 520px) { .trophy-card__case { height: 250px; } }
.trophy-card__case::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 82%; height: 92%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgb(var(--accent) / .2), rgb(var(--accent) / .04) 60%, transparent 85%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.trophy-card__case::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .07) 46%, transparent 54%);
  transform: translateX(-60%);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.trophy-card:hover .trophy-card__case::after { transform: translateX(60%); }
.trophy-card__labels { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trophy-card__season { white-space: nowrap; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: rgb(var(--accent)); background: rgb(var(--accent) / .1); box-shadow: inset 0 0 0 1px rgb(var(--accent) / .35); font-variation-settings: "SHRP" 90; }
.trophy-card__stage { position: absolute; inset: 38px 8px 14px; display: flex; align-items: flex-end; justify-content: center; }
.trophy-card__stage::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 64%; height: 14px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent);
}
.trophy-card .trophy { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.trophy-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 16px 12px; border-top: 1px solid rgba(255, 255, 255, .05); }
.trophy-card__title { margin: 0; font-size: var(--fs-base); line-height: 1.3; font-variation-settings: "SHRP" 80; }
.trophy-card__title a { color: var(--frost); }
.trophy-card__title a:hover { color: rgb(var(--accent)); text-decoration: none; }
.trophy-card__meta { margin: 0; font-size: var(--fs-xs); color: var(--steel); }
.trophy-card__feat { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: #C9D3E4; }
.trophy-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: auto; }
.trophy-card__actions:empty { display: none; }
.trophy-card__inspect, .trophy-card__edit {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 0 2px;
  font: inherit; font-size: var(--fs-xs); font-weight: 600; color: var(--steel); background: none; border: 0; cursor: pointer;
}
.trophy-card__inspect[hidden] { display: none; }
.trophy-card__inspect:hover, .trophy-card:hover .trophy-card__inspect, .trophy-card__edit:hover { color: var(--frost); text-decoration: none; }
.trophy-card__inspect .icon, .trophy-card__edit .icon { width: 15px; height: 15px; color: rgb(var(--accent)); }
.trophy-card__edit .icon { color: rgb(var(--t-gold)); }
@media (max-width: 520px) { .trophy-card__more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } }

/* Allumage des vitrines à l'arrivée (une seule fois) */
@media (prefers-reduced-motion: no-preference) {
  .trophy-card__case::before { animation: trophy-fade 1.2s ease-out backwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .trophy-card .trophy { animation: trophy-rise .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
}
@keyframes trophy-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.trophy-none { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 16px; text-align: center; color: var(--steel); }
.trophy-none[hidden] { display: none; }
.trophy-none p { margin: 0; }

/* Aucun trophée */
.trophy-empty { display: flex; align-items: center; gap: 20px; padding: 22px; background: var(--bg-2); border: 1px dashed var(--line-strong); }
.trophy-empty h3 { margin: 0 0 6px; font-size: var(--fs-md); }
.trophy-empty p { margin: 0; font-size: var(--fs-sm); color: var(--steel); max-width: 52ch; }
.trophy-empty__case { flex: none; height: 120px; opacity: .35; filter: grayscale(.6); }

.trophy-teamwins { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 12px 14px; font-size: var(--fs-sm); color: var(--steel); background: var(--bg-2); border-left: 2px solid rgb(var(--t-cyan) / .6); }
.trophy-teamwins .icon { flex: none; margin-top: 2px; color: rgb(var(--t-cyan)); }

/* --- Fenêtre de détail ------------------------------------------------------------------ */
.trophy-dialog {
  width: min(940px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; background: transparent; color: var(--frost); overflow: visible;
}
.trophy-dialog::backdrop { background: rgba(2, 4, 9, .8); backdrop-filter: blur(5px); }
@media (prefers-reduced-motion: no-preference) {
  .trophy-dialog[open] { animation: trophy-dialog-in .32s cubic-bezier(.2, .8, .2, 1); }
  .trophy-dialog[open]::backdrop { animation: trophy-fade .32s ease-out; }
}
@keyframes trophy-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes trophy-fade { from { opacity: 0; } to { opacity: 1; } }
.trophy-dialog__close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: grid; place-items: center; width: 40px; height: 40px;
  color: var(--frost); background: rgba(6, 8, 14, .85); border: 1px solid var(--line-strong); cursor: pointer;
}
.trophy-dialog__close:hover { border-color: var(--ice); color: var(--ice); }
.trophy-dialog__close:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }
.trophy-detail {
  --accent: var(--t-cyan); --accent-2: var(--t-magenta);
  display: grid; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #121826, #0B0F18);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.trophy-detail--acier { --accent: var(--t-copper); --accent-2: var(--t-steel); }
.trophy-detail--image { --accent: var(--t-gold); --accent-2: var(--t-cyan); }
.trophy-detail__case {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 56px 16px 18px;
  background:
    radial-gradient(55% 18% at 50% 88%, rgb(var(--accent) / .32), transparent 75%),
    radial-gradient(65% 50% at 50% 40%, rgb(var(--accent-2) / .12), transparent 72%),
    linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom));
}
.trophy-detail__case::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 80%; height: 90%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgb(var(--accent) / .22), transparent 80%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); pointer-events: none;
}
.trophy-detail__stage { position: relative; height: min(46vh, 420px); display: flex; align-items: flex-end; justify-content: center; }
.trophy-detail__series { position: relative; margin: 0; padding: 4px 12px; font-size: var(--fs-xs); font-weight: 650; color: rgb(var(--accent)); background: rgb(var(--accent) / .1); box-shadow: inset 0 0 0 1px rgb(var(--accent) / .4); }
.trophy-detail__info { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 20px; }
.trophy-detail__season { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: rgb(var(--accent)); }
.trophy-detail__title { margin: -6px 0 0; padding-right: 36px; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); line-height: 1.15; font-variation-settings: "SHRP" 100; }
.trophy-detail__winner { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; font-size: var(--fs-sm); color: #D7DFEC; }
.trophy-detail__winner .icon { color: rgb(var(--t-gold)); }
.trophy-detail__winner strong { color: var(--frost); }
.trophy-detail__facts { display: grid; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trophy-detail__facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: var(--fs-sm); }
.trophy-detail__facts > div + div { border-top: 1px solid rgba(255, 255, 255, .04); }
.trophy-detail__facts dt { color: var(--steel); }
.trophy-detail__facts dd { margin: 0; text-align: right; color: var(--frost); }
.trophy-detail__score { color: rgb(var(--accent)); font-variant-numeric: tabular-nums; }
.trophy-detail__subtitle { margin: 0; font-size: var(--fs-sm); color: var(--steel); font-weight: 650; }
.trophy-detail__roster { list-style: none; margin: -4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.trophy-detail__roster .user-chip { width: 100%; gap: 8px; padding: 6px 8px; background: rgba(6, 8, 14, .7); border: 1px solid var(--line); }
.trophy-detail__roster .user-chip:hover { border-color: rgb(var(--accent) / .6); }
.trophy-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
@media (min-width: 760px) {
  .trophy-detail { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); overflow: hidden; }
  .trophy-detail__case { padding: 56px 20px 22px; border-right: 1px solid var(--line); }
  .trophy-detail__stage { height: min(62vh, 540px); }
  .trophy-detail__info { justify-content: center; overflow: auto; padding: 30px 28px 24px; }
}

/* --- Page du tournoi, présentation d'équipe ---------------------------------------------- */
.trophy-side__case, .trophy-awarded__case {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; height: 280px; padding: 18px 0 10px;
  background: radial-gradient(55% 18% at 50% 92%, rgb(var(--t-cyan) / .3), transparent 75%), linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom));
}
.trophy-side__case--acier, .trophy-awarded--acier .trophy-awarded__case { background: radial-gradient(55% 18% at 50% 92%, rgb(var(--t-copper) / .32), transparent 75%), linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom)); }
.trophy-side__case--image, .trophy-awarded--image .trophy-awarded__case { background: radial-gradient(55% 18% at 50% 92%, rgb(var(--t-gold) / .26), transparent 75%), linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom)); }
.trophy-awarded { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 24px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.trophy-awarded__case { height: 240px; }
.trophy-awarded__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: rgb(var(--t-gold)); }
.trophy-awarded__title { margin: 0 0 6px; font-size: var(--fs-lg); line-height: 1.25; }
@media (max-width: 480px) { .trophy-awarded { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; } .trophy-awarded__case { height: 190px; } }

.trophy-teaser__shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trophy-teaser__item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 12px 6px 8px; text-align: center;
  background: radial-gradient(60% 20% at 50% 70%, rgb(var(--t-cyan) / .25), transparent 75%), linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom));
  border: 1px solid var(--line);
}
.trophy-teaser__item--acier { background: radial-gradient(60% 20% at 50% 70%, rgb(var(--t-copper) / .28), transparent 75%), linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom)); }
.trophy-teaser__item--image { background: radial-gradient(60% 20% at 50% 70%, rgb(var(--t-gold) / .22), transparent 75%), linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom)); }
.trophy-teaser__item:hover { text-decoration: none; border-color: var(--line-strong); }
.trophy-teaser__item .trophy { height: 100px; }
.trophy-teaser__name { font-size: 11px; line-height: 1.3; color: var(--steel); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trophy-teaser__item:hover .trophy-teaser__name { color: var(--frost); }

/* --- Choix du trophée (organisation) ------------------------------------------------------ */
.trophy-edit { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.trophy-edit__current .trophy-side__case { height: 300px; }
@media (max-width: 760px) {
  .trophy-edit { grid-template-columns: minmax(0, 1fr); }
  .trophy-edit__current .trophy-side__case { height: 240px; }
}
.trophy-picker__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin: 12px 0; }
.trophy-picker .file-drop { max-width: 640px; }
.trophy-option {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px 10px; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom)); border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
.trophy-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.trophy-option:hover { border-color: var(--line-strong); }
.trophy-option:has(input:checked) { border-color: var(--ice); box-shadow: inset 0 0 0 1px var(--ice), 0 0 18px rgba(118, 215, 255, .18); }
.trophy-option:has(input:focus-visible) { outline: 2px solid var(--frost); outline-offset: 2px; }
.trophy-option__stage { display: flex; align-items: flex-end; justify-content: center; height: 120px; width: 100%; }
.trophy-option__stage .trophy { height: 100%; }
.trophy-option__custom { max-height: 100%; max-width: 100%; object-fit: contain; }
.trophy-option__upload { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 30px; color: var(--steel); border: 1px dashed var(--line-strong); }
.trophy-option__upload .icon { width: 24px; height: 24px; }
.trophy-option__name { font-size: var(--fs-sm); font-weight: 650; color: var(--frost); }
.trophy-option:has(input:checked) .trophy-option__name { color: var(--ice); }
.trophy-option__note { margin-top: -4px; font-size: 11px; color: var(--steel); }
.trophy-option--official .trophy-option__note { color: var(--gold); }
.trophy-picker__options.has-error .trophy-option { border-color: var(--danger); }
.trophy-picker [data-trophy-upload][hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .trophy-hall__sparks i { animation: none; opacity: .3; }
  .trophy-card, .trophy-card .trophy, .trophy-card__case::after { transition: none; }
}

/* --- Administration › Trophées ------------------------------------------------------------ */
.trophy-admin-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 28px; max-width: 780px; }
.trophy-admin-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.trophy-admin-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); }
.trophy-admin-card.is-default { border-color: rgba(148, 117, 255, .55); }
.trophy-admin-card.is-official { border-color: rgba(255, 200, 87, .45); }
.trophy-admin-card__stage {
  display: flex; align-items: flex-end; justify-content: center; height: 260px; padding: 16px 0 10px;
  background: radial-gradient(55% 18% at 50% 92%, rgb(var(--t-cyan) / .22), transparent 75%), linear-gradient(180deg, var(--t-niche-top), var(--t-niche-bottom));
}
.trophy-admin-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.trophy-admin-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-md); }
.trophy-admin-thumb { display: flex; align-items: flex-end; justify-content: center; flex: none; width: 48px; height: 72px; background: var(--t-niche-top); }
.trophy-admin-thumb .trophy { height: 100%; }
