/* Турнир «Триатлон» (/tournament/triathlon). Ретро-бодибилдинг: кремовая бумага, чёрная тушь, винтажный красный,
   золото кубка, гири. Обычный CSS без сборки. Шрифты Anton + Oswald подключаются во вьюхе. */
#steel-arnie {
    --sa-paper: #f3ead8;
    --sa-paper-2: #ebe0c9;
    --sa-card: #fbf6ec;
    --sa-ink: #141210;
    --sa-ink-2: #3b3630;
    --sa-dim: #7a7063;
    --sa-line: rgba(20, 18, 16, .14);
    --sa-red: #c8302a;
    --sa-red-2: #a3231e;
    --sa-gold: #e8b23a;
    --sa-ok: #2f8a4c;
    --sa-silver: #b9bcc2;
    --sa-bronze: #c27d43;
    --sa-steel: linear-gradient(180deg, #ffffff 0%, #c9ced6 45%, #7d848f 55%, #e6e9ee 100%);
    --sa-head: 'Anton', 'Oswald', 'Roboto Condensed', Impact, sans-serif;
    --sa-font: 'Oswald', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-family: var(--sa-font);
    color: var(--sa-ink);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"),
        var(--sa-paper);
    padding-bottom: 72px;
}
#steel-arnie a { color: var(--sa-ink); text-decoration: underline; text-decoration-color: var(--sa-red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
#steel-arnie a:hover { color: var(--sa-red); }
#steel-arnie h1, #steel-arnie h2, #steel-arnie h3 { color: inherit; }
#steel-arnie .sa-mono { font-family: var(--sa-font); font-variant-numeric: tabular-nums; font-weight: 600; }
#steel-arnie .sa-dim { color: var(--sa-dim); }
#steel-arnie .sa-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--sa-dim); display: flex; align-items: center; gap: 8px; font-weight: 600; }
#steel-arnie .sa-h { font-family: var(--sa-head); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; margin: 36px 0 14px; display: flex; gap: 12px; align-items: baseline; font-weight: 400; }
#steel-arnie .sa-h .sa-mono { color: var(--sa-red); }

/* ── ШАПКА: чёрная плашка-постер ───────────────────── */
#steel-arnie .sa-hero { border-bottom: none !important; position: relative; overflow: hidden; background: var(--sa-ink); color: var(--sa-paper); padding: 48px 0 64px; }
#steel-arnie .sa-hero::before { /* лучи-«взрыв» за артом */
    content: ''; position: absolute; right: -10%; top: 50%; width: 900px; height: 900px; transform: translateY(-50%);
    background: repeating-conic-gradient(from 0deg, rgba(232, 178, 58, .09) 0 6deg, transparent 6deg 12deg);
    mask-image: radial-gradient(circle, #000 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 65%);
}
#steel-arnie .sa-hero__stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 24px;
    background: linear-gradient(var(--sa-red) 0 8px, var(--sa-paper) 8px 12px, var(--sa-gold) 12px 20px, var(--sa-paper) 20px 24px); }
#steel-arnie .sa-hero__row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
#steel-arnie .sa-hero__eyebrow { font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--sa-gold); margin-bottom: 10px; font-weight: 600; }

/* Логотип — без изменений: сталь + красный контур */
#steel-arnie .sa-title {
    position: relative; font-family: 'Roboto Condensed', var(--sa-font);
    font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; font-style: italic; text-transform: uppercase;
    line-height: .9; letter-spacing: -.01em; margin: 0 0 14px;
    background: var(--sa-steel); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6));
}
#steel-arnie .sa-title::after {
    content: attr(data-text); position: absolute; left: 4px; top: 4px; z-index: -1;
    color: transparent; -webkit-text-stroke: 1px rgba(200, 48, 42, .8);
}
#steel-arnie .sa-sub { font-size: 1rem; text-transform: uppercase; letter-spacing: .2em; color: rgba(243, 234, 216, .75); margin: 0 0 24px; }

#steel-arnie .sa-hero__art { position: relative; display: flex; align-items: flex-end; gap: 10px; color: var(--sa-ink); }
#steel-arnie .sa-art-trophy { width: 150px; filter: drop-shadow(6px 6px 0 var(--sa-red)); animation: sa-bob 4s ease-in-out infinite; }
#steel-arnie .sa-art-kb { width: 120px; filter: drop-shadow(6px 6px 0 var(--sa-gold)); margin-bottom: -6px; }
#steel-arnie .sa-art-kb path:nth-child(3) { stroke: var(--sa-paper); stroke-width: 3; }
#steel-arnie .sa-art-trophy path { stroke: var(--sa-ink); }
@keyframes sa-bob { 50% { transform: translateY(-6px) rotate(-2deg); } }

