/* ── Page hero (matches site-wide tdps-hero pattern) ── */
.tdps-hero {
  max-width: 2000px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.tdps-hero__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(184, 68, 74, 0.13), transparent 55%),
    linear-gradient(160deg, var(--aw-bg-3, #1a1a1f) 0%, var(--aw-bg-2, #141417) 100%);
  border: 1px solid rgba(184, 68, 74, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(184, 68, 74, 0.08) inset;
}

.tdps-hero__inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--aw-accent, #b8444a) 35%, #c84b52 65%, transparent 100%);
}

.tdps-hero__left {
  flex: 1;
  min-width: 0;
}

.tdps-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aw-accent, #b8444a);
}

.tdps-hero__kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aw-accent, #b8444a);
  box-shadow: 0 0 10px rgba(184, 68, 74, 0.75);
  animation: tdps-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes tdps-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

.tdps-hero__title {
  margin: 0 0 0.85rem 0;
  font-family: var(--aw-font-display, 'Playfair Display', serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--aw-ink, #f4ede4);
  letter-spacing: 0;
}

.tdps-hero__desc {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--aw-ink-dim, #cdc6bd);
  max-width: none;
  width: 100%;
}

@media (max-width: 600px) {
  .tdps-hero { padding: 0.75rem 0.75rem 0; }
  .tdps-hero__inner { padding: 1.5rem 1.25rem; }
}

/* ── Tool wrapper ── */
.tierlist-root {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
}

/* ================================================ */
.tierlist-root {
  --gutter: 14px;
  --radius-lg: 12px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-1: 0 4px 14px rgba(0,0,0,.28);
  --shadow-2: 0 10px 28px rgba(0,0,0,.42);
  --font: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-xxl: clamp(20px, 1.6vw, 28px);
  --fs-xl:  clamp(15px, 1.2vw, 18px);
  --fs-lg:  14px;
  --fs-md:  13px;
  --fs-sm:  12px;
  --bg:     #0e0e10;
  --bg-2:   #141417;
  --card:   #1a1a1f;
  --card-2: #161619;
  --border: rgba(244, 237, 228, 0.08);
  --border-2: rgba(244, 237, 228, 0.16);
  --text:   #f4ede4;
  --muted:  #908a82;
  --subtle: #cdc6bd;
  --accent: #b8444a;
  --focus:  #d97078;

  --rarity-5: #f59e0b;
  --rarity-4: #9d4edd;
  --rarity-3: #0ea5e9;
  --rarity-2: #22c55e;
  --rarity-1: #94a3b8;
}
.tierlist-root *, .tierlist-root *::before, .tierlist-root *::after { box-sizing: border-box; }
.tierlist-root { min-height: 100%; scroll-behavior: smooth; }

.tierlist-root {
  margin: 0 auto;
  position: relative;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  background: transparent !important;
  background-color: transparent !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tierlist-root img { display: block; max-width: 100%; }

.tierlist-root button {
  font: inherit; color: inherit;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 10px;
  cursor: pointer;
  transition: transform .06s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease, filter .18s ease;
}
.tierlist-root button:hover { transform: translateY(-1px); }
.tierlist-root button:active { transform: translateY(0); }
.tierlist-root button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.tierlist-root {
  --tier-ss: #b91c1c;
  --tier-s:  #ea580c;
  --tier-a:  #f59e0b;
  --tier-b:  #facc15;
  --tier-c:  #84cc16;

  --tier-n1: #22c55e;
  --tier-n2: #14b8a6;
  --tier-n3: #06b6d4;
  --tier-n4: #3b82f6;
  --tier-n5: #334155;

  --rarity-5: #f59e0b;
  --rarity-4: #9d4edd;
  --rarity-3: #0ea5e9;
  --rarity-2: #22c55e;
  --rarity-1: #94a3b8;
}

.tierlist-root .tier {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: stretch;
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 12px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.tierlist-root .tier::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 6px;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
  background: var(--border);
}

.tierlist-root .tier-name-col {
  width: 100px;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.1);
}

.tierlist-root .tier-name {
  width: 100%;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  font-weight: bold;
  font-size: var(--fs-lg);
  color: white;
}

.tierlist-root .tier-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}

.tierlist-root .tier-header::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,0));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.tierlist-root .tier-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 5px;
  background: rgba(0, 0, 0, 0.05);
  border-left: 1px solid var(--border);
}

.tierlist-root .tier-actions button {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.tierlist-root .tier-actions button:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--border-2);
}

