:root {
    --ink: #081b3a;
    --ink-soft: #42526b;
    --blue: #0064df;
    --blue-dark: #0049ad;
    --cyan: #00b9f2;
    --gold: #d79b18;
    --line: #dce4ef;
    --surface: #f5f8fc;
    --white: #fff;
    --success: #087d55;
    --danger: #b42318;
    --shadow: 0 20px 70px rgba(8, 27, 58, .1);
    --radius: 18px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: 104px 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: #fff; background: var(--ink); transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.93); border-bottom: 1px solid rgba(220,228,239,.8); backdrop-filter: blur(18px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand, .admin-brand, .login-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: .98rem; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--ink-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a:not(.button) { font-size: .9rem; font-weight: 700; text-decoration: none; }
.main-nav > a:not(.button):hover, .main-nav > a[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 12px; background: transparent; border: 0; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 24px; padding: 0 24px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 7px; font-weight: 800; font-size: .88rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; box-shadow: 0 8px 24px rgba(0,100,223,.18); transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,100,223,.25); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(0,100,223,.35); outline-offset: 3px; }
.button:disabled, .button-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.button-small { min-height: 42px; padding-inline: 20px; }
.button-outline { color: var(--blue); background: #fff; box-shadow: none; }
.button-outline:hover { color: #fff; }
.button-light { color: var(--ink); background: #fff; border-color: #fff; box-shadow: none; }
.button-light:hover { color: #fff; background: transparent; }
.button-quiet { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: none; }
.button-quiet:hover { color: var(--ink); background: var(--surface); }
.text-link, .external-link, .back-link { color: var(--blue); font-weight: 750; text-underline-offset: 4px; }

.eyebrow { margin-bottom: 18px; color: var(--blue); font-size: .74rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #0ab77a; box-shadow: 0 0 0 5px rgba(10,183,122,.12); }
.hero { min-height: 730px; display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 50% 50%, #e9f8ff 0, #f6fbff 26%, #fff 55%); }
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: center; max-width: 800px; text-align: center; }
.hero-copy { position: relative; z-index: 2; width: 100%; padding: 80px 0; }
.hero h1 { max-width: 760px; margin: 0 auto 36px; }
.hero-lead { max-width: 620px; margin: 0 auto 36px; color: var(--ink-soft); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 26px; }
.registration-countdown { margin-bottom: 36px; text-align: center; }
.registration-countdown .eyebrow { margin-bottom: 12px; }
.countdown-grid { display: inline-flex; align-items: flex-start; gap: 10px; padding: 13px 16px; background: rgba(255,255,255,.78); border: 1px solid rgba(0,100,223,.14); border-radius: 12px; box-shadow: 0 12px 32px rgba(8,27,58,.07); backdrop-filter: blur(10px); }
.countdown-unit { min-width: 54px; text-align: center; }
.countdown-unit strong { display: block; color: var(--ink); font-size: 1.65rem; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.04em; transform-origin: center bottom; }
.countdown-unit small { display: block; margin-top: 7px; color: var(--ink-soft); font-size: .56rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.countdown-separator { padding-top: 2px; color: var(--blue); font-size: 1.35rem; font-weight: 850; line-height: 1; animation: countdown-pulse 1s ease-in-out infinite; }
.countdown-tick { animation: countdown-tick .32s cubic-bezier(.22,.9,.3,1); }
@keyframes countdown-tick { 0% { opacity: .25; transform: translateY(-7px) scale(.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes countdown-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.participants-section { background: #fff; scroll-margin-top: 20px; }
.section-heading { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.section-heading h2 { margin-bottom: 0; }
.player-grid { max-width: 900px; display: grid; grid-template-columns: 1fr; margin-inline: auto; border-top: 1px solid var(--line); }
.player-card { position: relative; min-width: 0; min-height: 112px; display: flex; align-items: center; gap: 20px; padding: 18px 8px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.player-card > img { width: 76px; height: 76px; flex: 0 0 76px; object-fit: cover; background: #e7edf5; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(8,27,58,.1); }
.player-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.player-card h3 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.15rem); overflow-wrap: anywhere; }
.player-country { flex: 0 0 auto; font-size: 1.5rem; line-height: 1; }
.player-card-new { z-index: 1; padding-inline: 16px; background: #f5faff; border: 1px solid var(--blue); border-radius: 10px; box-shadow: 0 0 0 4px rgba(0,100,223,.08); }
.new-badge { margin-left: auto; color: var(--success); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.empty-state { padding: 70px 30px; text-align: center; background: var(--surface); border: 1px dashed #bdcadd; border-radius: var(--radius); }
.empty-number { display: block; margin-bottom: 18px; color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .16em; }
.empty-state h3 { margin-bottom: 12px; font-size: 1.7rem; }
.empty-state p { color: var(--ink-soft); }
.empty-state .button { margin-top: 14px; }
.page-hero { padding: 120px 0 100px; background: linear-gradient(180deg, #f5faff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero-compact { padding-block: 86px 70px; }
.page-hero h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 5.6rem); }
.page-hero p:not(.eyebrow) { max-width: 760px; margin-bottom: 0; color: var(--ink-soft); font-size: 1.18rem; }
.closed-page { min-height: 68vh; display: flex; align-items: center; text-align: center; }
.closed-page .button { margin-top: 30px; }

.form-section { background: var(--surface); }
.form-layout { max-width: 960px; }
.form-card { padding: clamp(28px, 5vw, 58px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 60px rgba(8,27,58,.06); }
.form-intro { margin-bottom: 48px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.form-intro h1 { margin-bottom: 16px; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.form-intro > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--ink-soft); font-size: 1rem; }
.form-step { display: flex; gap: 18px; margin-bottom: 32px; }
.form-step > span { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: var(--blue); background: #eaf4ff; border-radius: 50%; font-size: .7rem; font-weight: 900; }
.form-step h2 { margin: 2px 0 6px; font-size: 1.55rem; }
.form-step p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.form-step-avatar { margin-top: 58px; padding-top: 44px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.form-grid > div, .admin-form-panel form > div:not(.admin-form-actions):not(.crop-interface) { min-width: 0; }
label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 800; }
.label-with-tooltip { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.label-with-tooltip label { margin: 0; }
.tooltip { position: relative; display: inline-flex; }
.tooltip-trigger { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; color: var(--blue); background: #eaf4ff; border: 1px solid #b8d8ff; border-radius: 50%; font-size: .72rem; font-weight: 900; line-height: 1; cursor: help; }
.tooltip-content { position: absolute; z-index: 15; left: 50%; bottom: calc(100% + 10px); width: 250px; padding: 11px 13px; color: #fff; background: var(--ink); border-radius: 7px; box-shadow: 0 10px 30px rgba(8,27,58,.2); font-size: .75rem; font-weight: 550; line-height: 1.45; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .16s, transform .16s; }
.tooltip-content::after { content: ""; position: absolute; top: 100%; left: 50%; border: 6px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); }
.tooltip:hover .tooltip-content, .tooltip:focus-within .tooltip-content { opacity: 1; transform: translate(-50%, 0); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="file"], select { width: 100%; min-height: 50px; padding: 0 14px; color: var(--ink); background: #fff; border: 1px solid #becadc; border-radius: 7px; }
input[type="file"] { height: auto; padding: 12px; }
input:focus, select:focus { border-color: var(--blue); outline: 3px solid rgba(0,100,223,.11); }
.help-text { margin: 6px 0 0; color: var(--ink-soft); font-size: .75rem; }
form ul { margin: 7px 0 0; padding: 0; color: var(--danger); font-size: .78rem; list-style: none; }
.avatar-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 104px)); gap: 12px; }
.avatar-option { position: relative; margin: 0; padding: 5px; background: transparent; border: 0; border-radius: 50%; cursor: pointer; transition: transform .2s; }
.avatar-option:hover { transform: translateY(-2px); }
.avatar-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.avatar-option:has(input:focus-visible) { outline: 3px solid rgba(0,100,223,.3); outline-offset: 2px; }
.avatar-option:has(input:checked) { box-shadow: none; }
.avatar-image { display: block; overflow: hidden; aspect-ratio: 1; background: var(--surface); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(8,27,58,.1); transition: box-shadow .2s; }
.avatar-option:has(input:checked) .avatar-image { box-shadow: 0 0 0 3px var(--blue), 0 10px 28px rgba(0,100,223,.2); }
.avatar-image img { width: 100%; height: 100%; object-fit: cover; }
.avatar-check { position: absolute; top: 5px; right: 5px; display: none; width: 24px; height: 24px; place-items: center; color: #fff; background: var(--blue); border: 2px solid #fff; border-radius: 50%; }
.avatar-option:has(input:checked) .avatar-check { display: grid; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; margin-top: 36px; padding: 20px; background: var(--surface); border-radius: 9px; }
.consent-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.consent-row label { margin: 0; font-weight: 600; line-height: 1.5; }
.consent-row ul { grid-column: 2; }
.form-submit { width: 100%; margin-top: 22px; }
.notice { margin-bottom: 30px; padding: 18px 20px; color: #744700; background: #fff8e4; border: 1px solid #f1d18b; border-radius: 8px; }
.notice strong { display: block; }

.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 80px; align-items: start; }
.rules-index { position: sticky; top: 32px; display: grid; }
.rules-index p { margin-bottom: 14px; color: var(--ink-soft); font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.rules-index a { padding: 12px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 700; text-decoration: none; }
.rules-index a:hover { color: var(--blue); }
.rules-index span { display: inline-block; width: 30px; color: var(--blue); font-size: .67rem; }
.rule-block { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 32px; }
.rule-block:last-child { margin-bottom: 0; border-bottom: 0; }
.rule-number { color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.rule-block h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.rule-block p { color: #35455e; font-size: 1.02rem; }
.external-link { display: inline-flex; gap: 10px; margin-top: 5px; }
.rule-list { display: grid; gap: 11px; margin: 0 0 24px; padding-left: 22px; color: #35455e; }
.rule-list li { padding-left: 6px; font-size: 1.02rem; }
.rule-list li::marker { color: var(--blue); }

.site-footer { padding: 48px 0; color: #93a1b6; background: #06152e; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner div strong, .footer-inner div span { display: block; }
.footer-inner strong { color: #fff; }
.footer-inner span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-inner p { margin: 0; font-size: .85rem; }
.footer-inner a { color: #fff; text-underline-offset: 4px; }
.flash-stack { position: relative; z-index: 30; }
.flash { margin: 18px 0; padding: 14px 18px; color: #075d40; background: #e9fbf4; border: 1px solid #a7dfca; border-radius: 8px; font-size: .9rem; }
.flash-error { color: #8c1d18; background: #fff0ef; border-color: #f2b8b5; }

/* Administration */
.admin-body { min-height: 100vh; background: var(--surface); }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; display: flex; flex-direction: column; padding: 26px 18px; color: #fff; background: #071932; }
.admin-brand { padding: 0 10px 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand small { color: #8fa2bd; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.admin-sidebar nav { display: grid; gap: 7px; margin-top: 28px; }
.admin-sidebar nav a { padding: 13px 14px; border-radius: 8px; text-decoration: none; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { background: rgba(255,255,255,.09); }
.admin-sidebar nav span, .admin-sidebar nav small { display: block; }
.admin-sidebar nav span { font-weight: 750; }
.admin-sidebar nav small { color: #8fa2bd; font-size: .7rem; }
.admin-sidebar-footer { display: grid; gap: 10px; margin-top: auto; padding: 20px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-footer a { color: #b9c5d6; font-size: .78rem; }
.admin-main { min-height: 100vh; margin-left: 270px; padding: 54px clamp(30px, 5vw, 74px); }
.admin-page-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.admin-page-header h1 { margin: 4px 0 8px; font-size: clamp(2.5rem, 5vw, 4.3rem); }
.admin-page-header p:not(.eyebrow) { margin: 0; color: var(--ink-soft); }
.admin-page-header .back-link { display: inline-block; margin-bottom: 16px; font-size: .8rem; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 34px rgba(8,27,58,.04); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--ink-soft); background: #fbfcfe; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
td { font-size: .86rem; }
tbody tr:last-child td { border-bottom: 0; }
.table-player { display: flex; align-items: center; gap: 12px; }
.table-player img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.table-player strong, .table-player small, .table-subline { display: block; }
.table-player small, .table-subline { color: var(--ink-soft); font-size: .72rem; }
.table-actions { text-align: right; white-space: nowrap; }
.table-actions a, .table-actions form, .table-actions button { display: inline; }
.table-actions a, .table-actions button { padding: 0; color: var(--blue); background: none; border: 0; font-size: .78rem; font-weight: 750; cursor: pointer; }
.table-actions form::before { content: "·"; margin: 0 7px; color: #aab5c5; }
.table-actions button { color: var(--danger); }
.admin-empty { padding: 90px 30px; text-align: center; }
.admin-empty h2 { margin-bottom: 10px; }
.admin-empty p { color: var(--ink-soft); }
.admin-empty .button { margin-top: 14px; }
.admin-form-panel { max-width: 900px; padding: clamp(26px, 5vw, 48px); }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.batch-upload-note { margin: 20px 0 0; padding: 14px 16px; color: var(--ink-soft); background: var(--surface); border-radius: 8px; font-size: .8rem; }
.batch-upload-note strong { color: var(--ink); }
.admin-avatar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.admin-avatar-card { min-width: 0; padding: 18px; background: #fff; }
.admin-avatar-card > img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 15px; background: var(--surface); border-radius: 9px; }
.admin-avatar-card h2 { margin-bottom: 8px; font-size: 1rem; overflow-wrap: anywhere; }
.availability { display: inline-block; font-size: .68rem; font-weight: 750; }
.availability.available { color: var(--success); }
.availability.assigned { color: var(--ink-soft); }
.danger-link { margin-top: 16px; padding: 0; color: var(--danger); background: none; border: 0; font-size: .73rem; font-weight: 750; text-decoration: underline; cursor: pointer; }
.crop-interface { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 34px; align-items: center; margin-top: 28px; padding: 24px; background: var(--surface); border-radius: 10px; }
.crop-preview { overflow: hidden; aspect-ratio: 1; background: #dbe4ef; border-radius: 8px; }
.crop-preview canvas { width: 100%; height: 100%; }
.crop-controls { display: grid; gap: 18px; }
.crop-controls input { width: 100%; accent-color: var(--blue); }
.crop-controls p { margin: 0; color: var(--ink-soft); font-size: .78rem; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 20%, #0b3977, #071932 58%); }
.login-shell { width: min(460px, 100%); }
.login-brand { display: flex; justify-content: center; margin-bottom: 25px; color: #fff; }
.login-brand > span { font-size: 1.1rem; font-weight: 800; }
.login-brand small { display: block; color: #a9bbd3; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.login-card { padding: 38px; background: #fff; border-radius: 15px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.login-card h1 { margin-bottom: 10px; font-size: 2rem; }
.login-card > p:not(.eyebrow) { margin-bottom: 28px; color: var(--ink-soft); }
.login-card input { margin-bottom: 20px; }
.login-card .button { width: 100%; margin-top: 6px; }

@media (max-width: 980px) {
    .hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; }
    .admin-avatar-grid { grid-template-columns: repeat(3, 1fr); }
    .rules-layout { grid-template-columns: 190px 1fr; gap: 40px; }
    .admin-sidebar { width: 225px; }
    .admin-main { margin-left: 225px; padding-inline: 30px; }
    .crop-interface { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 30px, 1180px); }
    .section { padding: 72px 0; }
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 84px; left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 14px 15px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(8,27,58,.08); }
    .main-nav.open { display: grid; }
    .main-nav a { padding: 13px 10px; }
    .main-nav .button { margin-top: 7px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 72px 0; }
    .hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
    .text-link { text-align: center; }
    .countdown-grid { gap: 5px; padding-inline: 10px; }
    .countdown-unit { min-width: 48px; }
    .countdown-unit strong { font-size: 1.45rem; }
    .rules-layout { grid-template-columns: 1fr; }
    .rules-index { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .avatar-picker { grid-template-columns: repeat(auto-fill, minmax(76px, 92px)); gap: 9px; }
    .rule-block { grid-template-columns: 1fr; gap: 8px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .admin-sidebar { position: static; width: auto; }
    .admin-sidebar nav { grid-template-columns: 1fr 1fr; }
    .admin-sidebar-footer { grid-template-columns: 1fr 1fr; }
    .admin-main { margin: 0; padding: 35px 15px; }
    .admin-page-header { align-items: stretch; flex-direction: column; }
    .admin-page-header .button { align-self: flex-start; }
    .admin-avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
    .brand strong { font-size: .86rem; }
    .player-card { gap: 14px; padding-block: 14px; }
    .player-card > img { width: 64px; height: 64px; flex-basis: 64px; }
    .player-country { font-size: 1.25rem; }
    .avatar-picker { grid-template-columns: repeat(auto-fill, minmax(72px, 86px)); }
    .form-card { padding-inline: 18px; }
    .admin-avatar-grid { grid-template-columns: 1fr; }
    .admin-form-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