/* Таймер — «штамп» */
#steel-arnie .sa-timer { position: absolute; right: -8px; top: -34px; transform: rotate(6deg); background: var(--sa-red); color: var(--sa-paper); padding: 8px 14px; border: 3px solid var(--sa-paper); box-shadow: 4px 4px 0 var(--sa-ink); text-align: center; }
#steel-arnie .sa-timer__label { font-size: .65rem; text-transform: uppercase; letter-spacing: .18em; display: flex; gap: 6px; align-items: center; justify-content: center; }
#steel-arnie .sa-timer__value { font-family: var(--sa-head); font-size: 1.7rem; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Кнопки — плотные, с «печатной» тенью */
#steel-arnie .sa-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--sa-red); color: var(--sa-paper); border: 3px solid var(--sa-ink); border-radius: 999px;
    font-family: var(--sa-head); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem;
    padding: 10px 30px; cursor: pointer; box-shadow: 4px 4px 0 var(--sa-ink); transition: transform .1s, box-shadow .1s, background .15s;
}
#steel-arnie .sa-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
#steel-arnie .sa-prize { display: flex; flex-direction: column; justify-content: center; line-height: 1; text-transform: uppercase; }
#steel-arnie .sa-prize__value { font-family: var(--sa-head); font-size: 2rem; letter-spacing: .03em; color: var(--sa-gold); }
#steel-arnie .sa-prize__label { margin-top: 6px; font-size: .8rem; letter-spacing: .2em; color: rgba(243, 234, 216, .75); }
#steel-arnie .sa-hero .sa-btn { border-color: var(--sa-paper); box-shadow: 4px 4px 0 var(--sa-gold); }
#steel-arnie .sa-btn:hover { background: var(--sa-red-2); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--sa-ink); }
#steel-arnie .sa-hero .sa-btn:hover { box-shadow: 6px 6px 0 var(--sa-gold); }
#steel-arnie .sa-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sa-ink); }
#steel-arnie .sa-btn--ghost { background: var(--sa-card); color: var(--sa-ink); }
#steel-arnie .sa-btn--ghost:hover { background: var(--sa-paper-2); }
#steel-arnie .sa-btn--sm { font-size: .85rem; padding: 4px 16px; border-width: 2px; box-shadow: 2px 2px 0 var(--sa-ink); }
#steel-arnie .sa-btn__badge { background: var(--sa-gold); color: var(--sa-ink); font-family: var(--sa-font); font-weight: 700; font-size: .75rem; padding: 0 8px; border-radius: 10px; }

#steel-arnie .sa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sa-gold); display: inline-block; animation: sa-live 1.4s infinite; }
@keyframes sa-live { 50% { opacity: .3; } }

/* ── ВКЛАДКИ ───────────────────────────────────────── */
#steel-arnie .sa-nav { position: sticky; top: 0; z-index: 20; background: var(--sa-paper); border-bottom: 3px solid var(--sa-ink); }
#steel-arnie .sa-nav__scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 10px 0; }
#steel-arnie .sa-nav__scroll::-webkit-scrollbar { display: none; }
#steel-arnie .sa-nav__gap { flex: 1 0 20px; }
#steel-arnie .sa-nav__link {
    background: none; border: 2px solid transparent; border-radius: 999px; color: var(--sa-ink-2); white-space: nowrap;
    font-family: var(--sa-head); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem;
    padding: 6px 16px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s;
}
#steel-arnie .sa-nav__link:hover { border-color: var(--sa-ink); }
#steel-arnie .sa-nav__link.active { background: var(--sa-ink); color: var(--sa-paper); border-color: var(--sa-ink); }
#steel-arnie .sa-nav__n { font-family: var(--sa-font); font-weight: 700; color: var(--sa-red); font-size: .8rem; }
#steel-arnie .sa-nav__link.active .sa-nav__n { color: var(--sa-gold); }
#steel-arnie .sa-nav__link--finished { opacity: .6; }
#steel-arnie .sa-nav__link .fa-trophy { color: var(--sa-gold); }
#steel-arnie .sa-nav__count { font-family: var(--sa-font); font-weight: 700; font-size: .72rem; background: var(--sa-red); color: var(--sa-paper); padding: 0 7px; border-radius: 10px; }
#steel-arnie .sa-nav__count--hot { background: var(--sa-gold); color: var(--sa-ink); }

#steel-arnie .sa-body { padding-top: 32px; }

