


.room-card.champ {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(232, 207, 146, .6);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232, 207, 146, .22), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(201, 162, 77, .14), transparent 60%),
    linear-gradient(165deg, #231c0f, #141210 60%, #0f0d0a);
  box-shadow: 0 0 0 1px rgba(201, 162, 77, .18), 0 14px 32px -18px rgba(212, 175, 90, .55);
}
.room-card.champ::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(255, 243, 196, .16), transparent 30%, transparent 70%, rgba(255, 243, 196, .1));
}
.champ-shine {
  position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .16), transparent);
  transform: translateX(0) rotate(18deg);
  animation: champ-sweep 5.5s ease-in-out infinite;
}
@keyframes champ-sweep { 0%, 55% { transform: translateX(0) rotate(18deg); } 100% { transform: translateX(420%) rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .champ-shine { animation: none; display: none; } }
.room-card.champ > *:not(.champ-shine):not(.cbg) { position: relative; z-index: 1; }
.room-card.champ h4 { color: var(--gold-hi); }
.champ-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font: 700 12px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: #1a1305; background: linear-gradient(180deg, #f0d58a, #c9a24d);
}
.champ-tag .ic { width: 13px; height: 13px; }
.champ-sect .sec-head h3 .ic { color: var(--gold); }
.room-hero.champ { border-color: rgba(232, 207, 146, .5); background: radial-gradient(120% 90% at 50% 0%, rgba(232, 207, 146, .16), transparent 60%), var(--surface); }
.champ-cta b.gold .ic { color: var(--gold); }


.champ-slots .card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.champ-slots .card-h .btn { margin-left: auto; }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot, .slot-pick li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.slot.mine { border-color: rgba(212, 175, 90, .6); background: linear-gradient(90deg, rgba(212, 175, 90, .1), var(--surface-2)); }
.slot.empty { opacity: .6; }
.slot-n {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font: 800 16px/1 var(--display); color: #fff; background: #b8192f;
}
.slot.empty .slot-n { background: var(--surface-3); color: var(--muted); }
.slot .grow, .slot-pick .grow { min-width: 0; display: grid; gap: 3px; }
.slot b { font-weight: 700; overflow-wrap: anywhere; }
.slot-tag { font: 700 11px/1 var(--display); letter-spacing: .06em; color: var(--gold); border: 1px solid rgba(212, 175, 90, .45); border-radius: 5px; padding: 2px 5px; margin-right: 6px; vertical-align: 2px; }
.slot-members { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--text-2); }
.sm-p { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.sm-p .ic { width: 12px; height: 12px; color: var(--gold); }
.slot-side { flex: none; display: flex; align-items: center; gap: 6px; }
.slot-side small { font: 700 13px/1 var(--display); }
.slot-pick { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.slot-pick small { color: var(--muted); font-size: 12px; }


.champ-standing .card-h { display: flex; align-items: baseline; gap: 8px; }
.champ-standing .card-h .muted { margin-left: auto; }
.champ-table { display: grid; gap: 4px; font-size: 14px; }
.champ-table .ct-h, .champ-table .ct-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px 40px 50px 46px; align-items: center; gap: 4px; }
.champ-table .ct-h { padding: 6px 8px; border-radius: 8px; background: var(--text); color: #15120d; font: 800 11px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.champ-table .ct-h span:nth-child(n+3), .champ-table .ct-r > :nth-child(n+3) { text-align: center; }
.champ-table .ct-r { padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }
.champ-table .ct-r.first { box-shadow: inset 0 0 0 1.5px var(--gold); }
.ct-pos { display: grid; place-items: center; height: 26px; border-radius: 6px; background: #b8192f; color: #fff; font: 800 15px/1 var(--display); }
.ct-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ct-name small { color: var(--gold); font: 700 11px/1 var(--display); margin-right: 5px; }
.champ-table .ct-r b { color: var(--gold-hi); font: 800 16px/1 var(--display); }
.champ-table.sm { margin-bottom: 12px; }
@media (max-width: 380px) { .champ-table .ct-h, .champ-table .ct-r { grid-template-columns: 30px minmax(0, 1fr) 38px 34px 42px 40px; font-size: 13px; } }
.frag-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.frag-list li { display: flex; align-items: center; gap: 8px; }
.frag-list .grow { min-width: 0; display: grid; }
.frag-list small { color: var(--muted); font-size: 12px; }
.frag-list b.gold { font: 800 18px/1 var(--display); }


.champ-manage .btn-row { flex-wrap: wrap; }
.drop-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.drop-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.drop-n { font: 800 14px/1 var(--display); color: #1a1305; background: var(--gold-grad); border-radius: 6px; padding: 5px 7px; }
.code-box { margin-top: 12px; }
.code-box summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.code-slot { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.code-slot-h { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; background: var(--surface-2); border: 1px dashed rgba(212, 175, 90, .45); }
.code-chip.used { opacity: .55; border-style: solid; }
.code-chip small { color: var(--muted); font-size: 12px; }
.code-dump { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; font: 13px/1.5 var(--code); max-height: 50vh; overflow: auto; }
.champ-switch small { display: block; }
.champ-fixed { display: flex; align-items: center; gap: 6px; margin: 0; min-height: 44px; color: var(--text-2); }


.ai-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid rgba(212, 175, 90, .4); background: rgba(212, 175, 90, .06); }
.ai-box .grow { min-width: 0; display: grid; flex: 1 1 160px; }
.ai-box small { color: var(--muted); font-size: 12px; }
.ai-warn { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--gold-hi); }
.ai-warn li { display: flex; gap: 6px; align-items: flex-start; }
.ai-warn .ic { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.print-mini { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.print-mini li { flex: none; display: grid; gap: 3px; justify-items: center; }
.print-mini img { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); display: block; }
.print-mini small { color: var(--muted); font-size: 11px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-teams { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt { border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); padding: 8px 10px; display: grid; gap: 6px; }
.dt-h { display: flex; align-items: center; gap: 8px; }
.dt-h b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dt-pos { margin: 0; width: 84px; flex: none; }
.dt-p { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dt-p .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.banner-btn { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--r-sm); border: 1px solid rgba(212, 175, 90, .35); background: linear-gradient(160deg, #1d180f, var(--surface-2)); color: var(--text); font: 600 14px/1.2 var(--body); text-align: left; cursor: pointer; min-height: 48px; }
.banner-btn .ic { flex: none; color: var(--gold); }
.banner-full { display: block; width: 100%; height: auto; border-radius: var(--r-sm); margin-bottom: 12px; }
.team-logo-row { display: flex; align-items: center; gap: 12px; }
.team-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 2px solid rgba(212, 175, 90, .6); }
.team-logo.empty { display: grid; place-items: center; background: var(--surface-2); font: 800 20px/1 var(--display); color: var(--gold); }
.champ-print .btn input { display: none; }


:root[data-theme="light"] .room-card.champ { background: radial-gradient(120% 90% at 100% 0%, rgba(201, 162, 77, .25), transparent 55%), linear-gradient(165deg, #fff8e6, #fff); }
:root[data-theme="light"] .room-card.champ h4 { color: #6e5520; }
.slot.empty .slot-n { width: auto; min-width: 30px; padding: 0 6px; font-size: 14px; }
a.btn { text-decoration: none; }
