/* =========================================================================
   IBA PUNCH — Front-end design system
   Dark theme · red accent (#e51010) · gold highlight (#ffd24d) · Manrope
   ========================================================================= */

/* ---- Design tokens ------------------------------------------------------ */
:root {
    --red: #e51010;
    --red-dark: #9c0b0b;
    --red-glow: 0 0 20px rgba(229, 16, 16, 0.6), 0 0 60px rgba(229, 16, 16, 0.25);
    --gold: #ffd24d;
    --bg: #050505;
    --bg-card: #1c1c1c;
    --bg-card-hover: #1f1f1f;
    --border: #1c1c1c;
    --border-red: rgba(229, 16, 16, 0.35);
    --text: #ffffff;
    --text-muted: #666666;
    --font-display: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --site-radius: 7px;
    --site-max-width: 1240px;
    --site-section-space: 40px;
}

/* ---- Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.02em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { width: min(var(--site-max-width), 100% - 40px); margin-inline: auto; }

/* ---- Navigation --------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; gap: 20px;
    padding: 12px 0;
}
.nav-logo img { height: 34px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 18px; margin-left: 12px; flex: 1; }
.nav-links a {
    font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
    color: var(--text-muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: flex; gap: 6px; }
.lang-switcher button {
    background: transparent; border: 1px solid transparent; color: var(--text-muted);
    font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
    transition: all 0.2s;
}
.lang-switcher button.active { color: var(--text); border-color: var(--border-red); }
.lang-switcher button:hover { color: var(--text); }
.nav-cta {
    background: transparent; border: 1px solid var(--border-red); color: var(--text);
    padding: 8px 16px; border-radius: var(--site-radius); font-weight: 700; font-size: 13px;
    transition: all 0.2s;
}
.nav-cta:hover { background: var(--red); box-shadow: var(--red-glow); }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: transparent; border: 0; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); }

/* ---- Buttons ------------------------------------------------------------ */
.btn-primary, .btn-secondary {
    border: none; border-radius: var(--site-radius);
    padding: 14px 26px; font-weight: 800; font-size: 14px; letter-spacing: 0.03em;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
    background: var(--red); color: #fff;
    box-shadow: var(--red-glow);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-secondary {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-red);
}
.btn-secondary:hover { border-color: var(--red); color: var(--text); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
    position: relative; min-height: 90vh; display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: -5%; z-index: -2;
    background: radial-gradient(circle at 50% 30%, rgba(229,16,16,0.18), transparent 60%),
                conic-gradient(from 120deg at 50% 50%, rgba(229,16,16,0.08), transparent 40%);
    filter: blur(40px);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.4), rgba(5,5,5,0.9));
}
.hero-content { max-width: 720px; padding: 0 20px; margin-left: max(20px, calc((100vw - var(--site-max-width)) / 2)); }
.hero-label {
    font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--gold);
    margin-bottom: 16px;
}
.hero-title { font-size: clamp(48px, 10vw, 120px); line-height: 0.95; margin-bottom: 20px; }
.hero-title .ht-line.red span { color: var(--red); text-shadow: var(--red-glow); }
.hero-tagline { font-size: clamp(20px, 4vw, 32px); font-weight: 900; margin-bottom: 28px; opacity: 0.95; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Stats strip -------------------------------------------------------- */
.stats-strip { padding: var(--site-section-space) 0; border-block: 1px solid var(--border); }
.strip-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.strip-main { display: flex; gap: 32px; align-items: center; }
.strip-divider { width: 1px; height: 48px; background: var(--border); }
.strip-item { display: flex; flex-direction: column; gap: 4px; }
.strip-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; }
.strip-value { font-size: clamp(28px, 5vw, 44px); font-weight: 900; }
.strip-value.gold { color: var(--gold); }
.strip-value.red { color: var(--red); }
.strip-value .suffix { font-size: 0.4em; margin-left: 6px; color: var(--text-muted); }
.strip-minis { display: flex; gap: 28px; }
.strip-mini { text-align: center; }
.strip-mini .n { display: block; font-size: 32px; font-weight: 900; }
.strip-mini .l { font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; }

