/* «Полювання дня»: розыскной плакат 1895 года, отряд и номинации (index.html) */
:root {
    --paper-ink: #2b1b0d;
    --paper-red: #a3201a;
    --font-poster: "Roboto Slab", "Rockwell", Georgia, "Times New Roman", serif;
    --font-old: "Old Standard TT", Georgia, "Times New Roman", serif;
}

.hunt__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hunt__date {
    min-width: 150px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
}

.hunt__arrow {
    width: 30px;
    height: 30px;
    color: var(--text-gold);
    font-size: 18px;
    line-height: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-accent);
    transition: border-color var(--transition);
}

.hunt__arrow:hover:not(:disabled) {
    border-color: var(--text-gold);
}

.hunt__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.hunt__body {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 250px;
    gap: 20px;
    align-items: stretch;
    transition: opacity 0.2s ease;
}

.hunt__body.is-loading {
    opacity: 0.45;
}

.hunt-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: var(--text-dim);
    text-align: center;
}

/* ---------- Плакат ---------- */
.wanted-wrap {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}

.wanted {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    padding: 24px 22px 18px;
    color: var(--paper-ink);
    text-align: center;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(120, 72, 22, 0.35), transparent 42%),
        radial-gradient(ellipse at 92% 90%, rgba(110, 62, 18, 0.45), transparent 48%),
        radial-gradient(ellipse at 85% 12%, rgba(120, 72, 22, 0.22), transparent 30%),
        radial-gradient(circle at 30% 70%, rgba(255, 250, 230, 0.22), transparent 38%),
        radial-gradient(circle at 62% 46%, rgba(90, 50, 10, 0.1), transparent 12%),
        linear-gradient(165deg, #efe0bb 0%, #dcc392 55%, #c9a86c 100%);
    box-shadow:
        inset 0 0 70px rgba(85, 48, 12, 0.55),
        inset 0 0 12px rgba(85, 48, 12, 0.5);
    /* Неровные края старой бумаги */
    clip-path: polygon(
        0% 1.5%,
        6% 0%,
        14% 1%,
        23% 0.2%,
        35% 1.2%,
        47% 0%,
        58% 0.8%,
        70% 0.1%,
        82% 1.1%,
        93% 0.2%,
        100% 1.4%,
        99.4% 12%,
        100% 25%,
        99.2% 38%,
        100% 52%,
        99.3% 66%,
        100% 79%,
        99.4% 91%,
        100% 99%,
        91% 100%,
        79% 99.1%,
        66% 100%,
        53% 99.2%,
        41% 100%,
        28% 99.3%,
        16% 100%,
        5% 99.2%,
        0% 100%,
        0.6% 88%,
        0% 75%,
        0.8% 61%,
        0% 47%,
        0.7% 33%,
        0% 20%,
        0.6% 9%
    );
}

/* Рамка, отпечатанная типографией */
.wanted::before {
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(43, 27, 13, 0.6);
    outline: 1px solid rgba(43, 27, 13, 0.35);
    outline-offset: 3px;
    pointer-events: none;
    content: "";
}

.wanted__nail {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: radial-gradient(circle at 35% 35%, #9a948b, #3b3732 60%, #1c1a17);
    border-radius: 50%;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.45);
}

.wanted__title {
    margin-top: 4px;
    font-family: var(--font-poster);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 245, 220, 0.35);
}

/* Длинное слово («РОЗШУКУЄТЬСЯ») — мельче, чтобы влезло в рамку */
.wanted__title.is-long {
    font-size: 22px;
    letter-spacing: 0.5px;
}

.wanted__sub {
    margin: 5px 0 10px;
    padding: 2px 10px;
    font-family: var(--font-old);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-top: 1px solid rgba(43, 27, 13, 0.6);
    border-bottom: 1px solid rgba(43, 27, 13, 0.6);
}

.wanted__photo {
    display: block;
    padding: 5px;
    background: rgba(43, 27, 13, 0.12);
    border: 3px solid var(--paper-ink);
    box-shadow: inset 0 0 18px rgba(43, 27, 13, 0.45);
}