/* ── БРИФИНГ ЭТАПА: карточки как этикетки ──────────── */
#steel-arnie .sa-brief { display: grid; grid-template-columns: 230px 1fr; gap: 14px; margin-bottom: 24px; }
#steel-arnie .sa-brief > * { background: var(--sa-card); border: 3px solid var(--sa-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--sa-ink); }
#steel-arnie .sa-brief__info { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 2px; background: var(--sa-red) !important; color: var(--sa-paper); }
#steel-arnie .sa-brief__info .sa-k { color: rgba(243, 234, 216, .8); }
#steel-arnie .sa-brief__date { font-family: var(--sa-head); font-size: 2rem; text-transform: uppercase; line-height: 1.05; }
#steel-arnie .sa-brief__info .sa-mono { font-size: 1.2rem; }
#steel-arnie .sa-status--live { background: var(--sa-gold); }
#steel-arnie .sa-veh__name { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
#steel-arnie .tab-pane { padding-top: 0 !important; }
#steel-arnie .sa-veh__name { font-family: var(--sa-head); font-size: 1.15rem; text-transform: uppercase; display: flex; align-items: center; gap: 8px; letter-spacing: .02em; }
@media (max-width: 991px) {
    #steel-arnie .sa-brief { grid-template-columns: 1fr; }
    #steel-arnie .sa-brief__info { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 16px; flex-wrap: wrap; }
}
@media (max-width: 575px) { #steel-arnie .sa-brief { grid-template-columns: 1fr; } }

/* ── ТАБЛИЦЫ ───────────────────────────────────────── */
#steel-arnie .table-responsive { background: var(--sa-card); border: 3px solid var(--sa-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--sa-ink); }
#steel-arnie .sa-table { width: 100%; border-collapse: collapse; }
#steel-arnie .sa-table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--sa-paper); background: var(--sa-ink); font-weight: 600; padding: 10px 12px; white-space: nowrap; }
#steel-arnie .sa-table > tbody > tr > td { padding: 10px 12px; border-bottom: 1px dashed var(--sa-line); vertical-align: middle; }
#steel-arnie .sa-table > tbody > tr:last-child > td { border-bottom: 0; }
#steel-arnie .sa-table > tbody > tr:hover > td { background: rgba(232, 178, 58, .12); }
#steel-arnie .sa-col-place { width: 56px; }
#steel-arnie .sa-team { font-weight: 600; min-width: 280px; }
#steel-arnie .sa-sep { color: var(--sa-red); margin: 0 8px; font-weight: 700; }
#steel-arnie .sa-pts { font-family: var(--sa-head); font-size: 1.25rem; color: var(--sa-red); letter-spacing: .02em; }
#steel-arnie .sa-place { font-family: var(--sa-head); font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sa-ink); color: var(--sa-ink); background: var(--sa-paper); }
#steel-arnie .sa-top--1 .sa-place { background: var(--sa-gold); box-shadow: 2px 2px 0 var(--sa-ink); }
#steel-arnie .sa-top--2 .sa-place { background: var(--sa-silver); box-shadow: 2px 2px 0 var(--sa-ink); }
#steel-arnie .sa-top--3 .sa-place { background: var(--sa-bronze); box-shadow: 2px 2px 0 var(--sa-ink); }
#steel-arnie .sa-top--1 > td { background: rgba(232, 178, 58, .16); }
#steel-arnie .sa-empty { color: var(--sa-dim); text-align: center; padding: 28px 12px !important; text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; }

#steel-arnie .sa-battles { margin-top: 4px; font-weight: 400; font-size: .85rem; }
#steel-arnie .sa-battles summary { color: var(--sa-dim); cursor: pointer; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }
#steel-arnie .sa-battles summary:hover { color: var(--sa-red); }
#steel-arnie .sa-battles table { width: 100%; margin-top: 6px; }
#steel-arnie .sa-battles td { padding: 4px 6px; border-top: 1px dashed var(--sa-line); }
#steel-arnie .sa-win { color: var(--sa-ok); font-weight: 700; font-size: .75rem; letter-spacing: .1em; }

/* ── ПРАВИЛА ───────────────────────────────────────── */
#steel-arnie .sa-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
#steel-arnie .sa-score div { background: var(--sa-card); border: 3px solid var(--sa-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--sa-ink); padding: 18px 22px; }
#steel-arnie .sa-score div:first-child { background: var(--sa-gold); }
#steel-arnie .sa-score b { display: block; font-family: var(--sa-head); font-weight: 400; font-size: 2.6rem; color: var(--sa-red); line-height: 1.05; }
#steel-arnie .sa-score div:first-child b { color: var(--sa-ink); }
#steel-arnie .sa-score span { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
#steel-arnie .sa-rules { list-style: none; counter-reset: r; padding: 0; margin: 0; max-width: 880px; }
#steel-arnie .sa-rules li { counter-increment: r; position: relative; padding: 12px 0 12px 56px; border-bottom: 1px dashed var(--sa-line); line-height: 1.55; font-size: 1.02rem; }
#steel-arnie .sa-rules li::before { content: counter(r); position: absolute; left: 0; top: 9px; width: 36px; height: 36px; border-radius: 50%; background: var(--sa-ink); color: var(--sa-paper); font-family: var(--sa-head); display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* ── О ТУРНИРЕ ─────────────────────────────────────── */
#steel-arnie .sa-about { max-width: none; }

/* ── УЧАСТНИКИ ─────────────────────────────────────── */
#steel-arnie .sa-builder { margin-bottom: 28px; }
#steel-arnie .sa-builder__slots { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: stretch; }
@media (max-width: 991px) { #steel-arnie .sa-builder__slots { grid-template-columns: 1fr; } }
#steel-arnie .sa-slot {
    position: relative; display: flex; align-items: center; width: 100%; min-height: 76px; text-align: left;
    background: var(--sa-card); border: 3px solid var(--sa-ink); border-radius: 14px; color: var(--sa-ink); padding: 4px 0 4px 40px;
    box-shadow: 4px 4px 0 var(--sa-ink); transition: transform .1s, box-shadow .1s;
}
#steel-arnie .sa-slot--me { background: var(--sa-gold); }
#steel-arnie button.sa-slot { border-style: dashed; box-shadow: none; }
#steel-arnie button.sa-slot:hover, #steel-arnie button.sa-slot[aria-expanded="true"] { border-style: solid; box-shadow: 4px 4px 0 var(--sa-red); }
#steel-arnie .sa-slot__n { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--sa-ink); color: var(--sa-paper); display: flex; align-items: center; justify-content: center; font-family: var(--sa-head); font-size: .85rem; }
#steel-arnie .sa-slot__empty { display: flex; align-items: center; gap: 12px; padding: 0 12px; color: var(--sa-dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .85rem; }
#steel-arnie .sa-slot__empty i { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 2px dashed var(--sa-dim); border-radius: 50%; }
#steel-arnie .sa-slot h3, #steel-arnie .sa-picker-item h3 { font-size: 1rem; font-family: var(--sa-font); font-weight: 700; }
#steel-arnie .sa-slot h3 a, #steel-arnie .sa-slot .btn-round { text-decoration: none; }
#steel-arnie .sa-slot .fs-xs, #steel-arnie .sa-picker-item .fs-xs { color: var(--sa-ink-2); }
#steel-arnie .sa-picker-value { display: block; width: 100%; min-width: 0; }

#steel-arnie .sa-picker-menu { width: min(960px, 94vw); padding: 14px; background: var(--sa-card); border: 3px solid var(--sa-ink); border-radius: 14px; box-shadow: 8px 8px 0 var(--sa-ink); }
#steel-arnie .sa-picker-search { width: 100%; margin-bottom: 10px; background: var(--sa-paper); border: 2px solid var(--sa-ink); color: var(--sa-ink); padding: 10px 16px; border-radius: 999px; outline: none; font-family: var(--sa-font); font-size: 1rem; }
#steel-arnie .sa-picker-search:focus { box-shadow: 3px 3px 0 var(--sa-red); }
#steel-arnie .sa-picker-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-height: 440px; overflow-y: auto; }
@media (max-width: 767px) { #steel-arnie .sa-picker-list { grid-template-columns: 1fr; } }
#steel-arnie .sa-picker-item .dropdown-item { padding: 0; color: var(--sa-ink); border-radius: 10px; height: 100%; }
#steel-arnie .sa-picker-item .dropdown-item:hover { background: rgba(232, 178, 58, .35); }

#steel-arnie .sa-alert { padding: 12px 18px; margin-bottom: 16px; background: var(--sa-card); border: 2px solid var(--sa-ink); border-left-width: 8px; border-radius: 10px; }
#steel-arnie .sa-alert--ok { border-left-color: var(--sa-ok); }
#steel-arnie .sa-alert--err { border-left-color: var(--sa-red); }

@media (max-width: 767px) {
    #steel-arnie .sa-hero { padding: 32px 0 52px; }
    #steel-arnie .sa-hero__art { width: 100%; justify-content: flex-start; margin-top: 24px; }
    #steel-arnie .sa-art-trophy { width: 100px; }
    #steel-arnie .sa-art-kb { width: 80px; }
    #steel-arnie .sa-timer { position: static; transform: rotate(3deg); margin-left: auto; }
    #steel-arnie .sa-score { grid-template-columns: 1fr; }
}
#steel-arnie .sa-brief__info { gap: 12px; }
#steel-arnie .sa-brief__info > * { line-height: 1; margin: 0; }

/* ── ПУЛ ТАНКОВ: одна карточка, танки лесенкой справа-сверху → слева-снизу ── */
#steel-arnie .sa-pool { --w: 22%; position: relative; min-height: 250px; overflow: hidden; }
#steel-arnie .sa-pool__hint { position: absolute; left: 18px; top: 14px; z-index: 50; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
#steel-arnie .sa-pool__count { margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--sa-ink); color: var(--sa-paper); }
/* карточки в ряд с лёгким нахлёстом: --x = 1 у первой (справа), 0 у последней (слева) */
#steel-arnie .sa-pool__tank {
    position: absolute; top: 48px; bottom: 16px; width: var(--w);
    left: calc(16px + (100% - 32px - var(--w)) * var(--x));
    padding: 8px 10px 10px; overflow: hidden; cursor: pointer;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--sa-paper); border: 3px solid var(--sa-red); border-radius: 12px;
    box-shadow: -6px 4px 0 rgba(0, 0, 0, .25);
    transition: transform .2s, box-shadow .2s;
}
#steel-arnie .sa-pool__tank::before { content: ''; position: absolute; inset: 0 0 0 -40px; background: var(--sa-flag, none) center / cover no-repeat; }
#steel-arnie .sa-pool__tank img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#steel-arnie .sa-pool__tank .sa-veh__name { position: relative; font-size: .9rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
#steel-arnie .sa-pool__tank:hover { transform: translateY(-6px); }
#steel-arnie .sa-pool__tank[aria-pressed="true"] { z-index: 40 !important; transform: translateY(-8px);
    border-color: var(--sa-gold); box-shadow: 0 0 22px 6px rgba(232, 178, 58, .75); }