.tierlist-root .tier-dropzone {
  flex: 1;
  min-height: 100px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  margin-left: 0;
  padding-left: 10px;
}

.tierlist-root .tier-dropzone .weapon {
  flex: 0 0 92px;
  width: 92px;
  max-width: 100%;
}

.tierlist-root .bench {
  position: static;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: clip;
}

.tierlist-root .bench-title {
  margin: 0;
  padding: 10px 12px;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: .15px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  color: var(--subtle);
}

.tierlist-root .bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 12px;
  min-height: 110px;
}

.tierlist-root .weapon {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  margin: 0;
  background: #13171e;
  border: 1px solid #1a2029;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .10s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
  user-select: none;
  position: relative;
}

.tierlist-root .weapon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.tierlist-root .weapon-rarity {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
  color: #fff;
}

.tierlist-root .weapon[data-rarity="5"] {
  background: linear-gradient(135deg, #f59e0b 0%, rgba(245, 158, 11, 0.2) 100%) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3) !important;
}

.tierlist-root .weapon[data-rarity="4"] {
  background: linear-gradient(135deg, #9d4edd 0%, rgba(157, 78, 221, 0.2) 100%) !important;
  border-color: #9d4edd !important;
  box-shadow: 0 6px 16px rgba(157, 78, 221, 0.3) !important;
}

.tierlist-root .weapon[data-rarity="3"] {
  background: linear-gradient(135deg, #0ea5e9 0%, rgba(14, 165, 233, 0.2) 100%) !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3) !important;
}

.tierlist-root .weapon[data-rarity="2"] {
  background: linear-gradient(135deg, #22c55e 0%, rgba(34, 197, 94, 0.2) 100%) !important;
  border-color: #22c55e !important;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3) !important;
}

.tierlist-root .weapon[data-rarity="1"] {
  background: linear-gradient(135deg, #94a3b8 0%, rgba(148, 163, 184, 0.2) 100%) !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.3) !important;
}

@media (max-width: 620px) {
  .tierlist-root .tier-dropzone .weapon,
  .tierlist-root .bench-grid .weapon {
    aspect-ratio: 1 / 1;
  }
}

.tierlist-root .drag-source { opacity: .22; }

.tierlist-root .drag-avatar {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  transform: translate(0,0);
  will-change: transform;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.55));
  transition: none !important;
}
.tierlist-root .drag-avatar .weapon {
  transform: none !important;
  box-shadow: var(--shadow-2);
  border-color: var(--border-2);
}

.tierlist-root .drop-target {
  outline: 2px dashed color-mix(in oklab, var(--accent), white 18%);
  outline-offset: -6px;
  background: linear-gradient(180deg, rgba(163,163,163,.10), transparent);
}

.tierlist-root .drop-placeholder {
  border: 2px dashed color-mix(in oklab, var(--accent), white 12%);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(163,163,163,.14),
      rgba(163,163,163,.14) 8px,
      rgba(163,163,163,.22) 8px,
      rgba(163,163,163,.22) 16px
    );
  min-height: 76px;
}

.tierlist-root .tier--ss::before { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-ss), black 6%), var(--tier-ss)); }
.tierlist-root .tier--s::before  { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-s),  black 6%), var(--tier-s)); }
.tierlist-root .tier--a::before  { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-a),  black 6%), var(--tier-a)); }
.tierlist-root .tier--b::before  { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-b),  black 6%), var(--tier-b)); }
.tierlist-root .tier--c::before  { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-c),  black 6%), var(--tier-c)); }

.tierlist-root .tier--new-1::before { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-n1), black 6%), var(--tier-n1)); }
.tierlist-root .tier--new-2::before { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-n2), black 6%), var(--tier-n2)); }
.tierlist-root .tier--new-3::before { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-n3), black 6%), var(--tier-n3)); }
.tierlist-root .tier--new-4::before { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-n4), black 6%), var(--tier-n4)); }
.tierlist-root .tier--new-5::before { background: linear-gradient(180deg, color-mix(in oklab, var(--tier-n5), black 6%), var(--tier-n5)); }

.tierlist-root .tier--ss .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-ss), white 12%), color-mix(in oklab, var(--tier-ss), black 12%)); }
.tierlist-root .tier--s  .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-s),  white 12%), color-mix(in oklab, var(--tier-s),  black 12%)); }
.tierlist-root .tier--a  .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-a),  white 12%), color-mix(in oklab, var(--tier-a),  black 12%)); }
.tierlist-root .tier--b  .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-b),  white 12%), color-mix(in oklab, var(--tier-b),  black 12%)); }
.tierlist-root .tier--c  .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-c),  white 12%), color-mix(in oklab, var(--tier-c),  black 12%)); }