/* Аватар как старая фотография; позже здесь будет аватар Steam с тем же фильтром */
.wanted__photo .avatar {
    width: 84px;
    height: 84px;
    font-family: var(--font-poster);
    color: #f1e4c4;
    font-size: 32px;
    background: radial-gradient(circle at 50% 40%, #a88758, #5e4425 75%);
    border: none;
    filter: sepia(0.8) contrast(1.1);
}

.wanted__name {
    max-width: 100%;
    margin-top: 8px;
    color: var(--paper-ink);
    font-family: var(--font-poster);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.wanted__name:hover {
    color: var(--paper-red);
}

.wanted__phrase {
    margin: 5px 0 8px;
    font-family: var(--font-old);
    font-size: 13px;
    font-style: italic;
    line-height: 1.35;
}

.wanted__rule {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-family: var(--font-poster);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.wanted__rule::before,
.wanted__rule::after {
    flex: 1;
    height: 0;
    border-top: 3px double rgba(43, 27, 13, 0.7);
    content: "";
}

.wanted__reward {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin: 4px 0 8px;
}

.wanted__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wanted__cell + .wanted__cell {
    border-left: 1px solid rgba(43, 27, 13, 0.35);
}

.wanted__cell b {
    font-family: var(--font-poster);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.1;
}

.wanted__cell span {
    font-family: var(--font-old);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wanted__foot {
    font-family: var(--font-old);
    font-size: 11px;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* Красная печать */
.wanted__stamp {
    position: absolute;
    top: 33%;
    right: 6px;
    padding: 3px 8px;
    color: var(--paper-red);
    font-family: var(--font-poster);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 3px double var(--paper-red);
    opacity: 0.82;
    transform: rotate(-14deg);
    mix-blend-mode: multiply;
}

/* ---------- Отряд и итог ---------- */
.hunt-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.hunt-info__label {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hunt-info__label:not(:first-child) {
    margin-top: 8px;
}

.hunt-info__kda {
    color: var(--text-dim);
}

.hunt-squad {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hunt-mate {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 76px 90px 36px;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-main);
}

.hunt-mate:last-child {
    border-bottom: none;
}

.hunt-mate__name {
    overflow: hidden;
    color: var(--text-main);
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hunt-mate.is-hero .hunt-mate__name {
    color: var(--text-gold);
}

a.hunt-mate__name:hover {
    text-decoration: underline;
}

.hunt-mate__name.is-hidden {
    color: var(--text-dim);
    font-style: italic;
    font-weight: 400;
}

.hunt-mate__ghost {
    color: var(--text-dim);
    background: var(--bg-input);
    border-color: var(--border-main);
}

.hunt-mate__kda {
    color: var(--text-muted);
    white-space: nowrap;
    font-family: var(--font-mono);
    text-align: center;
}

.hunt-mate__bar {
    height: 6px;
    overflow: hidden;
    background: var(--bg-input);
}

.hunt-mate__bar span {
    display: block;
    height: 100%;
    background: var(--border-accent);
}

.hunt-mate.is-hero .hunt-mate__bar span {
    background: linear-gradient(90deg, #b8862e, #fabd2f);
}

.hunt-mate__share {
    color: var(--text-muted);
    font-size: 12px;
    text-align: right;
}

.hunt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hunt-chip {
    padding: 5px 10px;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    background: var(--bg-input);
    border: 1px solid var(--border-main);
}

.hunt-chip.is-good {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.4);
}

.hunt-chip.is-bad {
    color: #e5534b;
    border-color: rgba(229, 83, 75, 0.4);
}

.hunt-loadout {
    color: var(--text-main);
    font-size: 14px;
}

.hunt-loadout span {
    color: var(--text-dim);
}

.hunt-how {
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 12px;
}

.hunt-how summary {
    color: var(--text-muted);
    cursor: pointer;
}

.hunt-how summary:hover {
    color: var(--text-gold);
}

.hunt-how p {
    margin: 8px 0 0;
    line-height: 1.5;
}

/* ---------- Номинации ---------- */
.hunt-noms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hunt-noms > .hunt-nom {
    flex: 1;
}

.hunt-nom {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px;
    color: var(--text-main);
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    transition:
        border-color var(--transition),
        background var(--transition);
}

button.hunt-nom:hover {
    border-color: var(--border-accent);
}

.hunt-nom.is-active {
    background: linear-gradient(90deg, rgba(209, 184, 148, 0.08), transparent), var(--bg-card);
    border-color: var(--border-gold);
    box-shadow: inset 3px 0 0 var(--text-gold);
}

.hunt-nom.is-empty {
    opacity: 0.55;
}

.hunt-nom__ico {
    display: flex;
    grid-row: 1 / 4;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--text-gold);
    background: rgba(209, 184, 148, 0.08);
    border: 1px solid var(--border-gold);
}

.hunt-nom__ico .tr-svg {
    width: 22px;
    height: 22px;
}

.hunt-nom__title {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hunt-nom__who {
    overflow: hidden;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hunt-nom__line {
    color: var(--text-dim);
    font-size: 12px;
}

.hunt-skel {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .hunt__body {
        grid-template-columns: 330px minmax(0, 1fr);
    }
    .hunt-noms {
        flex-direction: row;
        grid-column: 1 / -1;
    }
    .hunt-nom {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .hunt__body {
        grid-template-columns: minmax(0, 1fr);
    }
    .wanted-wrap {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }
    .hunt-noms {
        flex-direction: column;
    }
    .hunt-mate {
        grid-template-columns: 24px minmax(0, 1fr) auto 36px;
    }
    .hunt-mate__bar {
        display: none;
    }
    .hunt__date {
        min-width: 110px;
    }
}
