/* Figma REGENT ONLINE — кейсы (1165:23 каталог, 901:19 открытие) */

html:has(body.page-cases),
body.page-cases {
  min-height: 100vh;
  background: #1c1c1c;
}

body.page-cases {
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  user-select: none;
}

body.page-cases img {
  -webkit-user-drag: none;
  user-select: none;
}

body.page-cases input,
body.page-cases textarea {
  -webkit-user-select: text;
  user-select: text;
}

body.page-cases .header {
  position: relative;
}

body.page-cases .logo__text,
body.page-cases .logo__brand,
body.page-cases .logo__online,
body.page-cases .footer__brand {
  font-style: italic !important;
  font-synthesis: style;
}

.cases-wrap {
  flex: 1;
  width: 100%;
  padding: 28px 0 48px;
}

.cases-panel {
  background: #fff;
  border-radius: 36px;
  padding: 48px 56px 64px;
  max-width: 1320px;
  margin: 0 auto;
}
.shop .cases-panel {
  margin-top: 48px;
  margin-bottom: 80px;
}
.shop .cases-panel .case-card {
  min-height: 248px;
  padding: 10px 22px 10px 10px;
}
.shop .cases-panel .case-card__visual {
  flex: 0 0 228px;
  width: 228px;
  height: 228px;
  overflow: hidden;
  border-radius: 20px;
}
.shop .cases-panel .case-card__visual img {
  width: 228px;
  height: 228px;
  object-fit: contain;
  object-position: center;
}

.cases-preview-banner {
  margin: 0 auto 22px;
  max-width: 1320px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 154, 0, 0.16);
  border: 1px solid rgba(255, 154, 0, 0.45);
  color: #ffd08a;
  font-weight: 600;
}

.cases-h1 {
  margin: 0 0 40px;
  text-align: center;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.1;
}