@media (max-width: 767px) { #steel-arnie .sa-pool { --w: 34%; min-height: 200px; } }

/* ── АНИМАЦИИ ──────────────────────────────────────── */
/* Один бегущий огонёк по полосам под шапкой (как бегущая рамка lps-item): по красной — вправо, по золотой — влево */
#steel-arnie .sa-hero__stripes::before,
#steel-arnie .sa-hero__stripes::after {
    content: ''; position: absolute; left: 0; width: 22%; height: 8px; border-radius: 4px;
}
#steel-arnie .sa-hero__stripes::before { background: linear-gradient(90deg, transparent, #9c211c 85%, transparent); }
#steel-arnie .sa-hero__stripes::after { background: linear-gradient(90deg, transparent, #b8861f 85%, transparent); }
#steel-arnie .sa-hero__stripes::before { top: 0; animation: sa-spark-r 4s linear infinite; }
#steel-arnie .sa-hero__stripes::after { top: 12px; transform: scaleX(-1); animation: sa-spark-l 5s linear infinite; }
@keyframes sa-spark-r { from { left: -22%; } to { left: 100%; } }
@keyframes sa-spark-l { from { left: 100%; } to { left: -22%; } }

@media (prefers-reduced-motion: reduce) {
    #steel-arnie .sa-hero__stripes::before, #steel-arnie .sa-hero__stripes::after { animation: none; }
}
/* невыбранная карточка пула — на 50% ч/б, выбранная — цветная */
#steel-arnie .sa-pool__tank::before, #steel-arnie .sa-pool__tank img { filter: grayscale(.5); transition: filter .25s; }
#steel-arnie .sa-pool__tank[aria-pressed="true"]::before, #steel-arnie .sa-pool__tank[aria-pressed="true"] img { filter: none; }
/* плашка правил этапа: фон как у карточки пула, двойная рамка — 2px · 4px воздуха · 2px */
#steel-arnie .sa-callout { margin: 0 0 20px; padding: 18px 22px; background: var(--sa-card); color: var(--sa-ink); border: 2px solid var(--sa-ink); border-radius: 14px;
    box-shadow: inset 0 0 0 4px var(--sa-card), inset 0 0 0 6px var(--sa-ink), 5px 5px 0 var(--sa-ink); font-weight: 600; line-height: 1.45; }