/* ---- Section titles ----------------------------------------------------- */
.red-line { width: 64px; height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 16px; box-shadow: var(--red-glow); }
.section-title { font-size: clamp(32px, 6vw, 56px); line-height: 1; margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 16px; max-width: 620px; margin-bottom: 28px; }

/* ---- Fighter Hub (rankings / tournaments / news tabs) ------------------- */
.hub { padding: var(--site-section-space) 0; }
.hub-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.hub-tab {
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    padding: 10px 20px; border-radius: var(--site-radius); font-weight: 700; font-size: 13px;
    transition: all 0.2s;
}
.hub-tab.active { color: var(--text); border-color: var(--red); background: rgba(229,16,16,0.08); }
.hub-panel { display: none; }
.hub-panel.active { display: block; }

/* Rating table */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { text-align: left; font-size: 12px; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--border); letter-spacing: 0.06em; }
.lb-row td { padding: 14px 12px; border-bottom: 1px solid var(--border); }
.lb-rank { font-weight: 900; width: 60px; }
.lb-rank.gold { color: var(--gold); }
.lb-rank.silver { color: #cfcfcf; }
.lb-rank.bronze { color: #cd7f32; }
.lb-fighter-name { font-weight: 700; }
.lb-fighter-meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.lb-cat { padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.lb-cat-heavy { background: rgba(229,16,16,0.15); color: var(--red); }
.lb-cat-middle { background: rgba(255,210,77,0.15); color: var(--gold); }
.lb-cat-light { background: rgba(60,200,120,0.15); color: #3c8a5a; }
.lb-city { color: var(--text-muted); }
.lb-score { font-weight: 900; font-size: 18px; text-align: right; }

/* Tournaments cards */
.tournament-card {
    border: 1px solid var(--border); border-radius: var(--site-radius); overflow: hidden;
    background: var(--bg-card); transition: border-color 0.2s;
}
.tournament-card:hover { border-color: var(--border-red); }
.tournament-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--red-dark), var(--bg)); }
.tournament-body { padding: 16px; }
.tournament-title { font-size: 18px; margin-bottom: 8px; }
.tournament-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.05em; }
.badge-open { background: rgba(60,200,120,0.15); color: #3c8a5a; }
.badge-soon { background: rgba(255,210,77,0.15); color: var(--gold); }
.badge-closed { background: rgba(102,102,102,0.15); color: var(--text-muted); }

/* News cards */
.news-card {
    border: 1px solid var(--border); border-radius: var(--site-radius); overflow: hidden;
    background: var(--bg-card); transition: border-color 0.2s; margin-bottom: 16px;
}
.news-card:hover { border-color: var(--border-red); }
.news-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--red-dark), var(--bg)); }
.news-body { padding: 18px; }
.news-title { font-size: 20px; margin-bottom: 10px; line-height: 1.25; }
.news-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.news-preview { color: #bbb; font-size: 14px; line-height: 1.6; }

/* ---- Weight categories -------------------------------------------------- */
.leagues { padding: var(--site-section-space) 0; }
.leagues-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.league-card {
    position: relative; border-radius: var(--site-radius); overflow: hidden;
    border: 1px solid var(--border); aspect-ratio: 3/4;
    background: linear-gradient(160deg, rgba(229,16,16,0.12), transparent 60%), var(--bg-card);
}
.league-content { position: absolute; inset: auto 0 0 0; padding: 20px; }
.league-tag { font-size: 12px; color: var(--gold); font-weight: 800; letter-spacing: 0.08em; }
.league-name { font-size: 24px; margin-top: 4px; }

/* ---- How to / steps ----------------------------------------------------- */
.howto { padding: var(--site-section-space) 0; }
.howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.steps-compact { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.step-row { display: flex; gap: 16px; align-items: flex-start; }
.step-num { font-size: 28px; font-weight: 900; color: var(--red); width: 56px; }
.step-title { font-weight: 700; font-size: 18px; }
.step-desc { color: var(--text-muted); font-size: 14px; }
.impact-quote { font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.3; border-left: 4px solid var(--red); padding-left: 20px; }
.impact-author { color: var(--text-muted); margin-top: 16px; font-size: 13px; letter-spacing: 0.08em; }

/* ---- Arena map ---------------------------------------------------------- */
.map-section { padding: var(--site-section-space) 0; }
.mapapp-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.arena-map {
    border-radius: var(--site-radius); overflow: hidden; border: 1px solid var(--border);
    height: 480px; position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(229,16,16,0.06), transparent 70%), #0a0a0a;
}
.arena-map::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(28,28,28,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28,28,28,0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}
.map-sidebar { display: flex; flex-direction: column; gap: 16px; }
.map-city-group { border: 1px solid var(--border); border-radius: var(--site-radius); padding: 16px; }
.map-city-title { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 12px; font-size: 15px; }
.map-city-title b { color: var(--gold); }
.map-mach-info { display: flex; flex-direction: column; gap: 4px; }
.map-mach-name { font-weight: 700; }
.map-online { font-size: 12px; color: #3c8a5a; }
.map-online.on::before { content: '● '; }
.map-mach-addr { color: var(--text-muted); font-size: 13px; }
.map-mach-click.has-coords { border-radius: 6px; padding: 6px; margin: 0 -6px 10px; transition: background .15s; }
.map-mach-click.has-coords:hover { background: rgba(229,16,16,.08); }
.map-route-btn {
    margin-top: 8px; display: inline-block; font-size: 12px; font-weight: 700;
    color: var(--red); border: 1px solid var(--border-red); padding: 6px 12px;
    border-radius: 6px; transition: all 0.2s; width: fit-content;
}
.map-route-btn:hover { background: var(--red); color: #fff; }

/* ---- Mini map (zero-dependency) ------------------------------------------ */
.mini-map { position: relative; overflow: hidden; cursor: grab; user-select: none; touch-action: none; }
.mini-map:active { cursor: grabbing; }
.mini-tiles { position: absolute; inset: 0; z-index: 1; }
.mini-tile { position: absolute; top: 0; left: 0; width: 256px; height: 256px; pointer-events: none; }
.mini-canvas { position: absolute; inset: 0; z-index: 5; }
.mini-marker {
    position: absolute; top: 0; left: 0; width: 16px; height: 16px;
    border-radius: 50%; border: 2px solid rgba(255,255,255,.2); cursor: pointer;
    transition: transform .08s linear; z-index: 5;
}
.mini-zoom {
    position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 10;
}
.mini-zoom button {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
    background: rgba(5,5,5,.85); color: var(--text); font-size: 18px; font-weight: 800; line-height: 1;
}
.mini-zoom button:hover { border-color: var(--border-red); }
.mini-attrib {
    position: absolute; left: 10px; bottom: 8px; z-index: 10;
    font-size: 11px; color: var(--text-muted); background: rgba(5,5,5,.6);
    padding: 2px 8px; border-radius: 4px; pointer-events: none;
}
.mini-popup {
    position: absolute; z-index: 20; transform: translate(-50%, calc(-100% - 14px));
    background: var(--bg-card); border: 1px solid var(--border-red); border-radius: 8px;
    padding: 10px 14px; font-size: 13px; line-height: 1.5; min-width: 180px;
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.mini-popup-x {
    position: absolute; top: 4px; right: 6px; background: none; border: 0;
    color: var(--text-muted); font-size: 11px; cursor: pointer;
}
.mini-popup-x:hover { color: var(--text); }

/* ---- Mobile app download (iOS + Android) -------------------------------- */
.dl-buttons { display: flex; flex-direction: column; gap: 14px; }
.dl-btn {
    display: flex; align-items: center; gap: 14px; border: 1px solid var(--border-red);
    border-radius: var(--site-radius); padding: 14px 24px; background: var(--bg);
    transition: all .2s; white-space: nowrap; min-width: 220px;
}
.dl-btn:hover { background: var(--red); box-shadow: var(--red-glow); }
.dl-icon { width: 30px; height: 30px; flex: none; }
.dl-text { display: flex; flex-direction: column; line-height: 1.25; }
.dl-text small { color: var(--text-muted); font-size: 11px; letter-spacing: .04em; }
.dl-text b { font-size: 17px; font-weight: 800; }
.dl-btn:hover small { color: #eee; }

/* ---- Android download --------------------------------------------------- */
.android-download-section { padding: var(--site-section-space) 0; }
.android-download-card {
    border: 1px solid var(--border-red); border-radius: 12px; padding: 40px;
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
    background: linear-gradient(135deg, rgba(229,16,16,0.08), transparent 70%);
}
.android-download-kicker { font-size: 12px; letter-spacing: 0.15em; color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.android-download-card h2 { font-size: clamp(28px, 5vw, 44px); }
.android-download-card h2 span { color: var(--red); }
.android-download-card p { color: #bbb; max-width: 480px; margin: 12px 0; }
.android-release-meta { color: var(--text-muted); font-size: 13px; }
.android-download-btn {
    display: flex; align-items: center; gap: 14px; border: 1px solid var(--border-red);
    border-radius: var(--site-radius); padding: 18px 28px; background: var(--bg);
    transition: all 0.2s; white-space: nowrap;
}
.android-download-btn:hover { background: var(--red); box-shadow: var(--red-glow); }
.android-download-icon { font-size: 28px; }
.android-download-btn b { font-size: 16px; }
.android-download-btn small { color: var(--text-muted); font-size: 12px; }
.android-download-btn:hover small { color: #eee; }

/* ---- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.footer-desc { color: var(--text-muted); max-width: 320px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.08em; margin-bottom: 12px; color: var(--text-muted); }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-pending { display: block; color: var(--text-dim, #666); font-size: 14px; padding: 4px 0; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }

/* ---- Auth modal --------------------------------------------------------- */
.auth-modal {
    position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); padding: 20px;
}
.auth-modal.open { display: flex; }
.auth-box {
    width: min(420px, 100%); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px; position: relative;
}
.auth-close { position: absolute; top: 14px; right: 14px; background: transparent; border: 0; color: var(--text-muted); font-size: 20px; }
.auth-box h3 { font-size: 24px; margin-bottom: 18px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab {
    flex: 1; background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    padding: 10px; border-radius: 8px; font-weight: 700; transition: all 0.2s;
}
.auth-tab.active { color: var(--text); border-color: var(--red); }
.auth-box input, .auth-box select {
    width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
    padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px;
}
.auth-box input:focus, .auth-box select:focus { outline: none; border-color: var(--red); }
.btn-primary.full { width: 100%; justify-content: center; }
.auth-telegram-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    padding: 12px; border-radius: 8px; margin-top: 10px; font-weight: 600; transition: all 0.2s;
}
.auth-telegram-btn:hover { border-color: var(--border-red); color: var(--text); }
.auth-link-btn { display: block; text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 12px; }
.auth-error { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 16px; }
.auth-success { color: #3c8a5a; font-size: 13px; margin-top: 8px; min-height: 16px; word-break: break-all; }

/* ---- Maintenance page --------------------------------------------------- */
.maintenance-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px; background: var(--bg); }
.maintenance-card { width: min(560px, 100%); border: 1px solid #2c2c2c; background: linear-gradient(145deg, #121212, #080808); padding: 42px 32px; text-align: center; box-shadow: 0 28px 80px rgba(0,0,0,.45); }
.maintenance-line { width: 64px; height: 4px; background: var(--red); margin: 24px auto; border-radius: 3px; }
.maintenance-card h1 { font-size: clamp(28px, 6vw, 46px); margin-bottom: 18px; }
.maintenance-card p { color: #aaa; font-size: 17px; line-height: 1.6; margin: 0; }
.maintenance-admin { display: inline-flex; margin-top: 24px; padding: 10px 18px; border: 1px solid #393939; border-radius: 14px; color: #d8d8d8; font-weight: 800; font-size: 12px; letter-spacing: 0.06em; transition: .18s; }
.maintenance-admin:hover { border-color: var(--red); color: #fff; background: #151010; }

/* ---- Loading / skeleton ------------------------------------------------- */
.skeleton { background: linear-gradient(90deg, #141414 25%, #1f1f1f 37%, #141414 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .strip-grid { grid-template-columns: 1fr; }
    .howto-grid { grid-template-columns: 1fr; }
    .mapapp-grid { grid-template-columns: 1fr; }
    .arena-map { height: 360px; }
    .android-download-card { grid-template-columns: 1fr; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* ---- LK / Admin --------------------------------------------------------- */
.lk-sidebar { border: 1px solid var(--border); border-radius: var(--site-radius); padding: 16px; height: fit-content; position: sticky; top: 90px; }
.lk-nav { display: flex; flex-direction: column; gap: 4px; }
.lk-nav a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--text-muted); font-weight: 600; font-size: 14px; transition: all .2s; }
.lk-nav a:hover { color: var(--text); background: var(--bg-card-hover); }
.lk-nav a.active { color: var(--text); background: rgba(229,16,16,.1); border-left: 3px solid var(--red); }
.profile-card { display:flex; align-items:center; gap:16px; border:1px solid var(--border); border-radius:var(--site-radius); padding:20px; background:var(--bg-card); }
.avatar { width:56px;height:56px;border-radius:50%;background:var(--red);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;color:#fff;box-shadow:var(--red-glow);}
.profile-card h2 { font-size:22px; }
.profile-card .meta { color:var(--text-muted); font-size:14px; margin-top:2px; }
.summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:16px; margin-top:20px; }
.stat-box { border:1px solid var(--border); border-radius:var(--site-radius); padding:18px; display:flex; flex-direction:column; gap:6px; }
.stat-box .num { font-size:32px; font-weight:900; }
.stat-box .lbl { color:var(--text-muted); font-size:13px; letter-spacing:.05em; }
.lb-me { background: rgba(229,16,16,.07); }
.form-msg { min-height:18px; font-size:13px; margin-top:8px; }
.form-ok { color:#3c8a5a; }
.form-err { color:var(--red); }
.admin-section { margin-bottom:32px; }
.admin-toolbar { display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.admin-toolbar input, .admin-toolbar select {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    padding: 9px 12px; border-radius: 8px; font-size: 13px;
}
.btn-sm { padding:6px 12px; font-size:12px; border-radius:6px; font-weight:700; border:1px solid var(--border-red); background:transparent; color:var(--text); transition:all .2s; }
.btn-sm:hover { background:var(--red); color:#fff; }
.btn-sm.danger { border-color:rgba(229,16,16,.5); color:var(--red); }
.btn-sm.danger:hover { background:var(--red); color:#fff; }
.modal-box {
    width: min(560px, 100%); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px; position: relative; max-height: 85vh; overflow: auto;
}
.modal-box input, .modal-box select, .modal-box textarea {
    width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
    padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; font-size: 14px;
}
.modal-box textarea { min-height: 90px; resize: vertical; }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:8px; }
.admin-status-on { color:#3c8a5a; font-weight:700; }
.admin-status-off { color:var(--text-muted); }
.admin-status-blocked { color:var(--red); font-weight:700; }

@media (max-width: 600px) {
    .strip-minis { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
}

/* ---- Weight-category photos & gallery (from reference site) ------------- */
.league-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(100%) contrast(1.2) brightness(.6); transition: filter .4s, transform .6s; }
.league-card:hover img { filter: grayscale(60%) contrast(1.1) brightness(.5); transform: scale(1.05); }
.league-content { z-index: 2; }
.gallery { padding: 90px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; margin-top: 44px; }
.gal-item { position: relative; overflow: hidden; border-radius: 6px; border: 1px solid rgba(255,255,255,.07); background: #0a0a0a; margin: 0; }
.gal-item.g-tall { grid-row: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.62) saturate(.9) contrast(1.05); transform: scale(1.04); transition: transform .9s cubic-bezier(.19,1,.22,1), filter .5s ease; }
.gal-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.15) 0%, rgba(5,5,5,.05) 40%, rgba(5,5,5,.72) 100%); pointer-events: none; }
.gal-item figcaption { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-size: 1.1rem; font-weight: 800; letter-spacing: 2.5px; color: #fff; opacity: .9; }
.gal-item figcaption::before { content: ''; display: block; width: 26px; height: 3px; background: var(--red, #e51010); margin-bottom: 8px; }
.gal-item:hover img { transform: scale(1.12); filter: brightness(.78) saturate(1.05) contrast(1.05); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 560px) { .gallery { padding: 64px 0; } .gallery-grid { grid-auto-rows: 150px; gap: 10px; margin-top: 30px; } }

/* ---- Site-wide background video ----------------------------------------- */
#site-bg-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #050505; }
#site-bg-layer .site-bg-video { width: 100%; height: 100%; object-fit: cover; filter: blur(4px) brightness(.45); transform: scale(1.03); }
#site-bg-layer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.55), rgba(5,5,5,.85)); }
@media (prefers-reduced-motion: reduce) { #site-bg-layer .site-bg-video { display: none; } }


/* ---- Punch Power Challenge (static tournament info) --------------------- */
.challenge { padding: var(--site-section-space) 0; }
.challenge .ch-red { color: var(--red); }
.ch-prize { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 28px 0; padding: 28px; background: var(--bg-card); border: 1px solid var(--border-red); border-radius: var(--site-radius); box-shadow: var(--red-glow); }
.ch-prize-total small { display: block; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ch-prize-total b { font-size: clamp(48px, 9vw, 88px); line-height: 1; color: var(--gold); font-weight: 900; }
.ch-prize-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; flex: 1; min-width: 260px; font-weight: 700; }
.ch-sum { color: var(--gold); font-weight: 900; margin-right: 8px; }
.ch-note { flex-basis: 100%; margin: 0; color: var(--text-muted); font-size: 14px; }
.ch-format { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
.ch-format div { background: var(--bg-card); border-radius: var(--site-radius); padding: 18px; text-align: center; }
.ch-format b { display: block; font-size: 44px; line-height: 1; color: var(--red); font-weight: 900; }
.ch-format span { color: var(--text-muted); font-size: 14px; font-weight: 700; }
.ch-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ch-step { background: var(--bg-card); border-radius: var(--site-radius); padding: 24px; border-top: 3px solid var(--red); }
.ch-step h3 { font-size: 20px; margin: 10px 0; }
.ch-step p { margin: 0 0 8px; font-size: 15px; }
.ch-step ul { display: grid; gap: 6px; font-size: 15px; }
.ch-step li { padding-left: 16px; position: relative; }
.ch-step li::before { content: ''; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.ch-num { width: 36px; height: 36px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-weight: 900; }
.ch-muted { color: var(--text-muted); font-size: 13px !important; }
.challenge .gold { color: var(--gold); }
.ch-total { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 24px; border: 1px solid var(--border-red); border-radius: var(--site-radius); }
.ch-total > div { flex: 1; min-width: 260px; }

.ch-prize-total b, .ch-sum { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ch-total .gold, .ch-step bdi { white-space: nowrap; }

.dl-btn.dl-soon { opacity: .6; cursor: default; pointer-events: none; }
.dl-btn.dl-soon small { color: var(--gold); font-weight: 800; }

/* Legal pages (/privacy, /terms) */
.legal-page { padding: 48px 0 64px; }
.legal-wrap { max-width: 820px; background: rgba(5,5,5,.82); border: 1px solid var(--border); border-radius: 16px; padding: 40px clamp(20px, 5vw, 48px); line-height: 1.65; }
.legal-wrap h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; margin-bottom: 8px; }
.legal-wrap h2 { font-size: 20px; margin: 32px 0 10px; }
.legal-wrap p { margin-bottom: 12px; color: #c8c8c8; }
.legal-wrap ul { margin: 0 0 12px 22px; color: #c8c8c8; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap b { color: var(--text); }
.legal-wrap a { color: var(--gold, #ffd24d); text-decoration: underline; }
.legal-updated { font-size: 14px; margin-bottom: 24px !important; }
.legal-note { font-size: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 20px !important; }