.cases-h1 span,
.cases-h2 {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cases-h2 {
  margin: 56px 0 28px;
  text-align: center;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

.case-card {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 22px 16px 10px;
  background: #ececec;
  border-radius: 24px;
  min-height: 188px;
}

.case-card__visual {
  flex: 0 0 168px;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border-radius: 12px;
}

.case-card__visual.is-empty {
  display: none;
}

.case-card__visual img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.case-card__body {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 6px 0 2px;
}

.case-card__tag {
  position: absolute;
  top: 4px;
  right: 0;
  font-size: 12px;
  font-weight: 600;
  color: #9a9a9a;
}

.case-card__title {
  margin: 0 110px 8px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.15;
}

.case-card__sub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #7a7a7a;
  max-width: 340px;
}

.case-card__acts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.case-card__coupon {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 7px;
  border-radius: 4px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-card__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
}

.case-card__buy:hover {
  filter: brightness(1.06);
  color: #fff;
}

.case-card__soon {
  font-size: 12px;
  color: #888;
}

.case-open__stage {
  position: relative;
}

.case-needkey {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.case-needkey[hidden] {
  display: none !important;
}

.case-needkey__card {
  width: min(360px, 100%);
  padding: 28px 26px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.case-needkey__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.case-needkey__text {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: #6a6a6a;
}

.case-needkey__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.case-needkey__look {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: none;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.case-needkey__look:hover {
  color: #111;
}

.case-buy-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  height: 38px;
  padding: 0 20px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.case-buy-more:hover {
  background: #111;
  color: #fff;
}

.pay-modal__qty {
  margin: 0 0 12px;
  text-align: left;
}

.pay-modal__qty-lab {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
}

.pay-modal__qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-modal__qty-btn {
  width: 40px;
  height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #f6f6f6;
  color: #111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.pay-modal__qty-n {
  width: 72px;
  text-align: center;
}

.pay-modal__sum {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: #111;
}

.case-open-layout {
  display: block;
}

.case-open__main {
  text-align: center;
}

.case-back {
  display: inline-block;
  margin-bottom: 10px;
  color: #8a8a8a;
  font-weight: 700;
  font-size: 14px;
}

.case-roulette {
  margin: 8px 0 28px;
  max-width: none;
  width: 100%;
}

.case-roulette__window {
  position: relative;
  height: 248px;
  overflow: hidden;
  border-radius: 24px;
  background: #f4f4f4;
}

.case-roulette__window::before,
.case-roulette__window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 3;
  pointer-events: none;
}

.case-roulette__window::before {
  left: 0;
  background: linear-gradient(90deg, #f4f4f4 0%, rgba(244, 244, 244, 0) 100%);
}

.case-roulette__window::after {
  right: 0;
  background: linear-gradient(270deg, #f4f4f4 0%, rgba(244, 244, 244, 0) 100%);
}

.case-roulette__pointer {
  position: absolute;
  left: 50%;
  top: 16px;
  height: 180px;
  width: 3px;
  background: var(--accent-mid);
  z-index: 2;
  transform: translateX(-50%);
  border-radius: 2px;
}

.case-roulette__track {
  display: flex;
  align-items: flex-start;
  height: 100%;
  gap: 16px;
  padding: 16px 16px 0;
  will-change: transform;
}

.roulette-item,
.prize-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 0;
  overflow: visible;
}

.roulette-item {
  flex: 0 0 180px;
  width: 180px;
}

.prize-card {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.roulette-item .prize-card {
  width: 180px;
  height: 180px;
  aspect-ratio: 1;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.roulette-item.is-win .prize-card {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 16px 36px rgba(0, 0, 0, 0.22);
}

.prize-card img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.28));
}

.tile--common { background: radial-gradient(ellipse at 50% 42%, #f4ffe8 0%, #b8f07a 36%, #7ed321 72%, #4c9a12 100%); }
.tile--rare { background: radial-gradient(ellipse at 50% 42%, #e8f8ff 0%, #7ad4ff 36%, #1aa7e8 72%, #0277bd 100%); }
.tile--epic { background: radial-gradient(ellipse at 50% 42%, #fff6df 0%, #ffc56a 36%, #ff8c1a 72%, #e06a00 100%); }
.tile--legendary { background: radial-gradient(ellipse at 50% 42%, #ffe4e0 0%, #ff8f86 36%, #e53935 72%, #9b1b1b 100%); }
.tile--mystic { background: radial-gradient(ellipse at 50% 42%, #f6e4ff 0%, #d58cff 36%, #ab47bc 72%, #6a1b9a 100%); }

body.page-cases .btn-spin.btn--buy-rub {
  margin-top: 6px;
  min-width: 280px;
}

body.page-cases .btn-spin.btn--buy-rub:disabled,
body.page-cases .btn-spin.btn--buy-rub.is-nokey {
  opacity: 0.42;
  animation: none;
  cursor: pointer;
  filter: grayscale(0.15);
}

body.page-cases .btn-spin.btn--buy-rub:disabled {
  cursor: not-allowed;
}

.case-my-prizes {
  display: block;
  margin: 12px auto 22px;
  color: #9a9a9a;
  font-size: 15px;
  font-weight: 600;
}

.keys-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: #2ecc40;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.keys-pill__n {
  margin-left: 0.35em;
  letter-spacing: 0;
}

.case-cost {
  margin: 10px auto 0;
  max-width: 420px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #cfcfcf;
}

.case-open__err {
  min-height: 22px;
  margin-top: 10px;
  color: #e53935;
  font-weight: 700;
}

.case-open__hint {
  margin-top: 8px;
  color: #777;
}

.case-open__hint a {
  color: #ff7a00;
  font-weight: 700;
}

.case-open__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.case-open__side-card {
  width: 100%;
  background: #f3f3f3;
  border-radius: 20px;
  padding: 16px 10px;
  text-align: center;
}

.case-open__side-card img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.case-prizes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.prize-tile {
  position: relative;
}

.prize-cap {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
  text-align: center;
}

.prize-dest {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #6d6d6d;
  text-align: center;
}

.roulette-item .prize-cap {
  color: #111;
  font-size: 12px;
}

.prize-tile__name {
  display: none;
}

body.page-cases .modal__card {
  background: #fff;
  color: #111;
  border-radius: 28px;
  padding: 36px 32px 32px;
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body.page-cases .modal__close {
  color: #9a9a9a;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
}

body.page-cases .modal__close:hover {
  color: #111;
}

body.page-cases .modal__title {
  color: #111;
  text-align: center;
  text-transform: none;
}

.case-win,
.prizes-box {
  text-align: center;
}

.case-win__label,
.prizes-box__empty {
  color: #8a8a8a;
  margin: 8px 0 0;
  font-weight: 600;
}

.prizes-box__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.prizes-box__grid[hidden],
.prizes-box__empty[hidden] {
  display: none !important;
}

.prizes-box__item {
  min-height: 0;
}

.prizes-box__item .prize-card {
  border-radius: 22px;
}

.prizes-box__item .prize-cap {
  font-size: 12px;
}

.case-win__art {
  width: 200px;
  height: 200px;
  margin: 14px auto 16px;
  border-radius: 36px;
  animation: case-win-pop 0.55s cubic-bezier(0.16, 0.84, 0.28, 1);
}

.case-win__art img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.case-win__rar {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b0b0b0;
}

.case-win__mn {
  margin: 0 auto 14px;
  max-width: 360px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #cfcfcf;
}

.case-take-where {
  text-align: center;
  padding: 28px 24px 24px;
  max-width: 420px;
}

.case-take-where__label {
  margin: 0 0 10px;
  color: #8a8a8a;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-take-where__text {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  color: #111;
}

.case-take-where__ok {
  min-width: 200px;
  height: 54px;
}

.case-win__err {
  min-height: 18px;
  color: #e53935;
  font-weight: 700;
}

.case-win__acts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.page-cases .case-win__take.btn--buy-rub {
  margin-top: 0;
  min-width: 240px;
  height: 58px;
}

.case-win__drop,
.pending-prize__drop {
  border: 0;
  background: none;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.case-win__drop:hover,
.pending-prize__drop:hover {
  color: #e53935;
}

.pending-prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pending-prize__acts {
  display: flex;
  gap: 10px;
}

.pending-prize__take {
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

@keyframes case-win-pop {
  0% { transform: scale(0.72); opacity: 0; }
  70% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

html:has(body.page-admin),
body.page-admin {
  overflow-x: hidden;
  max-width: 100%;
}

body.page-admin {
  overscroll-behavior-x: none;
}

.admin-cases {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  color: #fff;
  overflow-x: hidden;
  min-width: 0;
}

.admin-cases h1 { font-size: 28px; margin-bottom: 8px; letter-spacing: -0.03em; }
.admin-cases .hint { color: #9a9a9a; margin-bottom: 16px; }
.admin-box {
  background: linear-gradient(180deg, #2e2e2e 0%, #262626 100%);
  border: 1px solid #3c3c3c;
  border-radius: 16px;
  padding: 22px 22px 20px;
  margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.admin-box h2 { font-size: 20px; margin-bottom: 14px; letter-spacing: -0.02em; }
.admin-sub { font-size: 16px; margin: 28px 0 12px; }
.admin-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.admin-cases input,
.admin-cases select,
.admin-cases textarea {
  background: #1c1c1c; border: 1px solid #444; color: #fff;
  border-radius: 8px; padding: 10px 12px; font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.admin-row button,
.admin-box button {
  background: var(--accent-grad); color: #fff; border: 0;
  border-radius: 8px; padding: 10px 16px; font-weight: 700;
  cursor: pointer;
  width: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
  border-bottom: 1px solid #3a3a3a; padding: 8px 6px; text-align: left; vertical-align: top;
}
.case-list { display: flex; flex-direction: column; gap: 8px; }
.case-list__row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 12px 14px;
}
.case-list__id {
  flex: 0 0 42px;
  font-weight: 800;
  color: #8f8f8f;
}
.case-list__main { flex: 1; min-width: 0; }
.case-list__main strong { display: block; font-size: 15px; }
.case-list__main span { display: block; margin-top: 3px; font-size: 12px; color: #9a9a9a; }
.case-list__acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.case-list__acts form { margin: 0; }
.case-list__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}
.admin-box .case-list__del {
  background: transparent !important;
  border: 1px solid #6a3333 !important;
  color: #ff9a9a !important;
  padding: 8px 12px !important;
  font-size: 13px;
}
@media (max-width: 700px) {
  .case-list__row { flex-wrap: wrap; }
  .case-list__acts { width: 100%; }
  .case-list__edit, .admin-box .case-list__del { flex: 1; }
}
.admin-flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  white-space: pre-wrap;
}
.admin-flash--ok { background: #1f4d2a; }
.admin-flash--error { background: #5a1f1f; }
.admin-flash--warn { background: #4a3a12; color: #ffe7a8; }
.prize-row--noimg { border-color: #8a6a22; }
.prize-row--needtype { border-color: #d4922a; }

.admin-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 16px;
  align-items: end;
}
.admin-fields--keys { grid-template-columns: 1.4fr 1.2fr 0.6fr auto; }
.admin-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.admin-field span,
.admin-field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #bdbdbd;
}
.admin-field--grow { grid-column: span 4; }
.admin-field--wide { grid-column: span 8; }
.admin-field--sm { grid-column: auto; }
.admin-field--action { display: flex; }

.clog-filters {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr auto;
  gap: 12px 14px;
  align-items: end;
  margin: 0 0 18px;
}
.clog-filters button {
  background-image: var(--accent-grad);
  color: #fff;
  border: 0;
  border-radius: 11px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}
.clog-count { margin: 0 0 12px; }
.clog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 16px;
}
.clog-card__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clog-card__nick {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.clog-card__case {
  font-size: 13px;
  font-weight: 600;
  color: #9a9a9a;
}
.clog-card__prize {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.clog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #8f8f8f;
}
.clog-st {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: lowercase;
  background: #2a2a2a;
  color: #cfcfcf;
}
.clog-st--claimed { background: #1f4d2a; color: #b7e0bf; }
.clog-st--discarded { background: #3a2222; color: #e0b7b7; }
.clog-st--pending { background: #3a3218; color: #f0d48a; }
.clog-card__act { margin: 0; flex-shrink: 0; }
.clog-regrant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  background-image: var(--accent-grad);
  background-color: #ff7a00;
  color: #fff;
  font: 700 italic 14px/1 "Montserrat", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.clog-regrant:hover { filter: brightness(1.06); }
.clog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 8px;
  font-weight: 700;
}
.clog-pager a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
}
.clog-pager a:hover { border-color: #f5a623; }

.srv-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.srv-state {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.srv-state[data-on="1"] { color: #8ee08e; }
.srv-state[data-on="0"] { color: #ffb4b4; }
.srv-host { margin: 6px 0 0; color: #8f8f8f; font-weight: 700; }
.srv-ddos {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  max-width: 420px;
}
.srv-ddos.is-ok { background: #1c3a22; color: #b7e0bf; }
.srv-ddos.is-bad { background: #3a1c1c; color: #ffc9c9; }
.admin-srv-alert {
  display: block;
  margin: 0;
  padding: 10px 20px;
  background: #4a1515;
  color: #ffd4d4;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  border-top: 1px solid #6a2222;
}
.admin-srv-alert[hidden] { display: none !important; }
.admin-srv-alert:hover { color: #fff; background: #5a1a1a; }
.srv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.srv-verdict {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #2a4a2e;
  background: #17301c;
}
.srv-verdict b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: #8ee08e;
}
.srv-verdict span { color: #cde8d1; font-weight: 600; }
.srv-verdict[data-level="warn"] { background: #32280f; border-color: #5a4718; }
.srv-verdict[data-level="warn"] b { color: #f5c36a; }
.srv-verdict[data-level="warn"] span { color: #ead9a8; }
.srv-verdict[data-level="bad"] { background: #3a1515; border-color: #6a2222; }
.srv-verdict[data-level="bad"] b { color: #ffb4b4; }
.srv-verdict[data-level="bad"] span { color: #ffd4d4; }
.srv-lags-title { margin: 12px 0 6px; font-weight: 800; font-size: 14px; }
.srv-lags {
  margin: 0;
  padding-left: 18px;
  color: #cfcfcf;
  font-weight: 700;
  font-size: 13px;
}
.srv-lags li { margin: 4px 0; }
.srv-load {
  margin: 0 0 16px;
  padding: 14px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 12px;
}
.srv-load__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.srv-load__row span { color: #8f8f8f; font-weight: 700; font-size: 12px; }
.srv-load__row b { font-size: 16px; }
.srv-load__bar {
  height: 10px;
  background: #2a2a2a;
  border-radius: 99px;
  overflow: hidden;
}
.srv-load__bar i {
  display: block;
  height: 100%;
  background: #3d9a4a;
  width: 0;
}
.srv-load[data-level="warn"] .srv-load__bar i { background: #c48a1a; }
.srv-load[data-level="bad"] .srv-load__bar i { background: #c44; }
.srv-load[data-level="warn"] .srv-load__row b { color: #f5c36a; }
.srv-load[data-level="bad"] .srv-load__row b { color: #ffb4b4; }
.srv-load__help {
  margin: 10px 0 0;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.45;
}
.srv-chart-wrap { margin: 0 0 18px; min-width: 0; }
.srv-chart-title {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.srv-chart-sub {
  margin: 0 0 10px;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.srv-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}
.srv-chart-head strong { font-size: 14px; }
.srv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}
.srv-legend span { display: inline-flex; align-items: center; }
.srv-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 8px 0 0;
  vertical-align: middle;
}
.srv-dot--in { background: #f5a623; }
.srv-dot--out { background: #6cb6ff; }
.srv-dot--lag { background: #c44; }
.srv-chart-frame {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 12px;
  background: #141414;
}
#srv-chart {
  display: block;
  width: 100%;
  height: 320px;
  background: #141414;
}
.srv-metric {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
.srv-metric span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #8f8f8f;
  margin-bottom: 6px;
}
.srv-metric b {
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.srv-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.srv-btn { min-height: 44px; padding: 10px 18px !important; }
.srv-btn--on { background: #2f7d3a !important; }
.srv-btn--off { background: #7a2a2a !important; }
.admin-field__hint {
  font-size: 11px;
  font-weight: 600;
  color: #8a8a8a;
  line-height: 1.35;
}
.admin-cases input[type="checkbox"],
.admin-cases input[type="file"] { width: auto; }
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
  font-weight: 700;
  cursor: pointer;
}
.admin-toggle input { width: auto; }
.admin-note { color: #9a9a9a; font-size: 13px; margin: 0 0 16px; }
.meta-block {
  background: #232323;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta-block h3 { margin: 0; font-size: 15px; }
.meta-nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.admin-suffix {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-suffix em {
  font-style: normal;
  color: #aaa;
  font-weight: 800;
}
.case-editor { display: flex; flex-direction: column; gap: 16px; }
.case-cover {
  background: #232323;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}
.case-cover__preview {
  height: 120px;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  background: #161616;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #777;
  font-size: 13px;
}
.case-cover__preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.case-cover__form { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 0; }
.case-cover__form .file-btn { width: 100%; }
.chance-block,
.prize-block {
  background: #232323;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.chance-block__head h3,
.prize-block__head h3 { font-size: 15px; margin: 0 0 4px; }
.chance-block__head p,
.prize-block__head p { margin: 0 0 12px; color: #9a9a9a; font-size: 13px; }
.prize-bulk { margin-bottom: 14px; }
.prize-bulk textarea {
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  resize: vertical;
  background: #141414;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  color: #eee;
  padding: 10px 12px;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prize-bulk__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.prize-bulk__hint { margin: 8px 0 0; color: #9a9a9a; font-size: 13px; }
.prize-bulk__hint.is-ok { color: #8ee08e; }
.prize-bulk__hint.is-bad { color: #ffb4b4; }
.prize-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
}
.prize-filter__group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prize-filter__btn {
  appearance: none;
  background: #141414 !important;
  border: 1px solid #444 !important;
  color: #ddd !important;
  border-radius: 8px;
  padding: 7px 10px !important;
  font-size: 12px !important;
  font-weight: 700;
  cursor: pointer;
  margin: 0 !important;
}
.prize-filter__btn b {
  display: inline-block;
  min-width: 1.2em;
  margin-left: 4px;
  color: #8a8a8a;
  font-weight: 800;
}
.prize-filter__btn.is-on {
  background: #2a2a2a !important;
  border-color: #f5a623 !important;
  color: #fff !important;
}
.prize-filter__btn--common.is-on { border-color: #7ed957 !important; }
.prize-filter__btn--epic.is-on { border-color: #7c5cff !important; }
.prize-filter__btn--legendary.is-on { border-color: #f5b942 !important; }
.prize-filter__q {
  width: 100%;
  box-sizing: border-box;
  background: #141414;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #eee;
  padding: 8px 12px;
  font-size: 13px;
}
.prize-filter__empty {
  margin: 0 0 10px;
  color: #9a9a9a;
  font-size: 13px;
}
.prize-row[hidden] { display: none !important; }
.chance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
}
.chance-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: #1c1c1c;
}
.chance-card--common { box-shadow: inset 3px 0 0 #7ed957; }
.chance-card--epic { box-shadow: inset 3px 0 0 #7c5cff; }
.chance-card--legendary { box-shadow: inset 3px 0 0 #f5b942; }
.chance-card span { font-size: 12px; font-weight: 700; color: #cfcfcf; }
.chance-sum {
  min-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 800;
  background: #1c1c1c;
  color: #aaa;
}
.chance-sum.is-ok { color: #8ee08e; background: #1c3a22; }
.chance-sum.is-bad { color: #ffb4b4; background: #3a1c1c; }
.chance-help-btn {
  margin-top: 12px;
  background: transparent !important;
  border: 1px solid #555 !important;
  color: #fff !important;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 16px !important;
  font-weight: 700;
  cursor: pointer;
}
.chance-help {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.45;
}
.chance-help p { margin: 0 0 10px; }
.chance-help p:last-child { margin-bottom: 0; }
.chance-help b { color: #fff; }
.prize-pct {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #f5a623;
}
.prize-filter__btn i {
  font-style: normal;
  font-weight: 800;
  color: #9a9a9a;
  margin-left: 2px;
}
.prize-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.85fr auto;
  gap: 10px 12px;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  align-items: end;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.prize-row:hover { border-color: #525252; }
.prize-row[data-kind="acs"] {
  grid-template-columns: 1.1fr 0.85fr 1.15fr 0.9fr 0.75fr auto;
  border-color: #3d4a62;
}
.prize-row:not([data-kind="acs"]) .prize-acs-type { display: none; }
.prize-acs-sel { min-width: 0; }
.prize-row__name { grid-column: 1 / 4; }
.prize-row[data-kind="acs"] .prize-row__name { grid-column: 1 / 5; }
.prize-row__name em {
  font-style: normal;
  font-weight: 600;
  color: #8a8a8a;
}
.prize-media { grid-column: 4 / 6; }
.prize-row[data-kind="acs"] .prize-media { grid-column: 5 / 7; }
.prize-row__side { display: flex; justify-content: flex-end; }
.admin-box .prize-del {
  background: transparent !important;
  border: 1px solid #6a3333 !important;
  color: #ff9a9a !important;
  padding: 10px 12px !important;
  font-size: 13px;
  white-space: nowrap;
}
.prize-media > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #bdbdbd;
  margin-bottom: 6px;
}
.prize-media__row { display: flex; align-items: center; gap: 8px; }
.prize-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #111;
  overflow: hidden;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prize-thumb img { width: 100%; height: 100%; object-fit: contain; }
.prize-thumb.is-empty { outline: 1px dashed #444; }
.prize-upload-btn { white-space: nowrap; padding: 8px 10px !important; font-size: 12px; }
.admin-field.is-off,
.admin-field[hidden] {
  display: none !important;
}
.case-playtime {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #555;
}
.admin-btn-ghost {
  background: transparent !important;
  border: 1px solid #555 !important;
  color: #fff !important;
  margin-top: 4px;
}
.prize-reset-btn { padding: 8px 10px !important; font-size: 12px; margin: 0 !important; }
.file-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: #161616;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}
.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100% !important;
  height: 100%;
  cursor: pointer;
  font-size: 0;
}
.file-btn__txt {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.file-btn--accent {
  background: var(--accent-grad);
  border: 0;
}
.lib-fold {
  margin-top: 18px;
  background: #232323;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 0 14px 14px;
}
.lib-fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 0;
  user-select: none;
}
.lib-fold > summary::-webkit-details-marker { display: none; }
.lib-fold > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 8px;
  flex: 0 0 auto;
  opacity: 0.7;
}
.lib-fold[open] > summary::after { transform: rotate(-135deg); margin-top: 6px; }
.lib-fold > summary em {
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  color: #9a9a9a;
  margin-left: auto;
}
.lib-fold:not([open]) { padding-bottom: 0; }
.lib-car-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
}
.lib-car-bulk {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
}
.lib-car-bulk__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lib-car-bulk__head strong { font-size: 14px; }
.lib-car-bulk__head span { font-size: 12px; color: #9a9a9a; line-height: 1.4; }
.lib-car-bulk__head code { color: #ffd27a; }
.lib-car-bulk__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.lib-drop {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px dashed #555;
  border-radius: 8px;
  background: #141414;
  font-weight: 700;
  font-size: 13px;
  color: #ddd;
  cursor: pointer;
}
.lib-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100% !important;
  height: 100%;
  cursor: pointer;
  font-size: 0;
}
.lib-car-bulk__row button {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 18px;
  margin: 0;
}
.lib-car-bulk__status {
  margin: 0;
  font-size: 13px;
  color: #9a9a9a;
}
.lib-car-bulk__status.is-ok { color: #8ee08e; }
.lib-car-bulk__status.is-bad { color: #ffb4b4; }
.lib-car-one {
  display: grid;
  grid-template-columns: 160px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.lib-car-one .admin-field--action { justify-content: flex-end; }
.lib-car-one .admin-field--action button {
  white-space: nowrap;
  min-height: 42px;
  margin: 0;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}
.lib-card,
.lib-car {
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lib-card__title { font-weight: 800; }
.lib-card__preview,
.lib-car__preview {
  height: 88px;
  border-radius: 8px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #777;
}
.pack-admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.pack-admin-card__price {
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  margin-top: -4px;
}
.pack-admin-card__preview {
  height: 140px;
}
.lib-card__preview img,
.lib-car__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lib-cars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.lib-car strong { font-size: 13px; }

.bonus-check { display: flex; flex-direction: column; gap: 12px; }
.bonus-check__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 12px;
  align-items: end;
}
.bonus-check__list {
  max-height: min(420px, 60vh);
  overflow: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: #161616;
}
.bonus-check__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1c1c1c;
  border: 1px solid #333;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.bonus-check__row:hover { border-color: #555; }
.bonus-check__row:has(input:checked) {
  border-color: #f5a623;
  background: #242018;
}
.bonus-check__row input { margin-top: 4px; width: auto; flex: 0 0 auto; }
.bonus-check__rar {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 999px;
  color: #111;
  background: #9a9a9a;
}
.bonus-check__rar--common { background: #7ed957; }
.bonus-check__rar--epic { background: #7c5cff; color: #fff; }
.bonus-check__rar--legendary { background: #f5b942; }
.bonus-check__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bonus-check__txt strong { font-size: 14px; overflow-wrap: anywhere; }
.bonus-check__txt em { font-style: normal; font-size: 12px; color: #9a9a9a; overflow-wrap: anywhere; }
.bonus-check__empty { margin: 0; color: #9a9a9a; font-size: 13px; }

.case-editor__actions { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin-top: 8px; }
.case-editor__actions .admin-btn-ghost { margin-top: 0; }
.admin-box--editor .case-editor__actions button { padding: 12px 22px; font-size: 15px; }

@keyframes admin-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.admin-box,
.admin-flash {
  animation: admin-fade-up 0.28s ease both;
}

.prize-row--in {
  animation: admin-fade-up 0.26s ease both;
}

.page-admin .admin-top__nav a,
.admin-btn-ghost,
.prize-filter__btn,
.case-list__edit,
.file-btn,
.lib-drop,
.admin-box button {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.page-admin .admin-top__nav a:hover,
.admin-btn-ghost:hover,
.prize-filter__btn:hover,
.case-list__edit:hover,
.file-btn:hover,
.lib-drop:hover {
  transform: translateY(-1px);
}

.admin-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.admin-cases input,
.admin-cases select,
.admin-cases textarea {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-cases input:focus,
.admin-cases select:focus,
.admin-cases textarea:focus {
  outline: none;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.16);
}

.admin-cases .hint,
.prize-bulk__hint,
.admin-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prize-media__row {
  flex-wrap: wrap;
}

.lib-fold > summary::after {
  transition: transform 0.2s ease, margin 0.2s ease;
}

@media (max-width: 1100px) {
  .bonus-check__top { grid-template-columns: 1fr 1fr; }
  .bonus-check__top .admin-field--action { grid-column: 1 / -1; }
  .case-cover { grid-template-columns: 1fr; }
  .admin-fields,
  .admin-fields--keys,
  .clog-filters,
  .meta-nums { grid-template-columns: 1fr 1fr; }
  .admin-field--grow,
  .admin-field--wide,
  .admin-field--sm,
  .admin-toggle { grid-column: span 1; }
  .prize-row,
  .prize-row[data-kind="acs"] { grid-template-columns: 1fr 1fr; }
  .prize-row__name,
  .prize-media,
  .prize-row__side,
  .prize-acs-type { grid-column: 1 / -1; }
  .prize-row[data-kind="acs"] .prize-row__name,
  .prize-row[data-kind="acs"] .prize-media { grid-column: 1 / -1; }
  .chance-grid { grid-template-columns: 1fr 1fr; }
  .chance-sum { grid-column: 1 / -1; min-height: 48px; }
  .lib-grid { grid-template-columns: 1fr 1fr; }
  .lib-car-one { grid-template-columns: 1fr; }
  .lib-car-one .admin-field--action { grid-column: 1 / -1; }
  .lib-car-bulk__row { flex-wrap: wrap; }
  .lib-car-bulk__row button { width: 100%; }
}

@media (max-width: 980px) {
  .cases-panel { padding: 28px 18px 40px; border-radius: 22px; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-prizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roulette-item { flex-basis: 132px; width: 132px; }
  .roulette-item .prize-card { width: 132px; height: 132px; border-radius: 26px; }
  .case-roulette__window { height: 196px; }
  .case-roulette__pointer { height: 132px; }
  .case-card { flex-direction: column; align-items: stretch; min-height: 0; padding: 14px; }
  .case-card__visual,
  .case-card__visual img { width: 100%; height: auto; max-height: 180px; flex-basis: auto; }
  .case-card__tag { position: static; align-self: flex-end; }
  .case-card__title { margin-right: 0; }
  .shop .cases-panel .case-card__visual {
    width: min(100%, 280px);
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
    flex-basis: auto;
    align-self: center;
  }
  .shop .cases-panel .case-card__visual img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
}

@media (max-width: 720px) {
  .page-admin .admin-top__inner {
    padding: 12px 14px;
    gap: 10px;
  }
  .page-admin .admin-top__nav {
    width: 100%;
    gap: 8px;
  }
  .page-admin .admin-top__nav a,
  .page-admin .admin-top__who {
    padding: 8px 10px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .admin-cases {
    padding: 16px 12px 72px;
  }
  .admin-cases h1 { font-size: 22px; }
  .admin-box {
    padding: 16px 14px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .admin-fields,
  .admin-fields--keys,
  .clog-filters,
  .meta-nums,
  .chance-grid,
  .lib-grid,
  .bonus-check__top {
    grid-template-columns: 1fr;
  }
  .prize-row,
  .prize-row[data-kind="acs"] {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .prize-row__side { justify-content: stretch; }
  .admin-box .prize-del,
  .prize-bulk__acts .admin-btn-ghost,
  .admin-box--editor .case-editor__actions button,
  .prize-upload-btn,
  .prize-reset-btn {
    width: 100%;
    min-height: 44px;
  }
  .prize-media__row { align-items: stretch; }
  .prize-filter__btn {
    min-height: 40px;
    padding: 8px 12px !important;
  }
  .admin-cases input:not([type="file"]),
  .admin-cases select,
  .admin-cases textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .prize-bulk textarea { min-height: 180px; }
  .lib-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-fold > summary {
    flex-wrap: wrap;
    gap: 6px;
  }
  .case-list__row { gap: 10px; }
  .clog-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }
  .srv-grid { grid-template-columns: 1fr 1fr; }
  .srv-chart-wrap {
    margin-left: -6px;
    margin-right: -6px;
  }
  #srv-chart { height: 360px; }
  .srv-verdict b { font-size: 22px; }
  .srv-acts { flex-direction: column; }
  .srv-acts .srv-btn { width: 100%; }
  .clog-regrant,
  .clog-filters button,
  .chance-help-btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .lib-cars { grid-template-columns: 1fr; }
  .prize-filter__group { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-box,
  .admin-flash,
  .prize-row--in,
  .page-admin .admin-top__nav a,
  .admin-btn-ghost,
  .prize-filter__btn,
  .case-list__edit,
  .file-btn,
  .lib-drop,
  .admin-box button,
  .admin-cases input,
  .admin-cases select,
  .admin-cases textarea,
  .lib-fold > summary::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