#steel-arnie .sa-brief__info { align-items: center; justify-content: center; text-align: center; }
/* название в карточке пула — справа, чтобы нахлёст соседней карточки не перекрывал начало */
#steel-arnie .sa-pool__tank .sa-veh__name { justify-content: flex-end; text-align: right; }
/* логотип не зависит от длины подзаголовка: блок по ширине текста, фон-сталь не обрезается */
#steel-arnie .sa-hero__main { flex: 1 1 auto; min-width: 0; }
#steel-arnie .sa-title { display: inline-block; white-space: nowrap; padding-right: .08em; }
/* скругление таблиц: фон контейнера тёмный (как шапка и рамка), светлый — только у тела,
   иначе в верхних углах между рамкой и тёмной шапкой просвечивает светлая кромка */
#steel-arnie .table-responsive { background: var(--sa-ink); }
#steel-arnie .sa-table > tbody { background: var(--sa-card); }
/* всё по левому краю контейнера, курсивный логотип чуть левее — визуально одна линия */
#steel-arnie .sa-hero__eyebrow { padding-left: 0; }
#steel-arnie .sa-sub { padding-left: 0; }
/* одинаковый воздух над и под логотипом */
#steel-arnie .sa-hero__eyebrow, #steel-arnie .sa-sub { line-height: 1; }
#steel-arnie .sa-hero__eyebrow { margin-bottom: 18px; }
#steel-arnie .sa-title { margin: 0 0 18px -10px; }

/* ── РОЛЛ ТАНКА: кубик в пустом слоте пула ── */
#steel-arnie .sa-pool__tank--roll { filter: none; }
#steel-arnie .sa-pool__tank--roll .sa-veh__name { color: var(--sa-ink); text-shadow: none; }
#steel-arnie .sa-dice { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
#steel-arnie .sa-dice__cube { width: 42%; max-width: 90px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    background: var(--sa-paper); border: 4px solid var(--sa-ink); border-radius: 22%; box-shadow: 4px 4px 0 var(--sa-ink);
    animation: sa-dice-idle 2.4s ease-in-out infinite; }
#steel-arnie .sa-dice__cube i { font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--sa-red); }
#steel-arnie .sa-pool__tank--roll:hover .sa-dice__cube { animation-duration: .8s; }
@keyframes sa-dice-idle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-4px); } }
#steel-arnie .sa-pool__tank.is-dice-out .sa-dice { animation: sa-dice-out .7s ease-in forwards; }
#steel-arnie .sa-pool__tank.is-dice-out .sa-dice__cube { animation: none; }
@keyframes sa-dice-out { 0% { transform: rotate(0) scale(1); opacity: 1; } 100% { transform: rotate(720deg) scale(.2); opacity: 0; } }
#steel-arnie .sa-pool__tank.is-dice-out .sa-veh__name { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
/* кадр рулетки: лёгкий рывок сбоку */
#steel-arnie .sa-pool__tank.is-flick img { animation: sa-flick .3s ease-out; }
@keyframes sa-flick { from { transform: translateX(6%); opacity: .5; } to { transform: none; opacity: 1; } }
/* приземлился: короткий «удар» */
#steel-arnie .sa-pool__tank.is-landed img { animation: sa-land .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sa-land { from { transform: scale(1.25); } to { transform: scale(1); } }
/* кубок фоном на весь красный блок даты */
#steel-arnie .sa-brief__info { position: relative; overflow: hidden; }
#steel-arnie .sa-brief__info > * { position: relative; }
#steel-arnie .sa-brief__info > .sa-brief__bg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; width: auto; font-size: 9rem; line-height: 1; text-align: center; opacity: .1; pointer-events: none; }
/* ячейка таблицы: значение крупно, под ним мелко ср./бой или % побед */
#steel-arnie .sa-cell { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
#steel-arnie .sa-cell__sub { display: block; font-size: .72rem; opacity: .6; line-height: 1.2; white-space: nowrap; }
/* липкая шапка вкладок — поверх всего контента (подпись пула z 50, выбранная карточка z 40) */
#steel-arnie .sa-nav { z-index: 100; background: var(--sa-paper); }
/* сцена перестрелки во вкладке «О турнире» */
#steel-arnie .sa-scene { margin: 8px 0 24px; }
#steel-arnie .sa-scene svg { display: block; width: 100%; height: auto; max-height: 240px; overflow: visible; }
#steel-arnie .sa-scene svg { max-height: 300px; }
#steel-arnie .sa-scene__banner { cursor: pointer; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
#steel-arnie .sa-scene__banner:hover { transform: scale(1.05); }
#steel-arnie .sa-callout, #steel-arnie .sa-callout p { color: var(--sa-ink) !important; }
#steel-arnie .sa-bubble__text { font-family: var(--sa-head); font-size: 16px; text-transform: uppercase; fill: var(--sa-ink); letter-spacing: .02em; }

