.bans a { text-decoration: none; }

.bans-hero { grid-template-columns: 1fr 440px; }

.bans-search {
  position: relative; display: flex; align-items: center; gap: 6px; max-width: 460px; margin-top: 28px; padding: 6px;
  border-radius: 16px; background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid var(--white-10);
  backdrop-filter: blur(10px); transition: border-color .2s;
}
.bans-search:focus-within { border-color: rgba(255, 234, 167, .45); }
.bans-search__icon { flex: none; width: 18px; height: 18px; margin-left: 12px; color: var(--white-50); }
.bans-search__input {
  flex: 1; min-width: 0; padding: 10px 6px; border: 0; outline: none; background: none;
  font: inherit; font-size: 14px; color: #fff;
}
.bans-search__input::placeholder { color: rgba(255, 255, 255, .35); }
.bans-search__input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.bans-search__btn { flex: none; padding: 11px 20px; text-transform: uppercase; letter-spacing: .05em; }

.type-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  padding: 20px; border-radius: 22px;
  background: color-mix(in srgb, var(--card) 90%, transparent); border: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(12px); transition: border-color .25s;
}
.type-tile::before {
  content: ""; position: absolute; right: -70px; top: -80px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none; transition: transform .4s;
}
.type-tile > * { position: relative; }
.type-tile:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.type-tile:hover::before { transform: scale(1.25); }
.type-tile__icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.type-tile__icon svg { width: 21px; height: 21px; }
.type-tile__count {
  margin-top: 18px; font-size: 38px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; transition: color .25s;
}
.type-tile:hover .type-tile__count { color: var(--accent); }
.type-tile__label { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--white-60); }
.type-tile__label span { display: inline-block; transition: transform .25s; }
.type-tile:hover .type-tile__label span { transform: translateX(3px); }

.bans-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bans-section-head .step-chip { margin-top: 0; }

.bans-top { position: relative; z-index: 1; padding-top: 40px; }
.bans-top__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bans-top__head .bans-search { width: 420px; margin-top: 0; }
.bans-top__title span { color: var(--accent); }
.bans-top .shop-hero__lead { max-width: none; margin-top: 14px; }
.bans-top .shop-hero__lead b { color: #fff; }
.bans-top > .flash { margin-top: 24px; }
.bans-crumb { display: inline-block; transition: opacity .2s; }
.bans-crumb:hover { opacity: .75; }

.type-tabs {
  display: flex; gap: 8px; margin: 32px 0 20px; padding: 6px; width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  border-radius: 18px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--white-10);
}
.type-tabs::-webkit-scrollbar { display: none; }
.type-tab {
  flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 13px;
  font-size: 14px; font-weight: 500; color: var(--white-60); border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.type-tab svg { width: 17px; height: 17px; color: var(--accent); opacity: .6; transition: opacity .2s; }
.type-tab:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.type-tab:hover svg { opacity: 1; }
.type-tab.is-active {
  color: #fff; background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}
.type-tab.is-active svg { opacity: 1; }
.type-tab__count {
  min-width: 24px; padding: 2px 7px; border-radius: 999px; text-align: center;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--white-60); background: rgba(255, 255, 255, .07);
}
.type-tab.is-active .type-tab__count { color: #121010; background: var(--accent); }

.bans-filter {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  padding: 5px 6px 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--white-10);
  font-size: 12.5px; color: var(--white-50);
}
.bans-filter b { color: #fff; font-weight: 600; }
.bans-filter a {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: var(--white-60); font-size: 14px; line-height: 1;
  transition: background .2s, color .2s;
}
.bans-filter a:hover { background: rgba(255, 255, 255, .15); color: #fff; }

.punish-list {
  display: grid; gap: 4px; padding: 6px; border-radius: 22px;
  background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid rgba(255, 255, 255, .06);
}
.punish {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 230px) minmax(0, 1fr) 124px 28px;
  align-items: center; gap: 16px; padding: 12px 14px 12px 18px; border-radius: 16px;
  border: 1px solid transparent; color: #fff; transition: background .2s, border-color .2s;
}
.punish::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent); opacity: .55; transition: opacity .2s;
}
.punish:hover { background: rgba(255, 255, 255, .035); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.punish:hover::before { opacity: 1; }
.punish__head .pill__avatar { border-radius: 9px; }
.punish__who { min-width: 0; }
.punish__who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.punish__who small {
  display: flex; align-items: center; gap: 6px; margin-top: 2px; overflow: hidden; white-space: nowrap;
  font-size: 12px; color: var(--white-50);
}
.punish__tag {
  display: inline-flex; align-items: center; gap: 4px; margin-right: 2px;
  font-weight: 600; color: var(--accent);
}
.punish__tag svg { width: 12px; height: 12px; }
.punish__reason {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .72);
}
.punish__reason.is-empty, .record__reason .is-empty { font-style: italic; color: rgba(255, 255, 255, .35); }
.punish .bans-state { justify-self: start; }
.punish__go {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  color: var(--white-50); background: rgba(255, 255, 255, .04); transition: color .2s, background .2s;
}
.punish:hover .punish__go { color: var(--brand); background: rgba(255, 234, 167, .12); }