.tierlist-root .tier--new-1 .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-n1), white 12%), color-mix(in oklab, var(--tier-n1), black 12%)); }
.tierlist-root .tier--new-2 .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-n2), white 12%), color-mix(in oklab, var(--tier-n2), black 12%)); }
.tierlist-root .tier--new-3 .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-n3), white 12%), color-mix(in oklab, var(--tier-n3), black 12%)); }
.tierlist-root .tier--new-4 .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-n4), white 12%), color-mix(in oklab, var(--tier-n4), black 12%)); }
.tierlist-root .tier--new-5 .tier-name-col { background: linear-gradient(to bottom, color-mix(in oklab, var(--tier-n5), white 12%), color-mix(in oklab, var(--tier-n5), black 12%)); }

.tierlist-root .hidden { display: none !important; }

.tierlist-root .tier.tier--c::before,
.tierlist-root .tier--c::before {
  background-image: linear-gradient(180deg, rgba(132,204,22,0.88), rgba(132,204,22,0.98));
  background-color: var(--tier-c);
}

.tierlist-root .tier.tier--c::before {
  background: linear-gradient(180deg, #84cc16 0%, #6bb212 100%) !important;
  box-shadow: 1px 0 0 rgba(0,0,0,0.12) !important;
}

.tierlist-root { scrollbar-color: #6f6f6f transparent; scrollbar-width: thin; }
.tierlist-root::-webkit-scrollbar { width: 10px; height: 10px; }
.tierlist-root::-webkit-scrollbar-track { background: transparent; }
.tierlist-root::-webkit-scrollbar-thumb {
  background: #6f6f6f;
  border-radius: 10px; border: 2px solid transparent; background-clip: padding-box;
}

@media (max-width: 620px) {
  .tierlist-root .tier-dropzone { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .tierlist-root .bench-grid   { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .tierlist-root .tier-actions button { width: 28px; height: 28px; }
  .tierlist-root .tier-dropzone .weapon {
    width: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tierlist-root * { transition: none !important; animation: none !important; }
}

.tierlist-root .btn-danger {
  background: rgba(184, 68, 74, 0.12);
  border: 1px solid rgba(184, 68, 74, 0.35);
  color: var(--focus);
}

.tierlist-root .btn-danger:hover {
  background: rgba(184, 68, 74, 0.22);
  border-color: var(--accent);
  color: var(--text);
}

.tierlist-root #add-tier-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #7a2a30 100%);
  border-color: var(--accent);
  color: #f4ede4;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 14px;
}

.tierlist-root #add-tier-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.tierlist-root #add-tier-btn:disabled {
  filter: none;
  opacity: 0.45;
}

.tierlist-root .tl-main {
  background: transparent !important;
}

.tierlist-root .tier {
  background: rgba(26, 26, 31, 0.9) !important;
}

.tierlist-root .bench {
  background: rgba(26, 26, 31, 0.9) !important;
  border: 1px solid rgba(184, 68, 74, 0.15) !important;
}

.tierlist-root .tl-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border-bottom: 1px solid rgba(184, 68, 74, 0.18) !important;
  background: transparent !important;
  text-align: center;
}

.tierlist-root .tl-title {
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.tierlist-root .tl-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.tierlist-root .tl-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.tierlist-root .weapon {
  background: rgba(26, 26, 31, 0.9) !important;
}

.tierlist-root .tier-header {
  background: transparent !important;
}

.tierlist-root .bench-title {
  background: transparent !important;
}

/* ═══════════════════════════════════════════
   Mobile tap-select interaction
═══════════════════════════════════════════ */

/* Selected weapon — glowing ruby ring */
.tierlist-root .weapon--selected {
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 22px rgba(184, 68, 74, 0.55) !important;
  transform: scale(1.1);
  z-index: 5;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
}

/* All tiers glow red while a weapon is selected */
.tierlist-root .tap-ready-tier {
  box-shadow: 0 0 0 2px rgba(184, 68, 74, 0.45) inset !important;
  background: rgba(184, 68, 74, 0.07) !important;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

/* Bench glows too */
.tierlist-root .tap-ready-bench {
  border-color: rgba(184, 68, 74, 0.45) !important;
  box-shadow: 0 0 0 2px rgba(184, 68, 74, 0.3) !important;
}

/* ── Fixed bottom hint bar ── */
.tl-mobile-hint {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 52px 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #1a1a1f;
  border-top: 2px solid rgba(184, 68, 74, 0.55);
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.75);
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #d97078;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.tl-mobile-hint.visible {
  display: flex;
}

.tl-mobile-hint__dismiss {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(184, 68, 74, 0.15) !important;
  border: 1px solid rgba(184, 68, 74, 0.35) !important;
  border-radius: 50% !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #d97078;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

/* Space so the fixed hint never hides the last bench row */
@media (hover: none) and (pointer: coarse) {
  .tierlist-root .bench {
    margin-bottom: 68px;
  }
}

/* ═══════════════════════════════════════════
   Mobile responsive layout
═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .tdps-hero { padding: 0.75rem 1rem 0; }
  .tdps-hero__inner { padding: 1.25rem 1rem; }

  .tierlist-root { padding: 0.75rem 1rem; }

  .tierlist-root .tier {
    grid-template-columns: 64px 1fr 34px;
    margin-bottom: 8px;
  }

  .tierlist-root .tier-name-col {
    width: 64px;
    min-width: 64px;
    padding: 6px 4px;
  }

  .tierlist-root .tier-name {
    font-size: 13px;
    padding: 6px 4px;
  }

  .tierlist-root .tier-dropzone {
    min-height: 80px;
    padding: 8px 6px;
    gap: 7px;
  }

  .tierlist-root .tier-dropzone .weapon {
    flex: 0 0 66px;
    width: 66px;
  }

  .tierlist-root .tier-actions {
    padding: 6px 3px;
    gap: 4px;
  }

  .tierlist-root .tier-actions button {
    width: 26px;
    height: 26px;
    font-size: 10px;
    padding: 0;
  }

  .tierlist-root .bench-title {
    font-size: 13px;
    padding: 8px 10px;
  }

  .tierlist-root .bench-grid {
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    gap: 7px;
    padding: 8px;
  }

  .tierlist-root .tl-header {
    padding: 10px 8px;
  }

  .tierlist-root .tl-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .tierlist-root #add-tier-btn,
  .tierlist-root #reset-btn {
    font-size: 13px;
    padding: 7px 12px;
  }

  .tierlist-root .tl-hint {
    width: 100%;
    text-align: center;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .tierlist-root .tier {
    grid-template-columns: 56px 1fr 30px;
  }

  .tierlist-root .tier-name-col {
    width: 56px;
    min-width: 56px;
  }

  .tierlist-root .tier-dropzone .weapon {
    flex: 0 0 60px;
    width: 60px;
  }

  .tierlist-root .bench-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }

  .tierlist-root .tier-actions button {
    width: 24px;
    height: 24px;
  }
}

/* ═══════════════════════════════════════════
   Reset confirmation modal
═══════════════════════════════════════════ */

.tl-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tl-confirm-overlay[hidden] {
  display: none;
}

.tl-confirm-box {
  background: #1a1a1f;
  border: 1px solid rgba(184, 68, 74, 0.3);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(184, 68, 74, 0.08) inset,
    0 32px 80px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(184, 68, 74, 0.08);
  padding: 2rem 1.75rem 1.75rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  font-family: 'Inter Tight', sans-serif;
}

.tl-confirm-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, #b8444a 40%, #d97078 60%, transparent);
  opacity: 0.75;
}

.tl-confirm-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.tl-confirm-title {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f4ede4;
  letter-spacing: 0;
}

.tl-confirm-body {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #908a82;
  line-height: 1.6;
}

.tl-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.tl-confirm-btn {
  flex: 1;
  max-width: 160px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}

.tl-confirm-btn:hover  { transform: translateY(-1px); }
.tl-confirm-btn:active { transform: translateY(0); }

.tl-confirm-btn--cancel {
  background: rgba(244, 237, 228, 0.06);
  border-color: rgba(244, 237, 228, 0.12);
  color: #cdc6bd;
}

.tl-confirm-btn--cancel:hover {
  background: rgba(244, 237, 228, 0.1);
  border-color: rgba(244, 237, 228, 0.2);
  color: #f4ede4;
}

.tl-confirm-btn--confirm {
  background: linear-gradient(135deg, #b8444a 0%, #7a2a30 100%);
  border-color: #b8444a;
  color: #f4ede4;
}

.tl-confirm-btn--confirm:hover {
  filter: brightness(1.12);
}