/* ── ПРАВИЛА: двойная рамка как у «О турнире», каждое правило — плашка с номером в кружке ── */
#steel-arnie .sa-rules { max-width: none; display: grid; gap: 10px; }
#steel-arnie .sa-rules li { display: flex; align-items: center; min-height: 58px; padding: 12px 18px 12px 70px; border: 2px solid var(--sa-ink); border-bottom-width: 2px; border-radius: 12px;
    background: #fff; box-shadow: 3px 3px 0 var(--sa-ink); transition: transform .15s, box-shadow .15s; }
#steel-arnie .sa-rules li:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--sa-ink); }
#steel-arnie .sa-rules li::before { left: 14px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 1.15rem;
    background: var(--sa-red); color: var(--sa-paper); border: 2px solid var(--sa-ink); box-shadow: 2px 2px 0 var(--sa-ink); }
#steel-arnie .sa-rules li:nth-child(even)::before { background: var(--sa-gold); color: var(--sa-ink); }
@media (max-width: 575px) { #steel-arnie .sa-rules li { padding-left: 62px; } #steel-arnie .sa-rules li::before { left: 10px; width: 36px; height: 36px; } }

/* карточки очков — в стиле плашки: фон карточки, двойная рамка, текст по центру, все одинаковые */
#steel-arnie .sa-score div, #steel-arnie .sa-score div:first-child { background: var(--sa-card); border: 2px solid var(--sa-ink); text-align: center;
    box-shadow: inset 0 0 0 4px var(--sa-card), inset 0 0 0 6px var(--sa-ink), 5px 5px 0 var(--sa-ink); }
#steel-arnie .sa-score div b, #steel-arnie .sa-score div:first-child b { color: var(--sa-red); }
/* flex разбивал текст и <b> на отдельные элементы и съедал пробелы — обычный блок */
#steel-arnie .sa-rules li { display: block; padding-top: 16px; padding-bottom: 16px; }

/* ── УЧАСТНИКИ ── */
/* кнопка «Позвать» — прямоугольная, в высоту слотов */
#steel-arnie .sa-builder__submit { border-radius: 14px; align-self: stretch; padding: 0 28px; white-space: nowrap; }
/* ячейка участника: зелёная с галочкой — согласился, серая — ожидание */
#steel-arnie .sa-ptable td { padding: 8px; }
#steel-arnie .sa-mcell { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 2px solid transparent; font-weight: 600; }
#steel-arnie .sa-mcell a { color: inherit; text-decoration: none; }
#steel-arnie .sa-mcell__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#steel-arnie .sa-mcell--yes { background: #d9efdd; border-color: var(--sa-ok); color: #1d5e33; }
#steel-arnie .sa-mcell__icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--sa-ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
#steel-arnie .sa-mcell--wait { background: var(--sa-paper-2); border-color: #cfc3aa; color: var(--sa-dim); }
#steel-arnie .sa-mcell__wait { flex-shrink: 0; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: #b9ad96; color: #fff; }
#steel-arnie .sa-mcell__cap { margin-left: auto; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
#steel-arnie .sa-pstatus { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--sa-paper-2); color: var(--sa-dim); white-space: nowrap; }
#steel-arnie .sa-pstatus--ok { background: var(--sa-ok); color: #fff; }
/* моя команда: 3 колонки */
#steel-arnie .sa-mycols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 991px) { #steel-arnie .sa-mycols { grid-template-columns: 1fr; } }
#steel-arnie .sa-mycol { background: var(--sa-card); border: 3px solid var(--sa-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--sa-ink); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
#steel-arnie .sa-mycol__h { margin: 0 0 4px; font-family: var(--sa-head); font-size: 1.2rem; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
#steel-arnie .sa-mycard { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 2px dashed var(--sa-line); border-radius: 12px; }
#steel-arnie .sa-mycard__actions { display: flex; gap: 8px; }
#steel-arnie .sa-mycard__actions:empty { display: none; }
#steel-arnie .sa-mycard__actions form { flex: 1; }
#steel-arnie .sa-mycard__actions .sa-btn { width: 100%; border-radius: 10px; }
#steel-arnie .sa-btn--ok { background: var(--sa-ok); }
#steel-arnie .sa-btn--ok:hover { background: #246d3b; }