.bans-state {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.bans-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bans-state--on { background: rgba(118, 229, 66, .1); color: #a9ef83; }
.bans-state--permanent { background: rgba(255, 107, 107, .12); color: #ff9c9c; }
.bans-state--off { background: rgba(255, 255, 255, .06); color: var(--white-50); }
.bans-state--neutral { background: rgba(143, 230, 255, .1); color: #8fe6ff; }

.bans-empty {
  display: grid; justify-items: center; gap: 4px; padding: 56px 24px; text-align: center;
  border-radius: 22px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px dashed rgba(255, 255, 255, .13);
}
.bans-empty__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 18px;
  color: var(--accent, var(--brand)); background: color-mix(in srgb, var(--accent, var(--brand)) 10%, transparent);
}
.bans-empty__icon svg { width: 26px; height: 26px; }
.bans-empty__title { font-size: 17px; font-weight: 600; color: #fff; }
.bans-empty__text { font-size: 13.5px; line-height: 1.6; color: var(--white-50); }
.bans-empty .btn { margin-top: 18px; }
.bans-empty--missing { margin-top: 24px; }

.bans-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.bans-pager__btn {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--white-60);
  background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid var(--white-10);
  transition: color .2s, border-color .2s;
}
.bans-pager__btn:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.bans-pager__btn.is-current { color: #121010; background: var(--brand); border-color: var(--brand); }
.bans-pager__gap { padding: 0 4px; color: var(--white-50); }

.bans-appeal { margin-top: 28px; }
.bans-appeal a:not(.btn) { color: var(--brand); }
.bans-appeal a:not(.btn):hover { text-decoration: underline; }

.record {
  position: relative; overflow: hidden; margin-top: 18px; padding: 32px;
  border-radius: 26px; background: var(--card); border: 1px solid rgba(255, 255, 255, .07);
}
.record::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.record__blob {
  position: absolute; left: -120px; top: -160px; width: 520px; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}
.record > :not(.record__blob) { position: relative; }

.record__head { display: flex; align-items: center; gap: 28px; }
.record__art { position: relative; flex: none; display: grid; place-items: center; width: 132px; height: 132px; }
.record__glow {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent);
  animation: breathe 5s ease-in-out infinite;
}
.record__art .pill__avatar { position: relative; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.record__ident { display: grid; gap: 8px; min-width: 0; }
.record__type {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.record__type svg { width: 15px; height: 15px; }
.record__player {
  overflow: hidden; text-overflow: ellipsis;
  font-size: 46px; font-weight: 800; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere;
}
.record__ident .bans-state { justify-self: start; }

.record__reason {
  margin: 28px 0 0; padding: 20px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--white-10);
}
.record__reason figcaption {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white-50);
}
.record__reason blockquote { margin: 8px 0 0; font-size: 17px; font-weight: 500; line-height: 1.6; color: #fff; }

.record__time { margin-top: 18px; }
.record__bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.record__bar i {
  display: block; height: 100%; border-radius: inherit; background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent);
}
.record__time-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--white-50); }

.record__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 0;
}
.record__meta div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--white-10); }
.record__meta dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white-50); }
.record__meta dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #fff; }
.record__by { display: flex; align-items: center; gap: 8px; }
.record__by .pill__avatar { border-radius: 6px; }

.record__removed {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .72);
  background: rgba(118, 229, 66, .06); border: 1px solid rgba(118, 229, 66, .22);
}
.record__removed b { color: #c2f7a6; }
.record__removed p { margin: 6px 0 0; color: var(--white-60); }
.record__more { margin-top: 18px; }

@media (max-width: 1010px) {
  .bans-hero { grid-template-columns: 1fr 380px; }
  .punish { grid-template-columns: 40px minmax(0, 190px) minmax(0, 1fr) 118px 28px; gap: 12px; }
}
@media (max-width: 900px) {
  .bans-hero { grid-template-columns: 1fr; }
  .type-tiles { grid-template-columns: repeat(4, 1fr); }
  .bans-top { padding-top: 24px; }
  .bans-top__head .bans-search { width: 100%; max-width: none; }
  .punish { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "head who state" "head why why"; row-gap: 6px; }
  .punish__head { grid-area: head; align-self: start; }
  .punish__who { grid-area: who; }
  .punish__reason { grid-area: why; }
  .punish .bans-state { grid-area: state; justify-self: end; }
  .punish__go { display: none; }
  .punish__who small { flex-wrap: wrap; row-gap: 2px; white-space: normal; }
  .record { padding: 26px 22px; }
  .record__player { font-size: 36px; }
}
@media (max-width: 680px) {
  .type-tiles { grid-template-columns: 1fr 1fr; }
  .record__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .record__art { width: 112px; height: 112px; margin-left: -8px; }
}
@media (max-width: 560px) {
  .type-tile { padding: 16px; border-radius: 18px; }
  .type-tile__count { margin-top: 14px; font-size: 30px; }
  .bans-search__btn { padding: 11px 14px; }
  .type-tabs { display: grid; grid-template-columns: 1fr 1fr; width: auto; }
  .type-tab { justify-content: flex-start; }
  .type-tab__count { margin-left: auto; }
  .punish { padding: 12px 12px 12px 14px; column-gap: 12px; }
  .record__player { font-size: 30px; }
  .record__reason blockquote { font-size: 15px; }
  .record__meta { grid-template-columns: 1fr 1fr; gap: 10px; }
  .record__meta div { padding: 12px 14px; }
  .record__meta dd { font-size: 14px; }
}
