/* Топы KOZYR SMP (2026-11-10). Тот же «эпический» язык, что у профиля: тёмная сцена,
   лучи, пиксельная пыль, объёмные буквы. Акцент - фирменный аметист. */
body { background: #0b0810 !important; overflow-x: clip; }

.kzt {
    --acc: #9b6ad6;
    --acc-hi: #c9a6f0;
    --acc-lo: #3b2357;
    --panel: #15111d;
    --panel-2: #1c1726;
    --ink: #f1edf7;
    --muted: #a59db3;
    --gold: #f6d878;
    --iron: #d8dde3;
    --copper: #e08a5a;
    color: var(--ink);
    font-family: 'Rubik', system-ui, sans-serif;
}
.kzt *, .kzt *::before, .kzt *::after { box-sizing: border-box; border-radius: 0; }
.kzt img { image-rendering: pixelated; }
.kzt [hidden] { display: none !important; }
.kzt a { color: var(--acc-hi); }

/* ---------- шапка ---------- */
.kzt-hero {
    position: relative; isolation: isolate; overflow: hidden; padding: 56px 20px 64px; text-align: center;
    background:
        radial-gradient(50% 80% at 50% 110%, rgba(155, 106, 214, .55), transparent 70%),
        linear-gradient(180deg, #0b0810 0%, #1a1028 55%, #0b0810 100%);
    border-bottom: 3px solid #000;
}
.kzt-hero__rays {
    position: absolute; left: 50%; top: 62%; width: 1600px; height: 1600px; z-index: -1;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.5) 20%, transparent 45%);
    mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.5) 20%, transparent 45%);
    animation: kztRays 70s linear infinite;
}
@keyframes kztRays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.kzt-hero__dust i {
    position: absolute; bottom: -10px; left: calc(3% + var(--d) * 5.4%); width: 4px; height: 4px; z-index: -1;
    background: #d9c2f5; opacity: 0;
    animation: kztDust calc(5s + var(--d) * .41s) linear infinite; animation-delay: calc(var(--d) * -.8s);
}
.kzt-hero__dust i:nth-child(3n) { width: 6px; height: 6px; background: var(--gold); }
@keyframes kztDust { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .85; } 100% { transform: translateY(-460px) translateX(20px); opacity: 0; } }
.kzt-hero__inner { position: relative; max-width: 1100px; margin: 0 auto; }
.kzt-hero__trophy { width: 72px; height: 72px; filter: drop-shadow(0 0 18px rgba(246,216,120,.7)); animation: kztBob 2.6s ease-in-out infinite; }
@keyframes kztBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }

.kzt-hero__title {
    margin: 6px 0 0; font-family: 'MinecraftFont', 'Press Start 2P', monospace; font-weight: normal;
    font-size: clamp(64px, 14vw, 150px); line-height: 1; letter-spacing: .03em; color: transparent;
    transform: rotate(-3deg) skewX(-8deg);
}
.kzt-l { position: relative; display: inline-block; animation: kztLetter .7s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(.1s + var(--i) * .08s); }
@keyframes kztLetter { 0% { transform: translateY(-1.2em) scale(.6) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.kzt-l__b {
    display: inline-block; color: #4a2a6b;
    text-shadow: .02em .02em 0 #3f2360, .04em .04em 0 #361e52, .06em .06em 0 #2d1945, .08em .08em 0 #241337, .1em .1em 0 #000, .12em .15em .1em rgba(0,0,0,.6);
}
.kzt-l__f {
    position: absolute; left: 0; top: 0;
    background:
        linear-gradient(100deg, transparent 40%, rgba(255,255,255,.95) 48%, transparent 56%),
        linear-gradient(180deg, #fff 0%, #fff 30%, #e3cffa 58%, #b58ae6 100%);
    background-size: 400% 100%, 100% 100%; background-position: 120% 0, 0 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .02em rgba(0,0,0,.85); paint-order: stroke fill;
    animation: kztShine 9s linear infinite; animation-delay: calc(1.2s + var(--i) * .2s);
}
@keyframes kztShine { 0%, 50% { background-position: 120% 0, 0 0; } 90%, 100% { background-position: -40% 0, 0 0; } }
.kzt-hero__sub { margin: 18px 0 30px; font-size: 17px; color: #d6cbe6; }

.kzt-totals { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.kzt-totals div {
    min-width: 150px; padding: 14px 18px; background: rgba(11,8,16,.7); border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), 0 6px 0 #000;
}
.kzt-totals b { display: block; font-family: 'MinecraftFont', monospace; font-weight: normal; font-size: 26px; color: #fff; text-shadow: 2px 2px 0 #000; }
.kzt-totals span { font-size: 13px; color: var(--muted); }

/* ---------- обёртка, вкладки ---------- */
.kzt-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 70px; }
.kzt-tabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: -34px 0 36px; }
.kzt-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    min-height: 82px; padding: 10px 4px 8px; cursor: pointer; min-width: 0;
    font-family: 'MinecraftFont', monospace; font-size: 12px; color: #d9d2e4; white-space: nowrap;
    background: linear-gradient(180deg, #221c2d, #17121f); border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.09), inset -2px -2px 0 rgba(0,0,0,.45), 0 5px 0 #000;
    transition: transform .15s ease, color .15s ease;
}
.kzt-tab:hover { transform: translateY(-3px); color: #fff; }
.kzt-tab.is-on {
    color: #fff; background: linear-gradient(180deg, #7b52ad, #3d2560);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.25), 0 5px 0 #000, 0 0 24px rgba(155,106,214,.6);
    text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.kzt-tab__slot { display: grid; place-items: center; width: 36px; height: 36px; background: #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.kzt-tab__slot img { width: 26px; height: 26px; }
.kzt-tab.is-on .kzt-tab__slot img { animation: kztBob 1.8s ease-in-out infinite; }

.kzt-cat { animation: kztRise .45s ease both; }
@keyframes kztRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kzt-cat__title, .kzt-big {
    display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 10px;
    font-family: 'MinecraftFont', monospace; font-weight: normal; font-size: 34px; color: #fff;
    text-shadow: .035em .035em 0 var(--acc-hi), .07em .07em 0 var(--acc), .105em .105em 0 var(--acc-lo), .14em .14em 0 #000;
}
.kzt-cat__title img, .kzt-big img { width: 40px; height: 40px; object-fit: contain; }

/* ---------- пьедестал ---------- */
.kzt-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; max-width: 760px; margin: 0 auto 26px; padding-top: 30px; }
.kzt-pod { position: relative; display: flex; flex-direction: column; align-items: center; animation: kztRise .6s ease both; }
.kzt-pod--1 { animation-delay: .25s; }
.kzt-pod--2 { animation-delay: .1s; }
.kzt-pod--3 { animation-delay: .4s; }
.kzt-pod__crown { position: absolute; top: -34px; z-index: 2; width: 40px; height: 40px; filter: drop-shadow(0 0 14px rgba(246,216,120,.9)); animation: kztBob 2s ease-in-out infinite; }
.kzt-pod__skin { position: relative; z-index: 1; width: auto; height: 150px; margin-bottom: -6px; filter: drop-shadow(6px 8px 0 rgba(0,0,0,.45)); transition: transform .2s ease; }
.kzt-pod--1 .kzt-pod__skin { height: 180px; }
.kzt-pod:hover .kzt-pod__skin { transform: translateY(-6px) scale(1.03); }
.kzt-pod__block {
    --c: var(--iron);
    position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 22px 10px 16px; text-align: center; border: 3px solid #000;
    background:
        linear-gradient(180deg, rgba(255,255,255,.28), transparent 18%),
        repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 8px, transparent 8px 16px),
        linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 55%, #000));
    box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.3), 0 10px 0 #000, 0 18px 40px rgba(0,0,0,.5);
    color: #160f1f;
}
.kzt-pod--1 .kzt-pod__block { --c: var(--gold); min-height: 170px; box-shadow: inset 3px 3px 0 rgba(255,255,255,.4), inset -3px -3px 0 rgba(0,0,0,.25), 0 10px 0 #000, 0 0 50px rgba(246,216,120,.35); }
.kzt-pod--2 .kzt-pod__block { --c: var(--iron); min-height: 135px; }
.kzt-pod--3 .kzt-pod__block { --c: var(--copper); min-height: 110px; }
.kzt-pod__place {
    position: absolute; top: -20px; display: grid; place-items: center; width: 38px; height: 38px;
    font-family: 'MinecraftFont', monospace; font-size: 20px; color: #fff; background: #160f1f; border: 3px solid #000;
}
.kzt-pod--1 .kzt-pod__place { color: var(--gold); }
.kzt-pod__nick { font-family: 'MinecraftFont', monospace; font-weight: normal; font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kzt-pod__val { font-size: 14px; font-weight: 500; }
.kzt-pod__val b { font-family: 'MinecraftFont', monospace; font-weight: normal; font-size: 22px; }
.kzt-pod--1 .kzt-pod__val b { font-size: 26px; }

.kzt-clantag {
    display: inline-block; padding: 1px 6px; font-family: 'MinecraftFont', monospace; font-size: 11px; line-height: 1.5;
    color: #fff; background: #2a2236; border: 1px solid #000; vertical-align: middle;
}
.kzt-pod .kzt-clantag { background: rgba(22,15,31,.85); }

/* ---------- список 4-10 ---------- */
.kzt-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 8px; }
.kzt-row {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 34px 40px 1fr auto; align-items: center; gap: 14px;
    padding: 10px 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.06);
    animation: kztRise .4s ease both; animation-delay: calc(.35s + var(--n) * 50ms);
    transition: transform .15s ease;
}
.kzt-row:hover { transform: translateX(4px); }
.kzt-row__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--pct); background: linear-gradient(90deg, var(--acc), var(--acc-hi)); box-shadow: 0 0 10px var(--acc); transform-origin: left; animation: kztBar .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.45s + var(--n) * 50ms); }
@keyframes kztBar { from { transform: scaleX(0); } }
.kzt-row__pos { font-family: 'MinecraftFont', monospace; font-size: 17px; color: var(--muted); text-align: center; }
.kzt-row__head { width: 40px; height: 40px; border: 2px solid #000; }
.kzt-row__nick { font-family: 'MinecraftFont', monospace; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kzt-row__val { font-size: 13px; color: var(--muted); white-space: nowrap; }
.kzt-row__val b { font-family: 'MinecraftFont', monospace; font-weight: normal; font-size: 18px; color: #fff; }

/* ---------- кланы ---------- */
.kzt-clans { margin-top: 70px; padding-top: 50px; border-top: 2px dashed rgba(255,255,255,.08); }
.kzt-clans__head { text-align: center; margin-bottom: 26px; }
.kzt-big { font-size: 44px; }
.kzt-clans__chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.kzt-clans__chips span, .kzt-clans__chips a {
    padding: 8px 14px; font-size: 14px; color: var(--muted); background: #17121f; border: 2px solid #000; text-decoration: none;
}
.kzt-clans__chips b { font-family: 'MinecraftFont', monospace; font-weight: normal; color: #fff; }
.kzt-clans__chips a { color: #fff !important; background: #5d3d86; }
.kzt-clans__chips a:hover { filter: brightness(1.15); }

.kzt-clan-list { display: grid; gap: 14px; }
.kzt-clan {
    position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px;
    padding: 20px 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35);
    animation: kztRise .45s ease both; animation-delay: calc(var(--n) * 80ms);
    transition: transform .15s ease, box-shadow .2s ease;
}
.kzt-clan:hover { transform: translateY(-3px); box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), 0 0 0 2px rgba(155,106,214,.6), 0 12px 30px rgba(0,0,0,.45); }
.kzt-clan.is-first { box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), 0 0 0 2px var(--gold), 0 0 34px rgba(246,216,120,.22); }
.kzt-clan__rank {
    display: grid; place-items: center; width: 64px; height: 64px; font-family: 'MinecraftFont', monospace; font-size: 30px;
    color: #fff; background: radial-gradient(circle, #3d2560, #160f1f 75%); border: 2px solid #000; text-shadow: 2px 2px 0 #000;
}
.kzt-clan.is-first .kzt-clan__rank { color: var(--gold); }
.kzt-clan__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kzt-clan__name h3 { margin: 0; font-family: 'MinecraftFont', monospace; font-weight: normal; font-size: 22px; color: #fff; }
.kzt-clan__tag { padding: 3px 8px; font-family: 'MinecraftFont', monospace; font-size: 13px; color: #160f1f; background: var(--acc-hi); border: 2px solid #000; }
.kzt-clan.is-first .kzt-clan__tag { background: var(--gold); }
.kzt-clan__meta { margin: 6px 0 10px; font-size: 14px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.kzt-clan__meta b { color: #fff; }
.kzt-clan__members { display: flex; flex-wrap: wrap; gap: 4px; }
.kzt-clan__members img { width: 32px; height: 32px; border: 2px solid #000; transition: transform .15s ease; }
.kzt-clan__members img:hover { transform: translateY(-3px) scale(1.1); }
.kzt-clan__members img.is-leader { border-color: var(--gold); box-shadow: 0 0 10px rgba(246,216,120,.6); }
.kzt-clan__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; margin: 0; }
.kzt-clan__stats div { min-width: 92px; padding: 10px 12px; text-align: center; background: #0e0b14; border: 2px solid #000; }
.kzt-clan__stats dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.kzt-clan__stats dd { margin: 0; font-family: 'MinecraftFont', monospace; font-size: 18px; color: #fff; white-space: nowrap; }

.kzt-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 2px dashed rgba(255,255,255,.12); }
.kzt-note { margin: 40px 0 0; text-align: center; color: #6f6880; font-size: 13px; line-height: 1.6; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
    .kzt-clan { grid-template-columns: 54px 1fr; }
    .kzt-clan__rank { width: 54px; height: 54px; font-size: 24px; }
    .kzt-clan__stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kzt-clan__stats div { min-width: 0; }
}
@media (max-width: 640px) {
    .kzt-hero { padding: 40px 14px 54px; }
    .kzt-hero__sub { font-size: 15px; margin-bottom: 22px; }
    .kzt-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kzt-totals div { min-width: 0; padding: 10px; }
    .kzt-totals div:last-child { grid-column: 1 / -1; }
    .kzt-totals b { font-size: 20px; }
    .kzt-wrap { padding: 0 12px 50px; }
    .kzt-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: -22px; }
    .kzt-tab { min-height: 66px; padding: 6px 2px; gap: 4px; font-size: 9px; }
    .kzt-tab__slot { width: 30px; height: 30px; }
    .kzt-tab__slot img { width: 22px; height: 22px; }
    .kzt-cat__title { font-size: 24px; }
    .kzt-big { font-size: 32px; }
    .kzt-podium { gap: 6px; padding-top: 34px; }
    .kzt-pod__skin { height: 96px; }
    .kzt-pod--1 .kzt-pod__skin { height: 118px; }
    .kzt-pod__block { padding: 20px 4px 10px; }
    .kzt-pod--1 .kzt-pod__block { min-height: 130px; }
    .kzt-pod--2 .kzt-pod__block { min-height: 108px; }
    .kzt-pod--3 .kzt-pod__block { min-height: 92px; }
    .kzt-pod__nick { font-size: 12px; }
    .kzt-pod__val { font-size: 11px; }
    .kzt-pod__val b, .kzt-pod--1 .kzt-pod__val b { font-size: 15px; }
    .kzt-pod__place { width: 32px; height: 32px; font-size: 16px; top: -17px; }
    .kzt-row { grid-template-columns: 26px 34px 1fr; gap: 10px; padding: 8px 10px; }
    .kzt-row__head { width: 34px; height: 34px; }
    .kzt-row__val { grid-column: 3; }
    .kzt-row__nick { font-size: 14px; }
    .kzt-clan { padding: 14px; gap: 12px; }
    .kzt-clan__name h3 { font-size: 17px; }
    .kzt-clan__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .kzt *, .kzt *::before, .kzt *::after { animation: none !important; transition: none !important; }
}