/* ── РОФЛ-МОДАЛКА после ролла ── */
#steel-arnie .sa-modal .modal-content { background: var(--sa-card); color: var(--sa-ink); border: 3px solid var(--sa-ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--sa-ink); padding: 32px 28px 26px; text-align: center; align-items: center; gap: 6px; }
#steel-arnie .sa-troll__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--sa-gold); border: 3px solid var(--sa-ink); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 10px; animation: sa-wag 1s ease-in-out infinite; }
@keyframes sa-wag { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
#steel-arnie .sa-troll__title { font-family: var(--sa-head); font-size: 2rem; text-transform: uppercase; line-height: 1.05; margin: 0 0 8px; }
#steel-arnie .sa-modal p { font-size: 1.1rem; margin: 0 0 16px; }
#steel-arnie .sa-troll__skip { background: none; border: 0; margin-top: 8px; color: var(--sa-dim); text-decoration: underline; font-size: .85rem; }
/* лоадер на кнопках во «Моей команде» */
#steel-arnie .sa-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
#steel-arnie .sa-btn.is-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
    border: 3px solid var(--sa-paper); border-right-color: transparent; border-radius: 50%; animation: sa-spin .7s linear infinite; }
#steel-arnie .sa-btn--ghost.is-loading::after { border-color: var(--sa-ink); border-right-color: transparent; }
@keyframes sa-spin { to { transform: rotate(360deg); } }

/* ── МОБИЛЬНАЯ АДАПТАЦИЯ ── */
@media (max-width: 767px) {
    /* пул: вместо веера с нахлёстом — лента карточек с горизонтальной прокруткой */
    #steel-arnie .sa-pool { min-height: 0; overflow: visible; padding: 14px 0 6px 14px; }
    #steel-arnie .sa-pool__hint { position: static; padding-right: 14px; margin-bottom: 4px; line-height: 1.5; }
    #steel-arnie .sa-pool__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 10px 0 8px; }
    #steel-arnie .sa-pool__tank { position: relative; left: auto !important; top: auto; bottom: auto; flex: 0 0 46%; width: auto; height: 170px; margin-right: 10px; scroll-snap-align: start; z-index: auto !important; }
    #steel-arnie .sa-pool__tank:hover, #steel-arnie .sa-pool__tank[aria-pressed="true"] { transform: none; }
    #steel-arnie .sa-brief > * { min-width: 0; } /* иначе лента пула распирает сетку */
    /* блок даты — столбиком, чтобы влезли все строки */
    #steel-arnie .sa-brief__info { flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px; }
    /* сцена: не сжимаем в полоску — центральная часть в натуральную величину */
    #steel-arnie .sa-scene { overflow: hidden; margin-left: -12px; margin-right: -12px; }
    #steel-arnie .sa-scene svg { width: 760px; max-width: none; max-height: none; position: relative; left: 50%; transform: translateX(-50%); }
}
/* числовые колонки таблиц (урон, фраги, победы, очки, лига) — по центру */
#steel-arnie .sa-table > thead > tr > th.text-end, #steel-arnie .sa-table > tbody > tr > td.text-end { text-align: center !important; }

/* ── КНОПКА «БОИ ВЗВОДА» + МОДАЛКА ── */
#steel-arnie .sa-col-info { width: 64px; text-align: center; }
#steel-arnie .sa-info { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; transform: skewX(-10deg);
    background: var(--sa-red); color: var(--sa-paper); border: 3px solid var(--sa-ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--sa-ink); font-size: 1rem; cursor: pointer; transition: transform .1s, box-shadow .1s, background .15s; }
#steel-arnie .sa-info i { transform: skewX(10deg); }
#steel-arnie .sa-info:hover { background: var(--sa-red-2); transform: skewX(-10deg) translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sa-ink); }
#steel-arnie .sa-info:active { transform: skewX(-10deg) translate(2px, 2px); box-shadow: 1px 1px 0 var(--sa-ink); }
#steel-arnie .sa-bmodal .modal-content { background: var(--sa-card); color: var(--sa-ink); border: 3px solid var(--sa-ink); border-radius: 16px; box-shadow: 8px 8px 0 var(--sa-ink); }
#steel-arnie .sa-bmodal .modal-header { border-bottom: 3px solid var(--sa-ink); }
#steel-arnie .sa-bmodal .modal-title { font-family: var(--sa-head); text-transform: uppercase; font-size: 1.3rem; }
#steel-arnie .sa-btable { width: 100%; border-collapse: collapse; font-size: .82rem; white-space: nowrap; text-align: center; }
#steel-arnie .sa-btable th, #steel-arnie .sa-btable td { padding: 6px 8px; border-bottom: 1px dashed var(--sa-line); }
#steel-arnie .sa-btable thead th { background: var(--sa-ink); color: var(--sa-paper); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; border-bottom: 1px solid rgba(255,255,255,.15); }
#steel-arnie .sa-btable tfoot th { background: var(--sa-paper-2); font-weight: 700; }
#steel-arnie .sa-btable .sa-bsep { border-left: 2px solid var(--sa-ink); }
#steel-arnie .sa-btable thead .sa-bsep { border-left-color: rgba(255,255,255,.3); }
#steel-arnie .sa-bwin { background: #d9efdd; color: #1d5e33; }
#steel-arnie .sa-blose { background: #f6dcd8; color: var(--sa-red-2); }
#steel-arnie .sa-bmodal .modal-dialog { max-width: min(1500px, 96vw); }
#steel-arnie .sa-bmodal .table-responsive { background: var(--sa-card); border: 2px solid var(--sa-ink); border-radius: 10px; box-shadow: none; }
#steel-arnie .sa-btable tbody { background: var(--sa-card); }
#steel-arnie .sa-btable tbody tr:hover td { background: rgba(232, 178, 58, .18); }
#steel-arnie .sa-bmodal .modal-title { letter-spacing: .03em; }
#steel-arnie .sa-bmodal .btn-close { opacity: 1; width: 1.2em; height: 1.2em; }

