.warzone-map {position: relative; display: grid; gap: 0; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; background: rgba(0,0,0,.5);}
.warzone-map-count {position: fixed; top: 50px; left: 50px; width: 400px; background: black; z-index: 20;}
.warzone-zone {position: relative; aspect-ratio: 1/1; border: 1px dotted rgba(255,255,255,.3);}
.warzone-zone-logo {position: absolute; top: 50%; left: 50%; transform-origin: center; transform: scale(1) translate(-50%, -50%); width: 50%;}

.wardescr {font-family: 'Bender', sans-serif; font-size: 14pt; color: #fff;}
.war-text {color: #fff; text-shadow: 1px 1px 0 black;}
.warnow-row {position: relative; margin: 20px auto 0 auto; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 10px; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); border-radius: 5px; display: grid; gap: 0; grid-template-columns: 1fr 1fr 1fr 1fr; width: 300px; max-width: 60%;}
.warnow-logo {}
.warnow-logo img {width: 100%;}
.warnow-vs {align-self: center; text-align: center; grid-column: span 2; font-family: 'Bender', sans-serif; text-transform: uppercase; font-size: 24pt; color: #fff;}

.warzone-view {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 500px; text-align: center; z-index: 2;}
.warzone-view-logo {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; max-width: 800px; opacity: .25; z-index: -1;}
.warzone-view-1 {background: radial-gradient(circle,rgba(60,179,113, .5) 0%, rgba(60,179,113, 0) 50%);}
.warzone-view-2 {background: radial-gradient(circle,rgba(178,34,34, .5) 0%, rgba(178,34,34, 0) 50%);}
.warzone-view-3 {background: radial-gradient(circle,rgba(210,105,30, .5) 0%, rgba(210,105,30, 0) 50%);}
.warzone-view-4 {background: radial-gradient(circle,rgba(105,105,105, .5) 0%, rgba(105,105,105, 0) 50%);}
.warzone-view-5 {background: radial-gradient(circle,rgba(189,183,107, .5) 0%, rgba(189,183,107, 0) 50%);}
.warzone-view-6 {background: radial-gradient(circle,rgba(100,149,237, .5) 0%, rgba(100,149,237, 0) 50%);}

/* Исходные стили владельцев */
.warzone-owner-1 { background: rgba(60,179,113,.5); }   /* зелёный */
.warzone-owner-2 { background: rgba(178,34,34,.5); }    /* красный */
.warzone-owner-3 { background: rgba(210,105,30,.5); }   /* коричнево-оранжевый */
.warzone-owner-4 { background: rgba(105,105,105,.5); }  /* серый */
.warzone-owner-5 { background: rgba(189,183,107,.5); }  /* хаки */
.warzone-owner-6 { background: rgba(100,149,237,.5); }  /* синий */

:root {
  --owner-1: rgba(60,179,113,.5);   /* зелёный */
  --owner-2: rgba(178,34,34,.5);    /* красный */
  --owner-3: rgba(210,105,30,.5);   /* оранжево-коричневый */
  --owner-4: rgba(105,105,105,.5);  /* серый */
  --owner-5: rgba(189,183,107,.5);  /* хаки */
  --owner-6: rgba(100,149,237,.5);  /* синий */
}

.warzone-war {
  animation: warzone-cycle 12s infinite linear;
}

@keyframes warzone-cycle {
  0%   { background: var(--owner-1); }
  16%  { background: var(--owner-2); }
  32%  { background: var(--owner-3); }
  48%  { background: var(--owner-4); }
  64%  { background: var(--owner-5); }
  80%  { background: var(--owner-6); }
  100% { background: var(--owner-1); }
}

.preset-header {text-align: center; margin-top: 30px; margin-bottom: 10px;}
.preset {position: relative; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 20px; border-radius: 10px; overflow: hidden; margin-bottom: 5px;}
.preset-title {text-align: left; font-family: 'Bender', sans-serif; color: #fff; margin-bottom: 10px;}
.preset-row {display: grid; gap: 0; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; gap: 10px;}
.preset-item {aspect-ratio: 1/1; border-radius: 5px; overflow: hidden; background: rgba(0,0,0,.5);}
.preset-item img {width: 100%;}
.preset-noitem {opacity: .1;}

.twin-table {border-collapse: collapse; width: 100%; font-family: system-ui, Arial, sans-serif; font-size: 14px;}
.twin-table th, .twin-table td {border: 1px solid rgba(255,255,255,.2); padding: 6px 8px; vertical-align: middle;}
.twin-ip {background: #d4d4b4; font-weight: 600; color: #000;}
.twin-main {font-weight: 700; background: #d4d4b4; color: #000;}
.twin-banned {background: rgba(255,0,0,.2); color: #fff;}
.twin-actions button {margin-right: 5px;}
.twin-actions button[disabled] {opacity: .6; cursor: not-allowed;}
.twin-badge {display:inline-block; padding:2px 6px; border-radius: 999px; font-size: 12px; margin-left: 6px; border:1px solid #99f; color:#225;}
.twin-badge.banned {border-color: rgba(255,0,0,.2); color:#fff; position: relative; top: 0px;}
.twin-badge.main {border-color: rgba(255,255,255,.2); color: #fff;}
.twin-badge.twin {border-color: rgba(255,255,255,.2); color: #fff;}
.small-muted {color:#666; font-size:12px; margin-left:8px;}
.sticky-head thead th {position: sticky; top: 50px; color: #fff;}

.toy-shelf {
  position: relative;
  top: -20px;
  margin: 0 auto 10px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  justify-content: center;
  justify-items: center;
  align-items: end;
  gap: 0;
  width: 300px;
  max-width: 90%;
  perspective: 800px;
}

/* --- Полка --- */
.toy-shelf::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 18px;
  background: linear-gradient(to bottom, #d4d4d4 0%, #7a7a7a 100%);
  border-radius: 2px;
  transform: perspective(200px) rotateX(25deg);
  transform-origin: top;
  box-shadow: 0 8px 12px rgba(0,0,0,.75), inset 0 2px 0 rgba(255,255,255,.3);
  z-index: -1;
}

.toy-shelf::before {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, #555, #222);
  transform: perspective(200px) rotateX(70deg);
  transform-origin: top;
  z-index: -2;
}

/* --- Игрушка --- */
.toy-item {
  position: relative;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 180ms ease;
  transform-origin: center bottom;
}

.toy-item img {
  width: 100%;
  max-width: 80px;
  display: block;
  pointer-events: none;
}

/* --- Подпись --- */
.toy-name {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  text-align: center;
  opacity: 0;
  color: #fff;
  font-size: 5pt;
  font-family: 'Bender', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.35s ease;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* При наведении — плавное появление текста */
.toy-item:hover .toy-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notes-premium {min-height: 110px; color: #fff; position: relative; padding: 20px 20px 20px 170px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);}
.notes-premium-logo {position: absolute; top: 0; left: 0; width: 150px;}

.championship-header {margin-top: 20px; background: rgba(255,255,255,.05);}
.championship-group {display: grid; grid-template-columns: 4fr 1fr; border-bottom: 1px solid rgba(255,255,255,.2); padding: 15px 0;}
.championship-group-left {padding-right: 15px;}
.championship-row {padding: 6px 0; display: grid; grid-template-columns: 60px 1fr 100px; align-items: center;}
.championship-rating {font-family: 'Bender', sans-serif; text-align: center; color: #fff; font-weight: bold;}
.championship-points {font-family: 'Bender', sans-serif; text-align: center;}
.championship-group-right .loot-item {width: 30%; display: inline-block; margin: 5px auto;}
.championship-me {background: rgba(255,255,255,.1);}

.globalrank-module {
    margin: 20px 0;
    padding: 16px;
    border-radius: 10px;
    color: #fff;
}
.globalrank-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.globalrank-icon img {
    width: 48px;
    height: 48px;
    display:block;
}
.globalrank-title {
    font-size: 18px;
    font-family: 'Bender', sans-serif;
}

/* Линия рангов — сегмент над каждым рангом */
.globalrank-rank-progress {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 6px;
}
.globalrank-rank-progress-inner {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f6e27a, #f0b53e);
}

/* Карусель рангов */
.globalrank-ranks-wrapper {
    margin-top: 8px;
}

.globalrank-item {
    text-align: center;
    font-size: 11px;
    position: relative;
    padding: 8px 4px 10px;
}

.globalrank-item-icon {
    margin-bottom: 6px;
}
.globalrank-item-icon img {
    width: 60%;
    display:block;
    margin: 0 auto;
    transition: 0.3s all;
}

.owl-globalranks .owl-item img {transform: scale(0.75);}
.owl-globalranks .owl-item.center img {transform: scale(1.05);}

.globalrank-item.current {
    
}
.globalrank-item.current .globalrank-item-icon img {
    filter: drop-shadow(0 0 8px rgba(240,181,62,0.9));
}

.globalrank-item-name {
    font-size: 16pt;
    margin-bottom: 10px;
    font-family: 'Bender', sans-serif;
}

/* Подписи под рангами */
.globalrank-unlock,
.globalrank-squad {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 11pt;
    padding: 7px;
    border-radius: 5px;
    width: 40%;
    margin: 5px auto 0 auto;
    line-height: 1.2;
}
.globalrank-unlock {
    color: #ffffff;
    cursor: help;
}
.globalrank-squad {
    color: #7dd3fc;
}

/* ADAPTIVE
----------------------------------------------- */

@media screen and (max-width: 800px) {
    .globalrank-item-icon img {width: 80%;}
    .globalrank-unlock, .globalrank-squad {width: 90%;}
    .preset-row {display: grid; gap: 0; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; gap: 5px;}
    .notes-premium {min-height: 110px; padding: 20px; text-align: center;}
	.notes-premium-logo {position: relative; display: block; margin: 0 auto; width: 100px;}
    .championship-group-right .loot-item {width: calc(100% - 10px);}
}