/* ── ПРОГРЕСС БОЁВ: светящаяся полоса с бегущим бликом ── */
#steel-arnie .sa-prog { width: 100%; min-width: 150px; max-width: 220px; margin: 0 auto; }
#steel-arnie .sa-prog__labels { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sa-dim); margin-bottom: 4px; line-height: 1; }
#steel-arnie .sa-prog__labels span:first-child { color: var(--sa-ink); }
#steel-arnie .sa-prog__bar { position: relative; height: 12px; border: 2px solid var(--sa-ink); border-radius: 999px; background: var(--sa-paper-2); overflow: hidden; }
#steel-arnie .sa-prog__fill { position: relative; height: 100%; width: var(--p); border-radius: 999px; overflow: hidden;
    background: linear-gradient(90deg, var(--sa-gold), #f0c04f); animation: sa-prog-in 1.2s cubic-bezier(.2, .8, .2, 1) both; }
#steel-arnie .sa-prog--full .sa-prog__fill { background: linear-gradient(90deg, var(--sa-red-2), var(--sa-red)); box-shadow: 0 0 10px rgba(200, 48, 42, .6); }
#steel-arnie .sa-prog--full .sa-prog__labels span:first-child { color: var(--sa-red); }
/* блик бежит по заполненной части */
#steel-arnie .sa-prog__fill::after { content: ''; position: absolute; inset: 0; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: sa-prog-shine 2.2s ease-in-out infinite; }
@keyframes sa-prog-in { from { width: 0; } }
@keyframes sa-prog-shine { from { transform: translateX(-120%); } to { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) { #steel-arnie .sa-prog__fill, #steel-arnie .sa-prog__fill::after { animation: none; } }
/* крестик модалки — в стиле кнопок лендинга */
#steel-arnie .sa-close { margin-left: auto; width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; transform: skewX(-10deg);
    background: var(--sa-paper); color: var(--sa-ink); border: 3px solid var(--sa-ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--sa-ink); font-size: 1.35rem; cursor: pointer; transition: transform .1s, box-shadow .1s, background .15s; }
#steel-arnie .sa-close i { transform: skewX(10deg); font-weight: 900; }
#steel-arnie .sa-close:hover { background: var(--sa-gold); transform: skewX(-10deg) translate(-1px, -1px); box-shadow: 5px 5px 0 var(--sa-ink); }
#steel-arnie .sa-close:active { transform: skewX(-10deg) translate(2px, 2px); box-shadow: 1px 1px 0 var(--sa-ink); }

/* Кнопка «i» у подсказки пула и модалка со списком разрешённых танков */
#steel-arnie .sa-pool__info { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 8px; padding: 0; vertical-align: middle; border: 2px solid var(--sa-ink); border-radius: 50%; background: var(--sa-card); color: var(--sa-ink); font-size: .75rem; box-shadow: 2px 2px 0 var(--sa-ink); cursor: pointer; transition: transform .15s, box-shadow .15s; }
#steel-arnie .sa-pool__info:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--sa-ink); }
#steel-arnie .sa-tmodal .modal-dialog { max-width: min(1100px, 96vw); }
#steel-arnie .sa-tlist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
#steel-arnie .sa-tlist__item { display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--sa-ink); border-radius: 10px; background: var(--sa-paper); transition: transform .15s, box-shadow .15s; }
#steel-arnie .sa-tlist__item:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--sa-ink); }
#steel-arnie .sa-tlist__pic { display: flex; justify-content: center; padding: 6px 4px 0; background-size: calc(100% + 25px) auto; background-position: -25px center; background-repeat: no-repeat; border-bottom: 2px solid var(--sa-ink); }
#steel-arnie .sa-tlist__img { width: 100%; max-width: 160px; aspect-ratio: 160 / 100; object-fit: contain; }
#steel-arnie .sa-tlist__name { padding: 8px 6px; font-weight: 600; font-size: .9rem; text-align: center; line-height: 1.2; }
@media (max-width: 991px) { #steel-arnie .sa-tlist { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { #steel-arnie .sa-tlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479px) { #steel-arnie .sa-tlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Жеребьёвка владельца: дискета / корзина справа в строке подсказки пула */
#steel-arnie .sa-draw { position: absolute; right: 18px; top: 10px; z-index: 50; display: flex; gap: 2px; }
#steel-arnie .sa-draw .sa-pool__info:disabled { opacity: .4; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--sa-ink); }
@media (max-width: 767px) { #steel-arnie .sa-draw { position: static; justify-content: flex-end; padding-right: 14px; } }
