


:root,
[data-theme="dark"] {
    
    --bg:           #0a0a09;
    --bg2:          #111110;
    --surface:      #1a1a18;
    --surface2:     #222220;
    --surface3:     #2a2a28;
    --surface4:     #353531;

    
    --border:       rgba(255,255,255,.07);
    --border2:      rgba(255,255,255,.11);
    --border3:      rgba(255,255,255,.16);

    
    --text:         #f5f5f4;
    --text2:        #d6d3d1;
    --muted:        #78716c;
    --muted2:       #a8a29e;

    /* Brand / Primary — use dark theme blues & oranges */
    --primary:      #016FB9;
    --primary-h:    #0180d4;
    --primary-light:rgba(1,111,185,.14);
    --accent:       #FF9505;
    --accent-h:     #e8870a;
    --accent-light: rgba(255,149,5,.12);
    --cta:          #EC4E20;
    --cta-h:        #d94118;
    --cta-light:    rgba(236,78,32,.12);

    /* Semantic */
    --success:      #22c55e;
    --success-light:rgba(34,197,94,.12);
    --danger:       #ef4444;
    --danger-light: rgba(239,68,68,.12);
    --warning:      #FF9505;
    --warning-light:rgba(255,149,5,.12);
    --live:         #ef4444;
    --live-pulse:   rgba(239,68,68,.3);

    /* Extended palette */
    --orange:       #f97316;
    --orange-light: rgba(249,115,22,.12);
    --amber:        #fbbf24;
    --amber-light:  rgba(251,191,36,.12);
    --purple:       #a78bfa;
    --purple-light: rgba(167,139,250,.12);

    /* Layout */
    --nav-h:              56px;
    --radius:             10px;
    --radius-lg:          14px;
    --radius-xl:          18px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
    --shadow:       0 4px 16px rgba(0,0,0,.5);
    --shadow-lg:    0 16px 48px rgba(0,0,0,.65);

    /* Scrollbar */
    --sb-track:     transparent;
    --sb-thumb:     rgba(255,255,255,.1);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
    /* Base */
    --bg:           #f0f4f5;
    --bg2:          #e8eef0;
    --surface:      #ffffff;
    --surface2:     #f4f7f8;
    --surface3:     #eaf0f2;
    --surface4:     #dde6e9;

    /* Borders */
    --border:       rgba(37,48,49,.1);
    --border2:      rgba(37,48,49,.16);
    --border3:      rgba(37,48,49,.22);

    /* Text */
    --text:         #253031;
    --text2:        #315659;
    --muted:        #6b8a8d;
    --muted2:       #4d6d70;

    /* Brand / Primary */
    --primary:      #2978A0;
    --primary-h:    #1f6691;
    --primary-light:rgba(41,120,160,.1);
    --accent:       #BCAB79;
    --accent-h:     #a8965e;
    --accent-light: rgba(188,171,121,.12);
    --cta:          #315659;
    --cta-h:        #253031;
    --cta-light:    rgba(49,86,89,.1);

    /* Semantic */
    --success:      #16a34a;
    --success-light:rgba(22,163,74,.1);
    --danger:       #dc2626;
    --danger-light: rgba(220,38,38,.1);
    --warning:      #d97706;
    --warning-light:rgba(217,119,6,.1);
    --live:         #dc2626;
    --live-pulse:   rgba(220,38,38,.25);

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(37,48,49,.08);
    --shadow:       0 4px 16px rgba(37,48,49,.1);
    --shadow-lg:    0 16px 48px rgba(37,48,49,.15);

    /* Scrollbar */
    --sb-thumb:     rgba(37,48,49,.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}
[data-theme="light"] html,
[data-theme="light"] {
    color-scheme: light;
}

body {
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; background: none; border: none; color: inherit; font-family: inherit; }

/* Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) var(--sb-track);
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 4px; }

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border2);
    background: var(--surface2);
    color: var(--muted2);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--surface3);
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
/* Show sun icon in dark, moon in light */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.ti {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.ti--sm  { width: 14px; height: 14px; }
.ti--md  { width: 20px; height: 20px; }
.ti--lg  { width: 24px; height: 24px; }
.ti--xl  { width: 32px; height: 32px; }

.t-display {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: .95;
}
.t-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
}
.t-heading {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.2px;
}
.t-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.t-mono {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.4;
}
.badge--primary { background: var(--primary-light); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.badge--accent  { background: var(--accent-light);  color: var(--accent);  border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.badge--cta     { background: var(--cta-light);     color: var(--cta);     border-color: color-mix(in srgb, var(--cta) 25%, transparent); }
.badge--success { background: var(--success-light); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.badge--danger  { background: var(--danger-light);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.badge--warning { background: var(--warning-light); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.badge--muted   { background: var(--surface3); color: var(--muted2); border-color: var(--border2); }
.badge--live    { background: var(--danger-light); color: var(--live); border-color: color-mix(in srgb, var(--live) 30%, transparent); }
.badge--pill    { border-radius: 20px; padding: 3px 10px; }
.badge--dot::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: badge-live-dot 1.4s infinite;
    flex-shrink: 0;
}
@keyframes badge-live-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%     { opacity:.4; transform:scale(.8); }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 40%, transparent);
}
.btn--primary:hover { background: var(--primary-h); border-color: var(--primary-h); }
.btn--cta {
    background: var(--cta);
    color: #fff;
    border-color: var(--cta);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--cta) 35%, transparent);
}
.btn--cta:hover { background: var(--cta-h); border-color: var(--cta-h); }
.btn--accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn--ghost {
    background: transparent;
    color: var(--muted2);
    border-color: var(--border2);
}
.btn--ghost:hover { color: var(--text); border-color: var(--border3); background: var(--surface2); }
.btn--danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn--lg { padding: 12px 24px; font-size: 14px; border-radius: 12px; }
.btn--icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn--icon.btn--sm { width: 28px; height: 28px; padding: 5px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s;
}
.card:hover { border-color: var(--border2); }
.card--elevated {
    box-shadow: var(--shadow);
}
.card--interactive {
    cursor: pointer;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card--interactive:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface2) 50%, transparent);
}
.card-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted2);
    flex: 1;
}
.card-body { padding: 16px; }

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 9px 13px;
    background: var(--surface2);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
}
.input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

/* ── SELECT: рамка, стрелка, цветовая схема ── */
select {
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255%2C255%2C255%2C.4)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    color-scheme: dark;
}
[data-theme="light"] select {
    color-scheme: light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(0%2C0%2C0%2C.45)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
/* Стрелка + padding для классов с background shorthand.
   select.class (0,1,1) > .class (0,1,0) — всегда побеждает. */
select.ctf-input, select.ctf-select,
select.ct2-input,
select.stp-input {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255%2C255%2C255%2C.4)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
[data-theme="light"] select.ctf-input,
[data-theme="light"] select.ctf-select,
[data-theme="light"] select.ct2-input,
[data-theme="light"] select.stp-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(0%2C0%2C0%2C.45)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    display: inline-block;
    animation: live-pulse 1.4s infinite;
    flex-shrink: 0;
}
@keyframes live-pulse {
    0%,100% { opacity:1; transform:scale(1); box-shadow:0 0 0 0 var(--live-pulse); }
    50%     { opacity:.6; transform:scale(.8); box-shadow:0 0 0 4px transparent; }
}

.glass {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border2);
}
.glass--strong {
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

.code-block {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 12px;
    color: var(--text2);
    overflow-x: auto;
}
.code-block .kw  { color: var(--primary); }
.code-block .str { color: var(--accent); }
.code-block .num { color: var(--cta); }
.code-block .cmt { color: var(--muted); font-style: italic; }

.divider {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 0;
}
.divider--label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.divider--label::before,
.divider--label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    box-shadow: var(--shadow-lg);
    border: 1px solid transparent;
    pointer-events: auto;
    cursor: default;
    animation: toastIn .3s cubic-bezier(.34,1.56,.64,1) forwards;
    max-width: 360px;
    line-height: 1.4;
    backdrop-filter: blur(16px);
}
.toast.toast--out { animation: toastOut .25s ease forwards; }
.toast--success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.toast--error   { background: color-mix(in srgb, var(--danger) 10%,  var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%,  transparent); color: var(--danger); }
.toast--info    { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); }
.toast--warning { background: color-mix(in srgb, var(--warning) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 30%, transparent); color: var(--warning); }
.toast-icon { flex-shrink: 0; }
.toast-close { margin-left: auto; flex-shrink: 0; opacity: .5; cursor: pointer; background: none; border: none; color: inherit; padding: 0; line-height: 1; font-size: 18px; transition: opacity .15s; }
.toast-close:hover { opacity: 1; }
@keyframes toastIn  { from { opacity:0; transform:translateY(12px) scale(.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(8px) scale(.95); } }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modalIn .2s cubic-bezier(.22,1,.36,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(12px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; font-weight: 800; }
.modal-body { padding: 20px 24px; }
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 80px 24px;
    text-align: center;
    color: var(--muted);
}
.empty-state svg { opacity: .3; width: 48px; height: 48px; }
.empty-state-title { font-size: 17px; font-weight: 900; color: var(--text2); }
.empty-state-text  { font-size: 13px; line-height: 1.7; max-width: 380px; }

.progress-bar {
    height: 6px;
    background: var(--surface3);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--accent)));
    border-radius: 3px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
}
.progress-bar--accent .progress-bar__fill { background: linear-gradient(90deg, var(--accent), var(--cta)); }
.progress-bar--success .progress-bar__fill { background: var(--success); }
.progress-bar--danger .progress-bar__fill { background: var(--danger); }

@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius);
}

.transition-theme * {
    transition: background-color .25s ease, border-color .25s ease, color .2s ease !important;
}

.not-found-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    text-align: center;
    padding: 24px;
    color: var(--muted);
}
.not-found-inline svg { opacity: .4; }
.not-found-inline__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.not-found-inline__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.not-found-inline__link:hover { background: var(--primary-h); }

.color-success { color: var(--success); }
.color-danger  { color: var(--danger);  }
.color-primary { color: var(--primary); }
.color-accent  { color: var(--accent);  }
.color-warning { color: var(--warning); }
.color-muted   { color: var(--muted);   }
.color-muted2  { color: var(--muted2);  }
.color-text    { color: var(--text);    }
.color-text2   { color: var(--text2);   }
.color-orange  { color: var(--orange);  }
.color-amber   { color: var(--amber);   }
.color-purple  { color: var(--purple);  }
.color-white   { color: #fff;           }

.flex-1   { flex: 1; }
.pe-none  { pointer-events: none; }
.fw-700   { font-weight: 700; }
.fw-800   { font-weight: 800; }

/* ── STAFF BADGES ── */
.staff-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .3px;
    white-space: nowrap;
    cursor: default;
    vertical-align: middle;
    position: relative;
    background: var(--sb-bg-d);
    color: var(--sb-fg-d);
    margin-left:5px;
}
[data-theme="light"] .staff-badge {
    background: var(--sb-bg-l);
    color: var(--sb-fg-l);
}

/* Tooltip */
.staff-badge[data-sb-tip] { cursor: help; }
.staff-badge[data-sb-tip]::after {
    content: attr(data-sb-tip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface2);
    color: var(--text2);
    border: 1px solid var(--border2);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 200;
    pointer-events: none;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity .15s;
}
.staff-badge[data-sb-tip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border2);
    z-index: 201;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}
.staff-badge[data-sb-tip]:hover::after,
.staff-badge[data-sb-tip]:hover::before { opacity: 1; }





.hero-live-ticker {
    background: rgba(239, 68, 68, .07);
    border-bottom: 1px solid rgba(239, 68, 68, .18);
    border-top: 1px solid rgba(239, 68, 68, .12);
}

.hero-live-ticker__inner {
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.hero-live-ticker__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ef4444;
    flex-shrink: 0;
    text-transform: uppercase;
}
.hero-live-ticker__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: tickerPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes tickerPulse {
    0%   { box-shadow: 0 0 0 0   rgba(239,68,68,.7); }
    70%  { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0   rgba(239,68,68,0); }
}

.hero-live-ticker__scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.hero-live-ticker__track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: tickerScroll 18s linear infinite;
}
.hero-live-ticker__track:hover {
    animation-play-state: paused;
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-match {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 40px;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
    border-radius: 0;
}
.ticker-match:hover {
    background: rgba(255,255,255,.04);
}
.ticker-match__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
    opacity: .85;
}
.ticker-match__logo--right { }
.ticker-match__name {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}
.ticker-match__score {
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
    min-width: 40px;
    text-align: center;
    letter-spacing: .5px;
}
.ticker-match__game {
    font-size: 10px;
    color: var(--muted);
    margin-left: 4px;
    font-weight: 500;
}
.ticker-match__sep {
    color: var(--muted);
    padding: 0 8px;
    font-size: 14px;
    opacity: .4;
}

.hero-live-ticker__all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    transition: opacity .15s;
}
.hero-live-ticker__all:hover { opacity: .75; }

@media (max-width: 640px) {
    .hero-live-ticker__inner { padding: 0 16px; gap: 8px; }
    .hero-live-ticker__all span { display: none; }
    .ticker-match { padding: 0 10px; }
    .ticker-match__game { display: none; }
}




.stats-strip {
    margin: 12px 16px 4px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.stats-strip__inner {
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 52px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}
.stats-strip__inner::-webkit-scrollbar { display: none; }

.stats-strip__sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 4px;
}
.stats-strip__sep--push {
    flex: 1;
    width: auto;
    background: transparent;
    margin: 0;
}

.stats-tile {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    height: 100%;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .15s, background .15s;
    flex-shrink: 0;
    border-radius: 8px;
}
.stats-tile:hover {
    color: var(--text);
    background: rgba(255,255,255,.04);
}

.stats-tile__icon {
    display: flex;
    align-items: center;
    color: var(--muted);
    flex-shrink: 0;
}
.stats-tile:hover .stats-tile__icon { color: var(--text); }

.stats-tile__val {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stats-tile__label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.stats-tile--live .stats-tile__val { color: #ef4444; }
.stats-tile__live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: livePulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0   rgba(239,68,68,.6); }
    70%  { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0   rgba(239,68,68,0); }
}

.stats-tile--app {
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}
.stats-tile--app:hover {
    background: rgba(1,111,185,.08);
    color: var(--primary);
}
.stats-tile--app .stats-tile__icon { color: var(--primary); }
.stats-tile__arrow { color: var(--primary); opacity: .7; }

[data-theme="light"] .stats-strip { background: var(--surface); }

@media (max-width: 640px) {
    .stats-strip { margin: 8px 8px 4px; border-radius: 12px; }
    .stats-strip__inner { padding: 0 12px; }
    .stats-tile { padding: 0 8px; font-size: 11px; }
    .stats-tile__val { font-size: 13px; }
}




.layout {
    display: flex;
    min-height: 100vh;
}
.layout-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 0;
    flex: 1;
    padding-top: var(--nav-h);
}
.content-wrap--full {
    display: block;
    grid-template-columns: none;
    padding-top: var(--nav-h);
}
.content-wrap--full .content-left {
    border-right: none;
    max-width: 100%;
    padding-bottom: 0;
}
.content-left {
    min-width: 0;
    border-right: 1px solid var(--border);
    padding-bottom: 24px;
    background: var(--bg);
}
.content-right {
    min-width: 0;
    position: sticky;
    top: var(--nav-h);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    align-self: start;
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) var(--sb-track);
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 200;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: left .25s cubic-bezier(.4,0,.2,1);
}
.nav-inner {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.4px;
    flex-shrink: 0;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    max-width: 210px;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
}
.nav-links a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--surface2);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    position: relative;
    transition: border-color .2s, color .2s;
}
.nav-icon-btn:hover { border-color: var(--primary); color: var(--text); }
.nav-icon-btn > i { font-size: 18px; }
.nav-notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    border: 1.5px solid var(--bg);
}
.btn-deposit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--primary);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    transition: opacity .2s;
    white-space: nowrap;
}
.btn-deposit:hover { opacity: .85; }
.btn-deposit > i { font-size: 14px; }
.btn-ghost {
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted2);
    transition: color .2s;
}
.btn-ghost:hover { color: var(--text); }
.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s;
}
.user-chip:hover { border-color: var(--primary); }
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.user-chip-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.user-chip-name { font-size: 12px; font-weight: 700; line-height: 1; }
.user-chip-bal  { font-size: 11px; color: var(--muted2); line-height: 1; }
.nav-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    margin-left: 4px;
}
.nav-hamburger > i { font-size: 20px; }
.nav-hamburger.is-open .line-top    { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.is-open .line-mid    { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open .line-bottom { transform: rotate(-45deg) translate(5px, -5px); }

/* Sidebar toggle button */
.nav-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}
.nav-sidebar-toggle:hover { background: var(--surface2); }
.nav-sidebar-toggle > i { font-size: 20px; }

/* Sidebar overlay */
.nav-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.nav-sidebar-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar panel */
.nav-sidebar-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}
.nav-sidebar-panel.is-open { transform: translateX(0); }

.nav-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.nav-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}
.nav-sidebar-logo-img {
    height: 26px;
    width: auto;
    object-fit: contain;
}
.nav-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--muted2);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.nav-sidebar-close:hover { background: var(--surface2); color: var(--text); }

.nav-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
}
.nav-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 12px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted2);
    transition: background .15s, color .15s;
}
.nav-sidebar-item > i { font-size: 17px; }
.nav-sidebar-item:hover { background: var(--surface2); color: var(--text); }
.nav-sidebar-item--danger { color: rgba(239,68,68,.8); }
.nav-sidebar-item--danger:hover { background: rgba(239,68,68,.1); color: var(--danger,#ef4444); }

.nav-sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 14px 8px;
    flex-shrink: 0;
}

.nav-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
}
.nav-sidebar-ava {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}
.nav-sidebar-ava--img {
    object-fit: cover;
    font-size: 0;
}
.nav-sidebar-user-info { display: flex; flex-direction: column; gap: 2px; }
.nav-sidebar-username { font-size: 14px; font-weight: 700; color: var(--text); }
.nav-sidebar-balance  { font-size: 12px; color: var(--muted); }

.nav-sidebar-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 14px;
}
.nav-sidebar-auth-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.user-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    object-fit: cover;
}
.chip-arrow { transition: transform .2s; flex-shrink: 0; color: var(--muted); font-size: 14px; }
.user-chip.dd-open .chip-arrow { transform: rotate(180deg); }
.user-chip { position: relative; cursor: pointer; }
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
    z-index: 500;
    animation: fadeDown .15s ease;
}
.user-dropdown.is-open { display: block; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.user-dd-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted2);
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.user-dd-item:hover { background: var(--surface2); color: var(--text); }
.user-dd-item > i { font-size: 14px; }
.user-dd-danger { color: rgba(239,68,68,.8); }
.user-dd-danger:hover { background: rgba(239,68,68,.1); color: var(--danger); }

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 8px 12px 14px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.nav-mobile-menu.is-open { display: flex; }
.nav-mobile-menu a {
    padding: 11px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted2);
    transition: background .15s, color .15s;
}
.nav-mobile-menu a:hover { background: var(--surface2); color: var(--text); }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ── Выпадающее меню (десктоп) ── */
.nav-mega-wrap {
    position: relative;
}
.nav-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted2);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.nav-mega-trigger:hover,
.nav-mega-wrap.is-open .nav-mega-trigger { color: var(--text); background: var(--surface2); }
.mega-chevron {
    opacity: .6;
    transition: transform .2s;
    flex-shrink: 0;
}
.nav-mega-wrap.is-open .mega-chevron { transform: rotate(180deg); }

.nav-mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    width: max-content;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 5px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    flex-direction: column;
    gap: 1px;
}
/* мост — перекрывает зазор между ссылкой и панелью */
.nav-mega-panel::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    height: 8px;
}
.nav-mega-wrap.is-open .nav-mega-panel { display: flex; }

.nav-mega-link {
    display: block;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 13px;
    color: var(--muted2);
    text-decoration: none;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.nav-mega-link:hover { background: var(--surface2); color: var(--text); }

/* ── Мега-меню (мобильное меню) ── */
.nav-mob-mega-wrap { width: 100%; }
.nav-mob-mega-head {
    display: flex;
    align-items: center;
}
.nav-mob-mega-head > a {
    flex: 1;
    padding: 11px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted2);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.nav-mob-mega-head > a:hover { background: var(--surface2); color: var(--text); }
.nav-mob-mega-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--muted2);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.nav-mob-mega-toggle:hover { background: var(--surface2); color: var(--text); }
.nav-mob-mega-toggle svg { transition: transform .2s; }
.nav-mob-mega-wrap.is-open .nav-mob-mega-toggle svg { transform: rotate(180deg); }

.nav-mob-mega-sub {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}
.nav-mob-sub-link {
    padding: 9px 10px 9px 22px;
    border-radius: 7px;
    font-size: 13px;
    color: var(--muted2);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.nav-mob-sub-link:hover { background: var(--surface2); color: var(--text); }

/* ── Мега-меню (сайдбар) ── */
.nav-sidebar-mega-wrap { width: 100%; }
.nav-sidebar-mega-head {
    display: flex;
    align-items: center;
}
.nav-sidebar-item--parent { flex: 1; }
.nav-sidebar-mega-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--muted2);
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 4px;
    transition: background .15s, color .15s;
}
.nav-sidebar-mega-toggle:hover { background: var(--surface2); color: var(--text); }
.nav-sidebar-mega-toggle svg { transition: transform .2s; }
.nav-sidebar-mega-wrap.is-open .nav-sidebar-mega-toggle svg { transform: rotate(180deg); }

.nav-sidebar-mega-sub {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}
.nav-sidebar-sub-item { padding-left: 28px; }

.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 16px 16px 4px;
    width: calc(100% - 32px);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.hero-slide {
    display: none;
    position: relative;
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    align-items: flex-end;
    padding: 48px 36px;
}
.hero-slide--active { display: flex; }
.hero-slide.hero-slide--prev,
.hero-slide.hero-slide--next { display: flex; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.hero-slide--entering { animation: slideIn .45s ease forwards; }
.hero-slide--leaving  { animation: slideOut .45s ease forwards; }
@keyframes slideIn  { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-30px); } }

.hero-body--bottom { align-items: flex-start; justify-content: flex-start; }
.hero-body--center { align-items: flex-start; justify-content: center; text-align: center; }
.hero-body--top    { align-items: flex-start; padding-top: 56px; }

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.15) 100%);
    pointer-events: none;
}

.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 14px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.hero-slider-prev,
.hero-slider-next {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted2);
    transition: border-color .15s, color .15s;
}
.hero-slider-prev:hover,
.hero-slider-next:hover { border-color: var(--primary); color: var(--text); }
.hero-slider-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    transition: background .2s, transform .2s;
    padding: 0;
}
.hero-dot--active {
    background: var(--primary);
    transform: scale(1.3);
}

.hero-banner {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, #0a1535 0%, #07060E 45%, #180828 100%);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 32px 28px;
}
.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 65% 40%, rgba(34,90,235,.28), transparent),
        radial-gradient(ellipse 30% 50% at 85% 10%, rgba(120,60,220,.18), transparent);
    pointer-events: none;
}
.hero-noise {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
    pointer-events: none;
}
.hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-event-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-event-label { display: flex; flex-direction: column; gap: 2px; }
.hero-event-name { font-size: 15px; font-weight: 800; color: var(--text); }
.hero-event-sub  { font-size: 11px; color: var(--muted2); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: .95;
    color: #fff;
}
.hero-teams-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-team-badge {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted2);
    transition: border-color .2s, transform .2s, background .2s;
    overflow: hidden;
}
.hero-team-badge:hover {
    border-color: var(--primary);
    background: rgba(34,90,235,.15);
    transform: translateY(-2px);
    color: var(--text);
}
.hero-team-badge img { width: 32px; height: 32px; object-fit: contain; }

.matches-section {
    margin: 12px 16px 4px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

.matches-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.matches-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tournament-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
.tournament-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.matches-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tournament-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}
.tournament-game {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.tournament-count {
    font-size: 11px;
    background: var(--surface2);
    color: var(--muted);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.tournament-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    color: var(--live);
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.2);
    padding: 2px 8px;
    border-radius: 20px;
}
.matches-header-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tab-btn {
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: background .15s, color .15s;
}
.tab-btn:hover { background: var(--surface2); color: var(--text); }
.tab-btn.tab-active { background: var(--surface2); color: var(--text); }
.tab-btn.tab-icon { padding: 5px 9px; }

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
}
.match-card {
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    align-items: center;
    padding: 14px 20px;
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    transition: background .15s;
    gap: 8px;
}
.match-card:last-child {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.match-card:hover { background: var(--surface2); }
.match-card--live { background: rgba(239,68,68,.04); }
.match-card--live:hover { background: rgba(239,68,68,.07); }

.mc-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.mc-team--right {
    flex-direction: row-reverse;
    text-align: right;
}
.mc-team--loser {
    opacity: .38;
}
.mc-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color .15s;
}
.match-card:hover .mc-logo { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.mc-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.mc-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.mc-format {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .5px;
    text-transform: uppercase;
}
.mc-score {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}
.mc-score--live { color: var(--live); }
.mc-score--done { color: var(--text); }
.mc-score-win { color: var(--text); }
.mc-score-sep {
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
    opacity: .5;
}
.mc-score--done .mc-score-sep { font-size: 20px; }
.mc-time {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1;
}
.mc-tbd {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .5px;
}
.mc-stage {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.mc-live-dot {
    width: 6px;
    height: 6px;
    background: var(--live);
    border-radius: 50%;
    animation: livepulse 1.4s infinite;
    display: inline-block;
    flex-shrink: 0;
}

.match-row { display: none; }
.match-live-dot {
    width: 7px; height: 7px;
    background: var(--live); border-radius: 50%;
    animation: livepulse 1.4s infinite; display: inline-block;
}
.match-live-label { font-size: 11px; font-weight: 800; color: var(--live); letter-spacing: .8px; }
.match-team-logo {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--surface2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: var(--muted2);
    flex-shrink: 0; overflow: hidden;
}
.match-team-logo img { width: 24px; height: 24px; object-fit: contain; }
.match-team-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-format { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.match-vs-label { font-size: 11px; font-weight: 800; color: var(--surface3); }
.match-vs { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; min-width: 52px; }
.match-time-hour { font-size: 14px; font-weight: 800; }

[data-theme="light"] .match-card:hover { background: #f5f5f4; }
[data-theme="light"] .match-card--live { background: rgba(239,68,68,.03); }

@media (max-width: 640px) {
    .match-card { grid-template-columns: 1fr 80px 1fr; padding: 12px 14px; }
    .mc-logo { width: 32px; height: 32px; border-radius: 8px; }
    .mc-logo img { width: 22px; height: 22px; }
    .mc-name { font-size: 12px; }
    .mc-score, .mc-time { font-size: 17px; }
    .mc-stage { display: none; }
}

.match-row-odds {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}
.odds-btn {
    padding: 6px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.odds-btn:hover { background: rgba(34,90,235,.2); border-color: var(--primary); }
.odds-empty { font-size: 13px; color: var(--muted); padding: 6px 8px; }
.odds-btn.odds-selected { background: rgba(34,90,235,.25); border-color: var(--primary); color: var(--primary); }
.match-fav-btn.fav-active svg { fill: var(--warning); color: var(--warning); }

.live-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: var(--nav-h);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.live-panel::-webkit-scrollbar { width: 4px; }
.live-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.live-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.live-dot-wrap { display: flex; align-items: center; gap: 8px; }
.live-dot-anim {
    width: 8px;
    height: 8px;
    background: var(--live);
    border-radius: 50%;
    animation: livepulse 1.4s infinite;
    flex-shrink: 0;
}
.live-panel-title { font-size: 14px; font-weight: 800; }
.live-panel-nav { display: flex; align-items: center; gap: 6px; }
.live-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted2);
    transition: border-color .15s, color .15s;
}
.live-nav-btn:hover { border-color: var(--primary); color: var(--text); }
.live-panel-page { font-size: 12px; color: var(--muted2); font-weight: 600; }

.live-match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.live-tournament { font-size: 12px; color: var(--muted2); font-weight: 600; }
.live-match-format {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .5px;
}
.format-dots { display: flex; align-items: center; gap: 4px; }
.format-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
}
.dot-done    { background: var(--live); border-color: var(--live); }
.dot-pending { background: transparent; }

.live-stream-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: #0d0c14;
    overflow: hidden;
    border: 1px solid var(--border);
}
.live-stream-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stream-thumb-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1b3e, #07060E, #150a26);
}
.live-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    transition: background .2s;
}
.live-play-btn:hover { background: rgba(0,0,0,.2); }
.live-play-btn svg {
    filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
    transition: transform .2s;
}
.live-play-btn:hover svg { transform: scale(1.1); }

.live-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.live-score-team {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}
.live-score-team--right { flex-direction: row-reverse; }
.live-score-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted2);
    overflow: hidden;
    flex-shrink: 0;
}
.live-score-logo img { width: 24px; height: 24px; object-fit: contain; }
.live-score-name { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-scoreboard {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.live-score-num { font-size: 22px; font-weight: 900; letter-spacing: -1px; }
.live-score-sep { font-size: 18px; color: var(--muted); font-weight: 300; }

.live-stats-table {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.live-stats-head {
    display: grid;
    grid-template-columns: 1fr 80px 80px 1fr;
    align-items: center;
    padding: 7px 10px;
    background: var(--surface2);
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.live-stats-head span:last-child { text-align: right; }
.live-stats-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 1fr;
    align-items: center;
    padding: 8px 10px;
    background: var(--surface);
    gap: 4px;
}
.live-stats-row:nth-child(odd) { background: var(--bg); }
.live-stats-player {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-stats-player--right { flex-direction: row-reverse; text-align: right; }
.stat-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.stat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.live-stats-kda {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted2);
}
.live-stats-kda span {
    flex: 1;
    text-align: center;
    padding: 0 2px;
}
.live-stats-kda--right span { text-align: center; }

.live-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--border);
}
.footer-inner {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    border: 1px solid transparent;
    pointer-events: auto;
    cursor: default;
    animation: toastIn .3s cubic-bezier(.34,1.56,.64,1) forwards;
    max-width: 340px;
    line-height: 1.4;
}
.toast.toast--out { animation: toastOut .25s ease forwards; }
.toast--success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); color: #86efac; }
.toast--error   { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.toast--info    { background: rgba(34,90,235,.14);   border-color: rgba(34,90,235,.35);  color: #a5b4fc; }
.toast--warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); color: #fcd34d; }
.toast-icon { flex-shrink: 0; width: 18px; height: 18px; }
.toast-close {
    margin-left: auto;
    flex-shrink: 0;
    opacity: .5;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    line-height: 1;
    font-size: 16px;
    transition: opacity .15s;
}
.toast-close:hover { opacity: 1; }
@keyframes toastIn  { from { opacity:0; transform:translateY(12px) scale(.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(8px) scale(.95); } }

.games-section{
    margin: 12px 16px 4px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.games-section-header{display:flex;align-items:center;gap:8px;padding:28px 28px 14px}
.games-section-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.games-section-count{font-size:11px;font-weight:700;background:rgba(34,90,235,.12);color:var(--accent);border-radius:10px;padding:1px 7px}
.games-grid{display:flex;flex-wrap:wrap;gap:10px;padding:0 28px 28px}
.game-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 10px;border-radius:10px;background:var(--surface);border:1px solid var(--border);transition:border-color .2s,background .2s;cursor:pointer;min-width:72px;text-align:center}
.game-card:hover{border-color:var(--accent);background:rgba(34,90,235,.06)}
.game-card-icon{width:36px;height:36px;object-fit:contain}
.game-card-abbr{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:rgba(34,90,235,.12);font-size:11px;font-weight:800;color:var(--accent)}
.game-card-title{font-size:11px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80px}

.nav-msg-btn{text-decoration:none}
.nav-msg-count{position:absolute;top:4px;right:2px;min-width:16px;height:16px;border-radius:10px;background:var(--danger);color:#fff;font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 3px;pointer-events:none;border:2px solid var(--surface)}
.nav-notif-wrap{position:relative;display:flex;align-items:center}
.nav-notif-dot{position:absolute;top:4px;right:2px;min-width:16px;height:16px;border-radius:10px;background:var(--accent);color:#fff;font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 3px;pointer-events:none;border:2px solid var(--surface)}
.notif-dropdown{position:absolute;top:calc(100% + 10px);right:0;width:320px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.45);z-index:9999;opacity:0;pointer-events:none;transform:translateY(-6px) scale(.97);transition:opacity .15s,transform .15s;overflow:hidden}
.notif-dropdown--open{opacity:1;pointer-events:all;transform:translateY(0) scale(1)}
.notif-dropdown-head{padding:12px 16px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border-bottom:1px solid var(--border)}
.notif-dropdown-list{max-height:420px;overflow-y:auto;overscroll-behavior:contain}
.notif-empty{padding:24px 16px;text-align:center;font-size:13px;color:var(--muted)}
.notif-item{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);transition:background .15s;cursor:pointer;position:relative}
.notif-item:last-child{border-bottom:none}
.notif-item:hover{background:rgba(255,255,255,.04)}
a.notif-item{color:inherit;text-decoration:none}
.notif-item--unread::before{content:'';position:absolute;left:6px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:50%;background:var(--accent)}
.notif-item-img{flex-shrink:0;width:40px;height:40px;border-radius:8px;overflow:hidden;}
.notif-item-img img{width:100%;height:100%;object-fit:cover}
.notif-item-body{flex:1;min-width:0}
.notif-item-title{font-size:13px;font-weight:700;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notif-item-text{font-size:12px;color:var(--muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notif-item-btn{display:inline-block;margin-top:6px;font-size:11px;font-weight:700;color:var(--accent);background:rgba(34,90,235,.12);border-radius:6px;padding:3px 8px}

.notif-item-wrap{position:relative;display:flex;align-items:stretch;border-bottom:1px solid var(--border)}
.notif-item-wrap:last-child{border-bottom:none}
.notif-item-wrap .notif-item{flex:1;min-width:0;border-bottom:none}
.notif-item-wrap .notif-item:last-child{border-bottom:none}
.notif-dismiss-btn{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;padding:0 4px;background:none;border:none;color:var(--muted);cursor:pointer;opacity:0;transition:opacity .15s,color .15s;font-size:0}
.notif-item-wrap:hover .notif-dismiss-btn{opacity:1}
.notif-dismiss-btn:hover{color:var(--danger,#f87171)}

.twitch-embed-wrap{position:relative;margin-bottom:0}
.twitch-embed-inner{position:relative;border-radius:8px;background:#000;line-height:0}
.twitch-embed-inner iframe{display:block;width:100%;border:none}
.twitch-ui-overlay{
    position:absolute;
    top:0;left:0;right:0;
    height:180px;
    z-index:10;
    background:transparent;
    pointer-events:none;
}
.twitch-meta{padding:10px 12px;background:rgba(145,70,255,.06);border-top:1px solid rgba(145,70,255,.12)}
.twitch-meta-loader{display:flex;align-items:center;gap:8px}
.twitch-meta-info{display:flex;flex-direction:column;gap:4px}
.twitch-live-badge{display:inline-block;font-size:10px;font-weight:800;background:#9146ff;color:#fff;border-radius:4px;padding:2px 7px;text-transform:uppercase;letter-spacing:.04em;width:fit-content}
.twitch-offline-badge{display:inline-block;font-size:10px;font-weight:700;background:var(--surface);color:var(--muted);border-radius:4px;padding:2px 7px;width:fit-content}
.twitch-viewers{font-size:12px;color:var(--muted)}
.twitch-title{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.twitch-game{font-size:11px;color:#9146ff}

.content-wrap--full {
    grid-template-columns: 1fr;
}
.game-page {
    display: flex;
    flex-direction: column;
}
.game-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.game-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.game-hero-blur-img {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-image: var(--bg-img);
    filter: blur(40px) brightness(.4) saturate(1.4);
    transform: scale(1.1);
}
.game-hero-real-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-image: var(--bg-img);
}
.game-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1535 0%, #07060E 45%, #180828 100%);
}
.game-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,6,14,.98) 0%, rgba(7,6,14,.6) 50%, rgba(7,6,14,.2) 100%);
}
.game-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 32px 28px;
    width: 100%;
}
.game-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.game-hero-icon img { width: 54px; height: 54px; object-fit: contain; }
.game-hero-icon span { font-size: 22px; font-weight: 900; color: var(--muted2); }
.game-hero-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.game-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: #fff;
    margin: 0;
}
.game-hero-desc {
    font-size: 13px;
    color: var(--muted2);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}
.game-hero-stats {
    display: flex;
    gap: 20px;
}
.game-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.game-hero-stat-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.game-hero-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.game-page-section {
    border-top: 1px solid var(--border);
}
.game-section-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 20px 12px;
    font-size: 13px;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.game-section-header--space-between { justify-content: space-between; }
.game-section-header-inner { display: flex; align-items: center; gap: 9px; }
.game-section-count { font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); padding: 2px 8px; border-radius: 10px; }
.gm-cards-grid--bordered { padding-top: 0; border-top: 1px solid var(--border); }
.gm-empty-state { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.game-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
}
.game-team-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg);
    transition: background .15s;
}
.game-team-card:hover { background: rgba(255,255,255,.025); }
.game-team-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted2);
    overflow: hidden;
    flex-shrink: 0;
}
.game-team-logo img { width: 28px; height: 28px; object-fit: contain; }
.game-team-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.game-team-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-team-country {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

@keyframes livepulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.85); }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-top: 1px solid var(--border);
    z-index: 400;
    align-items: stretch;
    padding: 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    transition: color .15s;
    position: relative;
    padding: 8px 4px 10px;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.mobile-bottom-nav-item.active {
    color: var(--primary);
}
.mobile-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}
.mobile-bottom-nav-item svg {
    flex-shrink: 0;
}
.mobile-bottom-notif-dot {
    position: absolute;
    top: 6px;
    right: calc(50% - 14px);
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    border: 1.5px solid var(--surface);
}

.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 500;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.mobile-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 75vh;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    z-index: 600;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}
.mobile-drawer.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}
.mobile-drawer-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
.mobile-drawer-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.mobile-drawer-close {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted2);
    transition: background .15s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.mobile-drawer-close:hover { background: var(--surface3); }
.mobile-drawer-games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
}
.mobile-drawer-games::-webkit-scrollbar { display: none; }
.drawer-empty-msg { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }
.mobile-drawer-notif {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    flex: 1;
}
.mobile-drawer-notif::-webkit-scrollbar { display: none; }
.mobile-drawer-notif .notif-item {
    padding: 12px 16px;
}
.mobile-drawer-notif .notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.mobile-drawer-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 8px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted2);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    transition: border-color .2s, background .2s, color .2s;
    text-decoration: none;
}
.mobile-drawer-game:hover,
.mobile-drawer-game.active {
    border-color: var(--primary);
    background: rgba(34,90,235,.08);
    color: var(--text);
}
.mobile-drawer-game img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}
.mobile-drawer-game-abbr {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: var(--muted2);
}

.section {
    border-top: none;
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 4px;
}
.section-inner{padding:28px 28px 32px}
.section-header{display:flex;align-items:center;gap:8px;margin-bottom:18px}
.section-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.section-count{font-size:11px;font-weight:700;background:rgba(34,90,235,.12);color:var(--accent);border-radius:10px;padding:1px 7px}
.section-sep{flex:1}
.section-link{font-size:12px;font-weight:700;color:var(--accent);transition:opacity .15s}
.section-link:hover{opacity:.75}

.trn-front-section{}
.trn-front-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.trn-front-card{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:12px;background:var(--surface);border:1px solid var(--border);transition:border-color .2s,transform .2s;cursor:pointer}
.trn-front-card:hover{border-color:var(--accent);transform:translateY(-2px)}
.trn-front-card-top{display:flex;align-items:center;justify-content:space-between}
.trn-front-logo{width:36px;height:36px;border-radius:9px;background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--muted);overflow:hidden;flex-shrink:0}
.trn-front-logo img{width:24px;height:24px;object-fit:contain}
.trn-front-logo svg{width:18px;height:18px}
.trn-front-badge{font-size:10px;font-weight:800;padding:2px 8px;border-radius:10px;white-space:nowrap}
.trn-front-name{font-size:13px;font-weight:800;line-height:1.3}
.trn-front-game{font-size:11px;color:var(--accent);font-weight:700}
.trn-front-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:2px}
.trn-front-prize,.trn-front-teams,.trn-front-date{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);font-weight:600}
.trn-front-prize svg,.trn-front-teams svg,.trn-front-date svg{stroke:var(--muted)}

.front-teams-grid{display:flex;flex-direction:column;gap:1px;background:var(--border);border-radius:10px;overflow:hidden;border:1px solid var(--border)}
.front-team-card{display:flex;align-items:center;gap:12px;padding:11px 14px;background:var(--bg);transition:background .15s}
.front-team-card:hover{background:rgba(255,255,255,.025)}
.front-team-logo{width:38px;height:38px;border-radius:9px;background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--muted2);overflow:hidden;flex-shrink:0}
.front-team-logo img{width:26px;height:26px;object-fit:contain}
.front-team-info{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.front-team-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.front-team-game{font-size:11px;color:var(--accent);font-weight:600}
.front-team-country{font-size:11px;color:var(--muted);font-weight:600;flex-shrink:0}

.panel-players{border-top:1px solid var(--border);padding-top:14px}
.panel-players-header{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.panel-players-grid{display:flex;flex-direction:column;gap:2px}
.panel-player{display:flex;align-items:center;gap:10px;padding:7px 6px;border-radius:8px;transition:background .15s}
.panel-player:hover{background:var(--surface2)}
.panel-player-av{width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,var(--primary),var(--accent));display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;overflow:hidden;flex-shrink:0}
.panel-player-av img{width:100%;height:100%;object-fit:cover}
.panel-player-info{display:flex;flex-direction:column;gap:1px;min-width:0}
.panel-player-nick{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel-player-team{font-size:10px;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.trn-page{display:flex;flex-direction:column}
.trn-page-hero{position:relative;min-height:240px;display:flex;align-items:flex-end;overflow:hidden}
.trn-page-hero-bg{position:absolute;inset:0;z-index:0}
.trn-page-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(7,6,14,1) 0%,rgba(7,6,14,.7) 50%,rgba(7,6,14,.3) 100%)}
.trn-page-hero-content{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:32px 28px;width:100%;flex-wrap:wrap}
.trn-page-hero-left{display:flex;align-items:flex-end;gap:20px;flex:1;min-width:0}
.trn-page-icon{width:80px;height:80px;border-radius:16px;background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;box-shadow:0 8px 32px rgba(0,0,0,.5)}
.trn-page-icon img{width:54px;height:54px;object-fit:contain}
.trn-page-icon svg{width:36px;height:36px;stroke:var(--muted)}
.trn-page-meta{display:flex;flex-direction:column;gap:10px;min-width:0}
.trn-page-breadcrumb{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);font-weight:600}
.trn-page-breadcrumb a{color:var(--muted);transition:color .15s}.trn-page-breadcrumb a:hover{color:var(--text)}
.trn-page-title{font-size:clamp(24px,4vw,42px);font-weight:900;letter-spacing:-1px;line-height:1;color:#fff;margin:0}
.trn-page-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.trn-page-status-badge{display:inline-flex;align-items:center;font-size:11px;font-weight:800;padding:3px 10px;border-radius:20px;white-space:nowrap}
.trn-page-tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:var(--muted);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);padding:3px 9px;border-radius:20px}
.trn-page-desc{font-size:13px;color:var(--muted2);line-height:1.6;max-width:500px;margin:0}
.trn-page-hero-stats{display:flex;gap:24px;flex-wrap:wrap;align-items:flex-end;flex-shrink:0}
.trn-page-stat{display:flex;flex-direction:column;gap:3px;text-align:right}
.trn-page-stat-val{font-size:22px;font-weight:900;color:#fff;line-height:1}
.trn-page-stat-label{font-size:10px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}

.trn-page-strip{display:flex;align-items:center;flex-wrap:wrap;gap:0;border-bottom:1px solid var(--border);background:var(--surface)}
.trn-page-strip-item{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--muted);padding:10px 20px;border-right:1px solid var(--border)}
.trn-page-strip-item:last-child{border-right:none}

.trn-page-body{display:grid;grid-template-columns:1fr 300px;gap:0;align-items:flex-start}
.trn-page-main{min-width:0;border-right:1px solid var(--border)}
.trn-page-aside{padding:16px;display:flex;flex-direction:column;gap:14px;position:sticky;top:var(--nav-h)}

.trn-page-section{border-bottom:1px solid var(--border)}
.trn-page-section-header{display:flex;align-items:center;gap:9px;padding:14px 20px 10px;font-size:13px;font-weight:800;border-bottom:1px solid var(--border)}
.trn-page-rules{padding:18px 20px;font-size:13px;color:var(--muted2);line-height:1.8}

.trn-page-reg-cta{background:rgba(34,90,235,.08);border:1px solid rgba(34,90,235,.25);border-radius:12px;padding:16px;text-align:center;display:flex;flex-direction:column;gap:6px}
.trn-page-reg-cta-title{font-size:13px;font-weight:800;color:var(--text)}
.trn-page-reg-cta-slots{font-size:12px;color:var(--muted2)}
.trn-page-reg-cta-until{font-size:11px;color:var(--muted)}
.trn-page-reg-cta-full{font-size:12px;color:var(--danger)}

.trn-page-aside-block{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px}
.trn-page-aside-title{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.trn-page-aside-title span:last-child{margin-left:auto;font-size:13px;font-weight:700;color:var(--text);text-transform:none;letter-spacing:0}
.trn-page-slots-bar{height:6px;background:var(--border);border-radius:3px;overflow:hidden}

.trn-page-participants-list{display:flex;flex-direction:column;gap:2px}
.trn-page-participant{display:flex;align-items:center;gap:9px;padding:6px;border-radius:8px;transition:background .15s}
.trn-page-participant:hover{background:var(--surface2)}
.trn-page-part-av{width:30px;height:30px;border-radius:7px;background:linear-gradient(135deg,var(--primary),var(--accent));display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#fff;overflow:hidden;flex-shrink:0}
.trn-page-part-av img{width:100%;height:100%;object-fit:cover}
.trn-page-part-info{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.trn-page-part-name{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trn-page-part-sub{font-size:10px;color:var(--muted);font-weight:600}
.trn-page-part-seed{font-size:10px;font-weight:800;color:var(--muted);background:var(--surface2);padding:2px 6px;border-radius:5px;flex-shrink:0}

.trn-page-date-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:4px 0;border-bottom:1px solid var(--border)}
.trn-page-date-row:last-child{border-bottom:none}
.trn-page-date-row span:first-child{color:var(--muted);font-weight:600}
.trn-page-date-row span:last-child{font-weight:700}

.game-trn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1px;background:var(--border)}
.game-trn-card{display:flex;flex-direction:column;gap:8px;padding:16px 18px;background:var(--bg);transition:background .15s;cursor:pointer}
.game-trn-card:hover{background:rgba(255,255,255,.025)}
.game-trn-card-top{display:flex;align-items:center;justify-content:space-between}
.game-trn-icon{width:36px;height:36px;border-radius:9px;background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--muted)}
.game-trn-icon img{width:24px;height:24px;object-fit:contain}
.game-trn-icon svg{width:16px;height:16px}
.game-trn-badge{font-size:10px;font-weight:800;padding:2px 8px;border-radius:10px;color:var(--bdg-col,var(--muted));background:color-mix(in srgb,var(--bdg-col,var(--muted)) 12%,transparent)}
.game-trn-name{font-size:13px;font-weight:800;line-height:1.3}
.game-trn-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.game-trn-meta span{font-size:11px;color:var(--muted);font-weight:600}

@media (max-width: 1100px) {
    .content-wrap { grid-template-columns: 1fr; }
    .content-right { display: none; }
}

@media (max-width: 900px) {
    :root {
        --nav-h: 52px;
    }
    .site-footer {
        padding-bottom: 60px;
    }
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: none;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .mobile-drawer-overlay {
        display: block;
    }
    .content-wrap {
        padding-bottom: 60px;
    }
    .toast-container {
        bottom: 76px;
        right: 12px;
        left: 12px;
    }
    .toast {
        max-width: 100%;
    }
    .nav-notif-wrap {
        display: none;
    }
    .nav-actions .btn-ghost {
        display: none;
    }
    .nav-btn-register {
        display: none;
    }
    .nav-inner {
        padding: 0 12px;
        gap: 10px;
    }
    .nav-sidebar-toggle { display: flex; }
    .deposit-text { display: none; }
    .user-chip { display: none !important; }
    .user-dropdown { display: none !important; }
    .nav-msg-btn { display: none !important; }
    .notif-dropdown {
        position: fixed;
        top: 52px;
        left: 12px;
        right: 12px;
        width: auto;
    }
    .user-dropdown {
        position: fixed;
        top: 52px;
        right: 12px;
        left: 12px;
        min-width: auto;
    }
}

@media (max-width: 900px) {
    .trn-page-body { grid-template-columns: 1fr; }
    .trn-page-main { border-right: none; }
    .trn-page-aside { position:static; }
    .trn-page-hero-content { flex-direction: column; align-items: flex-start; gap: 16px; }
    .trn-page-hero-stats { flex-direction: row; }
    .trn-page-stat { text-align: left; }
    .trn-front-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero-banner { padding: 20px 16px; }
    .hero-slide  { padding: 20px 16px; }
    .hero-title  { font-size: 28px; }
    .matches-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .match-row { padding: 10px 14px; grid-template-columns: 72px 1fr; gap: 8px; }
    .match-team-name { font-size: 12px; }
    .match-row-odds { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .nav-actions .btn-deposit {
        padding: 6px 10px;
        font-size: 12px;
    }
    .notif-dropdown {
        width: calc(100vw - 24px);
        right: -50px;
    }
    .user-chip-info { display: none; }
    .chip-arrow { display: none; }
    .user-chip { padding: 5px; }
    .game-hero-content { padding: 20px 16px; gap: 14px; }
    .game-hero-icon { width: 56px; height: 56px; border-radius: 12px; }
    .game-hero-icon img { width: 38px; height: 38px; }
    .game-hero-title { font-size: 24px; }
    .game-hero-stats { gap: 14px; }
    .game-hero-stat-num { font-size: 16px; }
    .gm-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-quick-stats { grid-template-columns: repeat(2, 1fr); }
    .pd-analytics-grid { grid-template-columns: 1fr; }
    .pd-upcoming-grid { grid-template-columns: 1fr 1fr; }
}

.gv-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}
.gv-btn {
    width: 30px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .15s, color .15s;
}
.gv-btn:hover { color: var(--text); background: var(--surface3, rgba(255,255,255,.06)); }
.gv-btn--active { background: var(--primary); color: #fff; }
.gv-btn--active:hover { background: var(--primary); color: #fff; }

.gm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 12px;
}
.gm-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transition: transform .2s, border-color .2s;
    text-decoration: none;
    color: inherit;
}
.gm-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.15); }
.gm-card--live { border-color: rgba(239,68,68,.35); }
.gm-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.gm-card-bg--match {
    background: linear-gradient(135deg, #0d1b3e 0%, #07060E 60%, #150a26 100%);
}
.gm-card-bg--image    { background-image: var(--bg-img); background-size: cover; background-position: center; }
.gm-card-bg--gradient { background: linear-gradient(135deg, var(--grad-from), var(--grad-to)); }
.gm-card-bg--solid    { background: var(--bg-color); }
.gm-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
    gap: 8px;
}

.gm-card--ad .gm-card-bg { filter: brightness(.65); }
.gm-card--ad:hover .gm-card-bg { filter: brightness(.75); }
.gm-ad-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
    width: fit-content;
    color: var(--bdg-col, var(--muted));
    background: color-mix(in srgb, var(--bdg-col, var(--muted)) 13%, transparent);
}
.gm-ad-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.15;
    color: #fff;
    margin-top: auto;
}
.gm-ad-sub {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}
.gm-ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 7px;
    margin-top: 4px;
    width: fit-content;
    backdrop-filter: blur(8px);
    color: var(--btn-col, var(--primary));
    background: color-mix(in srgb, var(--btn-col, var(--primary)) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--btn-col, var(--primary)) 33%, transparent);
}

.gm-card-body--match {
    justify-content: space-between;
    gap: 10px;
}
.gm-mc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gm-mc-format {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .5px;
    background: rgba(255,255,255,.06);
    padding: 2px 7px;
    border-radius: 5px;
}
.gm-mc-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: var(--live);
    letter-spacing: .5px;
}
.gm-mc-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted2);
}
.gm-mc-teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}
.gm-mc-team {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.gm-mc-team--r { flex-direction: row-reverse; }
.gm-mc-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--muted2);
    overflow: hidden;
    flex-shrink: 0;
}
.gm-mc-logo img { width: 22px; height: 22px; object-fit: contain; }
.gm-mc-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.gm-mc-team--r .gm-mc-name { text-align: right; }
.gm-mc-vs {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 1px;
}
.gm-mc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.gm-mc-meta span {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    background: rgba(255,255,255,.04);
    padding: 2px 6px;
    border-radius: 4px;
}

.player-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - var(--nav-h));
    padding-top: var(--nav-h);
}
.player-sidebar {
    border-right: 1px solid var(--border);
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
}
.player-sidebar::-webkit-scrollbar { display: none; }
.player-sidebar-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px 20px;
    border-bottom: 1px solid var(--border);
}
.player-ava-img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--border);
}
.player-ava-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}
.player-sidebar-name {
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    margin-top: 4px;
}
.player-sidebar-nick {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}
.player-sidebar-game {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    background: rgba(34,90,235,.12);
    padding: 2px 10px;
    border-radius: 10px;
}
.player-sidenav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 10px;
}
.player-sidenav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted2);
    transition: background .15s, color .15s;
}
.player-sidenav-item:hover { background: var(--surface2); color: var(--text); }
.player-sidenav-item.active { background: rgba(34,90,235,.15); color: var(--primary); }
.player-main {
    min-width: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.pd-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.5px;
    margin: 0;
}
.pd-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}
.pd-balance {
    text-align: right;
    flex-shrink: 0;
}
.pd-balance-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pd-balance-val {
    font-size: 22px;
    font-weight: 900;
    color: #4ade80;
    letter-spacing: -.5px;
}

.pd-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.pd-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.pd-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pd-stat-icon--blue   { background: rgba(34,90,235,.15);  color: #60a5fa; }
.pd-stat-icon--green  { background: rgba(74,222,128,.12); color: #4ade80; }
.pd-stat-icon--purple { background: rgba(167,139,250,.12); color: #a78bfa; }
.pd-stat-icon--orange { background: rgba(251,146,60,.12);  color: #fb923c; }
.pd-stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-stat-val {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-stat-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.pd-stat-sub   { font-size: 10px; color: var(--muted); font-weight: 700; }
.pd-stat-sub--gold { color: #f59e0b; }

.pd-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.pd-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.pd-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}
.pd-match-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--bg);
    transition: background .15s;
}
.pd-match-card:hover { background: rgba(255,255,255,.025); }
.pd-match-card--live { background: rgba(239,68,68,.04); }
.pd-mc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pd-mc-format {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface2);
    padding: 2px 6px;
    border-radius: 4px;
}
.pd-mc-live {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: var(--live);
}
.pd-mc-time { font-size: 11px; font-weight: 700; color: var(--muted2); }
.pd-mc-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}
.pd-mc-team { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-mc-vs { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.pd-mc-trn { font-size: 10px; color: var(--muted); font-weight: 600; }

.pd-recent-table {
    display: flex;
    flex-direction: column;
}
.pd-rt-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 60px 36px;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    transition: background .15s;
}
.pd-rt-row:last-child { border-bottom: none; }
.pd-rt-row:hover { background: rgba(255,255,255,.025); }
.pd-rt-date   { color: var(--muted); font-weight: 600; }
.pd-rt-opponent { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-rt-trn    { color: var(--muted2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-rt-score  { font-weight: 800; text-align: center; }
.pd-rt-result { font-size: 11px; font-weight: 800; text-align: center; padding: 3px 6px; border-radius: 5px; }
.pd-rt-win  { background: rgba(74,222,128,.12); color: #4ade80; }
.pd-rt-loss { background: rgba(248,113,113,.12); color: #f87171; }

.pd-analytics-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1px;
    background: var(--border);
}
.pd-analytics-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg);
}
.pd-analytics-card--wide { align-items: stretch; }
.pd-analytics-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    align-self: flex-start;
}
.pd-winrate-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-winrate-pct {
    position: absolute;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.5px;
}
.pd-winrate-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}
.pd-stats-rows { display: flex; flex-direction: column; gap: 0; }
.pd-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.pd-stats-row:last-child { border-bottom: none; }
.pd-stats-row span { color: var(--muted); font-weight: 600; }
.pd-stats-row strong { font-weight: 800; }

.pd-trn-list {
    display: flex;
    flex-direction: column;
}
.pd-trn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}
.pd-trn-item:last-child { border-bottom: none; }
.pd-trn-item:hover { background: rgba(255,255,255,.025); }
.pd-trn-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--muted);
}
.pd-trn-icon img { width: 24px; height: 24px; object-fit: contain; }
.pd-trn-icon svg { width: 16px; height: 16px; }
.pd-trn-info { flex: 1; min-width: 0; }
.pd-trn-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-trn-prize { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.pd-trn-badge { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }

.pd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}
.pd-empty-title { font-size: 16px; font-weight: 800; color: var(--text); }
.pd-empty-sub { font-size: 13px; max-width: 400px; line-height: 1.6; }

@media (max-width: 900px) {
    .player-layout { grid-template-columns: 1fr; }
    .player-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
    .player-main { padding: 16px; }
    .pd-quick-stats { grid-template-columns: 1fr 1fr; }
    .pd-upcoming-grid { grid-template-columns: 1fr 1fr; }
    .pd-analytics-grid { grid-template-columns: 1fr; }
}

.pd-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 4px;
}
.pd-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(34,90,235,.18), transparent),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(120,60,220,.12), transparent);
    pointer-events: none;
}
.pd-hero-grid {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image:
        linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.pd-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px;
    flex-wrap: wrap;
}
.pd-hero-ava {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    position: relative;
    flex-shrink: 0;
}
.pd-hero-ava img,
.pd-hero-ava span {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.pd-hero-ava-ring {
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    z-index: -1;
    opacity: .5;
}
.pd-hero-online {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid var(--surface);
}
.pd-hero-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-hero-greeting {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
}
.pd-hero-username {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    margin: 0;
}
.pd-hero-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pd-hbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}
.pd-hbadge--nick    { background: rgba(255,255,255,.07); color: var(--muted2); border: 1px solid var(--border); }
.pd-hbadge--game    { background: rgba(34,90,235,.14); color: #60a5fa; }
.pd-hbadge--captain { background: rgba(245,158,11,.12); color: #fbbf24; }
.pd-hbadge--country { background: rgba(255,255,255,.07); color: var(--muted2); }
.pd-hero-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}
.pd-hero-bal-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
}
.pd-hero-bal-val {
    font-size: 28px;
    font-weight: 900;
    color: #4ade80;
    letter-spacing: -1px;
    line-height: 1;
}
.pd-hero-deposit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
}
.pd-hero-deposit-btn:hover { opacity: .85; transform: translateY(-1px); }

.pd-qs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.pd-qs-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color .2s;
}
.pd-qs-card:hover { border-color: rgba(255,255,255,.15); }
.pd-qs-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pd-qs-body { flex: 1; min-width: 0; }
.pd-qs-num {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-qs-num--sm { font-size: 15px; }
.pd-qs-lbl { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.pd-qs-chip {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}
.pd-qs-chip--green  { background: rgba(74,222,128,.12);  color: #4ade80; }
.pd-qs-chip--red    { background: rgba(248,113,113,.12); color: #f87171; }
.pd-qs-chip--purple { background: rgba(167,139,250,.12); color: #a78bfa; }
.pd-qs-chip--orange { background: rgba(251,146,60,.12);  color: #fb923c; }

.pd-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.pd-block-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.018);
}
.pd-block-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pd-block-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted2);
    flex: 1;
}
.pd-block-cnt {
    font-size: 11px;
    font-weight: 700;
    background: var(--surface2);
    color: var(--muted);
    padding: 2px 8px;
    border-radius: 8px;
}
.pd-block-captain {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(245,158,11,.1);
    padding: 2px 8px;
    border-radius: 8px;
}

.pd-upc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}
.pd-upc-card {
    position: relative;
    background: var(--bg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background .15s;
    overflow: hidden;
}
.pd-upc-card:hover { background: rgba(255,255,255,.025); }
.pd-upc-card--live { background: rgba(239,68,68,.04); }
.pd-upc-liveline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--live);
    animation: livepulse 1.4s infinite;
}
.pd-upc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.pd-upc-trn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-upc-live {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: var(--live);
    flex-shrink: 0;
}
.pd-upc-time { font-size: 10px; font-weight: 700; color: var(--muted2); flex-shrink: 0; }
.pd-upc-teams {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-upc-team {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}
.pd-upc-team--r { flex-direction: row-reverse; }
.pd-upc-logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: var(--muted2);
    overflow: hidden;
    flex-shrink: 0;
}
.pd-upc-logo img { width: 20px; height: 20px; object-fit: contain; }
.pd-upc-logo--mine { border-color: var(--primary); }
.pd-upc-tname {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.pd-upc-tname--r { text-align: right; }
.pd-upc-tname--hl { color: var(--primary); }
.pd-upc-vs-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.pd-upc-fmt { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.pd-upc-vs  { font-size: 10px; font-weight: 800; color: var(--muted); }
.pd-upc-stage {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    background: rgba(255,255,255,.04);
    padding: 2px 7px;
    border-radius: 4px;
    align-self: flex-start;
}

.pd-matches-table { display: flex; flex-direction: column; }
.pd-mt-head {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 56px 36px;
    gap: 10px;
    padding: 9px 16px;
    background: rgba(255,255,255,.025);
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
}
.pd-mt-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 56px 36px;
    gap: 10px;
    padding: 10px 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    font-size: 12px;
}
.pd-mt-row:last-child { border-bottom: none; }
.pd-mt-row:hover { background: rgba(255,255,255,.025); }
.pd-mt-date  { color: var(--muted); font-weight: 600; font-size: 11px; }
.pd-mt-opp {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 700;
}
.pd-mt-opp-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: var(--muted2);
    overflow: hidden;
    flex-shrink: 0;
}
.pd-mt-opp-logo img { width: 16px; height: 16px; object-fit: contain; }
.pd-mt-opp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-mt-trn   { font-size: 11px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-mt-score { font-weight: 800; text-align: center; }
.pd-mt-kda   { text-align: center; font-weight: 700; }
.pd-mt-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: .3px;
}
.pd-mt-badge--win  { background: rgba(74,222,128,.12);  color: #4ade80; }
.pd-mt-badge--loss { background: rgba(248,113,113,.12); color: #f87171; }

.pd-analytics-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
}
.pd-an-card {
    background: var(--bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pd-an-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .7px;
}

.pd-wr-wrap { display: flex; align-items: center; gap: 16px; }
.pd-wr-ring { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-wr-pct  { position: absolute; font-size: 14px; font-weight: 900; letter-spacing: -.5px; }
.pd-wr-stats { display: flex; flex-direction: column; gap: 0; flex: 1; }
.pd-wr-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}
.pd-wr-row:last-child { border-bottom: none; }
.pd-wr-row span:nth-child(2) { flex: 1; color: var(--muted2); font-weight: 600; }
.pd-wr-row b { font-weight: 800; }
.pd-wr-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.pd-an-card--kda {}
.pd-kda-nums { display: flex; align-items: flex-end; gap: 6px; }
.pd-kda-num { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.pd-kda-val { font-size: 22px; font-weight: 900; letter-spacing: -.5px; line-height: 1; }
.pd-kda-lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.pd-kda-sep { font-size: 20px; font-weight: 300; color: var(--border); padding-bottom: 20px; }
.pd-kda-kd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}
.pd-kda-totals { display: flex; flex-direction: column; gap: 0; }
.pd-kda-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}
.pd-kda-total:last-child { border-bottom: none; }
.pd-kda-total span { color: var(--muted); font-weight: 600; }
.pd-kda-total b { font-weight: 800; }

.pd-profile-rows { display: flex; flex-direction: column; gap: 0; }
.pd-pr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}
.pd-pr-row:last-child { border-bottom: none; }
.pd-pr-row span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-weight: 600;
}
.pd-pr-row b, .pd-pr-row strong { font-weight: 800; }
.pd-pr-row code {
    font-family: monospace;
    font-size: 11px;
    background: var(--surface2);
    padding: 2px 7px;
    border-radius: 5px;
    color: var(--muted2);
}

.pd-trn-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
}
.pd-trn-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg);
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}
.pd-trn-tile:hover { background: rgba(255,255,255,.03); }
.pd-trn-tile--live { background: rgba(74,222,128,.03); }
.pd-trn-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pd-trn-tile-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
    flex-shrink: 0;
}
.pd-trn-tile-ico img { width: 22px; height: 22px; object-fit: contain; }
.pd-trn-tile-ico svg { width: 14px; height: 14px; }
.pd-trn-tile-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}
.pd-trn-tile-name { font-size: 13px; font-weight: 800; line-height: 1.3; }
.pd-trn-tile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-trn-tile-meta span { font-size: 11px; color: var(--muted); font-weight: 600; }
.pd-trn-tile-prize { color: #4ade80 !important; font-weight: 700 !important; }

.pd-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
}
.pd-roster-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg);
    transition: background .15s;
}
.pd-roster-card:hover { background: rgba(255,255,255,.025); }
.pd-roster-card--self { background: rgba(34,90,235,.05); }
.pd-roster-card--self:hover { background: rgba(34,90,235,.09); }
.pd-roster-ava {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    position: relative;
    flex-shrink: 0;
}
.pd-roster-ava img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
}
.pd-roster-ava span {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}
.pd-roster-cap-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg);
}
.pd-roster-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-roster-nick {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-roster-you {
    font-size: 9px;
    font-weight: 800;
    background: rgba(34,90,235,.2);
    color: var(--primary);
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}
.pd-roster-role    { font-size: 10px; color: var(--muted2); font-weight: 600; }
.pd-roster-country { font-size: 10px; color: var(--muted); font-weight: 600; }

.pd-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 80px 24px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.pd-empty-ico { opacity: .3; }
.pd-empty-title { font-size: 17px; font-weight: 900; color: var(--text); }
.pd-empty-text  { font-size: 13px; line-height: 1.7; max-width: 380px; }

.pd-cta-team {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid rgba(34,90,235,.35);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s;
}
.pd-cta-team:hover { border-color: rgba(34,90,235,.6); }
.pd-cta-team-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 100% at 0% 50%, rgba(34,90,235,.12), transparent),
        radial-gradient(ellipse 40% 80% at 100% 50%, rgba(120,60,220,.08), transparent);
    pointer-events: none;
}
.pd-cta-team-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(34,90,235,.15);
    border: 1px solid rgba(34,90,235,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.pd-cta-team-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.pd-cta-team-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.pd-cta-team-sub {
    font-size: 12px;
    color: var(--muted2);
    font-weight: 600;
    line-height: 1.5;
}
.pd-cta-team-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--primary);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: opacity .2s, transform .15s;
}
.pd-cta-team-btn:hover { opacity: .85; transform: translateY(-1px); }

.pd-success-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(74,222,128,.1);
    border: 1px solid rgba(74,222,128,.3);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #4ade80;
}

.player-sidenav-item--cta {
    margin-top: 8px;
    background: rgba(34,90,235,.08);
    border: 1px solid rgba(34,90,235,.2);
    color: #60a5fa;
}
.player-sidenav-item--cta:hover {
    background: rgba(34,90,235,.18);
    border-color: rgba(34,90,235,.4);
    color: var(--text);
}
.player-sidenav-item--cta.active {
    background: rgba(34,90,235,.2);
    border-color: rgba(34,90,235,.45);
    color: var(--primary);
}

.ctf-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
}
.ctf-row { display: flex; gap: 16px; }
.ctf-row--2 > .ctf-field { flex: 1; min-width: 0; }
.ctf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ctf-field--required .ctf-label::after {
    content: ' *';
    color: #f87171;
}
.ctf-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ctf-input,
.ctf-select,
.ctf-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    transition: border-color .2s;
    outline: none;
}
.ctf-input:focus,
.ctf-select:focus,
.ctf-textarea:focus { border-color: var(--primary); }
.ctf-select { cursor: pointer; }
.ctf-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.ctf-hint { font-size: 11px; color: var(--muted); font-weight: 600; }
.ctf-logo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface2);
    border: 1px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s;
}
.ctf-logo-upload:hover { border-color: var(--primary); }
.ctf-logo-preview {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--surface3, #332f42);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
    overflow: hidden;
}
.ctf-logo-info { display: flex; flex-direction: column; gap: 4px; }
.ctf-logo-title { font-size: 13px; font-weight: 700; }
.ctf-logo-sub   { font-size: 11px; color: var(--muted); font-weight: 600; }
.ctf-logo-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted2);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.ctf-logo-btn:hover { border-color: var(--primary); color: var(--text); }
.ctf-error {
    padding: 10px 14px;
    background: rgba(248,113,113,.1);
    border: 1px solid rgba(248,113,113,.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #f87171;
}
.ctf-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}
.ctf-cancel-btn {
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted2);
    transition: color .15s;
}
.ctf-cancel-btn:hover { color: var(--text); }
.ctf-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity .2s, transform .15s;
}
.ctf-submit-btn:hover:not(:disabled) { opacity: .85; transform: translateY(-1px); }
.ctf-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ctf-notice {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: var(--muted2);
    line-height: 1.6;
}
.ctf-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted2);
    width: fit-content;
    transition: border-color .15s, color .15s;
}
.ctf-back-btn:hover { border-color: var(--primary); color: var(--text); }

@media (max-width: 600px) {
    .pd-cta-team { flex-direction: column; align-items: flex-start; }
    .pd-cta-team-btn { width: 100%; justify-content: center; }
    .ctf-row { flex-direction: column; }
}

@media (max-width: 900px) {
    .pd-qs-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-upc-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-analytics-row { grid-template-columns: 1fr; }
    .pd-hero-inner { padding: 20px 16px; }
    .pd-hero-balance { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 600px) {
    .pd-qs-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-upc-grid { grid-template-columns: 1fr; }
    .pd-mt-head, .pd-mt-row { grid-template-columns: 36px 1fr 56px 36px; }
    .pd-mt-trn { display: none; }
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.stream-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    text-decoration: none;
    color: inherit;
}
.stream-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.stream-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--surface2);
    overflow: hidden;
}
.stream-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stream-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, #0d1b3e, #07060E, #150a26);
    color: var(--muted);
}
.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 800;
    background: var(--live);
    color: #fff;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.stream-info { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.stream-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--muted2);
    font-weight: 600;
    flex-wrap: wrap;
}
.stream-meta .viewers { color: var(--live); font-weight: 700; }

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color .2s, transform .2s;
}
.player-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.player-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-nick { font-size: 13px; font-weight: 800; }
.player-real { font-size: 11px; color: var(--muted2); font-weight: 600; }
.player-team { font-size: 11px; color: var(--accent); font-weight: 700; }
.player-role {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

@media (max-width: 600px) {
    .streams-grid { grid-template-columns: 1fr 1fr; }
    .players-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
    .trn-front-grid { grid-template-columns: repeat(2, 1fr); }
    .gm-cards-grid  { grid-template-columns: repeat(2, 1fr); }
    .trn-page-body  { grid-template-columns: 1fr; }
    .trn-page-main  { border-right: none; }
    .trn-page-aside { position: static; border-top: 1px solid var(--border); padding: 16px; }
}

@media (max-width: 900px) {
    :root { --sidebar-w: 0px; --nav-h: 52px; }
    .sidebar, .sidebar--expanded { display: none !important; }
    .site-nav  { left: 0; }
    .site-footer { margin-left: 0; padding-bottom: 68px; }
    .layout-main { margin-left: 0 !important; }
    .nav-logo { opacity: 1 !important; max-width: 200px !important; pointer-events: auto !important; }
    .nav-links { display: none; }
    .nav-hamburger { display: none; }
    .mobile-bottom-nav { display: flex; }
    .mobile-drawer-overlay { display: block; }
    .content-wrap { padding-bottom: 68px; }
    .toast-container { bottom: 76px; right: 12px; left: 12px; }
    .toast { max-width: 100%; }
    .nav-notif-wrap { display: none; }
    .nav-actions .btn-ghost { display: none; }
    .nav-btn-register { display: none; }
    .nav-inner { padding: 0 12px; gap: 10px; }
    .nav-sidebar-toggle { display: flex; }
    .deposit-text { display: none; }
    .user-chip { display: none !important; }
    .user-dropdown { display: none !important; }
    .nav-msg-btn { display: none !important; }
    .notif-dropdown { position: fixed; top: 52px; left: 12px; right: 12px; width: auto; }
    .user-dropdown  { position: fixed; top: 52px; right: 12px; left: 12px; min-width: auto; }

    
    .hero { margin: 8px 8px 4px; width: calc(100% - 16px); border-radius: 14px; }
    .hero-banner { min-height: 220px; }
    .hero-slide  { padding: 20px 16px; }
    .hero-title  { font-size: 26px; letter-spacing: -.8px; }
    .hero-sub    { font-size: 13px; }
    .hero-actions { gap: 8px; }

    
    .match-row  { padding: 10px 14px; }
    .match-row-odds { display: none; }
    .match-team-name { font-size: 12px; }

    
    .section-inner { padding: 18px 16px 22px; }

    
    .trn-page-hero-content { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 16px; }
    .trn-page-hero-stats   { flex-direction: row; justify-content: flex-start; width: 100%; gap: 20px; }
    .trn-page-stat         { text-align: left; }
    .trn-page-title        { font-size: clamp(20px, 5vw, 32px); }
    .trn-page-strip        { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .trn-page-strip::-webkit-scrollbar { display: none; }
    .trn-page-strip-item   { white-space: nowrap; flex-shrink: 0; }

    
    .game-hero-content { padding: 20px 16px; gap: 14px; }
    .game-hero-title   { font-size: 24px; }
    .game-hero-icon    { width: 56px; height: 56px; border-radius: 12px; }
    .game-hero-stats   { gap: 14px; }

    
    .trn-front-grid { grid-template-columns: 1fr; }
    .gm-cards-grid  { grid-template-columns: 1fr; }
    .streams-grid   { grid-template-columns: 1fr 1fr; }
    .players-grid   { grid-template-columns: repeat(3, 1fr); }

    
    .pd-analytics-grid  { grid-template-columns: 1fr; }
    .pd-quick-stats     { grid-template-columns: repeat(2, 1fr); }
    .pd-upcoming-grid   { grid-template-columns: 1fr 1fr; }
    .pd-hero-inner      { padding: 18px 16px; }
    .pd-qs-grid         { grid-template-columns: repeat(2, 1fr); }
    .pd-upc-grid        { grid-template-columns: repeat(2, 1fr); }
    .pd-analytics-row   { grid-template-columns: 1fr; }
    .pd-hero-balance    { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
    .player-layout      { grid-template-columns: 1fr; }
    .player-sidebar     { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
    .player-main        { padding: 16px; }
}

@media (max-width: 700px) {
    .hero-title  { font-size: 22px; }
    .hero-sub    { display: none; }
    .hero-actions .btn { padding: 9px 14px; font-size: 12px; }

    .matches-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .match-row { grid-template-columns: 72px 1fr; gap: 8px; }

    .trn-page-icon  { width: 56px; height: 56px; }
    .trn-page-icon img { width: 36px; height: 36px; }
    .trn-page-hero-left  { flex-direction: column; align-items: flex-start; }
    .trn-page-stat-val   { font-size: 18px; }

    .user-chip-info { display: none; }
    .chip-arrow     { display: none; }
    .user-chip      { padding: 5px; }
    .nav-actions .btn-deposit { padding: 6px 10px; font-size: 12px; }

    .streams-grid { grid-template-columns: 1fr; }
    .players-grid { grid-template-columns: repeat(2, 1fr); }

    .pd-mt-head, .pd-mt-row { grid-template-columns: 36px 1fr 56px 36px; }
    .pd-mt-trn { display: none; }
    .pd-upc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title  { font-size: 19px; }
    .hero-banner { min-height: 180px; }
    .mobile-bottom-nav  { height: 56px; }
    .mobile-bottom-nav-item { font-size: 9px; gap: 3px; }

    .section-inner  { padding: 14px 14px 18px; }
    .section-title  { font-size: 11px; }
    .footer-inner   { flex-direction: column; text-align: center; }

    .trn-front-grid { grid-template-columns: 1fr; }
    .players-grid   { grid-template-columns: repeat(2, 1fr); }
    .streams-grid   { grid-template-columns: 1fr; }

    .match-team-name  { font-size: 11px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .match-row-score  { font-size: 14px; }

    .game-hero-title   { font-size: 19px; }
    .game-hero-stats   { gap: 10px; }
    .game-hero-stat-num { font-size: 14px; }

    .pd-quick-stats   { grid-template-columns: 1fr 1fr; }
    .pd-upcoming-grid { grid-template-columns: 1fr; }
    .trn-page-aside   { padding: 12px; }
    .trn-page-stat-val { font-size: 16px; }

    .notif-dropdown, .user-dropdown { left: 8px; right: 8px; }
    .mobile-drawer-games { grid-template-columns: repeat(3, 1fr); }

    .nav-inner { padding: 0 10px; }
}

[data-theme="light"] .user-chip {
    background: var(--surface2);
    border-color: var(--border2);
}
[data-theme="light"] .user-dropdown,
[data-theme="light"] .notif-dropdown {
    background: var(--surface);
    box-shadow: 0 12px 40px rgba(37,48,49,.15);
    border-color: var(--border2);
}
[data-theme="light"] .user-dd-item:hover {
    background: var(--surface2);
}
[data-theme="light"] .btn-deposit {
    background: var(--primary);
}

[data-theme="light"] .hero {
    box-shadow: 0 8px 40px rgba(37,48,49,.18);
}
[data-theme="light"] .hero-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #253031 50%, #315659 100%);
}
[data-theme="light"] .hero-img-overlay {
    background: linear-gradient(135deg, rgba(37,48,49,.65) 0%, rgba(37,48,49,.2) 100%);
}

[data-theme="light"] .match-row:hover {
    background: var(--surface2);
}
[data-theme="light"] .match-row--live {
    background: color-mix(in srgb, var(--danger) 4%, var(--bg));
}
[data-theme="light"] .odds-btn {
    background: var(--surface2);
    border-color: var(--border2);
}
[data-theme="light"] .odds-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

[data-theme="light"] .live-panel {
    background: var(--surface);
    border-left: 1px solid var(--border);
}
[data-theme="light"] .live-stats-table {
    background: var(--border);
}
[data-theme="light"] .live-stats-row { background: var(--surface); }
[data-theme="light"] .live-stats-row:nth-child(odd) { background: var(--surface2); }

[data-theme="light"] .site-footer {
    background: var(--surface);
    border-top-color: var(--border2);
}

[data-theme="light"] .mobile-bottom-nav {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-top-color: var(--border2);
}
[data-theme="light"] .mobile-bottom-nav-item.active { color: var(--primary); }
[data-theme="light"] .mobile-bottom-nav-item.active::before { background: var(--primary); }

[data-theme="light"] .mobile-drawer {
    background: var(--surface);
    box-shadow: 0 -8px 40px rgba(37,48,49,.15);
}
[data-theme="light"] .mobile-drawer-game {
    background: var(--surface2);
    border-color: var(--border2);
}
[data-theme="light"] .mobile-drawer-game:hover,
[data-theme="light"] .mobile-drawer-game.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

[data-theme="light"] .toast {
    backdrop-filter: blur(16px);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

[data-theme="light"] .pd-hero {
    background: var(--surface);
    border-color: var(--border2);
}
[data-theme="light"] .pd-qs-card,
[data-theme="light"] .pd-stat-card,
[data-theme="light"] .pd-block,
[data-theme="light"] .pd-section {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
[data-theme="light"] .pd-mt-head {
    background: var(--surface2);
}
[data-theme="light"] .pd-rt-win  { background: rgba(22,163,74,.1);  color: #16a34a; }
[data-theme="light"] .pd-rt-loss { background: rgba(220,38,38,.1); color: #dc2626; }
[data-theme="light"] .pd-mt-badge--win  { background: rgba(22,163,74,.1);  color: #16a34a; }
[data-theme="light"] .pd-mt-badge--loss { background: rgba(220,38,38,.1); color: #dc2626; }

[data-theme="light"] .game-card {
    background: var(--surface);
}
[data-theme="light"] .trn-front-card {
    background: var(--surface);
}
[data-theme="light"] .front-team-card {
    background: var(--surface);
}

[data-theme="light"] .stream-card,
[data-theme="light"] .player-card {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .section-count,
[data-theme="light"] .games-section-count {
    background: var(--primary-light);
    color: var(--primary);
}

[data-theme="light"] .tab-btn.tab-active,
[data-theme="light"] .tab-btn:hover {
    background: var(--surface3);
    color: var(--text);
}

[data-theme="light"] .gv-btn--active {
    background: var(--primary);
    color: #fff;
}

[data-theme="light"] .hero-slider-controls {
    background: var(--surface);
}
[data-theme="light"] .hero-dot--active { background: var(--primary); }
[data-theme="light"] .hero-slider-prev:hover,
[data-theme="light"] .hero-slider-next:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.hp-section-head-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hp-section-eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
}
.hp-section-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--text);
    margin: 0;
    line-height: 1;
}
.hp-section-count {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 3px;
}
.hp-section-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    transition: gap .15s;
    margin-bottom: 3px;
}
.hp-section-link:hover { gap: 8px; }

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .15s, opacity .15s, box-shadow .15s;
    white-space: nowrap;
}
.hero-cta-btn:hover { transform: translateY(-2px); }
.hero-cta-btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(1,111,185,.4);
}
.hero-cta-btn--primary:hover { box-shadow: 0 8px 28px rgba(1,111,185,.55); }
.hero-cta-btn--ghost {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    backdrop-filter: blur(8px);
}
.hero-cta-btn--ghost:hover { background: rgba(255,255,255,.16); }

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 8px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 20px 10px 0;
    margin-right: 20px;
    border-right: 1px solid rgba(255,255,255,.15);
}
.hero-stat:last-child { border-right: none; margin-right: 0; }
.hero-stat-num {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: #fff;
}
.hero-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hp-players,
.hp-teams,
.hp-tournaments {
    margin: 12px 16px 4px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.hp-players .section-inner { padding: 28px 28px 32px; }

.hp-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.hp-player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.hp-player-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1,111,185,.06), transparent);
    opacity: 0;
    transition: opacity .2s;
}
.hp-player-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.hp-player-card:hover::before { opacity: 1; }

.hp-player-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border: 2px solid var(--border);
    transition: border-color .2s;
}
.hp-player-card:hover .hp-player-ava { border-color: var(--primary); }
.hp-player-ava img { width: 100%; height: 100%; object-fit: cover; }
.hp-player-online {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid var(--surface);
    display: none; 
}
.hp-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.hp-player-nick {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-player-real {
    font-size: 11px;
    color: var(--muted2);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-player-team {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-player-role {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hp-teams .section-inner { padding: 28px 28px 32px; }

.hp-teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.hp-team-card {
    display: flex;
    flex-direction: column;
    padding: 20px 18px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.hp-team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1,111,185,.07), transparent);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.hp-team-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.hp-team-card:hover::before { opacity: 1; }

.hp-team-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--muted2);
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 14px;
    transition: border-color .2s;
}
.hp-team-card:hover .hp-team-logo { border-color: rgba(1,111,185,.45); }
.hp-team-logo img { object-fit: contain; }

.hp-team-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}
.hp-team-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
    background: rgba(1,111,185,.1);
    padding: 2px 8px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 2px;
    white-space: nowrap;
}
.hp-team-name {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.hp-team-desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.hp-team-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    flex-wrap: wrap;
}
.hp-team-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.hp-team-meta-players { margin-left: auto; }

.hp-tournaments .section-inner { padding: 28px 28px 32px; }

.hp-trn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.hp-trn-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.hp-trn-card:hover {
    border-color: rgba(1,111,185,.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.hp-trn-card--live {
    border-color: rgba(74,222,128,.3);
}
.hp-trn-card--live:hover {
    border-color: rgba(74,222,128,.6);
    box-shadow: 0 12px 32px rgba(74,222,128,.12);
}
.hp-trn-live-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: #4ade80;
    animation: livepulse 1.4s infinite;
}
.hp-trn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hp-trn-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
    flex-shrink: 0;
}
.hp-trn-icon img { width: 24px; height: 24px; object-fit: contain; }
.hp-trn-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .3px;
    white-space: nowrap;
}
.hp-trn-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}
.hp-trn-game {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    margin-top: -4px;
}
.hp-trn-slots {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hp-trn-slots-bar {
    height: 5px;
    background: var(--surface2);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.hp-trn-slots-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width .4s ease;
}
.hp-trn-slots-text {
    font-size: 11px;
    color: var(--muted2);
    font-weight: 600;
}
.hp-trn-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}
.hp-trn-prize, .hp-trn-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted2);
    font-weight: 600;
}
.hp-trn-prize { color: #4ade80; }
.hp-trn-prize svg { stroke: #4ade80; }

[data-theme="light"] .hp-player-card {
    background: var(--surface);
    box-shadow: 0 1px 4px rgba(37,48,49,.06);
}
[data-theme="light"] .hp-player-card:hover {
    box-shadow: 0 8px 24px rgba(37,48,49,.12);
}
[data-theme="light"] .hp-team-card {
    background: var(--surface);
}
[data-theme="light"] .hp-team-card:hover {
    box-shadow: 0 10px 28px rgba(37,48,49,.12);
}
[data-theme="light"] .hp-team-badge {
    background: rgba(1,111,185,.08);
}
[data-theme="light"] .hp-trn-card {
    background: var(--surface);
    box-shadow: 0 1px 4px rgba(37,48,49,.06);
}
[data-theme="light"] .hp-trn-card:hover {
    box-shadow: 0 12px 32px rgba(37,48,49,.12);
}
[data-theme="light"] .hero-cta-btn--ghost {
    background: rgba(0,0,0,.08);
    border-color: rgba(0,0,0,.15);
    color: var(--text);
}

.hpf {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    background: rgba(8,7,16,.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 14px 16px 14px;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hpf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hpf-row--head { gap: 12px; }
.hpf-row--filters { gap: 8px; }

.hpf-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    flex-shrink: 0;
    opacity: .85;
}

.hpf-games { display: flex; gap: 5px; flex-wrap: wrap; }
.hpf-game {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.5);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.hpf-game img { width: 15px; height: 15px; object-fit: contain; border-radius: 3px; }
.hpf-game:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
}
.hpf-game.active {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(34,90,235,.25), 0 4px 14px rgba(34,90,235,.4);
}

.hpf-roles { display: flex; gap: 6px; flex-wrap: wrap; }

.hpf-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    user-select: none;
}
.hpf-chip:hover {
    border-color: color-mix(in srgb, var(--chip-color) 60%, transparent);
    background: color-mix(in srgb, var(--chip-color) 12%, transparent);
    color: #fff;
}
.hpf-chip.active {
    border-color: color-mix(in srgb, var(--chip-color) 80%, transparent);
    background: color-mix(in srgb, var(--chip-color) 18%, transparent);
    color: #fff;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip-color) 30%, transparent);
}
.hpf-chip--empty {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}
.hpf-chip-icon { font-size: 13px; line-height: 1; }
.hpf-chip-label { font-size: 12px; }
.hpf-chip-count {
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .18s, color .18s;
}
.hpf-chip.active .hpf-chip-count {
    background: color-mix(in srgb, var(--chip-color) 30%, transparent);
    color: #fff;
}

.hpf-sel-wrap, .hpf-rank-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.hpf-rank-wrap { gap: 6px; }
.hpf-rank-medal {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
}
.hpf-sel {
    appearance: none;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 600;
    height: 34px;
    padding: 0 28px 0 11px;
    cursor: pointer;
    outline: none;
    transition: border-color .15s, background .15s;
}
.hpf-sel:hover, .hpf-sel:focus {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.09);
    color: #fff;
}
.hpf-sel option { background: #13121f; color: #fff; }
.hpf-sel-arrow {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.35);
    pointer-events: none;
    flex-shrink: 0;
}
.hpf-sel-wrap .hpf-sel-arrow { position: absolute; }

.hpf-extra { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.hpf-spacer { flex: 1; }

.hpf-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hpf-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.5);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.hpf-reset-btn:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.hpf-find-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, box-shadow .15s;
    box-shadow: 0 3px 14px rgba(34,90,235,.4);
    white-space: nowrap;
}
.hpf-find-btn:hover { opacity: .88; box-shadow: 0 5px 20px rgba(34,90,235,.55); }

[data-theme="light"] .hpf {
    background: rgba(255,255,255,.9);
    border-color: rgba(0,0,0,.09);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
[data-theme="light"] .hpf-label { color: var(--accent); }
[data-theme="light"] .hpf-game {
    background: rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.09);
    color: var(--muted);
}
[data-theme="light"] .hpf-game:hover { background: rgba(0,0,0,.07); color: var(--text); }
[data-theme="light"] .hpf-game.active { background: var(--accent); color: #fff; border-color: transparent; }
[data-theme="light"] .hpf-chip {
    background: rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.08);
    color: var(--text);
}
[data-theme="light"] .hpf-chip-count { background: rgba(0,0,0,.07); color: var(--muted); }
[data-theme="light"] .hpf-sel {
    background: rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.09);
    color: var(--text);
}
[data-theme="light"] .hpf-sel option { background: #fff; color: #000; }
[data-theme="light"] .hpf-sel-arrow { color: rgba(0,0,0,.4); }
[data-theme="light"] .hpf-reset-btn {
    background: rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.09);
    color: var(--muted);
}
[data-theme="light"] .hpf-reset-btn:hover { background: rgba(0,0,0,.08); color: var(--text); }

@media (max-width: 700px) {
    .hpf { padding: 12px 12px 12px; }
    .hpf-chip-label { display: none; }
    .hpf-chip { padding: 6px 8px; gap: 4px; }
    .hpf-spacer { display: none; }
    .hpf-row--filters { justify-content: flex-end; }
}

.hpf-root {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    background: rgba(7,6,14,.72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 16px 18px 14px;
    max-width: 680px;
}
.hpf-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.hpf-head-text { flex-shrink: 0; }
.hpf-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 2px;
}
.hpf-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.hpf-game-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.hpf-game-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.55);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.hpf-game-tab img { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; }
.hpf-game-tab:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.hpf-game-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(34,90,235,.4); }
.hpf-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.hpf-filter-search {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    padding: 0 10px;
    color: rgba(255,255,255,.4);
}
.hpf-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 12px;
    width: 140px;
    height: 32px;
    padding: 0;
}
.hpf-input::placeholder { color: rgba(255,255,255,.3); }
.hpf-select {
    appearance: none;
    background: rgba(255,255,255,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,.4)'/%3E%3C/svg%3E") no-repeat right 9px center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    height: 32px;
    padding: 0 26px 0 10px;
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
}
.hpf-select:hover, .hpf-select:focus { border-color: rgba(255,255,255,.25); color: #fff; }
.hpf-select option { background: #1a1a2e; color: #fff; }
.hpf-reset {
    width: 32px; height: 32px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.4);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.hpf-reset:hover { background: rgba(255,255,255,.12); color: #fff; }

.hpf-filter-item { position: relative; }
.hpf-medal-preview {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
    display: none;
    z-index: 1;
}
.hpf-select--medals.has-medal { padding-left: 36px; }

.hpf-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}
.hpf-reset--action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.6);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.hpf-reset--action:hover { background: rgba(255,255,255,.12); color: #fff; }
.hpf-btn-search {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, box-shadow .15s;
    box-shadow: 0 3px 16px rgba(34,90,235,.35);
}
.hpf-btn-search:hover { opacity: .88; box-shadow: 0 4px 20px rgba(34,90,235,.5); }

[data-theme="light"] .hpf-reset--action { border-color: rgba(0,0,0,.12); background: rgba(0,0,0,.05); color: var(--muted); }
[data-theme="light"] .hpf-reset--action:hover { background: rgba(0,0,0,.09); color: var(--text); }
[data-theme="light"] .hpf-actions .hpf-btn-search { color: #fff; }

[data-theme="light"] .hpf-root { background: rgba(255,255,255,.88); border-color: rgba(0,0,0,.1); }
[data-theme="light"] .hpf-title { color: var(--text); }
[data-theme="light"] .hpf-game-tab { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); color: var(--muted); }
[data-theme="light"] .hpf-game-tab.active { background: var(--accent); color: #fff; }
[data-theme="light"] .hpf-filter-search { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); color: var(--muted); }
[data-theme="light"] .hpf-input { color: var(--text); }
[data-theme="light"] .hpf-input::placeholder { color: var(--muted2); }
[data-theme="light"] .hpf-select { background-color: rgba(0,0,0,.05); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(0,0,0,.35)'/%3E%3C/svg%3E"); border-color: rgba(0,0,0,.1); color: var(--text); }
[data-theme="light"] .hpf-select option { background: #fff; color: #000; }
[data-theme="light"] .hpf-reset { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: var(--muted); }
[data-theme="light"] .hpf-card { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.07); }
[data-theme="light"] .hpf-card:hover { background: rgba(0,0,0,.06); }
[data-theme="light"] .hpf-card-nick { color: var(--text); }
[data-theme="light"] .hpf-card-team { color: var(--muted); }
[data-theme="light"] .hpf-empty { color: var(--muted2); }

@media (max-width: 900px) {
    .hp-players-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-trn-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-teams-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-players,
    .hp-teams,
    .hp-tournaments,
    .section,
    .matches-section,
    .games-section { margin-left: 8px; margin-right: 8px; border-radius: 12px; }
    .hp-players .section-inner,
    .hp-teams  .section-inner,
    .hp-tournaments .section-inner { padding: 18px 16px 22px; }
    .hp-section-title { font-size: 18px; }
    .hero-cta-row { margin-top: 10px; }
    .hero-stats-row { gap: 0; }
    .hero-stat { padding: 8px 16px 8px 0; margin-right: 16px; }
    .hero-stat-num { font-size: 20px; }
}
@media (max-width: 600px) {
    .hp-players-grid { grid-template-columns: 1fr; }
    .hp-trn-grid { grid-template-columns: 1fr; }
    .hp-teams-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-cta-btn { padding: 9px 16px; font-size: 13px; }
    .hero-stat-num { font-size: 18px; }
}

.hero-with-news {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    align-items: stretch;
}
.hero-with-news > .hero {
    min-width: 0;
}

.hero-news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    margin: 16px 16px 4px;
    border-radius: 0;
}

.hero-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    min-height: 0;
    border-radius: 14px;
}
.hero-news-card:hover .hero-news-card__bg {
    transform: scale(1.04);
}
.hero-news-card:hover .hero-news-card__title {
    opacity: .85;
}

.hero-news-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}
.hero-news-card__bg--empty {
    background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
}

.hero-news-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0)    20%,
        rgba(0,0,0,.55)  60%,
        rgba(0,0,0,.88) 100%
    );
    z-index: 1;
}

.hero-news-card__content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-news-card__tag {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    background: var(--tag-color, var(--primary));
    color: #fff;
}

.hero-news-card__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    transition: opacity .2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.hero-news-card__excerpt {
    font-size: 11.5px;
    color: rgba(255,255,255,.75);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .hero-with-news {
        grid-template-columns: 1fr 260px;
    }
}
@media (max-width: 860px) {
    .hero-with-news {
        grid-template-columns: 1fr;
    }
    .hero-news-sidebar {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--border);
        height: 180px;
    }
    .hero-news-card {
        flex: 1;
    }
}

.hp-news {
    margin: 12px 16px 4px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.hp-news .section-inner { padding: 28px 28px 32px; }

.hp-news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.nw-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    border: none;
    border-radius: 0;
    transition: transform .2s;
    min-width: 0;
    overflow: hidden;
}
.nw-card:hover {
    transform: translateY(-2px);
}
.nw-card:hover .nw-card__title {
    color: var(--primary);
}

.nw-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface2);
    border-radius: 10px;
    flex-shrink: 0;
}
.nw-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nw-card:hover .nw-card__thumb img {
    transform: scale(1.04);
}
.nw-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nw-card__body {
    padding: 10px 2px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.nw-card__tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    background: none;
    border: none;
    padding: 0;
    align-self: flex-start;
}
.nw-card__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
    margin: 0;
    transition: color .18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nw-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
    border-top: none;
}
.nw-card__meta-comments {
    display: flex;
    align-items: center;
    gap: 3px;
}
.nw-card__meta-comments svg { opacity: .55; }
.nw-card__meta-time { margin-left: auto; }

@media (max-width: 1400px) {
    
}
@media (max-width: 900px) {
    .hp-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .hp-news { margin: 8px 8px 4px; border-radius: 12px; }
    .hp-news .section-inner { padding: 18px 16px 22px; }
    .hp-news-grid { grid-template-columns: 1fr; }
}

.mrd-wrap {
    margin: 12px 16px 4px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

.mrd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}
.mrd-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mrd-header-icon { color: var(--muted); flex-shrink: 0; }
.mrd-header-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.mrd-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
}
.mrd-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
    white-space: nowrap;
    letter-spacing: .01em;
}
.mrd-tab:hover { color: var(--text); background: var(--surface3); }
.mrd-tab--active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.mrd-tab--live { color: var(--live); }
.mrd-tab--live.mrd-tab--active { color: var(--live); }
.mrd-tab--live:hover { color: var(--live); background: rgba(239,68,68,.08); }
.mrd-tab-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--live);
    animation: livepulse 1.4s infinite;
    flex-shrink: 0;
}
.mrd-tab-count {
    font-size: 10px; font-weight: 800;
    background: rgba(1,111,185,.18); color: var(--primary);
    padding: 1px 6px; border-radius: 6px; line-height: 1.5;
}
.mrd-tab-count--live  { background: rgba(239,68,68,.18); color: var(--live); }
.mrd-tab-count--muted { background: var(--surface3); color: var(--muted); }

.mrd-panel { display: none; flex-direction: column; }
.mrd-panel--active { display: flex; }

.mrd-date-group { display: flex; flex-direction: column; }
.mrd-date-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 8px;
}
.mrd-date-label-text {
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted); white-space: nowrap; flex-shrink: 0;
}
.mrd-date-label-line { flex: 1; height: 1px; background: var(--border); }
.mrd-date-label-count {
    font-size: 10px; font-weight: 700;
    color: var(--muted); background: var(--surface2);
    border: 1px solid var(--border); padding: 1px 7px; border-radius: 20px; flex-shrink: 0;
}

.mrd-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    padding: 4px 16px 16px;
}

.mrd-card {
    position: relative;
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--surface2) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.mrd-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.mrd-card--live {
    border-color: rgba(239,68,68,.25);
    background: linear-gradient(145deg, rgba(239,68,68,.05) 0%, var(--bg) 100%);
}
.mrd-card--live:hover {
    border-color: rgba(239,68,68,.5);
    box-shadow: 0 8px 28px rgba(239,68,68,.12);
}
.mrd-card--finished { opacity: .85; }
.mrd-card--finished:hover { opacity: 1; }

.mrd-card-liveline {
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: var(--live);
    animation: livepulse 1.4s infinite;
}

.mrd-card-top {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.mrd-card-format {
    font-size: 10px; font-weight: 700;
    color: var(--muted); letter-spacing: .5px; text-transform: uppercase;
    background: rgba(255,255,255,.05); padding: 2px 7px; border-radius: 5px;
}
.mrd-card-live-badge {
    display: flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 800; color: var(--live); letter-spacing: .5px;
}
.mrd-card-live-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--live); animation: livepulse 1.4s infinite; display: inline-block;
}
.mrd-card-done-badge { font-size: 10px; font-weight: 700; color: var(--muted); }
.mrd-card-time { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }

.mrd-card-teams { display: flex; align-items: center; gap: 8px; }
.mrd-card-team {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex: 1; min-width: 0; transition: opacity .2s;
}
.mrd-card-team--loser { opacity: .3; }
.mrd-card-logo {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--surface3); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 900; color: var(--muted);
    flex-shrink: 0; overflow: hidden; transition: border-color .15s;
}
.mrd-card:hover .mrd-card-logo { border-color: rgba(1,111,185,.4); }
.mrd-card--live:hover .mrd-card-logo { border-color: rgba(239,68,68,.4); }
.mrd-card-logo img { width: 30px; height: 30px; object-fit: contain; }
.mrd-card-name {
    font-size: 11px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 72px; text-align: center; color: var(--text2);
}

.mrd-card-center {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; flex-shrink: 0; min-width: 42px;
}
.mrd-card-score {
    display: flex; align-items: center; gap: 5px;
    font-size: 22px; font-weight: 900; letter-spacing: -1px; line-height: 1;
}
.mrd-card-score--live { color: var(--live); }
.mrd-card-score--done { color: var(--text); }
.mrd-card-score-sep {
    font-size: 14px; font-weight: 300; color: var(--muted);
    display: flex; align-items: center;
}
.mrd-card-score--done .mrd-card-score-sep { font-size: 18px; opacity: .4; }
.mrd-card-pulse-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--live); animation: livepulse 1.4s infinite; display: block;
}
.mrd-score-win  { color: var(--text); }
.mrd-score-lose { color: var(--muted); }
.mrd-card-vs {
    font-size: 11px; font-weight: 800;
    color: var(--muted); letter-spacing: 1px; opacity: .6;
}

.mrd-card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding-top: 8px; border-top: 1px solid var(--border); margin-top: auto;
}
.mrd-card-trn { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; }
.mrd-card-trn-logo { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.mrd-card-trn-name {
    font-size: 11px; font-weight: 600; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mrd-card-stage {
    font-size: 10px; font-weight: 700; color: var(--muted);
    background: var(--surface3); padding: 2px 7px; border-radius: 5px;
    white-space: nowrap; flex-shrink: 0;
}

.mrd-empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 48px 20px; color: var(--muted);
    font-size: 13px; font-weight: 600; text-align: center;
}

[data-theme="light"] .mrd-tabs { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .mrd-tab--active { background: var(--surface); box-shadow: 0 1px 4px rgba(37,48,49,.1); }
[data-theme="light"] .mrd-tab--live:hover { background: rgba(239,68,68,.07); }
[data-theme="light"] .mrd-card {
    background: linear-gradient(145deg, var(--surface2) 0%, var(--surface) 100%);
    box-shadow: 0 1px 4px rgba(37,48,49,.05);
}
[data-theme="light"] .mrd-card:hover { box-shadow: 0 8px 28px rgba(37,48,49,.12); }
[data-theme="light"] .mrd-card--live {
    background: linear-gradient(145deg, rgba(239,68,68,.04) 0%, var(--surface) 100%);
    border-color: rgba(239,68,68,.2);
}
[data-theme="light"] .mrd-card-format { background: rgba(0,0,0,.05); }

@media (max-width: 900px) {
    .mrd-wrap { margin: 8px 8px 4px; border-radius: 12px; }
    .mrd-header { padding: 12px 14px; gap: 8px; }
    .mrd-cards-grid { padding: 4px 10px 12px; gap: 6px; }
    .mrd-date-label { padding: 10px 14px 6px; }
}
@media (max-width: 640px) {
    .mrd-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .mrd-tab { padding: 5px 10px; font-size: 11px; }
    .mrd-tabs { gap: 2px; padding: 2px; }
}
@media (max-width: 420px) {
    .mrd-cards-grid { grid-template-columns: 1fr; }
    .mrd-header { flex-direction: column; align-items: flex-start; }
}

.mrd-no-matches {
    padding: 16px;
}
.mrd-empty-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 52px 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.mrd-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.mrd-cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--surface2) 0%, var(--bg) 100%);
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.mrd-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0,0,0,.3);
}

.mrd-cta-card--registration { border-color: rgba(1,111,185,.3); }
.mrd-cta-card--registration:hover { border-color: rgba(1,111,185,.6); box-shadow: 0 10px 32px rgba(1,111,185,.12); }
.mrd-cta-card--checkin  { border-color: rgba(255,149,5,.3); }
.mrd-cta-card--checkin:hover  { border-color: rgba(255,149,5,.6); box-shadow: 0 10px 32px rgba(255,149,5,.1); }
.mrd-cta-card--live { border-color: rgba(239,68,68,.3); }
.mrd-cta-card--live:hover { border-color: rgba(239,68,68,.55); box-shadow: 0 10px 32px rgba(239,68,68,.1); }
.mrd-cta-card--finished { border-color: var(--border2); opacity: .8; }
.mrd-cta-card--finished:hover { opacity: 1; }

.mrd-cta-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.mrd-cta-card--registration .mrd-cta-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(1,111,185,.1), transparent);
}
.mrd-cta-card--checkin .mrd-cta-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255,149,5,.08), transparent);
}
.mrd-cta-card--live .mrd-cta-glow {
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(239,68,68,.08), transparent);
}

.mrd-cta-top,
.mrd-cta-body,
.mrd-cta-prize,
.mrd-cta-slots,
.mrd-cta-actions { position: relative; z-index: 1; }

.mrd-cta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mrd-cta-trn-info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}
.mrd-cta-trn-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.mrd-cta-trn-logo-ph {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
}
.mrd-cta-trn-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.mrd-cta-trn-name {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mrd-cta-trn-game {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

.mrd-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}
.mrd-cta-badge--reg     { background: rgba(1,111,185,.15);   color: #60a5fa;  border: 1px solid rgba(1,111,185,.3); }
.mrd-cta-badge--checkin { background: rgba(255,149,5,.12);  color: #fbbf24;  border: 1px solid rgba(255,149,5,.3); }
.mrd-cta-badge--live    { background: rgba(239,68,68,.12);  color: var(--live); border: 1px solid rgba(239,68,68,.25); }
.mrd-cta-badge--done    { background: var(--surface3);      color: var(--muted); border: 1px solid var(--border); }
.mrd-cta-badge--soon    { background: rgba(255,255,255,.06); color: var(--muted2); border: 1px solid var(--border); }
.mrd-cta-badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--live);
    animation: livepulse 1.4s infinite;
}

.mrd-cta-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.mrd-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mrd-cta-icon--register { background: rgba(1,111,185,.15);  color: #60a5fa; }
.mrd-cta-icon--checkin  { background: rgba(255,149,5,.12); color: #fbbf24; }
.mrd-cta-icon--live     { background: rgba(239,68,68,.12); color: var(--live); }
.mrd-cta-icon--finished { background: var(--surface3);     color: var(--muted2); }
.mrd-cta-icon--soon     { background: var(--surface3);     color: var(--muted2); }
.mrd-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.mrd-cta-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.2px;
    line-height: 1.2;
}
.mrd-cta-sublabel {
    font-size: 12px;
    color: var(--muted2);
    font-weight: 600;
    line-height: 1.5;
}

.mrd-cta-prize {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(74,222,128,.06);
    border: 1px solid rgba(74,222,128,.12);
    border-radius: 8px;
}
.mrd-cta-prize svg { stroke: #4ade80; flex-shrink: 0; }
.mrd-cta-prize strong { color: #4ade80; font-weight: 800; }

.mrd-cta-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mrd-cta-slots-bar {
    height: 5px;
    background: var(--surface3);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.mrd-cta-slots-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 3px;
    transition: width .4s ease;
}
.mrd-cta-slots-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.mrd-cta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.mrd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
}
.mrd-cta-btn:hover { opacity: .85; transform: translateY(-1px); }
.mrd-cta-btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 14px rgba(1,111,185,.35);
}
.mrd-cta-card--checkin .mrd-cta-btn--primary {
    background: var(--accent);
    box-shadow: 0 3px 14px rgba(255,149,5,.3);
}
.mrd-cta-card--live .mrd-cta-btn--primary {
    background: var(--live);
    box-shadow: 0 3px 14px rgba(239,68,68,.3);
}
.mrd-cta-btn--ghost {
    background: var(--surface3);
    color: var(--muted2);
    border: 1px solid var(--border);
}
.mrd-cta-btn--ghost:hover { color: var(--text); border-color: var(--border2); }

[data-theme="light"] .mrd-cta-card {
    background: linear-gradient(145deg, var(--surface2) 0%, var(--surface) 100%);
    box-shadow: 0 1px 4px rgba(37,48,49,.05);
}
[data-theme="light"] .mrd-cta-card:hover { box-shadow: 0 10px 32px rgba(37,48,49,.1); }
[data-theme="light"] .mrd-cta-btn--primary { color: #fff; }

@media (max-width: 640px) {
    .mrd-cta-grid { grid-template-columns: 1fr; }
    .mrd-no-matches { padding: 10px; }
}
@media (max-width: 420px) {
    .mrd-cta-card { padding: 14px; }
    .mrd-cta-label { font-size: 14px; }
}

.trn-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.trn-cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--surface2) 0%, var(--bg) 100%);
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.trn-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0,0,0,.3);
}

.trn-cta--reg     { border-color: rgba(1,111,185,.3); }
.trn-cta--reg:hover { border-color: rgba(1,111,185,.6); box-shadow: 0 10px 32px rgba(1,111,185,.12); }
.trn-cta--checkin { border-color: rgba(255,149,5,.3); }
.trn-cta--checkin:hover { border-color: rgba(255,149,5,.6); box-shadow: 0 10px 32px rgba(255,149,5,.1); }
.trn-cta--live    { border-color: rgba(239,68,68,.3); }
.trn-cta--live:hover { border-color: rgba(239,68,68,.55); box-shadow: 0 10px 32px rgba(239,68,68,.1); }
.trn-cta--done    { border-color: var(--border2); opacity: .8; }
.trn-cta--done:hover { opacity: 1; }
.trn-cta--soon    { border-color: var(--border); }

.trn-cta-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.trn-cta--reg .trn-cta-glow     { background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(1,111,185,.1), transparent); }
.trn-cta--checkin .trn-cta-glow { background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255,149,5,.08), transparent); }
.trn-cta--live .trn-cta-glow    { background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(239,68,68,.08), transparent); }

.trn-cta-top,
.trn-cta-body,
.trn-cta-prize,
.trn-cta-slots,
.trn-cta-actions { position: relative; z-index: 1; }

.trn-cta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.trn-cta-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.trn-cta-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: contain;
    border: 1px solid var(--border);
    background: var(--surface3);
    flex-shrink: 0;
}
.trn-cta-logo-ph {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--surface3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
}
.trn-cta-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.trn-cta-name {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.trn-cta-game {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
}

.trn-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.trn-badge--reg     { background: rgba(1,111,185,.15);    color: #60a5fa;       border: 1px solid rgba(1,111,185,.3); }
.trn-badge--checkin { background: rgba(255,149,5,.12);   color: #fbbf24;       border: 1px solid rgba(255,149,5,.3); }
.trn-badge--live    { background: rgba(239,68,68,.12);   color: var(--live);   border: 1px solid rgba(239,68,68,.25); }
.trn-badge--done    { background: var(--surface3);       color: var(--muted);  border: 1px solid var(--border); }
.trn-badge--soon    { background: rgba(255,255,255,.05); color: var(--muted2); border: 1px solid var(--border); }
.trn-cta-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--live);
    animation: livepulse 1.4s infinite;
}

.trn-cta-body {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.trn-cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trn-cta-icon--register { background: rgba(1,111,185,.15);  color: #60a5fa; }
.trn-cta-icon--checkin  { background: rgba(255,149,5,.12); color: #fbbf24; }
.trn-cta-icon--live     { background: rgba(239,68,68,.12); color: var(--live); }
.trn-cta-icon--finished { background: var(--surface3);     color: var(--muted2); }
.trn-cta-icon--soon     { background: var(--surface3);     color: var(--muted2); }
.trn-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.trn-cta-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.2px;
    line-height: 1.2;
    color: var(--text);
}
.trn-cta-sublabel {
    font-size: 12px;
    color: var(--muted2);
    font-weight: 600;
    line-height: 1.5;
}

.trn-cta-prize {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(74,222,128,.06);
    border: 1px solid rgba(74,222,128,.12);
    border-radius: 8px;
}
.trn-cta-prize svg { stroke: #4ade80; flex-shrink: 0; }
.trn-cta-prize strong { color: #4ade80; font-weight: 800; }

.trn-cta-slots { display: flex; flex-direction: column; gap: 6px; }
.trn-cta-slots-bar {
    height: 5px;
    background: var(--surface3);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.trn-cta-slots-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 3px;
    transition: width .4s ease;
}
.trn-cta-slots-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.trn-cta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.trn-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
}
.trn-cta-btn:hover { opacity: .85; transform: translateY(-1px); }
.trn-cta-btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 14px rgba(1,111,185,.35);
}
.trn-cta--checkin .trn-cta-btn--primary {
    background: var(--accent);
    box-shadow: 0 3px 14px rgba(255,149,5,.3);
}
.trn-cta--live .trn-cta-btn--primary {
    background: var(--live);
    box-shadow: 0 3px 14px rgba(239,68,68,.3);
}
.trn-cta-btn--ghost {
    background: var(--surface3);
    color: var(--muted2);
    border: 1px solid var(--border);
}
.trn-cta-btn--ghost:hover { color: var(--text); border-color: var(--border2); }

[data-theme="light"] .trn-cta-card {
    background: linear-gradient(145deg, var(--surface2) 0%, var(--surface) 100%);
    box-shadow: 0 1px 4px rgba(37,48,49,.05);
}
[data-theme="light"] .trn-cta-card:hover { box-shadow: 0 10px 32px rgba(37,48,49,.1); }
[data-theme="light"] .trn-cta-btn--primary { color: #fff; }

@media (max-width: 640px) {
    .trn-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .trn-cta-card { padding: 14px; }
    .trn-cta-label { font-size: 14px; }
}

.mrd-stub {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px;
    flex-wrap: wrap;
}
.mrd-stub-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
}
.mrd-stub-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.mrd-stub-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}
.mrd-stub-hint {
    font-size: 12px;
    color: var(--muted2);
    font-weight: 600;
}
.mrd-stub-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}
.mrd-stub-link:hover { text-decoration: underline; }
.mrd-stub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .15s, transform .15s;
    box-shadow: 0 3px 12px rgba(1,111,185,.3);
}
.mrd-stub-btn:hover { opacity: .85; transform: translateY(-1px); }

.rp-sidebar {
    display: flex;
    flex-direction: column;
    padding: 12px 12px 0;
    gap: 8px;
}
.rp-scroll {
    display: contents;
}
.rp-sticky-bottom {
    background: var(--bg);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
}

.rp-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rp-block--ads {
    gap: 8px;
    padding: 10px;
}
.rp-ad-html { line-height: 0; }
.rp-ad-image-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}
.rp-ad-image-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: opacity .15s;
}
.rp-ad-image-link:hover img { opacity: .88; }
.rp-ad-promo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}
.rp-ad-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    color: #fff;
    align-self: flex-start;
}
.rp-ad-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.rp-ad-sub {
    font-size: 11px;
    color: rgba(255,255,255,.75);
    line-height: 1.35;
}
.rp-ad-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.rp-block-head {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
}
.rp-block-head-left {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
}
.rp-block-head svg { flex-shrink: 0; }
.rp-block-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}
.rp-empty-hint {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 0 4px;
    text-align: center;
}

.rp-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    animation: livepulse 1.4s infinite;
    flex-shrink: 0;
}
.rp-live-count {
    font-size: 10px;
    font-weight: 800;
    background: rgba(239,68,68,.15);
    color: var(--live);
    padding: 1px 6px;
    border-radius: 5px;
}

.rp-live-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.rp-nav-btn {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--muted2);
    transition: background .15s, color .15s;
}
.rp-nav-btn:hover { background: var(--surface3); color: var(--text); }
.rp-live-page { font-size: 11px; font-weight: 700; color: var(--muted); min-width: 28px; text-align: center; }

.rp-stream-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface2);
}
.rp-stream-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-stream-thumb-bg { width: 100%; height: 100%; background: var(--surface3); }
.rp-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    transition: background .15s;
}
.rp-play-btn:hover { background: rgba(0,0,0,.55); }

.rp-live-score-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: border-color .15s;
}
.rp-live-score-card:hover { border-color: var(--border2); }
.rp-live-score-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}
.rp-live-format {
    background: rgba(255,255,255,.06);
    padding: 1px 7px;
    border-radius: 4px;
}
.rp-live-score-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rp-live-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.rp-live-team--right { align-items: center; }
.rp-live-logo {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--surface3);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: var(--muted);
    overflow: hidden;
}
.rp-live-logo img { width: 26px; height: 26px; object-fit: contain; }
.rp-live-name { font-size: 11px; font-weight: 700; color: var(--text2); text-align: center; }
.rp-live-scoreboard {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--live);
    flex-shrink: 0;
}
.rp-live-sep { font-size: 16px; font-weight: 300; color: var(--muted); }

.rp-kda-table { display: flex; flex-direction: column; gap: 3px; }
.rp-kda-head, .rp-kda-row {
    display: grid;
    grid-template-columns: 1fr 54px 54px 1fr;
    align-items: center;
    gap: 4px;
}
.rp-kda-head {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.rp-kda-right { text-align: right; }
.rp-kda-cols {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    text-align: center;
    gap: 2px;
}
.rp-kda-cols span { font-size: 11px; color: var(--text2); font-weight: 600; }
.rp-kda-cols--right span { color: var(--text2); }
.rp-kda-row { padding: 3px 0; }
.rp-kda-player {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.rp-kda-player span { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-kda-player--right { flex-direction: row-reverse; }
.rp-kda-av {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--surface3);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800; color: var(--muted);
    overflow: hidden; flex-shrink: 0;
}
.rp-kda-av img { width: 100%; height: 100%; object-fit: cover; }

.rp-next-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: border-color .15s;
}
.rp-next-card:hover { border-color: rgba(1,111,185,.4); }
.rp-next-teams {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rp-next-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}
.rp-next-team span { font-size: 11px; font-weight: 700; color: var(--text2); text-align: center; }
.rp-next-logo {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--surface3);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: var(--muted);
    overflow: hidden;
}
.rp-next-logo img { width: 28px; height: 28px; object-fit: contain; }
.rp-next-vs { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: 1px; flex-shrink: 0; }
.rp-next-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
}
.rp-countdown-val {
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 3px 7px;
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.rp-countdown-sep { color: var(--muted); font-size: 18px; padding: 0 1px; }
.rp-next-date { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; }
.rp-next-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.rp-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rp-profile-av {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; color: #fff;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid var(--border);
}
.rp-profile-av img { width: 100%; height: 100%; object-fit: cover; }
.rp-profile-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rp-profile-name { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-profile-team { font-size: 11px; color: var(--primary); font-weight: 700; }
.rp-profile-noteam { font-size: 11px; color: var(--muted); font-weight: 600; }
.rp-profile-btn {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-decoration: none; flex-shrink: 0;
    transition: background .15s, color .15s;
}
.rp-profile-btn:hover { background: var(--surface3); color: var(--text); }

.rp-guest-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rp-guest-cta-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(1,111,185,.1);
    border: 1px solid rgba(1,111,185,.2);
    display: flex; align-items: center; justify-content: center;
    color: #60a5fa; flex-shrink: 0;
}
.rp-guest-cta-text { display: flex; flex-direction: column; gap: 2px; }
.rp-guest-cta-title { font-size: 14px; font-weight: 800; }
.rp-guest-cta-sub { font-size: 11px; color: var(--muted2); font-weight: 600; }
.rp-guest-actions { display: flex; gap: 8px; }
.rp-guest-btn {
    flex: 1;
    text-align: center;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
}
.rp-guest-btn:hover { opacity: .85; transform: translateY(-1px); }
.rp-guest-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 3px 12px rgba(1,111,185,.3); }
.rp-guest-btn--ghost { background: var(--surface2); color: var(--muted2); border: 1px solid var(--border); }
.rp-guest-btn--ghost:hover { color: var(--text); }

.rp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.rp-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.rp-stat--accent { border-color: rgba(1,111,185,.25); background: rgba(1,111,185,.06); }
.rp-stat-val {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--text);
}
.rp-stat--accent .rp-stat-val { color: #60a5fa; }
.rp-stat-label { font-size: 11px; color: var(--muted); font-weight: 600; }

.rp-top-teams { display: flex; flex-direction: column; gap: 4px; }
.rp-top-team {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}
.rp-top-team:hover { border-color: var(--border2); background: var(--surface3); }
.rp-top-team--gold   .rp-top-rank { color: #f59e0b; }
.rp-top-team--silver .rp-top-rank { color: #94a3b8; }
.rp-top-team--bronze .rp-top-rank { color: #b45309; }
.rp-top-rank {
    font-size: 12px;
    font-weight: 900;
    color: var(--muted);
    min-width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.rp-top-logo {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--surface3);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: var(--muted);
    overflow: hidden; flex-shrink: 0;
}
.rp-top-logo img { width: 22px; height: 22px; object-fit: contain; }
.rp-top-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rp-top-name { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-top-record { font-size: 10px; color: var(--muted); font-weight: 600; }
.rp-top-wr { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; flex-shrink: 0; min-width: 40px; }
.rp-top-wr-val { font-size: 11px; font-weight: 800; color: var(--text2); }
.rp-top-wr-bar {
    width: 40px; height: 4px;
    background: var(--surface3);
    border-radius: 2px;
    overflow: hidden;
}
.rp-top-wr-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 2px;
    transition: width .4s;
}
.rp-top-team--gold   .rp-top-wr-fill { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.rp-top-team--silver .rp-top-wr-fill { background: linear-gradient(90deg, #64748b, #94a3b8); }

.rp-at-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}
.rp-at-badge--reg     { background: rgba(1,111,185,.15);    color: #60a5fa;       border: 1px solid rgba(1,111,185,.3); }
.rp-at-badge--checkin { background: rgba(255,149,5,.12);   color: #fbbf24;       border: 1px solid rgba(255,149,5,.3); }
.rp-at-badge--live    { background: rgba(239,68,68,.12);   color: var(--live);   border: 1px solid rgba(239,68,68,.25); }
.rp-at-badge--done    { background: var(--surface3);       color: var(--muted);  border: 1px solid var(--border); }
.rp-at-badge--soon    { background: rgba(255,255,255,.05); color: var(--muted2); border: 1px solid var(--border); }
.rp-at-badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--live);
    animation: livepulse 1.4s infinite;
}
.rp-at-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rp-at-logo {
    width: 36px; height: 36px;
    border-radius: 9px;
    object-fit: contain;
    border: 1px solid var(--border);
    background: var(--surface3);
    flex-shrink: 0;
}
.rp-at-logo-ph {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--surface3);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); flex-shrink: 0;
}
.rp-at-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rp-at-name { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-at-game { font-size: 11px; color: var(--accent); font-weight: 700; }
.rp-at-slots { display: flex; flex-direction: column; gap: 6px; }
.rp-at-slots-bar {
    height: 4px;
    background: var(--surface3);
    border-radius: 2px;
    overflow: hidden;
}
.rp-at-slots-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 2px;
    transition: width .4s;
}
.rp-at-slots-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.rp-at-prize { color: #4ade80; font-weight: 700; }
.rp-at-prize-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}
.rp-at-prize-row strong { color: #4ade80; font-weight: 800; }
.rp-at-actions { display: flex; gap: 8px; }
.rp-at-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    transition: opacity .15s, transform .15s;
    box-shadow: 0 3px 10px rgba(1,111,185,.3);
    flex: 1;
    justify-content: center;
}
.rp-at-btn:hover { opacity: .85; transform: translateY(-1px); }
.rp-at-btn--ghost {
    background: var(--surface2);
    color: var(--muted2) !important;
    border: 1px solid var(--border);
    box-shadow: none;
    flex: 0 0 auto;
    padding: 7px 12px;
}
.rp-at-btn--ghost:hover { color: var(--text); border-color: var(--border2); }

[data-theme="light"] .rp-block { background: var(--surface); box-shadow: 0 1px 4px rgba(37,48,49,.05); }
[data-theme="light"] .rp-live-score-card { background: var(--surface2); }
[data-theme="light"] .rp-next-card { background: var(--surface2); }
[data-theme="light"] .rp-stat { background: var(--surface2); }
[data-theme="light"] .rp-top-team { background: var(--surface2); }
[data-theme="light"] .rp-top-team:hover { background: var(--surface3); }
[data-theme="light"] .rp-guest-btn--primary { color: #fff; }
[data-theme="light"] .rp-at-btn { color: #fff; }

.rp-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rp-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .18s, transform .18s;
    color: #fff;
}
.rp-social-btn:hover { opacity: .85; transform: translateX(2px); }
.rp-social-btn--tg {
    background: linear-gradient(135deg, #229ED9 0%, #1a8dbf 100%);
    box-shadow: 0 3px 12px rgba(34,158,217,.3);
}
.rp-social-btn--ds {
    background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
    box-shadow: 0 3px 12px rgba(88,101,242,.3);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  flex-wrap: wrap;
  padding: 14px 32px;
  max-width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs__sep {
  color: var(--primary);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  opacity: .7;
}

.breadcrumbs__current {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.breadcrumbs--top {
  margin-top: var(--nav-h);
}

@media (max-width: 600px) {
  .breadcrumbs { padding: 10px 16px; }
  .breadcrumbs__current { max-width: 180px; }
}

.mobile-profile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--border);
}

.mobile-profile-ava {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.mobile-profile-ava--img {
    object-fit: cover;
    background: transparent;
}

.mobile-profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mobile-profile-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-profile-bal {
    font-size: 12px;
    color: var(--muted2);
    font-weight: 600;
}

.mobile-profile-steam-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 12px 14px;
    border-radius: 12px;
    background: rgba(19, 135, 184, 0.08);
    border: 1px solid rgba(19, 135, 184, 0.25);
    color: var(--fg);
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.mobile-profile-steam-cta:active {
    background: rgba(19, 135, 184, 0.15);
}

.mobile-profile-steam-cta svg:first-child {
    flex-shrink: 0;
}

.mobile-profile-steam-cta > svg:last-child {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--muted);
}

.mobile-profile-steam-cta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mobile-profile-steam-cta-title {
    font-size: 13px;
    font-weight: 800;
    color: #4aa8d8;
}

.mobile-profile-steam-cta-sub {
    font-size: 11px;
    color: var(--muted);
}

.mobile-profile-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 8px;
}

.mobile-profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 10px;
    color: var(--fg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .13s;
}

.mobile-profile-nav-item:active,
.mobile-profile-nav-item:hover {
    background: var(--surface2);
}

.mobile-profile-nav-item svg {
    color: var(--muted2);
    flex-shrink: 0;
}

.mobile-profile-nav-item--danger {
    color: var(--danger, #ef4444);
    margin-top: 4px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
    padding-top: 14px;
}

.mobile-profile-nav-item--danger svg {
    color: var(--danger, #ef4444);
}

.mobile-profile-guest {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    gap: 14px;
    text-align: center;
}

.mobile-profile-guest-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.mobile-profile-guest-text {
    font-size: 13px;
    color: var(--muted2);
    line-height: 1.55;
    max-width: 240px;
}

.mobile-profile-steam-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #111D2E, #1387B8);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    width: 100%;
    justify-content: center;
    transition: opacity .15s;
}

.mobile-profile-steam-btn:active {
    opacity: .85;
}

.mobile-profile-login-link {
    font-size: 12px;
    color: var(--muted2);
    text-decoration: none;
    padding: 4px;
}

.mobile-profile-login-link:hover {
    color: var(--fg);
}

.hlb {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.hlb__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 220px;
}
.hlb__preview {
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}
.hlb__preview--empty {
    background: linear-gradient(135deg, rgba(34,90,235,.08) 0%, rgba(0,0,0,.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hlb__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}
.hlb__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background .2s;
    text-decoration: none;
}
.hlb__overlay:hover {
    background: rgba(0,0,0,.25);
}
.hlb__overlay--solid {
    flex-direction: column;
    gap: 14px;
    color: rgba(255,255,255,.5);
    font-size: 13px;
    font-weight: 600;
}
.hlb__play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    border: 2px solid rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: transform .15s, background .15s;
}
.hlb__overlay:hover .hlb__play-btn {
    transform: scale(1.08);
    background: rgba(0,0,0,.7);
}
.hlb__info {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}
.hlb__top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hlb__live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
    color: #ef4444;
    background: rgba(239,68,68,.1);
    padding: 3px 10px;
    border-radius: 20px;
}
.hlb__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: hlbPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes hlbPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}
.hlb__game {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted2);
    background: var(--surface2);
    padding: 3px 9px;
    border-radius: 20px;
}
.hlb__format {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}
.hlb__tournament {
    font-size: 12px;
    color: var(--muted2);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hlb__teams {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0;
}
.hlb__team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.hlb__team--right {
    flex-direction: row-reverse;
    text-align: right;
}
.hlb__team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
.hlb__team-abbr {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: var(--muted2);
    flex-shrink: 0;
}
.hlb__team-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hlb__score {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.hlb__score > span {
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}
.hlb__score-sep {
    font-size: 20px;
    font-weight: 400;
    color: var(--muted);
    margin: 0 2px;
}
.hlb__score-dots {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.hlb__dot-map {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border2);
}
.hlb__dot-map--done {
    background: var(--accent);
}
.hlb__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity .15s;
    align-self: flex-start;
    margin-top: 4px;
}
.hlb__cta:hover {
    opacity: .85;
}
.hlb__more {
    font-size: 12px;
    color: var(--muted2);
    text-decoration: none;
    margin-top: -4px;
}
.hlb__more:hover {
    color: var(--text);
}

@media (max-width: 900px) {
    .hlb__inner {
        grid-template-columns: 1fr;
    }
    .hlb__preview {
        aspect-ratio: 16 / 7;
    }
    .hlb__info {
        padding: 18px 20px;
    }
}

.slv-strip-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 10px;
}
.slv-strip-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #ff4545;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.slv-strip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4545;
    animation: slvDotPulse 1.4s infinite;
    flex-shrink: 0;
}
@keyframes slvDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}
.slv-strip-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.slv-strip-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(34,90,235,.12);
    padding: 1px 7px;
    border-radius: 20px;
}
.slv-strip-nav {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
.slv-strip-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface3);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.slv-strip-btn:hover { border-color: var(--accent); color: var(--accent); }

.slv-strip-wrap {
    position: relative;
}
.slv-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.slv-strip::-webkit-scrollbar { display: none; }

.slv-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface2);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: border-color .15s, transform .15s;
}
.slv-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.slv-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface3);
    overflow: hidden;
    flex-shrink: 0;
}
.slv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slv-card-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34,90,235,.06) 0%, var(--surface3) 100%);
}
.slv-card-live-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #e02020;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.slv-card-viewers {
    position: absolute;
    bottom: 7px;
    right: 7px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.slv-card-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.slv-card-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.slv-card-team {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slv-card-team--r {
    justify-content: flex-end;
    text-align: right;
}
.slv-card-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.slv-card-abbr {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--surface3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    flex-shrink: 0;
}
.slv-card-score {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    flex-shrink: 0;
    letter-spacing: .02em;
    text-align: center;
    min-width: 28px;
}
.slv-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slv-card-game {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.slv-card-sep { opacity: .5; }
.slv-card-trn {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .slv-card { flex: 0 0 180px; }
}


:root {
  --db-pill: 999px;
  --db-r: 14px;
  --db-r-sm: 10px;
  --db-ease: .18s cubic-bezier(.4,0,.2,1);
}

.content-wrap--full { grid-template-columns: 1fr; padding: 0; }

.player-content-shell {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border-radius: 20px;
  margin: 40px auto;
  width: 100%;
  padding: 0px 0px 24px 0px;
  box-sizing: border-box;
}
.player-content-shell--setup {
  min-height: 100vh;
  border-radius: 0;
  margin: 0;
  max-width: 100%;
}

.page-profile-bg ~ .layout .player-content-shell {
  background: rgba(7,6,14,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

[data-theme="light"] .page-profile-bg ~ .layout .player-content-shell {
  background: rgba(37,48,49,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.player-main-new { min-width: 0; overflow: hidden; }

.plnav {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-h); z-index: 90;
  overflow-x: auto; scrollbar-width: none;
}
.plnav::-webkit-scrollbar { display: none; }
.plnav-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: var(--db-pill);
  font-size: 13px; font-weight: 700; color: var(--muted2);
  text-decoration: none; white-space: nowrap;
  transition: background var(--db-ease), color var(--db-ease);
  border: 1px solid transparent; flex-shrink: 0;
}
.plnav-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
.plnav-item.active { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.plnav-item--cta { color: #4ade80; }
.plnav-item--cta:hover { background: rgba(74,222,128,.08); }
.plnav-item--cta.active { background: rgba(74,222,128,.15); border-color: rgba(74,222,128,.3); color: #4ade80; }

.plnav-item--icon { padding: 6px 9px; color: var(--muted); }
.plnav-item--icon:hover { color: var(--text); background: rgba(255,255,255,.06); }

.plnav-badge--gold { background: rgba(251,191,36,.2); color: #fbbf24; }
.plnav-sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; margin: 0 4px; }
.plnav-spacer { flex: 1; }
.plnav-game-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px;
  white-space: nowrap; flex-shrink: 0; padding: 0 2px;
}

.plnav-game-card {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px 0 7px;
  border-radius: var(--db-pill);
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6);
  text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
  transition: border-color var(--db-ease), color var(--db-ease), background var(--db-ease);
  flex-shrink: 0;
}
.plnav-game-card:hover {
  border-color: rgba(255,255,255,.18);
  color: #fff;
  background: rgba(255,255,255,.07);
}
.plnav-game-card--active {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.plnav-game-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .2;
  transition: opacity var(--db-ease);
}
.plnav-game-card:hover .plnav-game-card-bg { opacity: .3; }
.plnav-game-card--active .plnav-game-card-bg { opacity: .38; }

.plnav-game-card-icon {
  width: 20px; height: 20px; border-radius: 5px;
  object-fit: contain; flex-shrink: 0;
  position: relative; z-index: 1;
}
.plnav-game-card-icon--text {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; color: var(--muted);
  background: rgba(255,255,255,.1); border-radius: 5px;
  width: 20px; height: 20px; flex-shrink: 0;
  position: relative; z-index: 1;
}

.plnav-game-card-name { position: relative; z-index: 1; }

.plnav-game-card-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: #4ade80; position: relative; z-index: 1;
  box-shadow: 0 0 6px rgba(74,222,128,.6);
  animation: livepulse 2s infinite;
}

.db-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--db-pill);
  font-size: 13px; font-weight: 700; cursor: pointer; border: none;
  font-family: inherit; text-decoration: none;
  transition: opacity var(--db-ease), transform var(--db-ease);
  white-space: nowrap;
}
.db-btn:hover:not(:disabled) { opacity: .85; transform: translateY(-1px); }
.db-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.db-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(34,90,235,.3); }
.db-btn--ghost   { background: var(--surface2); border: 1px solid var(--border); color: var(--muted2); }
.db-btn--danger  { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #f87171; }
.db-btn--sm      { padding: 6px 14px; font-size: 12px; }

.db-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--db-pill);
}
.db-tag--dim  { background: rgba(255,255,255,.07); color: var(--muted2); border: 1px solid rgba(255,255,255,.08); }
.db-tag--blue { background: rgba(59,130,246,.14); color: #60a5fa; }
.db-tag--gold { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.2); }
.db-badge {
  font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: var(--db-pill); white-space: nowrap; flex-shrink: 0;
}
.db-badge--green  { background: rgba(74,222,128,.12);  color: #4ade80; }
.db-badge--red    { background: rgba(248,113,113,.12); color: #f87171; }
.db-badge--purple { background: rgba(167,139,250,.12); color: #a78bfa; }
.db-badge--orange { background: rgba(251,146,60,.12);  color: #fb923c; }
.db-badge--blue   { background: rgba(59,130,246,.12);  color: #60a5fa; }
.db-you-tag {
  font-size: 9px; font-weight: 800;
  background: rgba(34,90,235,.2); color: var(--primary);
  padding: 1px 6px; border-radius: var(--db-pill); flex-shrink: 0;
}
.db-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; color: #ef4444; letter-spacing: .5px;
  background: rgba(239,68,68,.1); padding: 3px 9px; border-radius: var(--db-pill);
  border: 1px solid rgba(239,68,68,.22);
}
.db-dot-pulse { width: 6px; height: 6px; background: #ef4444; border-radius: 50%; animation: livepulse 1.4s infinite; }
@keyframes livepulse { 0%,100%{opacity:1} 50%{opacity:.2} }

.db-alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--db-r-sm);
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.db-alert--warn { background: rgba(251,146,60,.1); border: 1px solid rgba(251,146,60,.3); color: #fb923c; }
.db-alert a { color: inherit; text-decoration: underline; }

.db-game-tabs-wrap { padding: 14px 22px 0; }
.db-game-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.db-game-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 7px; border-radius: var(--db-pill);
  font-size: 12px; font-weight: 700; color: var(--muted2);
  text-decoration: none; border: 1px solid var(--border); background: var(--surface);
  transition: border-color var(--db-ease), color var(--db-ease); white-space: nowrap;
}
.db-game-tab:hover { border-color: rgba(255,255,255,.2); color: var(--text); }
.db-game-tab--active { background: var(--primary); border-color: var(--primary); color: #fff; }
.db-game-tab-icon { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; flex-shrink: 0; }
.db-game-tab-icon--placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; color: var(--muted);
  background: rgba(255,255,255,.06); border-radius: 5px;
  width: 20px; height: 20px; flex-shrink: 0;
}

.db-welcome-section {
  position: relative; overflow: hidden;
  padding: 36px 28px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.db-welcome-section-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--ws-bg, none);
  background-size: cover; background-position: center;
  filter: brightness(.15) saturate(1.6); transform: scale(1.04);
}
.db-welcome-section-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,6,14,.97) 0%, rgba(7,6,14,.85) 50%, rgba(7,6,14,.6) 100%);
}
.db-welcome-inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.db-welcome-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.db-welcome-left--row { flex-direction: row !important; align-items: flex-start; }
.db-welcome-greeting {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .9px;
}
.db-welcome-name {
  font-size: 40px; font-weight: 900; letter-spacing: -1.5px;
  line-height: 1; color: #fff; margin: 0;
}

.db-welcome-pills {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px;
}
.db-wpill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800;
  padding: 5px 13px; border-radius: var(--db-pill);
  border: 1px solid rgba(255,255,255,.1);
}
.db-wpill--win  { background: rgba(34,90,235,.18); color: #60a5fa; border-color: rgba(34,90,235,.3); }
.db-wpill--wr   { background: rgba(251,146,60,.15); color: #fb923c; border-color: rgba(251,146,60,.28); }
.db-wpill--wr.db-wpill--wr-good { background: rgba(74,222,128,.13); color: #4ade80; border-color: rgba(74,222,128,.25); }
.db-wpill--tot  { background: rgba(255,255,255,.06); color: var(--muted2); }
.db-wpill--loss { background: rgba(248,113,113,.13); color: #f87171; border-color: rgba(248,113,113,.25); }

.db-welcome-kpis {
  display: flex; align-items: center; gap: 32px; flex-shrink: 0;
}
.db-wkpi {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.db-wkpi-val {
  font-size: 44px; font-weight: 900; letter-spacing: -2px; line-height: 1;
  color: #fff;
}
.db-wkpi-dot  { font-size: 44px; font-weight: 900; color: rgba(255,255,255,.12); line-height: 1; }
.db-wkpi-lbl  { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; text-align: center; }
.db-wkpi-div  { width: 1px; height: 40px; background: rgba(255,255,255,.07); }

.pf-cta {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 28px;
  position: relative; overflow: hidden;
  transition: background .2s;
}
.pf-cta:hover { background: linear-gradient(135deg, rgba(34,90,235,.13) 0%, rgba(124,58,237,.09) 100%); }
.pf-cta::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none;
}
.pf-cta::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, #225AEB, #7c3aed);
  border-radius: 0 2px 2px 0;
}
.pf-cta-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(34,90,235,.2), rgba(124,58,237,.15));
  border: 1px solid rgba(34,90,235,.3);
  display: flex; align-items: center; justify-content: center; color: #60a5fa;
  box-shadow: 0 4px 16px rgba(34,90,235,.15);
}
.pf-cta-body { flex: 1; }
.pf-cta-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.pf-cta-sub   { font-size: 12px; font-weight: 500; color: var(--muted2); line-height: 1.4; }

.db-main-wrap {
  display: flex; flex-direction: column; gap: 14px; padding: 24px 20px 36px;
}

.db-top-grid {
  display: grid;
  grid-template-columns: 210px 1fr 1fr 290px;
  gap: 14px;
  min-height: 220px;
}

.db-bot-grid {
  display: grid;
  grid-template-columns: 210px 1fr 1fr;
  gap: 14px;
}

.db-cell {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.db-cell-head {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  flex-shrink: 0;
}
.db-cell-icon {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c,#60a5fa) 14%, transparent);
  color: var(--c,#60a5fa);
}
.db-cell-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted2); flex: 1;
}
.db-cell-count {
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.06); color: var(--muted);
  padding: 2px 9px; border-radius: var(--db-pill);
  border: 1px solid rgba(255,255,255,.07);
}
.db-cell-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 32px 16px; flex: 1;
  font-size: 12px; color: var(--muted); font-weight: 600; text-align: center;
  line-height: 1.6;
}
.db-cell-empty svg { opacity: .18; }

.db-prof-cell {
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  min-height: 260px;
  border-radius: 20px;
}

.db-prof-cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.db-prof-cell:hover .db-prof-cover { transform: scale(1.05); }

.db-prof-cover--grad {
  background: linear-gradient(145deg,
    rgba(34,90,235,.85) 0%,
    rgba(120,60,220,.75) 45%,
    rgba(7,6,14,1) 100%
  );
  border-radius: 20px;
}

.db-prof-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(7,6,14,.96) 0%,
    rgba(7,6,14,.7)  22%,
    rgba(7,6,14,.2)  45%,
    transparent      65%
  );
}

.db-prof-center-zone {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 14px 8px;
}
.db-prof-ava {
  width: 68px; height: 68px; border-radius: 18px;
  border: 2px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #fff;
  position: relative;
  box-shadow: 0 6px 28px rgba(0,0,0,.6), 0 0 0 4px rgba(255,255,255,.06);
  overflow: visible;
}
.db-prof-online {
  position: absolute; bottom: 2px; right: 2px;
  width: 11px; height: 11px; background: #4ade80;
  border-radius: 50%; border: 2px solid #07060e;
  box-shadow: 0 0 8px rgba(74,222,128,.7);
}
.db-prof-cap-ring {
  position: absolute; inset: -4px; border-radius: 22px;
  border: 2px solid #fbbf24; pointer-events: none;
  box-shadow: 0 0 10px rgba(251,191,36,.3);
}

.db-prof-foot-new {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 13px 14px 15px;
  background: rgba(8, 7, 18, .52);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-top: 1px solid rgba(255,255,255,.08);
}
.db-prof-foot-left {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.db-prof-name {
  font-size: 14px; font-weight: 900; color: #fff; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -.2px;
}
.db-prof-sub {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-prof-foot-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0;
}

.db-prof-balance-pill {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px; font-weight: 800; color: #fff;
  letter-spacing: .1px;
  white-space: nowrap;
}
.db-prof-rating-pill {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.55);
  white-space: nowrap;
}

.db-bot-prof {
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 16px; gap: 10px; position: relative; overflow: hidden;
}
.db-bot-prof-bg {
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(34,90,235,.06), rgba(120,60,220,.04));
  pointer-events: none;
}
.db-bot-prof-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--border);
}
.db-bot-prof-row:last-child { border-bottom: none; }
.db-bot-prof-lbl { font-size: 12px; font-weight: 700; color: var(--muted2); }
.db-bot-prof-val { font-weight: 800; color: var(--text); }
.db-bot-prof-val--green { color: #4ade80; }

.db-matches-big-val {
  font-size: 56px; font-weight: 900; letter-spacing: -3px; line-height: 1; color: #fff;
}
.db-matches-sub { font-size: 12px; color: var(--muted2); font-weight: 600; margin-top: 6px; }
.db-matches-body { padding: 20px 20px; display: flex; flex-direction: column; gap: 18px; flex: 1; }

.db-spark { display: flex; align-items: flex-end; gap: 5px; height: 52px; padding-top: 8px; }
.db-spark-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: rgba(59,130,246,.15);
  transition: background var(--db-ease);
  position: relative; min-height: 3px;
}
.db-spark-bar--active { background: var(--primary); }
.db-spark-bar--win { background: rgba(74,222,128,.45); }
.db-spark-bar--loss { background: rgba(248,113,113,.3); }
.db-spark-labels { display: flex; gap: 5px; margin-top: 6px; }
.db-spark-lbl { flex: 1; font-size: 9px; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .3px; }

.db-kda-body { padding: 20px 20px; display: flex; flex-direction: column; gap: 18px; align-items: center; flex: 1; }
.db-kda-ring-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.db-kda-pct {
  position: absolute; font-size: 22px; font-weight: 900; letter-spacing: -.5px;
}
.db-kda-label-under { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: -6px; }
.db-kda-stats { display: flex; align-items: center; gap: 16px; }
.db-kda-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.db-kda-stat-val { font-size: 22px; font-weight: 900; letter-spacing: -.5px; line-height: 1; }
.db-kda-stat-lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.db-kda-sep { font-size: 20px; font-weight: 300; color: rgba(255,255,255,.08); padding-bottom: 16px; }

.db-trn-mini-stats { display: flex; border-bottom: 1px solid var(--border); }
.db-trn-mini-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 0; border-right: 1px solid var(--border);
}
.db-trn-mini-stat:last-child { border-right: none; }
.db-trn-mini-val { font-size: 15px; font-weight: 900; }
.db-trn-mini-val--green { color: #4ade80; }
.db-trn-mini-val--red   { color: #f87171; }
.db-trn-mini-lbl { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.db-trn-list-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 16px; font-size: 11px; font-weight: 700; color: var(--muted2);
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.01);
}
.db-trn-rows { display: flex; flex-direction: column; overflow-y: auto; flex: 1; }
.db-trn-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: background var(--db-ease);
}
.db-trn-row:last-child { border-bottom: none; }
.db-trn-row:hover { background: rgba(255,255,255,.03); }
.db-trn-row--live { background: rgba(74,222,128,.03); }
.db-trn-row-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted);
}
.db-trn-row-icon img { width: 20px; height: 20px; object-fit: contain; }
.db-trn-row-info { flex: 1; min-width: 0; }
.db-trn-row-name { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-trn-row-meta { font-size: 10px; color: var(--muted2); font-weight: 600; margin-top: 2px; }
.db-trn-row-prize { color: #4ade80; }

.db-mtabs-head {
  display: flex; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: transparent; flex-shrink: 0; gap: 6px; flex-wrap: wrap;
}
.db-mtab {
  padding: 5px 14px; border-radius: var(--db-pill);
  font-size: 12px; font-weight: 700; color: var(--muted);
  cursor: pointer; border: 1px solid transparent; background: none; font-family: inherit;
  transition: background var(--db-ease), color var(--db-ease);
}
.db-mtab:hover { color: var(--text); background: rgba(255,255,255,.05); }
.db-mtab--active {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
  color: var(--text);
}
.db-mtab-all { color: var(--primary); font-size: 12px; font-weight: 700; margin-left: auto; text-decoration: none; }
.db-mtab-all:hover { text-decoration: underline; }

.db-mcal { display: flex; flex-direction: column; overflow-y: auto; flex: 1; }
.db-mcal-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  transition: background var(--db-ease);
}
.db-mcal-item:last-child { border-bottom: none; }
.db-mcal-item:hover { background: rgba(255,255,255,.025); }
.db-mcal-item--live { background: rgba(239,68,68,.04); }
.db-mcal-date {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
}
.db-mcal-day { font-size: 14px; font-weight: 900; color: #fff; line-height: 1; }
.db-mcal-mon { font-size: 8px; font-weight: 800; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }
.db-mcal-info { flex: 1; min-width: 0; }
.db-mcal-title { font-size: 11px; font-weight: 600; color: var(--muted2); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-mcal-teams { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-mcal-time  { font-size: 12px; font-weight: 800; color: var(--primary); flex-shrink: 0; }

.db-hist { display: flex; flex-direction: column; overflow: hidden; }
.db-hist-table { display: flex; flex-direction: column; overflow-y: auto; flex: 1; }
.db-hist-head {
  display: grid; grid-template-columns: 28px 1fr 1fr 44px 38px;
  gap: 8px; padding: 9px 16px;
  background: transparent;
  font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.db-hist-row {
  display: grid; grid-template-columns: 28px 1fr 1fr 44px 38px;
  gap: 8px; padding: 10px 16px; align-items: center;
  border-bottom: 1px solid var(--border); font-size: 12px;
  transition: background var(--db-ease);
}
.db-hist-row:last-child { border-bottom: none; }
.db-hist-row:hover { background: rgba(255,255,255,.025); }
.db-mini-logo {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 800; color: var(--muted2); overflow: hidden;
}
.db-mini-logo img { width: 15px; height: 15px; object-fit: contain; }
.db-hist-opp { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 700; }
.db-hist-opp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-hist-trn { font-size: 11px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-hist-date { color: var(--muted); font-weight: 600; font-size: 11px; }
.db-result-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  padding: 4px 9px; border-radius: var(--db-pill); letter-spacing: .2px;
}
.db-result-badge--win  { background: rgba(74,222,128,.14); color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.db-result-badge--loss { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.2); }

.db-members-section { border-top: 1px solid var(--border); }
.db-mem-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.01);
}
.db-mem-tab {
  font-size: 11px; font-weight: 800; color: var(--text);
  padding-bottom: 2px; border-bottom: 2px solid var(--primary);
}
.db-mem-link {
  font-size: 11px; font-weight: 700; color: var(--muted2); text-decoration: none;
  transition: color var(--db-ease);
}
.db-mem-link:hover { color: var(--text); }
.db-mem-count { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 600; }

.db-mem-table-hdr {
  display: grid; grid-template-columns: 28px 1fr 80px 80px 80px;
  gap: 8px; padding: 7px 16px;
  font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.008);
}
.db-mem-row {
  display: grid; grid-template-columns: 28px 1fr 80px 80px 80px;
  gap: 8px; padding: 9px 16px; align-items: center;
  border-bottom: 1px solid var(--border); font-size: 12px;
  transition: background var(--db-ease);
}
.db-mem-row:last-child { border-bottom: none; }
.db-mem-row:hover { background: rgba(255,255,255,.025); }
.db-mem-row--self { background: rgba(34,90,235,.05); }
.db-mem-num {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--muted2);
}
.db-mem-ava-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.db-mem-ava {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
}
.db-mem-ava--cap { box-shadow: 0 0 0 2px #f59e0b; }
.db-mem-nick { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-mem-role {
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: var(--db-pill);
  background: rgba(245,158,11,.1); color: #fbbf24; white-space: nowrap;
}
.db-mem-role--player { background: rgba(96,165,250,.1); color: #60a5fa; }
.db-mem-wr { font-size: 12px; font-weight: 800; }
.db-mem-wr--g { color: #4ade80; }
.db-mem-wr--r { color: #f87171; }
.db-mem-matches { font-size: 11px; font-weight: 700; color: var(--muted2); }

.tm-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
}
.tm-hero-bg  { position: absolute; inset: 0; }
.tm-hero-blur {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center;
  filter: blur(50px) brightness(.28) saturate(1.6); transform: scale(1.1);
}
.tm-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,6,14,.9) 0%, rgba(7,6,14,.6) 65%, rgba(7,6,14,.35) 100%);
}
.tm-hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.db-hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .22; }
.db-hero-orb--1 { width: 200px; height: 200px; background: var(--primary); top: -60px; left: 40%; }
.db-hero-orb--2 { width: 160px; height: 160px; background: #7c3aed; bottom: -40px; right: 10%; }
.tm-hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 24px; padding: 30px 32px; flex-wrap: wrap;
}
.tm-hero-logo {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.5); cursor: pointer;
}
.tm-hero-logo img  { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.tm-hero-logo span { font-size: 28px; font-weight: 900; color: #fff; }
.tm-logo-edit {
  position: absolute; inset: 0; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); opacity: 0; transition: opacity .2s; cursor: pointer; color: #fff;
}
.tm-hero-logo:hover .tm-logo-edit { opacity: 1; }
.tm-hero-info  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-hero-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.tm-hero-name  { font-size: 32px; font-weight: 900; letter-spacing: -1px; line-height: 1; margin: 0; color: #fff; }
.tm-hero-tags  { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tm-hero-stats { display: flex; gap: 28px; align-items: flex-end; flex-shrink: 0; }
.tm-hero-stat  { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tm-hero-stat-val   { font-size: 28px; font-weight: 900; color: #fff; line-height: 1; }
.tm-hero-stat-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.tm-tabs {
  display: flex; gap: 4px; padding: 10px 18px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.01);
}
.tm-tab {
  padding: 6px 16px; border-radius: var(--db-pill);
  font-size: 13px; font-weight: 700; color: var(--muted);
  cursor: pointer; border: 1px solid transparent; background: none; font-family: inherit;
  transition: background var(--db-ease), color var(--db-ease), border-color var(--db-ease);
  display: flex; gap: 5px; align-items: center;border-radius: 12px;border: 1px solid #3c3c3c;
}
.tm-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tm-tab--active { background: var(--surface2); border-color: var(--border); color: var(--text); }
.tm-panel { display: none; flex-direction: column; }
.tm-panel--active { display: flex; }

.tm-members { display: flex; flex-direction: column; }
.tm-member {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 22px; border-bottom: 1px solid var(--border);
  transition: background var(--db-ease);
}
.tm-member:last-child { border-bottom: none; }
.tm-member:hover { background: rgba(255,255,255,.025); }
.tm-member-ava {
  width: 42px; height: 42px; border-radius: 11px; position: relative; flex-shrink: 0;
}
.tm-member-ava img,
.tm-member-ava span {
  width: 42px; height: 42px; border-radius: 11px; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.db-roster-cap {
  position: absolute; bottom: -3px; right: -3px;
  width: 14px; height: 14px; border-radius: 5px;
  background: #f59e0b; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--surface); color: #fff; font-size: 7px;
}
.tm-member-info { flex: 1; min-width: 0; }
.tm-member-nick {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 800; flex-wrap: wrap;
}
.tm-member-sub { display: flex; align-items: center; gap: 7px; margin-top: 4px; flex-wrap: wrap; }
.tm-member-sub span { font-size: 11px; color: var(--muted2); font-weight: 600; }
.tm-member-stats { display: flex; gap: 20px; flex-shrink: 0; }
.tm-member-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tm-member-stat-val   { font-size: 15px; font-weight: 900; line-height: 1; }
.tm-member-stat-label { font-size: 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.tm-member-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tm-action-btn {
  width: 32px; height: 32px; border-radius: var(--db-pill);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid transparent; font-family: inherit;
  transition: background var(--db-ease), border-color var(--db-ease);
}
.tm-action-btn--ghost  { background: var(--surface2); border-color: var(--border); color: var(--muted2); }
.tm-action-btn--ghost:hover  { border-color: #fbbf24; color: #fbbf24; background: rgba(245,158,11,.1); }
.tm-action-btn--danger { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.2); color: #f87171; }
.tm-action-btn--danger:hover { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.4); }

.tm-settings-wrap { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tm-settings-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: flex-start; }
.db-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--db-r); overflow: hidden; }
.db-section-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.01);
}
.db-section-icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ibg, rgba(255,255,255,.06)); color: var(--ic, var(--muted2)); flex-shrink: 0;
}
.db-section-title { font-size: 12px; font-weight: 800; color: var(--text); flex: 1; }
.tm-danger-zone   { border-color: rgba(239,68,68,.2) !important; }
.tm-danger-item   { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.tm-danger-title  { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tm-danger-sub    { font-size: 12px; color: var(--muted2); font-weight: 600; }

.tm-toast {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--db-pill);
  font-size: 13px; font-weight: 700; font-family: inherit;
  box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 9999;
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1) forwards;
}
.tm-toast--success { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.3); color: #4ade80; }
.tm-toast--error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #f87171; }
.tm-toast--info    { background: rgba(34,90,235,.14);  border: 1px solid rgba(34,90,235,.35); color: #a5b4fc; }
@keyframes toastIn { from{opacity:0;transform:translateY(10px) scale(.95)} to{opacity:1;transform:none} }

.ctf-form   { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ctf-row    { display: flex; flex-direction: column; gap: 14px; }
.ctf-row--2 { flex-direction: row; }
.ctf-row--2 > * { flex: 1; min-width: 0; }
.ctf-field  { display: flex; flex-direction: column; gap: 5px; }
.ctf-label  { font-size: 12px; font-weight: 700; color: var(--muted2); }
.ctf-field--required .ctf-label::after { content: ' *'; color: #f87171; }
.ctf-input, .ctf-select, .ctf-textarea {
  padding: 9px 13px; border-radius: var(--db-r-sm);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 600; font-family: inherit;
  transition: border-color var(--db-ease); outline: none;
  width: 100%; box-sizing: border-box;
}
.ctf-input:focus, .ctf-select:focus, .ctf-textarea:focus { border-color: var(--primary); }
.ctf-textarea { resize: vertical; min-height: 80px; }
.ctf-hint  { font-size: 11px; color: var(--muted); font-weight: 600; }
.ctf-banner-wrap {
  border: 1px dashed var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90px;
}
.ctf-banner-preview {
  width: 100%; height: 130px;
  object-fit: cover; display: block;
}
.ctf-banner-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px; color: var(--muted); font-size: 12px; font-weight: 600;
}
.ctf-banner-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--primary); cursor: pointer;
  padding: 7px 16px; margin: 8px;
  border-radius: 8px; border: 1px solid var(--primary);
  background: var(--primary-light);
  transition: background .15s, color .15s;
}
.ctf-banner-btn:hover { background: var(--primary); color: #fff; }
.ctf-section-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted);
  padding: 10px 0 4px; border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.ctf-color {
  width: 42px; height: 36px; padding: 3px 4px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface2); cursor: pointer; flex-shrink: 0;
}
.ctf-error {
  font-size: 12px; color: #f87171; font-weight: 700;
  padding: 9px 13px; border-radius: var(--db-r-sm);
  background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.22);
}
.ctf-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ctf-notice { padding: 18px; font-size: 13px; font-weight: 600; color: var(--muted2); line-height: 1.7; }
.ctf-submit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--db-pill);
  background: var(--primary); color: #fff; border: none;
  font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px rgba(34,90,235,.3);
  transition: opacity var(--db-ease), transform var(--db-ease);
}
.ctf-submit-btn:hover:not(:disabled) { opacity: .85; transform: translateY(-1px); }
.ctf-submit-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.ctf-cancel-btn {
  display: inline-flex; padding: 9px 18px; border-radius: var(--db-pill);
  background: transparent; border: 1px solid var(--border);
  color: var(--muted2); font-size: 13px; font-weight: 700; text-decoration: none;
  transition: color var(--db-ease);
}
.ctf-cancel-btn:hover { color: var(--text); }
.ctf-logo-upload {
  display: flex; align-items: center; gap: 18px; padding: 18px;
  border-radius: var(--db-r); border: 2px dashed var(--border); cursor: pointer;
  transition: border-color var(--db-ease);
}
.ctf-logo-upload:hover { border-color: var(--primary); }
.ctf-logo-preview {
  width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden;
}
.ctf-logo-info { display: flex; flex-direction: column; gap: 5px; }
.ctf-logo-title { font-size: 13px; font-weight: 700; color: var(--text); }
.ctf-logo-sub   { font-size: 11px; color: var(--muted2); font-weight: 600; }
.ctf-logo-btn {
  display: inline-flex; padding: 5px 12px; border-radius: var(--db-pill);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted2); font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; align-self: flex-start;
  transition: color var(--db-ease);
}
.ctf-logo-btn:hover { color: var(--text); }

.pd-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background: #07060e; padding: 36px 32px;
}
.pd-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 150% at 0% 50%, rgba(34,90,235,.14), transparent);
}
.pd-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.pd-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.pd-hero-ava {
  width: 68px; height: 68px; border-radius: 17px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #fff;
  border: 2px solid rgba(255,255,255,.14); position: relative; overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
}
.pd-hero-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.pd-hero-ava-ring { position: absolute; inset: -4px; border-radius: 21px; border: 2px solid rgba(34,90,235,.4); pointer-events: none; }
.pd-hero-online {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px; background: #4ade80;
  border-radius: 50%; border: 2.5px solid #07060e;
}
.pd-hero-info  { display: flex; flex-direction: column; gap: 8px; }
.pd-hero-greeting { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.pd-hero-username { font-size: 28px; font-weight: 900; letter-spacing: -1px; line-height: 1; color: #fff; margin: 0; }
.pd-hero-badges { display: flex; gap: 7px; }
.pd-hbadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--db-pill);
}
.pd-hbadge--game { background: rgba(34,90,235,.14); color: #60a5fa; border: 1px solid rgba(34,90,235,.25); }
.pd-block { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.pd-block-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border);
}
.pd-block-icon {
  width: 27px; height: 27px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pd-block-title { font-size: 13px; font-weight: 800; color: var(--text); }

@media (max-width: 1280px) {
  .db-top-grid { grid-template-columns: 190px 1fr 1fr 260px; }
  .db-bot-grid { grid-template-columns: 190px 1fr 1fr; }
}

.db-welcome-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.db-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  color: var(--muted2);
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.db-settings-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--accent);
  color: var(--text);
}
.db-settings-btn--active {
  background: rgba(248,113,113,.1);
  border-color: rgba(248,113,113,.35);
  color: #f87171;
}
.db-settings-btn--active:hover {
  background: rgba(248,113,113,.18);
  border-color: #f87171;
}

@media (max-width: 1100px) {
  .db-top-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .db-bot-grid { grid-template-columns: 1fr 1fr; }
  .db-bot-grid > *:nth-child(3) { grid-column: 1/-1; }
  .tm-settings-grid { grid-template-columns: 1fr; }
  .db-welcome-kpis { display: none; }
}
@media (max-width: 800px) {
  .db-top-grid { grid-template-columns: 1fr; }
  .db-bot-grid { grid-template-columns: 1fr; }
  .db-mem-table-hdr, .db-mem-row { grid-template-columns: 24px 1fr 60px 60px; }
  .db-mem-row > *:nth-child(5), .db-mem-table-hdr > *:nth-child(5) { display: none; }
  .ctf-row--2 { flex-direction: column; }
}

.db-dota-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 0;
}

.db-dota-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.db-dota-header-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(96,165,250,.1);
  border: 1px solid rgba(96,165,250,.2);
  color: #60a5fa;
  display: flex; align-items: center; justify-content: center;
}
.db-dota-header-title {
  font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -.01em;
}
.db-dota-header-sub {
  font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 600;
}

.db-dota-cards {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.db-dota-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px; gap: 12px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.db-dota-card:last-child { border-right: none; }
.db-dota-card-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  align-self: flex-start;
}

.db-dota-wr-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.db-dota-wr-center {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
}
.db-dota-wr-val {
  font-size: 22px; font-weight: 900; letter-spacing: -.5px; line-height: 1;
}
.db-dota-wr-wl {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
}

.db-dota-kda-big {
  font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1; color: #fff;
}
.db-dota-kda-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-top: -6px;
}
.db-dota-kda-row {
  display: flex; align-items: center; gap: 12px; margin-top: 4px;
}
.db-dota-kda-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.db-dota-kda-stat-val {
  font-size: 20px; font-weight: 900; letter-spacing: -.3px; line-height: 1;
}
.db-dota-kda-stat-lbl {
  font-size: 9px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}

.db-dota-eco-rows {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; align-items: flex-start;
}
.db-dota-eco-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
}
.db-dota-eco-ico {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ec, #fff) 12%, transparent);
  color: var(--ec, #fff);
}
.db-dota-eco-lbl {
  flex: 1; font-size: 12px; font-weight: 600; color: var(--muted2);
  text-align: left;
}
.db-dota-eco-val {
  font-size: 14px; font-weight: 800; color: var(--text);
}

.db-dota-heroes {
  width: 100%; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.db-dota-heroes-lbl {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  text-align: left; margin-bottom: 8px;
}
.db-dota-heroes-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.db-dota-hero-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(96,165,250,.1);
  border: 1px solid rgba(96,165,250,.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700; color: #60a5fa;
  white-space: nowrap;
}
.db-dota-hero-cnt {
  background: rgba(96,165,250,.2);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 10px; font-weight: 900;
}

.db-dota-matches {
  display: flex; flex-direction: column;
}
.db-dota-matches-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  font-size: 12px; font-weight: 800; color: var(--text);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.01);
}
.db-dota-matches-count {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.05);
  padding: 2px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.07);
}
.db-dota-matches-table {
  display: flex; flex-direction: column;
}
.db-dota-matches-thead {
  display: grid;
  grid-template-columns: 140px 1fr 44px 44px 44px 60px 60px 120px;
  gap: 8px; padding: 8px 22px;
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.008);
}
.db-dota-match-row {
  display: grid;
  grid-template-columns: 140px 1fr 44px 44px 44px 60px 60px 120px;
  gap: 8px; padding: 11px 22px; align-items: center;
  border-bottom: 1px solid var(--border); font-size: 13px;
  transition: background var(--db-ease);
}
.db-dota-match-row:last-child { border-bottom: none; }
.db-dota-match-row:hover { background: rgba(255,255,255,.025); }
.db-dota-match-row--win  { border-left: 2px solid rgba(74,222,128,.3); }
.db-dota-match-row--loss { border-left: 2px solid rgba(248,113,113,.2); }

.db-dota-side-badge {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 800;
  padding: 1px 6px; border-radius: 4px;
  margin-left: 5px;
  text-transform: uppercase; letter-spacing: .04em;
}
.db-dota-side-badge--r { background: rgba(74,222,128,.12); color: #4ade80; }
.db-dota-side-badge--d { background: rgba(239,68,68,.12);  color: #f87171; }

.db-dota-hero-cell {
  font-size: 12px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-dota-matchid {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--muted2);
  text-decoration: none; font-family: monospace;
  transition: color var(--db-ease);
}
.db-dota-matchid:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .db-dota-cards { grid-template-columns: 1fr 1fr; }
  .db-dota-card:nth-child(1) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .db-dota-card:nth-child(2) { border-right: none; border-bottom: 1px solid var(--border); }
  .db-dota-card:nth-child(3) { grid-column: 1/-1; border-right: none; }
  .db-dota-matches-thead,
  .db-dota-match-row { grid-template-columns: 120px 1fr 40px 40px 40px 50px 50px; }
  .db-dota-matches-thead > *:last-child,
  .db-dota-match-row > *:last-child { display: none; }
}
@media (max-width: 700px) {
  .db-dota-cards { grid-template-columns: 1fr; }
  .db-dota-card { border-right: none !important; border-bottom: 1px solid var(--border); }
  .db-dota-matches-thead,
  .db-dota-match-row { grid-template-columns: 100px 1fr 36px 36px 36px; }
  .db-dota-matches-thead > *:nth-child(n+6),
  .db-dota-match-row   > *:nth-child(n+6) { display: none; }
}

@media (max-width: 600px) {
  .db-welcome-name { font-size: 28px; }
  .db-hist-head, .db-hist-row { grid-template-columns: 26px 1fr 40px 34px; }
  .db-hist-trn { display: none; }
  .plnav { padding: 7px 12px; }
  .tm-member-stats { display: none; }
  .pd-hero { padding: 22px 18px; }
  .pd-hero-username { font-size: 22px; }
  .tm-hero-name { font-size: 22px; }
  .tm-hero-content { padding: 20px; }
  .tm-hero-stats { display: none; }
}

.db-flash-bar {
  padding: 0 24px 12px;
}
.db-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  animation: fadeUp .25s ease;
}
.db-flash--ok  { background: rgba(74,222,128,.08);  color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.db-flash--err { background: rgba(248,113,113,.08); color: #f87171; border: 1px solid rgba(248,113,113,.2); }

.stp-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  pointer-events: none;
}

.stp-panel {
  pointer-events: all;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(0,0,0,.45);
  animation: stp-slide-in .22s cubic-bezier(.4,0,.2,1);
}
@keyframes stp-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.stp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface2);
}
.stp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stp-game-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}
.stp-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.stp-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  font-weight: 600;
}
.stp-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--muted2);
  text-decoration: none;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.stp-close:hover { background: rgba(248,113,113,.15); color: #f87171; border-color: rgba(248,113,113,.3); }

.stp-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.stp-flash--ok  { background: rgba(74,222,128,.08); color: #4ade80; border-bottom: 1px solid rgba(74,222,128,.15); }
.stp-flash--err { background: rgba(248,113,113,.08); color: #f87171; border-bottom: 1px solid rgba(248,113,113,.15); }

.stp-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.stp-col {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stp-col:last-child { border-right: none; }
.stp-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.stp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  flex: 1;
}

.stp-form { display: contents; }
.stp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.stp-field:last-of-type { border-bottom: none; }
.stp-field--auto { opacity: .75; }

.stp-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stp-auto-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(96,165,250,.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,.2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stp-auto-val {
  font-size: 12px;
  color: var(--text);
  padding: 6px 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 7px;
  min-height: 32px;
  word-break: break-all;
}

.stp-input {
  width: 100%;
  padding: 7px 11px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.stp-input:focus { border-color: var(--accent); }

.stp-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: var(--primary);
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.stp-save-btn:hover { opacity: .88; }

.stp-sync-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stp-sync-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stp-sync-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(96,165,250,.1);
  border: 1px solid rgba(96,165,250,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}
.stp-sync-name  { font-size: 13px; font-weight: 800; color: var(--text); }
.stp-sync-desc  { font-size: 11px; color: var(--muted); margin-top: 2px; }

.stp-sync-status { display: flex; flex-direction: column; gap: 5px; }
.stp-sync-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
}
.stp-sync-status-row--ok   { color: #4ade80; }
.stp-sync-status-row--warn { color: #fbbf24; }
.stp-sync-status-row code {
  background: rgba(255,255,255,.07);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: .02em;
}

.stp-sync-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px;
  background: rgba(96,165,250,.15);
  border: 1px solid rgba(96,165,250,.3);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
.stp-sync-btn:hover:not(:disabled) { background: rgba(96,165,250,.25); border-color: #60a5fa; }
.stp-sync-btn--disabled { opacity: .4; cursor: not-allowed; }

.stp-sync-fields {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.stp-sync-fields-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.stp-sync-field-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}
.stp-sync-field-row--on  { color: var(--muted2); }
.stp-sync-field-row--off { color: var(--muted); }
.stp-sync-field-hint {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  font-weight: 400;
  font-style: italic;
}

@media (max-width: 700px) {
  .stp-panel  { width: 100vw; }
  .stp-body   { flex-direction: column; overflow-y: auto; }
  .stp-col    { border-right: none; border-bottom: 1px solid var(--border); }
}

.dota-medal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--medal-size, 40px);
  height: var(--medal-size, 40px);
  flex-shrink: 0;
  vertical-align: middle;
}
.dota-medal__base {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.dota-medal__stars {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: auto;
  pointer-events: none;
}

.dota-medal__lb {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(var(--medal-size, 40px) * .22);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.8);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -.02em;
}

.db-prof-name .dota-medal { --medal-size: 36px; }

.db-dota-header .dota-medal  { --medal-size: 48px; }

.tm-member .dota-medal       { --medal-size: 28px; }

.db-abbr {
  cursor: help;
  border-bottom: 1px dashed rgba(255,255,255,.3);
  text-decoration: none;
}
.db-abbr:hover {
  border-bottom-color: rgba(255,255,255,.6);
}

.db-dota-fav-heroes {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.db-dota-fav-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.01);
}
.db-dota-fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.db-dota-fav-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: background .18s;
}
.db-dota-fav-card:last-child { border-right: none; }
.db-dota-fav-card:hover { background: rgba(255,255,255,.025); }
.db-dota-fav-card--top {
  background: rgba(167,139,250,.03);
  border-bottom: 2px solid rgba(167,139,250,.25);
}

.db-dota-fav-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.db-dota-fav-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .08;
  transition: opacity .3s;
  filter: saturate(1.4);
}
.db-dota-fav-card:hover .db-dota-fav-card-bg img { opacity: .14; }
.db-dota-fav-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 35%, transparent 100%);
}

.db-dota-fav-card-icon {
  width: 48px;
  height: 27px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.db-dota-fav-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-dota-fav-card-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  position: relative;
  z-index: 1;
  flex: 1;
}
.db-dota-fav-hero-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}
.db-dota-fav-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.db-dota-fav-games {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
}
.db-dota-fav-wr {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.db-dota-fav-wr--good {
  background: rgba(74,222,128,.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.2);
}
.db-dota-fav-wr--bad {
  background: rgba(248,113,113,.12);
  color: #f87171;
  border: 1px solid rgba(248,113,113,.2);
}

.db-dota-fav-pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251,191,36,.12);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,.25);
  cursor: help;
  white-space: nowrap;
}
.db-dota-fav-pct::before {
  content: '★';
  font-size: 8px;
}

.db-dota-fav-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(167,139,250,.2);
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,.35);
  letter-spacing: .03em;
}

@media (max-width: 900px) {
  .db-dota-fav-grid { grid-template-columns: 1fr; }
  .db-dota-fav-card { border-right: none; border-bottom: 1px solid var(--border); }
}

.db-dota-synergy {
  border-top: 1px solid var(--border);
}
.db-dota-synergy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.db-dota-synergy-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .18s;
  position: relative;
  overflow: hidden;
}
.db-dota-synergy-card:hover { background: rgba(255,255,255,.025); }
.db-dota-synergy-card--team {
  background: rgba(34,90,235,.03);
}
.db-dota-synergy-card--team::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.db-dota-syn-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(255,255,255,.12);
}
.db-dota-syn-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.db-dota-syn-team-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60a5fa;
  border: 2px solid var(--surface);
  box-shadow: 0 0 6px rgba(96,165,250,.5);
}

.db-dota-syn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.db-dota-syn-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.db-dota-syn-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted2);
  font-weight: 600;
}

.db-dota-syn-bar-wrap {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.07);
  flex-shrink: 0;
  overflow: hidden;
}
.db-dota-syn-bar {
  height: 100%;
  border-radius: 2px;
  transition: width .4s;
}

@media (max-width: 700px) {
  .db-dota-synergy-grid { grid-template-columns: 1fr; }
  .db-dota-synergy-card { border-right: none; }
}

.db-cs2-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 0;
}

.db-cs2-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
  flex-wrap: wrap;
  gap: 10px;
}
.db-cs2-header-left { display: flex; align-items: center; gap: 12px; }
.db-cs2-header-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.2);
  display: flex; align-items: center; justify-content: center;
}
.db-cs2-header-title { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.db-cs2-header-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }

.db-cs2-player-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 700;
}
.db-cs2-player-ava {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.db-cs2-player-ava--letter {
  background: linear-gradient(135deg, #f97316, #ef4444);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #fff;
}
.db-cs2-country {
  font-size: 10px; font-weight: 800; color: var(--muted);
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px;
}
.db-cs2-faceit-link {
  color: var(--muted); opacity: .6;
  display: flex; align-items: center;
  transition: opacity .15s;
}
.db-cs2-faceit-link:hover { opacity: 1; }

.db-cs2-elo-strip {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.db-cs2-level-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 200px;
}
.db-cs2-level-badge {
  width: 52px; height: 52px; border-radius: 14px;
  border: 2px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.db-cs2-level-num  { font-size: 26px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.db-cs2-level-label { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.db-cs2-elo-val   { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.db-cs2-elo-val span { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 3px; }

.db-cs2-elo-bar-wrap {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.08);
  margin-top: 8px; overflow: hidden;
  width: 100%;
}
.db-cs2-elo-bar {
  height: 100%; border-radius: 2px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.db-cs2-elo-range { font-size: 10px; color: var(--muted); margin-top: 4px; font-weight: 600; }

.db-cs2-metrics {
  display: flex; flex: 1; align-items: center; flex-wrap: wrap;
}
.db-cs2-metric {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 20px 16px; gap: 6px;
  border-right: 1px solid var(--border);
  flex: 1; min-width: 80px;
  text-align: center;
}
.db-cs2-metric:last-child { border-right: none; }
.db-cs2-metric-val {
  font-size: 28px; font-weight: 900; letter-spacing: -1px; line-height: 1;
  color: #fff;
}
.db-cs2-metric-lbl {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
}
.db-cs2-metric--maps { align-items: flex-start; text-align: left; }
.db-cs2-maps-list { display: flex; flex-direction: column; gap: 4px; }
.db-cs2-map-tag {
  font-size: 11px; font-weight: 700; color: var(--text);
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.2);
  padding: 2px 8px; border-radius: 5px;
  width: fit-content;
}

.db-cs2-matches-hdr {
  display: flex; align-items: center; padding: 12px 22px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.01);
}
.db-cs2-matches-hdr-title {
  font-size: 12px; font-weight: 800; color: var(--text);
  text-transform: uppercase; letter-spacing: .06em;
}

.db-cs2-match-thead {
  display: grid;
  grid-template-columns: 64px 1fr 100px 64px 80px 80px;
  gap: 0;
  padding: 7px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.db-cs2-match-thead > span {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}

.db-cs2-match-row {
  display: grid;
  grid-template-columns: 64px 1fr 100px 64px 80px 80px;
  gap: 0;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background .15s;
}
.db-cs2-match-row:last-child { border-bottom: none; }
.db-cs2-match-row:hover { background: rgba(255,255,255,.025); }
.db-cs2-match-row--win  { border-left: 2px solid rgba(74,222,128,.35); }
.db-cs2-match-row--loss { border-left: 2px solid rgba(248,113,113,.25); }

.db-cs2-result-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  font-size: 11px; font-weight: 900;
}
.db-cs2-result-badge--win  { background: rgba(74,222,128,.12);  color: #4ade80; border: 1px solid rgba(74,222,128,.25); }
.db-cs2-result-badge--loss { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.25); }

.db-cs2-map-pill {
  font-size: 12px; font-weight: 700; color: var(--text);
  text-transform: capitalize;
}

.db-cs2-kd-val   { font-size: 12px; font-weight: 700; display: block; }
.db-cs2-kd-ratio { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.db-cs2-kd--good { color: #4ade80; }
.db-cs2-kd--bad  { color: #f87171; }

.db-cs2-match-score, .db-cs2-match-date, .db-cs2-match-hs {
  font-size: 11px; font-weight: 600; color: var(--muted2);
}

.db-cs2-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 60px 20px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px;
}
.db-cs2-empty-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.2);
  color: #f97316;
  display: flex; align-items: center; justify-content: center;
}
.db-cs2-empty-title { font-size: 16px; font-weight: 800; color: var(--text); }
.db-cs2-empty-sub   { font-size: 13px; color: var(--muted); max-width: 340px; line-height: 1.6; }

@media (max-width: 900px) {
  .db-cs2-level-card { min-width: 160px; padding: 16px 18px; gap: 12px; }
  .db-cs2-level-badge { width: 44px; height: 44px; border-radius: 11px; }
  .db-cs2-level-num  { font-size: 21px; }
  .db-cs2-elo-val    { font-size: 18px; }
  .db-cs2-metric-val { font-size: 22px; }
  .db-cs2-metric     { padding: 14px 10px; min-width: 70px; }
}
@media (max-width: 700px) {
  .db-cs2-elo-strip  { flex-direction: column; }
  .db-cs2-level-card { border-right: none; border-bottom: 1px solid var(--border); min-width: 0; width: 100%; }
  .db-cs2-metrics    { width: 100%; }
  .db-cs2-match-thead,
  .db-cs2-match-row  { grid-template-columns: 48px 1fr 80px 52px; }
  .db-cs2-match-row > *:nth-child(5),
  .db-cs2-match-row > *:nth-child(6),
  .db-cs2-match-thead > *:nth-child(5),
  .db-cs2-match-thead > *:nth-child(6) { display: none; }
  .db-cs2-header { padding: 12px 14px; }
  .db-cs2-matches-hdr { padding: 10px 14px; }
  .db-cs2-match-row { padding: 8px 14px; }
}
@media (max-width: 480px) {
  .db-cs2-metric     { padding: 12px 8px; min-width: 60px; }
  .db-cs2-metric-val { font-size: 18px; }
  .db-cs2-match-thead,
  .db-cs2-match-row  { grid-template-columns: 40px 1fr 70px; }
  .db-cs2-match-row > *:nth-child(n+4),
  .db-cs2-match-thead > *:nth-child(n+4) { display: none; }
}

@media (max-width: 1280px) {
  .db-top-grid { grid-template-columns: 190px 1fr 1fr 240px; }
  .db-bot-grid { grid-template-columns: 190px 1fr 1fr; }
  .bnr-kpi     { padding: 10px 16px; min-width: 60px; }
  .bnr-name    { font-size: 30px; }
}

/* ── 1100px ── */
@media (max-width: 1100px) {
  /* Dashboard grids */
  .db-top-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .db-bot-grid { grid-template-columns: 1fr 1fr; }
  .db-bot-grid > *:nth-child(3) { grid-column: 1 / -1; }

  /* Player nav */
  .plnav { padding: 8px 14px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .plnav::-webkit-scrollbar { display: none; }
  .plnav-item { white-space: nowrap; flex-shrink: 0; }

  /* Dota cards */
  .db-dota-cards { grid-template-columns: 1fr 1fr; }
  .db-dota-card:nth-child(1) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .db-dota-card:nth-child(2) { border-right: none; border-bottom: 1px solid var(--border); }
  .db-dota-card:nth-child(3) { grid-column: 1 / -1; border-right: none; }
  .db-dota-matches-thead,
  .db-dota-match-row { grid-template-columns: 120px 1fr 40px 40px 40px 50px 50px; }
  .db-dota-matches-thead > *:last-child,
  .db-dota-match-row > *:last-child { display: none; }

  /* Team settings */
  .tm-settings-grid { grid-template-columns: 1fr; }

  /* Hero banner KPIs */
  .bnr-kpis { display: none; }
  .bnr-name  { font-size: 28px; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  /* Dashboard */
  .db-main-wrap { gap: 10px; padding: 10px; }
  .db-top-grid  { grid-template-columns: 1fr 1fr; gap: 8px; }
  .db-bot-grid  { grid-template-columns: 1fr; gap: 8px; }
  .db-bot-grid > *:nth-child(3) { grid-column: auto; }

  /* Hero banner */
  .bnr-inner   { padding: 20px 16px 18px; gap: 16px; flex-direction: column; align-items: flex-start; }
  .bnr-left    { gap: 14px; }
  .bnr-ava, .bnr-ava-letter { width: 56px; height: 56px; font-size: 22px; }
  .bnr-name    { font-size: 24px; }
  .bnr-right   { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .bnr-kpis    { display: flex; width: auto; }
  .bnr-kpi     { padding: 8px 14px; min-width: 50px; }
  .bnr-kpi-val { font-size: 18px; }
  .bnr-kpi-lbl { font-size: 8px; }

  /* Dota fav heroes */
  .db-dota-fav-grid { grid-template-columns: 1fr; }
  .db-dota-fav-card { border-right: none; border-bottom: 1px solid var(--border); }

  /* Team page */
  .tm-hero-content  { padding: 20px 16px; }
  .tm-hero-name     { font-size: 24px; }
  .tm-hero-stats    { flex-wrap: wrap; gap: 16px; }

  /* Player page (public) */
  .pd-hero-inner    { padding: 18px 16px; }
  .pd-hero-username { font-size: 24px; }

  /* CTA banner */
  .pf-cta { padding: 14px 16px; }
  .pf-cta-icon { width: 38px; height: 38px; }
}

/* ── 700px ── */
@media (max-width: 700px) {
  /* Dashboard grids — одна колонка */
  .db-top-grid  { grid-template-columns: 1fr; }
  .db-bot-grid  { grid-template-columns: 1fr; }

  /* Шапка дашборда */
  .bnr-inner   { padding: 16px 14px; }
  .bnr-ava, .bnr-ava-letter { width: 48px; height: 48px; border-radius: 12px; font-size: 19px; }
  .bnr-name    { font-size: 20px; letter-spacing: -.5px; }
  .bnr-game-tag { display: none; }
  .bnr-right   { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bnr-kpis    { width: 100%; justify-content: stretch; }
  .bnr-kpi     { flex: 1; padding: 8px 10px; }
  .bnr-kpi-val { font-size: 16px; }

  /* Пилюли */
  .bnr-pills   { gap: 5px; }
  .bnr-pill    { font-size: 10px; padding: 3px 9px; }

  /* Таблица состава */
  .db-mem-table-hdr, .db-mem-row { grid-template-columns: 24px 1fr 60px 60px; }
  .db-mem-row > *:nth-child(5), .db-mem-table-hdr > *:nth-child(5) { display: none; }

  /* История матчей */
  .db-hist-head, .db-hist-row { grid-template-columns: 26px 1fr 40px 34px; }
  .db-hist-trn { display: none; }

  /* Dota cards */
  .db-dota-cards { grid-template-columns: 1fr; }
  .db-dota-card  { border-right: none !important; border-bottom: 1px solid var(--border); }
  .db-dota-matches-thead,
  .db-dota-match-row { grid-template-columns: 100px 1fr 36px 36px 36px; }
  .db-dota-matches-thead > *:nth-child(n+6),
  .db-dota-match-row   > *:nth-child(n+6) { display: none; }

  /* Player nav */
  .plnav { padding: 7px 12px; }

  /* Форма создания команды */
  .ctf-row--2 { flex-direction: column; }

  /* Панель настроек (боковая) */
  .stp-panel  { width: 100vw; }
  .stp-body   { flex-direction: column; overflow-y: auto; }
  .stp-col    { border-right: none; border-bottom: 1px solid var(--border); }

  /* Team */
  .tm-member-stats { display: none; }
  .tm-settings-grid { grid-template-columns: 1fr; }
}

/* ── 480px: смартфоны ── */
@media (max-width: 480px) {
  /* Layout */
  .db-main-wrap { gap: 8px; padding: 8px; }

  /* Hero banner */
  .bnr-inner   { padding: 14px 12px; gap: 12px; }
  .bnr-left    { gap: 10px; }
  .bnr-ava, .bnr-ava-letter { width: 44px; height: 44px; border-radius: 10px; font-size: 17px; }
  .bnr-name    { font-size: 18px; }
  .bnr-label   { font-size: 9px; }
  .bnr-pills   { gap: 4px; }
  .bnr-pill    { font-size: 10px; padding: 3px 8px; }
  .bnr-kpi     { padding: 7px 8px; min-width: 44px; }
  .bnr-kpi-val { font-size: 14px; letter-spacing: -.5px; }

  /* Dashboard cells */
  .db-cell-head  { padding: 10px 12px; }
  .db-cell-title { font-size: 11px; }
  .db-matches-big-val { font-size: 36px; }

  /* KDA ring */
  .db-kda-ring-wrap svg { width: 90px; height: 90px; }
  .db-kda-pct { font-size: 20px; }

  /* Profile card */
  .db-prof-foot-new { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
  .db-prof-foot-right { width: 100%; justify-content: flex-start; }
  .db-prof-name { font-size: 13px; }

  /* Member table */
  .db-mem-table-hdr, .db-mem-row { grid-template-columns: 22px 1fr 55px; }
  .db-mem-row > *:nth-child(4), .db-mem-table-hdr > *:nth-child(4),
  .db-mem-row > *:nth-child(5), .db-mem-table-hdr > *:nth-child(5) { display: none; }

  /* History table */
  .db-hist-head, .db-hist-row { grid-template-columns: 24px 1fr 34px; }
  .db-hist-date { display: none; }

  /* Dota stats */
  .db-dota-kda-big  { font-size: 36px; }
  .db-dota-wr-wrap svg { width: 76px; height: 76px; }
  .db-dota-wr-val   { font-size: 18px; }
  .db-dota-fav-card { padding: 12px 14px; gap: 10px; }
  .db-dota-fav-card-icon { width: 40px; height: 22px; }
  .db-dota-fav-hero-name { font-size: 12px; }

  /* Player tab nav */
  .plnav { gap: 4px; padding: 6px 10px; }
  .plnav-item { font-size: 11px; padding: 5px 10px; }

  /* CTA */
  .pf-cta { padding: 12px 14px; gap: 12px; }
  .pf-cta-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
  .pf-cta-title { font-size: 13px; }
  .pf-cta-sub   { font-size: 11px; }

  /* Team / Player public */
  .tm-hero-name     { font-size: 20px; }
  .pd-hero-username { font-size: 20px; }
  .pd-hero-inner    { padding: 16px 14px; }

  /* Flash */
  .db-flash-bar { padding: 0 12px 10px; }
  .db-flash { font-size: 12px; }

  /* Auto CTA info banner */
  #db-auto-cta { padding: 10px 12px; gap: 10px; }
}

/* ── Оболочка профиля ── */
[data-theme="light"] .player-content-shell {
  background: var(--bg2);
  box-shadow: 0 2px 24px rgba(37,48,49,.08);
}

/* ── Pill Nav ── */
[data-theme="light"] .plnav {
  background: var(--surface);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);  
}
[data-theme="light"] .plnav-item { color: #000; }
[data-theme="light"] .plnav-item:hover { background: var(--primary); color: #fff; }
[data-theme="light"] .plnav-game-card {
  background: #575757;
  border-color: var(--border2);
  color: #fff;
}
[data-theme="light"] .plnav-game-card:hover { background: var(--surface3,var(--surface2)); border-color: var(--border3); color: var(--text); }
[data-theme="light"] .db-cell {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .db-cell-head { border-bottom-color: var(--border); }
[data-theme="light"] .db-cell-count { background: rgba(0,0,0,.05); color: var(--muted); border-color: var(--border); }
[data-theme="light"] .db-trn-row:hover { background: color-mix(in srgb,var(--primary) 3%,transparent); }
[data-theme="light"] .db-trn-row { border-bottom-color: var(--border); }
[data-theme="light"] .db-trn-row-icon { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .db-trn-mini-stat { border-right-color: var(--border); }
[data-theme="light"] .db-trn-mini-stat { border-bottom-color: var(--border); }
[data-theme="light"] .db-mcal-item { border-bottom-color: var(--border); }
[data-theme="light"] .db-mcal-item:hover { background: color-mix(in srgb,var(--primary) 3%,transparent); }
[data-theme="light"] .db-mcal-date {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .db-mcal-day { color: var(--text); }
[data-theme="light"] .db-hist-row { border-bottom-color: var(--border); }
[data-theme="light"] .db-hist-row:hover { background: color-mix(in srgb,var(--primary) 3%,transparent); }
[data-theme="light"] .db-mini-logo { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .db-welcome-section-overlay {
  background: linear-gradient(90deg, color-mix(in srgb,var(--bg) 95%,transparent) 0%, color-mix(in srgb,var(--bg) 80%,transparent) 50%, color-mix(in srgb,var(--bg) 55%,transparent) 100%);
}
[data-theme="light"] .db-welcome-name { color: var(--text); }
[data-theme="light"] .db-welcome-section { background: var(--bg); border-bottom-color: var(--border); }
[data-theme="light"] .db-section { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .db-section-head { background: var(--surface2); border-bottom-color: var(--border); }
[data-theme="light"] .tm-hero-overlay {
  background: linear-gradient(135deg, color-mix(in srgb,var(--bg) 88%,transparent) 0%, color-mix(in srgb,var(--bg) 55%,transparent) 65%, color-mix(in srgb,var(--bg) 30%,transparent) 100%);
}
[data-theme="light"] .tm-tabs { background: var(--surface2); border-bottom-color: var(--border); }
[data-theme="light"] .tm-member { border-bottom-color: var(--border); }
[data-theme="light"] .tm-member:hover { background: color-mix(in srgb,var(--primary) 3%,transparent); }
[data-theme="light"] .db-dota-section,
[data-theme="light"] .db-cs2-section,
[data-theme="light"] .db-cs2-empty {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .db-dota-header,
[data-theme="light"] .db-cs2-header { background: var(--surface2); border-bottom-color: var(--border); }
[data-theme="light"] .db-dota-cards .db-dota-card { border-color: var(--border); }
[data-theme="light"] .db-dota-matches-hdr { border-bottom-color: var(--border); }
[data-theme="light"] .db-dota-match-row { border-bottom-color: var(--border); }
[data-theme="light"] .db-dota-match-row:hover { background: color-mix(in srgb,var(--primary) 3%,transparent); }
[data-theme="light"] .db-dota-fav-hdr { border-bottom-color: var(--border); }
[data-theme="light"] .db-dota-fav-card { border-right-color: var(--border); border-bottom-color: var(--border); }
[data-theme="light"] .db-dota-fav-card-overlay {
  background: linear-gradient(90deg, var(--surface) 35%, transparent 100%);
}
[data-theme="light"] .db-dota-fav-card-icon { border-color: var(--border); background: var(--surface2); }
[data-theme="light"] .stp-panel {
  background: var(--surface);
  border-left-color: var(--border);
}
[data-theme="light"] .stp-header { background: var(--surface2); border-bottom-color: var(--border); }
[data-theme="light"] .stp-col { border-right-color: var(--border); }
[data-theme="light"] .stp-field { border-bottom-color: var(--border); }
[data-theme="light"] .stp-input {
  background: var(--surface);
  border-color: var(--border2);
  color: var(--text);
}
[data-theme="light"] .stp-sync-card { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .ctf-input,
[data-theme="light"] .ctf-select,
[data-theme="light"] .ctf-textarea {
  background: var(--surface);
  border-color: var(--border2);
  color: var(--text);
}
[data-theme="light"] .pf-cta {
  background: linear-gradient(135deg, color-mix(in srgb,var(--primary) 8%,transparent) 0%, color-mix(in srgb,var(--cta) 5%,transparent) 100%);
  border-bottom-color: var(--border);
}
[data-theme="light"] .pf-cta:hover {
  background: linear-gradient(135deg, color-mix(in srgb,var(--primary) 13%,transparent) 0%, color-mix(in srgb,var(--cta) 8%,transparent) 100%);
}
[data-theme="light"] .pd-hero {
  background: var(--bg);
  border-bottom-color: var(--border);
}
[data-theme="light"] .pd-hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
}

/* ── Сайдбар (игры) ── */
[data-theme="light"] .sidebar {
  background: var(--surface);
  border-right-color: var(--border);
  box-shadow: 2px 0 12px rgba(37,48,49,.06);
}
[data-theme="light"] .sidebar-game-btn {
  color: var(--muted);
}
[data-theme="light"] .sidebar-game-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
[data-theme="light"] .sidebar-game-btn.active {
  background: var(--primary-light);
  color: var(--primary);
}
[data-theme="light"] .sidebar-game-icon {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--muted);
}
[data-theme="light"] .sidebar-header { border-bottom-color: var(--border); }
[data-theme="light"] .sidebar-bottom { border-top-color: var(--border); }
[data-theme="light"] .sidebar-icon-btn { color: var(--muted); }
[data-theme="light"] .sidebar-icon-btn:hover { background: var(--surface2); color: var(--text); }
[data-theme="light"] .sidebar-toggle { color: var(--muted); }
[data-theme="light"] .sidebar-toggle:hover { background: var(--surface2); color: var(--text); }

/* ── Welcome / Hero banner ── */
[data-theme="light"] .db-welcome-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border-bottom-color: var(--border);
}
[data-theme="light"] .db-welcome-section-overlay {
  background: linear-gradient(90deg,
    color-mix(in srgb,var(--surface) 97%,transparent) 0%,
    color-mix(in srgb,var(--surface) 82%,transparent) 55%,
    color-mix(in srgb,var(--surface) 50%,transparent) 100%
  );
}
[data-theme="light"] .db-welcome-name { color: var(--text); }
[data-theme="light"] .db-welcome-greeting { color: var(--muted); }
/* KPI counters ─ (значения остаются читаемыми через вариаблы, только цвет подписи) */
[data-theme="light"] .db-wkpi-val { color: var(--text); }
[data-theme="light"] .db-wkpi-dot { color: var(--border3); }
[data-theme="light"] .db-wkpi-div { background: var(--border2); }
/* Pills */
[data-theme="light"] .db-wpill--win  { background: var(--primary-light); color: var(--primary); border-color: color-mix(in srgb,var(--primary) 30%,transparent); }
[data-theme="light"] .db-wpill--wr   { background: rgba(249,115,22,.1); color: #c2440a; border-color: rgba(249,115,22,.25); }
[data-theme="light"] .db-wpill--wr.db-wpill--wr-good { background: rgba(22,163,74,.1); color: #15803d; border-color: rgba(22,163,74,.25); }
[data-theme="light"] .db-wpill--tot  { background: var(--surface2); color: var(--muted); border-color: var(--border2); }
[data-theme="light"] .db-wpill--loss { background: rgba(239,68,68,.08); color: #b91c1c; border-color: rgba(239,68,68,.22); }

/* ── BNR (hero banner дашборда страницы) ── */
[data-theme="light"] .bnr {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border-bottom-color: var(--border);
}
[data-theme="light"] .bnr-name { color: var(--text); }
[data-theme="light"] .bnr-label { color: var(--muted); }
[data-theme="light"] .bnr-kpi {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .bnr-kpi-val { color: var(--text); }
[data-theme="light"] .bnr-kpi-lbl { color: var(--muted); }
[data-theme="light"] .bnr-pill {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--muted2);
}

/* ── CTA баннер (Создайте команду) ── */
[data-theme="light"] .pf-cta-title { color: var(--text); }
[data-theme="light"] .pf-cta-sub   { color: var(--muted2); }

/* ── Карточка профиля (photo card, левый верх) ── */
[data-theme="light"] .db-prof-foot-new {
  background: rgba(37,48,49,.72);
  border-top-color: rgba(0,0,0,.12);
  backdrop-filter: blur(22px) saturate(1.4);
}
[data-theme="light"] .db-prof-name { color: #fff; } /* на фото всегда белый */
[data-theme="light"] .db-prof-sub { color: rgba(255,255,255,.55); }
[data-theme="light"] .db-prof-balance-pill {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.3);
}

/* ── Карточка матчей (big val) ── */
[data-theme="light"] .db-matches-big-val { color: var(--text); }
[data-theme="light"] .db-matches-sub { color: var(--muted2); }
[data-theme="light"] .db-spark-bar { background: var(--primary-light); }
[data-theme="light"] .db-spark-bar--win  { background: rgba(22,163,74,.3); }
[data-theme="light"] .db-spark-bar--loss { background: rgba(239,68,68,.2); }

/* ── KDA / Winrate ── */
[data-theme="light"] .db-kda-pct { color: var(--text); }
[data-theme="light"] .db-kda-stat-val { color: var(--text); }
[data-theme="light"] .db-kda-sep { color: var(--border3); }
[data-theme="light"] .db-kda-label-under { color: var(--muted); }

/* ── Календарь матчей (mcal) ── */
[data-theme="light"] .db-mcal-teams { color: var(--text); }
[data-theme="light"] .db-mcal-title { color: var(--muted2); }

/* ── Бот-левый профиль ── */
[data-theme="light"] .db-bot-prof { background: var(--surface); }
[data-theme="light"] .db-bot-prof-bg {
  background: linear-gradient(140deg, var(--primary-light) 0%, transparent 100%);
}
[data-theme="light"] .db-bot-prof-row { border-bottom-color: var(--border); }
[data-theme="light"] .db-bot-prof-val--green { color: #16a34a; }

/* ── Таблица состава (db-mem) ── */
[data-theme="light"] .db-mem-row { border-bottom-color: var(--border); }
[data-theme="light"] .db-mem-row:hover { background: var(--primary-light); }
[data-theme="light"] .db-mem-row--self { background: color-mix(in srgb,var(--primary) 5%,transparent); }
[data-theme="light"] .db-mem-num { background: var(--surface2); border-color: var(--border); color: var(--muted); }
[data-theme="light"] .db-mem-table-hdr { background: var(--surface2); border-bottom-color: var(--border); }
[data-theme="light"] .db-mem-hdr { background: var(--surface2); border-bottom-color: var(--border); }
[data-theme="light"] .db-mem-tab { color: var(--primary); border-bottom-color: var(--primary); }
[data-theme="light"] .db-mem-wr--g { color: #16a34a; }
[data-theme="light"] .db-mem-wr--r { color: #dc2626; }

/* ── Бэджи результатов ── */
[data-theme="light"] .db-result-badge--win  { background: rgba(22,163,74,.1);  color: #16a34a; border-color: rgba(22,163,74,.25); }
[data-theme="light"] .db-result-badge--loss { background: rgba(239,68,68,.08); color: #dc2626; border-color: rgba(239,68,68,.2); }

/* ── Badges (live, db-badge) ── */
[data-theme="light"] .db-badge--green  { background: rgba(22,163,74,.1);  color: #16a34a; }
[data-theme="light"] .db-badge--red    { background: rgba(239,68,68,.08); color: #dc2626; }
[data-theme="light"] .db-badge--blue   { background: var(--primary-light); color: var(--primary); }
[data-theme="light"] .db-badge--orange { background: rgba(249,115,22,.1);  color: #c2440a; }
[data-theme="light"] .db-badge--purple { background: rgba(124,58,237,.08); color: #7c3aed; }

/* ── DB Tags ── */
[data-theme="light"] .db-tag--dim {
  background: var(--surface2);
  color: var(--muted2);
  border-color: var(--border2);
}
[data-theme="light"] .db-tag--gold { background: rgba(188,171,121,.15); color: #7a6420; border-color: rgba(188,171,121,.3); }

/* ── Cell count badge ── */
[data-theme="light"] .db-cell-count {
  background: var(--surface2);
  color: var(--muted);
  border-color: var(--border);
}

/* ── Mtab (Prev/Next/All) ── */
[data-theme="light"] .db-mtab { color: var(--muted); }
[data-theme="light"] .db-mtab:hover { background: var(--surface2); color: var(--text); }
[data-theme="light"] .db-mtab--active {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text);
}
[data-theme="light"] .db-mtab-all { color: var(--primary); }

/* ── Настройки-кнопка ── */
[data-theme="light"] .db-settings-btn {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .db-settings-btn:hover {
  background: var(--surface3);
  border-color: var(--accent);
  color: var(--text);
}

/* ── Dota stats (LIGHT дополнения) ── */
[data-theme="light"] .db-dota-kda-big { color: var(--text); }
[data-theme="light"] .db-dota-wr-val  { color: var(--text); }
[data-theme="light"] .db-dota-wr-wl   { color: var(--text); }
[data-theme="light"] .db-dota-matches-count {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--muted);
}
[data-theme="light"] .db-dota-match-row:hover { background: var(--primary-light); }
[data-theme="light"] .db-dota-match-row--win  { border-left-color: rgba(22,163,74,.4); }
[data-theme="light"] .db-dota-match-row--loss { border-left-color: rgba(239,68,68,.3); }
[data-theme="light"] .db-dota-side-badge--r { background: rgba(22,163,74,.1); color: #16a34a; }
[data-theme="light"] .db-dota-side-badge--d { background: rgba(239,68,68,.08); color: #dc2626; }
[data-theme="light"] .db-dota-fav-card--top { background: rgba(124,58,237,.04); border-bottom-color: rgba(124,58,237,.25); }
[data-theme="light"] .db-dota-fav-wr--good { background: rgba(22,163,74,.1); color: #16a34a; border-color: rgba(22,163,74,.2); }
[data-theme="light"] .db-dota-fav-wr--bad  { background: rgba(239,68,68,.08); color: #dc2626; border-color: rgba(239,68,68,.15); }
[data-theme="light"] .db-dota-fav-pct { background: rgba(188,171,121,.15); color: #7a6420; border-color: rgba(188,171,121,.3); }
[data-theme="light"] .db-dota-fav-badge { background: rgba(124,58,237,.1); color: #7c3aed; border-color: rgba(124,58,237,.25); }
[data-theme="light"] .db-dota-hero-pill { background: var(--primary-light); border-color: color-mix(in srgb,var(--primary) 30%,transparent); color: var(--primary); }
[data-theme="light"] .db-dota-hero-cnt  { background: color-mix(in srgb,var(--primary) 18%,transparent); }
[data-theme="light"] .db-dota-synergy-card--team { background: var(--primary-light); }

/* ── CS2 / FACEIT (LIGHT) ── */
[data-theme="light"] .db-cs2-elo-val { color: var(--text); }
[data-theme="light"] .db-cs2-metric-val { color: var(--text); }
[data-theme="light"] .db-cs2-match-row { border-bottom-color: var(--border); }
[data-theme="light"] .db-cs2-match-row:hover { background: var(--primary-light); }
[data-theme="light"] .db-cs2-match-row--win  { border-left-color: rgba(22,163,74,.4); }
[data-theme="light"] .db-cs2-match-row--loss { border-left-color: rgba(239,68,68,.3); }
[data-theme="light"] .db-cs2-result-badge--win  { background: rgba(22,163,74,.1); color: #16a34a; border-color: rgba(22,163,74,.2); }
[data-theme="light"] .db-cs2-result-badge--loss { background: rgba(239,68,68,.08); color: #dc2626; border-color: rgba(239,68,68,.15); }
[data-theme="light"] .db-cs2-kd--good { color: #16a34a; }
[data-theme="light"] .db-cs2-kd--bad  { color: #dc2626; }
[data-theme="light"] .db-cs2-player-chip {
  background: var(--surface2);
  border-color: var(--border2);
}
[data-theme="light"] .db-cs2-level-badge { /* border-color и цвет задаются инлайн через PHP */ }
[data-theme="light"] .db-cs2-elo-bar-wrap { background: var(--border2); }

/* ── Флэш-бар ── */
[data-theme="light"] .db-flash--ok  { background: rgba(22,163,74,.08); color: #16a34a; border-color: rgba(22,163,74,.2); }
[data-theme="light"] .db-flash--err { background: rgba(239,68,68,.06); color: #dc2626; border-color: rgba(239,68,68,.15); }

/* ── My Team hero ── */
[data-theme="light"] .tm-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}
[data-theme="light"] .tm-hero-overlay {
  background: linear-gradient(135deg,
    color-mix(in srgb,var(--surface) 88%,transparent) 0%,
    color-mix(in srgb,var(--surface) 55%,transparent) 65%,
    color-mix(in srgb,var(--surface) 25%,transparent) 100%
  );
}
[data-theme="light"] .tm-hero-name { color: var(--text); }
[data-theme="light"] .tm-hero-label { color: var(--muted); }
[data-theme="light"] .tm-hero-stat-val { color: var(--text); }
[data-theme="light"] .tm-hero-stat-label { color: var(--muted); }
[data-theme="light"] .db-hero-orb--1 { opacity: .1; }
[data-theme="light"] .db-hero-orb--2 { opacity: .08; }

/* ── Section заголовки ── */
[data-theme="light"] .db-section-head {
  background: var(--surface2);
  border-bottom-color: var(--border);
}
[data-theme="light"] .db-section-icon { background: var(--surface3); color: var(--muted2); }

/* ── Формы ── */
[data-theme="light"] .ctf-logo-upload { border-color: var(--border2); }
[data-theme="light"] .ctf-logo-upload:hover { border-color: var(--primary); }
[data-theme="light"] .ctf-logo-preview { background: var(--surface2); border-color: var(--border); }

/* Оверлей */
.pso-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pso-overlay.open { display: flex; }

/* Модальное окно */
.pso-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn .22s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
}

/* Шапка */
.pso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}
.pso-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pso-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.pso-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.pso-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}
.pso-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--muted2);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.pso-close:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

/* Flash уведомление */
.pso-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}
.pso-flash--ok  { background: var(--success-light); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.pso-flash--err { background: var(--danger-light);  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);  color: var(--danger); }

/* Форма — flex колонка */
#psoForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Основной layout: сайдбар + контент */
.pso-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ── Боковая навигация ── */
.pso-nav {
  width: 190px;
  flex-shrink: 0;
  background: var(--surface2);
  border-right: 1px solid var(--border);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.pso-nav-group {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 8px 10px 4px;
}
.pso-nav-group:first-child { padding-top: 2px; }
.pso-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--muted2);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: left;
  width: 100%;
}
.pso-nav-item:hover {
  background: var(--surface3);
  color: var(--text);
}
.pso-nav-item.active {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
}
.pso-nav-item.active svg { color: var(--primary); }
.pso-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 6px;
}

/* ── Контентная область ── */
.pso-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  min-width: 0;
}

/* Панели */
.pso-panel { display: none; flex-direction: column; gap: 20px; }
.pso-panel.active { display: flex; }

/* Заголовок секции */
.pso-section-head-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.pso-section-head-desc {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}
.pso-section-sep {
  height: 1px;
  background: var(--border);
}

/* Поле */
.pso-field { display: flex; flex-direction: column; gap: 6px; }
.pso-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.pso-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

/* Группа ввода с префиксом */
.pso-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface2);
  transition: border-color .18s, box-shadow .18s;
}
.pso-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.pso-input-prefix {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-right: 1px solid var(--border);
  height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--surface3);
}
.pso-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 14px;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
}
.pso-input::placeholder { color: var(--muted); }

/* ── Игровые карточки ── */
.pso-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.pso-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
  user-select: none;
}
.pso-game-card:hover {
  border-color: var(--border2);
  background: var(--surface3);
}
.pso-game-card.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.pso-game-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pso-game-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.pso-game-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface3);
  color: var(--muted);
  border: 1px solid var(--border);
}
.pso-game-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}
.pso-game-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.pso-game-card.selected .pso-game-check { display: flex; }

/* ── Приватность ── */
.pso-priv-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
}
.pso-priv-info { flex: 1; min-width: 0; }
.pso-priv-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.pso-priv-desc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}
.pso-select {
  flex-shrink: 0;
  height: 36px;
  padding: 0 32px 0 12px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .15s, box-shadow .15s;
  min-width: 150px;
}
.pso-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ── Слайдеры (оформление) ── */
.pso-slider-row {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pso-slider-val-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pso-range {
  flex: 1;
  height: 4px;
  cursor: pointer;
  accent-color: var(--primary);
}
.pso-range-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  min-width: 38px;
  text-align: right;
}

/* Кнопки действий */
.pso-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Светлая тема */
[data-theme="light"] .pso-modal { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .pso-header,
[data-theme="light"] .pso-nav,
[data-theme="light"] .pso-actions { background: var(--surface2); }
[data-theme="light"] .pso-input-group { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .pso-input-prefix { background: var(--surface2); border-right-color: var(--border); color: var(--muted); }
[data-theme="light"] .pso-input { color: var(--text); }
[data-theme="light"] .pso-select { background-color: var(--surface2); }

.achm-progress {
  height: 3px;
  background: var(--border);
  flex-shrink: 0;
}
.achm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  min-width: 4px;
  transition: width .5s ease;
}
.achm-stats {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.achm-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.achm-stat-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.achm-stat-val--gold { color: #fbbf24; }
.achm-stat-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.achm-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
.achm-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}
.achm-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--db-ease);
}
.achm-item:last-child { border-bottom: none; }
.achm-item:hover { background: color-mix(in srgb, var(--ac, #fbbf24) 4%, transparent); }
.achm-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--ac, #fbbf24) 30%, transparent);
  background: color-mix(in srgb, var(--ac, #fbbf24) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--ac, #fbbf24);
}
.achm-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.achm-item-body { flex: 1; min-width: 0; }
.achm-item-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.achm-item-date {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.achm-item-gcoin {
  font-size: 10px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.2);
  padding: 2px 7px;
  border-radius: var(--db-pill);
  flex-shrink: 0;
}
.achm-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.01);
  transition: background var(--db-ease);
  flex-shrink: 0;
  margin-top: auto;
}
.achm-all-link:hover { background: rgba(255,255,255,.04); }
[data-theme="light"] .achm-all-link { color: var(--primary); }
[data-theme="light"] .achm-item:hover { background: color-mix(in srgb, var(--ac, #b45309) 5%, transparent); }
[data-theme="light"] .achm-stat-val { color: var(--text); }
[data-theme="light"] .achm-stat-val--gold { color: #b45309; }
[data-theme="light"] .achm-item-gcoin { background: rgba(180,83,9,.08); border-color: rgba(180,83,9,.2); color: #b45309; }

.anl-wrap {
  display: flex; flex-direction: column; gap: 16px;
  padding: 4px 0 32px; max-width: 1100px;
}
.anl-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.anl-header-left { display: flex; align-items: center; gap: 14px; }
.anl-header-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.2);
  display: flex; align-items: center; justify-content: center; color: #60a5fa;
}
.anl-header-title { font-size: 18px; font-weight: 900; color: var(--text); line-height: 1.2; }
.anl-header-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.anl-source-tabs  { display: flex; gap: 6px; }
.anl-src-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: var(--db-pill);
  font-size: 12px; font-weight: 700; color: var(--muted2);
  text-decoration: none; border: 1px solid var(--border); background: var(--surface2);
  transition: border-color var(--db-ease), color var(--db-ease), background var(--db-ease);
}
.anl-src-tab:hover { color: var(--text); border-color: var(--border2); }
.anl-src-tab--active { background: var(--primary); border-color: var(--primary); color: #fff; }
.anl-src-tab--faceit.anl-src-tab--active { background: #f97316; border-color: #f97316; color: #fff; }
.anl-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  text-align: center;
}
.anl-empty-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(96,165,250,.08); border: 1px solid rgba(96,165,250,.2);
  color: #60a5fa; display: flex; align-items: center; justify-content: center;
}
.anl-empty-icon--orange { background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.2); color: #f97316; }
.anl-empty-title { font-size: 16px; font-weight: 800; color: var(--text); }
.anl-empty-sub   { font-size: 13px; color: var(--muted); max-width: 340px; line-height: 1.6; }
.anl-sync-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--db-pill);
  background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.28); color: #60a5fa;
  font-size: 13px; font-weight: 700; text-decoration: none; transition: background var(--db-ease);
}
.anl-sync-btn:hover { background: rgba(96,165,250,.2); }
.anl-sync-btn--orange { background: rgba(249,115,22,.1); border-color: rgba(249,115,22,.25); color: #f97316; }
.anl-sync-btn--orange:hover { background: rgba(249,115,22,.18); }
.anl-dota-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.anl-cards {
  display: grid; grid-template-columns: 180px 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.anl-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 20px; gap: 12px;
  border-right: 1px solid var(--border); text-align: center;
}
.anl-card:last-child { border-right: none; }
.anl-card--eco { align-items: flex-start; text-align: left; }
.anl-card-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em; align-self: flex-start;
}
.anl-wr-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.anl-wr-center { position: absolute; display: flex; flex-direction: column; align-items: center; }
.anl-wr-val { font-size: 22px; font-weight: 900; letter-spacing: -.5px; line-height: 1; }
.anl-wr-val--good { color: #4ade80; }
.anl-wr-val--bad  { color: #f87171; }
.anl-wr-wl { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.anl-wr-w { color: #4ade80; font-weight: 800; }
.anl-wr-l { color: #f87171; font-weight: 800; }
.anl-wr-sep { color: var(--muted); font-weight: 300; }
.anl-wr-total { color: var(--muted); font-size: 12px; }
.anl-kda-big {
  font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1; color: var(--text);
}
.anl-kda-sublabel { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: -6px; }
.anl-kda-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.anl-kda-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.anl-kda-val { font-size: 20px; font-weight: 900; letter-spacing: -.3px; line-height: 1; }
.anl-kda-val--k { color: #4ade80; }
.anl-kda-val--d { color: #f87171; }
.anl-kda-val--a { color: #a78bfa; }
.anl-kda-lbl { font-size: 9px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.anl-kda-divider { color: var(--border); font-size: 18px; font-weight: 300; padding-bottom: 12px; }
.anl-eco-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.anl-eco-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.anl-eco-ico {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.anl-eco-ico--gold   { background: rgba(251,191,36,.12); color: #fbbf24; }
.anl-eco-ico--blue   { background: rgba(96,165,250,.12);  color: #60a5fa; }
.anl-eco-ico--red    { background: rgba(248,113,113,.12); color: #f87171; }
.anl-eco-ico--orange { background: rgba(251,146,60,.12);  color: #fb923c; }
.anl-eco-ico--green  { background: rgba(74,222,128,.12);  color: #4ade80; }
.anl-eco-ico--purple { background: rgba(167,139,250,.12); color: #a78bfa; }
.anl-eco-lbl { flex: 1; font-size: 12px; font-weight: 600; color: var(--muted2); }
.anl-eco-val { font-size: 14px; font-weight: 800; color: var(--text); }
.anl-eco-val--gold   { color: #fbbf24; }
.anl-eco-val--blue   { color: #60a5fa; }
.anl-eco-val--red    { color: #f87171; }
.anl-eco-val--orange { color: #fb923c; }
.anl-eco-val--green  { color: #4ade80; }
.anl-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; font-size: 12px; font-weight: 800; color: var(--text);
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.01);
}
.anl-section-count {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.05); padding: 2px 10px; border-radius: var(--db-pill);
  border: 1px solid rgba(255,255,255,.07);
}
.anl-heroes { border-top: 1px solid var(--border); }
.anl-heroes-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.anl-hero-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-right: 1px solid var(--border); overflow: hidden;
  transition: background var(--db-ease);
}
.anl-hero-card:last-child { border-right: none; }
.anl-hero-card:hover { background: rgba(255,255,255,.025); }
.anl-hero-card--top { background: rgba(167,139,250,.03); border-bottom: 2px solid rgba(167,139,250,.25); }
.anl-hero-card-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.anl-hero-card-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .08; filter: saturate(1.4); transition: opacity .3s; }
.anl-hero-card:hover .anl-hero-card-bg img { opacity: .14; }
.anl-hero-card-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 35%, transparent 100%); }
.anl-hero-icon { width: 48px; height: 27px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.anl-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.anl-hero-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; position: relative; z-index: 1; flex: 1; }
.anl-hero-name { font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.anl-hero-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.anl-hero-games { font-size: 11px; font-weight: 600; color: var(--muted2); }
.anl-hero-wr { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: var(--db-pill); }
.anl-hero-wr--good { background: rgba(74,222,128,.12); color: #4ade80; border: 1px solid rgba(74,222,128,.2); }
.anl-hero-wr--bad  { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.2); }
.anl-hero-pct { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: var(--db-pill); background: rgba(251,191,36,.12); color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }
.anl-hero-top-badge { position: absolute; top: 8px; right: 10px; z-index: 2; font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: var(--db-pill); background: rgba(167,139,250,.2); color: #a78bfa; border: 1px solid rgba(167,139,250,.35); }
.anl-synergy { border-top: 1px solid var(--border); }
.anl-synergy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--border); }
.anl-syn-card { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background var(--db-ease); position: relative; overflow: hidden; }
.anl-syn-card:hover { background: rgba(255,255,255,.025); }
.anl-syn-card--team { background: rgba(34,90,235,.03); }
.anl-syn-card--team::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--primary); border-radius: 0 2px 2px 0; }
.anl-syn-ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c3aed); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff; flex-shrink: 0; overflow: hidden; position: relative; border: 1.5px solid rgba(255,255,255,.12); }
.anl-syn-ava img { width: 100%; height: 100%; object-fit: cover; }
.anl-syn-team-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: #60a5fa; border: 2px solid var(--surface); }
.anl-syn-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.anl-syn-name { font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.anl-syn-stats { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted2); font-weight: 600; }
.anl-syn-bar-wrap { width: 48px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); flex-shrink: 0; overflow: hidden; }
.anl-syn-bar { height: 100%; border-radius: 2px; transition: width .4s; }
.anl-matches { border-top: 1px solid var(--border); }
.anl-matches-table { display: flex; flex-direction: column; }
.anl-matches-head {
  display: grid;
  grid-template-columns: 140px 1fr 44px 44px 44px 60px 60px 120px;
  gap: 8px; padding: 8px 22px;
  font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.008);
}
.anl-matches-head--cs2 { grid-template-columns: 60px 1fr 80px 60px 80px 60px; }
.anl-th-center { text-align: center; }
.anl-match-row {
  display: grid;
  grid-template-columns: 140px 1fr 44px 44px 44px 60px 60px 120px;
  gap: 8px; padding: 11px 22px; align-items: center;
  border-bottom: 1px solid var(--border); font-size: 13px;
  transition: background var(--db-ease);
}
.anl-match-row:last-child { border-bottom: none; }
.anl-match-row:hover { background: rgba(255,255,255,.025); }
.anl-match-row--win  { border-left: 2px solid rgba(74,222,128,.3); }
.anl-match-row--loss { border-left: 2px solid rgba(248,113,113,.2); }
.anl-match-result { display: flex; align-items: center; gap: 6px; }
.anl-side-badge { font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.anl-side-badge--r { background: rgba(74,222,128,.12); color: #4ade80; }
.anl-side-badge--d { background: rgba(239,68,68,.12);  color: #f87171; }
.anl-match-hero { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anl-match-stat { text-align: center; font-weight: 800; }
.anl-match-stat--k { color: #4ade80; }
.anl-match-stat--d { color: #f87171; }
.anl-match-stat--a { color: #a78bfa; }
.anl-match-stat--gpm { color: #fbbf24; font-size: 11px; }
.anl-match-kda { text-align: center; font-size: 12px; font-weight: 800; }
.anl-match-id { font-size: 11px; font-weight: 700; color: var(--muted2); font-family: monospace; }
.anl-no-data { color: var(--muted); font-size: 11px; }
.anl-cs2-row {
  display: grid; grid-template-columns: 60px 1fr 80px 60px 80px 60px;
  gap: 0; padding: 10px 22px; align-items: center;
  border-bottom: 1px solid var(--border); font-size: 12px; transition: background var(--db-ease);
}
.anl-cs2-row:last-child { border-bottom: none; }
.anl-cs2-row:hover { background: rgba(255,255,255,.025); }
.anl-cs2-map { font-size: 12px; font-weight: 700; color: var(--text); text-transform: capitalize; }
.anl-cs2-kd { font-size: 13px; font-weight: 800; text-align: center; color: var(--text); }
.anl-cs2-kd--good { color: #4ade80; }
.anl-cs2-kd--bad  { color: #f87171; }
.anl-cs2-hs { font-size: 11px; font-weight: 700; color: var(--muted2); text-align: center; }
.anl-cs2-score, .anl-cs2-date { font-size: 11px; font-weight: 600; color: var(--muted2); }
.anl-faceit-header { padding: 0 2px; }
.anl-faceit-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--db-pill); background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.anl-faceit-ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.anl-faceit-ava--letter { background: linear-gradient(135deg, #f97316, #ef4444); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; color: #fff; }
.anl-faceit-nick { color: var(--text); }
.anl-faceit-country { font-size: 10px; font-weight: 800; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; }
.anl-faceit-link { color: var(--muted); opacity: .6; transition: opacity .15s; }
.anl-faceit-link:hover { opacity: 1; }
.anl-elo-strip { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; flex-wrap: wrap; }
.anl-elo-level { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-right: 1px solid var(--border); flex-shrink: 0; min-width: 200px; }
.anl-level-badge { width: 52px; height: 52px; border-radius: 14px; border: 2px solid; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.anl-level-num { font-size: 26px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.anl-level-info { display: flex; flex-direction: column; gap: 5px; }
.anl-level-lbl { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.anl-elo-val { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -.5px; }
.anl-elo-val span { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.anl-elo-bar-wrap { height: 4px; border-radius: 2px; background: var(--border); margin-top: 8px; overflow: hidden; width: 100%; }
.anl-elo-bar { height: 100%; border-radius: 2px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.anl-elo-range { font-size: 10px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.anl-elo-metrics { display: flex; flex: 1; align-items: center; flex-wrap: wrap; }
.anl-metric { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px; gap: 6px; border-right: 1px solid var(--border); flex: 1; min-width: 80px; text-align: center; }
.anl-metric:last-child { border-right: none; }
.anl-metric-val { font-size: 28px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.anl-metric-lbl { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

/* Bot-grid c 4 колонками для дашборда (профиль + матчи + достижения + история) */
.db-bot-grid {
  grid-template-columns: 210px 1fr 210px 1fr !important;
}
@media (max-width: 1280px) {
  .db-bot-grid { grid-template-columns: 190px 1fr 190px 1fr !important; }
}
@media (max-width: 1100px) {
  .db-bot-grid { grid-template-columns: 1fr 1fr !important; }
  .db-bot-grid > *:nth-child(3) { grid-column: auto !important; }
  .db-bot-grid > *:nth-child(4) { grid-column: 1 / -1 !important; }
}
@media (max-width: 700px) {
  .db-bot-grid { grid-template-columns: 1fr !important; }
  .db-bot-grid > * { grid-column: auto !important; }
}

/* Responsive analytics */
@media (max-width: 900px) {
  .anl-cards { grid-template-columns: 1fr 1fr; }
  .anl-card:nth-child(3) { grid-column: 1 / -1; border-right: none; border-top: 1px solid var(--border); }
  .anl-heroes-grid { grid-template-columns: 1fr; }
  .anl-hero-card { border-right: none; border-bottom: 1px solid var(--border); }
  .anl-elo-level { min-width: 160px; }
  .anl-metric-val { font-size: 22px; }
}
@media (max-width: 700px) {
  .anl-cards { grid-template-columns: 1fr; }
  .anl-card { border-right: none !important; border-bottom: 1px solid var(--border); }
  .anl-elo-strip { flex-direction: column; }
  .anl-elo-level { border-right: none; border-bottom: 1px solid var(--border); min-width: 0; width: 100%; }
  .anl-matches-head, .anl-match-row { grid-template-columns: 100px 1fr 36px 36px 36px; }
  .anl-matches-head > *:nth-child(n+6), .anl-match-row > *:nth-child(n+6) { display: none; }
}
@media (max-width: 480px) {
  .anl-wrap { gap: 10px; }
  .anl-header { padding: 14px 16px; }
  .anl-header-title { font-size: 16px; }
  .anl-source-tabs { flex-wrap: wrap; gap: 4px; }
}

/* Light theme analytics */
[data-theme="light"] .anl-header { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .anl-header-title { color: var(--text); }
[data-theme="light"] .anl-header-icon { background: var(--primary-light); border-color: color-mix(in srgb,var(--primary) 25%,transparent); color: var(--primary); }
[data-theme="light"] .anl-src-tab { background: var(--surface2); border-color: var(--border2); color: var(--muted2); }
[data-theme="light"] .anl-src-tab--active { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-theme="light"] .anl-src-tab--faceit.anl-src-tab--active { background: #ea6c0a; border-color: #ea6c0a; }
[data-theme="light"] .anl-empty { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .anl-empty-title { color: var(--text); }
[data-theme="light"] .anl-dota-section { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .anl-card { border-color: var(--border); }
[data-theme="light"] .anl-kda-big { color: var(--text); }
[data-theme="light"] .anl-kda-divider { color: var(--border3); }
[data-theme="light"] .anl-wr-wl { color: var(--text); }
[data-theme="light"] .anl-wr-w { color: #16a34a; }
[data-theme="light"] .anl-wr-l { color: #dc2626; }
[data-theme="light"] .anl-wr-val--good { color: #16a34a; }
[data-theme="light"] .anl-wr-val--bad  { color: #dc2626; }
[data-theme="light"] .anl-hero-wr--good { background: rgba(22,163,74,.1); color: #16a34a; border-color: rgba(22,163,74,.2); }
[data-theme="light"] .anl-hero-wr--bad  { background: rgba(239,68,68,.08); color: #dc2626; border-color: rgba(239,68,68,.15); }
[data-theme="light"] .anl-match-row { border-bottom-color: var(--border); }
[data-theme="light"] .anl-match-row:hover { background: var(--primary-light); }
[data-theme="light"] .anl-match-row--win  { border-left-color: rgba(22,163,74,.4); }
[data-theme="light"] .anl-match-row--loss { border-left-color: rgba(239,68,68,.3); }
[data-theme="light"] .anl-side-badge--r { background: rgba(22,163,74,.1); color: #16a34a; }
[data-theme="light"] .anl-side-badge--d { background: rgba(239,68,68,.08); color: #dc2626; }
[data-theme="light"] .anl-section-hdr { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .anl-section-count { background: var(--surface2); border-color: var(--border); color: var(--muted); }
[data-theme="light"] .anl-hero-card-overlay { background: linear-gradient(90deg, var(--surface) 35%, transparent 100%); }
[data-theme="light"] .anl-hero-pct { background: rgba(180,83,9,.08); color: #7a6420; border-color: rgba(180,83,9,.2); }
[data-theme="light"] .anl-elo-strip { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .anl-elo-level { border-right-color: var(--border); }
[data-theme="light"] .anl-elo-val { color: var(--text); }
[data-theme="light"] .anl-metric-val { color: var(--text); }
[data-theme="light"] .anl-metric { border-right-color: var(--border); }
[data-theme="light"] .anl-faceit-chip { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .anl-faceit-country { background: var(--surface3); border-color: var(--border); }
[data-theme="light"] .anl-syn-card--team { background: var(--primary-light); }
[data-theme="light"] .anl-syn-bar-wrap { background: var(--border); }
[data-theme="light"] .anl-cs2-row { border-bottom-color: var(--border); }
[data-theme="light"] .anl-cs2-row:hover { background: var(--primary-light); }
[data-theme="light"] .anl-cs2-kd--good { color: #16a34a; }
[data-theme="light"] .anl-cs2-kd--bad  { color: #dc2626; }

.bnr {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #0d0c14;
}
.bnr-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.06);
  transition: transform 8s ease;
  filter: brightness(.22) saturate(1.8);
}
.bnr:hover .bnr-bg { transform: scale(1.02); }
.bnr--cosmetic-bg { background: transparent !important; }
.bnr--cosmetic-bg .bnr-bg { display: none; }
/* ── No cosmetic: fullscreen banner ── */
.bnr--no-cosmetic {
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(-1 * var(--sidebar-width, 260px));
  box-sizing: border-box;
}
.bnr--no-cosmetic .bnr-inner {
  min-height: 100vh;
  align-items: center;
  padding: 60px 56px;
}
.bnr--no-cosmetic .bnr-left {
  align-items: center;
}
.bnr--no-cosmetic .bnr-ava,
.bnr--no-cosmetic .bnr-ava-letter {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  font-size: 48px;
}
.bnr--no-cosmetic .bnr-name {
  font-size: 52px;
}
.bnr--no-cosmetic .bnr-label {
  font-size: 14px;
}
.bnr--no-cosmetic .bnr-right {
  align-items: center;
}
@media (max-width: 900px) {
  .bnr--no-cosmetic {
    width: 100vw;
    margin-left: 0;
  }
  .bnr--no-cosmetic .bnr-inner {
    padding: 40px 24px;
  }
  .bnr--no-cosmetic .bnr-ava,
  .bnr--no-cosmetic .bnr-ava-letter {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
  .bnr--no-cosmetic .bnr-name {
    font-size: 36px;
  }
}
/* ── end no-cosmetic ── */
.bnr--cosmetic-bg .bnr-grad {
  background:
    linear-gradient(to right,  rgba(7,6,14,.75) 0%, rgba(7,6,14,.30) 60%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(7,6,14,.55) 100%);
}
.bnr-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(7,6,14,.98) 0%, rgba(7,6,14,.72) 55%, rgba(7,6,14,.35) 100%),
    linear-gradient(to bottom, transparent 30%, rgba(7,6,14,.96) 100%);
}
.bnr-glow-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(34,90,235,.5) 30%, rgba(167,139,250,.4) 60%, transparent);
}
.bnr-inner {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; padding: 32px 28px 28px; flex-wrap: wrap;
}
.bnr-left { display: flex; align-items: flex-end; gap: 20px; min-width: 0; flex: 1; }
.bnr-ava-wrap { position: relative; flex-shrink: 0; }
.bnr-ava {
  width: 72px; height: 72px; border-radius: 16px;
  object-fit: cover; display: block;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
}
.bnr-ava-letter {
  width: 72px; height: 72px; border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #fff;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 24px rgba(34,90,235,.25);
  flex-shrink: 0;
}
.bnr-ava-status {
  position: absolute; bottom: -3px; right: -3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #4ade80;
  border: 2px solid #0d0c14;
  box-shadow: 0 0 8px rgba(74,222,128,.5);
}
.bnr-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bnr-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.bnr-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bnr-name {
  font-size: 36px; font-weight: 900; letter-spacing: -1.2px;
  line-height: 1; color: #fff; margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.bnr-game-tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  letter-spacing: .3px; flex-shrink: 0; align-self: center;
}
.bnr-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bnr-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800;
  padding: 4px 11px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(4px); transition: background .15s;
}
.bnr-pill--w   { background: rgba(34,90,235,.2);   color: #60a5fa; border-color: rgba(34,90,235,.35); }
.bnr-pill--wr  { background: rgba(251,146,60,.15);  color: #fb923c; border-color: rgba(251,146,60,.3); }
.bnr-pill--wr.bnr-pill--good { background: rgba(74,222,128,.13); color: #4ade80; border-color: rgba(74,222,128,.28); }
.bnr-pill--tot { background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); }
.bnr-pill--l   { background: rgba(248,113,113,.13); color: #f87171; border-color: rgba(248,113,113,.28); }
.bnr-pill--cap { background: rgba(245,158,11,.12);  color: #fbbf24; border-color: rgba(245,158,11,.25); }
.bnr-pill--team{ background: rgba(167,139,250,.1);  color: #a78bfa; border-color: rgba(167,139,250,.22); }
.bnr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex-shrink: 0; }
.bnr-settings-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: all .18s;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
}
.bnr-settings-btn:hover {
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.15);
}
.bnr-settings-btn--active { background: rgba(239,68,68,.1); color: #f87171; border-color: rgba(239,68,68,.25); }
.bnr-kpis {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.bnr-kpi {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 12px 22px; min-width: 70px;
}
.bnr-kpi + .bnr-kpi { border-left: 1px solid rgba(255,255,255,.06); }
.bnr-kpi-val {
  font-size: 22px; font-weight: 900; letter-spacing: -1px;
  color: #fff; line-height: 1;
}
.bnr-kpi-val--accent { color: #a78bfa; }
.bnr-kpi-lbl {
  font-size: 9px; font-weight: 700; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: .7px; white-space: nowrap;
}
@media (max-width: 900px) {
  .bnr-kpis { display: none; }
  .bnr-name  { font-size: 26px; }
}

/* ── CTA button (pf-cta-btn) — legacy ── */
.pf-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #225AEB, #7c3aed);
  color: #fff; font-size: 13px; font-weight: 800;
  text-decoration: none; letter-spacing: .2px;
  box-shadow: 0 4px 20px rgba(34,90,235,.35);
  transition: opacity .15s; flex-shrink: 0;
}
.pf-cta-btn:hover { opacity: .85; }

/* ── Profile card name/sub flex variants ── */
.db-prof-name--flex { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.db-prof-sub--flex  { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.db-prof-role-tag {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px;
  background: rgba(167,139,250,.12); color: #a78bfa; letter-spacing: .3px;
}
.db-prof-game-lbl { color: var(--muted); font-size: 11px; }

/* ── FACEIT KPI value colour ── */
.bnr-kpi-val--faceit { color: #f97316; }

/* ── Analytics promo block ── */
.db-analytics-promo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  flex-wrap: wrap;
}
.db-analytics-promo-left { display: flex; align-items: center; gap: 14px; }
.db-analytics-promo-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.2);
  display: flex; align-items: center; justify-content: center; color: #60a5fa;
}
.db-analytics-promo-icon--dota {
  background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.2); color: #a78bfa;
}
.db-analytics-promo-title { font-size: 14px; font-weight: 800; color: var(--text); }
.db-analytics-promo-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.db-analytics-promo-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--db-pill);
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: opacity .15s; flex-shrink: 0;
}
.db-analytics-promo-btn:hover { opacity: .85; }

/* Light theme overrides */
[data-theme="light"] .db-analytics-promo { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .db-prof-role-tag { background: rgba(124,58,237,.08); color: #7c3aed; }
[data-theme="light"] .db-prof-game-lbl { color: var(--muted); }
[data-theme="light"] .bnr-kpi-val--faceit { color: #c2440a; }

/* ════ HERO BANNER — Light theme ════ */
[data-theme="light"] .bnr {
  background: var(--surface);
  border-bottom-color: var(--border2);
}
[data-theme="light"] .bnr-grad {
  background:
    linear-gradient(to right,  rgba(255,255,255,.97) 0%, rgba(255,255,255,.80) 45%, rgba(255,255,255,.4) 100%),
    linear-gradient(to bottom, transparent 20%, rgba(255,255,255,.85) 100%);
}
[data-theme="light"] .bnr-glow-line {
  background: linear-gradient(to right, transparent, rgba(41,120,160,.35) 30%, rgba(188,171,121,.3) 60%, transparent);
}
[data-theme="light"] .bnr-label { color: rgba(37,48,49,.45); }
[data-theme="light"] .bnr-name  { color: var(--text); text-shadow: none; }
[data-theme="light"] .bnr-game-tag {
  background: rgba(37,48,49,.06);
  border-color: rgba(37,48,49,.12);
  color: var(--muted2);
}
/* Pill badges on light */
[data-theme="light"] .bnr-pill {
  border-color: rgba(37,48,49,.12);
  backdrop-filter: none;
}
[data-theme="light"] .bnr-pill--w   { background: rgba(41,120,160,.12);  color: #2978A0; border-color: rgba(41,120,160,.25); }
[data-theme="light"] .bnr-pill--wr  { background: rgba(217,119,6,.1);    color: #b45309; border-color: rgba(217,119,6,.2); }
[data-theme="light"] .bnr-pill--wr.bnr-pill--good { background: rgba(22,163,74,.1); color: #16a34a; border-color: rgba(22,163,74,.2); }
[data-theme="light"] .bnr-pill--tot { background: rgba(37,48,49,.05); color: var(--muted2); border-color: transparent; }
[data-theme="light"] .bnr-pill--l   { background: rgba(220,38,38,.08);   color: #dc2626; border-color: rgba(220,38,38,.18); }
[data-theme="light"] .bnr-pill--cap { background: rgba(217,119,6,.1);    color: #b45309; border-color: rgba(217,119,6,.2); }
[data-theme="light"] .bnr-pill--team{ background: rgba(124,58,237,.07);  color: #7c3aed; border-color: rgba(124,58,237,.18); }
/* KPI panel on light */
[data-theme="light"] .bnr-kpis {
  background: rgba(37,48,49,.04);
  border-color: rgba(37,48,49,.12);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .bnr-kpi + .bnr-kpi { border-left-color: rgba(37,48,49,.1); }
[data-theme="light"] .bnr-kpi-val  { color: var(--text); }
[data-theme="light"] .bnr-kpi-lbl  { color: var(--muted); }
[data-theme="light"] .bnr-kpi-val--accent { color: var(--primary); }
/* Settings button on light */
[data-theme="light"] .bnr-settings-btn {
  color: var(--muted2);
  background: rgba(37,48,49,.05);
  border-color: rgba(37,48,49,.1);
}
[data-theme="light"] .bnr-settings-btn:hover {
  background: rgba(37,48,49,.09);
  color: var(--text);
  border-color: rgba(37,48,49,.2);
}
/* Avatar border on light */
[data-theme="light"] .bnr-ava { border-color: rgba(37,48,49,.15); }
[data-theme="light"] .bnr-ava-letter {
  border-color: rgba(37,48,49,.12);
  box-shadow: var(--shadow);
}
[data-theme="light"] .bnr-ava-status { border-color: var(--surface); }

/* Оболочка — белая, с лёгкой тенью поверх кастомного фона */
[data-theme="light"] .page-profile-bg ~ .layout .player-content-shell {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 40px rgba(37,48,49,.18);
}

/* Pill nav — белый фон */
[data-theme="light"] .page-profile-bg ~ .layout .plnav {
  background: #ffffff !important;
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}

/* DB-cell карточки */
[data-theme="light"] .page-profile-bg ~ .layout .db-cell {
  background: var(--surface) !important;
  border-color: var(--border);
}

/* Секции */
[data-theme="light"] .page-profile-bg ~ .layout .db-welcome-section {
  background: var(--bg);
  border-bottom-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .db-welcome-section-overlay {
  background: linear-gradient(90deg,
    color-mix(in srgb,var(--bg) 95%,transparent) 0%,
    color-mix(in srgb,var(--bg) 80%,transparent) 50%,
    color-mix(in srgb,var(--bg) 55%,transparent) 100%
  );
}
[data-theme="light"] .page-profile-bg ~ .layout .db-welcome-name { color: var(--text); }

[data-theme="light"] .page-profile-bg ~ .layout .db-dota-section,
[data-theme="light"] .page-profile-bg ~ .layout .db-cs2-section,
[data-theme="light"] .page-profile-bg ~ .layout .db-cs2-empty {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .db-dota-header,
[data-theme="light"] .page-profile-bg ~ .layout .db-cs2-header {
  background: var(--surface2);
  border-bottom-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .db-section {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .db-section-head {
  background: var(--surface2);
  border-bottom-color: var(--border);
}

/* Analytics cards */
[data-theme="light"] .page-profile-bg ~ .layout .anl-kpi-card,
[data-theme="light"] .page-profile-bg ~ .layout .anl-chart-card,
[data-theme="light"] .page-profile-bg ~ .layout .anl-section,
[data-theme="light"] .page-profile-bg ~ .layout .anl-faceit-profile {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .page-profile-bg ~ .layout .anl-section-hdr {
  background: var(--surface2);
  border-bottom-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .anl-hero-row:hover,
[data-theme="light"] .page-profile-bg ~ .layout .anl-syn-row:hover,
[data-theme="light"] .page-profile-bg ~ .layout .anl-match-tr:hover {
  background: var(--surface2);
}
[data-theme="light"] .page-profile-bg ~ .layout .anl-syn-row--team {
  background: rgba(41,120,160,.06);
}

/* Match history */
[data-theme="light"] .page-profile-bg ~ .layout .db-dota-match-row,
[data-theme="light"] .page-profile-bg ~ .layout .db-hist-row { border-bottom-color: var(--border); }
[data-theme="light"] .page-profile-bg ~ .layout .db-dota-match-row:hover,
[data-theme="light"] .page-profile-bg ~ .layout .db-hist-row:hover {
  background: color-mix(in srgb,var(--primary) 4%,transparent);
}

/* Team */
[data-theme="light"] .page-profile-bg ~ .layout .tm-tabs {
  background: var(--surface2);
  border-bottom-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .tm-member { border-bottom-color: var(--border); }
[data-theme="light"] .page-profile-bg ~ .layout .tm-member:hover {
  background: color-mix(in srgb,var(--primary) 4%,transparent);
}

/* Settings */
[data-theme="light"] .page-profile-bg ~ .layout .stp-panel {
  background: var(--surface);
  border-left-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .stp-header {
  background: var(--surface2);
  border-bottom-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .stp-field { border-bottom-color: var(--border); }
[data-theme="light"] .page-profile-bg ~ .layout .stp-input {
  background: var(--surface);
  border-color: var(--border2);
  color: var(--text);
}

/* PD Hero */
[data-theme="light"] .page-profile-bg ~ .layout .pd-hero {
  background: var(--bg);
  border-bottom-color: var(--border);
}
[data-theme="light"] .page-profile-bg ~ .layout .pd-hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
}

[data-theme="light"] .analytics-standalone-shell {
  background: #ffffff !important;
  box-shadow: 0 4px 32px rgba(37,48,49,.10);
}
[data-theme="light"] .analytics-standalone-shell .plnav {
  background: #ffffff;
  border-bottom-color: var(--border);
}

.stratz-match-overview {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 32px;
}

/* ── Scoreboard Header ── */
.stratz-match-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stratz-match-scoreboard--win  { border-top: 3px solid var(--success); }
.stratz-match-scoreboard--loss { border-top: 3px solid var(--danger); }

.stratz-msb-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stratz-msb-side--dire {
  align-items: flex-end;
  text-align: right;
}
.stratz-msb-faction {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.stratz-msb-side--dire .stratz-msb-faction { flex-direction: row-reverse; }
.stratz-msb-faction-icon { flex-shrink: 0; }
.stratz-msb-side--radiant .stratz-msb-faction-icon { color: #4ade80; }
.stratz-msb-side--dire    .stratz-msb-faction-icon { color: #f87171; }
.stratz-msb-team {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.stratz-msb-result {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
}
.stratz-msb-result--win  { background: rgba(74,222,128,.15); color: #4ade80; }
.stratz-msb-result--loss { background: rgba(248,113,113,.12); color: #f87171; }

.stratz-msb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.stratz-msb-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.stratz-msb-score-r   { color: #4ade80; }
.stratz-msb-score-d   { color: #f87171; }
.stratz-msb-score-sep { color: var(--muted2); font-size: 28px; }
.stratz-msb-duration {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted2);
  background: var(--surface2);
  padding: 2px 10px;
  border-radius: 99px;
}
.stratz-msb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.stratz-msb-trn {
  color: var(--primary);
  font-weight: 700;
}
.stratz-msb-ext {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  opacity: .8;
  transition: opacity .15s;
}
.stratz-msb-ext:hover { opacity: 1; }

/* ── Player Hero Banner ── */
.stratz-match-hero-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(168,85,247,.06) 0%, transparent 60%);
}
.stratz-match-hero-banner--win  { background: linear-gradient(90deg, rgba(74,222,128,.06) 0%, transparent 60%); }
.stratz-match-hero-banner--loss { background: linear-gradient(90deg, rgba(248,113,113,.06) 0%, transparent 60%); }
.stratz-match-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
  border: 1.5px solid var(--border2);
}
.stratz-match-hero-info {
  flex: 1;
  min-width: 0;
}
.stratz-match-hero-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stratz-match-hero-pos {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
}
.stratz-match-hero-kda-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.stratz-match-hero-kda-nums {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.stratz-match-hero-kda-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stratz-match-hero-kda-ratio {
  font-size: 13px;
  font-weight: 800;
}

/* KDA shared colors */
.stratz-kda-k   { color: #4ade80; }
.stratz-kda-d   { color: #f87171; }
.stratz-kda-a   { color: #60a5fa; }
.stratz-kda-sep { color: var(--muted2); }

/* ── KPI Row ── */
.stratz-match-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stratz-match-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  min-width: 80px;
  flex: 1;
}
.stratz-match-kpi:last-child { border-right: none; }
.stratz-match-kpi-val {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.stratz-match-kpi-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted2);
  white-space: nowrap;
}

/* ── Main Grid ── */
.stratz-match-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  align-items: start;
  min-height: 0;
}
@media (max-width: 900px) {
  .stratz-match-main-grid { grid-template-columns: 1fr; }
}
.stratz-match-col-left {
  border-right: 1px solid var(--border);
  min-width: 0;
}
.stratz-match-col-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .stratz-match-col-left { border-right: none; }
}

/* ── Section ── */
.stratz-match-section {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stratz-match-section-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
}
.stratz-match-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  flex: 1;
}
.stratz-match-section-faction {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  flex: 1;
}
.stratz-match-section-faction--r { color: #4ade80; }
.stratz-match-section-faction--d { color: #f87171; }
.stratz-match-section-result {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 99px;
}
.stratz-match-section-result--win  { background: rgba(74,222,128,.12); color: #4ade80; }
.stratz-match-section-result--loss { background: rgba(248,113,113,.10); color: #f87171; }

/* ── Players Table ── */
.stratz-players-thead {
  display: grid;
  grid-template-columns: 180px 130px 50px 55px 55px 80px 80px 1fr;
  gap: 0;
  padding: 5px 8px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.stratz-players-thead > div {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted2);
  padding: 0 4px;
}
.stratz-player-row {
  display: grid;
  grid-template-columns: 180px 130px 50px 55px 55px 80px 80px 1fr;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .12s;
}
.stratz-player-row:hover { background: rgba(255,255,255,.025); }
.stratz-player-row--me   { background: rgba(168,85,247,.07); }
.stratz-player-row--me:hover { background: rgba(168,85,247,.11); }

.stratz-player-cell {
  padding: 8px 4px;
  font-size: 12px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
}
.stratz-player-cell--num {
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.stratz-pt-hero    { padding-left: 10px; display: flex; align-items: center; gap: 8px; }
.stratz-pt-kda     { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.stratz-pt-lh,
.stratz-pt-gpm,
.stratz-pt-xpm,
.stratz-pt-dmg,
.stratz-pt-nw      { text-align: center; justify-content: center; display: flex; align-items: center; }
.stratz-pt-items   { padding-right: 10px; }

.stratz-player-hero-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.stratz-player-hero-img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: block;
}
.stratz-player-hero-img--empty {
  background: var(--surface2);
  border-radius: 7px;
  border: 1px solid var(--border);
}
.stratz-player-pos-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

.stratz-player-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stratz-player-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.stratz-player-name--me { color: #a78bfa; }
.stratz-player-me-badge {
  font-size: 8px;
  font-weight: 800;
  background: rgba(167,139,250,.2);
  color: #a78bfa;
  padding: 1px 5px;
  border-radius: 99px;
  text-transform: uppercase;
  display: inline-block;
  width: fit-content;
}
.stratz-player-kda-ratio {
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
  white-space: nowrap;
}

.stratz-player-items-grid {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.stratz-player-item-slot {
  width: 28px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.stratz-player-item-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stratz-player-item-slot--empty {
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.07);
}

/* ── Compact Stats (no all-players data) ── */
.stratz-match-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 8px 0;
}
.stratz-match-compact-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 12px;
}
.stratz-match-compact-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.04); }
.stratz-match-compact-lbl {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.stratz-match-compact-val {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ── Items Build Timeline ── */
.stratz-match-items-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
}
.stratz-match-items-phase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.stratz-match-items-phase-time {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted2);
  min-width: 40px;
  white-space: nowrap;
}
.stratz-match-items-phase-items {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.stratz-match-item-slot {
  width: 36px;
  height: 27px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.stratz-match-item-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Ability Build ── */
.stratz-match-ability-build {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 10px 16px 14px;
}
.stratz-match-ability-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
}
.stratz-match-ability-level {
  font-size: 8px;
  font-weight: 800;
  color: var(--muted2);
  line-height: 1;
}
.stratz-match-ability-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border2);
}
.stratz-match-ability-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── RIGHT COLUMN ── */
.stratz-match-graph-wrap {
  padding: 10px 14px 14px;
}

/* Hero Card */
.stratz-match-section--hero-card .stratz-match-hero-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.stratz-match-hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  flex-shrink: 0;
}
.stratz-match-hero-card-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.stratz-match-hero-card-side {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.stratz-match-hero-card-result {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}
.stratz-match-hero-card-result.win  { background: rgba(74,222,128,.15); color: #4ade80; }
.stratz-match-hero-card-result.loss { background: rgba(248,113,113,.12); color: #f87171; }

.stratz-match-hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px 0;
}
.stratz-match-hero-cstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  border-right: 1px solid rgba(255,255,255,.04);
  gap: 2px;
}
.stratz-match-hero-cstat:nth-child(even) { border-right: none; }
.stratz-match-hero-cstat-val {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.stratz-match-hero-cstat-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted2);
  text-align: center;
  white-space: nowrap;
}

/* Damage bars */
.stratz-match-dmg-bars {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.stratz-match-dmg-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.stratz-match-dmg-bar-lbl {
  font-size: 10px;
  color: var(--muted);
  width: 110px;
  flex-shrink: 0;
  white-space: nowrap;
}
.stratz-match-dmg-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 99px;
  overflow: hidden;
}
.stratz-match-dmg-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .4s ease;
}
.stratz-match-dmg-bar-val {
  font-size: 11px;
  font-weight: 800;
  min-width: 52px;
  text-align: right;
  white-space: nowrap;
}

/* Match meta */
.stratz-match-section--meta { border-bottom: none; }
.stratz-match-meta-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}
.stratz-match-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 12px;
}
.stratz-match-meta-row:last-child { border-bottom: none; }
.stratz-match-meta-key {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.stratz-match-meta-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.stratz-match-meta-val--trn { color: var(--primary); }

/* ── Light theme overrides ── */
[data-theme="light"] .stratz-match-scoreboard,
[data-theme="light"] .stratz-match-kpi-row { background: #fff; }
[data-theme="light"] .stratz-match-hero-banner {
  background: linear-gradient(90deg, rgba(74,222,128,.04) 0%, transparent 60%) !important;
}
[data-theme="light"] .stratz-player-row:hover { background: rgba(0,0,0,.025); }
[data-theme="light"] .stratz-player-row--me   { background: rgba(139,92,246,.05); }
[data-theme="light"] .stratz-player-name { color: var(--text); }
[data-theme="light"] .stratz-match-compact-stat:nth-child(odd) { border-right-color: var(--border); }
[data-theme="light"] .stratz-match-compact-stat { border-bottom-color: var(--border); }

.sm-overview {
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
}

/* ── KDA colors (shared) ── */
.sm-kda-k   { color: #4ade80; font-weight: 900; }
.sm-kda-d   { color: #f87171; font-weight: 900; }
.sm-kda-a   { color: #60a5fa; font-weight: 900; }
.sm-kda-sep { color: rgba(255,255,255,.3); font-weight: 400; }

/* ── Section wrapper ── */
.sm-section {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.sm-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 12px 16px 8px;
}

/* ════ HEADER ════ */
.sm-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.sm-header-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sm-header-side--dire { align-items: flex-end; text-align: right; }

.sm-header-faction {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.sm-header-side--radiant .sm-header-faction { color: #4ade80; }
.sm-header-side--dire    .sm-header-faction { color: #f87171; }
.sm-header-side--dire    .sm-header-faction { flex-direction: row-reverse; }

.sm-header-team {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}
.sm-header-result {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}
.sm-header-result.win  { background: rgba(74,222,128,.15); color: #4ade80; }
.sm-header-result.loss { background: rgba(248,113,113,.12); color: #f87171; }

.sm-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sm-header-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}
.sm-score-r   { font-size: 36px; font-weight: 900; color: #4ade80; }
.sm-score-d   { font-size: 36px; font-weight: 900; color: #f87171; }
.sm-score-sep { font-size: 30px; font-weight: 300; color: rgba(255,255,255,.3); }
.sm-header-dur {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted2);
  background: var(--surface2);
  padding: 2px 10px;
  border-radius: 99px;
}
.sm-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.sm-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 10px;
  opacity: .8;
  transition: opacity .15s;
}
.sm-meta-link:hover { opacity: 1; }
.sm-meta-date { color: var(--muted); }
.sm-meta-trn  { color: var(--primary); font-weight: 700; }

/* ════ CONFRONTATION 5v5 ════ */
.sm-confrontation {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0;
  padding: 12px 8px;
}
.sm-team {
  display: flex;
  gap: 4px;
  overflow: hidden;
}
.sm-team--radiant { justify-content: flex-start; }
.sm-team--dire    { justify-content: flex-end; }

.sm-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Player card */
.sm-pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 5px 6px;
  width: calc((100% - 16px) / 5);
  min-width: 0;
  position: relative;
  transition: background .12s, border-color .12s;
  overflow: hidden;
}
.sm-pcard:hover      { background: var(--surface2); border-color: var(--border2); }
.sm-pcard--me        { background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.3); }
.sm-pcard--me:hover  { background: rgba(168,85,247,.14); }

/* IMP badge */
.sm-pcard-imp {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 99px;
  line-height: 1.4;
  z-index: 1;
}
.sm-pcard-imp.pos { background: rgba(74,222,128,.18); color: #4ade80; }
.sm-pcard-imp.neg { background: rgba(248,113,113,.15); color: #f87171; }

/* Hero image */
.sm-pcard-hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 110/62;
}
.sm-pcard-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  background: var(--surface2);
}
.sm-pcard-hero-img--empty {
  background: var(--surface2);
  border-radius: 5px;
  border: 1px dashed var(--border);
}
.sm-pcard-level {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 9px;
  font-weight: 900;
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 0 4px;
  border-radius: 3px;
  line-height: 1.5;
}
.sm-pcard-pos {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 7px;
  font-weight: 900;
  color: #000;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1.4;
  opacity: .9;
}

/* KDA */
.sm-pcard-kda {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}

/* Gold */
.sm-pcard-gold {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

/* Name */
.sm-pcard-name {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sm-pcard-name--me { color: #a78bfa; }

/* Items */
.sm-pcard-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
}
.sm-item-slot {
  aspect-ratio: 88/64;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}
.sm-item-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-item-slot--empty {
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.07);
}

/* ════ GRAPH ════ */
.sm-graph-row {
  padding: 12px 16px 16px;
}
.sm-graph-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 10px;
  flex-wrap: wrap;
}
.sm-graph-leg {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 11px;
}
.sm-graph-leg--r { color: #4ade80; }
.sm-graph-leg--d { color: #f87171; }
.sm-graph-adv {
  font-size: 10px;
  font-weight: 800;
  background: rgba(74,222,128,.12);
  color: #4ade80;
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 4px;
}
.sm-graph-label     { color: var(--muted); font-size: 9px; }
.sm-graph-label--xp { color: #a78bfa; }
.sm-graph-wrap { position: relative; }

/* ════ MY HERO SECTION ════ */
.sm-my-hero-section { border-bottom: none; }

.sm-my-hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.sm-my-hero-ident {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.sm-my-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  flex-shrink: 0;
}
.sm-my-hero-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}
.sm-my-hero-side {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.sm-my-kda-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.sm-my-kda-nums {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.sm-my-kda-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted2);
}
.sm-my-kda-ratio {
  font-size: 13px;
  font-weight: 800;
}
.sm-my-result {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.sm-my-result.win  { background: rgba(74,222,128,.15); color: #4ade80; }
.sm-my-result.loss { background: rgba(248,113,113,.12); color: #f87171; }

/* KPI bar */
.sm-kpi-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.sm-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 11px 14px;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 70px;
}
.sm-kpi:last-child { border-right: none; }
.sm-kpi-val {
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.sm-kpi-lbl {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted2);
  white-space: nowrap;
  text-align: center;
}

/* Stats + hero card two-col */
.sm-stats-dmg-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  align-items: start;
}
@media (max-width: 880px) {
  .sm-stats-dmg-grid { grid-template-columns: 1fr; }
  .sm-hero-card { border-left: none; border-top: 1px solid var(--border); }
}

/* Stats table */
.sm-stats-table {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}
.sm-stats-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.sm-stats-col { display: flex; flex-direction: column; }
.sm-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 12px;
}
.sm-stat-row:last-child { border-bottom: none; }
.sm-stat-lbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.sm-stat-val { font-size: 13px; font-weight: 800; white-space: nowrap; }

/* Hero card right */
.sm-hero-card {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 10px;
}
.sm-hero-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sm-hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  flex-shrink: 0;
}
.sm-hero-card-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}
.sm-hero-card-side { font-size: 10px; color: var(--muted); margin-top: 2px; }
.sm-hero-card-result {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}
.sm-hero-card-result.win  { background: rgba(74,222,128,.15); color: #4ade80; }
.sm-hero-card-result.loss { background: rgba(248,113,113,.12); color: #f87171; }

/* 2×3 stats */
.sm-hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 10px;
}
.sm-hcs {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  border-right: 1px solid rgba(255,255,255,.04);
  gap: 2px;
}
.sm-hcs:nth-child(even) { border-right: none; }
.sm-hcs-val { font-size: 15px; font-weight: 900; white-space: nowrap; }
.sm-hcs-lbl { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted2); text-align: center; }

/* Damage bars */
.sm-dmg-bars { display: flex; flex-direction: column; margin-bottom: 12px; }
.sm-dmg-row  { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.sm-dmg-lbl  { font-size: 10px; color: var(--muted); min-width: 110px; flex-shrink: 0; }
.sm-dmg-track{ flex: 1; height: 5px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.sm-dmg-fill { height: 100%; border-radius: 99px; transition: width .4s ease; }
.sm-dmg-val  { font-size: 11px; font-weight: 800; min-width: 50px; text-align: right; white-space: nowrap; }

/* Match meta */
.sm-match-meta { display: flex; flex-direction: column; }
.sm-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 8px;
}
.sm-meta-row:last-child { border-bottom: none; }
.sm-meta-key { font-size: 11px; color: var(--muted); }
.sm-meta-val { font-size: 12px; font-weight: 700; color: var(--text); text-align: right; }

/* ════ RESPONSIVE ════ */
@media (max-width: 900px) {
  .sm-confrontation { grid-template-columns: 1fr 40px 1fr; padding: 8px 4px; }
  .sm-score-r, .sm-score-d { font-size: 28px; }
  .sm-pcard-kda { font-size: 10px; }
  .sm-kpi { padding: 8px 8px; min-width: 60px; }
  .sm-kpi-val { font-size: 13px; }
}
@media (max-width: 640px) {
  .sm-header { grid-template-columns: 1fr; gap: 12px; }
  .sm-header-side--dire { align-items: flex-start; text-align: left; }
  .sm-header-side--dire .sm-header-faction { flex-direction: row; }
  .sm-header-center { width: 100%; }
  .sm-confrontation { grid-template-columns: 1fr; gap: 8px; }
  .sm-team--dire { justify-content: flex-start; }
  .sm-versus { display: none; }
  .sm-pcard { width: calc((100% - 12px) / 5); }
  .sm-stats-dmg-grid { grid-template-columns: 1fr; }
  .sm-stats-table { border-right: none; }
}

/* ── Light theme ── */
[data-theme="light"] .sm-header { background: #fff; }
[data-theme="light"] .sm-pcard  { background: #f8f8f8; border-color: #e5e5e5; }
[data-theme="light"] .sm-pcard:hover { background: #efefef; }
[data-theme="light"] .sm-pcard--me { background: rgba(139,92,246,.06); border-color: rgba(139,92,246,.25); }
[data-theme="light"] .sm-kpi-bar, [data-theme="light"] .sm-kpi { background: #fff; }
[data-theme="light"] .sm-kda-sep { color: rgba(0,0,0,.25); }
[data-theme="light"] .sm-stat-row { border-bottom-color: #eee; }
[data-theme="light"] .sm-meta-row { border-bottom-color: #eee; }

/* ── Shell ──────────────────────────────────────────────── */
.pf-shell {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  margin: 32px auto;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  box-sizing: border-box;
}
.pf-shell--setup { min-height: 100vh; border-radius: 0; margin: 0; max-width: 100%; }

/* ── Flash bar ──────────────────────────────────────── */
.pf-flash-bar { padding: 10px 20px 0; }
.pf-flash {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
}
.pf-flash--ok  { background: var(--success-light); color: var(--success); }
.pf-flash--err { background: var(--danger-light);  color: var(--danger); }

/* ── Hero banner ──────────────────────────────────────── */
.pf-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Background layers */
.pf-hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.pf-hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 10s ease;
  filter: brightness(.5) saturate(1.5);
}
.pf-hero:hover .pf-hero-bg-img { transform: scale(1.02); }
.pf-hero-bg-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 70% -10%, #0a2a6e 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 110%, #3b0d6e 0%, transparent 55%),
    #070612;
}
.pf-hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 130% 100% at 50% 50%, rgba(0,0,0,.2) 0%, rgba(0,0,0,.65) 100%);
}
.pf-hero-grad-b {
  position: absolute; bottom: 0; left: 0; right: 0; height: 75%;
  background: linear-gradient(to top, rgba(7,6,14,1) 0%, rgba(7,6,14,.85) 35%, rgba(7,6,14,.4) 65%, transparent 100%);
}
.pf-hero-glow {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(1,111,185,.5) 35%, rgba(167,139,250,.4) 65%, transparent);
}

/* Inner */
.pf-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
}

/* ── FULLSCREEN stage ── */
.pf-hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 0px;
  text-align: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Avatar */
.pf-hero-ava-ring {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.pf-hero-ava {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 6px rgba(1,111,185,.15), 0 16px 48px rgba(0,0,0,.7);
}
.pf-hero-ava-letter {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 900; color: #fff;
  border: 3px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 6px rgba(1,111,185,.15), 0 16px 48px rgba(0,0,0,.7);
}
.pf-hero-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--success);
  border: 2.5px solid #070612;
  box-shadow: 0 0 8px rgba(34,197,94,.5);
  z-index: 3;
}
.pf-hero-dot--offline {
  background: rgba(255,255,255,.25);
  box-shadow: none;
}
/* KPI-строка внутри hero (под именем) */
.pf-hero-kpi-row {
  display: flex; align-items: center; gap: 20px;
  margin-top: 10px; flex-wrap: wrap;
}
.pf-hero-kpi-row .pf-kpi-c { text-align: left; }
.pf-hero-kpi-row .pf-kpi-val { font-size: 18px; font-weight: 900; line-height: 1.1; color: var(--text); }
.pf-hero-kpi-row .pf-kpi-lbl { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }

/* ════ GAME SWITCHER (внутри таба Обзор) ════════════════════ */
.pf-game-switch {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.pf-gs-card {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-decoration: none; transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.pf-gs-card:hover { border-color: var(--primary); color: var(--text); }
.pf-gs-card--active {
  background: rgba(var(--primary-rgb),.12);
  border-color: var(--primary);
  color: var(--primary);
}
.pf-gs-card-icon { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.pf-gs-card-abbr {
  width: 16px; height: 16px; border-radius: 3px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; color: var(--muted);
}
.pf-gs-card-name { font-size: 12px; }

/* Eyebrow / name */
.pf-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  margin: 0 0 10px;
}
.pf-hero-name {
  font-size: 52px; font-weight: 900; letter-spacing: -2px;
  line-height: 1.05; color: #fff !important; margin: 0 0 14px;
  text-shadow: 0 2px 24px rgba(0,0,0,.8), 0 0 60px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 3;
}
.pf-hero-name--sm {
  font-size: 30px; letter-spacing: -.8px; margin: 0;
  justify-content: flex-start;
}
.pf-hero-medal { display: flex; align-items: center; flex-shrink: 0; }

/* Badges */
.pf-hero-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.pf-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  padding: 5px 12px; border-radius: 99px;
  border: 1px solid;
  backdrop-filter: blur(6px);
}
.pf-badge--game  { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.pf-badge--team  { background: rgba(1,111,185,.15); border-color: rgba(1,111,185,.3); color: #60a5fa; }
.pf-badge--cap   { background: rgba(255,149,5,.12); border-color: rgba(255,149,5,.28); color: #fbbf24; }

/* KPI bar (fullscreen) */
.pf-hero-kpibar {
  display: flex; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  margin-bottom: 20px;
}
.pf-kpi-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 24px; gap: 3px;
}
.pf-kpi-div {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
.pf-kpi-val {
  font-size: 22px; font-weight: 900; letter-spacing: -1px;
  color: #fff; line-height: 1;
}
.pf-kpi-val--green  { color: var(--success); }
.pf-kpi-val--red    { color: var(--danger); }
.pf-kpi-val--purple { color: #a78bfa; }
.pf-kpi-val--orange { color: #f97316; }
.pf-kpi-lbl {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: rgba(255,255,255,.35);
  white-space: nowrap;
}

/* Settings button */
.pf-hero-setbtn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  transition: all .18s; margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.pf-hero-setbtn:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.pf-hero-setbtn--active { background: rgba(239,68,68,.1); color: var(--danger); border-color: rgba(239,68,68,.25); }

/* Scroll hint */
.pf-hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  animation: pfScrollBounce 1.8s ease-in-out infinite;
  transition: opacity .3s;
}
.pf-hero-scroll span {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.pf-hero-scroll span:nth-child(1) { opacity: .4; }
.pf-hero-scroll span:nth-child(2) { opacity: .65; }
.pf-hero-scroll span:nth-child(3) { opacity: 1; }
@keyframes pfScrollBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── COMPACT hero (has cosmetic) ── */
.pf-hero--compact .pf-hero-bg-img {
  filter: brightness(.45) saturate(1.6);
}
.pf-hero-hbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding: 28px 28px 24px; flex-wrap: wrap;
}
.pf-hero-hbar-left  { display: flex; align-items: flex-end; gap: 16px; flex: 1; min-width: 0; }
.pf-hero-hbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }

.pf-hero-ava-ring--sm { width: 72px; height: 72px; margin-bottom: 0; }
.pf-hero-ava--sm { width: 72px; height: 72px; }
.pf-hero-ava-letter--sm { width: 72px; height: 72px; font-size: 28px; }

.pf-hero-eyebrow--sm { font-size: 10px; margin-bottom: 4px; }
.pf-hero-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }

/* Pills (compact) */
.pf-hero-pills { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pf-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  padding: 3px 9px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,.08);
}
.pf-pill--w   { background: rgba(1,111,185,.2);    color: #60a5fa; border-color: rgba(1,111,185,.3); }
.pf-pill--wr  { background: rgba(251,146,60,.15);   color: #fb923c; border-color: rgba(251,146,60,.28); }
.pf-pill--wr.pf-pill--good { background: rgba(34,197,94,.12); color: var(--success); border-color: rgba(34,197,94,.25); }
.pf-pill--tot { background: rgba(255,255,255,.06);  color: rgba(255,255,255,.4); }
.pf-pill--l   { background: rgba(239,68,68,.12);    color: var(--danger); border-color: rgba(239,68,68,.25); }
.pf-pill--cap { background: rgba(255,149,5,.1);     color: #fbbf24; border-color: rgba(255,149,5,.22); }
.pf-pill--team{ background: rgba(167,139,250,.1);   color: #a78bfa; border-color: rgba(167,139,250,.2); }

/* Compact KPI row */
.pf-kpi-compact-row { display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; overflow: hidden; backdrop-filter: blur(12px);
}
.pf-kpi-c {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 18px; gap: 2px; min-width: 60px;
}
.pf-kpi-c + .pf-kpi-c { border-left: 1px solid rgba(255,255,255,.06); }

/* ── Grid wrapper ──────────────────────────────────────── */
.pf-grid-wrap {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 20px 36px;
  border-radius: 0px 0px 12px 12px;
}

/* ── CTA banner ──────────────────────────────────────── */
.pf-cta-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(1,111,185,.08);
  border: 1px solid rgba(1,111,185,.2);
}
.pf-cta-banner-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(1,111,185,.15); border: 1px solid rgba(1,111,185,.25);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.pf-cta-banner-body { flex: 1; min-width: 0; }
.pf-cta-banner-body strong { display: block; font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.pf-cta-banner-body span  { font-size: 11px; color: var(--muted); }
.pf-cta-banner-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: opacity .15s;
}
.pf-cta-banner-btn:hover { opacity: .85; }

/* ── Stats row ──────────────────────────────────────── */
.pf-stats-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 900px) {
  .pf-stats-row { grid-template-columns: 1fr }
  .pf-stat-card--wr { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .pf-stats-row { grid-template-columns: 1fr; }
}

.pf-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* Winrate card */
.pf-stat-card--wr {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px; gap: 8px; text-align: center;
  min-height: stretch;
}
.pf-stat-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}
.pf-wr-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.pf-wr-center {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.pf-wr-pct { font-size: 22px; font-weight: 900; line-height: 1; }
.pf-wr-sub { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pf-wr-wl {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 18px; font-weight: 900;
}
.pf-wr-w { color: var(--success); }
.pf-wr-w small,.pf-wr-l small { font-size: 11px; font-weight: 700; margin-left: 2px; }
.pf-wr-sep { color: var(--muted); font-weight: 300; font-size: 14px; }
.pf-wr-l { color: var(--danger); }
.pf-wr-total { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Counters card */
.pf-stat-card--counters { padding: 16px; }
.pf-counter-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 10px; overflow: hidden;
}
.pf-counter {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 12px; gap: 4px; text-align: center;
  background: var(--surface2);
}
.pf-counter-val {
  font-size: 24px; font-weight: 900; letter-spacing: -1px; line-height: 1;
  color: var(--text);
}
.pf-counter-val--blue   { color: var(--primary); }
.pf-counter-val--green  { color: var(--success); }
.pf-counter-val--red    { color: var(--danger); }
.pf-counter-val--yellow { color: #fbbf24; }
.pf-counter-lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); line-height: 1.3; }

/* Matches card */
.pf-stat-card--matches { display: flex; flex-direction: column; min-height:stretch; }
.pf-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text2);
}
.pf-card-count {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 1px 8px; border-radius: 99px; color: var(--muted2);
}
.pf-card-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; padding: 28px 16px;
  color: var(--muted); font-size: 12px; font-weight: 600;
  text-align: center;
}
.pf-card-empty svg { opacity: .2; }
.pf-card-empty--lg { padding: 40px 16px; }

.pf-match-list { display: flex; flex-direction: column; }
.pf-match-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.pf-match-row:last-child { border-bottom: none; }
.pf-match-row:hover { background: var(--surface2); }
.pf-match-row--live { background: rgba(239,68,68,.04); border-left: 2px solid var(--danger); }
.pf-match-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 28px; flex-shrink: 0;
}
.pf-match-date span:first-child { font-size: 15px; font-weight: 900; color: var(--text); line-height: 1; }
.pf-match-date span:last-child  { font-size: 8px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.pf-match-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-match-trn  { font-size: 11px; font-weight: 700; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-match-teams { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-match-teams em { color: var(--muted); font-style: normal; font-weight: 400; margin: 0 3px; }
.pf-match-time { font-size: 12px; font-weight: 700; color: var(--muted2); flex-shrink: 0; }
.pf-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--danger);
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25);
  padding: 3px 8px; border-radius: 5px; flex-shrink: 0;
}
.pf-live-badge i {
  display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--danger);
  animation: pfLivePulse 1.2s ease-in-out infinite;
}
@keyframes pfLivePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* ── Section ───────────────────────────────────────── */
.pf-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.pf-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.pf-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: #fff;
}
.pf-section-count {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 99px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid rgba(1,111,185,.2);
}
.pf-section-count--gold { background: rgba(251,191,36,.12); color: #fbbf24; border-color: rgba(251,191,36,.25); }
.pf-section-link {
  font-size: 11px; font-weight: 700; color: var(--primary); text-decoration: none; opacity: .8; transition: opacity .15s;
}
.pf-section-link:hover { opacity: 1; }

/* ── Team grid ───────────────────────────────────────── */
.pf-team-grid { display: flex; flex-direction: column; }
.pf-team-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.pf-team-card:last-child { border-bottom: none; }
.pf-team-card:hover { background: var(--surface2); }
.pf-team-card--cap .pf-team-ava { border-color: #fbbf24; box-shadow: 0 0 0 2px rgba(251,191,36,.2); }
.pf-team-num { font-size: 11px; font-weight: 800; color: var(--muted); min-width: 20px; }
.pf-team-ava {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #fff;
  border: 2px solid transparent; flex-shrink: 0;
}
.pf-team-ava--cap { border-color: #fbbf24; }
.pf-team-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-team-nick { font-size: 13px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.pf-team-role { font-size: 11px; font-weight: 600; color: var(--muted2); }
.pf-you-tag {
  font-size: 9px; font-weight: 900; padding: 1px 6px; border-radius: 4px;
  background: rgba(1,111,185,.15); color: var(--primary); letter-spacing: .05em;
}
.pf-team-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.pf-team-wr    { font-size: 13px; font-weight: 800; }
.pf-team-wr--g { color: var(--success); }
.pf-team-wr--r { color: var(--danger); }
.pf-team-matches { font-size: 10px; color: var(--muted); font-weight: 600; }

/* ── Tournaments grid ───────────────────────────────── */
.pf-trn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}
.pf-trn-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .12s;
  position: relative; overflow: hidden;
}
.pf-trn-card:hover { background: var(--surface2); }
.pf-trn-card--live { background: rgba(239,68,68,.03); }
.pf-trn-live-stripe {
  position: absolute; top: 0; left: 0; bottom: 0; width: 2px;
  background: var(--danger);
}
.pf-trn-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: var(--muted2);
}
.pf-trn-icon img { width: 100%; height: 100%; object-fit: cover; }
.pf-trn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-trn-name { font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-trn-meta { font-size: 11px; color: var(--muted2); }
.pf-trn-meta b { color: var(--accent); }
.pf-tbadge {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  flex-shrink: 0;
}
.pf-badge--blue   { background: rgba(1,111,185,.12); color: var(--primary); border: 1px solid rgba(1,111,185,.25); }
.pf-badge--orange { background: rgba(255,149,5,.1);  color: #f97316; border: 1px solid rgba(255,149,5,.22); }
.pf-badge--green  { background: rgba(34,197,94,.1);  color: var(--success); border: 1px solid rgba(34,197,94,.22); }
.pf-badge--purple { background: rgba(167,139,250,.1);color: #a78bfa; border: 1px solid rgba(167,139,250,.2); }

/* ── History table ────────────────────────────────────── */
.pf-hist-table { display: flex; flex-direction: column; }
.pf-hist-head {
  display: grid; grid-template-columns: 36px 1fr 1fr 40px 48px;
  gap: 0; padding: 8px 18px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface2);
}
.pf-hist-row {
  display: grid; grid-template-columns: 36px 1fr 1fr 40px 48px;
  gap: 0; padding: 10px 18px; align-items: center;
  border-bottom: 1px solid var(--border); font-size: 12px;
  transition: background .12s;
}
.pf-hist-row:last-child { border-bottom: none; }
.pf-hist-row:hover { background: var(--surface2); }
.pf-hist-logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--surface3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900; color: var(--muted2); overflow: hidden;
}
.pf-hist-logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-hist-opp  { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-hist-trn  { font-size: 11px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-hist-date { font-size: 11px; color: var(--muted); font-weight: 600; text-align: right; }
.pf-result {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 22px; border-radius: 5px;
  font-size: 11px; font-weight: 900;
}
.pf-result--w { background: rgba(34,197,94,.12); color: var(--success); }
.pf-result--l { background: rgba(239,68,68,.12);  color: var(--danger); }

/* ── Achievements ───────────────────────────────────────── */
.pf-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}
.pf-ach-card {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 18px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
  transition: background .12s;
}
.pf-ach-card:hover { background: color-mix(in srgb, var(--ac, #fbbf24) 4%, transparent); }
.pf-ach-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: color-mix(in srgb, var(--ac, #fbbf24) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac, #fbbf24) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; overflow: hidden;
}
.pf-ach-icon img { width: 100%; height: 100%; object-fit: cover; }
.pf-ach-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-ach-name { font-size: 12px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-ach-coin { font-size: 10px; font-weight: 800; color: #fbbf24; }

/* ── Promo bar ────────────────────────────────────────── */
.pf-promo-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  flex-wrap: wrap;
}
.pf-promo-bar-left { display: flex; align-items: center; gap: 14px; }
.pf-promo-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.2);
  display: flex; align-items: center; justify-content: center; color: #a78bfa;
}
.pf-promo-title { font-size: 13px; font-weight: 800; color: #222; }
.pf-promo-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pf-promo-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: opacity .15s; flex-shrink: 0;
}
.pf-promo-btn:hover { opacity: .85; }
.pf-link-btn {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 8px; margin-top: 4px;
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(1,111,185,.2);
}

/* ── nav plnav still used ────────────────────────────────────── */
/* plnav is the pill nav inside pf-shell */
.pf-shell .plnav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pf-shell .player-main-new {
  min-width: 0; overflow: visible;
}

/* ── Inventory shop-card extensions (preview/avatar/frame) ── */
.shop-card-preview {
  position: relative; width: 100%; aspect-ratio: 1/1;
  background: var(--surface2); border-radius: 10px 10px 0 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.shop-card-preview--profile-bg {
  display: flex; align-items: flex-end; padding-bottom: 12px;
}
.shop-card-avatar {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid rgba(255,255,255,.12);
  overflow: hidden;
}
.shop-card-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  pointer-events: none;
}
.shop-card-rarity {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid;
}
.shop-card-owned-badge {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid;
}
.shop-btn {
  width: 100%; padding: 8px 0; border-radius: 8px;
  font-size: 12px; font-weight: 700; font-family: 'Manrope', sans-serif;
  cursor: pointer; border: none; transition: opacity .15s, transform .1s;
}
.shop-btn:active { transform: scale(.97); }
.shop-btn--equip {
  background: var(--primary); color: #fff;
}
.shop-btn--equip:hover { opacity: .88; }
.shop-btn--unequip {
  background: rgba(255,255,255,.07); color: var(--muted);
  border: 1px solid var(--border);
}
.shop-btn--unequip:hover { background: rgba(255,255,255,.12); }
.shop-card--equipped { border-color: var(--primary) !important; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .pf-hero-name { font-size: 38px; }
  .pf-hero-kpibar { flex-wrap: wrap; gap: 0; }
  .pf-kpi-item { padding: 10px 16px; }
  .pf-hero-hbar { padding: 20px 16px 18px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .pf-hero-hbar-right { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 560px) {
  .pf-hero-name { font-size: 28px; letter-spacing: -.5px; }
  .pf-hero-ava, .pf-hero-ava-letter { width: 80px; height: 80px; }
  .pf-hero-ava-ring { width: 80px; height: 80px; }
  .pf-grid-wrap { padding: 16px 12px 28px; gap: 12px; }
  .pf-kpi-item { padding: 10px 14px; }
  .pf-kpi-val { font-size: 18px; }
  .pf-hist-head,.pf-hist-row { grid-template-columns: 0 1fr 1fr 40px 48px; }
  .pf-hist-logo { display: none; }
}

.pf-game-profile {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.pf-gp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface); gap: 12px; flex-wrap: wrap;
}
.pf-gp-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 800; color: var(--text);
}
.pf-gp-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.pf-gp-subtitle { font-size: 12px; font-weight: 600; color: var(--muted); }
.pf-gp-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pf-gp-synced { font-size: 11px; color: var(--muted); }
.pf-gp-sync-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 8px;
  background: rgba(1,111,185,.1); color: var(--primary);
  border: 1px solid rgba(1,111,185,.2);
  font-size: 11px; font-weight: 700; text-decoration: none;
  transition: background .15s; cursor: pointer; font-family: inherit;
}
.pf-gp-sync-btn:hover { background: rgba(1,111,185,.18); }
.pf-gp-connect-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; text-decoration: none;
  transition: opacity .15s;
}
.pf-gp-connect-btn:hover { opacity: .85; }
.pf-gp-body {
  display: flex; align-items: center; gap: 24px; background:var(--surface);
  padding: 20px 18px; flex-wrap: wrap;
}
/* Ранг */
.pf-gp-rank { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.pf-gp-medal { display: flex; align-items: center; }
.pf-gp-rank-info { display: flex; flex-direction: column; gap: 4px; }
.pf-gp-rank-name { font-size: 15px; font-weight: 900; color: var(--text); }
.pf-gp-rank-val  { font-size: 12px; font-weight: 700; color: var(--muted); }
.pf-gp-rank-sub  { font-size: 11px; color: var(--muted); }
/* Faceit level badge */
.pf-faceit-level {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: color-mix(in srgb, var(--lc) 12%, transparent);
  border: 2px solid color-mix(in srgb, var(--lc) 35%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.pf-faceit-lvl-num { font-size: 20px; font-weight: 900; color: var(--lc); line-height: 1; }
.pf-faceit-lvl-lbl { font-size: 9px; font-weight: 700; color: var(--lc); opacity: .7; letter-spacing: .5px; }
/* ELO bar */
.pf-faceit-bar {
  width: 120px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,.08); overflow: hidden; margin: 2px 0;
}
.pf-faceit-bar-fill { height: 100%; border-radius: 3px; transition: width .5s cubic-bezier(.4,0,.2,1); }
/* Статы */
.pf-gp-stats {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
  border-left: 1px solid var(--border); padding-left: 24px;
}
.pf-gp-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pf-gp-stat-val { font-size: 18px; font-weight: 900; color: var(--text); line-height: 1; }
.pf-gp-stat-lbl { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
/* Топ герои */
.pf-gp-heroes { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.pf-gp-heroes-lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.pf-gp-heroes-list { display: flex; gap: 8px; }
.pf-gp-hero {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: default;
}
.pf-gp-hero img {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border);
}
.pf-gp-hero span { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--border); font-size: 11px; font-weight: 800; color: var(--muted); }
.pf-gp-hero-games { font-size: 9px; color: var(--muted); font-weight: 700; }
/* Карты CS2 */
.pf-gp-maps-list { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-gp-map {
  padding: 4px 10px; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: 11px; font-weight: 700; color: var(--text);
}
/* CTA */
.pf-gp-cta {
  padding: 28px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); font-size: 13px;
}

.pf-matches-filters {
  display: flex; gap: 6px; padding: 14px 16px 0;
  flex-wrap: wrap;
}
.pf-mf-btn {
  padding: 5px 13px; border-radius: 8px;
  font-size: 11px; font-weight: 700; text-decoration: none;
  background: var(--surface2); color: var(--muted);
  border: 1px solid var(--border); transition: all .15s;
}
.pf-mf-btn:hover, .pf-mf-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pf-mf-btn--w.active { background: var(--success); border-color: var(--success); }
.pf-mf-btn--l.active { background: var(--danger);  border-color: var(--danger);  }
.pf-matches-summary { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.pf-ms-w { color: var(--success); }
.pf-ms-l { color: var(--danger);  }
.pf-ms-sep { color: var(--muted); }

.pf-hist-table--full .pf-hist-head,
.pf-hist-table--full .pf-hist-row {
  grid-template-columns: 28px 1fr 1fr 1fr 60px 40px 60px;
}
.pf-hist-my { font-size: 12px; font-weight: 700; color: var(--text); align-self: center; }
.pf-hist-score { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; }
.pf-hist-score-sep { color: var(--muted); font-size: 11px; }
.c-green { color: var(--success); }
.c-red   { color: var(--danger); }

.pf-card-link {
  display: block; text-align: center; padding: 10px;
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-decoration: none; border-top: 1px solid var(--border);
  opacity: .8; transition: opacity .15s;
}
.pf-card-link:hover { opacity: 1; }

.pf-match-upcoming-list { display: flex; flex-direction: column; }
.pf-upcoming-row {
  display: grid; grid-template-columns: 32px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.pf-upcoming-row:last-child { border-bottom: none; }
.pf-upcoming-row:hover { background: var(--surface2); }
.pf-upcoming-row--live { background: rgba(34,197,94,.04); }
.pf-upcoming-game {
  width: 32px; height: 32px; border-radius: 8px; overflow: hidden;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--muted);
}
.pf-upcoming-game img { width: 100%; height: 100%; object-fit: contain; }
.pf-upcoming-info { display: flex; flex-direction: column; gap: 2px; }
.pf-upcoming-trn { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.pf-upcoming-teams { font-size: 13px; font-weight: 800; color: var(--text); }
.pf-upcoming-teams em { font-style: normal; color: var(--muted); font-size: 11px; margin: 0 4px; }
.pf-upcoming-time { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.pf-upcoming-date { font-size: 12px; font-weight: 800; color: var(--text); }
.pf-upcoming-clock { font-size: 10px; color: var(--muted); font-weight: 600; }

.pf-trn-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding: 16px;
}
.pf-trn-card--lg { padding: 16px; min-height: 72px; }
.pf-trn-history { display: flex; flex-direction: column; }
.pf-trn-hist-row {
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: center; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.pf-trn-hist-row:last-child { border-bottom: none; }
.pf-trn-hist-row:hover { background: var(--surface2); }
.pf-trn-hist-icon {
  width: 36px; height: 36px; border-radius: 8px; overflow: hidden;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
}
.pf-trn-hist-icon img { width: 100%; height: 100%; object-fit: contain; }
.pf-trn-hist-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-trn-hist-name { font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-trn-hist-meta { font-size: 11px; color: var(--muted); }
.pf-trn-hist-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.pf-trn-hist-date { font-size: 10px; color: var(--muted); font-weight: 600; }
.pf-trn-place { font-size: 12px; font-weight: 800; color: var(--muted); }
.pf-trn-place--gold   { color: #f59e0b; }
.pf-trn-place--silver { color: #9ca3af; }
.pf-trn-place--bronze { color: #b45309; }

@media (max-width: 720px) {
  .pf-gp-body { flex-direction: column; gap: 16px; }
  .pf-gp-stats { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .pf-gp-heroes { margin-left: 0; }
  .pf-hist-table--full .pf-hist-head,
  .pf-hist-table--full .pf-hist-row { grid-template-columns: 24px 1fr 60px 36px 52px; }
  .pf-hist-my { display: none; }
}
@media (max-width: 480px) {
  .pf-matches-filters { gap: 4px; }
  .pf-trn-grid--full { grid-template-columns: 1fr; }
}

[data-theme="light"] .pf-hero-bg-mesh {
  background:
    radial-gradient(ellipse 120% 80% at 70% -10%, #bcd8ee 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 110%, #d4c9f0 0%, transparent 55%),
    var(--bg2);
}
[data-theme="light"] .pf-hero-bg-img { filter: brightness(.65) saturate(1.2); }
[data-theme="light"] .pf-hero-grad-b {
  background: linear-gradient(to top, rgba(240,244,245,1) 0%, rgba(240,244,245,.85) 35%, rgba(240,244,245,.4) 65%, transparent 100%);
}
[data-theme="light"] .pf-hero-vignette {
  background: radial-gradient(ellipse 130% 100% at 50% 50%, rgba(240,244,245,.15) 0%, rgba(37,48,49,.35) 100%);
}
[data-theme="light"] .pf-hero-name        { color: var(--text) !important; text-shadow: 0 1px 12px rgba(255,255,255,.5); }
[data-theme="light"] .pf-hero-eyebrow     { color: var(--muted); }
[data-theme="light"] .pf-hero-bg-img      { filter: brightness(.6) saturate(1.3); }
[data-theme="light"] .pf-hero-dot         { border-color: var(--bg2); }
[data-theme="light"] .pf-hero-kpibar      { background: rgba(255,255,255,.7); border-color: rgba(37,48,49,.1); }
[data-theme="light"] .pf-kpi-val          { color: var(--text); }
[data-theme="light"] .pf-kpi-lbl          { color: var(--muted); }
[data-theme="light"] .pf-kpi-div          { background: var(--border); }
[data-theme="light"] .pf-hero-setbtn      { background: rgba(37,48,49,.06); border-color: rgba(37,48,49,.12); color: var(--muted2); }
[data-theme="light"] .pf-hero-setbtn:hover{ background: rgba(37,48,49,.1); color: var(--text); }
[data-theme="light"] .pf-hero-ava         { border-color: rgba(37,48,49,.2); box-shadow: 0 0 0 5px rgba(41,120,160,.1), 0 12px 36px rgba(0,0,0,.12); }
[data-theme="light"] .pf-hero-ava-letter  { border-color: rgba(37,48,49,.14); box-shadow: 0 0 0 5px rgba(41,120,160,.1), 0 12px 36px rgba(0,0,0,.12); }
[data-theme="light"] .pf-badge--game      { background: rgba(37,48,49,.06); border-color: rgba(37,48,49,.12); color: var(--muted2); }
[data-theme="light"] .pf-hero-glow        { background: linear-gradient(to right, transparent, rgba(41,120,160,.3) 35%, rgba(188,171,121,.28) 65%, transparent); }
[data-theme="light"] .pf-pill--tot        { background: rgba(37,48,49,.05); color: var(--muted2); }
[data-theme="light"] .pf-kpi-compact-row  { background: rgba(255,255,255,.6); border-color: rgba(37,48,49,.1); }
[data-theme="light"] .pf-shell            { background: var(--bg2); }
[data-theme="light"] .pf-shell .plnav     { background: var(--surface) !important; border-bottom-color: var(--border); }
[data-theme="light"] .pf-hero--full       { background: var(--surface) !important; }
[data-theme="light"] .pf-grid-wrap       { background: var(--surface) !important; }
[data-theme="light"] .pf-hero             { background: var(--surface) !important;  overflow: visible; }

[data-theme="light"] .pf-hero-scroll span { background: rgba(37,48,49,.3); }
[data-theme="light"] .pf-shell .player-main-new  { background: var(--surface) !important; }
/* end pf-* redesign */

/* ── Hero блок ── */
[data-theme="light"] .tm-hero-blur {
  filter: blur(50px) brightness(.55) saturate(1.2);
}
[data-theme="light"] .tm-hero-overlay {
  background: linear-gradient(135deg,
    rgba(240,244,245,.97) 0%,
    rgba(240,244,245,.82) 55%,
    rgba(240,244,245,.6) 100%);
}
[data-theme="light"] .db-hero-orb { opacity: .09; }
[data-theme="light"] .tm-hero-name  { color: var(--text); }
[data-theme="light"] .tm-hero-label { color: var(--muted); }
[data-theme="light"] .tm-hero-stat-val   { color: var(--text); }
[data-theme="light"] .tm-hero-stat-label { color: var(--muted); }
[data-theme="light"] .tm-hero-logo {
  background: rgba(37,48,49,.07);
  border-color: rgba(37,48,49,.14);
  box-shadow: 0 4px 18px rgba(37,48,49,.12);
}
[data-theme="light"] .tm-hero-logo span { color: var(--text); }

/* ── Вкладки (tabs) ── */
[data-theme="light"] .tm-tabs {
  background: var(--surface2);
}
[data-theme="light"] .tm-tab:hover {
  background: rgba(37,48,49,.06);
  color: var(--text);
}
[data-theme="light"] .tm-tab--active {
  background: var(--surface);
  border-color: var(--border2);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(37,48,49,.08);
}

/* Бейдж на вкладке */
[data-theme="light"] .tm-tab-badge {
  background: rgba(37,48,49,.1);
  color: var(--muted2);
}
[data-theme="light"] .tm-tab-badge--green {
  background: rgba(22,163,74,.12);
  color: var(--success);
}

/* ── Список участников ── */
[data-theme="light"] .tm-member:hover {
  background: rgba(37,48,49,.03);
}
[data-theme="light"] .tm-member-ava span {
  background: linear-gradient(135deg, var(--primary), #4a7fa0);
}
[data-theme="light"] .db-roster-cap {
  border-color: var(--surface);
}
[data-theme="light"] .tm-member-nick {
  color: var(--text);
}
[data-theme="light"] .tm-member-stat-val {
  color: var(--text);
}
[data-theme="light"] .tm-member-stat-label {
  color: var(--muted);
}

/* ── Role pill (inline стили в PHP переопределить нельзя, фиксим через attr) ── */
[data-theme="light"] .tm-role-pill {
  filter: saturate(.85) brightness(.9);
}

/* ── Кнопки действий ── */
[data-theme="light"] .tm-action-btn--ghost {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--muted2);
}
[data-theme="light"] .tm-action-btn--ghost:hover {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-light);
}
[data-theme="light"] .tm-action-btn--danger {
  background: var(--danger-light);
  border-color: rgba(220,38,38,.2);
  color: var(--danger);
}
[data-theme="light"] .tm-action-btn--danger:hover {
  background: rgba(220,38,38,.18);
  border-color: var(--danger);
}

[data-theme="light"] .tm-captain-transfer-btn {
  background: rgba(217,119,6,.08);
  border-color: rgba(217,119,6,.2);
  color: var(--warning);
}
[data-theme="light"] .tm-captain-transfer-btn:hover {
  background: rgba(217,119,6,.14);
}

[data-theme="light"] .tm-roster-size-wrap {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .tm-roster-size-label {
  color: var(--muted2);
}
[data-theme="light"] .tm-size-btn {
  background: var(--surface3);
  border-color: var(--border2);
  color: var(--text);
}
[data-theme="light"] .tm-size-btn:hover {
  background: var(--surface4);
}
[data-theme="light"] .tm-size-val {
  color: var(--text);
}

[data-theme="light"] .tm-inline-input {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="light"] .tm-inline-input:focus {
  border-color: var(--primary);
}
[data-theme="light"] .tm-inline-select {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(0%2C0%2C0%2C.45)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

[data-theme="light"] .tm-game-chip {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .tm-game-chip--active,
[data-theme="light"] .tm-game-chip:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="light"] .tm-games-label {
  color: var(--muted);
}
[data-theme="light"] .tm-save-member-btn {
  background: var(--success-light);
  border-color: rgba(22,163,74,.25);
  color: var(--success);
}
[data-theme="light"] .tm-save-member-btn:hover {
  background: rgba(22,163,74,.18);
}

[data-theme="light"] .db-section {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .db-section-head {
  background: var(--surface2);
  border-bottom-color: var(--border);
}
[data-theme="light"] .db-section-title { color: var(--text); }
[data-theme="light"] .tm-danger-zone { border-color: rgba(220,38,38,.18) !important; }
[data-theme="light"] .tm-danger-title { color: var(--text); }
[data-theme="light"] .tm-danger-sub   { color: var(--muted2); }

[data-theme="light"] .tm-toast {
  box-shadow: 0 8px 32px rgba(37,48,49,.18);
}
[data-theme="light"] .tm-toast--success {
  background: rgba(22,163,74,.1);
  border-color: rgba(22,163,74,.28);
  color: var(--success);
}
[data-theme="light"] .tm-toast--error {
  background: var(--danger-light);
  border-color: rgba(220,38,38,.28);
  color: var(--danger);
}
[data-theme="light"] .tm-toast--info {
  background: var(--primary-light);
  border-color: rgba(41,120,160,.3);
  color: var(--primary);
}

[data-theme="light"] .tm-recruit-banner {
  background: rgba(41,120,160,.06);
  border-color: rgba(41,120,160,.18);
}
[data-theme="light"] .tm-recruit-banner__glow {
  background: radial-gradient(ellipse, rgba(41,120,160,.08), transparent 70%);
}
[data-theme="light"] .tm-recruit-banner__icon {
  background: rgba(41,120,160,.1);
  border-color: rgba(41,120,160,.22);
  color: var(--primary);
}
[data-theme="light"] .tm-recruit-banner__title { color: var(--text); }
[data-theme="light"] .tm-recruit-banner__sub   { color: var(--muted2); }
[data-theme="light"] .tm-recruit-step           { color: var(--muted2); }
[data-theme="light"] .tm-recruit-step__num {
  background: rgba(41,120,160,.12);
  border-color: rgba(41,120,160,.25);
  color: var(--primary);
}

[data-theme="light"] .tm-section-head { color: var(--muted); }

[data-theme="light"] .tm-candidate {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .tm-candidate:hover {
  background: var(--surface3);
  border-color: var(--border2);
}
[data-theme="light"] .tm-candidate-ava {
  background: linear-gradient(135deg, var(--primary), #4a7fa0);
}
[data-theme="light"] .tm-candidate-nick  { color: var(--text); }
[data-theme="light"] .tm-candidate-meta span { color: var(--muted2); }

[data-theme="light"] .tm-invite-btn {
  background: var(--primary-light);
  border-color: rgba(41,120,160,.25);
  color: var(--primary);
}
[data-theme="light"] .tm-invite-btn:hover {
  background: rgba(41,120,160,.18);
}
[data-theme="light"] .tm-invite-btn--sent {
  background: var(--success-light);
  border-color: rgba(22,163,74,.25);
  color: var(--success);
}

[data-theme="light"] .tm-recruit-links {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .tm-link-type-btn {
  background: var(--surface3);
  border-color: var(--border);
  color: var(--muted2);
}
[data-theme="light"] .tm-link-type-btn--active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="light"] .tm-link-type-hint { opacity: .75; }

[data-theme="light"] .tm-link-form-label { color: var(--muted); }

[data-theme="light"] .tm-link-result {
  background: var(--success-light);
  border-color: rgba(22,163,74,.2);
}
[data-theme="light"] .tm-link-result__label { color: var(--success); }
[data-theme="light"] .tm-link-input {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="light"] .tm-copy-btn {
  background: var(--surface3);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .tm-copy-btn:hover {
  background: var(--surface4);
  color: var(--text);
}

[data-theme="light"] .tm-link-list-label { color: var(--muted); }
[data-theme="light"] .tm-link-row {
  background: var(--surface3);
  border-color: var(--border);
}
[data-theme="light"] .tm-link-row-exp { color: var(--muted); }
[data-theme="light"] .tm-link-row-url { color: var(--muted2); }
[data-theme="light"] .tm-link-row-type--unique {
  background: rgba(217,119,6,.1);
  color: var(--warning);
}
[data-theme="light"] .tm-link-row-type--permanent {
  background: var(--primary-light);
  color: var(--primary);
}

[data-theme="light"] .tm-empty-state { color: var(--muted); }

[data-theme="light"] .pf-shell .tm-hero {
  border-bottom-color: var(--border);
}

[data-theme="light"] .db-tag--dim {
  background: rgba(37,48,49,.07);
  border-color: rgba(37,48,49,.1);
  color: var(--muted2);
}
[data-theme="light"] .db-tag--blue {
  background: rgba(41,120,160,.1);
  color: var(--primary);
}
[data-theme="light"] .db-tag--gold {
  background: rgba(217,119,6,.1);
  border-color: rgba(217,119,6,.18);
  color: var(--warning);
}

[data-theme="light"] .plnav-game-card {
  color: var(--muted2);
  border-color: var(--border);
  background: var(--surface2);
}
[data-theme="light"] .plnav-game-card:hover {
  border-color: var(--border2);
  color: var(--text);
  background: var(--surface3);
}
[data-theme="light"] .plnav-game-card--active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: none;
}

.ach-wrap { display:flex; flex-direction:column; gap:20px; padding:24px 12px 24px; }

.ach-header {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
  padding:20px 24px;
  background:var(--primary);
  border:1px solid var(--primary); border-radius:16px;
}
.ach-header-left { display:flex; align-items:center; gap:14px; }
.ach-header-icon {
  width:48px; height:48px; border-radius:14px; flex-shrink:0;
  background:rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center;
}
.ach-header-title { font-size:18px; font-weight:900; color:#fff; line-height:1.2; }
.ach-header-sub   { font-size:12px; color:rgba(255,255,255,.7); margin-top:2px; }

.ach-header-stats { display:flex; align-items:center; gap:0; }
.ach-hstat        { text-align:center; padding:0 20px; }
.ach-hstat-val    { font-size:22px; font-weight:900; color:#fff; line-height:1; }
.ach-hstat-lbl    { font-size:10px; font-weight:700; color:rgba(255,255,255,.6); text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }
.ach-hstat-sep    { width:1px; height:36px; background:rgba(255,255,255,.15); }

.ach-progress-bar-wrap { padding:0 2px; }
.ach-progress-bar { height:4px; background:rgba(255,255,255,.1); border-radius:4px; overflow:hidden; }
.ach-progress-fill { height:100%; background:var(--primary); border-radius:4px; transition:width .6s ease; min-width:4px; }

.ach-section { display:flex; flex-direction:column; gap:12px; }
.ach-section-header { display:flex; align-items:center; justify-content:space-between; padding:0 2px; }
.ach-section-title {
  display:flex; align-items:center; gap:7px;
  font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted2);
}
.ach-section-counter {
  font-size:11px; font-weight:700; color:var(--muted);
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.07);
  padding:2px 9px; border-radius:20px;
}

.ach-game-tag { font-size:9px; font-weight:800; padding:2px 7px; border-radius:20px; letter-spacing:.05em; text-transform:uppercase; }
.ach-game-tag--cs2  { background:rgba(96,165,250,.12); color:#60a5fa; border:1px solid rgba(96,165,250,.2); }
.ach-game-tag--dota { background:rgba(251,113,133,.12); color:#fb7185; border:1px solid rgba(251,113,133,.2); }

.ach-grid { display:grid; grid-template-columns:1fr; gap:6px; }

.ach-card {
  display:flex; align-items:center; gap:14px;
  padding:14px 16px;
  background:rgba(255,255,255,.03); border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  transition:background .15s, border-color .15s, transform .15s;
  position:relative; overflow:hidden;
}
.ach-card--earned {
  background:rgba(255,255,255,.04);
  border-color: color-mix(in srgb, var(--ach-color, #fbbf24) 25%, transparent);
}
.ach-card--earned::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(135deg, color-mix(in srgb, var(--ach-color, #fbbf24) 8%, transparent) 0%, transparent 60%);
  border-radius:inherit;
}
.ach-card--locked { opacity:.55; }
.ach-card--locked:hover { opacity:.7; }
.ach-card--earned:hover { transform:translateY(-1px); border-color: color-mix(in srgb, var(--ach-color, #fbbf24) 40%, transparent); }

.ach-card-icon {
  width:44px; height:44px; flex-shrink:0; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; border:1px solid transparent; transition:transform .15s;
}
.ach-card--earned:hover .ach-card-icon { transform:scale(1.05); }

.ach-card-body { flex:1; min-width:0; }
.ach-card-name { font-size:13px; font-weight:800; color:#fff; margin-bottom:2px; }
.ach-card-name--locked { color:rgba(255,255,255,.5); }
.ach-card-desc { font-size:11px; color:var(--muted); line-height:1.4; }
.ach-card-date { display:inline-flex; align-items:center; gap:4px; margin-top:5px; font-size:10px; color:var(--muted); font-weight:600; }

.ach-card-right { display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex-shrink:0; }
.ach-card-gcoin {
  display:flex; align-items:center; gap:4px;
  font-size:11px; font-weight:800; color:rgba(255,255,255,.35);
  padding:3px 8px; border-radius:20px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07);
}
.ach-card-gcoin--earned { color:#fbbf24; background:rgba(251,191,36,.1); border-color:rgba(251,191,36,.2); }
.ach-card-game-tag { font-size:9px; font-weight:800; padding:2px 7px; border-radius:20px; letter-spacing:.04em; text-transform:uppercase; }
.ach-card-game-tag--cs2  { background:rgba(96,165,250,.1);  color:#60a5fa; border:1px solid rgba(96,165,250,.2); }
.ach-card-game-tag--dota { background:rgba(251,113,133,.1); color:#fb7185; border:1px solid rgba(251,113,133,.2); }
.ach-card-check {
  width:18px; height:18px; border-radius:50%;
  background:rgba(74,222,128,.15); border:1px solid rgba(74,222,128,.3);
  display:flex; align-items:center; justify-content:center; color:#4ade80;
}

.ach-empty { text-align:center; padding:60px 20px; color:var(--muted); }

@media (max-width:600px) {
  .ach-header { flex-direction:column; align-items:flex-start; }
  .ach-header-stats { align-self:stretch; justify-content:space-around; }
  .ach-hstat { padding:0 10px; }
}

.pf-hero-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.pf-hero-meta-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 2px;
}

.pf-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  padding: 3px 9px; border-radius: 99px;
  border: 1px solid;
}
.pf-status-badge--online {
  background: rgba(34,197,94,.1);
  border-color: rgba(34,197,94,.25);
  color: #4ade80;
}
.pf-status-badge--offline {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.35);
}
.pf-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}
.pf-status-badge--online .pf-status-dot {
  animation: pf-pulse 2s infinite;
}
@keyframes pf-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .45; }
}

.pf-hero-since {
  font-size: 11px; color: rgba(255,255,255,.3);
  font-weight: 500;
}

.pf-social-actions {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.pf-social-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .15px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.pf-social-btn--friend {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.3);
  color: #a5b4fc;
}
.pf-social-btn--friend:hover {
  background: rgba(99,102,241,.22);
  border-color: rgba(99,102,241,.5);
  color: #c7d2fe;
}
.pf-social-btn--msg {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
}
.pf-social-btn--msg:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

.plnav-badge {
  font-size: 10px; font-weight: 800;
  background: var(--danger); color: #fff;
  border-radius: 99px; padding: 1px 5px;
  line-height: 1.4; margin-left: 2px;
  min-width: 16px; text-align: center;
}
.plnav-item--messages { gap: 6px; }

.social-shell {
  padding: 0 10px;
}

.social-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 20px;
  flex-wrap: wrap;
}
.social-header-left {
  display: flex; align-items: center; gap: 14px;
}
.social-header-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-header-title {
  font-size: 17px; font-weight: 700; color: var(--text);
}
.social-header-sub {
  font-size: 12px; color: var(--muted); margin-top: 1px;
}
.social-header-right { flex-shrink: 0; }

.social-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 7px 12px;
  color: var(--muted);
}
.social-search-input {
  background: none; border: none; outline: none;
  font-size: 13px; color: var(--text);
  width: 180px;
}
.social-search-input::placeholder { color: var(--muted); }
.social-search-input:disabled { cursor: not-allowed; }

.social-empty {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 440px;
  margin: 0 auto;
}
.social-empty-icon {
  width: 80px; height: 80px; border-radius: 20px;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.15);
  color: rgba(99,102,241,.5);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.social-empty-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
}
.social-empty-text {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  margin-bottom: 24px;
}

.social-coming-features {
  display: inline-flex; flex-direction: column; gap: 8px;
  text-align: left;
}
.social-cf-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.social-cf-item svg { color: #4ade80; flex-shrink: 0; }

.dm-shell {
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
  background: rgba(255,255,255,.02);
}
.dm-sidebar {
  width: 260px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
}
.dm-sidebar-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--muted);
  font-size: 12px;
}
.dm-main {
  flex: 1;
  display: flex; align-items: center;
}

[data-theme="light"] .social-header-icon { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.2); }
[data-theme="light"] .social-search      { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .social-empty-icon  { background: rgba(99,102,241,.06); border-color: rgba(99,102,241,.12); }
[data-theme="light"] .social-cf-item     { color: var(--muted2); }
[data-theme="light"] .dm-shell           { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .dm-sidebar         { border-right-color: var(--border); }
[data-theme="light"] .pf-status-badge--online { background: rgba(34,197,94,.08); }
[data-theme="light"] .pf-social-btn--msg { background: var(--surface2); border-color: var(--border); color: var(--text); }
[data-theme="light"] .pf-hero-since      { color: var(--muted); }

@media (max-width: 640px) {
  .social-shell { padding: 16px 14px 28px; }
  .dm-shell     { flex-direction: column; }
  .dm-sidebar   { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); max-height: 160px; }
  .pf-social-actions { flex-wrap: wrap; }
  .pf-social-btn { font-size: 11px; padding: 6px 10px; }
  .social-search-input { width: 120px; }
}

/* ════ HLTV-style profile card ════════════════════════════ */
.hltv-card {
  border-radius: 0;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.07);
  margin-bottom: 2px;
  background: transparent;
}

/* Title bar */
.hltv-card-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: visible;
  z-index: 10;
}
.hltv-card-title-left {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.hltv-card-title-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.hltv-title-game-icon {
  width: 22px; height: 22px; object-fit: contain; border-radius: 4px; flex-shrink: 0;
}
.hltv-title-text {
  font-size: 14px; font-weight: 800; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hltv-title-team-desc {
  font-weight: 500; color: var(--muted2); margin-left: 6px;
}

/* Body — 8-column CSS grid × 4 rows */
.hltv-card-body {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, 1fr);
  min-height: 220px;
  overflow: visible;
}

/* Photo column — cols 1-4, rows 1-4 */
.hltv-photo-col {
  grid-area: 1 / 1 / 5 / 5;
  position: relative;
  overflow: hidden;
  background: rgba(4,6,20,.55);
  border-right: 1px solid rgba(255,255,255,.06);
}
/* Декоративный техно-фон под фото */
.hltv-photo-col::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/assets/img/bg-laptop.svg');
  background-size: 100%; background-position: center 40%;
  background-repeat: no-repeat;
  opacity: .8;
  filter: hue-rotate(195deg) saturate(0) brightness(.5);
}
.hltv-photo-wrap {
  /* Слой фотографии — по центру с отступами */
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 16px 50px;
}
/* Контейнер фото + фрейм косметики */
.hltv-photo-inner {
  position: relative;
  width: 130px; height: 130px;
  flex-shrink: 0;
}
.hltv-photo-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0,0,0,.65);
}
.hltv-photo-letter {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
/* Косметика фрейма — поверх круглого фото */
.hltv-photo-frame-overlay {
  position: absolute;
  top: -8px; left: -8px;
  width: calc(100% + 16px); height: calc(100% + 16px);
  object-fit: contain; pointer-events: none; z-index: 2;
}
/* Градиент и ник — поверх всего, relative к .hltv-photo-col */
.hltv-photo-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 48%;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 100%);
  pointer-events: none; z-index: 3;
}
.hltv-photo-nick {
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 4;
  text-align: center;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
  pointer-events: none;
}

/* Info cells — base */
.hltv-cell {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  border-right: 1px solid rgba(255,255,255,.05);
  min-width: 0;
}
.hltv-cell-label {
  font-size: 10px; font-weight: 700; letter-spacing: .6px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 3px;
  white-space: nowrap;
}
.hltv-cell-val {
  font-size: 13px; font-weight: 800; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hltv-cell-val--medal {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.hltv-cell-unknown {
  font-size: 11px; font-weight: 500; color: var(--muted);
  font-style: italic; white-space: normal; line-height: 1.35;
}

/* Grid areas */
.hltv-cell--name    { grid-area: 1 / 5 / 2 / 7; }
.hltv-cell--team    { grid-area: 1 / 7 / 2 / 9; border-right: none; }
.hltv-cell--age     { grid-area: 2 / 5 / 3 / 7; }
.hltv-cell--country { grid-area: 2 / 7 / 3 / 9; border-right: none; }
.hltv-cell--rating  { grid-area: 3 / 5 / 4 / 7; }
.hltv-cell--role    { grid-area: 3 / 7 / 4 / 9; border-right: none; }
.hltv-cell--earnings {
  grid-area: 4 / 5 / 5 / 9;
  flex-direction: row; align-items: center; gap: 10px;
  border-bottom: none; border-right: none;
}

/* Team link — top-right of team cell */
.hltv-cell-team-link {
  position: absolute; top: 7px; right: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px;
  color: var(--muted); background: rgba(255,255,255,.06);
  text-decoration: none; transition: background .15s, color .15s;
}
.hltv-cell-team-link:hover { background: rgba(255,255,255,.12); color: var(--text); }

/* Earnings layout */
.hltv-earnings-right {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0;
}
.hltv-earnings-trophies {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.hltv-earnings-money {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.hltv-prize-money {
  font-size: 12px; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.06); border-radius: 6px; padding: 2px 8px;
}
.hltv-gcoin-earned {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: #f59e0b;
  background: rgba(245,158,11,.12); border-radius: 6px; padding: 2px 8px;
}

/* Empty state */
.hltv-empty-state {
  grid-area: 1 / 5 / 5 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px;
  color: var(--muted); font-size: 13px; font-weight: 500; text-align: center;
}

/* ELO / Rating badge */
.hltv-faceit-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; border: 2px solid;
  font-size: 15px; font-weight: 900; flex-shrink: 0;
}
.hltv-elo-cs2  { font-size: 12px; font-weight: 800; color: #ff6a1f; }
.hltv-elo-dota { font-size: 12px; font-weight: 800; color: #818cf8; }

/* Trophies */
.hltv-trophy {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
}
.hltv-trophy--gold   { color: #fbbf24; background: rgba(251,191,36,.1); }
.hltv-trophy--silver { color: #94a3b8; background: rgba(148,163,184,.08); }
.hltv-trophy--bronze { color: #c2805a; background: rgba(194,128,90,.08); }
.hltv-trophy-hint {
  color: var(--muted); cursor: help; opacity: .6;
  display: inline-flex; align-items: center;
}

/* Social icons */
.hltv-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  text-decoration: none; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.hltv-social-icon--steam  { background: rgba(23,107,170,.2);  color: #5bb8f5; }
.hltv-social-icon--steam:hover  { background: rgba(23,107,170,.38); color: #93d4ff; }
.hltv-social-icon--twitch { background: rgba(145,70,255,.2);  color: #bf94ff; }
.hltv-social-icon--twitch:hover { background: rgba(145,70,255,.35); color: #d4b0ff; }

/* Light theme */
[data-theme="light"] .hltv-card { border-color: var(--border); }
[data-theme="light"] .hltv-card-title { background: var(--surface2); border-bottom-color: var(--border); }
[data-theme="light"] .hltv-photo-col { border-right-color: var(--border); background: rgba(220,225,240,.5) !important; }
[data-theme="light"] .hltv-photo-col::before { filter: hue-rotate(175deg) saturate(0) brightness(.9); opacity: .8; }
[data-theme="light"] .hltv-cell { border-color: var(--border); }
[data-theme="light"] .hltv-cell-team-link { background: var(--surface2); }

/* Responsive */
@media (max-width: 640px) {
  .hltv-card-body {
    display: flex; flex-direction: column;
  }
  .hltv-photo-col {
    height: 200px; width: 100%;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .hltv-cell { border-right: none; }
  .hltv-cell--earnings { flex-direction: column; align-items: flex-start; }
  .hltv-earnings-right { flex-wrap: wrap; }
}

.social-count {
  font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,.08);
  border-radius: 99px; padding: 1px 7px;
  color: var(--muted); margin-left: 4px;
}

.friends-req-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(251,146,60,.1);
  border: 1px solid rgba(251,146,60,.25);
  color: #fb923c; cursor: pointer;
  transition: background .15s;
}
.friends-req-toggle:hover { background: rgba(251,146,60,.18); }

.friends-requests-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.friends-requests-panel.frp--open { max-height: 600px; }
.frp-title {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--muted);
  padding: 12px 16px 0;
}
.frp-list { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.frp-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.frp-ava {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.frp-ava img { width: 100%; height: 100%; object-fit: cover; }
.frp-ava-letter {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#334155,#1e293b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; color: #fff;
}
.frp-info { flex: 1; min-width: 0; }
.frp-name { font-size: 13px; font-weight: 700; color: var(--text); }
.frp-date { font-size: 11px; color: var(--muted); margin-top: 1px; }
.frp-actions { display: flex; gap: 6px; flex-shrink: 0; }
.frp-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 6px;
  border: 1px solid; cursor: pointer;
  transition: background .15s;
}
.frp-btn:disabled { opacity: .5; cursor: not-allowed; }
.frp-btn--accept  { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); color: #4ade80; }
.frp-btn--accept:hover:not(:disabled)  { background: rgba(34,197,94,.2); }
.frp-btn--decline { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.2); color: #f87171; }
.frp-btn--decline:hover:not(:disabled) { background: rgba(239,68,68,.16); }

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}
.friend-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .15s, background .15s;
}
.friend-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.friend-card-ava {
  position: relative; width: 44px; height: 44px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.friend-card-ava img { width: 100%; height: 100%; object-fit: cover; }
.friend-card-letter {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#334155,#1e293b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; color: #fff;
}
.friend-card-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #070612;
}
.friend-card-dot--online  { background: var(--success); box-shadow: 0 0 5px rgba(34,197,94,.5); }
.friend-card-dot--offline { background: rgba(255,255,255,.2); }
.friend-card-info { flex: 1; min-width: 0; }
.friend-card-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-card-game { font-size: 11px; color: var(--muted); margin-top: 2px; }
.friend-card-actions { display: flex; gap: 5px; flex-shrink: 0; }
.friend-act-btn {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--muted); cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.friend-act-btn--msg:hover    { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.3); color: #a5b4fc; }
.friend-act-btn--remove:hover { background: rgba(239,68,68,.1);   border-color: rgba(239,68,68,.25);  color: #f87171; }
.friend-act-btn--party:hover  { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.3);   color: #4ade80; }
.friend-act-btn--party-done   { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.3);   color: #4ade80; cursor: default; }

.dm-shell {
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
  height: 520px;
  background: rgba(255,255,255,.02);
}
.dm-sidebar {
  width: 260px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.dm-sidebar-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--muted); font-size: 12px;
}
.dm-conv-list { flex: 1; overflow-y: auto; padding: 6px; }
.dm-conv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 10px;
  text-decoration: none; cursor: pointer;
  transition: background .12s;
  position: relative;
}
.dm-conv-item:hover         { background: rgba(255,255,255,.05); }
.dm-conv-item--active       { background: rgba(99,102,241,.12); }
.dm-conv-ava {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.dm-conv-ava img { width: 100%; height: 100%; object-fit: cover; }
.dm-conv-letter {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#334155,#1e293b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
}
.dm-conv-info { flex: 1; min-width: 0; }
.dm-conv-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-conv-last { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-conv-badge {
  font-size: 10px; font-weight: 800;
  background: var(--danger); color: #fff;
  border-radius: 99px; padding: 1px 5px;
  min-width: 16px; text-align: center;
  flex-shrink: 0;
}

.dm-main {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0;
}
.dm-main-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); font-size: 13px;
}
.dm-chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  width:100%;
}
.dm-chat-ava {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.dm-chat-ava img { width: 100%; height: 100%; object-fit: cover; }
.dm-chat-name { font-size: 14px; font-weight: 700; color: var(--text); }

.dm-messages {
  flex: 1; overflow-y: auto;
  padding: 14px 16px;
  padding-top: 48px;
  display: flex; flex-direction: column; gap: 8px;
  width:100%;
  scroll-padding-top: 48px;
}
.dm-msg-empty {
  text-align: center; color: var(--muted); font-size: 13px;
  margin: auto;
}
.dm-msg {
  display: flex; flex-direction: column;
  width: 100%;
}
.dm-msg--out { align-items: flex-end; }
.dm-msg--in  { align-items: flex-start; }
.dm-msg-bubble { max-width: 72%; }
.dm-msg-bubble {
  padding: 9px 13px; border-radius: 14px;
  font-size: 13px; line-height: 1.5; word-break: break-word;
}
.dm-msg--out .dm-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.dm-msg--in .dm-msg-bubble {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.dm-msg-time {
  font-size: 10px; color: var(--muted); margin-top: 3px;
  padding: 0 4px;
}

.dm-input-bar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  width:100%;
}
.dm-input {
  flex: 1; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 9px 12px;
  font-size: 13px; color: var(--text);
  resize: none; outline: none;
  min-height: 38px; max-height: 120px;
  font-family: inherit; line-height: 1.4;
  transition: border-color .15s;
}
.dm-input:focus { border-color: rgba(99,102,241,.4); }
.dm-input::placeholder { color: var(--muted); }
.dm-send-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary); border: none;
  color: #fff; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.dm-send-btn:hover { opacity: .85; }

/* Emoji button */
.dm-emoji-btn {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.dm-emoji-btn:hover { color: var(--primary); background: rgba(99,102,241,.1); }

/* Sticker image in bubble */
.dm-msg-bubble--sticker { background: transparent !important; padding: 4px 0 !important; }
.dm-sticker-img { max-width: 280px; max-height: 280px; border-radius: 8px; display: block; }

/* Picker popup */
.dm-picker {
  position: fixed; z-index: 950;
  width: 320px; max-height: 360px;
  background: var(--card2, #1e2433);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.45);
  flex-direction: column; overflow: hidden;
}
.dm-picker-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.dm-picker-tab {
  flex: 1; padding: 10px 8px; background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.dm-picker-tab--active { color: var(--primary); border-bottom-color: var(--primary); }
.dm-picker-body { flex: 1; overflow: hidden; min-height: 0; }
.dm-picker-panel { height: 100%; overflow-y: auto; padding: 8px; }

/* Emoji grid */
.dm-emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
}
.dm-emoji-item {
  background: none; border: none; cursor: pointer; font-size: 20px;
  padding: 4px; border-radius: 6px; line-height: 1;
  transition: background .1s;
}
.dm-emoji-item:hover { background: rgba(255,255,255,.1); }

/* Sticker categories */
.dm-stk-cats {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.dm-stk-cat {
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: var(--muted); cursor: pointer; transition: all .12s; white-space: nowrap;
}
.dm-stk-cat--active, .dm-stk-cat:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.dm-stk-panels { padding: 8px; overflow-y: auto; max-height: 240px; }
.dm-stk-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dm-stk-panel--hidden { display: none; }
.dm-stk-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; cursor: pointer; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.dm-stk-item:hover { background: rgba(99,102,241,.15); border-color: var(--primary); }
.dm-stk-item img { max-width: 60px; max-height: 60px; object-fit: contain; }
.dm-stk-empty {
  text-align: center; color: var(--muted); font-size: 12px;
  padding: 32px 16px; line-height: 1.6;
}

/* Context menu */
.dm-ctx-menu {
  position: fixed; z-index: 960;
  min-width: 180px;
  background: var(--card2, #1e2433);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.5);
  flex-direction: column; padding: 4px;
  display: none;
}
.dm-ctx-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: none; border: none;
  cursor: pointer; font-size: 13px; color: var(--text);
  border-radius: 8px; text-align: left; width: 100%;
  transition: background .1s;
}
.dm-ctx-item:hover { background: rgba(255,255,255,.07); }
.dm-ctx-item--danger { color: var(--danger); }
.dm-ctx-item--danger:hover { background: rgba(239,68,68,.1); }
.dm-ctx-sep { height: 1px; background: rgba(255,255,255,.07); margin: 2px 0; }

[data-theme="light"] .dm-picker      { background: #fff; border-color: var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.15); }
[data-theme="light"] .dm-picker-tabs { border-bottom-color: var(--border); }
[data-theme="light"] .dm-stk-cats    { border-bottom-color: var(--border); }
[data-theme="light"] .dm-stk-cat     { background: var(--surface2); border-color: var(--border); color: var(--text); }
[data-theme="light"] .dm-stk-item    { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .dm-emoji-item:hover { background: var(--surface2); }
[data-theme="light"] .dm-ctx-menu    { background: #fff; border-color: var(--border); }
[data-theme="light"] .dm-ctx-item    { color: var(--text); }
[data-theme="light"] .dm-ctx-item:hover { background: var(--surface2); }
[data-theme="light"] .dm-ctx-sep     { background: var(--border); }

[data-theme="light"] .friend-card       { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .friend-card:hover { background: var(--surface3,var(--surface2)); }
[data-theme="light"] .friend-act-btn    { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .frp-item          { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .dm-shell          { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .dm-sidebar        { border-right-color: var(--border); }
[data-theme="light"] .dm-conv-item--active { background: rgba(99,102,241,.08); }
[data-theme="light"] .dm-chat-header    { border-bottom-color: var(--border); }
[data-theme="light"] .dm-input-bar      { border-top-color: var(--border); }
[data-theme="light"] .dm-input          { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .dm-msg--in .dm-msg-bubble { background: var(--surface3,#f1f5f9); color: var(--text); }
[data-theme="light"] .friend-card-dot   { border-color: var(--bg2, #f8fafc); }

@media (max-width: 680px) {
  .friends-grid { grid-template-columns: 1fr 1fr; }
  .dm-shell { flex-direction: column; height: auto; min-height: 500px; }
  .dm-sidebar { width: 100%; max-height: 180px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dm-main  { min-height: 320px; }
}
@media (max-width: 420px) {
  .friends-grid { grid-template-columns: 1fr; }
}

.pl-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 7px 11px;
  color: var(--muted);
}
.pl-search-input {
  background: none; border: none; outline: none;
  font-size: 13px; color: var(--text); width: 100%;
}
.pl-search-input::placeholder { color: var(--muted); }

.pl-sidebar-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  text-decoration: none; padding: 6px 2px;
  transition: color .15s;
}
.pl-sidebar-link:hover { color: var(--text); }

.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.pl-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.pl-card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-2px); }

.pl-card-ava-wrap {
  position: relative; display: block;
  width: 72px; height: 72px; margin: 20px auto 0;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  text-decoration: none;
}
.pl-card-ava {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
}
.pl-card-ava--letter {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#334155,#1e293b);
  font-size: 28px; font-weight: 900; color: #fff;
}
.pl-card-status-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
}
.pl-card-status-dot--online  { background: var(--success); box-shadow: 0 0 5px rgba(34,197,94,.5); }
.pl-card-status-dot--offline { background: rgba(255,255,255,.2); }

.pl-card-body { padding: 12px 14px 10px; flex: 1; text-align: center; }
.pl-card-name-row {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 8px; min-width: 0;
}
.pl-card-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.pl-card-name:hover { color: #2978a0; }
.pl-card-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 8px; }
.pl-tag {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; border: 1px solid;
  display: inline-flex; align-items: center; gap: 3px;
}
.pl-tag--game  { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.55); }
.pl-tag--team  { background: rgba(99,102,241,.1);  border-color: rgba(99,102,241,.25); color: #a5b4fc; }
.pl-tag--cap   { background: rgba(251,191,36,.1);  border-color: rgba(251,191,36,.25); color: #fbbf24; }
.pl-card-stats { display: flex; justify-content: center; gap: 16px; }
.pl-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pl-stat-val { font-size: 14px; font-weight: 800; color: var(--text); }
.pl-stat-val--good { color: var(--success); }
.pl-stat-lbl { font-size: 10px; color: var(--muted); }

.pl-card-foot {
  display: flex; gap: 6px; padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.pl-view-btn {
  flex: 1; text-align: center; font-size: 12px; font-weight: 600;
  padding: 7px 10px; border-radius: 8px; text-decoration: none;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc; transition: background .15s;
}
.pl-view-btn:hover { background: rgba(99,102,241,.2); }
.pl-msg-btn {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); text-decoration: none;
  transition: background .15s, color .15s;
}
.pl-msg-btn:hover { background: rgba(99,102,241,.15); color: #a5b4fc; border-color: rgba(99,102,241,.3); }

.pl-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 28px;
}
.pl-pag-btn {
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--text); text-decoration: none; transition: background .15s;
}
.pl-pag-btn:hover { background: rgba(255,255,255,.1); }
.pl-pag-info { font-size: 13px; color: var(--muted); }

.tp-rcard-nick-link {
  color: inherit; text-decoration: none;
  transition: color .15s;
}
.tp-rcard-nick-link:hover { color: var(--primary-light, #818cf8); text-decoration: underline; }

.mp2-player-card__nick--link {
  color: inherit; text-decoration: none;
  transition: color .15s;
}
.mp2-player-card__nick--link:hover { color: var(--primary-light, #818cf8); text-decoration: underline; }

[data-theme="light"] .pl-card         { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .pl-card:hover   { border-color: var(--border3, #cbd5e1); }
[data-theme="light"] .pl-search-wrap  { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .pl-card-foot    { border-top-color: var(--border); }
[data-theme="light"] .pl-card-status-dot { border-color: var(--bg2,#f8fafc); }
[data-theme="light"] .pl-tag--game    { background: var(--surface3,#f1f5f9); border-color: var(--border); color: var(--muted2); }
[data-theme="light"] .pl-view-btn     { background: rgba(99,102,241,.08); }
[data-theme="light"] .pl-msg-btn      { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .pf-section-title { color:#222; }
[data-theme="light"] .tm-tab { border: 1px solid #dedede; }
[data-theme="light"] .ach-card-name { color:#222; }
[data-theme="light"] .ach-card-name--locked { color:#222; }
[data-theme="light"] .pf-cta-banner-body strong { color:#222; }
@media (max-width: 540px) {
  .pl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .pl-grid { grid-template-columns: 1fr; }
}

/* ── Пати-инвайт: кнопка акцент ── */
.friend-act-btn--party { color: rgba(99,102,241,.7); }
.friend-act-btn--party:hover { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.35); color: #a5b4fc; }
.friend-act-btn--party-done  { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); color: #4ade80; cursor: default; }

/* ════════════════════════════════════════════
   DASHBOARD HEADER (dbh-)
════════════════════════════════════════════ */
.dbh-wrap {
  padding: 20px 24px 0;
}
.dbh-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
}
.dbh-left {
  display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1;
}
.dbh-ava-shell { flex-shrink: 0; }
.dbh-ava-ring {
  position: relative; width: 72px; height: 72px; flex-shrink: 0;
}
.dbh-ava-img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
}
.dbh-ava-letter {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff;
  border: 2px solid rgba(255,255,255,.12);
}
.dbh-ava-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; pointer-events: none; z-index: 2;
}
.dbh-online-dot {
  position: absolute; bottom: 3px; right: 3px;
  width: 12px; height: 12px; background: var(--success);
  border-radius: 50%; border: 2px solid var(--bg2);
  box-shadow: 0 0 6px rgba(34,197,94,.6);
}
.dbh-info { min-width: 0; flex: 1; }
.dbh-name-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px;
}
.dbh-name {
  font-size: 22px; font-weight: 900; letter-spacing: -.5px;
  color: var(--text); margin: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.dbh-pill {
  font-size: 10px; font-weight: 800; padding: 2px 9px;
  border-radius: var(--db-pill); white-space: nowrap;
}
.dbh-pill--team { background: rgba(34,90,235,.15); color: #60a5fa; border: 1px solid rgba(34,90,235,.25); }
.dbh-pill--cap  { background: rgba(251,191,36,.12); color: #fbbf24; border: 1px solid rgba(251,191,36,.22); }
.dbh-meta-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.dbh-status-online {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--success);
}
.dbh-status-dot {
  width: 6px; height: 6px; background: var(--success);
  border-radius: 50%; animation: livepulse 2s infinite;
}
.dbh-since { font-size: 11px; color: var(--muted); }
.dbh-kpi-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.dbh-kpi {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
.dbh-kpi-val {
  font-size: 16px; font-weight: 900; color: var(--text); letter-spacing: -.3px;
}
.dbh-kpi-val--purple { color: #a78bfa; }
.dbh-kpi-val--green  { color: var(--success); }
.dbh-kpi-val--red    { color: var(--danger); }
.dbh-kpi-lbl {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.dbh-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.dbh-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--db-pill);
  font-size: 12px; font-weight: 700; cursor: pointer; border: none;
  font-family: inherit; text-decoration: none; white-space: nowrap;
  transition: opacity var(--db-ease), transform var(--db-ease);
}
.dbh-btn:hover { opacity: .85; transform: translateY(-1px); }
.dbh-btn--sync {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(34,90,235,.25);
}
.dbh-btn--settings {
  background: var(--surface2); border: 1px solid var(--border); color: var(--muted2);
}

/* ════════════════════════════════════════════
   DASHBOARD GRID (dbg-)
════════════════════════════════════════════ */
.dbg-wrap {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 24px 36px;
}

/* CTA баннер */
.dbg-cta-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}
.dbg-cta-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(34,90,235,.12); border: 1px solid rgba(34,90,235,.22);
  display: flex; align-items: center; justify-content: center; color: #60a5fa;
}
.dbg-cta-body { flex: 1; font-size: 13px; }
.dbg-cta-body strong { display: block; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.dbg-cta-body span   { color: var(--muted2); font-size: 12px; }
.dbg-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--db-pill);
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: opacity .15s;
}
.dbg-cta-btn:hover { opacity: .85; }

/* Игровая секция */
.dbg-game-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
}
.dbg-game-tabs {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px 0; flex-wrap: wrap;
}
.dbg-gtab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px 6px 9px; border-radius: var(--db-pill);
  font-size: 12px; font-weight: 700; color: var(--muted2);
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; font-family: inherit;
  transition: border-color var(--db-ease), color var(--db-ease), background var(--db-ease);
  white-space: nowrap;
}
.dbg-gtab:hover { border-color: var(--border2); color: var(--text); }
.dbg-gtab--active { background: var(--primary); border-color: var(--primary); color: #fff; }
.dbg-gtab-icon { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.dbg-sync-label {
  margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 600;
}
.dbg-game-panel { padding: 16px 18px 18px; }

/* Ранг блок */
.dbg-rank-block {
  display: flex; align-items: center; gap: 16px; margin-bottom: 14px;
}
.dbg-rank-medal { flex-shrink: 0; }
.dbg-rank-info { display: flex; flex-direction: column; gap: 4px; }
.dbg-rank-name {
  font-size: 20px; font-weight: 900; color: var(--text); letter-spacing: -.3px;
}
.dbg-rank-mmr {
  font-size: 14px; font-weight: 800; color: #a78bfa;
}
.dbg-rank-sub {
  font-size: 11px; color: var(--muted); font-weight: 600;
}
.dbg-role-pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800;
  padding: 2px 9px; border-radius: var(--db-pill);
  background: rgba(167,139,250,.12); color: #a78bfa;
  border: 1px solid rgba(167,139,250,.2);
  width: fit-content;
}

/* Faceit */
.dbg-faceit-level {
  width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 2px solid var(--lc, #9d9d9d);
  gap: 1px;
}
.dbg-faceit-num { font-size: 22px; font-weight: 900; color: var(--lc, #9d9d9d); line-height: 1; }
.dbg-faceit-lbl { font-size: 9px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.dbg-faceit-bar-wrap { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.dbg-faceit-bar {
  width: 120px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.dbg-faceit-bar-fill { height: 100%; border-radius: 2px; transition: width .4s; }

/* Сетка статов */
.dbg-stats-grid {
  display: flex; align-items: flex-start; gap: 6px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.dbg-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px; min-width: 54px;
}
.dbg-stat-val {
  font-size: 16px; font-weight: 900; color: var(--text); letter-spacing: -.2px;
}
.dbg-stat-lbl {
  font-size: 9px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.dbg-stat-sep { font-size: 11px; color: var(--muted); margin: 0 1px; }
.dbg-stat--green  { color: var(--success); }
.dbg-stat--red    { color: var(--danger); }
.dbg-stat--yellow { color: var(--amber); }

/* Нижняя строка: герои + матчи */
.dbg-bottom-row {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.dbg-block-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.dbg-heroes-block { flex: 1; min-width: 140px; }
.dbg-heroes-list  { display: flex; gap: 8px; flex-wrap: wrap; }
.dbg-hero {
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default;
}
.dbg-hero-img {
  width: 44px; height: 44px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center;
}
.dbg-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.dbg-hero-img span { font-size: 10px; font-weight: 700; color: var(--muted); }
.dbg-hero-stat { font-size: 10px; font-weight: 700; color: var(--muted2); white-space: nowrap; }
.dbg-maps-list { display: flex; gap: 6px; flex-wrap: wrap; }
.dbg-map-pill {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--db-pill);
  background: rgba(255,255,255,.06); color: var(--muted2); border: 1px solid var(--border);
}
.dbg-no-data { font-size: 11px; color: var(--muted); }

/* Последние матчи (в игровой секции) */
.dbg-matches-block { flex: 2; min-width: 200px; }
.dbg-match-list { display: flex; flex-direction: column; gap: 4px; }
.dbg-match-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.dbg-match-row:last-child { border-bottom: none; }
.dbg-match-result {
  width: 22px; height: 16px; border-radius: 4px; flex-shrink: 0;
  font-size: 10px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.dbg-match-result--w { background: rgba(34,197,94,.15); color: var(--success); }
.dbg-match-result--l { background: rgba(239,68,68,.15); color: var(--danger); }
.dbg-match-kda { font-size: 11px; font-weight: 600; color: var(--muted2); flex: 1; }
.dbg-match-gpm { font-size: 10px; font-weight: 700; color: var(--muted); min-width: 52px; text-align: right; }

/* CTA для неподключённой игры */
.dbg-gp-cta {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 28px 24px; text-align: center;
}
.dbg-gp-cta-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(34,90,235,.1); border: 1px solid rgba(34,90,235,.2);
  display: flex; align-items: center; justify-content: center;
}
.dbg-gp-cta p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.dbg-connect-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: var(--db-pill);
  background: rgba(34,90,235,.15); border: 1px solid rgba(34,90,235,.3);
  color: #60a5fa; font-size: 12px; font-weight: 700;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: opacity .15s;
}
.dbg-connect-btn:hover { opacity: .8; }
.dbg-connect-btn--orange {
  background: rgba(249,115,22,.15); border-color: rgba(249,115,22,.3); color: #fb923c;
}

/* ── Зона 3: платформенные статы ── */
.dbg-platform-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 14px;
}
.dbg-wr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 16px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.dbg-card-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; text-align: center;
}
.dbg-wr-ring-wrap {
  position: relative; width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.dbg-wr-ring-wrap svg { position: absolute; inset: 0; }
.dbg-wr-center {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
}
.dbg-wr-pct  { font-size: 22px; font-weight: 900; line-height: 1; }
.dbg-wr-sub  { font-size: 10px; font-weight: 700; color: var(--muted); margin-top: 1px; }
.dbg-wr-wl   { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--muted2); }
.dbg-wr-w    { color: var(--success); }
.dbg-wr-w small { font-size: 10px; color: var(--success); font-weight: 700; margin-left: 1px; }
.dbg-wr-l    { color: var(--danger); }
.dbg-wr-l small { font-size: 10px; color: var(--danger); font-weight: 700; margin-left: 1px; }
.dbg-wr-total { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Карточка матчей */
.dbg-matches-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.dbg-next-match {
  padding: 14px 16px; border-radius: 12px;
  background: rgba(34,90,235,.08); border: 1px solid rgba(34,90,235,.18);
}
.dbg-next-match--live {
  background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.2);
}
.dbg-next-match-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.dbg-next-label { font-size: 10px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.dbg-next-trn   { font-size: 11px; color: var(--muted); font-weight: 600; }
.dbg-next-vs {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.dbg-next-team {
  font-size: 15px; font-weight: 900; color: var(--text);
}
.dbg-next-team--opp { color: var(--muted2); }
.dbg-next-vs-sep {
  font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase;
}
.dbg-next-time { font-size: 12px; color: var(--muted2); font-weight: 700; }
.dbg-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; color: var(--danger);
  background: rgba(239,68,68,.1); padding: 3px 9px;
  border-radius: var(--db-pill); border: 1px solid rgba(239,68,68,.22);
}
.dbg-live-dot { width: 6px; height: 6px; background: var(--danger); border-radius: 50%; display: inline-block; animation: livepulse 1.4s infinite; }

/* Список предстоящих матчей */
.dbg-upcoming-list { display: flex; flex-direction: column; gap: 0; }
.dbg-upcoming-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.dbg-upcoming-row:last-child { border-bottom: none; }
.dbg-upcoming-row--live { background: rgba(239,68,68,.04); }
.dbg-upcoming-date {
  display: flex; flex-direction: column; align-items: center;
  font-size: 11px; font-weight: 800; color: var(--muted2);
  min-width: 28px;
}
.dbg-upcoming-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.dbg-upcoming-trn   { font-size: 10px; color: var(--muted); font-weight: 700; }
.dbg-upcoming-teams { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbg-upcoming-teams em { color: var(--muted); font-style: normal; font-size: 10px; margin: 0 3px; }
.dbg-upcoming-time  { font-size: 11px; font-weight: 700; color: var(--muted2); flex-shrink: 0; }
.dbg-matches-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 24px 16px; font-size: 12px; color: var(--muted); text-align: center;
}
.dbg-matches-empty svg { opacity: .2; }
.dbg-link-all {
  font-size: 12px; font-weight: 700; color: var(--primary); text-decoration: none;
  align-self: flex-end; margin-top: auto;
}
.dbg-link-all:hover { text-decoration: underline; }

/* ── Зоны 4-5: секции ── */
.dbg-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.dbg-section-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
}
.dbg-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--border);
}
.dbg-section-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; color: var(--muted2);
}
.dbg-count {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: rgba(255,255,255,.06); padding: 1px 8px;
  border-radius: var(--db-pill); border: 1px solid var(--border);
}
.dbg-count--gold { color: #fbbf24; background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.2); }
.dbg-link {
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-decoration: none;
}
.dbg-link:hover { text-decoration: underline; }

/* Команда */
.dbg-team-list { padding: 8px 0; }
.dbg-team-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; transition: background var(--db-ease);
}
.dbg-team-row:hover { background: rgba(255,255,255,.03); }
.dbg-team-row--self { background: rgba(34,90,235,.05); }
.dbg-team-row--cap  { background: rgba(251,191,36,.04); }
.dbg-team-num  { font-size: 11px; color: var(--muted); font-weight: 700; min-width: 16px; }
.dbg-team-ava  {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--surface3), var(--surface4));
  border: 1px solid var(--border2);
}
.dbg-team-ava--cap {
  background: linear-gradient(135deg, rgba(251,191,36,.5), rgba(245,158,11,.4));
  border-color: rgba(251,191,36,.3);
}
.dbg-team-info { flex: 1; min-width: 0; }
.dbg-team-nick  { font-size: 12px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 5px; }
.dbg-team-role  { font-size: 10px; color: var(--muted); font-weight: 600; }
.dbg-you {
  font-size: 9px; font-weight: 800;
  background: rgba(34,90,235,.2); color: var(--primary);
  padding: 1px 5px; border-radius: var(--db-pill);
}
.dbg-team-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.dbg-team-wr    { font-size: 12px; font-weight: 900; }
.dbg-team-wr--g { color: var(--success); }
.dbg-team-wr--r { color: var(--danger); }
.dbg-team-matches { font-size: 10px; color: var(--muted); font-weight: 600; }

/* Турниры */
.dbg-trn-list { display: flex; flex-direction: column; }
.dbg-trn-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background var(--db-ease);
}
.dbg-trn-row:last-child { border-bottom: none; }
.dbg-trn-row:hover { background: rgba(255,255,255,.03); }
.dbg-trn-row--live { background: rgba(239,68,68,.04); }
.dbg-trn-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,.05); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.dbg-trn-icon img { width: 100%; height: 100%; object-fit: cover; }
.dbg-trn-info { flex: 1; min-width: 0; }
.dbg-trn-name { font-size: 12px; font-weight: 800; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbg-trn-meta { font-size: 10px; color: var(--muted); font-weight: 600; }
.dbg-trn-meta b { color: var(--amber); }
.dbg-tbadge {
  font-size: 10px; font-weight: 800; padding: 2px 8px;
  border-radius: var(--db-pill); white-space: nowrap; flex-shrink: 0;
}
.dbg-tbadge--blue   { background: rgba(59,130,246,.12); color: #60a5fa; }
.dbg-tbadge--orange { background: rgba(251,146,60,.12);  color: #fb923c; }
.dbg-tbadge--green  { background: rgba(34,197,94,.12);   color: var(--success); }
.dbg-tbadge--purple { background: rgba(167,139,250,.12); color: #a78bfa; }

/* Достижения */
.dbg-ach-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; padding: 14px 18px;
}
.dbg-ach-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid color-mix(in srgb, var(--ac,#fbbf24) 20%, transparent);
  transition: background var(--db-ease);
}
.dbg-ach-card:hover { background: rgba(255,255,255,.05); }
.dbg-ach-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: color-mix(in srgb, var(--ac,#fbbf24) 14%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; overflow: hidden;
}
.dbg-ach-icon img { width: 100%; height: 100%; object-fit: cover; }
.dbg-ach-body { min-width: 0; }
.dbg-ach-name  { font-size: 11px; font-weight: 800; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbg-ach-coin  { font-size: 10px; font-weight: 700; color: #fbbf24; }

/* ── Dota панель: новая разметка ранг | статы ── */
.dbg-row1 {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 0;
}
.dbg-rank-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 14px;
  border-right: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.dbg-stats-col {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 14px;
}
.dbg-stats-col .dbg-stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}
.dbg-stats-col .dbg-stat {
  min-width: 0;
  flex: none;
}
.dbg-heroes-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.dbg-heroes-row .dbg-block-label {
  flex-shrink: 0;
}
.dbg-heroes-row .dbg-heroes-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dbg-heroes-row .dbg-no-data {
  font-size: 12px;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .dbh-wrap { padding: 12px 12px 0; }
  .dbh-inner { padding: 14px 16px; flex-direction: column; align-items: flex-start; }
  .dbh-actions { width: 100%; }
  .dbg-wrap { padding: 12px 12px 28px; }
  .dbg-platform-row { grid-template-columns: 1fr; }
  .dbg-two-col { grid-template-columns: 1fr; }
  .dbg-stats-grid { gap: 4px; }
  .dbg-stat { padding: 6px 8px; min-width: 46px; }
  .dbg-row1 { flex-direction: column; }
  .dbg-rank-col { width: 100%; flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 12px; margin-bottom: 4px; }
}




.anl-page {
    font-family: var(--font, 'Manrope', sans-serif);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.anl-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-wrap: wrap;
    position: sticky;
    top: var(--nav-h, 56px);
    z-index: 40;
    min-height: 44px;
}
.anl-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted2);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.anl-topbar-back:hover { color: var(--text); background: var(--surface2); }
.anl-topbar-sep {
    width: 1px;
    height: 16px;
    background: var(--border2);
    flex-shrink: 0;
}
.anl-topbar-spacer { flex: 1; }
.anl-topbar-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
}
.anl-game-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted2);
    border: 1px solid transparent;
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s;
    overflow: hidden;
    white-space: nowrap;
}
.anl-game-pill:hover { color: var(--text); border-color: var(--border2); }
.anl-game-pill.active {
    color: var(--text);
    border-color: var(--border2);
    background: var(--surface2);
}
.anl-game-pill-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .07;
    pointer-events: none;
}
.anl-game-pill-icon {
    width: 16px; height: 16px;
    object-fit: contain;
    border-radius: 3px;
    position: relative;
    z-index: 1;
}
.anl-game-pill-name { position: relative; z-index: 1; }
.anl-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted2);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.anl-filter-pill:hover { color: var(--text); border-color: var(--border2); }
.anl-filter-pill.active { color: var(--text); background: var(--surface3); border-color: var(--border3); }

.anl-body { flex: 1; }
.anl-body--stratz { padding: 0; }

.anl-prelaunch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 80px 24px;
    text-align: center;
    color: var(--muted);
}
.anl-prelaunch-icon { opacity: .3; }
.anl-prelaunch-title { font-size: 18px; font-weight: 900; color: var(--text2); }
.anl-prelaunch-desc  { font-size: 13px; line-height: 1.7; max-width: 380px; }

.sm-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.sm-header-side {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sm-header-side--dire { align-items: flex-end; text-align: right; }
.sm-header-faction {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}
.sm-header-side--dire .sm-header-faction { flex-direction: row-reverse; }
.sm-header-team {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.4px;
    color: var(--text);
}
.sm-header-result {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
    align-self: flex-start;
}
.sm-header-side--dire .sm-header-result { align-self: flex-end; }
.sm-header-result.win  { background: var(--success-light); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }
.sm-header-result.loss { background: var(--surface3); color: var(--muted); border: 1px solid var(--border); }

.sm-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 120px;
}
.sm-header-score {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.sm-score-r { font-size: 40px; font-weight: 900; letter-spacing: -2px; color: var(--success); }
.sm-score-d { font-size: 40px; font-weight: 900; letter-spacing: -2px; color: var(--danger); }
.sm-score-sep { font-size: 28px; font-weight: 300; color: var(--border3); }
.sm-header-dur {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted2);
    letter-spacing: .02em;
}
.sm-header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.sm-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid var(--primary-light);
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}
.sm-meta-link:hover { background: var(--primary-light); }
.sm-meta-date { font-size: 10px; color: var(--muted); font-weight: 600; }
.sm-meta-trn  { font-size: 10px; color: var(--accent); font-weight: 700; }

.sm-tabs-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 12px 24px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    overflow-x: auto;
}
.sm-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted2);
    text-decoration: none;
    transition: color .15s, background .15s;
    border: 1px solid transparent;
    border-bottom: none;
    white-space: nowrap;
    position: relative;
    bottom: -1px;
}
.sm-tab:hover { color: var(--text); background: var(--surface2); }
.sm-tab--active {
    color: var(--text);
    background: var(--bg);
    border-color: var(--border);
    border-bottom-color: var(--bg);
}
.sm-tab--wip { opacity: .55; }
.sm-tab--wip:hover { opacity: .85; }
.sm-tab-num {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    background: var(--surface3);
    padding: 1px 5px;
    border-radius: 4px;
}
.sm-tab--active .sm-tab-num { background: var(--primary-light); color: var(--primary); }
.sm-tab-wip {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--surface3);
    color: var(--muted);
    border: 1px solid var(--border);
}

.sm-tab-content {
    padding: 20px 24px;
    background: var(--bg);
    min-height: 400px;
}

.sm-section { margin-bottom: 20px; }
.sm-section-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sm-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.sm-match-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.sm-mkpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color .2s, transform .2s;
}
.sm-mkpi-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.sm-mkpi-icon { color: var(--muted); margin-bottom: 2px; }
.sm-mkpi-val {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.5px;
    line-height: 1;
}
.sm-mkpi-val.pos { color: var(--success); }
.sm-mkpi-val.neg { color: var(--danger); }
.sm-mkpi-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 1px;
}

.sm-lane-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.sm-lane-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color .2s;
}
.sm-lane-card:hover { border-color: var(--border2); }
.sm-lane-map { flex-shrink: 0; opacity: .75; }
.sm-lane-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
}
.sm-lane-outcome {
    font-size: 13px;
    font-weight: 800;
    margin-left: auto;
}

.sm-graph-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.sm-graph-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 11px;
}
.sm-graph-leg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}
.sm-graph-leg--r { color: var(--success); }
.sm-graph-leg--d { color: var(--danger); }
.sm-graph-adv {
    font-size: 10px;
    background: var(--surface2);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--muted2);
    font-weight: 600;
}
.sm-graph-label { font-size: 10px; color: var(--muted); }
.sm-graph-label--xp { color: #a78bfa; }

.sm-draft-compact { display: flex; flex-direction: column; gap: 10px; }
.sm-draft-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}
.sm-draft-group-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 10px;
}
.sm-draft-heroes { display: flex; flex-wrap: wrap; gap: 5px; }
.sm-draft-hero {
    width: 38px; height: 38px;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 1.5px solid var(--border2);
    transition: border-color .15s;
}
.sm-draft-hero:hover { border-color: var(--border3); }
.sm-draft-hero.rad { border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.sm-draft-hero.dire { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.sm-draft-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-draft-hero-empty { width: 100%; height: 100%; background: var(--surface3); }
.sm-draft-hero--ban img { filter: grayscale(1) brightness(.45); }
.sm-draft-ban-x {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900;
    color: var(--danger);
    background: rgba(0,0,0,.5);
}

.sm-players-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}
.sm-players-table-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--surface2) 60%, transparent);
    border-bottom: 1px solid var(--border);
}
.sm-pt-side { font-size: 12px; font-weight: 800; }
.sm-pt-result {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 5px;
    margin-left: auto;
}
.sm-pt-result.win  { background: var(--success-light); color: var(--success); }
.sm-pt-result.loss { background: var(--surface3); color: var(--muted); }

.sm-players-table { width: 100%; }
.sm-pt-header {
    display: grid;
    grid-template-columns: 190px 90px 60px 60px 110px 110px 80px 80px 60px;
    padding: 7px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    gap: 4px;
}
.sm-pt-row {
    display: grid;
    grid-template-columns: 190px 90px 60px 60px 110px 110px 80px 80px 60px;
    padding: 8px 14px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    transition: background .12s;
    gap: 4px;
}
.sm-pt-row:last-child { border-bottom: none; }
.sm-pt-row:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.sm-pt-row--me {
    background: color-mix(in srgb, var(--primary) 6%, transparent);
    border-left: 2px solid var(--primary);
}
.sm-pt-col { display: flex; align-items: center; min-width: 0; }
.sm-pt-hero-inner { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.sm-pt-hero-icon  { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sm-pt-hero-info  { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sm-pt-hero-name  { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-pt-hero-sub   { display: flex; align-items: center; gap: 4px; }
.sm-pt-lvl        { font-size: 10px; color: var(--muted); font-weight: 600; }
.sm-pt-pos        { font-size: 10px; font-weight: 700; }
.sm-pt-kda        { gap: 2px; font-size: 12px; font-weight: 700; }
.sm-pt-bar-wrap   { display: flex; align-items: center; gap: 6px; width: 100%; }
.sm-pt-bar        { height: 3px; border-radius: 2px; flex-shrink: 0; min-width: 2px; }
.sm-pt-bar-wrap span { font-size: 11px; color: var(--text2); white-space: nowrap; }
.sm-pt-imp {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
}
.sm-pt-imp.pos { background: var(--success-light); color: var(--success); }
.sm-pt-imp.neg { background: var(--danger-light); color: var(--danger); }

.sm-kda-k   { color: var(--success); font-weight: 700; }
.sm-kda-d   { color: var(--danger);  font-weight: 700; }
.sm-kda-a   { color: var(--primary); font-weight: 700; }
.sm-kda-sep { color: var(--border3); font-size: .85em; margin: 0 1px; }

.sm-wip-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 72px 24px;
    text-align: center;
}
.sm-wip-placeholder svg { color: var(--muted); }
.sm-wip-title { font-size: 16px; font-weight: 800; color: var(--text2); }
.sm-wip-desc  { font-size: 12px; color: var(--muted); max-width: 360px; line-height: 1.7; }

@media (max-width: 1100px) {
    .sm-pt-header,
    .sm-pt-row {
        grid-template-columns: 160px 80px 55px 55px 100px 100px 70px 70px 50px;
    }
}
@media (max-width: 900px) {
    .sm-header { grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 14px 16px; }
    .sm-header-team { font-size: 14px; }
    .sm-score-r, .sm-score-d { font-size: 28px; }
    .sm-tab-content { padding: 16px; }
    .sm-lane-results { grid-template-columns: 1fr; }
    .sm-pt-header,
    .sm-pt-row { grid-template-columns: 160px 80px 55px 55px 95px 95px; }
    .sm-pt-col:nth-child(7),
    .sm-pt-col:nth-child(8),
    .sm-pt-col:nth-child(9) { display: none; }
}
@media (max-width: 640px) {
    .sm-header { padding: 10px 12px; gap: 8px; }
    .sm-header-team { font-size: 12px; }
    .sm-score-r, .sm-score-d { font-size: 22px; }
    .sm-tabs-nav { padding: 8px 12px 0; }
    .sm-tab { padding: 6px 10px; font-size: 11px; }
    .sm-tab-content { padding: 12px; }
    .sm-match-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .sm-pt-header,
    .sm-pt-row { grid-template-columns: 140px 80px 55px 55px 90px; }
    .sm-pt-col:nth-child(6),
    .sm-pt-col:nth-child(7),
    .sm-pt-col:nth-child(8),
    .sm-pt-col:nth-child(9) { display: none; }
}

[data-theme="light"] .sm-tab--active {
    background: var(--bg);
    border-bottom-color: var(--bg);
}
[data-theme="light"] .sm-tab-content { background: var(--bg); }

.stratz-filterbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-wrap: wrap;
    font-size: 12px;
}

.stratz-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}
.stratz-toggle input { display: none; }
.stratz-toggle-slider {
    width: 30px; height: 16px;
    border-radius: 8px;
    background: var(--surface3);
    border: 1px solid var(--border2);
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}
.stratz-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform .2s, background .2s;
}
.stratz-toggle input:checked + .stratz-toggle-slider { background: var(--primary); border-color: var(--primary); }
.stratz-toggle input:checked + .stratz-toggle-slider::after { transform: translateX(14px); background: #fff; }
.stratz-toggle-label { font-size: 11px; font-weight: 600; color: var(--muted2); white-space: nowrap; }

.stratz-fsel {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface2);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
    transition: border-color .15s;
    white-space: nowrap;
    user-select: none;
}
.stratz-fsel:hover { border-color: var(--border2); }
.stratz-fsel-val { pointer-events: none; }
.stratz-fsel-drop {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 160px;
    max-height: 260px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    padding: 4px;
}
.stratz-fsel-drop--heroes { min-width: 200px; }
.stratz-fsel.open .stratz-fsel-drop { display: block; }
.stratz-fsel-opt {
    display: block;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    text-decoration: none;
    transition: background .12s, color .12s;
    cursor: pointer;
}
.stratz-fsel-opt:hover { background: var(--surface2); color: var(--text); }
.stratz-fsel-opt.active { color: var(--primary); background: var(--primary-light); }
.stratz-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--danger);
    background: var(--danger-light);
    border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}
.stratz-filter-reset:hover { background: var(--danger); color: #fff; }

.stratz-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    align-items: start;
    min-height: 100%;
}
.stratz-col-left {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid var(--border);
    min-width: 0;
}
.stratz-col-right {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: calc(var(--nav-h, 56px) + 44px);
    max-height: calc(100vh - var(--nav-h, 56px) - 44px);
    overflow-y: auto;
}

.stratz-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.stratz-section-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface2) 50%, transparent);
}
.stratz-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted2);
}
.stratz-section-cnt {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    margin-left: 4px;
}
.stratz-section-ext {
    margin-left: auto;
    color: var(--muted);
    opacity: .5;
    transition: opacity .15s;
    text-decoration: none;
    display: flex;
}
.stratz-section-ext:hover { opacity: 1; color: var(--primary); }
.stratz-empty-state {
    padding: 20px 14px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.stratz-kpi-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.stratz-kpi-left { display: flex; flex-direction: column; gap: 5px; min-width: 120px; }
.stratz-kpi-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
}
.stratz-kpi-total {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text2);
}
.stratz-kpi-firstmatch {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
}
.stratz-matches-bar {
    height: 3px;
    background: var(--surface3);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
    margin-top: 4px;
}
.stratz-matches-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width .4s;
    width: var(--bar-w, 0%);
}
.stratz-kpi-divider {
    width: 1px;
    height: 40px;
    background: var(--border2);
    flex-shrink: 0;
}
.stratz-kpi-wr { display: flex; flex-direction: column; gap: 4px; }
.stratz-kpi-wr-pct {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.5px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.stratz-kpi-wr-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}
.stratz-kpi-wr-counts {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted2);
}
.stratz-wr-bar {
    height: 4px;
    width: 140px;
    background: var(--danger-light);
    border-radius: 2px;
    overflow: hidden;
}
.stratz-wr-bar-win {
    height: 100%;
    background: var(--success);
    border-radius: 2px;
    transition: width .4s;
    width: var(--bar-w, 0%);
}

.stratz-kpi-streak { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.stratz-streak-badge {
    display: flex; align-items: center; gap: 5px;
    font-size: 20px; font-weight: 900; letter-spacing: -.01em;
    padding: 4px 10px; border-radius: 8px;
}
.stratz-streak-badge.win  { background: rgba(74,222,128,.12); color: var(--success); }
.stratz-streak-badge.lose { background: rgba(248,113,113,.1);  color: var(--danger); }
.stratz-streak-label { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.stratz-streak-sub { font-size: 9px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.stratz-kpi-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px 14px;
    background: var(--surface2);
    border-radius: 8px;
    margin-bottom: 12px;
}
.stratz-kpi-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 14px;
    background: var(--surface3, rgba(255,255,255,.04));
    border-radius: 6px;
    flex: 1 1 80px;
    min-width: 60px;
}
.stratz-kpi-stat-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.01em;
    white-space: nowrap;
}
.stratz-kpi-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.stratz-heroes-allies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stratz-hero-row {
    display: grid;
    grid-template-columns: 44px 1fr 60px 70px;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .12s;
}
.stratz-hero-row:last-of-type { border-bottom: none; }
.stratz-hero-row:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.stratz-hero-row-img-wrap { position: relative; flex-shrink: 0; }
.stratz-hero-row-img {
    width: 40px; height: 40px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}
.stratz-hero-row-img--empty {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--surface3);
}
.stratz-hero-row-pos {
    position: absolute;
    bottom: -3px; right: -3px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 50%;
    width: 14px; height: 14px;
    display: flex; align-items: center; justify-content: center;
}
.stratz-hero-row-kda-bar-wrap { display: flex; flex-direction: column; gap: 3px; }
.stratz-hero-row-kda-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; gap: 1px; }
.stratz-hero-row-kda-seg { height: 100%; border-radius: 1px; min-width: 2px; width: var(--bar-w, 0%); }
.stratz-hero-row-kda-seg--k { background: var(--success); }
.stratz-hero-row-kda-seg--a { background: var(--primary); }
.stratz-hero-row-kda-seg--d { background: var(--danger); }
.stratz-hero-row-kda-lbl { font-size: 10px; font-weight: 700; color: var(--muted2); }
.stratz-hero-row-wr-col {}
.stratz-hero-row-wr-bar-wrap { height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.stratz-hero-row-wr-bar { height: 100%; border-radius: 2px; transition: width .4s; width: var(--bar-w, 0%); background: var(--bar-col, var(--primary)); }
.stratz-hero-row-games-col { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.stratz-hero-row-games-num { font-size: 11px; font-weight: 700; color: var(--text2); }
.stratz-hero-row-games-bar-wrap { width: 50px; height: 3px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.stratz-hero-row-games-bar { height: 100%; background: var(--muted); border-radius: 2px; transition: width .4s; width: var(--bar-w, 0%); }
.stratz-heroes-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface2) 40%, transparent);
}
.stratz-heroes-footer-pct { font-weight: 800; color: var(--primary); }

.stratz-ally-row {
    display: grid;
    grid-template-columns: 28px auto 1fr auto 40px 60px;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-bottom: 1px solid var(--border);
}
.stratz-ally-row:last-child { border-bottom: none; }
.stratz-ally-ava {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.stratz-ally-ava--ph {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}
.stratz-ally-name { font-size: 11px; font-weight: 700; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stratz-ally-wr { font-size: 11px; font-weight: 800; text-align: right; white-space: nowrap; }
.stratz-ally-wr-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.stratz-ally-games { font-size: 11px; font-weight: 700; color: var(--muted2); text-align: right; }
.stratz-ally-games-bar-wrap { height: 3px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.stratz-ally-games-bar { height: 100%; background: var(--muted); border-radius: 2px; transition: width .4s; width: var(--bar-w, 0%); }

.stratz-dotaplus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px;
}
.stratz-dp-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, transform .15s;
}
.stratz-dp-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.stratz-dp-card-img-wrap { position: relative; }
.stratz-dp-card-img { width: 100%; aspect-ratio: 1.8; object-fit: cover; display: block; }
.stratz-dp-badge {
    position: absolute; top: 4px; left: 4px;
    display: flex; align-items: center; gap: 2px;
    background: rgba(0,0,0,.7); border-radius: 4px;
    padding: 2px 5px; font-size: 10px; font-weight: 800; color: #fbbf24;
}
.stratz-dp-card-badges { position: absolute; top: 4px; right: 4px; display: flex; flex-direction: column; gap: 2px; }
.stratz-dp-wbadge {
    width: 14px; height: 14px; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
}
.stratz-dp-wbadge--w { background: rgba(34,197,94,.25); color: var(--success); }
.stratz-dp-wbadge--l { background: rgba(239,68,68,.25); color: var(--danger); }
.stratz-dp-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    gap: 4px;
}
.stratz-dp-wr { font-size: 12px; font-weight: 800; }
.stratz-dp-games { font-size: 10px; font-weight: 700; color: var(--muted2); }

.stratz-mrow {
    display: grid;
    grid-template-columns: 52px 24px 22px 80px 1fr 36px 60px 20px;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    position: relative;
}
.stratz-mrow:last-child { border-bottom: none; }
.stratz-mrow:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.stratz-mrow--win  { border-left: 3px solid var(--success); }
.stratz-mrow--loss { border-left: 3px solid var(--danger); }

.stratz-mrow-hero-wrap { position: relative; flex-shrink: 0; }
.stratz-mrow-hero-img {
    width: 48px; height: 27px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}
.stratz-mrow-hero-empty { width: 48px; height: 27px; border-radius: 6px; background: var(--surface3); }
.stratz-mrow-pos-badge {
    position: absolute;
    bottom: -3px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.8);
    font-size: 8px; font-weight: 800;
    padding: 1px 4px; border-radius: 3px;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
}
.stratz-mrow-result {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 900;
    flex-shrink: 0;
}
.stratz-mrow-result--w { background: var(--success-light); color: var(--success); }
.stratz-mrow-result--l { background: var(--danger-light); color: var(--danger); }
.stratz-mrow-side { display: flex; align-items: center; gap: 2px; color: var(--muted); flex-shrink: 0; }
.stratz-side-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.stratz-side-dot--r { background: var(--success); }
.stratz-side-dot--d { background: var(--danger); }

.stratz-mrow-kda {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 13px;
    font-weight: 700;
}
.stratz-kda-k { color: var(--success); }
.stratz-kda-d { color: var(--danger); }
.stratz-kda-a { color: var(--primary); }
.stratz-kda-sep { color: var(--border3); font-size: .8em; margin: 0 1px; }

.stratz-mrow-impact { display: flex; flex-direction: column; gap: 3px; }
.stratz-impact-bar-wrap { height: 3px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.stratz-impact-bar { height: 100%; border-radius: 2px; transition: width .4s; width: var(--bar-w, 0%); background: var(--bar-col, var(--primary)); }
.stratz-impact-kda { font-size: 10px; font-weight: 800; }

.stratz-mrow-party {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}
.stratz-mrow-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-end;
    flex-shrink: 0;
}
.stratz-mrow-dur  { font-size: 11px; font-weight: 700; color: var(--text2); }
.stratz-mrow-date { font-size: 9px; font-weight: 600; color: var(--muted); }
.stratz-mrow-arrow { color: var(--muted); opacity: .4; flex-shrink: 0; }
.stratz-mrow:hover .stratz-mrow-arrow { opacity: 1; color: var(--primary); }

.stratz-trends-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.stratz-trends-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface2) 50%, transparent);
}
.stratz-trends-tab {
    flex: 1;
    padding: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted2);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.stratz-trends-tab:hover { color: var(--text); }
.stratz-trends-tab.active { color: var(--text); border-bottom-color: var(--primary); }
.stratz-wheel-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}
.stratz-wheel-icons { position: absolute; inset: 0; pointer-events: none; }
.stratz-bibar-wrap { padding: 0 0 6px; }
.stratz-trends-stats-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}
.stratz-trends-stats-row--2col { flex-direction: row; }
.stratz-tstat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.stratz-tstat-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stratz-tstat-val { font-size: 13px; font-weight: 800; color: var(--text); }
.stratz-tstat-icons { display: flex; align-items: center; gap: 5px; }
.stratz-tstat-delta { font-size: 10px; font-weight: 700; }
.stratz-tstat-delta.up { color: var(--success); }
.stratz-tstat-delta.down { color: var(--danger); }
.stratz-hero-badges-strip {
    display: flex;
    gap: 5px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.stratz-hero-badge-item {
    width: 28px; height: 28px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border2);
    flex-shrink: 0;
}
.stratz-hero-badge-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stratz-hero-badge-ph {
    width: 100%; height: 100%;
    background: var(--surface3);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: var(--muted2);
}

.stratz-pos-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; padding: 14px;
}
.stratz-pos-inner { display: flex; align-items: center; gap: 14px; }
.stratz-pos-legend { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stratz-pos-legend-row { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.stratz-pos-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.stratz-pos-lname  { font-weight: 700; flex: 1; color: var(--text); }
.stratz-pos-lgames { font-weight: 600; color: var(--muted2); min-width: 24px; text-align: right; }
.stratz-pos-lwr    { font-weight: 800; min-width: 32px; text-align: right; }

.stratz-activity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.stratz-activity-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface2) 50%, transparent);
    font-size: 11px;
}
.stratz-activity-title { font-weight: 800; color: var(--text2); }
.stratz-activity-level { color: var(--primary); }
.stratz-activity-cnt { font-size: 10px; font-weight: 600; color: var(--muted); margin-left: auto; }
.stratz-activity-ext { color: var(--muted); opacity: .5; transition: opacity .15s; display: flex; }
.stratz-activity-ext:hover { opacity: 1; }
.stratz-activity-heatmap { padding: 8px 12px 0; }
.stratz-activity-months { padding: 2px 12px 8px; }

.anl-prelaunch-glow {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 15%, transparent), transparent 70%);
    pointer-events: none;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 1100px) {
    .stratz-main-grid { grid-template-columns: 1fr; }
    .stratz-col-left { border-right: none; }
    .stratz-col-right { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 768px) {
    .stratz-heroes-allies-grid { grid-template-columns: 1fr; }
    .stratz-filterbar { gap: 4px; padding: 8px 12px; }
    .stratz-col-left { padding: 12px; }
    .stratz-mrow { grid-template-columns: 44px 22px 20px 70px 1fr 28px; }
    .stratz-mrow-meta, .stratz-mrow-arrow { display: none; }
    .stratz-dotaplus-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .stratz-mrow { grid-template-columns: 40px 20px 70px 1fr 28px; }
    .stratz-mrow-side { display: none; }
}

[data-theme="light"] .stratz-fsel-drop {
    border-color: var(--border2);
    background: var(--surface);
    box-shadow: 0 8px 32px rgba(37,48,49,.12);
}
[data-theme="light"] .stratz-section { background: var(--surface); }
[data-theme="light"] .stratz-trends-card,
[data-theme="light"] .stratz-activity-card { background: var(--surface); }
[data-theme="light"] .stratz-mrow--win  { border-left-color: var(--success); }
[data-theme="light"] .stratz-mrow--loss { border-left-color: var(--danger); }

.anl-mrow-kdaval { color: var(--col, var(--text)); }

.anl-mpkpi-val--dynamic { color: var(--col, var(--text)); }

.anl-sum-val--dynamic   { color: var(--col, var(--text)); }

.anl-sum-wr-fill {
    height: 100%;
    border-radius: 2px;
    width: var(--bar-w, 0%);
    background: var(--bar-col, var(--primary));
    transition: width .4s;
}

.anl-prelaunch-glow--cs2 {
    background: radial-gradient(ellipse at 50% 0, var(--orange-light) 0, transparent 70%);
}
.anl-prelaunch-icon--cs2 {
    color: var(--orange);
    background: var(--orange-light);
    border-color: rgba(249,115,22,.2);
}

.anl-mrow-hero-name--cs2 {
    font-size: 13px;
    font-weight: 800;
    min-width: 90px;
}

.anl-match-hero-name--lg { font-size: 22px; }

.anl-mpanel-kpi--mb { margin-bottom: 20px; }

.anl-mdetail-tabs--flush { margin-bottom: 0; }

.anl-rounds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 0;
}
.anl-round-cell {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    cursor: default;
}
.anl-round-cell--win {
    background: rgba(74,222,128,.2);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,.3);
}
.anl-round-cell--loss {
    background: rgba(248,113,113,.15);
    color: #f87171;
    border: 1px solid rgba(248,113,113,.2);
}
.anl-rounds-legend {
    font-size: 10px;
    color: var(--muted2);
    padding-bottom: 8px;
}

.anl-match-td--weapon { font-weight: 700; }

.sm2-wr-bar-fill { width: var(--bar-w, 0%); background: var(--bar-col, var(--success)); }
.sm2-impact-bar  { width: var(--bar-w, 0%); background: var(--bar-col, var(--primary)); }

.sm2-adv-chip--dynamic { color: var(--col, var(--text)); }
.sm2-adv-now--dynamic  { color: var(--col, var(--text)); }

.sm-dc-pos--dynamic { color: var(--col, var(--muted)); }

.anl-filter-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.anl-filter-controls-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.anl-standalone-shell { padding: 0; }
.anl-standalone-shell .player-content-shell { margin: 0; }

.stratz-ally-wr--dynamic { color: var(--col, var(--text)); }
.stratz-ally-wr-dot--dynamic { background: var(--col, var(--muted)); }

.sm2-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.sm2-meta-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; transition: border-color .15s; }
.sm2-meta-tile:hover { border-color: var(--border2); }
.sm2-meta-tile--wide { grid-column: span 2; }
.sm2-meta-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 5px; }
.sm2-meta-value { font-size: 14px; font-weight: 700; color: var(--text); word-break: break-word; }
.sm2-na { color: var(--muted) !important; }

.sm2-rank-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sm2-rank-tile { flex: 1 1 160px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; transition: border-color .15s; }
.sm2-rank-tile:hover { border-color: var(--border2); }
.sm2-rank-icon { color: var(--warning); flex-shrink: 0; }
.sm2-rank-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.sm2-rank-value { font-size: 15px; font-weight: 800; color: var(--text); }
.sm2-rank-raw { font-size: 10px; color: var(--muted); margin-top: 2px; }

.sm2-lanes-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sm2-lane-tile { flex: 1 1 120px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-align: center; transition: border-color .15s; }
.sm2-lane-tile:hover { border-color: var(--border2); }
.sm2-lane-tile--analysis { border-color: var(--border2); }
.sm2-lane-name { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.sm2-lane-result { font-size: 15px; font-weight: 800; }

.sm2-buildings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm2-bld-team { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.sm2-bld-team-label { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.sm2-bld-bits { display: flex; flex-wrap: wrap; gap: 5px; }
.sm2-bld-bit { display: flex; align-items: center; gap: 3px; font-size: 10px; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--border); white-space: nowrap; }
.sm2-bld-bit.alive { color: var(--text2); }
.sm2-bld-bit.dead  { color: var(--muted); opacity: .4; text-decoration: line-through; }

.sm2-myblock { border: 1px solid rgba(139,92,246,.25); background: linear-gradient(135deg, rgba(139,92,246,.06) 0%, rgba(59,130,246,.04) 100%); }
.sm2-myblock-result { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 20px; letter-spacing: .06em; margin-left: 8px; }
.sm2-myblock-result--win  { background: rgba(74,222,128,.15); color: var(--success); }
.sm2-myblock-result--lose { background: rgba(248,113,113,.15); color: var(--danger); }
.sm2-myblock-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sm2-myblock-hero { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.sm2-myblock-hero-img { width: 52px; height: 29px; object-fit: cover; border-radius: 4px; }
.sm2-myblock-hero-info { display: flex; flex-direction: column; gap: 2px; }
.sm2-myblock-hero-name { font-size: 13px; font-weight: 800; }
.sm2-myblock-hero-meta { display: flex; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.sm2-myblock-pos { font-weight: 700; }
.sm2-myblock-imp { font-size: 11px; font-weight: 800; margin-top: 2px; }
.sm2-myblock-imp.pos { color: var(--success); }
.sm2-myblock-imp.neg { color: var(--danger); }
.sm2-myblock-kda { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 16px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.sm2-myblock-kda-nums { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.sm2-myblock-kda-k { color: var(--success); }
.sm2-myblock-kda-d { color: var(--danger); }
.sm2-myblock-kda-a { color: var(--primary); }
.sm2-myblock-kda-sep { color: var(--muted); font-weight: 400; }
.sm2-myblock-kda-ratio { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.sm2-myblock-stats { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.sm2-myblock-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; background: var(--surface2); border-radius: 6px; min-width: 50px; }
.sm2-myblock-stat-val { font-size: 15px; font-weight: 800; }
.sm2-myblock-stat-lbl { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.sm2-adv-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm2-adv-chart { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.sm2-adv-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sm2-adv-chart-title  { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sm2-adv-chip { font-size: 12px; font-weight: 800; }
.sm2-sparkline-wrap { width: 100%; height: 60px; overflow: hidden; border-radius: 6px; background: var(--surface2); }
.sm2-sparkline-wrap--canvas { height: auto; overflow: visible; padding: 8px 6px 4px; }
.sm2-sparkline { width: 100%; height: 60px; display: block; }
.sm2-adv-now { font-size: 10px; color: var(--muted); margin-top: 6px; text-align: right; font-weight: 600; }

.sm2-wr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm2-wr-block { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.sm2-wr-block-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.sm2-wr-bars { display: flex; flex-direction: column; gap: 4px; }
.sm2-wr-bar-row { display: flex; align-items: center; gap: 6px; }
.sm2-wr-bar-min { font-size: 9px; color: var(--muted); width: 24px; text-align: right; flex-shrink: 0; }
.sm2-wr-bar-track { flex: 1; height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.sm2-wr-bar-fill { height: 100%; border-radius: 3px; width: var(--bar-w, 0%); background: var(--bar-col, var(--primary)); }
.sm2-wr-bar-fill--predict { opacity: .7; }
.sm2-wr-bar-val { font-size: 9px; font-weight: 700; width: 34px; flex-shrink: 0; }

.sm2-lane-report { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm2-lr-team { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.sm2-lr-team-title { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.sm2-lr-lane { margin-bottom: 8px; }
.sm2-lr-lane-name { font-size: 11px; font-weight: 700; color: var(--text2); margin-bottom: 3px; }
.sm2-lr-neutral { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 3px; margin-bottom: 3px; }
.sm2-lr-lane-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.sm2-lr-stat { font-size: 10px; background: var(--surface2); border-radius: 4px; padding: 2px 6px; display: flex; gap: 4px; }
.sm2-lr-stat-key { color: var(--muted); }
.sm2-lr-stat-val { color: var(--text2); font-weight: 700; }

.sm2-tower-deaths { display: flex; flex-direction: column; gap: 4px; }
.sm2-td-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 7px 12px; font-size: 12px; }
.sm2-td-time { color: var(--muted); font-size: 11px; width: 38px; flex-shrink: 0; }
.sm2-td-icon.radiant { color: var(--success); }
.sm2-td-icon.dire    { color: var(--danger); }
.sm2-td-name { flex: 1; font-weight: 600; color: var(--text2); }
.sm2-td-killer { font-size: 10px; color: var(--muted); }

.sm2-chat-list { display: flex; flex-direction: column; gap: 3px; max-height: 300px; overflow-y: auto; }
.sm2-chat-row { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; padding: 5px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.sm2-chat-row--kill       { border-color: color-mix(in srgb, var(--danger) 25%, var(--border)); }
.sm2-chat-row--objectives { border-color: color-mix(in srgb, var(--warning) 25%, var(--border)); }
.sm2-chat-time   { color: var(--muted); flex-shrink: 0; width: 34px; }
.sm2-chat-player { font-weight: 800; flex-shrink: 0; }
.sm2-chat-msg    { color: var(--text2); flex: 1; word-break: break-word; }
.sm2-chat-type   { color: var(--muted); font-style: italic; }
.sm2-chat-more   { font-size: 10px; color: var(--muted); text-align: center; padding: 6px; }

.sm2-pb-table { display: flex; flex-direction: column; gap: 2px; }
.sm2-pb-head { display: grid; grid-template-columns: 36px 90px 60px 1fr; gap: 8px; padding: 4px 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sm2-pb-row { display: grid; grid-template-columns: 36px 90px 60px 1fr; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; transition: border-color .15s; }
.sm2-pb-row:hover { border-color: var(--border2); }
.sm2-pb-row.ban { opacity: .65; }
.sm2-pb-order { color: var(--muted); font-size: 11px; text-align: center; }
.sm2-pb-side  { font-size: 11px; font-weight: 700; }
.sm2-pb-type  { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.sm2-pb-type.pick { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.sm2-pb-type.ban  { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.sm2-pb-hero { display: flex; align-items: center; gap: 6px; }
.sm2-pb-hero img { width: 24px; height: 24px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border2); }
.sm2-pb-hero-empty { width: 24px; height: 24px; border-radius: 4px; background: var(--surface3); }
.sm2-pb-hid { font-size: 10px; color: var(--muted); }

@media (max-width: 768px) {
    .sm2-buildings-grid,
    .sm2-adv-charts,
    .sm2-wr-cols,
    .sm2-lane-report { grid-template-columns: 1fr; }
    .sm2-meta-tile--wide { grid-column: span 1; }
    .sm2-pb-head,
    .sm2-pb-row { grid-template-columns: 28px 70px 50px 1fr; gap: 5px; }
}

.sm-draft-empty-msg { color: var(--muted); font-size: 12px; }
.sm-draft-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-draft-team { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.sm-draft-team-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.sm-draft-team--dire .sm-draft-team-label { justify-content: flex-end; }
.sm-draft-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-draft-team--dire .sm-draft-cards { justify-content: flex-end; }
.sm-draft-card { position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border2); transition: border-color .15s, transform .15s; flex-shrink: 0; }
.sm-draft-card:hover { border-color: var(--border3); transform: translateY(-1px); }
.sm-draft-card.rad  { border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.sm-draft-card.dire { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.sm-draft-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-draft-card--ban img { filter: grayscale(1) brightness(.4); }
.sm-dc-empty { width: 100%; height: 100%; background: var(--surface3); }
.sm-dc-ban-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: var(--danger); background: rgba(0,0,0,.5); }
.sm-dc-pos { position: absolute; bottom: 2px; left: 2px; font-size: 9px; font-weight: 800; background: rgba(0,0,0,.7); border-radius: 3px; padding: 1px 3px; }
.sm-dc-pos--dynamic { color: var(--col, var(--muted)); }
.sm-dc-order { position: absolute; top: 2px; right: 3px; font-size: 9px; font-weight: 800; color: rgba(255,255,255,.5); }
@media (max-width: 640px) { .sm-draft-split { grid-template-columns: 1fr; } }

.d2d-dual-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.d2d-side { display: flex; flex-direction: column; gap: 6px; }
.d2d-side-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.d2d-bar-row { display: flex; align-items: center; gap: 7px; }
.d2d-bar-row--right { flex-direction: row-reverse; }
.d2d-bar-hero { display: flex; align-items: center; gap: 5px; width: 120px; flex-shrink: 0; }
.d2d-bar-row--right .d2d-bar-hero { justify-content: flex-end; flex-direction: row-reverse; }
.d2d-hero-img { width: 28px; height: 16px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.d2d-bar-name { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.d2d-bar-track { flex: 1; height: 10px; background: rgba(255,255,255,.06); border-radius: 5px; overflow: hidden; position: relative; }
.d2d-bar-fill { height: 100%; border-radius: 5px; transition: width .5s ease; }
.d2d-bar-val { font-size: 11px; font-weight: 800; color: var(--muted2); white-space: nowrap; min-width: 36px; text-align: right; }
.d2d-bar-row--right .d2d-bar-val { text-align: left; }
@media (max-width: 600px) {
  .d2d-dual-bars { grid-template-columns: 1fr; }
  .d2d-bar-hero { width: 90px; }
}

.sm-confrontation { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.sm-team { display: flex; flex-direction: column; gap: 8px; }
.sm-versus { display: flex; align-items: center; justify-content: center; padding-top: 40px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sm-pcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; transition: border-color .2s, transform .15s; }
.sm-pcard:hover { border-color: var(--border2); transform: translateY(-1px); }
.sm-pcard--me { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.sm-pcard-imp { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.sm-pcard-imp.pos { background: var(--success-light); color: var(--success); }
.sm-pcard-imp.neg { background: var(--danger-light); color: var(--danger); }
.sm-pcard-hero-wrap { position: relative; }
.sm-pcard-hero-img { width: 100%; height: 60px; object-fit: cover; border-radius: 8px; display: block; }
.sm-pcard-hero-img--empty { background: var(--surface3); height: 60px; border-radius: 8px; }
.sm-pcard-level { position: absolute; bottom: 4px; left: 4px; font-size: 10px; font-weight: 900; background: rgba(0,0,0,.75); color: #fff; padding: 1px 5px; border-radius: 4px; }
.sm-pcard-pos { position: absolute; bottom: 4px; right: 4px; font-size: 9px; font-weight: 800; background: rgba(0,0,0,.75); padding: 1px 5px; border-radius: 4px; color: var(--col, var(--muted)); }
.sm-pcard-kda { display: flex; align-items: center; gap: 2px; justify-content: center; font-size: 13px; }
.sm-pcard-gold { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--text2); justify-content: center; }
.sm-pcard-name { font-size: 11px; font-weight: 600; color: var(--muted2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-pcard-name--me { color: var(--primary); font-weight: 800; }
.sm-pcard-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.sm-item-slot { width: 100%; aspect-ratio: 1.7; border-radius: 4px; overflow: hidden; background: var(--surface3); }
.sm-item-slot--empty { background: var(--surface3); opacity: .4; }
.sm-item-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
    .sm-confrontation { grid-template-columns: 1fr; }
    .sm-versus { padding-top: 0; }
    .sm-team--dire { order: 2; }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE.CSS  —  адаптивность для всего сайта
   Брейкпойнты: 1280 / 1100 / 900 / 700 / 480
   ═══════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────
   1280px  –  широкий десктоп → слегка сужаем грид
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {

  /* Dashboard */
  .db-top-grid { grid-template-columns: 190px 1fr 1fr 240px; }
  .db-bot-grid { grid-template-columns: 190px 1fr 1fr; }

  /* Profile banner */
  .bnr-kpi  { padding: 10px 16px; min-width: 60px; }
  .bnr-name { font-size: 30px; }

}

/* ────────────────────────────────────────────────────────────────
   1100px  –  планшет-ландшафт / небольшой ноутбук
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {

  /* Layout */
  .content-wrap  { grid-template-columns: 1fr; }
  .content-right { display: none; }

  /* Dashboard */
  .db-top-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .db-bot-grid { grid-template-columns: 1fr 1fr; }
  .db-bot-grid > *:nth-child(3) { grid-column: 1 / -1; }
  .db-welcome-kpis { display: none; }

  /* Player nav */
  .plnav { padding: 8px 14px; }
  .plnav-game-label { display: none; }
  .plnav-sep { display: none; }

  /* Dashboard Dota */
  .db-dota-cards { grid-template-columns: 1fr 1fr; }
  .db-dota-card:nth-child(1) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .db-dota-card:nth-child(2) { border-right: none; border-bottom: 1px solid var(--border); }
  .db-dota-card:nth-child(3) { grid-column: 1 / -1; border-right: none; }
  .db-dota-matches-thead,
  .db-dota-match-row { grid-template-columns: 120px 1fr 40px 40px 40px 50px 50px; }
  .db-dota-matches-thead > *:last-child,
  .db-dota-match-row > *:last-child { display: none; }

  /* Tournament page */
  .trn-page-body  { grid-template-columns: 1fr; }
  .trn-page-main  { border-right: none; }
  .trn-page-aside { position: static; border-top: 1px solid var(--border); padding: 16px; }

  /* Game / tournament grids */
  .gm-cards-grid  { grid-template-columns: repeat(2, 1fr); }
  .trn-front-grid { grid-template-columns: repeat(2, 1fr); }

  /* Teams */
  .tm-settings-grid { grid-template-columns: 1fr; }

  /* Profile banner */
  .bnr-kpis { display: none; }
  .bnr-name  { font-size: 28px; }

}

/* ────────────────────────────────────────────────────────────────
   900px  –  планшет / широкий телефон
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {

  :root { --nav-h: 52px; }

  /* ── Navbar ── */
  .site-nav  { left: 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: none; }
  .nav-inner { padding: 0 12px; gap: 10px; }
  .nav-notif-wrap { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-btn-register { display: none; }

  /* ── Mobile nav ── */
  .mobile-bottom-nav     { display: flex; }
  .mobile-drawer-overlay { display: block; }

  /* ── Dropdowns ── */
  .notif-dropdown { position: fixed; top: 52px; left: 12px; right: 12px; width: auto; }
  .user-dropdown  { position: fixed; top: 52px; right: 12px; left: 12px; min-width: auto; }

  /* ── Layout ── */
  .content-wrap { padding-bottom: 68px; }
  .site-footer  { margin-left: 0; padding-bottom: 68px; }

  /* ── Toast ── */
  .toast-container { bottom: 76px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }

  /* ── Section ── */
  .section-inner { padding: 12px 14px 16px; }

  /* ── Hero banner ── */
  .hero-banner { min-height: 220px; }
  .hero-slide  { padding: 20px 16px; }
  .hero-title  { font-size: 26px; letter-spacing: -.8px; }
  .hero-sub    { font-size: 13px; }
  .hero-actions { gap: 8px; }

  /* ── Match row ── */
  .match-row      { padding: 10px 14px; }
  .match-row-odds { display: none; }
  .match-team-name { font-size: 12px; }

  /* ── Grids ── */
  .trn-front-grid { grid-template-columns: 1fr; }
  .gm-cards-grid  { grid-template-columns: 1fr; }
  .streams-grid   { grid-template-columns: 1fr 1fr; }
  .players-grid   { grid-template-columns: repeat(3, 1fr); }

  /* ── Tournament page ── */
  .trn-page-hero-content { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 16px; }
  .trn-page-hero-stats   { flex-direction: row; justify-content: flex-start; width: 100%; gap: 20px; }
  .trn-page-stat         { text-align: left; }
  .trn-page-title        { font-size: clamp(20px, 5vw, 32px); }
  .trn-page-strip        { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .trn-page-strip::-webkit-scrollbar { display: none; }
  .trn-page-strip-item   { white-space: nowrap; flex-shrink: 0; }
  .trn-page-aside { padding: 14px; }

  /* ── Game page ── */
  .game-hero-content  { padding: 20px 16px; gap: 14px; }
  .game-hero-title    { font-size: 24px; }
  .game-hero-icon     { width: 56px; height: 56px; border-radius: 12px; }
  .game-hero-icon img { width: 36px; height: 36px; }
  .game-hero-stats    { gap: 14px; }
  .game-hero-stat-num { font-size: 18px; }
  .game-teams-grid    { grid-template-columns: repeat(2, 1fr); }
  .game-trn-grid      { grid-template-columns: repeat(2, 1fr); }

  /* ── Player page ── */
  .player-main-new { padding: 72px 14px 80px; }

  .plnav { padding: 6px 10px; gap: 4px; }
  .plnav-game-card { padding: 5px 9px; }
  .plnav-game-card-name { font-size: 11px; }
  .plnav-spacer { display: none; }

  /* ── Profile banner ── */
  .bnr-inner  { padding: 18px 16px; gap: 14px; }
  .bnr-ava, .bnr-ava-letter { width: 54px; height: 54px; font-size: 21px; }
  .bnr-name   { font-size: 24px; }
  .bnr-right  { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .bnr-kpis   { display: flex; }
  .bnr-kpi    { padding: 8px 12px; min-width: 52px; }
  .bnr-kpi-val { font-size: 17px; }
  .bnr-kpi-lbl { font-size: 8px; }
  .bnr-settings-btn { padding: 7px 12px; font-size: 11px; }

  /* ── Dashboard ── */
  .db-main-wrap { gap: 10px; padding: 10px; }
  .db-top-grid  { grid-template-columns: 1fr 1fr; gap: 8px; }
  .db-bot-grid  { grid-template-columns: 1fr; gap: 8px; }
  .db-bot-grid > *:nth-child(3) { grid-column: auto; }

  .db-dota-fav-grid { grid-template-columns: 1fr; }
  .db-dota-fav-card { border-right: none; border-bottom: 1px solid var(--border); }

  /* ── Teams ── */
  .tm-hero-content { padding: 20px 16px; gap: 16px; }
  .tm-hero-name    { font-size: 24px; }
  .tm-hero-stats   { flex-wrap: wrap; gap: 14px; }
  .tm-member-stats { display: none; }

  /* ── Public profile (pd-) ── */
  .pd-hero-inner    { padding: 18px 16px; }
  .pd-hero-username { font-size: 24px; }
  .pd-hero-balance  { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .pd-qs-grid       { grid-template-columns: repeat(2, 1fr); }
  .pd-upc-grid      { grid-template-columns: repeat(2, 1fr); }
  .pd-analytics-row  { grid-template-columns: 1fr; }
  .pd-analytics-grid { grid-template-columns: 1fr; }
  .pd-quick-stats   { grid-template-columns: repeat(2, 1fr); }
  .pd-upcoming-grid { grid-template-columns: 1fr 1fr; }

  .pf-cta { padding: 14px 16px; }
  .pf-cta-icon { width: 38px; height: 38px; }

  #db-auto-cta { padding: 10px 14px; }

  /* ── Setup panel ── */
  .stp-panel { width: 100vw; }
  .stp-body  { flex-direction: column; overflow-y: auto; }
  .stp-col   { border-right: none; border-bottom: 1px solid var(--border); }

  /* ── User chip ── */
  .user-chip-info { display: none; }
  .chip-arrow     { display: none; }
  .user-chip      { padding: 5px; }
  .nav-actions .btn-deposit { padding: 6px 12px; font-size: 12px; }

  /* ────────────────────────────────────────────────────────────
     LEISURE — витрина (/?page=leisure)
  ──────────────────────────────────────────────────────────── */
  .ls-page {
    padding: 20px 16px 40px;
  }
  .ls-page-title { font-size: 22px; }
  .ls-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }

  /* ────────────────────────────────────────────────────────────
     HERO GUESS (/?page=leisure&game=hero_guess)
  ──────────────────────────────────────────────────────────── */
  .hg-wrap { padding: 18px 14px 52px; }
  .hg-title { font-size: 18px; }
  .hg-header { gap: 8px; margin-bottom: 16px; }

  /* Таблица — горизонтальный скролл на планшете */
  .hg-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hg-table        { min-width: 520px; }

  /* ────────────────────────────────────────────────────────────
     MATCH-3 SELECT (/?page=leisure&game=match3)
  ──────────────────────────────────────────────────────────── */
  .m3s-wrap   { padding: 18px 14px 52px; }
  .m3s-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .m3s-title  { font-size: 20px; }
  .m3s-sub    { font-size: 13px; }

  /* Сетка уровней */
  .m3s-levels-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .m3s-level-btn   { width: 44px; height: 44px; font-size: 12px; }

  /* Лидерборд — компактно */
  .m3s-lb-row { grid-template-columns: 28px 1fr 60px; }
  .m3s-lb-kda { display: none; }

  /* Герои-апгрейды */
  .m3s-heroes-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* Roshan HP bar — полная ширина */
  .m3s-roshan-wrap { padding: 14px 16px; }

  /* ────────────────────────────────────────────────────────────
     PARTY LOBBY (/?page=party-lobby&id=*)
  ──────────────────────────────────────────────────────────── */
  /* Двухколоночный лейаут → одна колонка: сайдбар под чатом */
  .lp-app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .lp-chat { border-right: none; border-bottom: 1px solid var(--border); }
  .lp-side  { max-height: 40vh; overflow-y: auto; }
  .lp-side-inner { padding: 12px 14px; }

  /* ────────────────────────────────────────────────────────────
     PROFILE PAGE (/?page=profile&uid=*)
  ──────────────────────────────────────────────────────────── */
  .pf-layout       { grid-template-columns: 1fr; }
  .pf-sidebar      { display: none; }           /* скрываем боковую панель */
  .pf-tabs-strip   { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pf-tabs-strip::-webkit-scrollbar { display: none; }

  /* ────────────────────────────────────────────────────────────
     PLAYER — FRIENDS TAB (/?page=player&tab=friends)
  ──────────────────────────────────────────────────────────── */
  .social-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .social-header-right { width: 100%; justify-content: space-between; }
  .social-search { flex: 1; }
  .social-search-input { width: 100%; }

  .friends-list   { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .friend-card    { padding: 12px; }

  .friends-requests-panel { padding: 12px 14px; }
  .req-item       { gap: 10px; }

  /* ────────────────────────────────────────────────────────────
     PLAYER — MESSAGES TAB (/?page=player&tab=messages)
  ──────────────────────────────────────────────────────────── */
  /* Двухколоночный мессенджер → стэк: список / чат переключается */
  .ms-shell { grid-template-columns: 1fr; }
  .ms-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 45vh;
    overflow-y: auto;
  }
  .ms-sidebar--hidden { display: none; }
  .ms-chat   { min-height: 55vh; }

  .ms-topbar-back { display: flex; }   /* показываем кнопку «назад» */
  .ms-input-row   { padding: 8px 12px; }

}

/* ────────────────────────────────────────────────────────────────
   700px  –  мобильный телефон
   ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {

  /* ── Hero banner ── */
  .hero-title  { font-size: 22px; }
  .hero-sub    { display: none; }
  .hero-actions .btn { padding: 9px 14px; font-size: 12px; }

  /* ── Matches ── */
  .matches-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .match-row { grid-template-columns: 72px 1fr; gap: 8px; }
  .match-row-score { font-size: 14px; }

  /* ── Grids ── */
  .streams-grid    { grid-template-columns: 1fr; }
  .players-grid    { grid-template-columns: repeat(2, 1fr); }
  .game-teams-grid { grid-template-columns: 1fr; }
  .game-trn-grid   { grid-template-columns: 1fr; }

  /* ── Tournament ── */
  .trn-page-icon     { width: 56px; height: 56px; }
  .trn-page-icon img { width: 36px; height: 36px; }
  .trn-page-hero-left { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trn-page-stat-val  { font-size: 18px; }
  .trn-page-hero-stats { flex-wrap: wrap; gap: 14px; }
  .trn-page-aside { padding: 12px; }

  /* ── Dashboard ── */
  .db-top-grid  { grid-template-columns: 1fr; }
  .db-bot-grid  { grid-template-columns: 1fr; }
  .db-main-wrap { gap: 8px; padding: 8px; }

  /* ── Profile banner ── */
  .bnr-inner  { padding: 14px 12px; gap: 12px; }
  .bnr-left   { gap: 12px; }
  .bnr-ava, .bnr-ava-letter { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
  .bnr-name   { font-size: 20px; letter-spacing: -.5px; }
  .bnr-label  { font-size: 9px; }
  .bnr-game-tag { display: none; }
  .bnr-pills  { gap: 4px; }
  .bnr-pill   { font-size: 10px; padding: 3px 8px; }
  .bnr-right  { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bnr-kpis   { width: 100%; gap: 0; }
  .bnr-kpi    { flex: 1; padding: 8px; min-width: 0; }
  .bnr-kpi-val { font-size: 15px; }
  .bnr-settings-btn { display: none; }

  /* ── Player nav ── */
  .plnav-game-card { padding: 5px 8px; }
  .plnav-game-card-name { display: none; }
  .plnav-game-card-icon { width: 20px; height: 20px; }

  /* ── Dashboard tables ── */
  .db-mem-table-hdr, .db-mem-row { grid-template-columns: 24px 1fr 60px 60px; }
  .db-mem-row > *:nth-child(5),
  .db-mem-table-hdr > *:nth-child(5) { display: none; }

  .db-hist-head, .db-hist-row { grid-template-columns: 26px 1fr 40px 34px; }
  .db-hist-trn { display: none; }

  .db-dota-cards { grid-template-columns: 1fr; }
  .db-dota-card  { border-right: none !important; border-bottom: 1px solid var(--border); }
  .db-dota-matches-thead,
  .db-dota-match-row { grid-template-columns: 100px 1fr 36px 36px 36px; }
  .db-dota-matches-thead > *:nth-child(n+6),
  .db-dota-match-row > *:nth-child(n+6) { display: none; }

  .db-dota-synergy-grid { grid-template-columns: 1fr; }
  .db-dota-synergy-card { border-right: none; }

  /* ── Create team form ── */
  .ctf-row--2 { flex-direction: column; }
  .ctf-row    { flex-direction: column; }

  /* ── Teams ── */
  .tm-hero-name    { font-size: 20px; }
  .tm-hero-content { padding: 16px 14px; gap: 12px; }
  .tm-hero-stats   { display: none; }
  .tm-tabs         { padding: 0 12px; }
  .tm-settings-wrap { padding: 12px; }

  /* ── Public profile ── */
  .pd-hero-username { font-size: 20px; }
  .pd-hero-inner    { padding: 16px 14px; gap: 14px; }
  .pd-mt-head, .pd-mt-row { grid-template-columns: 36px 1fr 56px 36px; }
  .pd-mt-trn  { display: none; }
  .pd-upc-grid { grid-template-columns: 1fr; }

  /* ── Player page ── */
  .player-main-new { padding: 64px 10px 76px; }

  /* ────────────────────────────────────────────────────────────
     LEISURE — витрина (/?page=leisure)
  ──────────────────────────────────────────────────────────── */
  .ls-page  { padding: 16px 12px 36px; }
  .ls-grid  { grid-template-columns: 1fr; gap: 12px; }
  .ls-card-thumb { height: 140px; }
  .ls-page-title { font-size: 20px; }

  /* ────────────────────────────────────────────────────────────
     HERO GUESS (/?page=leisure&game=hero_guess)
  ──────────────────────────────────────────────────────────── */
  .hg-wrap  { padding: 14px 10px 60px; }
  .hg-title { font-size: 16px; }

  /* Шапка — бэк + счётчик в ряд, без пространства */
  .hg-header        { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
  .hg-header-left   { gap: 8px; flex-wrap: wrap; }
  .hg-counter       { font-size: 12px; padding: 3px 10px; }

  /* Поле ввода — 100% ширина */
  .hg-input-wrap { max-width: 100%; }
  .hg-input { font-size: 14px; padding: 11px 14px; }

  /* Легенда — горизонтальный скролл */
  .hg-legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .hg-legend::-webkit-scrollbar { display: none; }
  .hg-legend-item { flex-shrink: 0; }

  /* Таблица угаданных */
  .hg-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hg-table        { min-width: 480px; }

  /* Ячейки */
  .hg-cell     { font-size: 10px; padding: 6px 4px; min-height: 38px; }
  .hg-hero-img { width: 36px; height: 22px; }
  .hg-hero-name { font-size: 10px; }

  /* Лидерборд */
  .hg-lb-title { font-size: 16px; }
  .hg-lb-tabs  { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .hg-lb-table th, .hg-lb-table td { padding: 8px 8px; font-size: 12px; }

  /* Модал */
  .hg-modal { padding: 24px 18px; }
  .hg-modal-emoji { font-size: 42px; }
  .hg-modal-title { font-size: 18px; }

  /* ────────────────────────────────────────────────────────────
     MATCH-3 SELECT (/?page=leisure&game=match3)
  ──────────────────────────────────────────────────────────── */
  .m3s-wrap  { padding: 14px 10px 60px; }
  .m3s-title { font-size: 18px; }

  /* Уровни */
  .m3s-levels-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .m3s-level-btn   { width: 40px; height: 40px; font-size: 11px; border-radius: 10px; }

  /* Герои */
  .m3s-heroes-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Пагинация — сделать кнопки крупнее для пальцев */
  .m3s-pager { gap: 6px; }
  .m3s-pager-btn { min-width: 40px; padding: 8px 10px; font-size: 12px; }

  /* ────────────────────────────────────────────────────────────
     PARTY LOBBY (/?page=party-lobby&id=*)
  ──────────────────────────────────────────────────────────── */
  .lp-app { grid-template-rows: 1fr auto; }
  .lp-side { max-height: 50vh; }

  /* Топбар лобби */
  .lp-topbar { padding: 0 12px; height: 50px; gap: 8px; }
  .lp-topbar-name { font-size: 13px; }

  /* Ячейки слотов */
  .lp-slot  { padding: 10px 12px; gap: 8px; }
  .lp-slot-av { width: 34px; height: 34px; }
  .lp-slot-name { font-size: 13px; }

  /* Чат */
  .lp-chat-input { padding: 10px 12px; }
  .lp-chat-msg   { font-size: 13px; }

  /* ────────────────────────────────────────────────────────────
     PROFILE PAGE (/?page=profile&uid=*)
  ──────────────────────────────────────────────────────────── */
  .pf-hero-inner   { padding: 14px 12px; }
  .pf-qs-grid      { grid-template-columns: repeat(2, 1fr); }
  .pf-wall-post    { padding: 12px; }
  .pf-wall-post-body { font-size: 13px; }
  .pf-friends-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* ────────────────────────────────────────────────────────────
     PLAYER — FRIENDS TAB (/?page=player&tab=friends)
  ──────────────────────────────────────────────────────────── */
  .social-header-title { font-size: 16px; }
  .social-header-sub   { display: none; }

  .friends-list  { grid-template-columns: 1fr; gap: 8px; }
  .friend-card   { padding: 10px 12px; gap: 10px; }
  .friend-card-actions .db-btn { padding: 5px 10px; font-size: 11px; }

  .friends-requests-panel { padding: 10px 12px; }

  /* ────────────────────────────────────────────────────────────
     PLAYER — MESSAGES TAB (/?page=player&tab=messages)
  ──────────────────────────────────────────────────────────── */
  .ms-sidebar { max-height: 40vh; }
  .ms-convo-item { padding: 10px 12px; gap: 10px; }
  .ms-convo-av   { width: 38px; height: 38px; }
  .ms-convo-name { font-size: 13px; }
  .ms-convo-last { font-size: 12px; }

  .ms-topbar { height: 50px; padding: 0 12px; }
  .ms-topbar-name { font-size: 13px; }

  .ms-msg-bubble { max-width: 88%; font-size: 13px; }

  .ms-input-wrap { font-size: 13px; }
  .ms-send-btn   { width: 38px; height: 38px; }

  /* Стикер-пикер */
  .ms-picker { max-height: 240px; }

}

/* ────────────────────────────────────────────────────────────────
   480px  –  маленький телефон
   ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* ── Layout / nav ── */
  .nav-inner { padding: 0 10px; }
  .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }

  /* ── LEISURE витрина ── */
  .ls-page  { padding: 12px 10px 28px; }
  .ls-card-thumb { height: 120px; }

  /* ── HERO GUESS ── */
  .hg-wrap  { padding: 12px 8px 56px; }
  .hg-table { min-width: 440px; }
  .hg-cell  { font-size: 9px; min-height: 34px; }

  .hg-modal { padding: 20px 14px; max-width: 100%; }
  .hg-modal-title { font-size: 16px; }
  .hg-modal-emoji { font-size: 36px; }
  .hg-modal-btn   { font-size: 13px; padding: 10px 14px; }

  /* ── MATCH-3 SELECT ── */
  .m3s-levels-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .m3s-level-btn   { width: 36px; height: 36px; font-size: 10px; }
  .m3s-heroes-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── PARTY LOBBY ── */
  .lp-app  { grid-template-rows: 1fr auto; }
  .lp-side { max-height: 44vh; }
  .lp-topbar-badges { display: none; }   /* скрываем значки тегов при нехватке места */

  /* ── PROFILE ── */
  .pf-friends-grid { grid-template-columns: 1fr; }
  .pf-qs-grid      { grid-template-columns: repeat(2, 1fr); }

  /* ── FRIENDS ── */
  .friends-req-toggle { padding: 6px 10px; font-size: 11px; }

  /* ── MESSAGES ── */
  .ms-sidebar  { max-height: 38vh; }
  .ms-picker   { max-height: 200px; }
  .ms-msg-bubble { max-width: 92%; }
}




:root {
  --ts-gold:    #f0b429;
  --ts-gold2:   #ffd166;
  --ts-green:   #39e580;
  --ts-red:     #ff3d3d;
  --ts-blue:    var(--primary, #225AEB);
  --ts-card:    var(--surface, #13111d);
  --ts-card2:   var(--surface2, #1a1829);
  --ts-border:  var(--border, rgba(255,255,255,.06));
  --ts-border2: var(--border2, rgba(255,255,255,.12));
  --ts-radius:  14px;
  --ts-radius-sm: 8px;
  --ts-glow:    rgba(34,90,235,.25);
}

.ts-hero {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.ts-hero__art {
  position: relative;
  overflow: hidden;
}
.ts-hero__art-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.ts-hero:hover .ts-hero__art-photo { transform: scale(1.03); }
.ts-hero__art-blur {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(.2) saturate(2);
  transform: scale(1.3);
}
.ts-hero__art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,9,18,.05) 0%, rgba(10,9,18,.6) 75%, rgba(10,9,18,1) 100%);
}

.ts-hero__panel {
  position: relative;
  z-index: 2;
  background: rgba(10,9,18,.92);
  border-left: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ts-hero__panel-inner {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ts-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.ts-breadcrumb a { color: inherit; text-decoration: none; transition: color .15s; }
.ts-breadcrumb a:hover { color: rgba(255,255,255,.65); }

.ts-hero__identity {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.ts-hero__logo {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.ts-hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.ts-hero__name-wrap { min-width: 0; }
.ts-hero__name {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ts-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.ts-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid;
}
.ts-status--live    { color: #39e580; background: rgba(57,229,128,.1); border-color: rgba(57,229,128,.3); }
.ts-status--reg     { color: #5badff; background: rgba(91,173,255,.1); border-color: rgba(91,173,255,.3); }
.ts-status--checkin { color: #ff9f40; background: rgba(255,159,64,.1); border-color: rgba(255,159,64,.3); }
.ts-status--finish  { color: #b49eff; background: rgba(180,158,255,.1); border-color: rgba(180,158,255,.3); }
.ts-status--draft   { color: #8492a6; background: rgba(132,146,166,.1); border-color: rgba(132,146,166,.2); }

.ts-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #39e580;
  box-shadow: 0 0 10px #39e580;
  animation: ts-pulse 1.4s infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes ts-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(.7)} }

.ts-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 4px 10px;
  border-radius: 6px;
}
.ts-badge--lg { font-size: 12px; padding: 5px 13px; }
.ts-badge--gold { color: var(--ts-gold); background: rgba(240,180,41,.1); border-color: rgba(240,180,41,.25); }

.ts-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-wrap: wrap;
}
.ts-stat {
  flex: 1;
  min-width: 70px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ts-stat__val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
  color: #fff;
}
.ts-stat__val em { font-style: normal; font-size: 15px; color: rgba(255,255,255,.3); }
.ts-stat--gold .ts-stat__val { color: var(--ts-gold); }
.ts-stat__lbl {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ts-hero__cta {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ts-hero__cta-timer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
}
.ts-hero__cta-timer svg { flex-shrink: 0; opacity: .5; }
.ts-hero__cta-timer strong { color: #fff; font-weight: 800; }
.ts-hero__cta-slots {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
}
.ts-hero__cta-slots strong { font-weight: 800; color: var(--ts-green); }
.ts-hero__cta-bar {
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 2px;
  overflow: hidden;
}
.ts-hero__cta-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--ts-blue), #60a5fa);
  border-radius: 2px;
  transition: width .5s ease;
}
.ts-hero__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  background: var(--ts-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34,90,235,.3);
}
.ts-hero__cta-btn:hover { opacity: .88; transform: translateY(-1px); }
.ts-hero__cta-btn--ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
  color: rgba(255,255,255,.7);
}
.ts-hero__cta-noteam { display: flex; flex-direction: column; gap: 8px; }
.ts-hero__cta-full {
  text-align: center;
  padding: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ts-hero__cta-registered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(57,229,128,.1);
  border: 1px solid rgba(57,229,128,.25);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ts-green);
}

.ts-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: var(--nav-h, 56px);
  z-index: 50;
  background: rgba(10,9,18,.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ts-nav::-webkit-scrollbar { display: none; }

.ts-nav__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.28);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
}
.ts-nav__item:hover { color: rgba(255,255,255,.65); }
.ts-nav__item.active { color: #fff; border-bottom-color: var(--ts-blue); }
.ts-nav__item svg { opacity: .5; flex-shrink: 0; }
.ts-nav__item.active svg { opacity: 1; }

.ts-nav__count {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: 0;
}
.ts-nav__count--live {
  background: rgba(255,61,61,.15);
  border-color: rgba(255,61,61,.25);
  color: #ff6b6b;
}

.ts-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  padding: 32px 40px;
  align-items: start;
}

.ts-panel { display: none; }
.ts-panel.active { display: block; }

.ts-section { margin-bottom: 28px; }
.ts-section__hd {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.28);
  margin-bottom: 14px;
}
.ts-section__hd::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.05);
}

.ts-match {
  background: var(--ts-card);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--ts-radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .12s;
  overflow: hidden;
}
.ts-match:hover {
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
  transform: translateY(-1px);
}
.ts-match--live { border-color: rgba(255,61,61,.28) !important; }
.ts-match--live::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--ts-red), #ff6b35, var(--ts-red));
  background-size: 200%;
  animation: ts-sweep 2.5s linear infinite;
}
@keyframes ts-sweep { 0%{background-position:100%} 100%{background-position:-100%} }
.ts-match--done { opacity: .6; }
.ts-match--done:hover { opacity: 1; }

.ts-match__stage {
  padding: 8px 16px 0;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.22);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ts-match__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 8px;
}
.ts-match__side {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.ts-match__side--right { flex-direction: row-reverse; }
.ts-match__name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-match__name--r { text-align: right; }
.ts-match__name--win { color: var(--ts-green); font-weight: 800; }
.ts-match__name--lose { color: rgba(255,255,255,.28); }

.ts-match__score {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.ts-score-n {
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,.2);
  line-height: 1;
  min-width: 24px;
  text-align: center;
  letter-spacing: -1px;
}
.ts-score-n--win { color: #fff; }
.ts-score-vs {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.15);
  letter-spacing: .5px;
}
.ts-match__sep { font-size: 20px; font-weight: 800; color: rgba(255,255,255,.1); }

.ts-match__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 10px;
}
.ts-match__fmt {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ts-match__stream-link {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,61,61,.8);
  text-decoration: none;
  margin-left: auto;
  transition: color .15s;
}
.ts-match__stream-link:hover { color: var(--ts-red); }
.ts-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ts-red);
  letter-spacing: .4px;
}

.ts-story-section {
  background: var(--ts-card);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--ts-radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.ts-story-section:hover { border-color: rgba(255,255,255,.1); }

.ts-story-section__hd {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ts-story-section__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(34,90,235,.1);
  border: 1px solid rgba(34,90,235,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(91,173,255,.8);
  flex-shrink: 0;
}
.ts-story-section__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.25);
  margin-bottom: 2px;
}
.ts-story-section__title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.2px;
}

.ts-prize-total {
  margin-left: auto;
  font-size: 26px;
  font-weight: 900;
  color: var(--ts-gold);
  letter-spacing: -1px;
  text-shadow: 0 0 30px rgba(240,180,41,.25);
}

.ts-prize-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 28px 22px 24px;
}
.ts-prize-pod {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  text-align: center;
  transition: transform .2s;
}
.ts-prize-pod:hover { transform: translateY(-3px); }
.ts-prize-pod--first { transform: translateY(-12px); }
.ts-prize-pod--first:hover { transform: translateY(-15px); }
.ts-prize-pod--gold { background: rgba(240,180,41,.06); border-color: rgba(240,180,41,.2); }
.ts-prize-pod--silver { background: rgba(148,163,184,.04); border-color: rgba(148,163,184,.14); }
.ts-prize-pod--bronze { background: rgba(205,127,50,.04); border-color: rgba(205,127,50,.14); }
.ts-prize-pod__medal { font-size: 28px; line-height: 1; }
.ts-prize-pod__place { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .5px; }
.ts-prize-pod--gold   .ts-prize-pod__place { color: var(--ts-gold); }
.ts-prize-pod--silver .ts-prize-pod__place { color: #94a3b8; }
.ts-prize-pod--bronze .ts-prize-pod__place { color: #cd7f32; }
.ts-prize-pod__val { font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: rgba(255,255,255,.6); }
.ts-prize-pod--gold   .ts-prize-pod__val { font-size: 28px; color: var(--ts-gold); text-shadow: 0 0 20px rgba(240,180,41,.3); }
.ts-prize-pod--silver .ts-prize-pod__val { color: #94a3b8; }
.ts-prize-pod--bronze .ts-prize-pod__val { color: #cd7f32; }

.ts-timeline { padding: 6px 8px 8px; }
.ts-timeline__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  transition: background .12s;
  position: relative;
}
.ts-timeline__row:hover { background: rgba(255,255,255,.03); }
.ts-timeline__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
}
.ts-timeline__label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4); flex: 1; }
.ts-timeline__val { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); }

.ts-fill-bar { display: flex; align-items: center; gap: 10px; }
.ts-fill-bar__track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.ts-fill-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ts-blue), #60a5fa);
  border-radius: 3px;
  transition: width .5s ease;
  box-shadow: 0 0 8px rgba(34,90,235,.4);
}
.ts-fill-bar__label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); white-space: nowrap; }

.ts-slots-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
}
.ts-slots-pill--ok   { color: var(--ts-green); background: rgba(57,229,128,.08); border-color: rgba(57,229,128,.25); }
.ts-slots-pill--warn { color: #fb923c; background: rgba(251,146,60,.08); border-color: rgba(251,146,60,.25); }
.ts-slots-pill--full { color: #f87171; background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.25); }

.ts-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  padding: 16px 20px 20px;
}
.ts-team-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.ts-team-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); transform: translateY(-2px); }
.ts-team-card--winner { border-color: rgba(240,180,41,.3) !important; background: rgba(240,180,41,.04) !important; }
.ts-team-card--more {
  color: rgba(255,255,255,.35);
  font-size: 18px;
  font-weight: 800;
  background: rgba(255,255,255,.02) !important;
  justify-content: center;
  cursor: pointer;
}
.ts-team-card--more:hover { background: rgba(255,255,255,.05) !important; color: rgba(255,255,255,.7); }
.ts-team-card__av {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,.5);
  overflow: hidden;
}
.ts-team-card__av img { width: 100%; height: 100%; object-fit: contain; }
.ts-team-card__name { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); line-height: 1.3; }
.ts-team-card__crown { position: absolute; top: 6px; right: 8px; font-size: 12px; }
.ts-team-card__seed { position: absolute; top: 6px; left: 8px; font-size: 9px; font-weight: 800; color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); padding: 1px 5px; border-radius: 4px; }

.ts-description {
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
}

.ts-rules-preview { padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.ts-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.5);
}
.ts-rule-item__num {
  min-width: 20px; height: 20px;
  border-radius: 5px;
  background: rgba(34,90,235,.12);
  border: 1px solid rgba(34,90,235,.2);
  font-size: 9px;
  font-weight: 900;
  color: rgba(91,173,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ts-rules-more {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.2);
  cursor: pointer;
  padding: 6px 4px;
  transition: color .15s;
  text-align: left;
  font-family: inherit;
  letter-spacing: .2px;
}
.ts-rules-more:hover { color: rgba(91,173,255,.8); }

.ts-bracket-wrap { overflow-x: auto; padding-bottom: 20px; }
.ts-bracket { display: flex; min-width: max-content; }
.ts-bracket-round { min-width: 220px; display: flex; flex-direction: column; }
.ts-bracket-round__hd {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.015);
  text-align: center;
}
.ts-bracket-round__matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  padding: 12px 8px;
  gap: 8px;
}
.ts-bracket-match {
  background: var(--ts-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.ts-bracket-match:hover { border-color: rgba(255,255,255,.15); box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.ts-bracket-match--live { border-color: rgba(255,61,61,.3) !important; }
.ts-bracket-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  min-height: 38px;
}
.ts-bracket-team:last-child { border-bottom: none; }
.ts-bracket-team__av {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; color: rgba(255,255,255,.4);
  flex-shrink: 0; overflow: hidden;
}
.ts-bracket-team__av img { width:100%; height:100%; object-fit:contain; }
.ts-bracket-team__name { font-size: 12px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.6); }
.ts-bracket-team__score { font-size: 14px; font-weight: 800; color: rgba(255,255,255,.28); min-width: 18px; text-align: right; flex-shrink: 0; }
.ts-bracket-team--win  .ts-bracket-team__name  { color: var(--ts-green); font-weight: 800; }
.ts-bracket-team--lose .ts-bracket-team__name  { color: rgba(255,255,255,.22); }
.ts-bracket-team--win  .ts-bracket-team__score { color: var(--ts-green); }

.ts-bracket { gap: 0; }
.ts-bracket-round { position: relative; padding-right: 32px; }
.ts-bracket-round:last-child { padding-right: 0; }

.ts-bracket-round:not(:last-child) .ts-bracket-match { position: relative; }

.ts-bracket-round:not(:last-child) .ts-bracket-match:nth-child(odd)::after {
  content: '';
  position: absolute;
  right: -32px;
  top: 50%;
  width: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  border-right: 1px solid rgba(255,255,255,.14);
  
  height: calc(50% + 4px);
  pointer-events: none;
}

.ts-bracket-round:not(:last-child) .ts-bracket-match:nth-child(even)::after {
  content: '';
  position: absolute;
  right: -32px;
  bottom: 50%;
  width: 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  border-right: 1px solid rgba(255,255,255,.14);
  height: calc(50% + 4px);
  pointer-events: none;
}

.ts-bracket-round:not(:first-child) .ts-bracket-match::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  pointer-events: none;
}

.ts-parts-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}
.ts-parts-head strong { color: #fff; }
.ts-parts-grid-full { display: flex; flex-direction: column; gap: 4px; }
.ts-part-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.ts-part-row:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); }
.ts-part-row--winner { background: rgba(240,180,41,.04); border-color: rgba(240,180,41,.18) !important; }
.ts-part-row__info { flex: 1; min-width: 0; }
.ts-part-row__name { font-size: 13px; font-weight: 700; display: block; }
.ts-part-row__sub { font-size: 11px; color: rgba(255,255,255,.28); display: block; margin-top: 1px; }
.ts-part-row__seed { font-size: 10px; font-weight: 800; color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); padding: 2px 7px; border-radius: 5px; }

.ts-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px 0;
  background: rgba(240,180,41,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--ts-radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.ts-podium__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ts-podium__av {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: rgba(255,255,255,.5);
  overflow: hidden;
}
.ts-podium__av img { width:100%; height:100%; object-fit:contain; }
.ts-podium__av--gold   { border-color: var(--ts-gold); box-shadow: 0 0 24px rgba(240,180,41,.3); }
.ts-podium__av--silver { border-color: #94a3b8; }
.ts-podium__av--bronze { border-color: #cd7f32; }
.ts-podium__name { font-size: 12px; font-weight: 700; text-align: center; max-width: 100px; color: rgba(255,255,255,.8); }
.ts-podium__place { font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.ts-podium__place--gold   { color: var(--ts-gold); background: rgba(240,180,41,.12); }
.ts-podium__place--silver { color: #94a3b8; background: rgba(148,163,184,.1); }
.ts-podium__place--bronze { color: #cd7f32; background: rgba(205,127,50,.1); }
.ts-podium__pedestal { border-radius: 8px 8px 0 0; width: 80px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-bottom: none; }
.ts-podium__pedestal--gold   { background: rgba(240,180,41,.08); border-color: rgba(240,180,41,.18); }

.ts-results-table { display: flex; flex-direction: column; gap: 4px; }
.ts-result-row {
  display: grid;
  grid-template-columns: 100px 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ts-card);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s;
}
.ts-result-row:hover { border-color: rgba(255,255,255,.12); }
.ts-result-row__stage { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.22); text-transform: uppercase; letter-spacing: .4px; }
.ts-result-row__team { font-size: 13px; font-weight: 700; }
.ts-result-row__team--r { text-align: right; }
.ts-result-row__team.win  { color: var(--ts-green); font-weight: 800; }
.ts-result-row__team.lose { color: rgba(255,255,255,.25); }
.ts-result-row__score { font-size: 18px; font-weight: 900; text-align: center; color: rgba(255,255,255,.3); letter-spacing: -1px; white-space: nowrap; }

.ts-rules-full {
  background: var(--ts-card);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--ts-radius);
  padding: 28px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,.55);
  white-space: pre-wrap;
}

.ts-stream-featured { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.ts-stream-embed-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--ts-radius);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,.5);
}
.ts-stream-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.ts-stream-info { display: flex; flex-direction: column; gap: 10px; }
.ts-stream-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ts-stream-viewers { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); }
.ts-stream-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.4; }
.ts-stream-ch { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: #9147ff; text-decoration: none; transition: color .15s; }
.ts-stream-ch:hover { color: #b780ff; }
.ts-stream-others-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.25); margin-top: 4px; }
.ts-stream-others { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-stream-switch {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.ts-stream-switch:hover { background: rgba(255,255,255,.1); color: #fff; }

.ts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 20px;
  text-align: center;
  color: rgba(255,255,255,.2);
}
.ts-empty svg { opacity: .2; }
.ts-empty__title { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.3); }
.ts-empty__sub { font-size: 13px; color: rgba(255,255,255,.2); }

.ts-aside {
  position: sticky;
  top: calc(var(--nav-h, 56px) + 60px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ts-cta {
  background: #0f0e1a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(34,90,235,.1), 0 20px 60px rgba(0,0,0,.5);
}
.ts-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ts-blue) 40%, #60a5fa 60%, transparent 100%);
}
.ts-cta__glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--ts-blue);
  opacity: .07;
  filter: blur(50px);
  pointer-events: none;
}
.ts-cta__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ts-cta__eyebrow {
  font-size: 9px; font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ts-blue);
  opacity: .9;
  position: relative;
  z-index: 1;
}
.ts-cta__deadline { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.3); position: relative; z-index: 1; }
.ts-cta__title {
  font-size: 19px; font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.2px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.ts-cta__slots {
  display: flex;
  justify-content: space-between;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.38);
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.ts-cta__slots strong { font-weight: 800; color: #fff; }
.ts-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  background: var(--ts-blue);
  color: #fff;
  font-size: 13px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity .15s, transform .12s;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(34,90,235,.3);
  position: relative; z-index: 1;
  font-family: inherit;
  margin-bottom: 8px;
}
.ts-cta__btn:hover { opacity: .88; transform: translateY(-1px); }
.ts-cta__btn--ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
  color: rgba(255,255,255,.7);
}
.ts-cta__btn--disabled { background: rgba(255,255,255,.05); color: rgba(255,255,255,.25); box-shadow: none; pointer-events: none; border: 1px solid rgba(255,255,255,.06); }
.ts-cta__registered-badge {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px;
  background: rgba(57,229,128,.12);
  border: 1px solid rgba(57,229,128,.25);
  border-radius: 10px;
  font-size: 13px; font-weight: 800;
  color: var(--ts-green);
  position: relative; z-index: 1;
}
.ts-cta__timer {
  display: flex; align-items: center; gap: 7px;
  margin-top: 4px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.28);
  position: relative; z-index: 1;
}
.ts-cta__timer svg { opacity: .4; flex-shrink: 0; }
.ts-cta__timer span { font-weight: 800; color: rgba(255,255,255,.55); font-size: 12px; }

.ts-info-card {
  background: var(--ts-card);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--ts-radius);
  overflow: hidden;
  transition: border-color .2s;
}
.ts-info-card:hover { border-color: rgba(255,255,255,.1); }
.ts-info-card__hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ts-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.ts-info-row:last-child { border-bottom: none; }
.ts-info-row--prize { padding: 14px 16px; }
.ts-info-row__label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.32); }
.ts-info-row__val { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); }
.ts-info-row__val--gold { font-size: 20px; font-weight: 900; color: var(--ts-gold); letter-spacing: -.5px; }

.ts-mini-parts { padding: 4px; display: flex; flex-direction: column; gap: 1px; }
.ts-mini-part {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.7);
  transition: background .1s;
  cursor: default;
}
.ts-mini-part:hover { background: rgba(255,255,255,.04); }
.ts-mini-part--more {
  justify-content: center;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 8px;
}
.ts-mini-part--more:hover { color: rgba(255,255,255,.6); background: rgba(255,255,255,.04); }
.ts-mini-part__av {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900; color: rgba(255,255,255,.4);
  flex-shrink: 0; overflow: hidden;
}
.ts-mini-part__av img { width:100%; height:100%; object-fit:contain; }
.ts-mini-part__seed { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.2); margin-left: auto; }

.ts-float-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15,14,26,.95);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 12px 16px 12px 22px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(34,90,235,.15);
  white-space: nowrap;
}
.ts-float-cta--visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.ts-float-cta__info strong { display: block; font-size: 13px; font-weight: 800; color: #fff; }
.ts-float-cta__info span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4); }
.ts-float-cta__btn {
  display: flex; align-items: center;
  padding: 9px 20px;
  background: var(--ts-blue);
  color: #fff;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .3px;
  border-radius: 40px;
  text-decoration: none;
  transition: opacity .15s;
  box-shadow: 0 4px 16px rgba(34,90,235,.4);
}
.ts-float-cta__btn:hover { opacity: .88; }

@media (max-width: 1100px) {
  .ts-body { grid-template-columns: 1fr; padding: 24px; }
  .ts-aside { position: static; }
}
@media (max-width: 900px) {
  .ts-hero { grid-template-columns: 1fr; min-height: auto; }
  .ts-hero__art { height: 260px; }
  .ts-hero__art-overlay { background: linear-gradient(to bottom, transparent 40%, rgba(10,9,18,1) 100%); }
  .ts-hero__panel { border-left: none; border-top: none; background: rgba(10,9,18,.98); }
  .ts-hero__panel-inner { padding: 28px 24px 36px; }
  .ts-nav { padding: 0 20px; }
  .ts-body { padding: 20px 16px; }
  .ts-stream-featured { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ts-hero__name { font-size: 28px; }
  .ts-hero__stats { gap: 8px; }
  .ts-stat { padding: 10px 12px; }
  .ts-stat__val { font-size: 20px; }
  .ts-match__body { gap: 8px; padding: 8px 12px 6px; }
  .ts-match__name { font-size: 13px; }
  .ts-score-n { font-size: 22px; }
  .ts-teams-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .ts-prize-podium { flex-direction: column; align-items: center; }
  .ts-prize-pod--first { transform: none; }
  .ts-float-cta { left: 16px; right: 16px; transform: translateY(20px); }
  .ts-float-cta--visible { transform: translateY(0); }
}

[data-theme="light"] .ts-hero__panel {
  background: var(--surface);
  border-left-color: var(--border);
  box-shadow: -4px 0 24px rgba(37,48,49,.06);
}
[data-theme="light"] .ts-hero__art-overlay {
  background: linear-gradient(to right,
    rgba(240,244,245,.05) 0%,
    rgba(240,244,245,.5)  65%,
    var(--surface) 100%);
}
[data-theme="light"] .ts-breadcrumb {
  color: var(--muted);
}
[data-theme="light"] .ts-breadcrumb a {
  color: var(--muted);
}
[data-theme="light"] .ts-breadcrumb a:hover {
  color: var(--text);
}
[data-theme="light"] .ts-hero__name {
  color: var(--text);
}
[data-theme="light"] .ts-hero__logo {
  background: var(--surface2);
  border-color: var(--border2);
}
[data-theme="light"] .ts-hero__badges .ts-badge {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .ts-stat {
  background: var(--surface2);
  border-color: var(--border2);
}
[data-theme="light"] .ts-stat__val {
  color: var(--text);
}
[data-theme="light"] .ts-stat__val em {
  color: var(--muted);
}
[data-theme="light"] .ts-stat--gold .ts-stat__val {
  color: #b45309;
}
[data-theme="light"] .ts-stat__lbl {
  color: var(--muted);
}
[data-theme="light"] .ts-hero__cta {
  border-top-color: var(--border);
}
[data-theme="light"] .ts-hero__cta-timer {
  color: var(--muted);
}
[data-theme="light"] .ts-hero__cta-timer strong {
  color: var(--text);
}
[data-theme="light"] .ts-hero__cta-slots {
  color: var(--muted);
}
[data-theme="light"] .ts-hero__cta-bar {
  background: var(--surface3);
}
[data-theme="light"] .ts-hero__cta-full {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--muted);
}
[data-theme="light"] .ts-hero__cta-registered {
  background: rgba(22,163,74,.08);
  border-color: rgba(22,163,74,.25);
  color: var(--success);
}

[data-theme="light"] .ts-nav {
  background: rgba(var(--surface), .96);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom-color: var(--border);
}
[data-theme="light"] .ts-nav__item {
  color: var(--muted);
}
[data-theme="light"] .ts-nav__item:hover {
  color: var(--text2);
}
[data-theme="light"] .ts-nav__item.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}
[data-theme="light"] .ts-nav__item svg {
  opacity: .6;
}
[data-theme="light"] .ts-nav__item.active svg {
  opacity: 1;
}
[data-theme="light"] .ts-nav__count {
  background: var(--surface3);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .ts-nav__count--live {
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.2);
  color: var(--danger);
}

[data-theme="light"] .ts-match {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .ts-match:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .ts-match__stage {
  color: var(--muted);
}
[data-theme="light"] .ts-match__name {
  color: var(--text);
}
[data-theme="light"] .ts-match__name--win {
  color: var(--success);
}
[data-theme="light"] .ts-match__name--lose {
  color: var(--muted);
  opacity: 1;
}
[data-theme="light"] .ts-score-n {
  color: var(--muted);
}
[data-theme="light"] .ts-score-n--win {
  color: var(--text);
}
[data-theme="light"] .ts-score-vs {
  color: var(--muted2);
}
[data-theme="light"] .ts-match__sep {
  color: var(--border3);
}
[data-theme="light"] .ts-match__fmt {
  background: var(--surface2);
  color: var(--muted);
}
[data-theme="light"] .ts-section__hd {
  color: var(--muted);
}
[data-theme="light"] .ts-section__hd::after {
  background: var(--border);
}

[data-theme="light"] .ts-story-section {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .ts-story-section:hover {
  border-color: var(--border2);
}
[data-theme="light"] .ts-story-section__hd {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--surface2) 40%, transparent);
}
[data-theme="light"] .ts-story-section__icon {
  background: var(--primary-light);
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary);
}
[data-theme="light"] .ts-story-section__label {
  color: var(--muted);
}
[data-theme="light"] .ts-story-section__title {
  color: var(--text);
}
[data-theme="light"] .ts-prize-total {
  color: #b45309;
}

[data-theme="light"] .ts-prize-pod {
  background: var(--surface2);
  border-color: var(--border2);
}
[data-theme="light"] .ts-prize-pod--gold {
  background: rgba(180,83,9,.06);
  border-color: rgba(180,83,9,.2);
}
[data-theme="light"] .ts-prize-pod--silver {
  background: rgba(100,116,139,.06);
  border-color: rgba(100,116,139,.2);
}
[data-theme="light"] .ts-prize-pod--bronze {
  background: rgba(120,53,15,.05);
  border-color: rgba(120,53,15,.18);
}
[data-theme="light"] .ts-prize-pod__place {
  color: var(--muted);
}
[data-theme="light"] .ts-prize-pod--gold   .ts-prize-pod__place { color: #b45309; }
[data-theme="light"] .ts-prize-pod--silver .ts-prize-pod__place { color: #64748b; }
[data-theme="light"] .ts-prize-pod--bronze .ts-prize-pod__place { color: #92400e; }
[data-theme="light"] .ts-prize-pod__val {
  color: var(--text2);
}
[data-theme="light"] .ts-prize-pod--gold   .ts-prize-pod__val { color: #b45309; text-shadow: none; }
[data-theme="light"] .ts-prize-pod--silver .ts-prize-pod__val { color: #64748b; }
[data-theme="light"] .ts-prize-pod--bronze .ts-prize-pod__val { color: #92400e; }

[data-theme="light"] .ts-timeline__row:hover {
  background: var(--surface2);
}
[data-theme="light"] .ts-timeline__dot {
  background: var(--border3);
  border-color: var(--border2);
}
[data-theme="light"] .ts-timeline__label {
  color: var(--muted);
}
[data-theme="light"] .ts-timeline__val {
  color: var(--text);
}

[data-theme="light"] .ts-fill-bar__track {
  background: var(--surface3);
}
[data-theme="light"] .ts-fill-bar__label {
  color: var(--muted);
}

[data-theme="light"] .ts-slots-pill--ok   { color: var(--success); background: var(--success-light); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
[data-theme="light"] .ts-slots-pill--warn { color: var(--warning); background: var(--warning-light); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
[data-theme="light"] .ts-slots-pill--full { color: var(--danger);  background: var(--danger-light);  border-color: color-mix(in srgb, var(--danger)  25%, transparent); }

[data-theme="light"] .ts-team-card {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .ts-team-card:hover {
  background: var(--surface3);
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .ts-team-card--winner {
  background: rgba(180,83,9,.05) !important;
  border-color: rgba(180,83,9,.2) !important;
}
[data-theme="light"] .ts-team-card--more {
  background: var(--surface2) !important;
  color: var(--muted);
}
[data-theme="light"] .ts-team-card--more:hover {
  background: var(--surface3) !important;
  color: var(--text2);
}
[data-theme="light"] .ts-team-card__av {
  background: var(--surface3);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .ts-team-card__name {
  color: var(--text);
}
[data-theme="light"] .ts-team-card__seed {
  color: var(--muted);
  background: var(--surface3);
}

[data-theme="light"] .ts-description {
  color: var(--text2);
}
[data-theme="light"] .ts-rule-item {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text2);
}
[data-theme="light"] .ts-rule-item__num {
  background: var(--primary-light);
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary);
}
[data-theme="light"] .ts-rules-more {
  color: var(--muted);
}
[data-theme="light"] .ts-rules-more:hover {
  color: var(--primary);
}
[data-theme="light"] .ts-rules-full {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text2);
}

[data-theme="light"] .ts-bracket-round__hd {
  background: var(--surface2);
  border-bottom-color: var(--border);
  color: var(--muted);
}
[data-theme="light"] .ts-bracket-match {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .ts-bracket-match:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .ts-bracket-team {
  border-bottom-color: var(--border);
}
[data-theme="light"] .ts-bracket-team__av {
  background: var(--surface2);
  color: var(--muted2);
}
[data-theme="light"] .ts-bracket-team__name {
  color: var(--text2);
}
[data-theme="light"] .ts-bracket-team--win  .ts-bracket-team__name  { color: var(--success); }
[data-theme="light"] .ts-bracket-team--lose .ts-bracket-team__name  { color: var(--muted); opacity: 1; }
[data-theme="light"] .ts-bracket-team__score {
  color: var(--muted);
}
[data-theme="light"] .ts-bracket-team--win  .ts-bracket-team__score { color: var(--success); }

[data-theme="light"] .ts-parts-head {
  color: var(--muted);
}
[data-theme="light"] .ts-parts-head strong {
  color: var(--text);
}
[data-theme="light"] .ts-part-row:hover {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .ts-part-row--winner {
  background: rgba(180,83,9,.04) !important;
  border-color: rgba(180,83,9,.18) !important;
}
[data-theme="light"] .ts-part-row__name {
  color: var(--text);
}
[data-theme="light"] .ts-part-row__sub {
  color: var(--muted);
}
[data-theme="light"] .ts-part-row__seed {
  background: var(--surface2);
  color: var(--muted);
}

[data-theme="light"] .ts-podium {
  background: rgba(180,83,9,.02);
  border-color: var(--border);
}
[data-theme="light"] .ts-podium__av {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .ts-podium__av--gold   { border-color: #b45309; box-shadow: 0 0 20px rgba(180,83,9,.2); }
[data-theme="light"] .ts-podium__av--silver { border-color: #64748b; }
[data-theme="light"] .ts-podium__av--bronze { border-color: #92400e; }
[data-theme="light"] .ts-podium__name {
  color: var(--text);
}
[data-theme="light"] .ts-podium__pedestal {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .ts-podium__pedestal--gold {
  background: rgba(180,83,9,.08);
  border-color: rgba(180,83,9,.2);
}
[data-theme="light"] .ts-result-row {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .ts-result-row:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .ts-result-row__stage {
  color: var(--muted);
}
[data-theme="light"] .ts-result-row__team {
  color: var(--text2);
}
[data-theme="light"] .ts-result-row__team.win  { color: var(--success); }
[data-theme="light"] .ts-result-row__team.lose { color: var(--muted); }
[data-theme="light"] .ts-result-row__score {
  color: var(--muted);
}

[data-theme="light"] .ts-cta {
  background: var(--surface);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}
[data-theme="light"] .ts-cta::before {
  background: linear-gradient(90deg, transparent 0%, var(--primary) 40%, color-mix(in srgb, var(--primary) 60%, var(--accent)) 60%, transparent 100%);
}
[data-theme="light"] .ts-cta__glow {
  background: var(--primary);
  opacity: .04;
}
[data-theme="light"] .ts-cta__eyebrow {
  color: var(--primary);
}
[data-theme="light"] .ts-cta__deadline {
  color: var(--muted);
}
[data-theme="light"] .ts-cta__title {
  color: var(--text);
}
[data-theme="light"] .ts-cta__slots {
  color: var(--muted);
}
[data-theme="light"] .ts-cta__slots strong {
  color: var(--text);
}
[data-theme="light"] .ts-cta__btn--ghost {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text2);
}
[data-theme="light"] .ts-cta__btn--disabled {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--muted);
}
[data-theme="light"] .ts-cta__registered-badge {
  background: var(--success-light);
  border-color: color-mix(in srgb, var(--success) 25%, transparent);
  color: var(--success);
}
[data-theme="light"] .ts-cta__timer {
  color: var(--muted);
}
[data-theme="light"] .ts-cta__timer span {
  color: var(--text2);
}

[data-theme="light"] .ts-info-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .ts-info-card:hover {
  border-color: var(--border2);
}
[data-theme="light"] .ts-info-card__hd {
  color: var(--muted2);
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--surface2) 50%, transparent);
}
[data-theme="light"] .ts-info-row {
  border-bottom-color: var(--border);
}
[data-theme="light"] .ts-info-row__label {
  color: var(--muted);
}
[data-theme="light"] .ts-info-row__val {
  color: var(--text);
}
[data-theme="light"] .ts-info-row__val--gold {
  color: #b45309;
}

[data-theme="light"] .ts-mini-part {
  color: var(--text2);
}
[data-theme="light"] .ts-mini-part:hover {
  background: var(--surface2);
}
[data-theme="light"] .ts-mini-part--more {
  color: var(--muted);
}
[data-theme="light"] .ts-mini-part--more:hover {
  color: var(--text2);
  background: var(--surface2);
}
[data-theme="light"] .ts-mini-part__av {
  background: var(--surface3);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .ts-mini-part__seed {
  color: var(--muted);
}

[data-theme="light"] .ts-empty {
  color: var(--muted);
}
[data-theme="light"] .ts-empty__title {
  color: var(--text2);
}
[data-theme="light"] .ts-empty__sub {
  color: var(--muted);
}

[data-theme="light"] .ts-stream-info .ts-stream-title {
  color: var(--text);
}
[data-theme="light"] .ts-stream-viewers {
  color: var(--muted);
}
[data-theme="light"] .ts-stream-others-label {
  color: var(--muted);
}
[data-theme="light"] .ts-stream-switch {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text2);
}
[data-theme="light"] .ts-stream-switch:hover {
  background: var(--surface3);
  color: var(--text);
}

[data-theme="light"] .ts-float-cta {
  background: var(--surface);
  border-color: var(--border2);
  box-shadow: var(--shadow-lg);
}
[data-theme="light"] .ts-float-cta__info strong {
  color: var(--text);
}
[data-theme="light"] .ts-float-cta__info span {
  color: var(--muted);
}

.content-left--tournament {
  padding-bottom: 0 !important;
  overflow-x: hidden;
}

.ts-cta--notice {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--ts-radius);
  padding: 18px 20px;
}
.ts-cta--live {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}
.ts-cta__eyebrow--warn {
  color: #fb923c;
  background: rgba(251, 146, 60, .1);
  border-color: rgba(251, 146, 60, .25);
}
.ts-cta__notice-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}
.ts-cta__notice-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}
.ts-cta__notice-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.ts-cta__notice-text strong {
  color: var(--text);
  font-weight: 800;
}

.ts-hero__cta--notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}
.ts-hero__cta--live {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.ts-hero__cta-notice-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.ts-hero__cta-notice-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.ts-hero__cta-notice-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

[data-theme="light"] .ts-cta--notice {
  background: var(--surface2);
  border-color: var(--border2);
}
[data-theme="light"] .ts-cta__notice-text {
  color: var(--muted);
}
[data-theme="light"] .ts-cta__notice-text strong {
  color: var(--text);
}
[data-theme="light"] .ts-hero__cta--notice {
  background: var(--surface2);
  border-color: var(--border2);
}
[data-theme="light"] .ts-hero__cta-notice-title { color: var(--text); }
[data-theme="light"] .ts-hero__cta-notice-sub   { color: var(--muted); }

.ts-cta__title--muted { opacity: .4; }

.ts-cta__team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.ts-cta__team-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.ts-cta__team-name-text {
  font-size: 14px;
  font-weight: 800;
}
.ts-cta__team-sub {
  font-size: 11px;
  opacity: .4;
}

.ts-cta__team-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.ts-cta__team-box-logo {
  width: 30px; height: 30px;
  border-radius: 7px;
  object-fit: contain;
  flex-shrink: 0;
}
.ts-cta__team-box-inner { min-width: 0; }
.ts-cta__team-box-name {
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-cta__team-box-sub {
  font-size: 10px;
  opacity: .4;
}

.ts-cta__slots-count { color: var(--ts-slots-col, #fff); }

.ts-dot--mr { margin-right: 5px; }

.ts-dot--sm { width: 5px; height: 5px; margin-left: 4px; box-shadow: none; animation: none; }

.ts-cta__notice-dim { opacity: .6; }

.ts-cta__registered-badge--mt { margin-top: 12px; }

[data-theme="light"] .ts-cta__team-box {
  background: rgba(0,0,0,.03);
  border-color: var(--border);
}
[data-theme="light"] .ts-cta__team-logo,
[data-theme="light"] .ts-cta__team-box-logo {
  background: var(--surface2);
  border-color: var(--border);
}

.tss-featured {
    display: grid;
    grid-template-columns: 1fr 300px;
    border-bottom: 1px solid var(--border);
}
.tss-embed-wrap {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
}
.tss-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.tss-meta {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid var(--border);
    background: var(--surface);
}
.tss-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tss-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .7px;
    color: #ef4444;
    background: rgba(239,68,68,.1);
    border-radius: 20px;
    padding: 3px 10px;
}
.tss-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: tssDotPulse 1.3s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes tssDotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .25; }
}
.tss-offline-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface2);
    padding: 3px 10px;
    border-radius: 20px;
}
.tss-main-badge {
    font-size: 11px;
    font-weight: 700;
    color: #d4a100;
    background: rgba(212,161,0,.1);
    padding: 3px 10px;
    border-radius: 20px;
}
.tss-viewers {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted2);
}
.tss-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.tss-ch-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #9147ff;
    text-decoration: none;
    transition: opacity .15s;
}
.tss-ch-link:hover { opacity: .75; }

.tss-sections {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.tss-section {}
.tss-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.tss-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted2);
}
.tss-section-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface2);
    padding: 1px 8px;
    border-radius: 20px;
}

.tss-cards {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tss-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    font: inherit;
    transition: background .15s, border-color .15s;
    text-align: left;
    width: 100%;
}
.tss-card:hover {
    background: var(--surface2);
    border-color: var(--border);
}
.tss-card--live {
    border-color: rgba(239,68,68,.2) !important;
    background: rgba(239,68,68,.04);
}
.tss-card--admin .tss-card-avatar {
    background: rgba(145,71,255,.1);
    border-color: rgba(145,71,255,.2);
}
.tss-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.tss-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tss-card-info {
    flex: 1;
    min-width: 0;
}
.tss-card-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tss-card-sub {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.tss-card-main {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #d4a100;
    margin-top: 3px;
}
.tss-card-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tss-card-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: tssDotPulse 1.3s ease-in-out infinite;
}
.tss-card-views {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted2);
}
.tss-card-offline {
    font-size: 11px;
    color: var(--muted);
}
.tss-card-switch-icon {
    color: var(--muted);
    flex-shrink: 0;
}
.tss-card:hover .tss-card-switch-icon { color: var(--text); }

.tss-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.tss-badge--sm {
    font-size: 10px;
    padding: 2px 8px;
    margin-top: 3px;
}
.tss-badge--official {
    color: var(--primary);
    background: var(--primaryLight);
}
.tss-badge--site {
    color: var(--accent);
    background: var(--accentLight);
}
.tss-badge--sponsor {
    color: #a78bfa;
    background: rgba(124,58,237,.15);
}

.tss-card--official_caster { border-left: 3px solid var(--primary) !important; }
.tss-card--site_team        { border-left: 3px solid var(--accent)  !important; }
.tss-card--sponsor          { border-left: 3px solid #7C3AED        !important; }

[data-theme="light"] .tss-badge--sponsor {
    color: #6d28d9;
    background: rgba(109,40,217,.12);
}
[data-theme="light"] .tss-card--sponsor {
    border-left-color: #6d28d9 !important;
}

@media (max-width: 760px) {
    .tss-featured {
        grid-template-columns: 1fr;
    }
    .tss-meta {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 16px;
    }
}







.mp2-stream-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 8px;
}

.mp2-stream-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #080a0f;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .2s;
}
.mp2-stream-inner:hover {
  border-color: rgba(255,255,255,.16);
}
.mp2-stream-inner:hover .mp2-stream-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 40px rgba(147,51,234,.7);
}

.mp2-stream-inner--playing {
  cursor: default;
  border-color: rgba(147,51,234,.3);
}
.mp2-stream-inner--playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.mp2-stream-inner--playing .mp2-stream-play-btn,
.mp2-stream-inner--playing .mp2-stream-poster,
.mp2-stream-inner--playing .mp2-stream-poster-overlay,
.mp2-stream-inner--playing .mp2-stream-poster-ph,
.mp2-stream-inner--playing .mp2-stream-badges {
  display: none;
}

.mp2-stream-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.mp2-stream-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
.mp2-stream-poster-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0f1a 0%, #1a1235 50%, #0d1a2e 100%);
}
.mp2-stream-poster-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(147,51,234,.15) 0%, transparent 70%);
}

.mp2-stream-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.mp2-stream-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mp2-stream-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform .2s ease;
  pointer-events: none;
}
.mp2-stream-play-btn svg {
  width: 68px;
  height: 68px;
  color: #fff;
  filter: drop-shadow(0 4px 20px rgba(147,51,234,.7));
  background: linear-gradient(135deg, rgba(147,51,234,.85), rgba(91,33,182,.85));
  border-radius: 50%;
  padding: 18px;
  box-shadow: 0 4px 28px rgba(147,51,234,.5);
  transition: box-shadow .2s;
}
.mp2-stream-play-btn span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: .3px;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
  pointer-events: none;
}

@media (max-width: 900px) {
  .mp2-stream-block {
    padding: 0 20px 8px;
  }
  .mp2-stream-play-btn svg {
    width: 52px;
    height: 52px;
    padding: 14px;
  }
  .mp2-stream-play-btn span {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .mp2-stream-block {
    padding: 0 12px 8px;
  }
  .mp2-stream-inner {
    border-radius: 8px;
  }
  .mp2-stream-play-btn svg {
    width: 44px;
    height: 44px;
    padding: 12px;
  }
  .mp2-stream-live-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}

.content-wrap--full {
  display: block !important;
  grid-template-columns: none !important;
  padding-top: var(--nav-h);
}
.content-wrap--full .content-left {
  width: 100%;
  min-width: 0;
  border-right: none !important;
}

a.match-row {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.mpage-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  font-family: var(--font, 'Manrope', sans-serif);
}

.mpage-hero__bg { position: absolute; inset: 0; z-index: 0; }

.mpage-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.5) 40%, rgba(0,0,0,.3) 80%, transparent);
}
.mpage-hero__glow {
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  border-radius: 50%;
  background: rgba(34,90,235,.22);
  filter: blur(130px);
  pointer-events: none;
}
.mpage-hero__glow--live {
  background: rgba(57,229,128,.18);
  animation: mpage-glow-pulse 2.5s ease-in-out infinite;
}
@keyframes mpage-glow-pulse {
  0%,100% { opacity:.8; }
  50%     { opacity:1.0; }
}
.mpage-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,6,14,.15) 0%, rgba(7,6,14,.6) 50%, rgba(7,6,14,.98) 100%);
}

.mpage-hero__inner {
  position: relative; z-index: 1;
  max-width: 1160px; width: 100%;
  margin: 0 auto;
  padding: 0 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mpage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.mpage-breadcrumb a { color: inherit; text-decoration: none; transition: color .15s; }
.mpage-breadcrumb a:hover { color: rgba(255,255,255,.7); }

.mpage-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mpage-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
}
.mpage-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #39e580;
  box-shadow: 0 0 10px #39e580, 0 0 20px rgba(57,229,128,.4);
  animation: mpage-pulse 1.4s infinite;
  flex-shrink: 0;
}
@keyframes mpage-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.5; transform:scale(.75); }
}
.mpage-meta-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 4px 11px;
  border-radius: 6px;
}

.mpage-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.mpage-team {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mpage-team--right { flex-direction: row-reverse; }

.mpage-team__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mpage-team__info--right { text-align: right; align-items: flex-end; }

.mpage-team__short {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}
.mpage-team__name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mpage-team__result {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 6px;
  align-self: flex-start;
}
.mpage-team--right .mpage-team__result { align-self: flex-end; }
.mpage-team__result--win  { color: #39e580; background: rgba(57,229,128,.12); }
.mpage-team__result--lose { color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }

.mpage-team--lose { opacity: .45; }

.mpage-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 140px;
}
.mpage-score__n {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -3px;
  color: rgba(255,255,255,.25);
  line-height: 1;
}
.mpage-score__n--win { color: #fff; }
.mpage-score__sep {
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,.15);
  line-height: 1;
  margin: -8px 4px;
}

.mpage-score { flex-direction: column; }
.mpage-score > .mpage-score__n,
.mpage-score > .mpage-score__sep {
  display: inline;
}

.mpage-score {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.mpage-score__time {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1;
}
.mpage-score__date {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
}
.mpage-score__vs {
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,.2);
  letter-spacing: 2px;
}
.mpage-score__stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #f87171;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .15s;
  width: 100%;
  justify-content: center;
}
.mpage-score__stream-btn:hover { background: rgba(239,68,68,.2); }

.mpage-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  font-family: var(--font, 'Manrope', sans-serif);
}

.mpage-section { margin-bottom: 24px; }

.mpage-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mpage-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.05);
}

.mpage-maps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mpage-map-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #13111d;
  border: 1px solid rgba(255,255,255,.07);
  min-width: 120px;
  flex: 1;
  transition: border-color .2s, transform .15s;
}
.mpage-map-card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-1px); }
.mpage-map-card--live { border-color: rgba(57,229,128,.3) !important; }
.mpage-map-card__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.3) saturate(1.5);
}
.mpage-map-card__content {
  position: relative; z-index: 1;
  padding: 16px 14px;
  text-align: center;
}
.mpage-map-card__name {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}
.mpage-map-card__score {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mpage-stats-table {
  background: #13111d;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}
.mpage-stats-table__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
}
.mpage-win-badge {
  font-size: 10px;
  font-weight: 800;
  color: #39e580;
  background: rgba(57,229,128,.12);
  border: 1px solid rgba(57,229,128,.25);
  padding: 2px 9px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.mpage-stats-table table {
  width: 100%;
  border-collapse: collapse;
}
.mpage-stats-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mpage-stats-table th {
  padding: 10px 14px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.3);
}
.mpage-stats-table th:first-child { text-align: left; padding-left: 18px; }
.mpage-stats-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .12s;
}
.mpage-stats-table tbody tr:last-child { border-bottom: none; }
.mpage-stats-table tbody tr:hover { background: rgba(255,255,255,.025); }
.mpage-stats-table td {
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.mpage-stats-table td:first-child { text-align: left; padding-left: 18px; }
.mpage-stats-table td.stat-k { color: #39e580; font-weight: 900; }
.mpage-stats-table td.stat-d { color: #f87171; font-weight: 700; }
.mpage-stats-table td.stat-a { color: rgba(255,255,255,.45); }
.mpage-stats-table td.stat-r { color: #f0b429; font-weight: 800; }

.mpage-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.mpage-nearby-card {
  position: relative;
  background: #13111d;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, transform .15s;
  overflow: hidden;
}
.mpage-nearby-card:hover {
  border-color: rgba(255,255,255,.13);
  transform: translateY(-1px);
}
.mpage-nearby-card--live { border-color: rgba(57,229,128,.25) !important; }
.mpage-nearby-card__live-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #39e580, transparent);
  background-size: 200%;
  animation: mpage-sweep 2s linear infinite;
}
@keyframes mpage-sweep {
  0%   { background-position: 100% }
  100% { background-position: -100% }
}
.mpage-nearby-card__stage {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.mpage-nearby-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
}
.mpage-nearby-card__teams .win  { color: #39e580; }
.mpage-nearby-card__teams .lose { color: rgba(255,255,255,.3); }
.mpage-nearby-card__score-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,.5);
}
.mpage-nearby-card__score-wrap .sep { color: rgba(255,255,255,.2); }
.mpage-nearby-card__vs {
  font-size: 12px;
  color: rgba(255,255,255,.2);
  letter-spacing: 1px;
}
.mpage-nearby-card__time {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  font-weight: 600;
}

.mpage-aside {
  position: sticky;
  top: calc(var(--nav-h, 56px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mpage-card {
  background: #13111d;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.mpage-card:hover { border-color: rgba(255,255,255,.1); }
.mpage-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.35);
}
.mpage-card__header svg { opacity: .5; }

.mpage-info-rows { padding: 6px 0 10px; }
.mpage-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 12px;
}
.mpage-info-row:last-child { border-bottom: none; }
.mpage-info-row > span:first-child {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  font-weight: 600;
  flex-shrink: 0;
}
.mpage-info-row > span:last-child,
.mpage-info-row > a {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-align: right;
  text-decoration: none;
}
.mpage-info-row > a { color: var(--primary); }

.mpage-stream-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px;
  color: #f87171;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s;
}
.mpage-stream-link:hover { background: rgba(239,68,68,.18); }

.mpage-aside-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s;
}
.mpage-aside-match:hover { background: rgba(255,255,255,.04); }
.mpage-aside-match__teams {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .mpage-body { grid-template-columns: 1fr; padding: 24px 24px; }
  .mpage-aside { position: static; }
}
@media (max-width: 900px) {
  .mpage-hero__inner { padding: 0 24px 32px; }
  .mpage-scoreboard { gap: 16px; }
  .mpage-team__short { font-size: 24px; }
  .mpage-score__n { font-size: 48px; }
  .mpage-score__sep { font-size: 36px; }
  .mpage-body { padding: 20px 16px; }
}
@media (max-width: 640px) {
  .mpage-hero { min-height: 260px; }
  .mpage-hero__inner { padding: 0 16px 24px; gap: 14px; }
  .mpage-scoreboard { grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .mpage-team__short { font-size: 18px; }
  .mpage-team__name { display: none; }
  .mpage-score__n { font-size: 36px; letter-spacing: -2px; }
  .mpage-score__sep { font-size: 28px; }
  .mpage-nearby-grid { grid-template-columns: 1fr 1fr; }
}

[data-theme="light"] .mpage-hero__glow { background: rgba(41,120,160,.18); }
[data-theme="light"] .mpage-hero__glow--live { background: rgba(34,197,94,.15); }
[data-theme="light"] .mpage-hero__grid {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}
[data-theme="light"] .mpage-meta-chip {
  color: var(--muted);
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.1);
}
[data-theme="light"] .mpage-map-card { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .mpage-map-card:hover { border-color: var(--border3); }
[data-theme="light"] .mpage-stats-table { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .mpage-stats-table__head { border-bottom-color: var(--border2); }
[data-theme="light"] .mpage-stats-table thead tr { border-bottom-color: var(--border2); }
[data-theme="light"] .mpage-stats-table tbody tr { border-bottom-color: var(--border); }
[data-theme="light"] .mpage-card { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .mpage-card__header { border-bottom-color: var(--border); }
[data-theme="light"] .mpage-info-row { border-bottom-color: var(--border); }
[data-theme="light"] .mpage-nearby-card { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .mpage-nearby-card:hover { border-color: var(--border2); }
[data-theme="light"] .mpage-stream-link {
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.2);
  color: #dc2626;
}

:root {
  --mp2-bg:       #07060e;
  --mp2-surface:  #100f1a;
  --mp2-surface2: #161424;
  --mp2-border:   rgba(255,255,255,.07);
  --mp2-live:     #39e580;
  --mp2-radius:   14px;
}

.mp2-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.mp2-hero-bg {
  position: absolute; inset: 0;
}
.mp2-hero-game-img {
  position: absolute; inset: -10px;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center top;
  filter: brightness(.32) saturate(1.4) blur(1px);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.mp2-hero:hover .mp2-hero-game-img {
  transform: scale(1.08);
}
.mp2-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.4) 30%, rgba(0,0,0,.2) 80%, transparent);
}
.mp2-hero-glow {
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34,90,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.mp2-hero-glow--live {
  background: radial-gradient(ellipse, rgba(57,229,128,.15) 0%, transparent 70%);
  animation: mp2GlowPulse 2.5s ease-in-out infinite;
}
@keyframes mp2GlowPulse { 0%,100%{opacity:.7}50%{opacity:1} }
.mp2-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,6,14,.0) 0%, rgba(7,6,14,.55) 55%, rgba(7,6,14,1) 100%);
}

.mp2-hero-inner {
  width:100%;
  position: relative; z-index: 2;
  margin: 0 auto;
  padding: 0 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mp2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding-top: 32px;
}
.mp2-breadcrumb a { color: inherit; text-decoration: none; transition: color .15s; }
.mp2-breadcrumb a:hover { color: rgba(255,255,255,.65); }

.mp2-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mp2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
}
.mp2-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #39e580;
  box-shadow: 0 0 8px #39e580, 0 0 18px rgba(57,229,128,.35);
  animation: mp2Dot 1.4s infinite;
  flex-shrink: 0;
}
@keyframes mp2Dot { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.7)} }
.mp2-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  padding: 4px 11px;
  border-radius: 6px;
}

.mp2-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.mp2-team {
  display: flex;
  align-items: center;
  gap: 18px;
  transition: opacity .2s;
}
.mp2-team--right { flex-direction: row-reverse; }
.mp2-team--lose  { opacity: .38; }
.mp2-team__logo  {
  width: 80px; height: 80px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp2-team__logo img { width: 100%; height: 100%; object-fit: contain; }
.mp2-team__logo--letter {
  font-size: 30px;
  font-weight: 900;
  color: rgba(255,255,255,.3);
}
.mp2-team__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mp2-team--right .mp2-team__info { text-align: right; align-items: flex-end; }
.mp2-team__short {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}
.mp2-team__name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.mp2-team__result {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  align-self: flex-start;
}
.mp2-team--right .mp2-team__result { align-self: flex-end; }
.mp2-result--win  { color: #39e580; background: rgba(57,229,128,.12); border: 1px solid rgba(57,229,128,.25); }
.mp2-result--lose { color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }

.mp2-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 130px;
}
.mp2-score-nums {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.mp2-score-num {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -3px;
  color: rgba(255,255,255,.22);
  line-height: 1;
}
.mp2-score-num--win { color: #fff; }
.mp2-score-sep {
  font-size: 44px;
  font-weight: 900;
  color: rgba(255,255,255,.12);
  letter-spacing: -2px;
}
.mp2-score-time {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1;
}
.mp2-score-date {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  text-align: center;
}
.mp2-score-vs {
  font-size: 26px;
  font-weight: 900;
  color: rgba(255,255,255,.18);
  letter-spacing: 3px;
}

.mp2-tabs-wrap {
  position: sticky;
  top: var(--nav-h, 56px);
  z-index: 99;
  background: rgba(7,6,14,.92);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mp2-tabs-inner {
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mp2-tabs-inner::-webkit-scrollbar { display: none; }
.mp2-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 48px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  text-decoration: none;
  position: relative;
}
.mp2-tab:hover { color: rgba(255,255,255,.7); }
.mp2-tab--active {
  color: #fff;
  border-bottom-color: var(--primary, #225AEB);
}
.mp2-tab-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.mp2-tab-live-pill .mp2-live-dot {
  width: 5px; height: 5px;
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
}
.mp2-tab--stream.mp2-tab--active .mp2-tab-live-pill {
  background: rgba(57,229,128,.12);
  border-color: rgba(57,229,128,.3);
  color: #39e580;
}
.mp2-tab--stream.mp2-tab--active .mp2-tab-live-pill .mp2-live-dot {
  background: #39e580;
  box-shadow: 0 0 6px #39e580;
}
.mp2-tab-count {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
  padding: 1px 7px;
  border-radius: 10px;
}

.mp2-body {
  margin: 0 auto;
  padding: 28px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.mp2-body--full { grid-template-columns: 1fr; }
.mp2-main {}
.mp2-aside {
  position: sticky;
  top: calc(var(--nav-h, 56px) + 52px + 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp2-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: rgba(255,255,255,.25);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mp2-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.05);
}

.mp2-maps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.mp2-map-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mp2-surface);
  border: 1px solid var(--mp2-border);
  min-width: 110px;
  flex: 1;
  transition: border-color .18s, transform .15s;
}
.mp2-map-card:hover { border-color: rgba(255,255,255,.12); transform: translateY(-1px); }
.mp2-map-card--live { border-color: rgba(57,229,128,.28)!important; }
.mp2-map-card__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.28) saturate(1.6);
  background-image: var(--bg-img);
}
.mp2-map-card__c {
  position: relative; z-index: 1;
  padding: 14px 12px;
  text-align: center;
}
.mp2-map-card__name { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.6); margin-bottom: 7px; }
.mp2-map-card__score { font-size: 22px; font-weight: 900; letter-spacing: -1px; display: flex; align-items: center; justify-content: center; gap: 5px; }

.mp2-stats-block { margin-bottom: 16px; }
.mp2-stats-block__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--mp2-surface);
  border: 1px solid var(--mp2-border);
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  font-size: 13px;
  font-weight: 800;
}
.mp2-win-pill {
  font-size: 10px;
  font-weight: 800;
  color: #39e580;
  background: rgba(57,229,128,.1);
  border: 1px solid rgba(57,229,128,.25);
  padding: 2px 9px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.mp2-stats-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mp2-surface);
  border: 1px solid var(--mp2-border);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.mp2-stats-table thead tr { border-bottom: 1px solid rgba(255,255,255,.05); }
.mp2-stats-table th {
  padding: 10px 14px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.25);
}
.mp2-stats-table th:first-child { text-align: left; padding-left: 18px; }
.mp2-stats-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.04); transition: background .12s; }
.mp2-stats-table tbody tr:last-child { border-bottom: none; }
.mp2-stats-table tbody tr:hover { background: rgba(255,255,255,.02); }
.mp2-stats-table td { padding: 11px 14px; text-align: center; font-size: 13px; color: rgba(255,255,255,.55); }
.mp2-stats-table td:first-child { text-align: left; padding-left: 18px; }
.stat-k { color: #39e580!important; font-weight: 900!important; }
.stat-d { color: #f87171!important; font-weight: 700!important; }
.stat-a { color: rgba(255,255,255,.38)!important; }
.stat-r { color: #fbbf24!important; font-weight: 800!important; }

.mp2-roster-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mp2-roster-team { background: var(--mp2-surface); border: 1px solid var(--mp2-border); border-radius: var(--mp2-radius); overflow: hidden; }
.mp2-roster-team__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mp2-roster-team__name { font-size: 13px; font-weight: 800; color: #fff; }
.mp2-roster-team__count { font-size: 11px; color: rgba(255,255,255,.3); font-weight: 600; }
.mp2-roster-team__players { padding: 8px; display: flex; flex-direction: column; gap: 2px; }

.mp2-player-card {
  padding: 10px 12px;
  border-radius: 9px;
  transition: background .12s;
  cursor: default;
}
.mp2-player-card:hover { background: rgba(255,255,255,.04); }
.mp2-player-card__ava {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg,#1e3a8a,#3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
}
.mp2-player-card__ava img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mp2-player-card__tw-dot {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #9147ff;
  border: 2px solid var(--mp2-surface);
  box-shadow: 0 0 6px rgba(145,71,255,.6);
}
.mp2-player-card__nick { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp2-player-card__role { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .5px; }
.mp2-player-card__twitch-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #9147ff;
  text-decoration: none;
  opacity: .75;
  transition: opacity .15s;
}
.mp2-player-card__twitch-link:hover { opacity: 1; }

.mp2-stream-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
.mp2-stream-player-wrap {
  background: #000;
  border-radius: var(--mp2-radius);
  overflow: hidden;
  border: 1px solid var(--mp2-border);
  aspect-ratio: 16/9;
  position: relative;
}
.mp2-stream-player-wrap iframe { width: 100%; height: 100%; display: block; border: none; }
.mp2-stream-no-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 320px;
  color: rgba(255,255,255,.3);
  text-align: center;
  padding: 24px;
}
.mp2-chat-wrap {
  background: var(--mp2-surface);
  border: 1px solid var(--mp2-border);
  border-radius: var(--mp2-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
}
.mp2-chat-wrap iframe { flex: 1; border: none; width: 100%; }

.mp2-streamer-list { display: flex; flex-direction: column; gap: 2px; }
.mp2-streamer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all .15s;
}
.mp2-streamer-btn:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
.mp2-streamer-btn--active {
  background: rgba(145,71,255,.08)!important;
  border-color: rgba(145,71,255,.25)!important;
}
.mp2-streamer-btn__ava {
  width: 34px; height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg,#4a1d96,#8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.mp2-streamer-btn__ava img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mp2-streamer-btn__nick { font-size: 13px; font-weight: 700; color: #fff; }
.mp2-streamer-btn__chan { font-size: 11px; color: #9147ff; font-weight: 600; }
.mp2-streamer-btn__online {
  margin-left: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #39e580;
  box-shadow: 0 0 6px rgba(57,229,128,.5);
  flex-shrink: 0;
}

.mp2-card {
  background: var(--mp2-surface);
  border: 1px solid var(--mp2-border);
  border-radius: var(--mp2-radius);
  overflow: hidden;
}
.mp2-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.3);
}
.mp2-card__head svg { opacity: .45; flex-shrink: 0; }
.mp2-info-rows { padding: 6px 0 8px; }
.mp2-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 10px;
}
.mp2-info-row:last-child { border-bottom: none; }
.mp2-info-row__key { font-size: 11px; color: rgba(255,255,255,.28); font-weight: 600; flex-shrink: 0; }
.mp2-info-row__val { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); text-align: right; }
.mp2-info-row__val a { color: var(--primary, #225AEB); text-decoration: none; }

.mp2-aside-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  transition: background .12s;
}
.mp2-aside-match:hover { background: rgba(255,255,255,.04); }
.mp2-aside-match__teams {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  min-width: 0;
}
.mp2-aside-match__teams .vs { color: rgba(255,255,255,.2); font-size: 10px; font-weight: 600; }
.mp2-aside-match__teams .win { color: #39e580; }
.mp2-aside-match__teams .lose { color: rgba(255,255,255,.25); }

.mp2-nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 8px; }
.mp2-nearby-card {
  position: relative;
  background: var(--mp2-surface);
  border: 1px solid var(--mp2-border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .18s, transform .15s;
  overflow: hidden;
}
.mp2-nearby-card:hover { border-color: rgba(255,255,255,.12); transform: translateY(-1px); }
.mp2-nearby-card--live { border-color: rgba(57,229,128,.22)!important; }
.mp2-nearby-card__live-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #39e580, transparent);
  background-size: 200%;
  animation: mp2Sweep 2s linear infinite;
}
@keyframes mp2Sweep { 0%{background-position:100%}100%{background-position:-100%} }
.mp2-nearby-card__stage { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: .5px; }
.mp2-nearby-card__teams { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.65); text-transform: uppercase; }
.mp2-nearby-card__teams .win { color: #39e580; }
.mp2-nearby-card__teams .lose { color: rgba(255,255,255,.25); }
.mp2-nearby-card__score { display: flex; align-items: center; gap: 3px; font-size: 15px; font-weight: 900; color: rgba(255,255,255,.4); }
.mp2-nearby-card__score .sep { color: rgba(255,255,255,.15); }
.mp2-nearby-card__vs { font-size: 11px; color: rgba(255,255,255,.2); }
.mp2-nearby-card__time { font-size: 11px; color: rgba(255,255,255,.3); font-weight: 600; }

.mp2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  color: rgba(255,255,255,.2);
  text-align: center;
}
.mp2-empty svg { opacity: .3; }
.mp2-empty__title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.3); }

@media (max-width: 1100px) {
  .mp2-body { grid-template-columns: 1fr; padding: 24px; }
  .mp2-aside { position: static; }
  .mp2-stream-layout { grid-template-columns: 1fr; }
  .mp2-chat-wrap { height: 400px; }
}
@media (max-width: 800px) {
  .mp2-hero-inner { padding: 0 20px 28px; }
  .mp2-tabs-inner { padding: 0 20px; }
  .mp2-body { padding: 20px 16px; }
  .mp2-scoreboard { gap: 10px; }
  .mp2-team__short { font-size: 22px; }
  .mp2-score-num { font-size: 48px; letter-spacing: -2px; }
  .mp2-roster-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mp2-team__name { display: none; }
  .mp2-team__logo { width: 56px; height: 56px; border-radius: 12px; }
  .mp2-score-num { font-size: 38px; }
  .mp2-score-sep { font-size: 32px; }
  .mp2-nearby-grid { grid-template-columns: 1fr 1fr; }
}

.mp2-badge--upcoming { color: #60a5fa; background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.3); }
.mp2-badge--live     { color: #39e580; background: rgba(57,229,128,.12); border: 1px solid rgba(57,229,128,.3); }
.mp2-badge--finished { color: #a78bfa; background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.3); }
.mp2-badge--cancelled{ color: #6b7280; background: rgba(107,114,128,.1); border: 1px solid rgba(107,114,128,.2); }

.match-av2 { width: var(--av-sz, 80px); height: var(--av-sz, 80px); border-radius: var(--av-r, 14px); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.match-av2__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.match-av2--letter { display: flex; align-items: center; justify-content: center; font-size: var(--av-fs, 24px); font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--av-from), var(--av-to)); }

.mp2-player-card__inner { display: flex; align-items: center; gap: 12px; }
.mp2-player-card__inner--rev { flex-direction: row-reverse; }
.mp2-player-card__info { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.mp2-player-card__info--end { align-items: flex-end; }

.mp2-mscore--win { color: #39e580; font-weight: 900; }
.mp2-mscore--dim { color: rgba(255,255,255,.45); font-weight: 700; }
.mp2-mscore--sep { color: rgba(255,255,255,.15); }

.mp2-mb24 { margin-bottom: 24px; }
.mp2-section-more { font-size: 11px; font-weight: 700; color: var(--primary, #225AEB); text-decoration: none; text-transform: none; letter-spacing: 0; margin-left: auto; }
.mp2-team-name--win { color: #39e580; }
.mp2-team-name--dim { color: rgba(255,255,255,.7); }

.mp2-stat-player { display: flex; align-items: center; gap: 10px; }
.mp2-stat-player__photo { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; border: 1px solid rgba(255,255,255,.08); }
.mp2-stat-player__ava { width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: rgba(255,255,255,.3); flex-shrink: 0; }
.mp2-stat-player__nick { font-weight: 600; }

.mp2-card--twitch { border-color: rgba(145,71,255,.25); }
.mp2-card__head--dim { color: rgba(255,255,255,.5); }
.mp2-twitch-label { color: #9147ff; }
.mp2-live-dot--twitch { background: #9147ff; box-shadow: 0 0 8px rgba(145,71,255,.5); animation: none; }
.mp2-ms-auto { margin-left: auto; }
.mp2-card__body { padding: 8px; }
.mp2-card__body--sm { padding: 6px; }
.mp2-card__count { margin-left: auto; font-size: 10px; color: rgba(255,255,255,.2); flex-shrink: 0; }

.mp2-aside-score { font-size: 13px; font-weight: 900; color: rgba(255,255,255,.35); flex-shrink: 0; }
.mp2-aside-score--live { color: #39e580; }

.mp2-roster-empty { font-size: 12px; color: rgba(255,255,255,.2); }
.mp2-empty--sm { padding: 20px; }

.mp2-stream-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 40px; }
.mp2-stream-selector { margin-bottom: 20px; }
.mp2-streamer-list--wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.mp2-streamer-btn--inline { width: auto; flex: 0 1 auto; }
.mp2-streamer-info { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; background: var(--mp2-surface); border: 1px solid var(--mp2-border); border-radius: var(--mp2-radius); }
.mp2-streamer-info__ava { width: 44px; height: 44px; font-size: 18px; }
.mp2-streamer-info__name { font-size: 15px; font-weight: 800; color: #fff; }
.mp2-streamer-info__link { font-size: 12px; color: #9147ff; font-weight: 600; margin-top: 2px; }
.mp2-streamer-info__link a { color: #9147ff; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.mp2-streamer-info__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mp2-badge--on-air { color: #39e580; background: rgba(57,229,128,.1); border: 1px solid rgba(57,229,128,.25); }
.mp2-twitch-open-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px; background: rgba(145,71,255,.15); border: 1px solid rgba(145,71,255,.3); color: #a78bfa; font-size: 12px; font-weight: 800; text-decoration: none; }
.mp2-twitch-open-btn:hover { background: rgba(145,71,255,.25); }
.mp2-chat-header { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .6px; }
.mp2-chat-header .mp2-live-dot { width: 6px; height: 6px; }
.mp2-card--mt { margin-top: 12px; }





.dep-hero {
  background: linear-gradient(135deg, rgba(251,191,36,.08) 0%, rgba(245,158,11,.04) 100%);
  border-bottom: 1px solid rgba(251,191,36,.12);
  padding: 40px 0 32px;
}
.dep-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.dep-balance-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dep-balance-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dep-balance-val {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.gcoin-icon-lg { flex-shrink: 0; }
.dep-currency {
  font-size: 20px;
  font-weight: 700;
  color: #fbbf24;
  align-self: flex-end;
  padding-bottom: 4px;
}
.dep-balance-hint {
  font-size: 13px;
  color: var(--muted);
}

.dep-flash {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dep-flash--js {
  position: fixed;
  top: 72px;
  right: 24px;
  max-width: 340px;
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.08);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: depFlashIn .2s ease;
}
@keyframes depFlashIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.dep-flash--ok  { color: #4ade80; }
.dep-flash--err { color: #f87171; }

.dep-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.dep-section {}
.dep-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.dep-section-title svg { color: var(--muted); }

.dep-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--muted);
  font-size: 13px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.shop-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.shop-card:hover { border-color: rgba(251,191,36,.25); transform: translateY(-2px); }
.shop-card--sold { opacity: .6; }
.shop-card--sold:hover { transform: none; border-color: rgba(255,255,255,.07); }

.shop-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.03);
}
.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.shop-card-sold-badge {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #f87171;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.shop-card-body {
  padding: 12px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.shop-card-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.shop-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.shop-card-stock {
  font-size: 11px;
  color: var(--muted);
}
.shop-card-stock strong { color: #fbbf24; }

.shop-card-footer {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shop-card-price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 900;
  color: #fbbf24;
}

.shop-buy-btn {
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1200;
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}
.shop-buy-btn:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.shop-buy-btn--disabled {
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor: not-allowed;
}

.dep-txlist {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
}
.dep-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.dep-tx:last-child { border-bottom: none; }
.dep-tx:hover { background: rgba(255,255,255,.02); }

.dep-tx-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dep-tx-icon--in  { background: rgba(74,222,128,.1); color: #4ade80; }
.dep-tx-icon--out { background: rgba(248,113,113,.1); color: #f87171; }

.dep-tx-info { flex: 1; min-width: 0; }
.dep-tx-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dep-tx-comment { font-weight: 400; color: var(--muted2); }
.dep-tx-date    { font-size: 11px; color: var(--muted); margin-top: 2px; }

.dep-tx-thumb {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.dep-tx-amount {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}
.dep-tx-amount--in  { color: #4ade80; }
.dep-tx-amount--out { color: #f87171; }
.dep-tx-currency    { font-size: 11px; font-weight: 600; opacity: .7; margin-left: 2px; }

.dep-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  backdrop-filter: blur(4px);
}
.dep-modal {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px 28px 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.dep-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.dep-modal-body {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 22px;
}
.dep-modal-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fbbf24;
  font-weight: 800;
}
.dep-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.dep-modal-cancel {
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--muted2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dep-modal-ok {
  padding: 9px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #1a1200;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .15s;
}
.dep-modal-ok:hover:not(:disabled) { opacity: .9; }
.dep-modal-ok:disabled { opacity: .5; cursor: not-allowed; }

.user-chip-bal {
  font-size: 11px;
  color: #fbbf24 !important;
  font-weight: 700;
}

@media (max-width: 640px) {
  .dep-balance-val { font-size: 30px; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .dep-tx { padding: 11px 14px; }
}

[data-theme="light"] .dep-balance-val { color: var(--text); }
[data-theme="light"] .dep-hero {
  background: linear-gradient(135deg, rgba(188,171,121,.1) 0%, rgba(188,171,121,.04) 100%);
  border-bottom-color: rgba(188,171,121,.2);
}
[data-theme="light"] .shop-card {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .shop-card:hover { border-color: rgba(188,171,121,.35); }
[data-theme="light"] .shop-card-name { color: var(--text); }
[data-theme="light"] .dep-txlist { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .dep-tx { border-bottom-color: var(--border); }
[data-theme="light"] .dep-tx:hover { background: color-mix(in srgb,var(--primary) 3%,transparent); }
[data-theme="light"] .dep-tx-label { color: var(--text); }
[data-theme="light"] .dep-modal {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .dep-modal-title { color: var(--text); }
[data-theme="light"] .dep-flash--js {
  background: var(--surface);
  border-color: var(--border);
}




@keyframes wltSpin { to { transform: rotate(360deg); } }
@keyframes wltOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(.97); }
}
@keyframes wltCardShine {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}
@keyframes wltFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wltFlashIn {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes wltPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.wlt-page {
  font-family: 'Manrope', sans-serif;
}

.wlt-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - var(--nav-h, 60px));
  align-items: start;
}

.wlt-sidebar {
  position: sticky;
  top: var(--nav-h, 60px);
  height: calc(100vh - var(--nav-h, 60px));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 20px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.wlt-sidebar::-webkit-scrollbar { width: 4px; }
.wlt-sidebar::-webkit-scrollbar-track { background: transparent; }
.wlt-sidebar::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

.wlt-sidebar .wlt-card {
  width: 100%;
  min-width: 0;
  height: 180px;
}

.wlt-sb-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 6px 4px;
}

.wlt-sb-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s;
}
.wlt-sb-stat:hover { background: var(--surface2); }

.wlt-sb-stat-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.wlt-sb-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex: 1;
}

.wlt-sb-stat-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.wlt-sb-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wlt-sb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 11px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.wlt-sb-btn:hover { opacity: .88; transform: translateY(-1px); }

.wlt-sb-btn--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,.25);
}
.wlt-sb-btn--green {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text2);
}
.wlt-sb-btn--green:hover { background: var(--surface2); }

.wlt-sb-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wlt-sb-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.wlt-sb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.wlt-sb-row:last-child { border-bottom: none; }

.wlt-sb-row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted2);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wlt-sb-row-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.wlt-main {
  padding: 0px;
  min-width: 0;
  animation: wltFadeUp .4s ease both;
}

.wlt-card {
  position: relative;
  width: 300px;
  min-width: 260px;
  height: 180px;
  border-radius: 20px;
  padding: 20px 22px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg,
    rgba(30,25,10,.97) 0%,
    rgba(18,15,4,.97) 40%,
    rgba(38,28,7,.97) 100%
  );
  border: 1px solid rgba(251,191,36,.2);
  box-shadow:
    0 0 0 1px rgba(251,191,36,.06),
    0 20px 60px rgba(0,0,0,.5),
    0 0 80px rgba(251,191,36,.06) inset;
  flex-shrink: 0;
  animation: wltFadeUp .5s ease both;
}
.wlt-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(253,230,138,.06) 0%, transparent 50%, rgba(245,158,11,.03) 100%);
  border-radius: inherit; pointer-events: none;
}
.wlt-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(253,230,138,.6) 30%, rgba(251,191,36,.8) 50%, rgba(253,230,138,.6) 70%, transparent 100%);
}
.wlt-card-shine {
  position: absolute; top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.04) 50%, transparent 70%);
  animation: wltCardShine 6s ease-in-out infinite;
  animation-delay: 2s;
}
.wlt-card-top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.wlt-card-label { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(253,230,138,.55); }
.wlt-card-balance { position: relative; z-index: 1; }
.wlt-card-balance-label { font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(253,230,138,.5); margin-bottom: 3px; }
.wlt-card-balance-val { display: flex; align-items: baseline; gap: 5px; }
.wlt-card-amount { font-size: 30px; font-weight: 900; color: #fff; letter-spacing: -.02em; line-height: 1; }
.wlt-card-currency { font-size: 13px; font-weight: 700; color: #fbbf24; padding-bottom: 1px; }
.wlt-card-footer { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.wlt-card-user { display: flex; align-items: center; gap: 8px; }
.wlt-card-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(251,191,36,.3); }
.wlt-card-avatar--letter { background: rgba(251,191,36,.15); color: #fbbf24; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.wlt-card-username { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.65); }

.wlt-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 8px;
}

.wlt-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}

.wlt-action-btn-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.wlt-action-btn:hover .wlt-action-btn-icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.wlt-action-btn-icon--blue  { background: rgba(96,165,250,.1);  border-color: rgba(96,165,250,.2);  color: #60a5fa; }
.wlt-action-btn-icon--green { background: rgba(74,222,128,.1);  border-color: rgba(74,222,128,.2);  color: #4ade80; }
.wlt-action-btn-icon--gold  { background: rgba(251,191,36,.1);  border-color: rgba(251,191,36,.2);  color: #fbbf24; }
.wlt-action-btn-icon--muted { background: rgba(255,255,255,.05);border-color: rgba(255,255,255,.1); color: var(--muted2); }

.wlt-action-btn:hover .wlt-action-btn-icon--blue  { background: rgba(96,165,250,.18);  border-color: rgba(96,165,250,.35); }
.wlt-action-btn:hover .wlt-action-btn-icon--green { background: rgba(74,222,128,.18);  border-color: rgba(74,222,128,.35); }
.wlt-action-btn:hover .wlt-action-btn-icon--gold  { background: rgba(251,191,36,.18);  border-color: rgba(251,191,36,.35); }
.wlt-action-btn:hover .wlt-action-btn-icon--muted { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.15); }

.wlt-action-btn-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted2);
  transition: color .15s;
}
.wlt-action-btn:hover .wlt-action-btn-label { color: #fff; }

.wlt-stats {
  display: none;
}

.wlt-stat { display: flex; align-items: center; gap: 10px; flex: 1; }
.wlt-stat-sep { width: 1px; height: 32px; background: var(--border2); margin: 0 16px; flex-shrink: 0; }

.wlt-stat-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wlt-stat-icon--up      { background: rgba(74,222,128,.1); color: #4ade80; }
.wlt-stat-icon--down    { background: rgba(248,113,113,.1); color: #f87171; }
.wlt-stat-icon--neutral { background: rgba(255,255,255,.06); color: var(--muted); }

.wlt-stat-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.wlt-stat-val { font-size: 15px; font-weight: 900; color: var(--text); }
.wlt-stat-val span { font-size: 10px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.wlt-stat-val--green { color: #4ade80; }
.wlt-stat-val--red   { color: #f87171; }

.wlt-flash {
  max-width: 1100px; margin: 14px auto 0; padding: 0 24px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  animation: wltFadeUp .25s ease;
}
.wlt-flash-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wlt-flash--ok  { color: #4ade80; }
.wlt-flash--ok  .wlt-flash-icon { background: rgba(74,222,128,.15); }
.wlt-flash--err { color: #f87171; }
.wlt-flash--err .wlt-flash-icon { background: rgba(248,113,113,.15); }

.wlt-flash--js {
  position: fixed; top: calc(var(--nav-h) + 12px); right: 20px; left: auto;
  max-width: 320px; margin: 0; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: wltFlashIn .2s ease;
  transition: opacity .3s ease;
}

.wlt-body {
  margin: 0 auto; padding: 24px 24px 0px;
  animation: wltFadeUp .4s .15s ease both;
}

.wlt-tabs {
  display: flex; gap: 4px; margin-bottom: 15px;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}

.wlt-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border: none; background: none; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--muted);
  border-radius: 10px 10px 0 0; position: relative;
  transition: color .15s; font-family: 'Manrope', sans-serif;
  margin-bottom: -1px;
}
.wlt-tab::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; border-radius: 2px 2px 0 0;
  background: transparent; transition: background .15s;
}
.wlt-tab:hover { color: var(--text2); }
.wlt-tab--active { color: var(--text); }
.wlt-tab--active::after { background: var(--accent); }

.wlt-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 20px; font-size: 10px; font-weight: 800;
  background: var(--accent-light); color: var(--accent);
}
.wlt-tab-badge--muted { background: var(--surface3); color: var(--muted2); }
.wlt-tab-content--hidden { display: none; }

.wlt-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 64px 0; text-align: center;
}
.wlt-empty-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted); margin-bottom: 4px;
}
.wlt-empty-title { font-size: 15px; font-weight: 800; color: var(--text); }
.wlt-empty-sub   { font-size: 13px; color: var(--muted); }

.wlt-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding:20px;
}

.wlt-shop-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s; position: relative;
}
.wlt-shop-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.wlt-shop-card--sold { opacity: .55; }
.wlt-shop-card--sold:hover { transform: none; border-color: rgba(255,255,255,.07); box-shadow: none; }

.wlt-shop-card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; background: rgba(255,255,255,.03); }
.wlt-shop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.wlt-shop-card:hover .wlt-shop-card-img img { transform: scale(1.03); }
.wlt-shop-card-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }

.wlt-shop-card-sold-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; }
.wlt-shop-card-sold-overlay span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #f87171; padding: 6px 12px; border: 1px solid rgba(248,113,113,.3); border-radius: 6px; background: rgba(248,113,113,.08); }

.wlt-shop-card-available-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }

.wlt-shop-card-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1;
}
.wlt-shop-card-video-thumb { display: none; }

.wlt-tryon-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 12px; border-radius: 9px;
  border: 1px solid rgba(167,139,250,.3);
  background: rgba(167,139,250,.08); color: #a78bfa;
  font-size: 11px; font-weight: 700; font-family: 'Manrope', sans-serif;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.wlt-tryon-btn:hover {
  background: rgba(167,139,250,.15);
  border-color: rgba(167,139,250,.5);
}
[data-theme="light"] .wlt-tryon-btn {
  border-color: rgba(124,58,237,.25);
  background: rgba(124,58,237,.06);
  color: #7c3aed;
}

.wlt-shop-card-anim-badge {
  position: absolute; bottom: 8px; left: 8px; z-index: 3;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  color: #a78bfa; font-size: 10px; font-weight: 800;
  border: 1px solid rgba(167,139,250,.3);
}

.wlt-shop-card-body { padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.wlt-shop-card-name { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.3; }
.wlt-shop-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.wlt-shop-card-stock { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.wlt-shop-card-stock strong { color: #fbbf24; }

.wlt-shop-card-footer { padding: 10px 16px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); }
.wlt-shop-card-price { display: flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 900; color: #fbbf24; }

.wlt-buy-btn {
  display: flex; align-items: center; gap: 5px; padding: 7px 14px;
  border-radius: 9px; border: none; cursor: pointer;
  font-size: 12px; font-weight: 800; font-family: 'Manrope', sans-serif;
  white-space: nowrap; transition: opacity .15s, transform .15s, box-shadow .15s;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #1a1200;
  box-shadow: 0 4px 14px rgba(245,158,11,.3);
}
.wlt-buy-btn:hover:not(:disabled) { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.4); }
.wlt-buy-btn--disabled { background: rgba(255,255,255,.06); color: var(--muted); cursor: not-allowed; box-shadow: none; }

.wlt-buy-btn--owned {
  background: rgba(74,222,128,.08);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.25);
  box-shadow: none;
  cursor: default;
}
.wlt-buy-btn--owned:hover { opacity: 1; transform: none; box-shadow: none; }

.wlt-buy-btn--unequip {
  background: rgba(248,113,113,.08);
  color: #f87171;
  border: 1px solid rgba(248,113,113,.2);
  box-shadow: none;
}
.wlt-buy-btn--unequip:hover:not(:disabled) { background: rgba(248,113,113,.14); transform: none; box-shadow: none; }

.wlt-shop-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.wlt-shop-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border2); background: var(--surface);
  color: var(--muted2); font-size: 12px; font-weight: 700;
  font-family: 'Manrope', sans-serif; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.wlt-shop-filter--active {
  background: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}
.wlt-shop-filter:hover:not(.wlt-shop-filter--active) {
  background: var(--surface2); color: var(--text);
}

.wlt-shop-card-frame-preview {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  --bg: var(--surface2);
}

.wlt-shop-pagination {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 20px; flex-wrap: wrap; border-top: 1px solid var(--border);
}
.wlt-pag-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--border2); background: var(--surface);
  color: var(--muted2); font-size: 13px; font-weight: 700;
  font-family: 'Manrope', sans-serif; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.wlt-pag-btn--active {
  background: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}
.wlt-pag-btn--disabled { opacity: .35; cursor: default; pointer-events: none; }
.wlt-pag-btn:hover:not(.wlt-pag-btn--active):not(.wlt-pag-btn--disabled) {
  background: var(--surface2); color: var(--text);
}
.wlt-pag-info {
  margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 600;
}
.wlt-pag-empty {
  padding: 32px 20px; font-size: 13px; color: var(--muted);
  font-weight: 600; text-align: center; width: 100%;
}

.wlt-hist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  margin-top: 14px;
  margin-left:20px;
}

.wlt-hist-filter {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.wlt-hist-filter:hover {
  background: var(--surface2);
  border-color: var(--border3);
  color: var(--text2);
}
.wlt-hist-filter--active {
  background: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}
[data-theme="light"] .wlt-hist-filter--active {
  color: var(--accent-h);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.wlt-txlist { background: var(--surface); margin:20px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }

.wlt-tx { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--border); transition: background .15s; }
.wlt-tx:last-child { border-bottom: none; }
.wlt-tx:hover { background: color-mix(in srgb, var(--primary) 3%, transparent); }

.wlt-tx-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.wlt-tx-img { width: 38px; height: 38px; object-fit: cover; border-radius: 12px; }

.wlt-tx-info { flex: 1; min-width: 0; }
.wlt-tx-label { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlt-tx-comment { font-weight: 500; color: var(--muted2); }
.wlt-tx-date { font-size: 11px; color: var(--muted); margin-top: 2px; }

.wlt-tx-amount { font-size: 14px; font-weight: 900; white-space: nowrap; flex-shrink: 0; display: flex; align-items: baseline; gap: 2px; }
.wlt-tx-sign { font-size: 13px; }
.wlt-tx-amount--in  { color: #4ade80; }
.wlt-tx-amount--out { color: #fbbf24; }
.wlt-tx-currency { font-size: 10px; font-weight: 700; opacity: .6; margin-left: 3px; }

.wlt-wr-badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  margin-left: 6px;
}
.wlt-wr-badge--pending  { background: rgba(251,191,36,.12); color: #fbbf24; }
.wlt-wr-badge--approved { background: rgba(74,222,128,.12); color: #4ade80; }
.wlt-wr-badge--rejected { background: rgba(248,113,113,.12); color: #f87171; }

.wlt-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 9990; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wlt-modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 24px; max-width: 360px; width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  animation: wltFadeUp .2s ease;
}
.wlt-modal--wide { max-width: 440px; }

.wlt-modal-header {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px;
}
.wlt-modal-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.2);
  display: flex; align-items: center; justify-content: center; color: #fbbf24; flex-shrink: 0;
}
.wlt-modal-title    { font-size: 16px; font-weight: 800; color: var(--text); }
.wlt-modal-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wlt-modal-close {
  margin-left: auto; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.wlt-modal-close:hover { background: var(--danger-light); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

.wlt-modal-body { font-size: 13px; color: var(--muted2); line-height: 1.6; margin-bottom: 18px; }
.wlt-modal-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; background: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 12px; margin-bottom: 20px;
}
.wlt-modal-price-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.wlt-modal-price-val { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 900; color: #fbbf24; }

.wlt-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.wlt-modal-cancel {
  padding: 10px 18px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--muted2); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Manrope', sans-serif; transition: background .15s, border-color .15s;
}
.wlt-modal-cancel:hover { background: var(--surface3); border-color: var(--border3); }

.wlt-modal-ok {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none; color: #1a1200; font-size: 13px; font-weight: 800;
  cursor: pointer; font-family: 'Manrope', sans-serif;
  transition: opacity .15s, transform .15s;
}
.wlt-modal-ok:hover:not(:disabled) { opacity: .92; transform: translateY(-1px); }
.wlt-modal-ok:disabled { opacity: .5; cursor: not-allowed; }

.wlt-modal-ok--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(59,130,246,.3); color: #fff;
}
.wlt-modal-ok--green {
  background: #2978a0;
  color: #fff;
}

.wlt-modal-form { display: flex; flex-direction: column; gap: 16px; }

.wlt-form-field { display: flex; flex-direction: column; gap: 6px; }
.wlt-form-label { font-size: 12px; font-weight: 700; color: var(--muted2); letter-spacing: .02em; }
.wlt-form-optional { font-weight: 500; color: var(--muted); }
.wlt-form-hint { font-size: 11px; color: var(--muted); }

.wlt-input-wrap { position: relative; display: flex; align-items: center; }
.wlt-input-icon {
  position: absolute; left: 12px; color: var(--muted);
  pointer-events: none; display: flex; align-items: center;
  flex-shrink: 0; line-height: 0; z-index: 1;
}
.wlt-input-icon svg { flex-shrink: 0; display: block; }
.wlt-input-suffix {
  position: absolute; right: 12px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  pointer-events: none;
}

.wlt-input {
  width: 100%; padding: 11px 30px 11px 30px !important;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 600;
  font-family: 'Manrope', sans-serif; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.wlt-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.wlt-input::placeholder { color: var(--muted); font-weight: 500; }
input[type=number].wlt-input { padding-right: 44px; }

.wlt-user-result {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px; padding: 10px 14px;
  margin-top: 4px;
}
.wlt-user-found {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.wlt-user-result-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.wlt-user-result-avatar--letter {
  background: rgba(251,191,36,.15); color: #fbbf24;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.wlt-user-not-found {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #f87171;
}

.wlt-withdraw-notice {
  display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
  background: rgba(251,191,36,.05); border: 1px solid rgba(251,191,36,.12);
  border-radius: 10px; font-size: 12px; color: rgba(251,191,36,.8);
  line-height: 1.5;
}
.wlt-pending-notice {
  display: flex; align-items: center; gap: 10px; padding: 16px;
  background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.15);
  border-radius: 12px; font-size: 13px; color: rgba(253,230,138,.8);
  line-height: 1.5; margin-top: 4px;
}

.wlt-form-error {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2);
  border-radius: 8px; font-size: 12px; font-weight: 600; color: #f87171;
}

.user-chip-bal { font-size: 11px; color: #fbbf24 !important; font-weight: 700; }

.wlt-shop-empty {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 8px 0 16px;
  animation: wltFadeUp .4s ease;
}

.wlt-shop-empty-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 32px 0 8px;
}
.wlt-shop-empty-icon {
  width: 80px; height: 80px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(251,191,36,.08) 0%, rgba(245,158,11,.04) 100%);
  border: 1px solid rgba(251,191,36,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(251,191,36,.6);
  margin-bottom: 4px;
  box-shadow: 0 0 40px rgba(251,191,36,.06);
}
.wlt-shop-empty-title { font-size: 18px; font-weight: 900; color: #fff; }
.wlt-shop-empty-sub   { font-size: 13px; color: var(--muted); max-width: 340px; line-height: 1.5; }

.wlt-earn-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wlt-earn-title {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.wlt-earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.wlt-earn-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .2s, transform .2s;
}
.wlt-earn-card:hover {
  border-color: var(--border3);
  transform: translateY(-2px);
}
.wlt-earn-card-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wlt-earn-card-body { flex: 1; min-width: 0; }
.wlt-earn-card-name { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.wlt-earn-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

.wlt-gcoin-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(251,191,36,.06) 0%, rgba(245,158,11,.03) 100%);
  border: 1px solid rgba(251,191,36,.14);
  border-radius: 16px;
}
.wlt-gcoin-info-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(251,191,36,.08);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.wlt-gcoin-info-text { flex: 1; }
.wlt-gcoin-info-title { font-size: 13px; font-weight: 800; color: #fbbf24; margin-bottom: 4px; }
.wlt-gcoin-info-desc  { font-size: 12px; color: rgba(253,230,138,.65); line-height: 1.55; }

@media (max-width: 1024px) {
  .wlt-layout { grid-template-columns: 240px 1fr; }
  .wlt-sidebar { padding: 20px 14px 28px; }
}

@media (max-width: 768px) {
  .wlt-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .wlt-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    overflow: visible;
  }
  .wlt-sidebar .wlt-card {
    width: 100%;
    max-width: 100%;
    height: 160px;
  }
  .wlt-sb-stats { flex-direction: row; flex-wrap: wrap; }
  .wlt-sb-stat { flex: 1; min-width: 120px; }
  .wlt-sb-actions { flex-direction: row; }
  .wlt-sb-btn { flex: 1; }
  .wlt-sb-section { flex: 1; min-width: 160px; }
  .wlt-main { padding: 20px 16px 40px; }
  .wlt-shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .wlt-tx { padding: 12px 14px; }
  .wlt-hero { padding: 28px 0 24px; }
  .wlt-card { width: 100%; max-width: 100%; }
  .wlt-quick-actions { gap: 10px; }
  .wlt-action-btn-icon { width: 46px; height: 46px; }
  .wlt-stats { flex-wrap: wrap; max-width: 100%; }
  .wlt-stat-sep { display: none; }
  .wlt-stat { flex: 1; min-width: 100px; }
}

@media (max-width: 480px) {
  .wlt-sidebar { padding: 16px 12px; gap: 10px; }
  .wlt-sidebar .wlt-card { height: 150px; }
  .wlt-card-amount { font-size: 26px; }
  .wlt-main { padding: 16px 12px 40px; }
  .wlt-shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wlt-stats { padding: 12px 14px; }
  .wlt-body { padding: 20px 14px 40px; }
  .wlt-hero-inner { padding: 0 14px; }
  .wlt-quick-actions { gap: 8px; }
  .wlt-tabs { gap: 2px; overflow-x: auto; }
  .wlt-tab { padding: 10px 12px; font-size: 12px; }
  .wlt-hist-filters { gap: 5px; }
  .wlt-hist-filter { padding: 5px 11px; font-size: 11px; }
}

.wlt-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.wlt-inv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.wlt-inv-card--equipped {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 4px 20px color-mix(in srgb, var(--accent) 10%, transparent);
}

.wlt-inv-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08);
  position: relative;
  transition: border-color .2s;
}

.wlt-inv-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #334155, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.wlt-inv-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.wlt-inv-equipped-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #fbbf24;
  color: #1a1200;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.wlt-inv-info { width: 100%; }
.wlt-inv-name  { font-size: 12px; font-weight: 800; color: var(--text); line-height: 1.3; }
.wlt-inv-rarity{ font-size: 10px; font-weight: 700; margin-top: 2px; }

.wlt-inv-btn {
  width: 100%;
  padding: 6px 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-light);
  color: var(--accent);
  transition: background .15s, opacity .15s;
}
.wlt-inv-btn:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.wlt-inv-btn:disabled { opacity: .5; cursor: default; }

.wlt-inv-btn--unequip {
  border-color: var(--border);
  background: var(--surface2);
  color: var(--muted2);
}
.wlt-inv-btn--unequip:hover { background: var(--surface3); }

.wlt-shop-card--equipped {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 4px 20px color-mix(in srgb, var(--accent) 10%, transparent);
}
.wlt-shop-card-equipped-overlay {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: #1a1200; background: #fbbf24;
  padding: 3px 8px; border-radius: 99px;
}
.wlt-buy-btn--unequip {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--muted2);
  box-shadow: none;
}
.wlt-buy-btn--unequip:hover:not(:disabled) {
  background: var(--surface3);
  border-color: var(--border3);
  box-shadow: none;
  opacity: 1;
}
.wlt-inv-video-preview {
  width: 100%; height: 100%; object-fit: cover;
}

[data-theme="light"] .wlt-hero {
  border-bottom-color: var(--border);
}
[data-theme="light"] .wlt-hero-orb--1 {
  background: radial-gradient(circle, rgba(188,171,121,.12) 0%, transparent 70%);
}
[data-theme="light"] .wlt-hero-orb--2 {
  background: radial-gradient(circle, rgba(41,120,160,.07) 0%, transparent 70%);
}

[data-theme="light"] .wlt-card {
  background: linear-gradient(135deg,
    rgba(30,25,10,.97) 0%,
    rgba(18,15,4,.97) 40%,
    rgba(38,28,7,.97) 100%
  );
  border-color: rgba(251,191,36,.2);
}

[data-theme="light"] .wlt-action-btn-icon--blue  { background: rgba(41,120,160,.1);  border-color: rgba(41,120,160,.2);  color: #2978A0; }
[data-theme="light"] .wlt-action-btn-icon--green { background: rgba(22,163,74,.1);   border-color: rgba(22,163,74,.2);   color: #16a34a; }
[data-theme="light"] .wlt-action-btn-icon--gold  { background: var(--accent-light);   border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
[data-theme="light"] .wlt-action-btn-icon--muted { background: var(--surface3); border-color: var(--border2); color: var(--muted); }

[data-theme="light"] .wlt-action-btn:hover .wlt-action-btn-icon--blue  { background: rgba(41,120,160,.18);  border-color: rgba(41,120,160,.4); }
[data-theme="light"] .wlt-action-btn:hover .wlt-action-btn-icon--green { background: rgba(22,163,74,.18);   border-color: rgba(22,163,74,.4); }
[data-theme="light"] .wlt-action-btn:hover .wlt-action-btn-icon--gold  { background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
[data-theme="light"] .wlt-action-btn:hover .wlt-action-btn-icon--muted { background: var(--surface4); border-color: var(--border3); }
[data-theme="light"] .wlt-action-btn:hover .wlt-action-btn-label { color: #222; }

[data-theme="light"] .wlt-stat-icon--neutral { background: var(--surface3); color: var(--muted); }

[data-theme="light"] .wlt-tab--active::after  { background: var(--accent); }
[data-theme="light"] .wlt-tab-badge           { background: var(--accent-light); color: var(--accent-h); }

[data-theme="light"] .wlt-modal-price-val     { color: var(--accent-h); }

[data-theme="light"] .wlt-shop-card-price     { color: var(--accent-h); }
[data-theme="light"] .wlt-shop-card-stock strong { color: var(--accent-h); }

[data-theme="light"] .wlt-tx-amount--out      { color: var(--accent-h); }

[data-theme="light"] .wlt-stat-val--green     { color: var(--success); }
[data-theme="light"] .wlt-stat-val--red       { color: var(--danger); }

[data-theme="light"] .wlt-inv-equipped-badge  { background: var(--accent); color: #fff; }

[data-theme="light"] .wlt-flash--ok  { color: var(--success); }
[data-theme="light"] .wlt-flash--err { color: var(--danger); }
[data-theme="light"] .wlt-flash--ok  .wlt-flash-icon { background: var(--success-light); }
[data-theme="light"] .wlt-flash--err .wlt-flash-icon { background: var(--danger-light); }

[data-theme="light"] .wlt-withdraw-notice {
  background: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-h);
}
[data-theme="light"] .wlt-pending-notice {
  background: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent-h);
}

[data-theme="light"] .wlt-form-hint strong { color: var(--accent-h); }

[data-theme="light"] .wlt-gcoin-info {
  background: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
[data-theme="light"] .wlt-gcoin-info-title { color: var(--accent-h); }
[data-theme="light"] .wlt-gcoin-info-desc  { color: var(--muted2); }
[data-theme="light"] .wlt-gcoin-info-icon  { background: color-mix(in srgb, var(--accent) 10%, transparent); }

[data-theme="light"] .wlt-shop-card-sold-overlay { background: rgba(0,0,0,.55); }




.cos-frame-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cos-frame-wrap .cos-frame-avatar {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-gold .cos-frame-avatar {
  border: 3px solid #fbbf24;
  box-shadow: 0 0 12px rgba(251,191,36,.6), 0 0 24px rgba(251,191,36,.3);
}

@keyframes cos-rainbow-spin {
  to { transform: rotate(360deg); }
}
.frame-rainbow {
  padding: 3px;
  background: transparent;
}
.frame-rainbow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    #ff0000, #ff7700, #ffff00, #00ff00,
    #0000ff, #8b00ff, #ff0000
  );
  animation: cos-rainbow-spin 3s linear infinite;
  z-index: 0;
}
.frame-rainbow::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg, #0f172a);
  z-index: 0;
}
.frame-rainbow .cos-frame-avatar { z-index: 2; }

@keyframes cos-electric-spin {
  to { transform: rotate(-360deg); }
}
@keyframes cos-electric-glow {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}
.frame-electric {
  padding: 3px;
}
.frame-electric::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    transparent 0deg,
    #60a5fa 60deg,
    #3b82f6 90deg,
    #818cf8 150deg,
    transparent 180deg,
    #60a5fa 240deg,
    transparent 360deg
  );
  animation: cos-electric-spin 2s linear infinite;
  z-index: 0;
}
.frame-electric::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg, #0f172a);
  z-index: 0;
  box-shadow: 0 0 14px rgba(96,165,250,.4) inset;
  animation: cos-electric-glow 1.5s ease infinite;
}
.frame-electric .cos-frame-avatar { z-index: 2; }

@keyframes cos-fire-spin {
  to { transform: rotate(360deg); }
}
.frame-fire {
  padding: 3px;
}
.frame-fire::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    #f97316, #ef4444, #fbbf24, #f97316,
    #dc2626, #fbbf24, #f97316
  );
  animation: cos-fire-spin 2.5s linear infinite;
  z-index: 0;
  filter: blur(1px);
}
.frame-fire::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg, #0f172a);
  z-index: 0;
}
.frame-fire .cos-frame-avatar {
  z-index: 2;
  box-shadow: 0 0 8px rgba(249,115,22,.5);
}

@keyframes cos-neon-pulse {
  0%, 100% {
    box-shadow: 0 0 6px #a78bfa, 0 0 14px #a78bfa, 0 0 28px #7c3aed;
  }
  50% {
    box-shadow: 0 0 4px #a78bfa, 0 0 8px #a78bfa, 0 0 16px #7c3aed;
  }
}
.frame-neon .cos-frame-avatar {
  border: 2px solid #a78bfa;
  animation: cos-neon-pulse 2s ease infinite;
}

@keyframes cos-galaxy-spin {
  to { transform: rotate(360deg); }
}
.frame-galaxy {
  padding: 3px;
}
.frame-galaxy::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    #1e1b4b, #4338ca, #7c3aed, #a855f7,
    #ec4899, #f43f5e, #fb7185,
    #7c3aed, #4338ca, #1e1b4b
  );
  animation: cos-galaxy-spin 5s linear infinite;
  z-index: 0;
}
.frame-galaxy::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg, #0f172a);
  z-index: 0;
}
.frame-galaxy .cos-frame-avatar { z-index: 2; }

@keyframes cos-emerald-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(16,185,129,.6), 0 0 20px rgba(16,185,129,.3); }
  50%       { box-shadow: 0 0 14px rgba(16,185,129,.9), 0 0 36px rgba(16,185,129,.5); }
}
.frame-emerald .cos-frame-avatar {
  border: 3px solid #10b981;
  animation: cos-emerald-glow 2.5s ease infinite;
}

@keyframes cos-legend-spin {
  to { transform: rotate(360deg); }
}
@keyframes cos-legend-scale {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}
.frame-legendary {
  padding: 4px;
  animation: cos-legend-scale 3s ease infinite;
}
.frame-legendary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    #fde68a, #fbbf24, #f59e0b, #d97706,
    #fbbf24, #fde68a, #fef3c7,
    #fbbf24, #d97706, #fde68a
  );
  animation: cos-legend-spin 4s linear infinite;
  z-index: 0;
}
.frame-legendary::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg, #0f172a);
  z-index: 0;
  box-shadow: 0 0 20px rgba(251,191,36,.4) inset;
}
.frame-legendary .cos-frame-avatar {
  z-index: 2;
  box-shadow: 0 0 16px rgba(251,191,36,.5);
}




.content-left:has(.matches-page) {
    border-right: none;
    padding-bottom: 0;
}

.matches-page {
    min-height: calc(100vh - var(--nav-h));
}

.mp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;   
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, rgba(255,255,255,.3));
  text-transform: uppercase;
  letter-spacing: .7px;
  flex-wrap: wrap;
}
.mp-breadcrumb__sep {
  opacity: .35;
  flex-shrink: 0;
}
.mp-breadcrumb__item {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
  white-space: nowrap;
}
a.mp-breadcrumb__item:hover { color: var(--text, rgba(255,255,255,.75)); }
.mp-breadcrumb__item--active {
  color: var(--text, rgba(255,255,255,.6));
  pointer-events: none;
}

.mp-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
    flex-wrap: wrap;
}
.mp-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
}

.mp-header-stats {
    display: flex;
    gap: 16px;
}
.mp-header-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mp-header-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary, #225aeb);
    line-height: 1;
}
.mp-header-stat-lbl {
    font-size: 9px;
    color: var(--muted, rgba(255,255,255,.3));
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}

.mp-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}
.mp-view-toggle {
    display: flex;
    background: var(--surface2, rgba(255,255,255,.05));
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 9px;
    overflow: hidden;
}
.mp-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--muted);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.mp-view-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.mp-view-btn--active {
    background: var(--primary);
    color: #fff;
}

.mp-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px 0;
}
.mp-status-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.mp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition: all .15s;
    white-space: nowrap;
}
.mp-tab:hover {
    background: var(--surface2, rgba(255,255,255,.05));
    color: var(--text);
}
.mp-tab--active {
    background: color-mix(in srgb,var(--primary) 12%,transparent);
    color: var(--primary);
    border-color: color-mix(in srgb,var(--primary) 25%,transparent);
}
.mp-tab--live.mp-tab--active {
    background: rgba(239,68,68,.1);
    color: #f87171;
    border-color: rgba(239,68,68,.25);
}
.mp-tab-cnt {
    font-size: 10px;
    font-weight: 800;
    background: rgba(255,255,255,.07);
    padding: 1px 6px;
    border-radius: 8px;
}
.mp-tab--active .mp-tab-cnt {
    background: color-mix(in srgb,var(--primary) 18%,transparent);
}
.mp-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239,68,68,.6);
    animation: mpDotPulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}
.mp-live-dot--lg { width: 8px; height: 8px; }
.mp-live-dot--xs { width: 5px; height: 5px; }
@keyframes mpDotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.65)} }

.mp-game-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.mp-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border, rgba(255,255,255,.07));
    background: transparent;
    transition: all .14s;
}
.mp-game-btn:hover { border-color: var(--border3, rgba(255,255,255,.15)); color: var(--text); }
.mp-game-btn--active {
    background: color-mix(in srgb,var(--primary) 10%,transparent);
    border-color: color-mix(in srgb,var(--primary) 30%,transparent);
    color: var(--primary);
}
.mp-game-btn-icon {
    width: 14px; height: 14px;
    object-fit: contain;
    border-radius: 3px;
}

.mp-section {
    padding: 20px 24px 4px;
}
.mp-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.mp-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text);
}
.mp-section-cnt {
    font-size: 11px;
    font-weight: 800;
    background: color-mix(in srgb,var(--primary) 12%,transparent);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 8px;
}

.mp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.mp-cards-grid--finished {
    opacity: .72;
}
.mp-cards-grid--finished:hover { opacity: 1; }

.mp-card {
    display: flex;
    flex-direction: column;
    background: var(--surface, #161424);
    border: 1px solid var(--border, rgba(255,255,255,.07));
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .18s, transform .15s, box-shadow .18s;
}
.mp-card:hover {
    border-color: rgba(255,255,255,.14);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.mp-card--live {
    border-color: rgba(239,68,68,.25);
}
.mp-card--live:hover {
    border-color: rgba(239,68,68,.45);
}
.mp-card--finished { }

.mp-card-thumb {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: var(--surface2, #1a1828);
    flex-shrink: 0;
}
.mp-card-thumb-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.mp-card-thumb-img--banner {
    object-fit: cover;
    object-position: center 30%;
}
.mp-card-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(7,6,14,.1) 0%, rgba(7,6,14,.55) 100%);
}
.mp-card-thumb-overlay--banner {
    background: linear-gradient(to bottom, rgba(7,6,14,.2) 0%, rgba(7,6,14,.7) 100%);
}

.mp-card-thumb-placeholder {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mp-card-thumb-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
}
.mp-card-thumb-game-name {
    position: relative;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.18);
    z-index: 1;
}

.mp-card-thumb-badges {
    position: absolute;
    top: 9px; left: 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.mp-card-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(239,68,68,.85);
    color: #fff;
    backdrop-filter: blur(6px);
}
.mp-card-fin-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,.5);
    backdrop-filter: blur(6px);
}
.mp-card-time-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(0,0,0,.55);
    color: #fff;
    backdrop-filter: blur(6px);
}
.mp-card-fmt-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(0,0,0,.4);
    color: rgba(255,255,255,.55);
    backdrop-filter: blur(6px);
}

.mp-card-viewers {
    position: absolute;
    bottom: 9px; left: 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.5);
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.mp-card-body {
    padding: 13px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.mp-card-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}
.mp-card-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.mp-card-team--r {
    flex-direction: row-reverse;
    text-align: right;
}
.mp-card-team-logo {
    width: 32px; height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface2, rgba(255,255,255,.05));
    border: 1px solid var(--border, rgba(255,255,255,.07));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
}
.mp-card-team-logo img { width: 100%; height: 100%; object-fit: contain; }
.mp-card-team-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-card-team-name--r { text-align: right; }

.mp-card-vs-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.mp-card-vs {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 2px;
}
.mp-card-score {
    font-size: 13px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.5px;
}

.mp-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.mp-card-trn {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.mp-card-game {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    white-space: nowrap;
}
.mp-card-stage {
    font-size: 10px;
    color: var(--muted);
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255,255,255,.04);
}

.mp-card-streamers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border, rgba(255,255,255,.06));
    margin-top: auto;
}
.mp-card-streamer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s;
}
.mp-card-streamer:hover { background: rgba(255,255,255,.04); }
.mp-card-streamer-av {
    width: 24px; height: 24px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.mp-card-streamer-av--ph {
    width: 24px; height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    background: linear-gradient(135deg,#4a1d96,#8b5cf6);
    color: #fff;
    flex-shrink: 0;
}
.mp-card-streamer-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.mp-card-streamer-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-card-streamer-viewers {
    font-size: 10px;
    color: #ef4444;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}
.mp-card-twitch-icon {
    flex-shrink: 0;
    opacity: .6;
}
.mp-card-more-streamers {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    align-self: flex-start;
}

.mp-group {
    padding: 20px 24px 8px;
}
.mp-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
    margin-bottom: 0;
}
.mp-group-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text);
}
.mp-group-cnt {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.mp-list {
    background: var(--surface);
    border: 1px solid var(--border, rgba(255,255,255,.07));
    border-radius: 12px;
    margin-top: 10px;
    overflow: hidden;
}
.mp-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.05));
    transition: background .12s;
}
.mp-list-row:last-child { border-bottom: none; }
.mp-list-row:hover { background: rgba(255,255,255,.025); }
.mp-list-row--live { background: rgba(239,68,68,.04); }
.mp-list-row--live:hover { background: rgba(239,68,68,.07); }

.mp-list-time {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    min-width: 60px;
}
.mp-list-live-lbl {
    font-size: 10px;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.mp-list-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.mp-list-hour {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
}
.mp-list-event {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    min-width: 80px;
}
.mp-list-game {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.mp-list-trn {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}
.mp-list-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.mp-list-team {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}
.mp-list-team--r { flex-direction: row-reverse; }
.mp-list-logo {
    width: 26px; height: 26px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface2, rgba(255,255,255,.05));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    color: var(--muted);
    flex-shrink: 0;
}
.mp-list-logo img { width: 100%; height: 100%; object-fit: contain; }
.mp-list-tname {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-list-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
}
.mp-list-fmt {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
}
.mp-list-vs > span:last-child {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 1px;
}

.mp-list-streamers {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.mp-streamer-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(145,71,255,.1);
    border: 1px solid rgba(145,71,255,.2);
}
.mp-streamer-chip-av {
    width: 18px; height: 18px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.mp-streamer-chip-av--placeholder {
    width: 18px; height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    background: linear-gradient(135deg,#4a1d96,#8b5cf6);
    color: #fff;
    flex-shrink: 0;
}
.mp-streamer-chip-name {
    font-size: 10px;
    font-weight: 700;
    color: #c4b5fd;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-streamer-chip-viewers {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #ef4444;
}

.mp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 24px;
    color: var(--muted);
    text-align: center;
}
.mp-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}
.mp-empty-sub {
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 900px) {
  .mp-cards-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .mp-list-streamers { display: none; }
}
@media (max-width: 600px) {
  .mp-cards-grid { grid-template-columns: 1fr; }
  .mp-header { padding: 16px; }
  .mp-filters { padding: 12px 16px 0; }
  .mp-section { padding: 16px 16px 4px; }
  .mp-group { padding: 16px 16px 8px; }
  .mp-breadcrumb { padding: 10px 16px; }
  .mp-list-event { display: none; }
}

.mp-tabs-bar {
  padding: 16px 24px 0;
}
.mp-content {
  padding: 0 24px 40px;
}

.mp-content .mp-section {
  padding-left: 0;
  padding-right: 0;
}
.mp-section-wrap {
  
}
.mp-section-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.mp-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #2978a0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
  white-space: nowrap;
}
.mp-request-btn:hover {
  background: #fff;
  color:#222;
  transform: translateY(-1px);
}
.mp-request-btn--disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.mp-game-filters--inline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mf-featured {
  display: grid;
  grid-template-columns: 1fr 320px;
  background: var(--surface, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}

.mf-stream-col {
  position: relative;
  background: #090b10;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  overflow: hidden;
}
.mf-stream-col--playable {
  cursor: pointer;
}
.mf-stream-col--playable:hover .mf-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
}
.mf-stream-col--playing {
  cursor: default;
  aspect-ratio: 16 / 9;
}
.mf-stream-col--playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.mf-poster {
  position: absolute;
  inset: 0;
}
.mf-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mf-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
}
.mf-poster-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0f1a 0%, #1a1235 50%, #0d1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-poster-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(147,51,234,.18) 0%, transparent 70%);
}
.mf-poster-game {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.mf-poster-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.mf-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mf-viewers-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.7);
  color: rgba(255,255,255,.75);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.mf-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #5b21b6);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 24px rgba(147,51,234,.5);
  pointer-events: none;
}
.mf-stream-col--playable:hover .mf-play-btn {
  box-shadow: 0 6px 32px rgba(147,51,234,.7);
}

.mf-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.mf-info-top {}
.mf-tournament {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.mf-tournament-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}
.mf-stage {
  background: rgba(255,255,255,.08);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
}
.mf-format {
  font-size: 11px;
  color: var(--muted);
  opacity: .7;
}

.mf-matchup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mf-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.mf-team--r {
  
}
.mf-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--surface2, rgba(255,255,255,.06));
  border: 1px solid var(--border, rgba(255,255,255,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.mf-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mf-team-logo span {
  font-size: 14px;
  font-weight: 900;
  color: var(--muted);
}
.mf-team-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.mf-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mf-score-nums {
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mf-score-sep {
  color: var(--muted);
  font-weight: 400;
}
.mf-score-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.mf-map {
  font-size: 10px;
  color: var(--muted);
  opacity: .7;
}

.mf-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mf-btn-watch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #9333ea, #5b21b6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.mf-btn-watch:hover { opacity: .88; transform: translateY(-1px); }
.mf-btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface2, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec, rgba(255,255,255,.6));
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.mf-btn-detail:hover {
  border-color: var(--border3, rgba(255,255,255,.2));
  color: var(--text);
}

.mf-tl-day {
  margin-bottom: 20px;
}
.mf-tl-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mf-tl-day-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-sec, rgba(255,255,255,.6));
  text-transform: uppercase;
  white-space: nowrap;
}
.mf-tl-day-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.mf-tl-day-line {
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255,255,255,.07));
}

.mf-tl-row {
  display: grid;
  grid-template-columns: 52px 1fr 20px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  background: var(--surface, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.07));
  border-radius: 8px;
  margin-bottom: 6px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.mf-tl-row:hover {
  border-color: var(--border3, rgba(255,255,255,.18));
  background: var(--surface2, rgba(255,255,255,.06));
}

.mf-tl-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.mf-tl-hour {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.mf-tl-zone {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mf-tl-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.mf-tl-teams {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  flex-wrap: nowrap;
  overflow: hidden;
}
.mf-tl-logo {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--surface2, rgba(255,255,255,.06));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.mf-tl-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mf-tl-logo span {
  font-size: 7px;
  font-weight: 900;
  color: var(--muted);
}
.mf-tl-tname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.mf-tl-vs {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  flex-shrink: 0;
}

.mf-tl-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.mf-tl-pill {
  font-size: 10px;
  color: var(--muted);
  background: var(--surface2, rgba(255,255,255,.05));
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.mf-tl-pill--game {
  color: var(--primary);
  background: color-mix(in srgb,var(--primary) 12%,transparent);
}

.mf-tl-arrow {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .4;
  transition: opacity .15s;
}
.mf-tl-row:hover .mf-tl-arrow { opacity: .8; }

.mf-fin-list {
  border: 1px solid var(--border, rgba(255,255,255,.07));
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface, rgba(255,255,255,.03));
}
.mf-fin-more-wrap {}

.mf-fin-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.mf-fin-row:last-child { border-bottom: none; }
.mf-fin-row:hover { background: rgba(255,255,255,.03); }

.mf-fin-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.mf-fin-date span {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.2);
}

.mf-fin-teams {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mf-fin-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}
.mf-fin-team--r {
  flex-direction: row-reverse;
}
.mf-fin-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--surface2, rgba(255,255,255,.06));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.mf-fin-logo img { width: 100%; height: 100%; object-fit: contain; }
.mf-fin-logo span { font-size: 7px; font-weight: 900; color: var(--muted); }
.mf-fin-tname {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90px;
}
.mf-fin-tname--win {
  color: var(--text);
  font-weight: 700;
}
.mf-fin-score {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,.3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.mf-fin-score-w { color: var(--text); }
.mf-fin-score-sep {
  font-size: 12px;
  color: rgba(255,255,255,.15);
  font-weight: 400;
  padding: 0 1px;
}

.mf-fin-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}
.mf-fin-trn {
  font-size: 10px;
  color: var(--muted);
  opacity: .7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.mf-fin-game {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
}

.mf-fin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mf-fin-vod {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #a78bfa;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(147,51,234,.1);
  border: 1px solid rgba(147,51,234,.2);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.mf-fin-vod:hover { background: rgba(147,51,234,.2); }
.mf-fin-chevron {
  color: var(--muted);
  opacity: .3;
  flex-shrink: 0;
}

.mf-fin-show-more {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border, rgba(255,255,255,.07));
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mf-fin-show-more:hover {
  background: rgba(255,255,255,.03);
  color: var(--text);
}

@media (max-width: 900px) {
  .mf-featured {
    grid-template-columns: 1fr;
  }
  .mf-info {
    border-top: 1px solid var(--border, rgba(255,255,255,.08));
  }
  .mf-fin-meta { display: none; }
  .mf-tl-tname { max-width: 80px; }
}
@media (max-width: 600px) {
  .mp-tabs-bar { padding: 12px 16px 0; }
  .mp-content { padding: 0 16px 32px; }
  .mf-featured { border-radius: 10px; }
  .mf-info { padding: 16px; }
  .mf-score-nums { font-size: 24px; }
  .mf-team-logo { width: 38px; height: 38px; }
  .mf-tl-row { grid-template-columns: 44px 1fr 16px; gap: 8px; }
  .mf-fin-row { grid-template-columns: 36px 1fr auto; gap: 8px; }
  .mf-fin-meta { display: none; }
  .mp-game-filters--inline { display: none; }
}

[data-theme="light"] .mp-header { border-bottom-color: #e5e7eb; }
[data-theme="light"] .mp-title  { color: #111827; }
[data-theme="light"] .mp-header-stat-val { color: var(--primary, #225aeb); }
[data-theme="light"] .mp-header-stat-lbl { color: #6b7280; }

[data-theme="light"] .mp-view-toggle { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .mp-view-btn--active { background: var(--primary); color: #fff; }
[data-theme="light"] .mp-view-btn:hover { background: rgba(0,0,0,.06); }
[data-theme="light"] .mp-game-btn:hover { border-color: var(--border3); color: var(--text); }
[data-theme="light"] .mp-game-btn--active {
  background: color-mix(in srgb,var(--primary) 10%,transparent);
  border-color: color-mix(in srgb,var(--primary) 35%,transparent);
}

[data-theme="light"] .mp-request-btn {
  background: #2978a0;
  color: #fff;
}
[data-theme="light"] .mp-request-btn--disabled {
  background: transparent;
  border-color: #e5e7eb;
  color: #9ca3af;
}

[data-theme="light"] .mp-tab { color: #6b7280; }
[data-theme="light"] .mp-tab:hover { background: #f3f4f6; color: #374151; }
[data-theme="light"] .mp-tab--active {
  background: color-mix(in srgb,var(--primary) 10%,transparent);
  border-color: color-mix(in srgb,var(--primary) 30%,transparent);
  color: var(--primary);
}
[data-theme="light"] .mp-tab--live.mp-tab--active {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
  color: #dc2626;
}
[data-theme="light"] .mp-tab-cnt { background: #f3f4f6; color: #6b7280; }
[data-theme="light"] .mp-tab--active .mp-tab-cnt {
  background: color-mix(in srgb,var(--primary) 12%,transparent);
  color: var(--primary);
}

[data-theme="light"] .mp-section-title { color: #374151; }
[data-theme="light"] .mp-section-cnt {
  background: color-mix(in srgb,var(--primary) 10%,transparent);
  color: var(--primary);
}
[data-theme="light"] .mp-card { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .mp-card:hover {
  border-color: var(--border3);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
[data-theme="light"] .mp-card--live { border-color: rgba(239,68,68,.25); }
[data-theme="light"] .mp-card--live:hover { border-color: rgba(239,68,68,.45); }
[data-theme="light"] .mp-card-team-logo { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .mp-card-streamers { border-top-color: var(--border); }
[data-theme="light"] .mp-card-streamer:hover { background: color-mix(in srgb,var(--primary) 8%,transparent); }
[data-theme="light"] .mp-list { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .mp-list-row { border-bottom-color: var(--border); }
[data-theme="light"] .mp-list-row:hover { background: color-mix(in srgb,var(--primary) 3%,transparent); }
[data-theme="light"] .mp-list-row--live { background: rgba(239,68,68,.04); }
[data-theme="light"] .mp-list-logo { background: var(--surface2); border-color: var(--border); }
[data-theme="light"] .mp-group-header { border-bottom-color: var(--border); }

.mp-body {
  display: grid;
  grid-template-columns: 224px 1fr;
  align-items: start;
  min-height: calc(100vh - var(--nav-h, 52px) - 57px); 
}

.mp-main {
  min-width: 0; 
}

.ms-sidebar {
  border-right: 1px solid var(--border, rgba(255,255,255,.06));
  padding: 20px 0;
  position: sticky;
  top: var(--nav-h, 52px);
  max-height: calc(100vh - var(--nav-h, 52px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.ms-sidebar::-webkit-scrollbar { width: 3px; }
.ms-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 2px; }

.ms-section {
  padding: 0 16px 18px;
}
.ms-section + .ms-section {
  border-top: 1px solid var(--border, rgba(255,255,255,.06));
  padding-top: 16px;
}
.ms-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ms-status-pills { display: flex; flex-direction: column; gap: 4px; }
.ms-status-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  text-align: left;
}
.ms-status-btn:hover {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.7);
}
.ms-status-btn--active {
  background: rgba(34,90,235,.12);
  border-color: rgba(34,90,235,.25);
  color: #fff;
}
.ms-status-btn-left { display: flex; align-items: center; gap: 8px; }

.ms-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ms-dot--all      { background: rgba(255,255,255,.25); }
.ms-dot--live     { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.6); animation: msDotPulse 1.4s ease-in-out infinite; }
.ms-dot--upcoming { background: #4a90d9; }
.ms-dot--finished { background: rgba(255,255,255,.2); }

@keyframes msDotPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.ms-count {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,.06);
  padding: 1px 6px;
  border-radius: 10px;
  color: rgba(255,255,255,.25);
}
.ms-status-btn--active .ms-count {
  background: rgba(34,90,235,.25);
  color: #5b8fff;
}

.ms-game-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-game-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.ms-game-btn:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
}
.ms-game-btn--active {
  background: rgba(34,90,235,.15);
  border-color: rgba(34,90,235,.3);
  color: #fff;
}
.ms-game-btn img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.ms-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s;
  margin-bottom: 2px;
}
.ms-team:hover { background: rgba(255,255,255,.04); }

.ms-team-logo {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: rgba(255,255,255,.3);
  overflow: hidden;
}
.ms-team-logo img { width: 100%; height: 100%; object-fit: contain; }
.ms-team-info { flex: 1; min-width: 0; }
.ms-team-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-team-next {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  margin-top: 1px;
}
.ms-team-dot {
  width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
}
.ms-team-dot--upcoming { background: #4a90d9; }
.ms-team-dot--live { background: #22c55e; box-shadow: 0 0 4px rgba(34,197,94,.5); }
.ms-team-empty {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  padding: 2px 2px 0;
  line-height: 1.5;
}

.ms-multistream-hint {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  line-height: 1.5;
  margin-bottom: 8px;
}
.ms-multistream-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.ms-multistream-btn:not(:disabled):hover {
  border-color: #9333ea;
  color: #c084fc;
  background: rgba(147,51,234,.06);
}
.ms-multistream-btn:disabled { opacity: .45; cursor: default; }

@media (max-width: 1100px) {
  .mp-body { grid-template-columns: 190px 1fr; }
}
@media (max-width: 900px) {
  .mp-body { grid-template-columns: 1fr; }
  .ms-sidebar { display: none; }
}

[data-theme="light"] .ms-sidebar { border-right-color: var(--border); }
[data-theme="light"] .ms-section + .ms-section { border-top-color: var(--border); }
[data-theme="light"] .ms-section-title { color: var(--muted); }
[data-theme="light"] .ms-status-btn { color: var(--muted2, #6b7280); }
[data-theme="light"] .ms-status-btn:hover { background: var(--surface2, #f3f4f6); color: var(--text); }
[data-theme="light"] .ms-status-btn--active {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--primary);
}
[data-theme="light"] .ms-count { background: #f3f4f6; color: #9ca3af; }
[data-theme="light"] .ms-status-btn--active .ms-count {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}
[data-theme="light"] .ms-game-btn { background: #fff; border-color: #e5e7eb; color: #6b7280; }
[data-theme="light"] .ms-game-btn:hover { background: #f3f4f6; color: #374151; }
[data-theme="light"] .ms-game-btn--active {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--primary);
}
[data-theme="light"] .ms-team:hover { background: #f3f4f6; }
[data-theme="light"] .ms-team-logo { background: #f3f4f6; border-color: #e5e7eb; color: #9ca3af; }
[data-theme="light"] .ms-team-name { color: #111827; }
[data-theme="light"] .ms-team-next { color: #6b7280; }
[data-theme="light"] .ms-team-empty { color: #6b7280; }
[data-theme="light"] .ms-multistream-hint { color: #6b7280; }
[data-theme="light"] .ms-multistream-btn { background: #f9fafb; border-color: #e5e7eb; color: #6b7280; }




.thl-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  font-family: var(--trn-font-b, 'Manrope', sans-serif);
}
.thl-hero__bg { position: absolute; inset: 0; z-index: 0; }
.thl-hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(.38) saturate(1.3);
  transition: transform 8s ease;
}
.thl-hero:hover .thl-hero__photo { transform: scale(1.03); }
.thl-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 40%, transparent 100%);
}
.thl-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(13,12,20,.05) 0%,
    rgba(13,12,20,.45) 35%,
    rgba(13,12,20,.93) 80%,
    rgba(13,12,20,1)   100%
  );
}
.thl-hero__overlay--empty {
  background: linear-gradient(160deg,
    rgba(13,12,20,.6) 0%,
    rgba(13,12,20,.95) 100%
  );
}
.thl-hero__glow {
  position: absolute; bottom: -100px; left: 20%;
  width: 800px; height: 600px;
  border-radius: 50%;
  background: var(--trn-glow, rgba(34,90,235,.25));
  filter: blur(160px);
  pointer-events: none; opacity: .6;
}

.thl-hero__inner {
  position: relative; z-index: 1;
  padding: 80px 48px 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: flex-end;
}
.thl-hero__inner--empty { grid-template-columns: 1fr; padding: 80px 48px 60px; }

.thl-hero__left { min-width: 0; }
.thl-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: rgba(255,255,255,.45); margin-bottom: 16px;
}
.thl-hero__live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #39e580; box-shadow: 0 0 10px #39e580;
  animation: trn2-pulse 1.4s infinite;
}
.thl-hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1;
  color: #fff; text-transform: uppercase; margin-bottom: 20px;
}
.thl-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.thl-hero__desc {
  font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,.5); max-width: 520px; margin-bottom: 28px;
}
.thl-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.thl-hero__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 800; text-decoration: none;
  transition: opacity .18s, transform .18s, box-shadow .18s;
}
.thl-hero__btn:hover { opacity: .9; transform: translateY(-1px); }
.thl-hero__btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 32px rgba(34,90,235,.4);
}
.thl-hero__btn--primary:hover { box-shadow: 0 12px 40px rgba(34,90,235,.55); }
.thl-hero__btn--ghost {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.14);
}
.thl-hero__btn--ghost:hover { background: rgba(255,255,255,.13); color: #fff; }

.thl-hero__right { }
.thl-hero__statscard {
  background: rgba(13,12,20,.65);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 24px;
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 16px;
}
.thl-hero__statscard-logo {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); flex-shrink: 0;
}
.thl-hero__statscard-logo img { width: 100%; height: 100%; object-fit: contain; }
.thl-hero__statscard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thl-hero__stat {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 12px 14px;
}
.thl-hero__stat-val {
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -.5px; line-height: 1;
}
.thl-hero__stat-val--gold { color: var(--trn-gold, #f0b429); }
.thl-hero__stat-dim { font-size: 14px; color: rgba(255,255,255,.3); font-weight: 600; }
.thl-hero__stat-label {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .5px;
}
.thl-hero__statscard-bar {
  height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden;
}
.thl-hero__statscard-barfill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 3px; transition: width .6s cubic-bezier(.4,0,.2,1);
}
.thl-hero__statscard-barlabels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,.35); font-weight: 600;
}

.thl-hero__statscard-timer {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 14px 16px;
}
.thl-hero__timer-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px;
}
.thl-hero__timer-digits { display: flex; align-items: center; gap: 8px; }
.thl-hero__timer-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.thl-hero__timer-unit span { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1; }
.thl-hero__timer-unit em { font-style: normal; font-size: 9px; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .4px; }
.thl-hero__timer-sep { font-size: 20px; font-weight: 700; color: rgba(255,255,255,.2); margin-bottom: 12px; }

.thl-hero__strip {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 48px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25); backdrop-filter: blur(12px);
  overflow-x: auto; scrollbar-width: none;
}
.thl-hero__strip::-webkit-scrollbar { display: none; }
.thl-hero__strip-label {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3);
  white-space: nowrap; flex-shrink: 0;
}
.thl-hero__strip-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; text-decoration: none; color: rgba(255,255,255,.7);
  font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.thl-hero__strip-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.thl-hero__strip-item img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }

.thl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 20px; border: 1px solid;
  flex-shrink: 0; white-space: nowrap; position: absolute; top: 12px; right: 12px; z-index: 2;
}
.thl-hero__tags .thl-badge,
.thl-hero__strip-item .thl-badge { position: static; }
.thl-badge--sm { font-size: 9px; padding: 2px 8px; }
.thl-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; animation: trn2-pulse 1.4s infinite;
}
.thl-badge--live    { color: #39e580; background: rgba(57,229,128,.1);   border-color: rgba(57,229,128,.3); }
.thl-badge--checkin { color: #ff9f40; background: rgba(255,159,64,.1);   border-color: rgba(255,159,64,.3); }
.thl-badge--reg     { color: #5badff; background: rgba(91,173,255,.1);   border-color: rgba(91,173,255,.3); }
.thl-badge--soon    { color: #a78bfa; background: rgba(167,139,250,.1);  border-color: rgba(167,139,250,.2); }
.thl-badge--done    { color: #94a3b8; background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.15); }

.thl-filters {
  position: sticky; top: var(--nav-h, 56px); z-index: 40;
  background: rgba(13,12,20,.92);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
}
.thl-filters__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 12px 48px;
  overflow-x: auto; scrollbar-width: none;
}
.thl-filters__inner::-webkit-scrollbar { display: none; }
.thl-filters__pills { display: flex; gap: 6px; flex-shrink: 0; }
.thl-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.thl-pill:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.thl-pill--active { background: var(--primary); color: #fff; border-color: transparent; }
.thl-pill--live.thl-pill--active  { background: rgba(57,229,128,.2); color: #39e580; border-color: rgba(57,229,128,.3); }
.thl-pill--reg.thl-pill--active   { background: rgba(91,173,255,.2); color: #5badff; border-color: rgba(91,173,255,.3); }
.thl-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #39e580; animation: trn2-pulse 1.4s infinite; }
.thl-pill__count {
  font-size: 10px; font-weight: 800;
  background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 10px;
}
.thl-pill--active .thl-pill__count { background: rgba(255,255,255,.25); }

.thl-filters__games {
  display: flex; gap: 6px; flex-shrink: 0;
  overflow-x: auto; scrollbar-width: none;
}
.thl-filters__games::-webkit-scrollbar { display: none; }
.thl-gpill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.thl-gpill:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.thl-gpill--active {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.thl-gpill__img {
  width: 18px; height: 18px;
  border-radius: 4px; object-fit: contain;
  flex-shrink: 0;
}
.thl-gpill__abbr {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 900; flex-shrink: 0;
}

.thl-content { padding: 0 48px 60px; display: flex; flex-direction: column; }
.thl-section { padding: 36px 0 0; }
.thl-section--archive { padding-top: 32px; }
.thl-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.thl-section__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: rgba(255,255,255,.4);
}
.thl-section__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #39e580; box-shadow: 0 0 10px #39e580;
  animation: trn2-pulse 1.4s infinite;
}
.thl-section__count {
  font-size: 10px; font-weight: 800;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
  padding: 2px 8px; border-radius: 10px; color: rgba(255,255,255,.35);
}
.thl-section__showmore {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4);
  background: none; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 6px 12px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.thl-section__showmore:hover { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.2); }

.thl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.thl-grid--large { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.thl-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: #fff;
  background: var(--trn-card, #13111d);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.thl-card:hover {
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transform: translateY(-3px);
}
.thl-card--live { border-color: rgba(57,229,128,.2); }
.thl-card--live::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #39e580, transparent);
  background-size: 200%; animation: trn2-sweep 2.5s linear infinite;
}
.thl-card--done { opacity: .6; }
.thl-card--done:hover { opacity: 1; }

.thl-card__thumb { position: relative; height: 150px; overflow: hidden; flex-shrink: 0; }
.thl-card__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.thl-card:hover .thl-card__bg { transform: scale(1.05); }
.thl-card__bg--blur { filter: blur(20px) brightness(.5) saturate(2); transform: scale(1.1); }
.thl-card:hover .thl-card__bg--blur { transform: scale(1.15); }
.thl-card__bg--empty { background: linear-gradient(135deg, rgba(34,90,235,.15), rgba(13,12,20,1)); }
.thl-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(13,12,20,.7) 100%);
}
.thl-card__logo {
  position: absolute; bottom: 12px; left: 14px;
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.15); background: rgba(13,12,20,.8); z-index: 1;
}
.thl-card__logo img { width: 100%; height: 100%; object-fit: contain; }

.thl-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.thl-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thl-card__game { font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .4px; }
.thl-card__fmt { font-size: 10px; color: rgba(255,255,255,.3); font-weight: 600; background: rgba(255,255,255,.05); padding: 2px 7px; border-radius: 4px; }
.thl-card__name { font-size: 15px; font-weight: 800; color: #fff; margin: 0; line-height: 1.3; letter-spacing: -.2px; }
.thl-card__stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.thl-card__prize { font-size: 12px; font-weight: 800; color: var(--trn-gold, #f0b429); }
.thl-card__teams,
.thl-card__date  { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4); }
.thl-card__teams svg, .thl-card__date svg { opacity: .6; }
.thl-card__progress { height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.thl-card__progress-fill { height: 100%; border-radius: 2px; transition: width .4s ease; }
.thl-card__deadline { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #5badff; }
.thl-card__deadline svg { opacity: .7; }

.thl-archive {
  background: var(--trn-card, #13111d);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; overflow: hidden;
}
.thl-archive-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto 24px;
  align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none; color: #fff;
  transition: background .15s;
}
.thl-archive-row:last-child { border-bottom: none; }
.thl-archive-row:hover { background: rgba(255,255,255,.03); }
.thl-archive-row__logo {
  width: 36px; height: 36px; border-radius: 8px; object-fit: contain;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.thl-archive-row__logopl {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: rgba(255,255,255,.4);
}
.thl-archive-row__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.thl-archive-row__name {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thl-archive-row__meta {
  font-size: 11px; color: rgba(255,255,255,.3); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thl-archive-row__winner { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); white-space: nowrap; }
.thl-archive-row__prize  { font-size: 12px; font-weight: 800; color: var(--trn-gold, #f0b429); white-space: nowrap; }
.thl-archive-row__date   { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.3); white-space: nowrap; }
.thl-archive-row__arrow  { color: rgba(255,255,255,.2); transition: color .15s, transform .15s; }
.thl-archive-row:hover .thl-archive-row__arrow { color: rgba(255,255,255,.6); transform: translateX(2px); }

.thl-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 80px 20px; text-align: center; color: rgba(255,255,255,.22);
}
.thl-empty svg { opacity: .2; }
.thl-empty__title { font-size: 22px; font-weight: 800; color: rgba(255,255,255,.35); letter-spacing: -.3px; }
.thl-empty__sub   { font-size: 13px; color: rgba(255,255,255,.25); }
.thl-empty__reset {
  margin-top: 8px; padding: 9px 20px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.5);
  cursor: pointer; transition: background .15s, color .15s;
}
.thl-empty__reset:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }

@media (max-width: 1100px) {
  .thl-hero__inner { grid-template-columns: 1fr; padding: 60px 32px 40px; }
  .thl-hero__right { display: none; }
  .thl-filters__inner { padding: 10px 24px; }
  .thl-content { padding: 0 24px 48px; }
  .thl-hero__strip { padding: 12px 24px; }
}
@media (max-width: 768px) {
  .thl-hero { min-height: 380px; }
  .thl-hero__title { font-size: 32px; }
  .thl-hero__inner { padding: 40px 20px 32px; }
  .thl-filters__inner { padding: 10px 16px; gap: 8px; }
  .thl-filters__right { display: none; }
  .thl-content { padding: 0 16px 40px; }
  .thl-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .thl-grid--large { grid-template-columns: 1fr; }
  .thl-archive-row { grid-template-columns: 36px 1fr auto 20px; }
  .thl-archive-row__winner,
  .thl-archive-row__prize,
  .thl-archive-row__date { display: none; }
  .thl-hero__strip { padding: 10px 16px; }
}
@media (max-width: 480px) {
  .thl-grid { grid-template-columns: 1fr; }
  .thl-hero__actions { flex-direction: column; }
  .thl-hero__btn { width: 100%; justify-content: center; }
}

[data-theme="light"] .thl-hero__photo { filter: brightness(.62) saturate(1.05); }
[data-theme="light"] .thl-hero__overlay {
  background: linear-gradient(160deg, rgb(77 77 77 / 42%) 0%, rgb(55 55 55 / 42%) 35%, rgb(60 60 60 / 92%) 78%, #3c3c3c 100%);
}
[data-theme="light"] .thl-hero__overlay--empty {
  background: linear-gradient(160deg, rgba(240,244,245,.7) 0%, var(--bg) 100%);
}
[data-theme="light"] .thl-hero__glow {
  background: rgba(41,120,160,.15);
}
[data-theme="light"] .thl-hero__grid {
  background-image:
    linear-gradient(rgba(37,48,49,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,48,49,.025) 1px, transparent 1px);
}
[data-theme="light"] .thl-hero__eyebrow { color: rgba(255,255,255,1); }
[data-theme="light"] .thl-hero__title { color: #fff; }
[data-theme="light"] .thl-hero__desc { color: rgba(37,48,49,.6); }
[data-theme="light"] .thl-hero__btn--ghost {
  background: rgb(57 106 215);
  color: #fff;
  border-color: rgb(57 106 215);
}
[data-theme="light"] .thl-hero__btn--ghost:hover {
  background: rgba(255,255,255); color: rgb(57 106 215);
}

[data-theme="light"] .thl-hero__statscard {
  background: rgba(255,255,255,.82);
  border-color: rgba(37,48,49,.12);
  box-shadow: 0 8px 32px rgba(37,48,49,.1);
}
[data-theme="light"] .thl-hero__stat {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .thl-hero__stat-val { color: var(--text); }
[data-theme="light"] .thl-hero__stat-dim { color: var(--muted); }
[data-theme="light"] .thl-hero__stat-label { color: var(--muted); }
[data-theme="light"] .thl-hero__statscard-bar { background: rgba(37,48,49,.1); }
[data-theme="light"] .thl-hero__statscard-barlabels { color: var(--muted); }
[data-theme="light"] .thl-hero__statscard-timer {
  background: var(--surface2); border-color: var(--border);
}
[data-theme="light"] .thl-hero__timer-label { color: var(--muted); }
[data-theme="light"] .thl-hero__timer-unit span { color: var(--text); }
[data-theme="light"] .thl-hero__timer-unit em { color: var(--muted); }
[data-theme="light"] .thl-hero__timer-sep { color: var(--muted2); }

[data-theme="light"] .thl-hero__strip {
  background: rgba(240,244,245,.8);
  border-top-color: var(--border);
  backdrop-filter: blur(10px);
}
[data-theme="light"] .thl-hero__strip-label { color: var(--muted); }
[data-theme="light"] .thl-hero__strip-item {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text2);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .thl-hero__strip-item:hover {
  background: var(--surface2); color: var(--text);
}

[data-theme="light"] .thl-badge--live    { color: #15803d; background: rgba(22,163,74,.1);  border-color: rgba(22,163,74,.25); }
[data-theme="light"] .thl-badge--checkin { color: #c2410c; background: rgba(234,88,12,.1);  border-color: rgba(234,88,12,.25); }
[data-theme="light"] .thl-badge--reg     { color: #1d4ed8; background: rgba(37,99,235,.8); color:#fff; border-color: rgba(37,99,235,.25); }
[data-theme="light"] .thl-badge--soon    { color: #7c3aed; background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.2); }
[data-theme="light"] .thl-badge--done    { color: var(--muted2); background: var(--surface3); border-color: var(--border2); }

[data-theme="light"] .thl-filters {
  background: rgba(240,244,245,.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
}
[data-theme="light"] .thl-pill {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border2);
  box-shadow: 0 1px 3px rgba(37,48,49,.06);
}
[data-theme="light"] .thl-pill:hover { background: var(--surface2); color: var(--text); border-color: var(--border3); }
[data-theme="light"] .thl-pill--active { background: var(--primary); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(41,120,160,.3); }
[data-theme="light"] .thl-pill--live.thl-pill--active  { background: #16a34a; color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(22,163,74,.3); }
[data-theme="light"] .thl-pill--reg.thl-pill--active   { background: #2563eb; color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
[data-theme="light"] .thl-pill__count { background: rgba(37,48,49,.08); color: var(--muted2); }
[data-theme="light"] .thl-pill--active .thl-pill__count { background: rgba(255,255,255,.25); color: #fff; }

[data-theme="light"] .thl-gpill {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border2);
  box-shadow: 0 1px 3px rgba(37,48,49,.06);
}
[data-theme="light"] .thl-gpill:hover { background: var(--surface2); color: var(--text); border-color: var(--border3); }
[data-theme="light"] .thl-gpill--active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 2px 8px rgba(41,120,160,.15);
}
[data-theme="light"] .thl-gpill__abbr { background: rgba(37,48,49,.08); color: var(--muted2); }

[data-theme="light"] .thl-section__title { color: var(--muted2); }
[data-theme="light"] .thl-section__count { background: var(--surface3); border-color: var(--border2); color: var(--muted2); }
[data-theme="light"] .thl-section__showmore { color: var(--muted); border-color: var(--border2); }
[data-theme="light"] .thl-section__showmore:hover { color: var(--text); border-color: var(--border3); background: var(--surface2); }

[data-theme="light"] .thl-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(37,48,49,.06);
}
[data-theme="light"] .thl-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(37,48,49,.12);
}
[data-theme="light"] .thl-card--live { border-color: rgba(22,163,74,.3); }
[data-theme="light"] .thl-card--live::after {
  background: linear-gradient(90deg, transparent, #16a34a, transparent);
}
[data-theme="light"] .thl-card__overlay {
  background: linear-gradient(to bottom, rgba(255,255,255,.05) 0%, rgba(240,244,245,.55) 100%);
}
[data-theme="light"] .thl-card__name { color: var(--text); }
[data-theme="light"] .thl-card__game { color: var(--primary); }
[data-theme="light"] .thl-card__fmt { background: var(--surface3); color: var(--muted2); }
[data-theme="light"] .thl-card__teams,
[data-theme="light"] .thl-card__date { color: var(--muted2); }
[data-theme="light"] .thl-card__progress { background: rgba(37,48,49,.08); }
[data-theme="light"] .thl-card__deadline { color: var(--primary); }
[data-theme="light"] .thl-card__logo {
  border-color: rgba(37,48,49,.12);
  background: rgba(255,255,255,.9);
}

[data-theme="light"] .thl-archive {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(37,48,49,.06);
}
[data-theme="light"] .thl-archive-row { color: var(--text); border-bottom-color: var(--border); }
[data-theme="light"] .thl-archive-row:hover { background: var(--surface2); }
[data-theme="light"] .thl-archive-row__name { color: var(--text2); }
[data-theme="light"] .thl-archive-row__meta { color: var(--muted); }
[data-theme="light"] .thl-archive-row__winner { color: var(--text2); }
[data-theme="light"] .thl-archive-row__date { color: var(--muted); }
[data-theme="light"] .thl-archive-row__arrow { color: var(--muted); }
[data-theme="light"] .thl-archive-row:hover .thl-archive-row__arrow { color: var(--primary); }
[data-theme="light"] .thl-archive-row__logopl { background: var(--surface3); border-color: var(--border2); color: var(--muted2); }

[data-theme="light"] .thl-empty__title { color: var(--text2); }
[data-theme="light"] .thl-empty__sub { color: var(--muted); }
[data-theme="light"] .thl-empty__reset {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--muted2);
}
[data-theme="light"] .thl-empty__reset:hover { background: var(--surface3); color: var(--text); }

.cc-ticker {
  position: sticky;
  top: var(--nav-h, 56px);
  z-index: 90;
  height: 36px;
  background: rgba(9,9,16,.95);
  border-bottom: 1px solid rgba(57,229,128,.18);
  display: flex;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.cc-ticker__tag {
  flex-shrink: 0;
  height: 100%;
  padding: 0 14px;
  background: rgba(57,229,128,.12);
  border-right: 1px solid rgba(57,229,128,.2);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  color: #39e580;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.cc-ticker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #39e580;
  box-shadow: 0 0 8px #39e580;
  animation: trn2-pulse 1.4s infinite;
}
.cc-ticker__track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.cc-ticker__inner {
  display: flex;
  gap: 0;
  animation: cc-ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.cc-ticker:hover .cc-ticker__inner { animation-play-state: paused; }
@keyframes cc-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cc-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.cc-ticker__trn {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}
.cc-ticker__teams {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cc-ticker__score-a { color: #39e580; }
.cc-ticker__score-b { color: rgba(255,255,255,.4); }
.cc-ticker__sep { color: rgba(255,255,255,.2); font-size: 10px; }
.cc-ticker__empty {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 11px;
  color: rgba(255,255,255,.25);
  font-style: italic;
}

.cc-header {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--trn-border, rgba(255,255,255,.06));
}
.cc-header__title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text, #fff);
  text-transform: uppercase;
  white-space: nowrap;
}
.cc-header__stats {
  display: flex;
  gap: 16px;
}
.cc-header__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cc-header__stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary, #225aeb);
  line-height: 1;
}
.cc-header__stat-lbl {
  font-size: 9px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}
.cc-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-view-toggle {
  display: flex;
  background: var(--trn-card, rgba(255,255,255,.05));
  border: 1px solid var(--trn-border, rgba(255,255,255,.08));
  border-radius: 8px;
  overflow: hidden;
}
.cc-view-btn {
  width: 32px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,.3);
  transition: background .15s, color .15s;
}
.cc-view-btn:hover { color: rgba(255,255,255,.6); }
.cc-view-btn.active {
  background: var(--primary, #225aeb);
  color: #fff;
}
.cc-view-btn svg { pointer-events: none; }
.cc-compare-open-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(34,90,235,.15);
  border: 1px solid rgba(34,90,235,.3);
  color: #5b8fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.cc-compare-open-btn:hover { background: rgba(34,90,235,.25); }
.cc-compare-open-btn.visible { display: flex; }

.cc-create-trn-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #2978a0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
  white-space: nowrap;
}
.cc-create-trn-btn:hover {
  background: #fff;
  color: #222;
  transform: translateY(-1px);
}
.cc-compare-count {
  background: var(--primary, #225aeb);
  color: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}

.cc-layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 600px;
  align-items: start;
}

.cc-sidebar {
  border-right: 1px solid var(--trn-border, rgba(255,255,255,.06));
  padding: 20px 0;
  position: sticky;
  max-height: calc(100vh - var(--nav-h, 56px) - 36px - 56px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.cc-sidebar::-webkit-scrollbar { width: 3px; }
.cc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 2px; }

.cc-sidebar-section { padding: 0 16px 18px; }
.cc-sidebar-section + .cc-sidebar-section {
  border-top: 1px solid var(--trn-border, rgba(255,255,255,.06));
  padding-top: 16px;
}
.cc-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}

.cc-status-pills { display: flex; flex-direction: column; gap: 4px; }
.cc-status-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-align: left;
  width: 100%;
}
.cc-status-pill:hover {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.7);
}
.cc-status-pill.active {
  background: rgba(34,90,235,.12);
  border-color: rgba(34,90,235,.25);
  color: #fff;
}
.cc-status-pill__left { display: flex; align-items: center; gap: 8px; }
.cc-status-pill__count {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 1px 6px;
}
.cc-status-pill.active .cc-status-pill__count {
  background: rgba(34,90,235,.25);
  color: #5b8fff;
}
.cc-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cc-game-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-game-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cc-game-pill:hover { color: rgba(255,255,255,.7); background: rgba(255,255,255,.07); }
.cc-game-pill.active {
  color: #fff;
  background: rgba(34,90,235,.15);
  border-color: rgba(34,90,235,.3);
}
.cc-game-pill img { width: 14px; height: 14px; object-fit: contain; }

.cc-adv-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 0; margin-bottom: 10px;
}
.cc-adv-toggle-label {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.25);
  text-transform: uppercase; letter-spacing: .8px;
}
.cc-adv-toggle-icon {
  color: rgba(255,255,255,.2);
  transition: transform .2s;
}
.cc-adv-toggle-icon.open { transform: rotate(180deg); }
.cc-adv-content { display: none; flex-direction: column; gap: 12px; }
.cc-adv-content.open { display: flex; }
.cc-adv-group-title {
  font-size: 10px; color: rgba(255,255,255,.25);
  margin-bottom: 6px;
}
.cc-adv-checks { display: flex; flex-direction: column; gap: 5px; }
.cc-adv-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(255,255,255,.5);
  cursor: pointer;
}
.cc-adv-check input[type="checkbox"] {
  width: 13px; height: 13px; cursor: pointer;
  accent-color: var(--primary, #225aeb);
}
.cc-adv-check:hover { color: rgba(255,255,255,.8); }
.cc-adv-reset {
  margin-top: 4px;
  font-size: 10px; color: rgba(255,255,255,.2);
  background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  padding: 0;
}
.cc-adv-reset:hover { color: rgba(255,255,255,.5); }

.cc-my-list { display: flex; flex-direction: column; gap: 6px; }
.cc-my-item {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.cc-my-item:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.cc-my-item__name {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.85);
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.cc-my-item__meta {
  font-size: 10px;
  color: rgba(255,255,255,.3);
}

.cc-watchlist-empty {
  font-size: 11px;
  color: rgba(255,255,255,.2);
  font-style: italic;
}
.cc-watchlist-list { display: flex; flex-direction: column; gap: 5px; }
.cc-watchlist-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  transition: background .15s;
}
.cc-watchlist-item:hover { background: rgba(255,255,255,.07); }
.cc-watchlist-item__name {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.7);
  flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-watchlist-remove {
  flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.2); padding: 0;
  transition: color .15s;
}
.cc-watchlist-remove:hover { color: #ef4444; }

.cc-main { padding: 20px 24px; min-width: 0; }

.cc-section { margin-bottom: 28px; }
.cc-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.cc-section-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  color: rgba(255,255,255,.4);
  display: flex; align-items: center; gap: 8px;
}
.cc-section-title--live { color: #39e580; }
.cc-section-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #39e580;
  box-shadow: 0 0 8px #39e580;
  animation: trn2-pulse 1.4s infinite;
}
.cc-section-count {
  font-size: 10px;
  color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 1px 7px;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.cc-grid--live {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.cc-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--trn-card, rgba(255,255,255,.04));
  border: 1px solid var(--trn-border, rgba(255,255,255,.07));
  transition: border-color .2s, box-shadow .2s, transform .18s;
  display: flex;
  flex-direction: column;
}
.cc-card:hover {
  border-color: rgba(34,90,235,.35);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
.cc-card--live {
  border-color: rgba(57,229,128,.2);
}
.cc-card--live:hover { border-color: rgba(57,229,128,.45); }
.cc-card--selected {
  border-color: rgba(34,90,235,.6) !important;
  box-shadow: 0 0 0 2px rgba(34,90,235,.25) !important;
}

.cc-card__thumb {
  position: relative;
  height: 96px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34,90,235,.1) 0%, rgba(0,0,0,.3) 100%);
}
.cc-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 6s ease;
}
.cc-card:hover .cc-card__bg { transform: scale(1.04); }
.cc-card__bg--blur { filter: blur(12px) brightness(.4) saturate(1.4); transform: scale(1.1); }
.cc-card:hover .cc-card__bg--blur { transform: scale(1.14); }
.cc-card__bg--empty {
  background: linear-gradient(135deg, rgba(34,90,235,.08) 0%, rgba(0,0,0,.2) 100%);
}
.cc-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}

.cc-card__logo {
  position: absolute; bottom: 8px; left: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 7px;
  overflow: hidden;
  background: rgba(13,12,20,.8);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.cc-card__logo img { width: 100%; height: 100%; object-fit: contain; }

.cc-card__badge {
  position: absolute; top: 0px; right: 0px; z-index: 3;
}

.cc-card__compare-chk {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  width: 20px; height: 20px;
  background: rgba(0,0,0,.6);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  opacity: 0;
  transition: opacity .15s, background .15s;
}
.cc-card:hover .cc-card__compare-chk,
.cc-card--selected .cc-card__compare-chk { opacity: 1; }
.cc-card--selected .cc-card__compare-chk {
  background: var(--primary, #225aeb);
  border-color: var(--primary, #225aeb);
}
.cc-card__compare-chk svg { pointer-events: none; }

.cc-card__fav {
  position: absolute; bottom: 8px; right: 8px; z-index: 4;
  width: 24px; height: 24px;
  background: rgba(0,0,0,.5);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,.25);
  transition: color .15s, background .15s;
  opacity: 0;
}
.cc-card:hover .cc-card__fav { opacity: 1; }
.cc-card__fav:hover { color: #f0b429; background: rgba(0,0,0,.7); }
.cc-card__fav.active {
  opacity: 1;
  color: #f0b429;
}

.cc-card__body {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.cc-card__meta {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.cc-card__game-tag {
  font-size: 10px; font-weight: 700;
  color: var(--primary, #5b8fff);
  background: rgba(34,90,235,.1);
  padding: 2px 7px; border-radius: 4px;
}
.cc-card__fmt-tag {
  font-size: 10px; color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.05);
  padding: 2px 7px; border-radius: 4px;
}
.cc-card__name {
  font-size: 13px; font-weight: 800;
  color: var(--text, #fff);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cc-card__stats {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.cc-card__prize { font-size: 12px; font-weight: 700; color: var(--trn-gold, #f0b429); }
.cc-card__teams, .cc-card__date {
  font-size: 11px; color: rgba(255,255,255,.35);
  display: flex; align-items: center; gap: 4px;
}

.cc-card__progress {
  height: 3px;
  background: rgba(255,255,255,.07);
  border-radius: 2px;
  overflow: hidden;
}
.cc-card__progress-fill {
  height: 100%; border-radius: 2px;
  transition: width .3s ease;
}

.cc-card__deadline {
  font-size: 10px; font-weight: 600;
  color: rgba(91,173,255,.7);
  display: flex; align-items: center; gap: 4px;
}

.cc-card__score {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}
.cc-card__score-team {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.5);
  text-align: center;
}
.cc-card__score-team .name { display: block; margin-bottom: 3px; }
.cc-card__score-team .val {
  font-size: 20px; font-weight: 900; color: #fff;
  line-height: 1;
}
.cc-card__score-team .val.win { color: #39e580; }
.cc-card__score-sep {
  text-align: center;
  font-size: 10px; color: rgba(255,255,255,.2);
}

.cc-card__actions {
  display: flex; gap: 6px;
  margin-top: auto;
}
.cc-card__action {
  flex: 1; padding: 7px 8px;
  border-radius: 7px;
  font-size: 11px; font-weight: 700;
  text-align: center; text-decoration: none;
  cursor: pointer; border: none;
  transition: opacity .15s, transform .12s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.cc-card__action:hover { opacity: .85; transform: translateY(-1px); }
.cc-card__action--primary { background: var(--primary, #225aeb); color: #fff; }
.cc-card__action--ghost {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
}
.cc-card__action--live {
  background: rgba(57,229,128,.12);
  border: 1px solid rgba(57,229,128,.2);
  color: #39e580;
}

.cc-archive { margin-top: 0; }
.cc-archive-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto auto 20px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.cc-archive-row:hover { background: rgba(255,255,255,.04); }
.cc-archive-row + .cc-archive-row { border-top: 1px solid rgba(255,255,255,.04); }
.cc-archive-logo {
  width: 32px; height: 32px; border-radius: 7px;
  object-fit: contain;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}
.cc-archive-logopl {
  width: 32px; height: 32px; border-radius: 7px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: rgba(255,255,255,.4);
}
.cc-archive-info { min-width: 0; }
.cc-archive-name {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75);
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-archive-meta { font-size: 10px; color: rgba(255,255,255,.3); }
.cc-archive-winner {
  font-size: 11px; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.cc-archive-prize { font-size: 11px; color: var(--trn-gold, #f0b429); white-space: nowrap; }
.cc-archive-date { font-size: 11px; color: rgba(255,255,255,.25); white-space: nowrap; }
.cc-archive-arrow { color: rgba(255,255,255,.2); transition: color .15s; }
.cc-archive-row:hover .cc-archive-arrow { color: rgba(255,255,255,.6); }

.cc-calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cc-cal-month {}
.cc-cal-month-title {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.cc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cc-cal-dow {
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,.2);
  text-align: center; padding: 4px 0;
  text-transform: uppercase;
}
.cc-cal-cell {
  min-height: 52px;
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  padding: 4px;
  position: relative;
}
.cc-cal-cell--empty { background: transparent; border-color: transparent; }
.cc-cal-cell--today {
  background: rgba(34,90,235,.08);
  border-color: rgba(34,90,235,.2);
}
.cc-cal-day {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.25);
  display: block; margin-bottom: 3px;
}
.cc-cal-cell--today .cc-cal-day { color: var(--primary, #5b8fff); }
.cc-cal-events { display: flex; flex-direction: column; gap: 2px; }
.cc-cal-event {
  display: block;
  font-size: 9px; font-weight: 700;
  padding: 2px 4px; border-radius: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
  cursor: pointer;
}
.cc-cal-event--live   { background: rgba(57,229,128,.2);  color: #39e580; }
.cc-cal-event--reg    { background: rgba(91,173,255,.15); color: #5badff; }
.cc-cal-event--soon   { background: rgba(167,139,250,.15); color: #a78bfa; }
.cc-cal-event--done   { background: rgba(255,255,255,.06); color: rgba(255,255,255,.3); }

.cc-compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(13,12,20,.97);
  border-top: 1px solid rgba(34,90,235,.3);
  backdrop-filter: blur(20px);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.cc-compare-bar.visible { transform: translateY(0); }
.cc-compare-bar__label {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5);
  white-space: nowrap;
}
.cc-compare-bar__slots { display: flex; gap: 10px; flex: 1; }
.cc-compare-bar__slot {
  flex: 1; max-width: 200px;
  height: 40px; border-radius: 8px;
  border: 1.5px dashed rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(255,255,255,.2);
  position: relative;
  background: rgba(255,255,255,.03);
}
.cc-compare-bar__slot.filled {
  border-style: solid;
  border-color: rgba(34,90,235,.35);
  background: rgba(34,90,235,.08);
  justify-content: space-between;
  padding: 0 10px;
  color: rgba(255,255,255,.8);
  font-weight: 700;
}
.cc-compare-bar__slot-name {
  font-size: 11px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-compare-bar__slot-remove {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.3); font-size: 14px; padding: 0;
  flex-shrink: 0;
}
.cc-compare-bar__slot-remove:hover { color: #ef4444; }
.cc-compare-bar__actions { display: flex; gap: 8px; margin-left: auto; }
.cc-compare-bar__go {
  padding: 9px 20px; border-radius: 8px;
  background: var(--primary, #225aeb); color: #fff;
  font-size: 12px; font-weight: 700;
  cursor: pointer; border: none;
  transition: opacity .15s;
}
.cc-compare-bar__go:hover { opacity: .85; }
.cc-compare-bar__clear {
  padding: 9px 14px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.4);
  font-size: 12px; font-weight: 600;
  cursor: pointer; border: none;
  transition: background .15s;
}
.cc-compare-bar__clear:hover { background: rgba(255,255,255,.1); }

.cc-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cc-modal-box {
  background: var(--surface, #13111d);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  width: 100%; max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}
.cc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.cc-modal-title {
  font-size: 17px; font-weight: 800;
  color: var(--text, #fff);
}
.cc-modal-close {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.07); border: none;
  border-radius: 8px; cursor: pointer;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cc-modal-close:hover { background: rgba(255,255,255,.13); color: #fff; }

.cc-compare-table {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  overflow: hidden;
}
.cc-compare-row {
  display: grid;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cc-compare-row:last-child { border-bottom: none; }
.cc-compare-row--header { background: rgba(255,255,255,.04); }
.cc-compare-cell {
  padding: 11px 14px;
  font-size: 12px; color: rgba(255,255,255,.7);
  border-right: 1px solid rgba(255,255,255,.05);
}
.cc-compare-cell:last-child { border-right: none; }
.cc-compare-cell--label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.02);
}
.cc-compare-cell--winner {
  color: #39e580; font-weight: 700;
}
.cc-compare-row--header .cc-compare-cell {
  font-weight: 800;
  color: #fff;
}

.cc-qreg-box {
  background: var(--surface, #13111d);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  width: 100%; max-width: 420px;
  padding: 28px;
  position: relative;
}
.cc-qreg-logo-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.cc-qreg-logo {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.cc-qreg-logo-ph {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(34,90,235,.12); border: 1px solid rgba(34,90,235,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #5b8fff;
}
.cc-qreg-tname {
  font-size: 16px; font-weight: 800; color: #fff;
  line-height: 1.2;
}
.cc-qreg-tgame { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }
.cc-qreg-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 20px;
}
.cc-qreg-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 10px 12px;
}
.cc-qreg-stat-val { font-size: 15px; font-weight: 800; color: #fff; }
.cc-qreg-stat-lbl { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 2px; }
.cc-qreg-confirm {
  width: 100%;
  padding: 12px;
  border-radius: 9px;
  background: var(--primary, #225aeb);
  color: #fff;
  font-size: 14px; font-weight: 800;
  cursor: pointer; border: none;
  transition: opacity .15s;
  margin-bottom: 8px;
}
.cc-qreg-confirm:hover { opacity: .85; }
.cc-qreg-confirm:disabled { opacity: .5; cursor: not-allowed; }
.cc-qreg-cancel {
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.cc-qreg-cancel:hover { background: rgba(255,255,255,.09); }
.cc-qreg-result {
  padding: 12px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-align: center;
  display: none;
}
.cc-qreg-result--ok { background: rgba(57,229,128,.1); border: 1px solid rgba(57,229,128,.2); color: #39e580; }
.cc-qreg-result--err { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); color: #ef4444; }

.cc-empty {
  padding: 48px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.cc-empty svg { color: rgba(255,255,255,.1); }
.cc-empty__title { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.4); }
.cc-empty__sub { font-size: 13px; color: rgba(255,255,255,.2); }
.cc-empty__reset {
  margin-top: 4px;
  padding: 8px 18px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.cc-empty__reset:hover { background: rgba(255,255,255,.1); }

.cc-showmore {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.4); font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.cc-showmore:hover { background: rgba(255,255,255,.07); }

@media (max-width: 1024px) {
  .cc-layout { grid-template-columns: 1fr; }
  .cc-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--trn-border, rgba(255,255,255,.06));
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .cc-sidebar-section + .cc-sidebar-section { border-top: none; padding-top: 0; }
  .cc-calendar { grid-template-columns: 1fr; }
  .cc-compare-bar { padding: 12px 16px; }
}
@media (max-width: 640px) {
  .cc-header { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .cc-main { padding: 16px; }
  .cc-grid { grid-template-columns: 1fr 1fr; }
  .cc-compare-bar__slot:nth-child(3) { display: none; }
  .cc-archive-row { grid-template-columns: 32px 1fr auto 20px; }
  .cc-archive-prize, .cc-archive-date { display: none; }
  .cc-sidebar { grid-template-columns: 1fr; }
}

[data-theme="light"] .cc-ticker {
  background: rgba(240,244,245,.97);
  border-bottom-color: rgba(22,163,74,.2);
}
[data-theme="light"] .cc-ticker__tag {
  background: rgba(22,163,74,.08);
  border-right-color: rgba(22,163,74,.15);
}
[data-theme="light"] .cc-header { border-bottom-color: var(--border); }
[data-theme="light"] .cc-header__title { color: var(--text); }
[data-theme="light"] .cc-header__stat-lbl { color: var(--muted); }
[data-theme="light"] .cc-view-toggle { background: var(--surface); border-color: var(--border2); }
[data-theme="light"] .cc-view-btn { color: var(--muted); }
[data-theme="light"] .cc-sidebar { border-right-color: var(--border); }
[data-theme="light"] .cc-sidebar-section + .cc-sidebar-section { border-top-color: var(--border); }
[data-theme="light"] .cc-sidebar-title { color: var(--muted); }
[data-theme="light"] .cc-status-pill { color: var(--muted2); }
[data-theme="light"] .cc-status-pill:hover { background: var(--surface2); color: var(--text); }
[data-theme="light"] .cc-status-pill.active { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); }
[data-theme="light"] .cc-status-pill__count { background: var(--surface3); color: var(--muted2); }
[data-theme="light"] .cc-game-pill { background: var(--surface); border-color: var(--border2); color: var(--muted2); }
[data-theme="light"] .cc-game-pill:hover { background: var(--surface2); color: var(--text); }
[data-theme="light"] .cc-game-pill.active { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); }
[data-theme="light"] .cc-card { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: 0 2px 8px rgba(37,48,49,.06); }
[data-theme="light"] .cc-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(37,48,49,.12); }
[data-theme="light"] .cc-card__name { color: var(--text); }
[data-theme="light"] .cc-card__fmt-tag { background: var(--surface3); color: var(--muted2); }
[data-theme="light"] .cc-card__teams, [data-theme="light"] .cc-card__date { color: var(--muted2); }
[data-theme="light"] .cc-card__deadline { color: var(--primary); }
[data-theme="light"] .cc-card__progress { background: rgba(37,48,49,.08); }
[data-theme="light"] .cc-card__score { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .cc-card__action--ghost { background: var(--surface2); border-color: var(--border2); color: var(--muted2); }
[data-theme="light"] .cc-archive-row:hover { background: var(--surface2); }
[data-theme="light"] .cc-archive-name { color: var(--text2); }
[data-theme="light"] .cc-archive-meta { color: var(--muted); }
[data-theme="light"] .cc-archive-winner { color: var(--text2); }
[data-theme="light"] .cc-archive-date { color: var(--muted); }
[data-theme="light"] .cc-archive-logopl { background: var(--surface3); border-color: var(--border2); color: var(--muted2); }
[data-theme="light"] .cc-create-trn-btn {
  background: #2978a0;
  color: #fff;
}
[data-theme="light"] .cc-cal-cell { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .cc-cal-cell--empty { background: transparent; border-color: transparent; }
[data-theme="light"] .cc-cal-day { color: var(--muted); }
[data-theme="light"] .cc-modal-box, [data-theme="light"] .cc-qreg-box { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .cc-compare-bar { background: rgba(240,244,245,.97); border-top-color: rgba(34,90,235,.25); }
[data-theme="light"] .cc-my-item { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .cc-my-item__name { color: var(--text2); }
[data-theme="light"] .cc-my-item__meta { color: var(--muted); }
[data-theme="light"] .cc-ticker__empty { color: var(--muted); }
[data-theme="light"] .cc-ticker__trn { color: var(--muted); }
[data-theme="light"] .cc-ticker__teams { color: var(--text); }
[data-theme="light"] .cc-ticker__sep { color: var(--border3); }
[data-theme="light"] .cc-ticker__item { border-right-color: var(--border2); }

[data-theme="light"] .cc-header__stat-val { color: var(--primary); }
[data-theme="light"] .cc-view-btn.active { background: var(--primary); color: #fff; }
[data-theme="light"] .cc-compare-open-btn { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); }

[data-theme="light"] .cc-status-pill.active .cc-status-pill__count { background: var(--primary-light); color: var(--primary); }
[data-theme="light"] .cc-adv-toggle-label { color: var(--muted); }
[data-theme="light"] .cc-adv-toggle-icon { color: var(--muted); }
[data-theme="light"] .cc-adv-group-title { color: var(--muted); }
[data-theme="light"] .cc-adv-check { color: var(--muted2); }
[data-theme="light"] .cc-adv-check:hover { color: var(--text); }
[data-theme="light"] .cc-adv-reset { color: var(--muted); }
[data-theme="light"] .cc-adv-reset:hover { color: var(--text); }
[data-theme="light"] .cc-watchlist-empty { color: var(--muted); }
[data-theme="light"] .cc-watchlist-item { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .cc-watchlist-item:hover { background: var(--surface3); }
[data-theme="light"] .cc-watchlist-item__name { color: var(--text2); }
[data-theme="light"] .cc-watchlist-remove { color: var(--muted); }

[data-theme="light"] .cc-section-title { color: var(--muted2); }
[data-theme="light"] .cc-section-title--live { color: #16a34a; }
[data-theme="light"] .cc-section-count { background: var(--surface3); border-color: var(--border2); color: var(--muted2); }

[data-theme="light"] .cc-card--live { border-color: rgba(22,163,74,.25); }
[data-theme="light"] .cc-card--live:hover { border-color: rgba(22,163,74,.5); }
[data-theme="light"] .cc-card--selected { border-color: var(--primary) !important; box-shadow: 0 0 0 2px var(--primary-light) !important; }
[data-theme="light"] .cc-card__bg--empty { background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%); }
[data-theme="light"] .cc-card__overlay { background: linear-gradient(to top, rgba(240,244,245,.8) 0%, rgba(240,244,245,.1) 60%, transparent 100%); }
[data-theme="light"] .cc-card__logo { background: rgba(255,255,255,.9); border-color: var(--border2); }
[data-theme="light"] .cc-card__game-tag { color: var(--primary); background: var(--primary-light); }
[data-theme="light"] .cc-card__stats { color: var(--muted2); }
[data-theme="light"] .cc-card__score-team { color: var(--muted2); }
[data-theme="light"] .cc-card__score-team .val { color: var(--text); }
[data-theme="light"] .cc-card__score-team .val.win { color: #16a34a; }
[data-theme="light"] .cc-card__score-sep { color: var(--border3); }
[data-theme="light"] .cc-card__action--primary { background: var(--primary); color: #fff; }
[data-theme="light"] .cc-card__action--live { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.25); color: #16a34a; }
[data-theme="light"] .cc-card__compare-chk { background: rgba(255,255,255,.8); border-color: var(--border3); }
[data-theme="light"] .cc-card--selected .cc-card__compare-chk { background: var(--primary); border-color: var(--primary); }
[data-theme="light"] .cc-card__fav { background: rgba(255,255,255,.7); color: var(--muted); }
[data-theme="light"] .cc-card__fav:hover { color: #d97706; background: rgba(255,255,255,.9); }
[data-theme="light"] .cc-card__fav.active { color: #d97706; }

[data-theme="light"] .cc-archive-row { color: var(--text); }
[data-theme="light"] .cc-archive-row + .cc-archive-row { border-top-color: var(--border); }
[data-theme="light"] .cc-archive-logo { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .cc-archive-prize { color: #b45309; }
[data-theme="light"] .cc-archive-arrow { color: var(--muted); }
[data-theme="light"] .cc-archive-row:hover .cc-archive-arrow { color: var(--primary); }

[data-theme="light"] .cc-cal-month-title { color: var(--text2); }
[data-theme="light"] .cc-cal-dow { color: var(--muted); }
[data-theme="light"] .cc-cal-cell--today { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
[data-theme="light"] .cc-cal-event--live   { background: rgba(22,163,74,.15);  color: #166534; }
[data-theme="light"] .cc-cal-event--reg    { background: var(--primary-light); color: var(--primary); }
[data-theme="light"] .cc-cal-event--soon   { background: rgba(124,58,237,.1);  color: #6d28d9; }
[data-theme="light"] .cc-cal-event--done   { background: var(--surface3); color: var(--muted2); }

[data-theme="light"] .cc-compare-bar__label { color: var(--muted2); }
[data-theme="light"] .cc-compare-bar__slot { background: var(--surface2); border-color: var(--border2); color: var(--muted); }
[data-theme="light"] .cc-compare-bar__slot.filled { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--text); }
[data-theme="light"] .cc-compare-bar__slot-name { color: var(--text2); }
[data-theme="light"] .cc-compare-bar__slot-remove { color: var(--muted); }
[data-theme="light"] .cc-compare-bar__clear { background: var(--surface2); border: 1px solid var(--border2); color: var(--muted2); }
[data-theme="light"] .cc-compare-bar__clear:hover { background: var(--surface3); }

[data-theme="light"] .cc-modal-title { color: var(--text); }
[data-theme="light"] .cc-modal-close { background: var(--surface2); color: var(--muted2); }
[data-theme="light"] .cc-modal-close:hover { background: var(--surface3); color: var(--text); }
[data-theme="light"] .cc-compare-table { border-color: var(--border); }
[data-theme="light"] .cc-compare-row { border-bottom-color: var(--border); }
[data-theme="light"] .cc-compare-row--header { background: var(--surface2); }
[data-theme="light"] .cc-compare-cell { color: var(--text2); border-right-color: var(--border); }
[data-theme="light"] .cc-compare-cell--label { color: var(--muted2); background: var(--surface2); }
[data-theme="light"] .cc-compare-row--header .cc-compare-cell { color: var(--text); }

[data-theme="light"] .cc-qreg-tname { color: var(--text); }
[data-theme="light"] .cc-qreg-tgame { color: var(--muted); }
[data-theme="light"] .cc-qreg-logo-ph { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); }
[data-theme="light"] .cc-qreg-stat { background: var(--surface2); border-color: var(--border2); }
[data-theme="light"] .cc-qreg-stat-val { color: var(--text); }
[data-theme="light"] .cc-qreg-stat-lbl { color: var(--muted); }
[data-theme="light"] .cc-qreg-cancel { background: var(--surface2); border-color: var(--border2); color: var(--muted2); }
[data-theme="light"] .cc-qreg-cancel:hover { background: var(--surface3); }

[data-theme="light"] .cc-empty svg { color: var(--border3); }
[data-theme="light"] .cc-empty__title { color: var(--text2); }
[data-theme="light"] .cc-empty__sub { color: var(--muted); }
[data-theme="light"] .cc-empty__reset { background: var(--surface2); border-color: var(--border2); color: var(--muted2); }
[data-theme="light"] .cc-empty__reset:hover { background: var(--surface3); color: var(--text); }

[data-theme="light"] .cc-showmore { background: var(--surface2); border-color: var(--border2); color: var(--muted2); }
[data-theme="light"] .cc-showmore:hover { background: var(--surface3); color: var(--text); }




.apb {
    margin: 12px 16px 4px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    position: relative;
    background: linear-gradient(120deg, #0d1f35 0%, #091624 60%, #0a1a10 100%);
}

.apb::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}

.apb__inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}

.apb__content {
    flex: 1;
    min-width: 0;
}

.apb__eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}
.apb__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.apb__title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: -.3px;
}
.apb__title span {
    color: var(--primary);
}

.apb__desc {
    font-size: 12px;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.5;
}

.apb__btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.apb__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
}
.apb__btn:hover { opacity: .85; transform: translateY(-1px); }
.apb__btn--primary {
    background: var(--primary);
    color: #fff;
}
.apb__btn--ghost {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
}
.apb__btn--ghost:hover {
    background: rgba(255,255,255,.12);
    opacity: 1;
}

.apb__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 32px;
    border-left: 1px solid rgba(255,255,255,.06);
    border-right: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.apb__feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.apb__feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    flex-shrink: 0;
}
.apb__feat-icon--1 { background: rgba(1,111,185,.25); color: #7ec8f7; }
.apb__feat-icon--2 { background: rgba(255,149,5,.2);  color: #FF9505; }
.apb__feat-icon--3 { background: rgba(34,197,94,.15); color: #4ade80; }
.apb__feat-icon--4 { background: rgba(168,85,247,.15);color: #c084fc; }

.apb__deco {
    position: relative;
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-left: 24px;
}

.apb__glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1,111,185,.35) 0%, transparent 70%);
    pointer-events: none;
}

.apb__phone {
    width: 38px;
    height: 66px;
    border-radius: 8px;
    border: 2px solid rgba(1,111,185,.5);
    background: rgba(1,111,185,.08);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.apb__phone-screen {
    width: 28px;
    height: 50px;
    border-radius: 4px;
    background: rgba(1,111,185,.12);
    padding: 6px 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.apb__phone-bar {
    height: 3px;
    border-radius: 2px;
    background: rgba(1,111,185,.5);
}
.apb__phone-bar--1 { width: 100%; }
.apb__phone-bar--2 { width: 75%; }
.apb__phone-bar--3 { width: 55%; }
.apb__phone-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: auto;
    align-self: center;
    box-shadow: 0 0 6px var(--primary);
}

[data-theme="light"] .apb {
    background: #fff;
}

[data-theme="light"] .apb__title {
    color:#222;
}

[data-theme="light"] .apb__feat {
    color:#222;
}

[data-theme="light"] .apb__desc {
    color:#222;
}

@media (max-width: 1000px) {
    .apb__deco { display: none; }
    .apb__features { padding: 0 20px; }
}
@media (max-width: 750px) {
    .apb__features { display: none; }
}
@media (max-width: 600px) {
    .apb { margin: 4px 8px; border-radius: 12px; }
    .apb__inner { padding: 16px; }
    .apb__title { font-size: 16px; }
}




.party-cta-section {
    margin: 12px 16px 4px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.party-cta__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
}

.party-cta__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.party-cta__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(1,111,185,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.party-cta__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.party-cta__title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}
.party-cta__sub {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.party-cta__games {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.party-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
}
.party-game-btn:hover {
    border-color: var(--primary);
    background: rgba(1,111,185,.08);
}
.party-game-btn__logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
}
.party-game-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.party-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .15s;
}
.party-cta__btn:hover { opacity: .85; }

@media (max-width: 900px) {
    .party-cta__inner { flex-wrap: wrap; gap: 10px; }
    .party-cta__btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .party-cta-section { margin: 4px 8px; border-radius: 12px; }
    .party-cta__inner { padding: 12px 14px; }
    .party-cta__icon { display: none; }
}




.np-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: 100vh;
  padding-top: var(--nav-h);
  align-items: start;
}

.np-main {
  border-right: 1px solid var(--border);
  min-width: 0;
  padding-bottom: 64px;
}

.np-sidebar {
  padding: 0px 20px 40px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.np-hero {
  position: relative;
  width: calc(100% - 48px);
  margin: 24px auto 0;
  aspect-ratio: 21/9;
  min-height: 240px;
  max-height: 460px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 12px;
}

.np-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.np-hero:hover .np-hero__img {
  transform: scale(1.03);
}

.np-hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}

.np-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.35) 50%,
    transparent 100%
  );
}

.np-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  gap: 10px;
}

.np-hero__title {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin: 0;
  max-width: 720px;
  letter-spacing: -.02em;
}

.np-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.np-hero__meta svg { opacity: .8; }
.np-hero__time,
.np-hero__comments,
.np-hero__reacts {
  display: flex;
  align-items: center;
  gap: 5px;
}

.np-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--tag-color, var(--primary)) 18%, transparent);
  color: var(--tag-color, var(--primary));
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--primary)) 30%, transparent);
  transition: background .15s, transform .1s;
  align-self: flex-start;
  text-decoration: none;
}
.np-tag:hover { background: color-mix(in srgb, var(--tag-color, var(--primary)) 28%, transparent); transform: translateY(-1px); }
.np-tag--sm { font-size: 10px; padding: 2px 8px; }

.np-article {
  padding: 28px 32px 20px;
  max-width: 780px;
}

.np-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

.np-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.np-content p   { margin: 0 0 16px; }
.np-content h2,
.np-content h3,
.np-content h4  { font-weight: 800; letter-spacing: -.01em; margin: 28px 0 10px; color: var(--text); }
.np-content h2  { font-size: 22px; }
.np-content h3  { font-size: 18px; }
.np-content h4  { font-size: 15px; }
.np-content ul,
.np-content ol  { padding-left: 22px; margin: 0 0 16px; }
.np-content li  { margin-bottom: 6px; }
.np-content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}
.np-content blockquote p  { margin: 0 0 6px; font-style: italic; }
.np-content blockquote cite { font-size: 12px; color: var(--muted); }
.np-content hr.np-delimiter {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.np-content pre  {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.np-content code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.np-img-block {
  margin: 20px 0;
}
.np-img-block img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.np-img-block figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}
.np-embed-block {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 20px 0;
  border-radius: 10px;
}
.np-embed-block iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.np-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.np-reactions {
  padding: 20px 32px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.np-reactions__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.np-reactions__row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.np-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  position: relative;
  user-select: none;
}
.np-react-btn:hover {
  background: var(--surface2);
  border-color: color-mix(in srgb, var(--border) 80%, var(--primary));
  transform: translateY(-1px);
}
.np-react-btn--active {
  background: color-mix(in srgb, var(--primary) 15%, var(--surface));
  border-color: var(--primary);
  color: var(--primary);
}
.np-react-emoji {
  font-size: 17px;
  line-height: 1;
  display: inline-block;
}
.np-react-count {
  font-size: 12px;
  font-weight: 700;
  min-width: 12px;
}

@keyframes np-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.np-react-btn--pop .np-react-emoji {
  animation: np-pop .28s cubic-bezier(.36,.07,.19,.97) both;
}

.np-comments {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
}

.np-comments__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface2);
  color: var(--muted);
}

.np-comments__empty {
  font-size: 13px;
  color: var(--muted);
  padding: 24px 0;
  text-align: center;
}

.np-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.np-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.np-input:focus { border-color: var(--primary); }
.np-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color .15s;
  box-sizing: border-box;
  flex: 1;
}
.np-textarea:focus { border-color: var(--primary); }
.np-comment-form__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.np-btn-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
}
.np-btn-send:hover   { background: color-mix(in srgb, var(--primary) 85%, #fff); transform: scale(1.04); }
.np-btn-send:disabled{ opacity: .5; pointer-events: none; }
.np-comment-form__error {
  font-size: 12px;
  color: #f87171;
  min-height: 16px;
}
.np-reply-cancel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s;
  align-self: flex-start;
}
.np-reply-cancel:hover { border-color: #f87171; color: #f87171; }

.np-comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.np-comment:last-child { border-bottom: none; }
.np-comment--reply {
  padding-left: 28px;
  border-bottom: none;
  padding-top: 10px;
  padding-bottom: 4px;
}
.np-comment__avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.np-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.np-comment__body { flex: 1; min-width: 0; }
.np-comment__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.np-comment__name { font-size: 13px; font-weight: 700; color: var(--text); }
.np-comment__time { font-size: 11px; color: var(--muted); }
.np-comment__text { font-size: 13px; line-height: 1.6; color: var(--text); word-break: break-word; }
.np-comment__reply-btn {
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: color .15s;
}
.np-comment__reply-btn:hover { color: var(--primary); }

.np-comment__delete-btn {
  margin-left: auto;
  background: none;
  border: none;
  padding: 3px 5px;
  cursor: pointer;
  color: var(--muted);
  opacity: 0;
  transition: opacity .15s, color .15s;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.np-comment__delete-btn:hover { color: #f87171; opacity: 1 !important; }
.np-comment__delete-btn:disabled { pointer-events: none; opacity: .3 !important; }
.np-comment:hover .np-comment__delete-btn,
.np-comment--reply:hover .np-comment__delete-btn { opacity: 0.45; }

@keyframes np-fade-out {
  from { opacity: 1; transform: scaleY(1); max-height: 200px; }
  to   { opacity: 0; transform: scaleY(0.8); max-height: 0; padding-top: 0; padding-bottom: 0; }
}
.np-comment--deleting {
  animation: np-fade-out .28s ease forwards;
  pointer-events: none;
  overflow: hidden;
}
.np-comment__replies {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

@keyframes np-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.np-comment--new {
  animation: np-slide-in .3s ease both;
}

.np-sidebar__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 14px;
}

.np-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.np-sb-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity .15s;
}
.np-sb-card:last-child { border-bottom: none; }
.np-sb-card:hover { opacity: .78; }

.np-sb-card__thumb {
  flex-shrink: 0;
  width: 54px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface2);
}
.np-sb-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-sb-card__no-img    { width: 100%; height: 100%; background: var(--surface2); }

.np-sb-card__body { flex: 1; min-width: 0; }
.np-sb-card__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.np-sb-card__time { font-size: 10px; color: var(--muted); }

[data-theme="light"] .np-hero__overlay {
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}

@media (max-width: 900px) {
  .np-wrap {
    grid-template-columns: 1fr;
  }
  .np-sidebar {
    position: static;
    border-top: 1px solid var(--border);
    padding: 20px 16px 32px;
  }
  .np-main { border-right: none; }
}

@media (max-width: 600px) {
  .np-hero { width: calc(100% - 24px); margin-top: 12px; }
  .np-hero__content { padding: 16px; }
  .np-article,
  .np-reactions,
  .np-comments { padding-left: 16px; padding-right: 16px; }
  .np-comment--reply { padding-left: 14px; }
}




.nwf-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(1,111,185,.12);
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 6px;
}
.nwf-tag--sm { display:none; }

.nwf-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.nwf-featured {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 11;
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.nwf-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.nwf-featured__thumb {
    position: relative;
    width: 100%;
    height: 100%;
}
.nwf-featured__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.nwf-featured:hover .nwf-featured__thumb img {
    transform: scale(1.03);
}
.nwf-featured__no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
}

.nwf-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.4)  50%,
        rgba(0,0,0,.05) 100%
    );
}

.nwf-featured__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 16px 16px;
}
.nwf-featured__content .nwf-tag {
    background: rgba(1,111,185,.3);
    color: #7ec8f7;
    margin-bottom: 8px;
}
.nwf-featured__title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nwf-featured__time {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    font-weight: 500;
}

.nwf-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nwf-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nwf-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color .15s, transform .2s;
}
.nwf-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.nwf-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface2);
    flex-shrink: 0;
}
.nwf-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.nwf-card:hover .nwf-card__thumb img { transform: scale(1.04); }
.nwf-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
}

.nwf-card__body {
    padding: 10px 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.nwf-card__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.nwf-card:hover .nwf-card__title { color: var(--primary); }
.nwf-card__time {
    font-size: 10px;
    color: var(--muted);
    margin-top: auto;
}

.nwf-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nwf-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
}
.nwf-row:hover { background: var(--surface2); }

.nwf-row__thumb {
    width: 56px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface2);
}
.nwf-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nwf-row__no-img {
    width: 100%;
    height: 100%;
    background: var(--surface3);
}

.nwf-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nwf-row__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nwf-row:hover .nwf-row__title { color: var(--primary); }

.nwf-row__time {
    font-size: 10px;
    color: var(--muted);
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .nwf-layout {
        grid-template-columns: 1fr;
    }
    .nwf-featured { aspect-ratio: 16 / 8; }
}

@media (max-width: 640px) {
    .nwf-featured { aspect-ratio: 16 / 10; }
    .nwf-featured__title { font-size: 15px; }
    .nwf-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
    .nwf-card__title { font-size: 11px; }
}

@media (max-width: 400px) {
    .nwf-pair { grid-template-columns: 1fr; }
}




.an-page {
  min-height: 100vh;
}

.an-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
}

.an-header__inner {
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.an-header__left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.an-header__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.an-header__tag-label {
  color: var(--tag-color, var(--primary));
}

.an-header__title-sep {
  color: var(--muted);
  font-weight: 400;
}

.an-header__count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.an-tags-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.an-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.an-tag-pill:hover {
  background: var(--surface2);
  color: var(--text);
}
.an-tag-pill--active {
  background: color-mix(in srgb, var(--tc, var(--primary)) 15%, var(--surface));
  border-color: color-mix(in srgb, var(--tc, var(--primary)) 40%, transparent);
  color: var(--tc, var(--primary));
}

.an-container {
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.an-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .an-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .an-grid { grid-template-columns: 1fr; gap: 16px; }
}

.an-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.an-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  border-color: color-mix(in srgb, var(--border) 60%, var(--primary));
}

.an-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
}
.an-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.an-card:hover .an-card__thumb img {
  transform: scale(1.04);
}

.an-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: .4;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}

.an-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--tc, var(--primary)) 22%, rgba(0,0,0,.55));
  color: var(--tc, var(--primary));
  border: 1px solid color-mix(in srgb, var(--tc, var(--primary)) 45%, transparent);
  backdrop-filter: blur(4px);
}

.an-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.an-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-card__excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: auto;
  padding-top: 6px;
}
.an-card__meta svg { opacity: .7; }

.an-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 40vh;
  color: var(--muted);
  opacity: .6;
}
.an-empty p {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.an-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.an-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
}
.an-page-btn:hover {
  background: var(--surface2);
  border-color: color-mix(in srgb, var(--border) 60%, var(--primary));
}
.an-page-btn--current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: default;
}
.an-page-btn--disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.an-page-dots {
  font-size: 14px;
  color: var(--muted);
  padding: 0 4px;
  user-select: none;
}

@media (max-width: 768px) {
  .an-header__inner { padding: 12px 16px; gap: 12px; }
  .an-container     { padding: 20px 16px 48px; }
}

@media (max-width: 480px) {
  .an-header__inner { flex-direction: column; align-items: flex-start; }
  .an-tags-bar      { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}




/* ── Страница ── */
.mr-page {
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ── Хлебные крошки ── */
.mr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.mr-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.mr-breadcrumb a:hover { color: var(--text); }
.mr-breadcrumb span { color: var(--text); }
.mr-breadcrumb svg { opacity: .35; flex-shrink: 0; }

/* ── Шапка ── */
.mr-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px 28px;
}
.mr-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(34,90,235,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.mr-header-icon--trn {
  background: rgba(147,51,234,.12);
  color: #9333ea;
}
.mr-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.mr-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* ── Алерты ── */
.mr-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  margin: 0 24px 20px;
  font-size: 13px;
  line-height: 1.55;
}
.mr-alert svg { flex-shrink: 0; margin-top: 1px; }
.mr-alert a { color: inherit; font-weight: 700; }
.mr-alert--success {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  color: #4ade80;
}
.mr-alert--error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  color: #f87171;
}

/* ── Нет доступа ── */
.mr-no-access {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.mr-no-access h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.mr-no-access p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ── Кнопки ── */
.mr-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .15s, transform .12s, background .15s, border-color .15s;
}
.mr-btn:hover { transform: translateY(-1px); }
.mr-btn:active { transform: translateY(0); }
.mr-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.mr-btn--primary {
  background: linear-gradient(135deg, #225aeb, #4c1d95);
  color: #fff;
}
.mr-btn--primary:hover { opacity: .9; }

.mr-btn--ghost {
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  color: var(--muted);
}
.mr-btn--ghost:hover {
  border-color: var(--border3, rgba(255,255,255,.25));
  color: var(--text);
}

/* ── Форма ── */
.mr-form {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mr-form-section {
  background: var(--surface, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.07));
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.mr-form-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── Поля ── */
.mr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mr-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mr-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec, rgba(255,255,255,.6));
}
.mr-optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.mr-required { color: #ef4444; }

.mr-input,
.mr-select,
.mr-textarea {
  background: var(--surface2, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 9px 12px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.mr-input:focus,
.mr-select:focus,
.mr-textarea:focus {
  border-color: var(--primary, #225aeb);
  box-shadow: 0 0 0 3px rgba(34,90,235,.12);
}
.mr-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.4)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.mr-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.mr-field-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.mr-char-counter {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

/* ── Type/Format card grids ── */
.mr-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mr-type-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.mr-format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mr-type-card,
.mr-format-card {
  cursor: pointer;
  position: relative;
}
.mr-type-card input,
.mr-format-card input { position: absolute; opacity: 0; width: 0; height: 0; }

.mr-type-inner {
  padding: 14px 12px;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 10px;
  background: var(--surface2, rgba(255,255,255,.04));
  text-align: center;
  transition: border-color .15s, background .15s, transform .12s;
  height: 100%;
}
.mr-type-card:hover .mr-type-inner {
  border-color: var(--border3, rgba(255,255,255,.2));
  transform: translateY(-1px);
}
.mr-type-card input:checked + .mr-type-inner {
  border-color: var(--primary, #225aeb);
  background: rgba(34,90,235,.08);
  box-shadow: 0 0 0 1px var(--primary, #225aeb);
}

.mr-type-icon { font-size: 24px; margin-bottom: 6px; }
.mr-type-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.mr-type-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.mr-format-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 8px;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 8px;
  background: var(--surface2, rgba(255,255,255,.04));
  transition: border-color .15s, background .15s;
}
.mr-format-card:hover .mr-format-inner { border-color: var(--border3, rgba(255,255,255,.2)); }
.mr-format-card input:checked + .mr-format-inner {
  border-color: var(--primary, #225aeb);
  background: rgba(34,90,235,.08);
  box-shadow: 0 0 0 1px var(--primary, #225aeb);
}
.mr-format-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.mr-format-desc {
  font-size: 10px;
  color: var(--muted);
}

/* ── Opponent mode / Radio opts ── */
.mr-opponent-mode {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mr-radio-opt {
  cursor: pointer;
  display: block;
}
.mr-radio-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.mr-radio-opt-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 9px;
  background: var(--surface2, rgba(255,255,255,.04));
  transition: border-color .15s, background .15s;
}
.mr-radio-opt:hover .mr-radio-opt-inner {
  border-color: var(--border3, rgba(255,255,255,.2));
}
.mr-radio-opt input:checked + .mr-radio-opt-inner {
  border-color: var(--primary, #225aeb);
  background: rgba(34,90,235,.08);
}
.mr-radio-icon { font-size: 18px; flex-shrink: 0; }
.mr-radio-opt-inner strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.mr-radio-opt-inner small  { display: block; font-size: 11px; color: var(--muted); }

/* ── Checkbox ── */
.mr-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 2px 0;
}
.mr-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.mr-checkbox-row strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.mr-checkbox-row small  { display: block; font-size: 11px; color: var(--muted); }

/* ── Form actions bar ── */
.mr-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .mr-page { max-width: 100%; }
  .mr-header { padding: 8px 16px 20px; }
  .mr-breadcrumb { padding: 12px 16px; }
  .mr-form { padding: 0 16px; }
  .mr-alert { margin-left: 16px; margin-right: 16px; }
  .mr-type-grid { grid-template-columns: 1fr; }
  .mr-type-grid--2 { grid-template-columns: 1fr; }
  .mr-format-grid { grid-template-columns: repeat(3, 1fr); }
  .mr-fields-row { grid-template-columns: 1fr; }
  .mr-form-actions { flex-direction: column-reverse; }
  .mr-btn { width: 100%; justify-content: center; }
}

/* Лейблы и вспомогательный текст */
[data-theme="light"] .mr-label         { color: #374151; }
[data-theme="light"] .mr-optional       { color: #6b7280; }
[data-theme="light"] .mr-required       { color: #dc2626; }
[data-theme="light"] .mr-field-hint     { color: #6b7280; }
[data-theme="light"] .mr-char-counter   { color: #9ca3af; }
[data-theme="light"] .mr-breadcrumb     { color: #6b7280; }
[data-theme="light"] .mr-breadcrumb a:hover { color: #111827; }
[data-theme="light"] .mr-breadcrumb span    { color: #111827; }

/* Шапка */
[data-theme="light"] .mr-title    { color: #111827; }
[data-theme="light"] .mr-subtitle { color: #6b7280; }
[data-theme="light"] .mr-header-icon     { background: rgba(34,90,235,.1);  color: #225aeb; }
[data-theme="light"] .mr-header-icon--trn { background: rgba(124,58,237,.1); color: #7c3aed; }

/* Алерты — заменяем слишком светлые цвета */
[data-theme="light"] .mr-alert--success {
  background: rgba(22,163,74,.08);
  border-color: rgba(22,163,74,.25);
  color: #15803d;
}
[data-theme="light"] .mr-alert--error {
  background: rgba(220,38,38,.07);
  border-color: rgba(220,38,38,.22);
  color: #b91c1c;
}

/* Секции формы */
[data-theme="light"] .mr-form-section {
  background: #fff;
  border-color: #e5e7eb;
}
[data-theme="light"] .mr-form-section-title { color: #9ca3af; }

/* Поля ввода */
[data-theme="light"] .mr-input,
[data-theme="light"] .mr-select,
[data-theme="light"] .mr-textarea {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}
[data-theme="light"] .mr-input::placeholder,
[data-theme="light"] .mr-textarea::placeholder { color: #9ca3af; }
[data-theme="light"] .mr-input:focus,
[data-theme="light"] .mr-select:focus,
[data-theme="light"] .mr-textarea:focus {
  border-color: #225aeb;
  box-shadow: 0 0 0 3px rgba(34,90,235,.1);
  background: #fff;
}
[data-theme="light"] .mr-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,.45)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Карточки типа матча / формата */
[data-theme="light"] .mr-type-inner,
[data-theme="light"] .mr-format-inner,
[data-theme="light"] .mr-radio-opt-inner {
  background: #f9fafb;
  border-color: #d1d5db;
}
[data-theme="light"] .mr-type-card:hover .mr-type-inner,
[data-theme="light"] .mr-format-card:hover .mr-format-inner,
[data-theme="light"] .mr-radio-opt:hover .mr-radio-opt-inner {
  border-color: #9ca3af;
  background: #f3f4f6;
}
[data-theme="light"] .mr-type-card input:checked + .mr-type-inner,
[data-theme="light"] .mr-format-card input:checked + .mr-format-inner,
[data-theme="light"] .mr-radio-opt input:checked + .mr-radio-opt-inner {
  border-color: #225aeb;
  background: rgba(34,90,235,.06);
  box-shadow: 0 0 0 1px #225aeb;
}
[data-theme="light"] .mr-type-name   { color: #111827; }
[data-theme="light"] .mr-type-desc   { color: #6b7280; }
[data-theme="light"] .mr-format-name { color: #111827; }
[data-theme="light"] .mr-format-desc { color: #6b7280; }
[data-theme="light"] .mr-radio-opt-inner strong { color: #111827; }
[data-theme="light"] .mr-radio-opt-inner small   { color: #6b7280; }

/* Checkbox */
[data-theme="light"] .mr-checkbox-row strong { color: #111827; }
[data-theme="light"] .mr-checkbox-row small   { color: #6b7280; }

/* Кнопки */
[data-theme="light"] .mr-btn--ghost {
  border-color: #d1d5db;
  color: #374151;
}
[data-theme="light"] .mr-btn--ghost:hover {
  border-color: #9ca3af;
  color: #111827;
  background: #f3f4f6;
}

[data-theme="dark"] .mr-alert--success { color: #4ade80; }
[data-theme="dark"] .mr-alert--error   { color: #f87171; }


/* ═══════════════════════════════════════════════════════════
   LEISURE — Раздел «Досуг»
   Префиксы: .ls- (витрина), .hg- (hero guess)
   ═══════════════════════════════════════════════════════════ */

/* ── Общий layout витрины ──────────────────────────────────── */
.ls-page {
  padding: 32px 24px 48px;
  margin: 0 auto;
}

.ls-page-header {
  margin-bottom: 32px;
}

.ls-page-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -.5px;
}

.ls-page-sub {
  font-size: 14px;
  color: var(--muted);
}

/* ── Сетка карточек игр ────────────────────────────────────── */
.ls-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ls-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.ls-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.ls-card--soon {
  opacity: .55;
  pointer-events: none;
}

.ls-card-thumb {
  height: 160px;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}

.ls-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7) saturate(1.2);
  transition: transform .4s;
}

.ls-card:hover .ls-card-thumb img {
  transform: scale(1.04);
}

.ls-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.7) 100%);
}

.ls-card-thumb-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.55);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  font-size: 20px;
}

.ls-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
}

.ls-card-badge--soon {
  background: var(--surface3);
  color: var(--muted);
}

.ls-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ls-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.ls-card-desc {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  margin: 0 0 16px;
  line-height: 1.5;
}

.ls-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}

.ls-card-btn:hover { opacity: .85; }

/* ═══════════════════════════════════════════════════════════
   HERO GUESS — Угадай героя
   ═══════════════════════════════════════════════════════════ */

.hg-wrap {
  padding: 28px 20px 60px;
  margin: 0 auto;
}

/* ── Шапка ─────────────────────────────────────────────────── */
.hg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hg-header-left { display: flex; align-items: center; gap: 12px; }

.hg-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.hg-back:hover { color: var(--text); }

.hg-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.4px;
}

.hg-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}

.hg-counter span { color: var(--text); }

/* ── Поле ввода ─────────────────────────────────────────────── */
.hg-input-section {
  margin-bottom: 20px;
}

.hg-input-wrap {
  position: relative;
  max-width: 480px;
}

.hg-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.hg-input:focus {
  border-color: var(--primary);
}

.hg-input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.hg-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  display: none;
}

.hg-autocomplete.hg-ac--open { display: block; }

.hg-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background .12s;
}

.hg-ac-item:hover,
.hg-ac-item.hg-ac--selected {
  background: var(--surface2);
}

.hg-ac-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface3);
  flex-shrink: 0;
}

.hg-ac-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hg-ac-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ── Легенда ─────────────────────────────────────────────────── */
.hg-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hg-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.hg-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.hg-legend-dot--green  { background: #22c55e; }
.hg-legend-dot--yellow { background: #eab308; }
.hg-legend-dot--red    { background: #ef4444; }

/* ── Таблица угаданных ────────────────────────────────────────── */
.hg-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.hg-table-head th {
  padding: 8px 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hg-table-head th:first-child { text-align: left; padding-left: 8px; }

.hg-row td {
  padding: 6px;
  vertical-align: middle;
}

/* ── Ячейки таблицы ─────────────────────────────────────────── */
.hg-cell {
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  position: relative;
  transition: background .3s, border-color .3s;

  /* flip-анимация */
  transform-style: preserve-3d;
}

.hg-cell--green  { background: #166534; border-color: #22c55e44; }
.hg-cell--yellow { background: #713f12; border-color: #eab30844; }
.hg-cell--red    { background: #7f1d1d; border-color: #ef444444; }

/* Иконка направления (год) */
.hg-cell-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 13px;
  font-weight: 900;
}

/* Роли — список */
.hg-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}

.hg-role-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  line-height: 1.3;
}

/* ── Герой (первая колонка) ─────────────────────────────────── */
.hg-hero-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
}

.hg-hero-img {
  width: 44px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface3);
  flex-shrink: 0;
}

.hg-hero-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* ── Анимация появления строки ─────────────────────────────── */
@keyframes hg-row-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hg-row {
  animation: hg-row-in .25s ease both;
}

/* ── Пустые слоты ───────────────────────────────────────────── */
.hg-slot {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  min-height: 44px;
  opacity: .35;
}

.hg-slots-row td { padding: 6px; }

/* ── Модал результата ───────────────────────────────────────── */
.hg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.hg-modal-overlay.hg-modal--open {
  opacity: 1;
  pointer-events: all;
}

.hg-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transform: scale(.95);
  transition: transform .25s;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.hg-modal-overlay.hg-modal--open .hg-modal {
  transform: scale(1);
}

.hg-modal-emoji {
  font-size: 52px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.hg-modal-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -.4px;
}

.hg-modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.hg-modal-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 20px;
  text-align: left;
}

.hg-modal-hero-img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface3);
}

.hg-modal-hero-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.hg-modal-hero-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hg-modal-coins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 900;
  color: #f59e0b;
  margin-bottom: 20px;
}

.hg-modal-coins svg { flex-shrink: 0; }

.hg-modal-timer {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hg-modal-timer strong { color: var(--text); font-variant-numeric: tabular-nums; }

.hg-modal-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.hg-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
  text-decoration: none;
}

.hg-modal-btn:hover { opacity: .85; }

.hg-modal-btn--share {
  background: #1d9bf0;
  color: #fff;
}

.hg-modal-btn--close {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Лидерборд ──────────────────────────────────────────────── */
.hg-lb {
  margin-top: 48px;
}

.hg-lb-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -.3px;
}

.hg-lb-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.hg-lb-tab {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: background .15s, color .15s;
  border: none;
  background: none;
}

.hg-lb-tab.active,
.hg-lb-tab:hover {
  background: var(--surface);
  color: var(--text);
}

.hg-lb-panel { display: none; }
.hg-lb-panel.active { display: block; }

.hg-lb-table {
  width: 100%;
  border-collapse: collapse;
}

.hg-lb-table th {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.hg-lb-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.03);
}

.hg-lb-table tr:last-child td { border-bottom: none; }

.hg-lb-rank {
  font-weight: 900;
  font-size: 14px;
  color: var(--muted);
  width: 32px;
}

.hg-lb-rank--1 { color: #f59e0b; }
.hg-lb-rank--2 { color: #94a3b8; }
.hg-lb-rank--3 { color: #c2763b; }

.hg-lb-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hg-lb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface3);
  flex-shrink: 0;
}

.hg-lb-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.hg-lb-username {
  font-weight: 700;
  color: var(--text);
}

.hg-lb-value {
  font-weight: 800;
  text-align: right;
}

.hg-lb-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ── Баннер «Войдите чтобы получить монеты» ─────────────────── */
.hg-auth-banner {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text);
}

.hg-auth-banner a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.hg-auth-banner a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hg-wrap { padding: 16px 12px 48px; }
  .hg-title { font-size: 18px; }

  .hg-table-head th { font-size: 9px; padding: 6px 3px; }
  .hg-row td { padding: 4px 3px; }
  .hg-cell { font-size: 11px; padding: 6px 4px; min-height: 40px; border-radius: 6px; }
  .hg-hero-img { width: 36px; height: 22px; }
  .hg-hero-name { font-size: 11px; }
  .hg-role-tag { font-size: 8px; }

  .ls-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ls-card-thumb { height: 120px; }
  .ls-m3-banner .m3b-title-dota { font-size: 38px; }
  .ls-m3-banner .m3b-title-sub  { font-size: 18px; }
}

@media (max-width: 480px) {
  .ls-grid { grid-template-columns: 1fr; }
  .hg-modal { padding: 24px 18px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO RUSH — Match-3 game
   Префиксы: .m3s- (select), .m3g- (game), .m3- (board cells)
   ═══════════════════════════════════════════════════════════ */

/* ── Экран выбора уровней ──────────────────────────────────── */
.m3s-wrap {
  padding: 24px 20px 56px;
  margin: 0 auto;
}

.m3s-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* ── Статистика сверху ───────────────────────────────────────── */
.m3s-stats-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.m3s-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.m3s-stat-card__val {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.m3s-stat-card__label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.m3s-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.m3s-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.5px;
  margin: 0;
}

.m3s-sub {
  font-size: 12px;
  color: var(--muted);
}

/* Сердечки в шапке */
.m3s-hearts {
  display: flex;
  align-items: center;
  gap: 4px;
}

.m3s-heart { display: inline-flex; }
.m3s-heart--full  { color: #ef4444; }
.m3s-heart--empty { color: var(--border); }

.m3s-hearts-timer {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

.m3s-hearts-buy {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .15s;
}
.m3s-hearts-buy:hover { opacity: .8; }

/* ── Layout ─────────────────────────────────────────────────── */
.m3s-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

/* ── Пагинация диапазонов ───────────────────────────────────── */
.m3s-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}

.m3s-page-btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}

.m3s-page-btn:hover,
.m3s-page-btn--active {
  color: var(--text);
  border-color: var(--primary);
}

/* ── Тир заголовок ───────────────────────────────────────────── */
.m3s-tier-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}

.m3s-tier-label--1 { background: rgba(74,222,128,.12); color: #4ade80; }
.m3s-tier-label--2 { background: rgba(96,165,250,.12); color: #60a5fa; }
.m3s-tier-label--3 { background: rgba(250,204,21,.12);  color: #facc15; }
.m3s-tier-label--4 { background: rgba(251,146,60,.12);  color: #fb923c; }
.m3s-tier-label--5 { background: rgba(239,68,68,.12);   color: #ef4444; }

/* ── Сетка уровней ───────────────────────────────────────────── */
.m3s-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 6px;
}

.m3s-lvl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1.5px solid var(--border);
  background: var(--surface2);
  position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  min-height: 56px;
}

.m3s-lvl--open:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.m3s-lvl--done {
  border-color: rgba(74,222,128,.3);
  background: rgba(74,222,128,.04);
}

.m3s-lvl--locked {
  opacity: .4;
  cursor: default;
}

.m3s-lvl-num {
  font-size: 13px;
  font-weight: 800;
}

.m3s-lvl-stars {
  display: flex;
  gap: 1px;
}

.m3s-star { color: var(--border); }
.m3s-star--on { color: #f59e0b; }

.m3s-lock {
  position: absolute;
  bottom: 5px;
  right: 5px;
  color: var(--muted);
}

/* Уровень-босс */
.m3s-lvl--boss {
  border-color: rgba(220,50,50,.45);
  background: linear-gradient(160deg, rgba(30,5,5,.6), rgba(15,0,0,.4));
  box-shadow: 0 0 8px rgba(200,20,20,.2);
}
.m3s-lvl--boss:hover {
  border-color: rgba(240,80,80,.7);
  box-shadow: 0 4px 14px rgba(220,38,38,.35);
}
.m3s-lvl-boss-skull {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 10px;
  line-height: 1;
}

/* ── Виджет ежедневных заданий на select-странице ─────────────── */
.m3s-daily-quests {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.m3s-daily-quests-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.m3s-daily-quests-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.m3s-quest {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 6px 10px;
}
.m3s-quest--done {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.22);
}
.m3s-quest-icon { font-size: 16px; flex-shrink: 0; }
.m3s-quest-body { flex: 1; min-width: 0; }
.m3s-quest-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.m3s-quest--done .m3s-quest-label { color: #4ade80; }
.m3s-quest-track {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.m3s-quest-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}
.m3s-quest--done .m3s-quest-fill { background: linear-gradient(90deg, #22c55e, #4ade80); }
.m3s-quest-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.m3s-quest--done .m3s-quest-count { color: #4ade80; }

/* ── Боковая панель (карточки) ────────────────────────────────── */
.m3s-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.m3s-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.m3s-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.m3s-stat-row strong { color: var(--text); font-weight: 800; }
.m3s-stat-row:last-child { border-bottom: none; }

/* Лидерборд */
.m3s-lb {}
.m3s-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.m3s-lb-row:last-child { border-bottom: none; }

.m3s-lb-rank {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.m3s-lb-rank--1 { color: #f59e0b; }
.m3s-lb-rank--2 { color: #94a3b8; }
.m3s-lb-rank--3 { color: #c2763b; }

.m3s-lb-user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.m3s-lb-avatar, .m3s-lb-letter {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface3);
  flex-shrink: 0;
}

.m3s-lb-letter {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
}

.m3s-lb-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.m3s-lb-stars {
  font-size: 11px;
  font-weight: 800;
  color: #f59e0b;
  flex-shrink: 0;
}

/* Спецтайлы */
.m3s-special-list { display: flex; flex-direction: column; gap: 10px; }
.m3s-special-item { display: flex; align-items: center; gap: 10px; }

.m3s-special-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.m3s-special-icon--meteor { background: rgba(251,146,60,.15); border: 1px solid rgba(251,146,60,.3); }
.m3s-special-icon--bomb   { background: rgba(139,92,246,.15);  border: 1px solid rgba(139,92,246,.3); }
.m3s-special-icon--bkb    { background: rgba(234,179,8,.15);   border: 1px solid rgba(234,179,8,.3); }

.m3s-special-name { font-size: 12px; font-weight: 700; color: var(--text); }
.m3s-special-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }


/* ═══════════════════════════════════════════════════════════
   ИГРОВОЙ ЭКРАН
   ═══════════════════════════════════════════════════════════ */

.m3g-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Навигация ───────────────────────────────────────────────── */
.m3g-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m3g-nav-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m3g-level-badge {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}

.m3g-tier-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 20px;
}
.m3g-tier-badge--1 { background: rgba(74,222,128,.15);  color: #4ade80; }
.m3g-tier-badge--2 { background: rgba(96,165,250,.15);  color: #60a5fa; }
.m3g-tier-badge--3 { background: rgba(250,204,21,.15);  color: #facc15; }
.m3g-tier-badge--4 { background: rgba(251,146,60,.15);  color: #fb923c; }
.m3g-tier-badge--5 { background: rgba(239,68,68,.15);   color: #ef4444; }

.m3g-nav-hearts {
  display: flex;
  gap: 3px;
}

.m3g-heart { transition: color .3s; }
.m3g-heart--on  { color: #ef4444; }
.m3g-heart--off { color: var(--border); }

/* ── HUD ─────────────────────────────────────────────────────── */
.m3g-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}

.m3g-hud-block { text-align: center; }

.m3g-hud-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.m3g-hud-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}

.m3g-hud-val--moves { color: #60a5fa; }
.m3g-hud-val--danger { color: #ef4444 !important; }

/* Цели */
.m3g-targets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  align-items: center;
}

.m3g-target {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  transition: color .3s;
}

.m3g-target svg { color: var(--muted); transition: color .3s; }

.m3g-target--reached,
.m3g-target--reached svg {
  color: #f59e0b;
}

/* ── Доска ───────────────────────────────────────────────────── */
.m3g-board-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.m3g-board {
  display: grid;
  gap: 3px;
  padding: 8px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.m3g-board-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  border-radius: 14px;
  z-index: 10;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* пропускаем клики к доске */
}

.m3g-overlay-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: all; /* кнопка «Отмена» должна кликаться */
}

.m3g-overlay-text button {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
}

/* ── Тайлы ───────────────────────────────────────────────────── */
.m3-cell {
  border-radius: 8px;
  background-color: var(--surface2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  position: relative;
  transition: transform .12s, box-shadow .12s;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  user-select: none;
  -webkit-user-select: none;
}

.m3-cell:hover { transform: scale(1.05); }

.m3-cell--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 0 16px rgba(139,92,246,.5);
  transform: scale(1.08);
  z-index: 2;
}

.m3-cell--null {
  background-color: transparent;
  border: none;
  pointer-events: none;
}

/* Спецтайлы — изображение задаётся через JS (SP_ICONS), классы отвечают только за свечение */
.m3-cell--sp-meteor {
  border-color: #fb923c;
  box-shadow: 0 0 10px rgba(251,146,60,.55);
}
.m3-cell--sp-bomb {
  border-color: #a78bfa;
  box-shadow: 0 0 10px rgba(167,139,250,.55);
}
.m3-cell--sp-bkb {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245,158,11,.65);
}

/* Анимации */
@keyframes m3-pop {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.3); opacity: .8; }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes m3-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}
@keyframes m3-swap {
  0%   { transform: scale(.95); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes m3-bonus-drop {
  0%   { transform: scale(0) translateY(-16px); opacity: 0; }
  65%  { transform: scale(1.18) translateY(0);  opacity: 1; }
  100% { transform: scale(1) translateY(0);     opacity: 1; }
}
@keyframes m3-star-milestone {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(1.4); }
}

.m3-cell--pop        { animation: m3-pop .28s ease forwards; }
.m3-cell--shake      { animation: m3-shake .4s ease; }
.m3-cell--swapping   { animation: m3-swap .22s ease; }
.m3-cell--bonus-drop { animation: m3-bonus-drop .45s cubic-bezier(.34,1.56,.64,1) forwards; }

/* Промежуточная звезда */
.m3-star-milestone {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  font-weight: 900;
  color: #facc15;
  pointer-events: none;
  z-index: 30;
  text-shadow: 0 2px 12px rgba(250,204,21,.8);
  animation: m3-star-milestone 1s ease forwards;
}

/* Бонусный баннер */
.m3g-bonus-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, #f59e0b, #ec4e20);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 12px 28px;
  border-radius: 14px;
  z-index: 50;
  pointer-events: none;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.m3g-bonus-banner--visible {
  transform: translate(-50%, -50%) scale(1);
}

/* Плавающий счёт */
.m3-float-score {
  position: absolute;
  top: 30%;
  font-size: 14px;
  font-weight: 900;
  color: #f59e0b;
  pointer-events: none;
  z-index: 20;
  animation: m3-float .9s ease forwards;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Монеты за счёт в модале */
.m3g-modal-coins-bonus {
  font-size: 11px;
  opacity: .75;
  margin-left: 4px;
}
@keyframes m3-float {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); }
}

/* ── Бустеры ─────────────────────────────────────────────────── */
.m3g-boosters {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.m3g-booster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, opacity .15s, transform .12s;
  min-width: 58px;
  position: relative;
}

.m3g-booster:hover { border-color: var(--primary); transform: translateY(-1px); }
.m3g-booster--empty { opacity: .45; }
.m3g-booster--active { border-color: var(--primary); box-shadow: 0 0 12px rgba(139,92,246,.4); }
.m3g-booster--shop { border-style: dashed; }

.m3g-booster-icon  { font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.m3g-booster-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.m3g-booster-label { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.m3g-booster-count {
  position: absolute;
  top: 4px; right: 5px;
  font-size: 10px;
  font-weight: 900;
  color: var(--primary);
}

/* ── Модал ────────────────────────────────────────────────────── */
.m3g-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.m3g-modal-overlay.m3g-modal--open {
  opacity: 1;
  pointer-events: all;
}

.m3g-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 380px;
  padding: 28px 24px;
  text-align: center;
  transform: scale(.93);
  transition: transform .25s;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}

.m3g-modal-overlay.m3g-modal--open .m3g-modal { transform: scale(1); }

.m3g-modal-emoji { font-size: 48px; display: block; margin-bottom: 8px; line-height: 1; }
.m3g-modal-title { font-size: 20px; font-weight: 900; color: var(--text); margin: 0 0 6px; }
.m3g-modal-sub   { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

.m3g-modal-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.m3g-modal-star { color: var(--border); transition: color .3s, transform .3s; }
.m3g-modal-star--on { color: #f59e0b; transform: scale(1.15); }

.m3g-modal-coins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  color: #f59e0b;
  margin-bottom: 16px;
}

.m3g-modal-actions { display: flex; flex-direction: column; gap: 8px; }

.m3g-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .15s;
}
.m3g-modal-btn:hover { opacity: .85; }
.m3g-modal-btn--primary   { background: var(--primary); color: #fff; }
.m3g-modal-btn--secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.m3g-modal-btn--ghost     { background: transparent; color: var(--muted); border: 1px solid var(--border); }

/* ════════════════════════════════════════════════════════
   МАГАЗИН — Premium Shop
   ════════════════════════════════════════════════════════ */

/* Модал магазина — шире и темнее */
.m3g-modal--shop {
  max-width: 460px;
  padding: 0;
  overflow: hidden;
  background: #111110;
  border-color: rgba(255,255,255,.1);
}

/* Шапка */
.m3g-shop-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #1c1a14 0%, #211e12 100%);
  border-bottom: 1px solid rgba(245,158,11,.2);
}
.m3g-shop-hd-gem { flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(245,158,11,.6)); }
.m3g-shop-hd-text { flex: 1; text-align: left; }
.m3g-shop-hd-title { font-size: 18px; font-weight: 900; color: #fde68a; letter-spacing: -.3px; line-height: 1.1; }
.m3g-shop-hd-sub   { font-size: 11px; color: rgba(253,230,138,.5); }
.m3g-shop-hd-close {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  border-radius: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.m3g-shop-hd-close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Сетка */
.m3g-shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

/* Карточка товара */
.m3g-shop-item {
  position: relative;
  border-radius: 14px;
  padding: 14px 10px 12px;
  text-align: center;
  border: 1.5px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.m3g-shop-item:hover { transform: translateY(-2px); }

/* Широкая карточка (сердечки) */
.m3g-shop-item--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
}
.m3g-shop-item--wide .m3g-shop-visual { margin-bottom: 0; }
.m3g-shop-item--wide .m3g-shop-name   { margin-bottom: 2px; }
.m3g-shop-item--wide .m3g-shop-desc   { margin-bottom: 0; }
.m3g-shop-item-info { flex: 1; }

/* Бейдж «у вас есть» */
.m3g-shop-badge {
  position: absolute;
  top: 8px; right: 9px;
  font-size: 10px;
  font-weight: 900;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
}

/* Визуальная область с иконкой и FX */
.m3g-shop-visual {
  position: relative;
  width: 64px; height: 64px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
}
.m3g-shop-icon { font-size: 30px; position: relative; z-index: 2; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.m3g-shop-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* FX-контейнер */
.m3g-shop-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Огонь (Метеор) ────────────────────────────────────── */
.m3g-shop-item[data-type="meteor"] {
  background: linear-gradient(160deg, rgba(255,80,0,.14) 0%, rgba(255,255,255,.04) 55%);
  border-color: rgba(255,100,20,.35);
}
.m3g-shop-item[data-type="meteor"]:hover { box-shadow: 0 8px 28px rgba(255,80,0,.3); border-color: rgba(255,100,20,.7); }
.m3g-shop-item[data-type="meteor"] .m3g-shop-icon { filter: drop-shadow(0 0 10px #ff6020) drop-shadow(0 0 20px #ff8c00); animation: m3-icon-fire .55s ease-in-out infinite alternate; }

/* 3 слоя пламени */
.m3g-shop-item[data-type="meteor"] .m3g-shop-fx span {
  position: absolute;
  left: 50%; bottom: -4px;
  border-radius: 50% 50% 30% 30%;
  filter: blur(5px);
  transform-origin: bottom center;
  mix-blend-mode: screen;
}
.m3g-shop-item[data-type="meteor"] .m3g-shop-fx span:nth-child(1) {
  width: 46px; height: 56px;
  margin-left: -23px;
  background: radial-gradient(ellipse at 50% 75%, #ff4500 0%, #ff8c00 45%, transparent 75%);
  animation: m3-flame 1.0s ease-in-out infinite alternate;
}
.m3g-shop-item[data-type="meteor"] .m3g-shop-fx span:nth-child(2) {
  width: 30px; height: 38px;
  margin-left: -15px;
  background: radial-gradient(ellipse at 50% 75%, #ffe000 0%, #ff6600 55%, transparent 80%);
  animation: m3-flame 0.85s .12s ease-in-out infinite alternate;
}
.m3g-shop-item[data-type="meteor"] .m3g-shop-fx span:nth-child(3) {
  width: 14px; height: 20px;
  margin-left: -7px;
  background: radial-gradient(ellipse at 50% 75%, #ffffff 0%, #ffe080 65%, transparent 90%);
  filter: blur(2px);
  animation: m3-flame 0.65s .24s ease-in-out infinite alternate;
}
@keyframes m3-flame {
  0%   { transform: scaleX(1)    scaleY(1)    skewX(0deg);  opacity: .85; }
  33%  { transform: scaleX(.88)  scaleY(1.12) skewX(3deg);  opacity: 1; }
  66%  { transform: scaleX(1.1)  scaleY(.94)  skewX(-2deg); opacity: .9; }
  100% { transform: scaleX(.95)  scaleY(1.06) skewX(1deg);  opacity: .95; }
}
@keyframes m3-icon-fire {
  from { filter: drop-shadow(0 0 8px #ff6020) drop-shadow(0 0 16px #ff8c00); }
  to   { filter: drop-shadow(0 0 14px #ff4500) drop-shadow(0 0 28px #ffdd00); }
}

/* ── Взрыв (Бомба) ─────────────────────────────────────── */
.m3g-shop-item[data-type="bomb"] {
  background: linear-gradient(160deg, rgba(139,92,246,.16) 0%, rgba(255,255,255,.04) 55%);
  border-color: rgba(139,92,246,.3);
}
.m3g-shop-item[data-type="bomb"]:hover { box-shadow: 0 8px 28px rgba(139,92,246,.3); border-color: rgba(139,92,246,.65); }
.m3g-shop-item[data-type="bomb"] .m3g-shop-icon { animation: m3-bomb-idle 3.5s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(139,92,246,.7)); }

/* 6 частиц на орбите */
.m3g-shop-item[data-type="bomb"] .m3g-shop-fx span {
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin: -2.5px 0 0 -2.5px;
  animation: m3-spark-orbit 2.2s linear infinite;
  animation-delay: calc(var(--i, 0) * -0.367s);
}
.m3g-shop-item[data-type="bomb"] .m3g-shop-fx span:nth-child(odd)  { background: #c4b5fd; width: 5px; height: 5px; }
.m3g-shop-item[data-type="bomb"] .m3g-shop-fx span:nth-child(even) { background: #7c3aed; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }

@keyframes m3-spark-orbit {
  0%   { transform: rotate(calc(var(--i, 0) * 60deg)) translateX(26px) scale(1); opacity: 1; }
  70%  { opacity: 1; }
  99%  { opacity: .2; }
  100% { transform: rotate(calc(var(--i, 0) * 60deg + 360deg)) translateX(26px) scale(1); opacity: 1; }
}
@keyframes m3-bomb-idle {
  0%, 80%, 100% { transform: rotate(0deg); }
  85%  { transform: rotate(-8deg); }
  90%  { transform: rotate(8deg); }
  95%  { transform: rotate(-5deg); }
}

/* ── Shuffle ────────────────────────────────────────────── */
.m3g-shop-item[data-type="shuffle"] {
  background: linear-gradient(160deg, rgba(6,182,212,.12) 0%, rgba(255,255,255,.04) 55%);
  border-color: rgba(6,182,212,.25);
}
.m3g-shop-item[data-type="shuffle"]:hover { box-shadow: 0 8px 28px rgba(6,182,212,.25); border-color: rgba(6,182,212,.6); }
.m3g-shop-item[data-type="shuffle"] .m3g-shop-icon { animation: m3-shuffle-spin 4s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(6,182,212,.6)); }
@keyframes m3-shuffle-spin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  45%      { transform: rotate(180deg) scale(1.12); }
  50%      { transform: rotate(180deg) scale(1); }
  95%      { transform: rotate(360deg) scale(1.06); }
}

/* ── +5 Ходов ───────────────────────────────────────────── */
.m3g-shop-item[data-type="extra_moves"] {
  background: linear-gradient(160deg, rgba(16,185,129,.12) 0%, rgba(255,255,255,.04) 55%);
  border-color: rgba(16,185,129,.25);
}
.m3g-shop-item[data-type="extra_moves"]:hover { box-shadow: 0 8px 28px rgba(16,185,129,.25); border-color: rgba(16,185,129,.6); }
.m3g-shop-item[data-type="extra_moves"] .m3g-shop-icon { animation: m3-moves-bounce 1.4s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(16,185,129,.6)); }
@keyframes m3-moves-bounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-6px); }
  60%      { transform: translateY(-3px); }
}

/* ── Сердечки ───────────────────────────────────────────── */
.m3g-shop-item[data-type="hearts"] {
  background: linear-gradient(160deg, rgba(239,68,68,.12) 0%, rgba(255,255,255,.04) 55%);
  border-color: rgba(239,68,68,.25);
}
.m3g-shop-item[data-type="hearts"]:hover { box-shadow: 0 8px 28px rgba(239,68,68,.25); border-color: rgba(239,68,68,.6); }
.m3g-shop-item[data-type="hearts"] .m3g-shop-icon { animation: m3-heartbeat .85s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(239,68,68,.7)); color: #ef4444; }

/* Пульсирующие кольца вокруг сердца */
.m3g-shop-item[data-type="hearts"] .m3g-shop-fx span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,.5);
  animation: m3-heart-ring 1.7s ease-out infinite;
}
.m3g-shop-item[data-type="hearts"] .m3g-shop-fx span:nth-child(2) { animation-delay: -.85s; }
@keyframes m3-heartbeat {
  0%, 100%  { transform: scale(1); }
  14%       { transform: scale(1.18); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.1); }
  56%       { transform: scale(1); }
}
@keyframes m3-heart-ring {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Текст карточки */
.m3g-shop-name { font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 3px; letter-spacing: .01em; }
.m3g-shop-desc { font-size: 10px; color: rgba(255,255,255,.4); margin-bottom: 10px; }

/* Кнопка покупки */
.m3g-shop-buy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .12s, box-shadow .15s, background .2s;
  letter-spacing: .02em;
}
.m3g-shop-buy::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: m3-shimmer 2.8s ease-in-out infinite;
}
.m3g-shop-buy:hover  { transform: scale(1.05); box-shadow: 0 4px 16px rgba(245,158,11,.5); }
.m3g-shop-buy:active { transform: scale(.96); }

.m3g-shop-buy--loading { background: linear-gradient(135deg, #6b7280, #4b5563); animation: none; }
.m3g-shop-buy--success { background: linear-gradient(135deg, #10b981, #059669); }
.m3g-shop-buy--success::after { display: none; }

.m3g-gc-coin { flex-shrink: 0; }

@keyframes m3-shimmer {
  0%   { left: -80%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}

/* BKB спецтайл на поле — золотое свечение */
.m3-cell--sp-bkb {
  border-color: #f59e0b;
  animation: m3-bkb-pulse 1.8s ease-in-out infinite;
  position: relative;
}
.m3-cell--sp-bkb::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(254,240,138,.35), rgba(245,158,11,.18) 55%, transparent 75%);
  z-index: -1;
  animation: m3-bkb-aura 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes m3-bkb-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245,158,11,.5), 0 0 16px rgba(245,158,11,.25); }
  50%      { box-shadow: 0 0 18px rgba(245,158,11,.9), 0 0 36px rgba(245,158,11,.5); }
}
@keyframes m3-bkb-aura {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.06); }
}

/* ── BKB hover preview ──────────────────────────────────────────── */
.m3-cell--bkb-preview {
  animation: m3-bkb-charge-hover .35s ease-in-out infinite alternate;
  z-index: 3;
}
.m3-cell--bkb-target {
  z-index: 2;
  animation: m3-bkb-stun .5s ease-in-out infinite alternate;
}
.m3-cell--bkb-target::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: rgba(234,179,8,.15);
  border: 2px solid rgba(234,179,8,.9);
  box-shadow: 0 0 14px rgba(234,179,8,.6), inset 0 0 8px rgba(234,179,8,.2);
  animation: m3-bkb-target-glow .4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 3;
}
@keyframes m3-bkb-charge-hover {
  from { filter: drop-shadow(0 0 8px #eab308) brightness(1.1); transform: scale(1.06); }
  to   { filter: drop-shadow(0 0 24px #eab308) drop-shadow(0 0 40px #facc15) brightness(1.4); transform: scale(1.14); }
}
@keyframes m3-bkb-stun {
  from { transform: scale(.95); filter: brightness(.7) sepia(.85); }
  to   { transform: scale(1.0); filter: brightness(.88) sepia(.5); }
}
@keyframes m3-bkb-target-glow {
  from { opacity: .5; box-shadow: 0 0 8px rgba(234,179,8,.5); }
  to   { opacity: 1;  box-shadow: 0 0 20px rgba(234,179,8,.95), inset 0 0 12px rgba(234,179,8,.3); }
}

/* ══════════════════════════════════════════════════════════════════
   METEOR FIRE — профессиональный многослойный огонь
   ══════════════════════════════════════════════════════════════════ */

/* Базовая клетка: вспышка → сгорание */
.m3-cell--meteor-burn {
  position: relative;
  z-index: 3;
  overflow: visible;
  animation: m3-cell-ignite .55s cubic-bezier(.25,0,.5,1) forwards;
}

/* ── Слой 1: Раскалённое ядро у основания ───────────────────────
   Белый → жёлтый blob, сильно blurred, создаёт ощущение жара      */
.m3-cell--meteor-burn::before {
  content: '';
  position: absolute;
  left: -8%; right: -8%;
  bottom: -4px; top: 15%;
  border-radius: 50% 50% 45% 45% / 35% 35% 65% 65%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 90%,
      rgba(255,255,240,1)   0%,
      rgba(255,230,80,.95)  14%,
      rgba(255,160,0,.85)   30%,
      rgba(240,60,0,.7)     50%,
      rgba(180,10,0,.45)    68%,
      transparent           82%
    );
  filter: blur(3px);
  mix-blend-mode: screen;
  animation:
    m3-flame-core-morph .09s ease-in-out infinite alternate,
    m3-flame-core-fade  .55s ease-in forwards;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 100%;
}

/* ── Слой 2: Основное тело пламени ──────────────────────────────
   border-radius морфинг между 5 состояниями — органичное пламя    */
.m3-cell--meteor-burn::after {
  content: '';
  position: absolute;
  left: 6%; right: 6%;
  bottom: -2px; top: -18px;
  background:
    radial-gradient(ellipse 55% 45% at 48% 85%,
      rgba(255,255,180,.98) 0%,
      rgba(255,200,20,.92)  12%,
      rgba(255,100,0,.83)   28%,
      rgba(220,35,0,.68)    50%,
      rgba(140,10,0,.4)     68%,
      transparent           80%
    ),
    radial-gradient(ellipse 35% 60% at 70% 70%,
      rgba(255,180,0,.5) 0%,
      transparent        55%
    );
  mix-blend-mode: screen;
  filter: blur(1.2px);
  animation:
    m3-flame-morph .13s ease-in-out infinite,
    m3-flame-body-fade .55s ease-in forwards;
  z-index: 4;
  pointer-events: none;
  transform-origin: 50% 100%;
}

/* Тело ячейки сгорает */
@keyframes m3-cell-ignite {
  0%   { filter: brightness(1)   saturate(1); }
  15%  { filter: brightness(2.8) saturate(4) hue-rotate(-12deg); }
  40%  { filter: brightness(3.5) saturate(5); transform: scale(1.04); }
  100% { filter: brightness(7)   saturate(0); transform: scale(.58) translateY(-14px); opacity: 0; }
}

/* Ядро: органичный blob — качается + дышит */
@keyframes m3-flame-core-morph {
  0%   { border-radius: 52% 48% 42% 42% / 38% 38% 62% 62%; transform: scaleX(1)    skewX(-4deg); }
  33%  { border-radius: 44% 56% 48% 38% / 42% 34% 58% 66%; transform: scaleX(1.08) skewX(3deg);  }
  66%  { border-radius: 58% 42% 36% 50% / 34% 46% 54% 52%; transform: scaleX(.94) skewX(-2deg); }
  100% { border-radius: 48% 52% 50% 40% / 44% 40% 60% 56%; transform: scaleX(1.04) skewX(5deg); }
}
@keyframes m3-flame-core-fade {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Тело: медленный полный морфинг */
@keyframes m3-flame-morph {
  0%   {
    border-radius: 45% 55% 65% 35% / 50% 45% 55% 50%;
    transform: scaleX(1)    scaleY(1)    skewX(-5deg);
  }
  20%  {
    border-radius: 55% 45% 55% 45% / 40% 55% 45% 60%;
    transform: scaleX(.92)  scaleY(1.08) skewX(4deg);
  }
  40%  {
    border-radius: 40% 60% 70% 30% / 55% 40% 60% 45%;
    transform: scaleX(1.1)  scaleY(.94)  skewX(-3deg);
  }
  60%  {
    border-radius: 60% 40% 45% 55% / 45% 60% 40% 55%;
    transform: scaleX(.96)  scaleY(1.06) skewX(6deg);
  }
  80%  {
    border-radius: 50% 50% 60% 40% / 50% 50% 50% 50%;
    transform: scaleX(1.05) scaleY(.97)  skewX(-4deg);
  }
  100% {
    border-radius: 45% 55% 65% 35% / 50% 45% 55% 50%;
    transform: scaleX(1)    scaleY(1)    skewX(-5deg);
  }
}
@keyframes m3-flame-body-fade {
  0%   { opacity: 0; }
  8%   { opacity: .9; }
  65%  { opacity: .95; }
  100% { opacity: 0; }
}

/* ── JS DOM: Языки пламени (.m3-fire-lick) ─────────────────────── */
.m3-fire-lick {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
  background:
    radial-gradient(ellipse 50% 60% at 50% 80%,
      rgba(255,255,200,.95) 0%,
      rgba(255,180,0,.85)   20%,
      rgba(255,80,0,.7)     45%,
      rgba(200,20,0,.45)    65%,
      transparent           80%
    );
  filter: blur(1.8px);
  animation: m3-lick-rise var(--dur, .18s) ease-out forwards;
}
@keyframes m3-lick-rise {
  0%   {
    transform: scaleX(1) scaleY(0) skewX(var(--skew,0deg));
    opacity: 1;
  }
  35%  {
    transform: scaleX(.88) scaleY(.85) skewX(calc(var(--skew,0deg) * -1.3));
    opacity: .95;
  }
  70%  {
    transform: scaleX(.65) scaleY(1.2) skewX(var(--skew,0deg));
    opacity: .7;
  }
  100% {
    transform: scaleX(.3) scaleY(1.6) translateY(-12%) skewX(calc(var(--skew,0deg) * .5));
    opacity: 0;
  }
}

/* ── JS DOM: Угольки (.m3-ember) ────────────────────────────────── */
.m3-ember {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 4px #f97316, 0 0 8px rgba(251,146,60,.6);
  animation: m3-ember-rise var(--edur,.7s) ease-out forwards;
}
.m3-ember--big {
  width: 4px; height: 4px;
  background: #fb923c;
  box-shadow: 0 0 6px #ef4444, 0 0 12px rgba(239,68,68,.55);
}
.m3-ember--spark {
  width: 2px; height: 5px;
  border-radius: 40%;
  background: linear-gradient(to top, #fbbf24, rgba(255,255,200,.6));
  box-shadow: 0 0 3px #fde68a;
}
@keyframes m3-ember-rise {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  40%  { opacity: 1; }
  80%  { opacity: .7; }
  100% { transform: translate(var(--xd,0px), -58px) scale(0) rotate(var(--rot,45deg)); opacity: 0; }
}

/* ── Bomb — ударная волна по каждой клетке ─────────────────────── */
.m3-cell--bomb-hit {
  position: relative;
  z-index: 2;
  animation: m3-bomb-cell-hit .36s ease-out forwards;
}
.m3-cell--bomb-hit::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  background: radial-gradient(circle, rgba(255,255,220,.98) 0%, rgba(255,160,20,.85) 28%, rgba(255,60,0,.5) 52%, transparent 68%);
  animation: m3-shockwave-hit .32s ease-out forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes m3-bomb-cell-hit {
  0%   { transform: scale(1);    filter: brightness(1); }
  14%  { transform: scale(.82);  filter: brightness(8) saturate(0); }
  50%  { transform: scale(1.1);  filter: brightness(2.5) hue-rotate(-15deg); }
  100% { transform: scale(1);    filter: brightness(1); opacity: 0; }
}
@keyframes m3-shockwave-hit {
  0%   { opacity: 1;   transform: scale(.3); }
  55%  { opacity: .85; transform: scale(1.6); }
  100% { opacity: 0;   transform: scale(2.4); }
}

/* ── Explosion DOM overlay ─────────────────────────────────────── */
.m3-explosion {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
/* Ослепительная вспышка — белая с оранжевым краем */
.m3-explosion__flash {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,1)   0%,
    rgba(255,240,120,.98) 18%,
    rgba(255,140,0,.85)   40%,
    rgba(255,50,0,.5)     60%,
    transparent           75%
  );
  animation: m3-expl-flash .38s ease-out forwards;
}
/* Кольца ударной волны — оранжево-огненные */
.m3-explosion__ring {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  border: 3px solid rgba(255,160,20,.95);
  animation: m3-expl-ring .55s cubic-bezier(0,.15,.35,1) forwards;
}
.m3-explosion__ring--mid {
  border-color: rgba(255,80,0,.7);
  border-width: 2px;
  animation-delay: 55ms;
}
.m3-explosion__ring--outer {
  border-color: rgba(180,30,0,.45);
  border-width: 1.5px;
  animation-delay: 110ms;
}
/* Искры — огненные цвета */
.m3-explosion__spark {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  background: #fbbf24;
  animation: m3-expl-spark forwards;
}
/* Дым — тёмные клубы, уходящие вверх */
.m3-explosion__smoke {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,40,20,.65) 0%, transparent 68%);
  animation: m3-expl-smoke .95s ease-out forwards;
}
/* Обломки — коричневые прямоугольники */
.m3-explosion__chunk {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 2px;
  background: #92400e;
  animation: m3-expl-chunk .75s cubic-bezier(.15,0,.75,1) forwards;
}
/* Тряска доски */
@keyframes m3-board-shake {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  12%     { transform: translate(-5px, 3px) rotate(-.3deg); }
  25%     { transform: translate(6px, -4px) rotate(.4deg); }
  38%     { transform: translate(-4px, 5px) rotate(-.2deg); }
  52%     { transform: translate(5px, -2px) rotate(.3deg); }
  68%     { transform: translate(-3px, 3px) rotate(-.1deg); }
  82%     { transform: translate(2px, -1px) rotate(.1deg); }
}
.m3-board-shake { animation: m3-board-shake .38s ease-out; }

@keyframes m3-expl-flash {
  0%   { transform: translate(-50%,-50%) scale(0);   opacity: 1; }
  35%  { transform: translate(-50%,-50%) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(3.2); opacity: 0; }
}
@keyframes m3-expl-ring {
  0%   { transform: translate(-50%,-50%) scale(0);  opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(14); opacity: 0; }
}
@keyframes m3-expl-spark {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx),var(--sy)) scale(0); opacity: 0; }
}
@keyframes m3-expl-smoke {
  0%   { transform: translate(-50%,-50%) scale(.4);  opacity: .85; }
  100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(3); opacity: 0; }
}
@keyframes m3-expl-chunk {
  0%   { transform: translate(-50%,-50%) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) rotate(var(--rot)) scale(.2); opacity: 0; }
}

/* ── Комбо-уведомление ──────────────────────────────────────────── */
.m3-combo-notif {
  position: absolute;
  top: 38%;
  pointer-events: none;
  z-index: 25;
  text-align: center;
  animation: m3-combo-rise 1.1s cubic-bezier(.2,0,.6,1) forwards;
  white-space: nowrap;
}
.m3-combo-label {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 3px 12px 2px;
  border-radius: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  margin-bottom: 2px;
}
.m3-combo-mult {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  opacity: .9;
}
.m3-combo-notif--combo  .m3-combo-label { background: linear-gradient(135deg,#f59e0b,#f97316); color:#fff; box-shadow: 0 2px 12px rgba(249,115,22,.5); }
.m3-combo-notif--combo  .m3-combo-mult  { color: #fde68a; text-shadow: 0 0 8px rgba(253,230,138,.7); }
.m3-combo-notif--super  .m3-combo-label { background: linear-gradient(135deg,#a855f7,#ec4899); color:#fff; box-shadow: 0 2px 14px rgba(168,85,247,.6); }
.m3-combo-notif--super  .m3-combo-mult  { color: #f0abfc; text-shadow: 0 0 10px rgba(240,171,252,.8); }
.m3-combo-notif--mega   .m3-combo-label { background: linear-gradient(135deg,#06b6d4,#3b82f6); color:#fff; box-shadow: 0 2px 18px rgba(6,182,212,.7); font-size: 22px; }
.m3-combo-notif--mega   .m3-combo-mult  { color: #bae6fd; text-shadow: 0 0 12px rgba(186,230,253,.9); font-size: 15px; }
@keyframes m3-combo-rise {
  0%   { opacity: 1;   transform: translateY(0)     scale(.7); }
  18%  { opacity: 1;   transform: translateY(-8px)  scale(1.15); }
  55%  { opacity: 1;   transform: translateY(-24px) scale(1); }
  100% { opacity: 0;   transform: translateY(-70px) scale(.9); }
}

/* Плавающий счёт с комбо — крупнее и ярче */
.m3-float-score--combo { font-size: 17px; color: #fb923c; }

/* ═══════════════════════════════════════════════════════════════════
   ПРЕПЯТСТВИЯ — Freeze / Stone / Chain
   ═══════════════════════════════════════════════════════════════════ */

.m3-cell { position: relative; overflow: visible; }

.m3-obstacle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

/* Freeze — ледяная тюрьма */
.m3-obstacle--freeze {
  background-image: url('/assets/game/ice.webp');
  background-color: rgba(147,210,255,.08);
  border: 2px solid rgba(147,210,255,.7);
  border-radius: 8px;
  box-shadow:
    inset 0 0 10px rgba(100,180,255,.35),
    0 0 10px rgba(147,210,255,.4);
  animation: m3-freeze-shimmer 2.2s ease-in-out infinite;
}

/* Stone — каменный капкан */
.m3-obstacle--stone {
  background-image: url('/assets/game/overgrowth.webp');
  background-color: rgba(100,90,80,.12);
  border: 2px solid rgba(180,160,130,.65);
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(100,80,60,.3);
}
.m3-obstacle--hp2 {
  border-color: rgba(210,190,160,.85);
  border-width: 3px;
  box-shadow:
    inset 0 0 12px rgba(150,120,80,.45),
    0 0 8px rgba(200,180,150,.35);
  animation: m3-stone-alive 3.5s ease-in-out infinite;
}

/* Chain — цепи */
.m3-obstacle--chain {
  background-image: url('/assets/game/shackles.webp');
  background-color: rgba(210,180,60,.06);
  border: 2px solid rgba(210,180,60,.6);
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(200,160,0,.2), 0 0 6px rgba(210,180,60,.3);
  animation: m3-chain-rattle .9s ease-in-out infinite;
}

/* Клетки с заморозкой/камнем чуть приглушаем */
.m3-cell--obs-freeze { filter: brightness(.82) saturate(.7); }
.m3-cell--obs-stone  { filter: brightness(.78) saturate(.6); }
.m3-cell--obs-chain  { filter: brightness(.88) saturate(.85); }

/* Анимация взлома препятствия */
.m3-cell--obs-break {
  animation: m3-obs-break .45s cubic-bezier(.2,0,.6,1) forwards !important;
  z-index: 20;
}

@keyframes m3-freeze-shimmer {
  0%,100% {
    box-shadow: inset 0 0 10px rgba(100,180,255,.35), 0 0 10px rgba(147,210,255,.4);
    border-color: rgba(147,210,255,.7);
  }
  50% {
    box-shadow: inset 0 0 18px rgba(140,210,255,.55), 0 0 18px rgba(180,230,255,.65);
    border-color: rgba(190,240,255,.9);
  }
}
@keyframes m3-stone-alive {
  0%,80%,100% { transform: none; }
  85%  { transform: translate(-1px, 1px) rotate(-.3deg); }
  92%  { transform: translate(1px, -1px) rotate(.3deg); }
}
@keyframes m3-chain-rattle {
  0%,100% { transform: rotate(-2.5deg); }
  50%     { transform: rotate(2.5deg); }
}
@keyframes m3-obs-break {
  0%   { transform: scale(1);    filter: brightness(1); opacity: 1; }
  25%  { transform: scale(1.18); filter: brightness(4) saturate(0); opacity: 1; }
  65%  { transform: scale(.88);  filter: brightness(1.2); opacity: .55; }
  100% { transform: scale(1.05); filter: brightness(1); opacity: 0; }
}

/* Попытка свайпнуть заблокированную ячейку */
.m3-cell--obs-locked {
  animation: m3-obs-locked-pulse .4s ease-out !important;
}
@keyframes m3-obs-locked-pulse {
  0%,100% { box-shadow: none; }
  35% {
    box-shadow:
      inset 0 0 0 3px rgba(239,68,68,.9),
      0 0 14px rgba(239,68,68,.6);
    filter: brightness(1.4);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   МИНИ-БОССЫ — HP-bar + интро-модал
   ═══════════════════════════════════════════════════════════════════ */

.m3g-boss-bar {
  display: none;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(25,8,8,.96), rgba(15,4,4,.98));
  border: 1px solid rgba(220,50,50,.3);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 18px rgba(180,10,10,.25), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}
.m3g-boss-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 10px,
    rgba(200,20,20,.025) 10px, rgba(200,20,20,.025) 11px
  );
  pointer-events: none;
}

.m3g-boss-portrait {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: #1a0808 center/cover no-repeat;
  border: 2px solid rgba(220,80,80,.45);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(220,20,20,.5), inset 0 0 8px rgba(0,0,0,.4);
  animation: m3-boss-port-glow 2s ease-in-out infinite;
}
@keyframes m3-boss-port-glow {
  0%,100% { box-shadow: 0 0 14px rgba(220,20,20,.5); }
  50%     { box-shadow: 0 0 24px rgba(240,50,50,.75), 0 0 6px rgba(255,100,100,.3); }
}

.m3g-boss-info { flex: 1; min-width: 0; }
.m3g-boss-label {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(220,80,80,.65);
  margin-bottom: 2px;
}
.m3g-boss-name {
  font-size: 13px;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: .04em;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(220,50,50,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m3g-boss-hp-wrap { display: flex; align-items: center; gap: 7px; }
.m3g-boss-hp-track {
  flex: 1;
  height: 9px;
  background: rgba(255,255,255,.06);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(200,30,30,.15);
}
.m3g-boss-hp-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #991b1b 0%, #ef4444 55%, #f87171 100%);
  transition: width .4s cubic-bezier(.2,0,.4,1);
  box-shadow: 0 0 8px rgba(239,68,68,.55);
  animation: m3-boss-hp-breathe 1.8s ease-in-out infinite;
}
.m3g-boss-hp-fill--low {
  background: linear-gradient(90deg, #7c2d12 0%, #ea580c 55%, #fb923c 100%);
  box-shadow: 0 0 10px rgba(234,88,12,.7);
}
.m3g-boss-hp-fill--critical {
  background: linear-gradient(90deg, #450a0a 0%, #dc2626 45%, #f97316 100%);
  box-shadow: 0 0 16px rgba(220,38,38,1);
  animation: m3-boss-hp-critical .55s ease-in-out infinite;
}
.m3g-boss-hp-val {
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@keyframes m3-boss-hp-breathe {
  0%,100% { opacity: 1; }
  50% { opacity: .82; }
}
@keyframes m3-boss-hp-critical {
  0%,100% { opacity: 1; box-shadow: 0 0 16px rgba(220,38,38,1); }
  50%     { opacity: .65; box-shadow: 0 0 28px rgba(230,50,50,1), 0 0 50px rgba(220,30,30,.45); }
}

/* Boss bar смерть */
.m3g-boss-bar--defeated {
  animation: m3-boss-bar-die .7s ease-out forwards !important;
}
@keyframes m3-boss-bar-die {
  0%   { opacity: 1; transform: scaleY(1); }
  40%  { opacity: 1; filter: brightness(5) saturate(0); transform: scaleY(1.06); }
  100% { opacity: 0; transform: scaleY(0); filter: brightness(1); }
}

/* ── Boss intro modal ──────────────────────────────────────────── */
.m3g-boss-modal {
  background: linear-gradient(160deg, #0d0404 0%, #180606 55%, #090303 100%);
  border: 1px solid rgba(200,30,30,.38);
  border-radius: 16px;
  width: 340px;
  max-width: 96vw;
  overflow: hidden;
  box-shadow:
    0 8px 48px rgba(160,10,10,.5),
    0 0 90px rgba(160,0,0,.12),
    inset 0 1px 0 rgba(255,100,100,.06);
}
.m3g-boss-modal-header {
  padding: 22px 22px 0;
  text-align: center;
}
.m3g-boss-modal-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,100,100,.8);
  background: rgba(200,30,30,.12);
  border: 1px solid rgba(200,30,30,.28);
  border-radius: 20px;
  padding: 3px 14px;
  margin-bottom: 14px;
}
.m3g-boss-modal-portrait {
  width: 84px; height: 84px;
  border-radius: 12px;
  margin: 0 auto 12px;
  background: #140505 center/cover no-repeat;
  border: 2px solid rgba(220,80,80,.55);
  box-shadow: 0 0 24px rgba(220,20,20,.55), 0 0 50px rgba(180,0,0,.25);
  animation: m3-boss-port-glow 1.8s ease-in-out infinite;
}
.m3g-boss-modal-name {
  font-size: 24px;
  font-weight: 900;
  color: #fca5a5;
  letter-spacing: .03em;
  text-shadow: 0 0 18px rgba(220,50,50,.6);
  margin-bottom: 3px;
}
.m3g-boss-modal-sub {
  font-size: 10px;
  color: rgba(220,100,100,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.m3g-boss-modal-lore {
  background: rgba(255,255,255,.025);
  border-top: 1px solid rgba(200,30,30,.12);
  border-bottom: 1px solid rgba(200,30,30,.12);
  padding: 14px 22px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,190,190,.7);
  font-style: italic;
  text-align: center;
  position: relative;
}
.m3g-boss-modal-lore::before { content: '"'; margin-right: 2px; color: rgba(220,80,80,.45); font-size: 18px; }
.m3g-boss-modal-lore::after  { content: '"'; margin-left: 2px;  color: rgba(220,80,80,.45); font-size: 18px; }
.m3g-boss-modal-footer {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.m3g-boss-modal-hint {
  font-size: 11px;
  color: rgba(220,150,150,.5);
  text-align: center;
  line-height: 1.5;
}
.m3g-boss-modal-btn {
  width: 100%;
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .05em;
  box-shadow: 0 3px 14px rgba(220,38,38,.45);
  transition: all .15s;
}
.m3g-boss-modal-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  box-shadow: 0 5px 20px rgba(220,38,38,.65);
  transform: translateY(-1px);
}

/* ── Описание способности босса в интро ────────────────────────── */
.m3g-boss-modal-ability {
  margin: 0 22px 14px;
  padding: 12px 14px;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,80,80,.25);
  border-radius: 10px;
}
.m3g-boss-modal-ability-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.m3g-boss-modal-ability-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  border-radius: 8px;
  border: 1px solid rgba(220,80,80,.3);
}
.m3g-boss-modal-ability-name {
  font-size: 14px;
  font-weight: 800;
  color: #fca5a5;
}
.m3g-boss-modal-ability-cd {
  font-size: 10px;
  color: rgba(220,150,150,.65);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.m3g-boss-modal-ability-cd b { color: #fca5a5; font-weight: 800; }
.m3g-boss-modal-ability-desc {
  font-size: 12px;
  color: rgba(255,210,210,.78);
  line-height: 1.45;
}

/* ── Доп. блоки в HP-бар (фаза + следующая атака) ──────────────── */
.m3g-boss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.m3g-boss-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.m3g-boss-phase {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.m3g-boss-phase--p2 { color: #fbbf24; background: rgba(251,191,36,.10); }
.m3g-boss-phase--p3 { color: #fb923c; background: rgba(251,146,60,.12); }
.m3g-boss-phase--p4 {
  color: #ef4444;
  background: rgba(239,68,68,.14);
  animation: m3-boss-phase-pulse 1.1s ease-in-out infinite;
}
@keyframes m3-boss-phase-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.0); }
  50%     { box-shadow: 0 0 0 4px rgba(239,68,68,.18); }
}

.m3g-boss-attack-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,200,200,.78);
  background: rgba(220,38,38,.10);
  border: 1px solid rgba(220,80,80,.25);
  padding: 3px 8px;
  border-radius: 999px;
}
.m3g-boss-attack-icon { font-size: 13px; }
.m3g-boss-attack-text { display: inline-flex; gap: 5px; align-items: baseline; }
.m3g-boss-attack-cd { color: rgba(220,150,150,.7); }
.m3g-boss-attack-cd b { color: #fca5a5; font-weight: 800; }

/* ── Атака: тряска + красная вспышка по босс-бару ──────────────── */
.m3g-boss-bar--attack {
  animation: m3-boss-attack-shake .55s cubic-bezier(.2,.8,.4,1) 1;
}
@keyframes m3-boss-attack-shake {
  0%   { transform: translateX(0); filter: brightness(1); }
  15%  { transform: translateX(-7px); filter: brightness(1.6) saturate(1.4); }
  30%  { transform: translateX(7px); }
  45%  { transform: translateX(-5px); }
  60%  { transform: translateX(5px); }
  80%  { transform: translateX(-2px); }
  100% { transform: translateX(0); filter: brightness(1); }
}

/* ── Enrage анимация при смене фазы ─────────────────────────────── */
.m3g-boss-bar--enrage {
  animation: m3-boss-enrage .85s ease-out 1;
}
@keyframes m3-boss-enrage {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  35%  { box-shadow: 0 0 0 12px rgba(239,68,68,.22), 0 0 38px rgba(239,68,68,.55) inset; transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); transform: scale(1); }
}

/* ── Баннер атаки ──────────────────────────────────────────────── */
.m3g-boss-attack-banner {
  position: fixed;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -10px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(60,8,8,.96) 0%, rgba(120,18,18,.96) 100%);
  border: 1px solid rgba(239,68,68,.55);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(220,38,38,.45), 0 0 60px rgba(239,68,68,.18) inset;
  font-weight: 800;
  color: #fca5a5;
  z-index: 320;
  pointer-events: none;
  opacity: 0;
  transition: none;
}
.m3g-boss-attack-banner-icon { font-size: 26px; }
.m3g-boss-attack-banner-text { font-size: 14px; letter-spacing: .02em; }
.m3g-boss-attack-banner--show {
  animation: m3-boss-banner 1.7s cubic-bezier(.2,.7,.3,1) 1 forwards;
}
@keyframes m3-boss-banner {
  0%   { opacity: 0; transform: translate(-50%, -22px) scale(.85); }
  18%  { opacity: 1; transform: translate(-50%, 0) scale(1.04); }
  28%  { transform: translate(-50%, 0) scale(1); }
  78%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(.96); }
}

/* ── Доска: вспышка при смене фазы + темнота от Night Stalker ─── */
.m3g-board-wrap--phase-flash::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(239,68,68,.5), rgba(239,68,68,0) 70%);
  pointer-events: none;
  animation: m3-board-flash .65s ease-out 1;
  z-index: 6;
}
@keyframes m3-board-flash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}
.m3g-board-wrap--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at center, rgba(0,0,0,.0) 30%, rgba(0,0,0,.7) 100%),
    rgba(0,0,0,.3);
  pointer-events: none;
  z-index: 5;
}

/* ── Появление препятствий от босса ────────────────────────────── */
.m3-cell--boss-spawn {
  animation: m3-cell-boss-spawn .55s ease-out 1;
}
@keyframes m3-cell-boss-spawn {
  0%   { transform: scale(.4); filter: brightness(2.5) saturate(2); }
  60%  { transform: scale(1.15); filter: brightness(1.5) saturate(1.4); }
  100% { transform: scale(1); filter: brightness(1) saturate(1); }
}

/* ── Удар Axe — счётчик ходов мигает ───────────────────────────── */
.m3g-hud-val--axed {
  animation: m3-hud-axed .5s ease-out 1;
}
@keyframes m3-hud-axed {
  0%   { color: #ef4444; transform: scale(1); }
  35%  { color: #ef4444; transform: scale(1.4); text-shadow: 0 0 18px rgba(239,68,68,.9); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════
   ЕЖЕДНЕВНЫЕ ЗАДАНИЯ
   ═══════════════════════════════════════════════════════════════════ */

.m3g-quests {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 0 2px;
  border-top: 1px solid rgba(255,255,255,.055);
  margin-top: 6px;
}
.m3g-quests-title {
  width: 100%;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 2px;
}
.m3-quest {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.038);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 5px 8px;
  flex: 1;
  min-width: 120px;
  transition: background .3s, border-color .3s;
}
.m3-quest--done {
  background: rgba(34,197,94,.1);
  border-color: rgba(34,197,94,.28);
}
.m3-quest-icon { font-size: 15px; line-height: 1; flex-shrink: 0; }
.m3-quest-body { flex: 1; min-width: 0; }
.m3-quest-label {
  font-size: 10px;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.m3-quest--done .m3-quest-label { color: #4ade80; }
.m3-quest-track {
  height: 3px;
  background: rgba(255,255,255,.09);
  border-radius: 2px;
  overflow: hidden;
}
.m3-quest-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 2px;
  transition: width .45s cubic-bezier(.2,0,.4,1);
}
.m3-quest--done .m3-quest-fill { background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%); }
.m3-quest-count {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.42);
  flex-shrink: 0;
}
.m3-quest--done .m3-quest-count { color: #4ade80; }

/* Quest complete notification */
.m3-quest-complete-notif {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #14532d 0%, #15803d 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: 26px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(22,163,74,.55), 0 0 40px rgba(20,83,45,.3);
  animation: m3-quest-notif-anim 2.6s ease-out forwards;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@keyframes m3-quest-notif-anim {
  0%   { opacity: 0; transform: translateX(-50%) translateY(18px) scale(.9); }
  14%  { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1.04); }
  20%  { transform: translateX(-50%) translateY(0) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-16px); }
}

/* ═══════════════════════════════════════════════════════════════════
   ОГОНЬ МЕТЕОРА — усиленная версия
   ═══════════════════════════════════════════════════════════════════ */

/* Переопределяем burn-класс: более мощное исчезновение */
.m3-cell--meteor-burn {
  position: relative;
  z-index: 3;
  overflow: visible;
  animation: m3-cell-ignite-v2 .62s cubic-bezier(.18,0,.42,1) forwards;
}

/* Раскалённое ядро — белое → синее → жёлтое (как настоящий огонь) */
.m3-cell--meteor-burn::before {
  content: '';
  position: absolute;
  left: -14%; right: -14%;
  bottom: -8px; top: 5%;
  border-radius: 52% 48% 42% 42% / 38% 38% 62% 62%;
  background:
    radial-gradient(ellipse 45% 35% at 50% 90%,
      rgba(255,255,255,1)   0%,
      rgba(200,220,255,.98) 7%,
      rgba(120,80,255,.85)  18%,
      transparent           35%
    ),
    radial-gradient(ellipse 62% 52% at 50% 88%,
      rgba(255,255,230,.98) 0%,
      rgba(255,230,40,.94)  12%,
      rgba(255,130,0,.86)   28%,
      rgba(240,40,0,.68)    48%,
      rgba(180,8,0,.4)      66%,
      transparent           80%
    );
  filter: blur(4px);
  mix-blend-mode: screen;
  animation:
    m3-flame-core-morph .09s ease-in-out infinite alternate,
    m3-flame-core-fade  .62s ease-in forwards;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 100%;
}

/* Тело пламени — выше и шире */
.m3-cell--meteor-burn::after {
  content: '';
  position: absolute;
  left: 2%; right: 2%;
  bottom: -4px; top: -40px;
  background:
    radial-gradient(ellipse 28% 26% at 50% 92%,
      rgba(255,255,255,1)   0%,
      rgba(180,200,255,.9)  10%,
      rgba(100,60,255,.6)   25%,
      transparent           42%
    ),
    radial-gradient(ellipse 58% 52% at 48% 82%,
      rgba(255,255,160,.98) 0%,
      rgba(255,190,5,.92)   12%,
      rgba(255,85,0,.82)    28%,
      rgba(225,22,0,.65)    50%,
      rgba(145,5,0,.3)      68%,
      transparent           82%
    ),
    radial-gradient(ellipse 32% 62% at 74% 68%,
      rgba(255,150,0,.5) 0%,
      rgba(255,60,0,.2)  44%,
      transparent         62%
    );
  mix-blend-mode: screen;
  filter: blur(1.8px);
  animation:
    m3-flame-morph .13s ease-in-out infinite,
    m3-flame-body-fade .62s ease-in forwards;
  z-index: 4;
  pointer-events: none;
  transform-origin: 50% 100%;
}

/* Более драматичное исчезновение */
@keyframes m3-cell-ignite-v2 {
  0%   { filter: brightness(1)    saturate(1);   transform: scale(1); }
  8%   { filter: brightness(5)    saturate(6) hue-rotate(-25deg); transform: scale(1.07); }
  30%  { filter: brightness(8)    saturate(7);   transform: scale(1.10); }
  58%  { filter: brightness(12)   saturate(3);   transform: scale(1.05) translateY(-5px); }
  100% { filter: brightness(18)   saturate(0);   transform: scale(.45) translateY(-20px); opacity: 0; }
}

/* Язык пламени — тоньше, длиннее, с горячей сердцевиной */
.m3-fire-lick {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
  background:
    radial-gradient(ellipse 30% 40% at 50% 85%,
      rgba(255,255,255,1)   0%,
      rgba(200,210,255,.9)  8%,
      rgba(120,80,255,.6)   20%,
      transparent           38%
    ),
    radial-gradient(ellipse 52% 65% at 50% 82%,
      rgba(255,255,180,.96)  0%,
      rgba(255,170,0,.88)    22%,
      rgba(255,65,0,.68)     46%,
      rgba(200,15,0,.4)      66%,
      transparent            80%
    );
  filter: blur(2.2px);
  animation: m3-lick-rise var(--dur, .2s) ease-out forwards;
}

/* Угольки — ярче и крупнее */
.m3-ember {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 3.5px; height: 3.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #fef08a 30%, #fbbf24 60%);
  box-shadow: 0 0 5px #f97316, 0 0 10px rgba(251,146,60,.55);
  animation: m3-ember-rise var(--edur,.75s) ease-out forwards;
}
.m3-ember--big {
  width: 5px; height: 5px;
  background: radial-gradient(circle, #fff 0%, #fde68a 25%, #fb923c 55%);
  box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239,68,68,.5);
}
.m3-ember--spark {
  width: 2.5px; height: 7px;
  border-radius: 40%;
  background: linear-gradient(to top, #fbbf24 0%, rgba(255,255,220,.8) 60%, rgba(255,255,255,.4) 100%);
  box-shadow: 0 0 4px #fde68a, 0 0 8px rgba(253,230,138,.5);
}
.m3-ember--hot {
  width: 4px; height: 4px;
  background: radial-gradient(circle, #fff 0%, rgba(180,200,255,.95) 20%, rgba(140,80,255,.7) 50%, transparent 80%);
  box-shadow: 0 0 6px rgba(160,120,255,.8), 0 0 12px rgba(120,80,255,.5);
}

/* ── Светлая тема — задания и боссы ─────────────────────────── */
[data-theme="light"] .m3g-quests {
  border-top-color: rgba(37,48,49,.1);
}
[data-theme="light"] .m3g-quests-title {
  color: var(--muted);
}
[data-theme="light"] .m3-quest {
  background: rgba(37,48,49,.04);
  border-color: rgba(37,48,49,.1);
}
[data-theme="light"] .m3-quest--done {
  background: rgba(22,163,74,.08);
  border-color: rgba(22,163,74,.22);
}
[data-theme="light"] .m3-quest-label {
  color: var(--muted);
}
[data-theme="light"] .m3-quest-track {
  background: rgba(37,48,49,.1);
}
[data-theme="light"] .m3-quest-count {
  color: var(--muted);
}

[data-theme="light"] .m3s-daily-quests {
  background: var(--surface2);
  border-color: var(--border);
}
[data-theme="light"] .m3s-daily-quests-title {
  color: var(--muted);
}
[data-theme="light"] .m3s-quest {
  background: rgba(37,48,49,.04);
  border-color: rgba(37,48,49,.08);
}
[data-theme="light"] .m3s-quest--done {
  background: rgba(22,163,74,.08);
  border-color: rgba(22,163,74,.2);
}
[data-theme="light"] .m3s-quest-label { color: var(--muted); }
[data-theme="light"] .m3s-quest-track { background: rgba(37,48,49,.1); }
[data-theme="light"] .m3s-quest-count { color: var(--muted); }

[data-theme="light"] .m3s-lvl--boss {
  background: linear-gradient(160deg, rgba(220,38,38,.06), rgba(220,38,38,.03));
  border-color: rgba(220,38,38,.35);
}

[data-theme="light"] .ls-m3-banner {
    box-shadow: none;
}

[data-theme="light"] .ls-m3-banner:hover {
    box-shadow: none;
}

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .m3s-layout { grid-template-columns: 1fr; }
  .m3s-side   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 600px) {
  .m3s-side { grid-template-columns: 1fr; }
  .m3s-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .m3g-wrap { padding: 8px 8px 32px; }
  .m3g-hud  { padding: 8px 10px; }
  .m3g-hud-val { font-size: 18px; }
  .m3g-booster { min-width: 50px; padding: 6px 8px; }
  .m3g-booster-icon { font-size: 16px; }
}

@media (max-width: 380px) {
  .m3g-boosters { gap: 4px; }
  .m3g-booster  { min-width: 44px; }
  .m3s-grid     { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════
   MATCH-3 v2 — Режимы / Roshan / Прокачка / Бесконечный / Боссы
   ═══════════════════════════════════════════════════════════════════ */

/* ── Режимы игры ──────────────────────────────────────────────── */
.m3s-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.m3s-mode-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.m3s-mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.m3s-mode-card--normal {
  opacity: .7;
  cursor: default;
}
.m3s-mode-card--inf {
  border-color: rgba(139,92,246,.45);
  background: linear-gradient(135deg, rgba(139,92,246,.08) 0%, rgba(59,130,246,.06) 100%);
}
.m3s-mode-card--inf:hover {
  border-color: rgba(139,92,246,.8);
  box-shadow: 0 6px 24px rgba(139,92,246,.25);
}
.m3s-mode-card--roshan {
  border-color: rgba(220,38,38,.45);
  background: linear-gradient(135deg, rgba(220,38,38,.08) 0%, rgba(234,88,12,.06) 100%);
  text-decoration: none;
  color: inherit;
}
.m3s-mode-card--roshan:hover {
  border-color: rgba(220,38,38,.8);
  box-shadow: 0 6px 24px rgba(220,38,38,.25);
}
.m3s-mode-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.m3s-mode-body {
  flex: 1;
  min-width: 0;
}
.m3s-mode-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.m3s-mode-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.m3s-mode-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(100,100,100,.2);
  color: var(--muted);
  white-space: nowrap;
}
.m3s-mode-arrow {
  color: rgba(139,92,246,.7);
  flex-shrink: 0;
}

/* ── Roshan виджет ────────────────────────────────────────────── */
.m3s-roshan {
  background: linear-gradient(135deg, rgba(220,38,38,.08) 0%, rgba(15,23,42,.0) 100%);
  border: 1px solid rgba(220,38,38,.3);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.m3s-roshan::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(220,38,38,.12) 0%, transparent 70%);
  pointer-events: none;
}
.m3s-roshan-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.m3s-roshan-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(220,38,38,.4);
  flex-shrink: 0;
}
.m3s-roshan-info {
  flex: 1;
  min-width: 0;
}
.m3s-roshan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.m3s-roshan-phase {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(220,38,38,.12);
}
.m3s-roshan-hp-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m3s-roshan-hp-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  overflow: hidden;
}
.m3s-roshan-hp-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,.5);
}
.m3s-roshan-hp-text {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 100px;
  text-align: right;
}
.m3s-roshan-mydmg {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.m3s-roshan-mydmg strong {
  color: #f97316;
}
.m3s-roshan-rewards {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.m3s-roshan-reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}
.m3s-roshan-reward-rank {
  color: var(--muted);
}
.m3s-roshan-reward-val {
  font-weight: 700;
  color: #f59e0b;
}
.m3s-roshan-top {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.m3s-roshan-dealer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
}
.m3s-roshan-dealer--first {
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.3);
}
.m3s-roshan-dealer-rank {
  color: var(--muted);
  font-weight: 600;
  min-width: 14px;
}
.m3s-roshan-dealer-name {
  color: var(--text);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m3s-roshan-dealer-dmg {
  color: #f97316;
  font-weight: 700;
  margin-left: 2px;
}
.m3s-roshan-hint {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* ── Панель прокачки ──────────────────────────────────────────── */
.m3s-upgrades-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.m3s-upgrade-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(245,158,11,.08) 0%, rgba(251,191,36,.04) 100%);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.m3s-upgrade-bar:hover {
  border-color: rgba(245,158,11,.5);
  box-shadow: 0 4px 14px rgba(245,158,11,.15);
}
.m3s-upgrade-bar--blue {
  background: linear-gradient(135deg, rgba(59,130,246,.08) 0%, rgba(1,111,185,.04) 100%);
  border-color: rgba(59,130,246,.25);
}
.m3s-upgrade-bar--blue:hover {
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 4px 14px rgba(59,130,246,.15);
}
.m3s-upgrade-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.m3s-upgrade-bar-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.m3s-upgrade-bar-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.m3s-upgrade-bar-hint {
  font-size: 11px;
  color: var(--muted);
}
.m3s-upgrade-bar-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 10px rgba(245,158,11,.35);
}
.m3s-upgrade-bar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,.5);
}

/* ── Модалка прокачки ─────────────────────────────────────────── */
.m3s-upgrade-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.m3s-upgrade-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.m3s-upgrade-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.m3s-upgrade-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.m3s-upgrade-modal-close:hover {
  background: var(--surface2);
}
.m3s-upgrade-modal-desc {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 20px 0;
  margin: 0;
  flex-shrink: 0;
}
.m3s-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 14px 20px 20px;
  overflow-y: auto;
}
.m3s-upgrade-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.m3s-upgrade-card--lv2 {
  border-color: rgba(245,158,11,.4);
  box-shadow: 0 0 10px rgba(245,158,11,.15);
}
.m3s-upgrade-card--max {
  border-color: rgba(251,191,36,.6);
  box-shadow: 0 0 14px rgba(251,191,36,.3);
  background: linear-gradient(160deg, rgba(251,191,36,.07) 0%, var(--surface2) 100%);
}
.m3s-upgrade-card-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
}
.m3s-upgrade-card--lv2 .m3s-upgrade-card-img {
  border-color: rgba(245,158,11,.5);
  box-shadow: 0 0 8px rgba(245,158,11,.3);
}
.m3s-upgrade-card--max .m3s-upgrade-card-img {
  border-color: rgba(251,191,36,.7);
  box-shadow: 0 0 12px rgba(251,191,36,.45);
}
.m3s-upgrade-card-name {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m3s-upgrade-lvl-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.m3s-upgrade-lvl-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width .4s ease;
}
.m3s-upgrade-card-lvl {
  font-size: 10px;
  color: var(--muted);
}
.m3s-upgrade-card-btn {
  width: 100%;
  padding: 5px 6px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .15s;
  margin-top: 2px;
}
.m3s-upgrade-card-btn:hover:not(:disabled) {
  transform: scale(1.04);
}
.m3s-upgrade-card-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.m3s-upgrade-cost {
  font-weight: 700;
}
.m3s-upgrade-card-maxed {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: .5px;
  margin-top: 2px;
}

/* ── Прокачка бустеров — карточки ────────────────────────────── */
.m3s-booster-upgrade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 20px 20px;
  overflow-y: auto;
}
.m3s-booster-upgrade-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.m3s-booster-upgrade-card--max {
  border-color: rgba(251,191,36,.5);
  box-shadow: 0 0 12px rgba(251,191,36,.2);
}
.m3s-booster-upgrade-icon {
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m3s-booster-upgrade-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.m3s-booster-upgrade-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
/* Прогресс-лента: ● —— ○ —— ○ */
.m3s-booster-upgrade-levels {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0 6px;
}
.m3s-bul-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.m3s-bul-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.2);
  transition: background .2s, border-color .2s;
}
.m3s-bul-step--done .m3s-bul-dot {
  background: #f59e0b;
  border-color: #f59e0b;
}
.m3s-bul-label {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m3s-bul-step--done .m3s-bul-label {
  color: #f59e0b;
  font-weight: 700;
}
.m3s-bul-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.1);
  margin-bottom: 14px; /* сдвиг вниз чтобы совпасть с точками */
  transition: background .2s;
  min-width: 10px;
}
.m3s-bul-line--done {
  background: #f59e0b;
}

/* ── Бесконечный режим — лидерборд ───────────────────────────── */
.m3inf-lb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
.m3inf-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
}
.m3inf-lb-row--top {
  background: rgba(245,158,11,.07);
  border-color: rgba(245,158,11,.2);
}
.m3inf-lb-rank {
  font-weight: 800;
  color: var(--muted);
  min-width: 22px;
  text-align: center;
}
.m3inf-lb-name {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m3inf-lb-score {
  font-weight: 700;
  color: #f59e0b;
}

/* ── Бесконечный режим — модалки / бейдж ─────────────────────── */
.m3g-level-badge--inf {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
}
.m3inf-modal-roshan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(220,38,38,.1);
  border: 1px solid rgba(220,38,38,.25);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.m3inf-modal-roshan strong {
  color: #ef4444;
}

/* ── Boss ability banner ──────────────────────────────────────── */
.m3g-boss-ability-banner {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,41,59,.88));
  border: 1px solid rgba(239,68,68,.45);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 22px;
  white-space: nowrap;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(239,68,68,.3);
  animation: m3-ability-banner-pop .35s ease-out;
  pointer-events: none;
}
@keyframes m3-ability-banner-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.9); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1); }
}

/* ── Boss intro modal — описание способности ─────────────────── */
.m3g-boss-modal-ability {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  text-align: center;
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  font-style: italic;
  line-height: 1.5;
}

/* ── Заблокированные тайлы (боссы) ───────────────────────────── */
.m3-cell--boss-locked {
  position: relative;
}
.m3-boss-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(100,116,139,.55);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: none;
  backdrop-filter: blur(1px);
}
.m3-cell--boss-locked .m3-cell-icon {
  opacity: .45;
  filter: grayscale(.6);
}

/* ── Проклятые тайлы (урон = 0) ──────────────────────────────── */
.m3-cell--boss-cursed {
  position: relative;
}
.m3-boss-curse-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(147,51,234,.3);
  border: 1px solid rgba(168,85,247,.55);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  pointer-events: none;
  animation: m3-curse-pulse 1.8s ease-in-out infinite;
}
@keyframes m3-curse-pulse {
  0%,100% { background: rgba(147,51,234,.25); }
  50%      { background: rgba(168,85,247,.4); }
}

/* ── Токсичные колонки ────────────────────────────────────────── */
.m3-cell--boss-toxic {
  background: linear-gradient(160deg, rgba(34,197,94,.08) 0%, rgba(22,163,74,.05) 100%) !important;
  border-color: rgba(34,197,94,.2) !important;
}
.m3-cell--boss-toxic .m3-cell-icon {
  filter: hue-rotate(80deg) saturate(1.3);
}

/* ── Скрытая доска (Night Stalker / Spectre) ──────────────────── */
.m3-board--hidden .m3-cell-icon {
  visibility: hidden !important;
}
.m3-board--hidden::before {
  content: '🌑 Тьма!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(255,255,255,.25);
  font-weight: 900;
  letter-spacing: 2px;
  pointer-events: none;
  z-index: 10;
}

/* ── Заморожена доска (Chronosphere / Faceless Void) ─────────── */
.m3-board--time-locked {
  pointer-events: none;
}
.m3-board--time-locked::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: rgba(96,165,250,.08);
  border: 2px solid rgba(96,165,250,.35);
  pointer-events: none;
  animation: m3-chronosphere-ring 1s ease-in-out infinite;
  z-index: 5;
}
@keyframes m3-chronosphere-ring {
  0%,100% { border-color: rgba(96,165,250,.35); box-shadow: 0 0 12px rgba(96,165,250,.2); }
  50%      { border-color: rgba(147,197,253,.6); box-shadow: 0 0 20px rgba(96,165,250,.4); }
}

/* ── Wraith King — оживает ────────────────────────────────────── */
.m3g-boss-bar--reviving .m3g-boss-hp-fill {
  background: linear-gradient(90deg, #22c55e, #86efac) !important;
  animation: m3-revive-pulse .5s ease-in-out 3;
}
@keyframes m3-revive-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* ── Clinkz — скрыта шкала босса ─────────────────────────────── */
.m3g-boss-bar--hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Заглушённые бустеры ──────────────────────────────────────── */
.m3g-booster--silenced {
  opacity: .4 !important;
  pointer-events: none !important;
  position: relative;
}
.m3g-booster--silenced::after {
  content: '🔇';
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 9px;
}

/* ── Transform animation (tile transform) ────────────────────── */
.m3-cell--transform {
  animation: m3-tile-transform .35s ease-out;
}
@keyframes m3-tile-transform {
  0%   { transform: scale(1) rotate(0deg); filter: brightness(1); }
  40%  { transform: scale(1.3) rotate(15deg); filter: brightness(2) saturate(3); }
  70%  { transform: scale(.85) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

/* ── Roshan widget — светлая тема ─────────────────────────────── */
[data-theme="light"] .m3s-roshan {
  background: linear-gradient(135deg, rgba(220,38,38,.05) 0%, rgba(248,250,252,0) 100%);
  border-color: rgba(220,38,38,.22);
}
[data-theme="light"] .m3s-roshan-hint {
  color: rgba(37,48,49,.35);
}
[data-theme="light"] .m3s-roshan-dealer {
  background: rgba(37,48,49,.04);
  border-color: rgba(37,48,49,.08);
}
[data-theme="light"] .m3s-roshan-phase {
  background: rgba(220,38,38,.07);
}

/* ── Mode cards — светлая тема ────────────────────────────────── */
[data-theme="light"] .m3s-mode-card--inf {
  background: linear-gradient(135deg, rgba(139,92,246,.06) 0%, rgba(59,130,246,.04) 100%);
}
[data-theme="light"] .m3s-upgrade-bar {
  background: linear-gradient(135deg, rgba(245,158,11,.05) 0%, rgba(251,191,36,.03) 100%);
}

/* ── Upgrade modal — светлая тема ─────────────────────────────── */
[data-theme="light"] .m3s-upgrade-card {
  background: rgba(37,48,49,.04);
  border-color: rgba(37,48,49,.1);
}
[data-theme="light"] .m3s-upgrade-lvl-bar {
  background: rgba(37,48,49,.1);
}

/* ── Адаптив для новых блоков ─────────────────────────────────── */
@media (max-width: 600px) {
  .m3s-modes { grid-template-columns: 1fr; }
  .m3s-roshan-head { flex-wrap: wrap; }
  .m3s-roshan-rewards { flex-direction: row; gap: 8px; flex-wrap: wrap; }
  .m3s-upgrade-bar { flex-wrap: wrap; gap: 8px; }
  .m3s-upgrade-bar-hint { display: none; }
  .m3s-upgrade-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .m3g-boss-ability-banner { font-size: 11px; padding: 5px 12px; }
}

/* ════════════════════════════════════════════════════════════════
   ROSHAN BATTLE ROOM
   ════════════════════════════════════════════════════════════════ */

.rosh-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Навигация */
.rosh-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rosh-nav-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.rosh-nav-balance {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
}

/* Карточка Рошана */
.rosh-boss-card {
  background: linear-gradient(135deg, rgba(220,38,38,.1) 0%, rgba(139,92,246,.06) 100%);
  border: 1px solid rgba(220,38,38,.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.rosh-boss-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(220,38,38,.12) 0%, transparent 70%);
  pointer-events: none;
}
.rosh-boss-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.rosh-boss-portrait-wrap {
  flex-shrink: 0;
  position: relative;
}
.rosh-boss-portrait {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(220,38,38,.5);
  display: block;
}
.rosh-boss-phase-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: .3px;
}
.rosh-boss-info {
  flex: 1;
  min-width: 0;
}
.rosh-boss-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}
.rosh-boss-hp-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rosh-boss-hp-track {
  height: 12px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  overflow: hidden;
}
.rosh-boss-hp-fill {
  height: 100%;
  border-radius: 6px;
  transition: width .6s ease;
}
.rosh-boss-hp-vals {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.rosh-boss-killed {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #22c55e;
}

/* Награды */
.rosh-boss-rewards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.rosh-reward-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 10px;
  background: rgba(255,255,255,.05);
  border-radius: 7px;
  font-size: 12px;
  min-width: 140px;
}
.rosh-reward-rank { color: var(--muted); }
.rosh-reward-gc { font-weight: 800; color: #f59e0b; }

/* Активные игроки */
.rosh-active-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 7px 12px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Основная сетка */
.rosh-main-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}

/* Панель игрока */
.rosh-player-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rosh-player-hp-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.rosh-player-hp-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.rosh-player-hearts {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.rosh-heart {
  transition: color .3s, transform .3s;
}
.rosh-heart--on  { color: #ef4444; }
.rosh-heart--off { color: rgba(255,255,255,.12); }
.rosh-ko-msg {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  text-align: center;
  line-height: 1.4;
}

.rosh-my-damage-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rosh-my-damage-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.rosh-my-damage-val {
  font-size: 20px;
  font-weight: 800;
  color: #ef4444;
}

/* Кнопка атаки */
.rosh-attack-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform .1s, box-shadow .2s, filter .2s;
  box-shadow: 0 4px 20px rgba(220,38,38,.4);
  overflow: hidden;
}
.rosh-attack-btn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(220,38,38,.55);
}
.rosh-attack-btn:active:not(:disabled) {
  transform: scale(.97);
}
.rosh-attack-btn--hit {
  filter: brightness(1.6);
}
.rosh-attack-btn--disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.rosh-attack-dmg {
  font-size: 11px;
  font-weight: 600;
  opacity: .8;
}
.rosh-attack-cooldown {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: rgba(255,255,255,.5);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.rosh-hero-boost-hint {
  font-size: 11px;
  color: #f59e0b;
  font-weight: 600;
  text-align: center;
  padding: 6px 0;
}

/* Журнал событий */
.rosh-log-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  max-height: 220px;
  overflow: hidden;
}
.rosh-log-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.rosh-log-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 170px;
}
.rosh-log-entry {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: 5px;
  line-height: 1.35;
}
.rosh-log-entry--attack  { color: #f97316; background: rgba(249,115,22,.08); }
.rosh-log-entry--dmg     { color: #ef4444; }
.rosh-log-entry--kill    { color: #22c55e; font-weight: 700; background: rgba(34,197,94,.1); }
.rosh-log-entry--ko      { color: #dc2626; font-weight: 700; }
.rosh-log-entry--revive  { color: #a78bfa; font-weight: 700; }
.rosh-log-entry--system  { color: var(--muted); }

/* Лидерборд */
.rosh-leaderboard-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rosh-lb-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.rosh-lb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rosh-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  transition: background .2s;
}
.rosh-lb-row--first {
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.3);
}
.rosh-lb-row--me {
  background: rgba(1,111,185,.12);
  border-color: rgba(1,111,185,.35);
}
.rosh-lb-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  width: 18px;
  text-align: center;
}
.rosh-lb-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rosh-lb-dmg {
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
}
.rosh-lb-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

/* Механики */
.rosh-mechanics-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.rosh-mechanics-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.rosh-mechanics-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.rosh-mech-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.rosh-mech-icon { font-size: 14px; flex-shrink: 0; }
.rosh-mechanics-hint {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  line-height: 1.4;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}

/* Оверлей атаки */
.rosh-attack-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  cursor: pointer;
  animation: roshOverlayIn .2s ease;
}
@keyframes roshOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.rosh-attack-overlay-inner {
  text-align: center;
  animation: roshBounceIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes roshBounceIn {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.rosh-attack-overlay-icon {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 12px;
}
.rosh-attack-overlay-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(220,38,38,.8);
}

/* Светлая тема */
[data-theme="light"] .rosh-boss-card {
  background: linear-gradient(135deg, rgba(220,38,38,.05) 0%, rgba(139,92,246,.03) 100%);
}
[data-theme="light"] .rosh-lb-row {
  background: rgba(37,48,49,.03);
}
[data-theme="light"] .rosh-player-hp-card,
[data-theme="light"] .rosh-my-damage-card,
[data-theme="light"] .rosh-log-card,
[data-theme="light"] .rosh-mechanics-card {
  background: #fff;
}

/* Адаптив */
@media (max-width: 700px) {
  .rosh-main-grid { grid-template-columns: 1fr; }
  .rosh-boss-card { flex-direction: column; }
  .rosh-boss-rewards { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .rosh-reward-item { min-width: 0; flex: 1; }
}

/* ════════════════════════════════════════════════════════════════════
   HERO RUSH — БЕСКОНЕЧНЫЙ РЕЖИМ
   ═══════════════════════════════════════════════════════════════════ */

.m3inf-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Навигация ──────────────────────────────────────────────────── */
.m3inf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}
.m3inf-nav-title {
  flex: 1;
  text-align: center;
}
.m3inf-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(99,102,241,.14));
  border: 1px solid rgba(168,85,247,.3);
  color: #c4b5fd;
}
.m3inf-end-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.1);
  color: #f87171;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.m3inf-end-btn:hover { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.55); }

/* ── HUD ────────────────────────────────────────────────────────── */
.m3inf-hud {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.m3inf-hud-block {
  background: var(--surface2);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m3inf-hud-block--center {
  background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(99,102,241,.08));
  border: 1px solid rgba(168,85,247,.2);
}
.m3inf-hud-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.m3inf-hud-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.m3inf-hud-val--best { color: #a78bfa; }
.m3inf-hud-val--level { color: #f59e0b; }
.m3inf-hud-val--pb {
  color: #fbbf24;
  animation: m3inf-pb-pulse .5s ease-out;
}
@keyframes m3inf-pb-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); color: #fde68a; }
  100% { transform: scale(1); }
}

/* ── Прогресс-бар уровня ────────────────────────────────────────── */
.m3inf-progress-wrap {
  background: var(--surface2);
  border-radius: 8px;
  height: 28px;
  position: relative;
  overflow: hidden;
}
.m3inf-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border-radius: 8px;
  transition: width .35s ease;
}
.m3inf-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  pointer-events: none;
}

/* ── Доска ──────────────────────────────────────────────────────── */
.m3inf-board-wrap {
  position: relative;
}
.m3inf-board-wrap .m3g-board {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  gap: 3px;
  padding: 4px;
  background: var(--surface2);
  border-radius: 12px;
}
.m3inf-board-wrap .m3-cell {
  aspect-ratio: 1 / 1;
  border-radius: 7px;
}

/* Банер комбо / уровня */
.m3inf-bonus-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 900;
  color: #f59e0b;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}
.m3inf-bonus-banner.m3inf-banner--show {
  animation: m3inf-banner-pop 1.4s ease-out forwards;
}
@keyframes m3inf-banner-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  15%  { opacity: 1; transform: translate(-50%, -55%) scale(1.2); }
  40%  { opacity: 1; transform: translate(-50%, -60%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -75%) scale(.9); }
}

/* ── Бустеры (переиспользуем m3g-booster из обычной игры) ──────── */
.m3inf-booster-lvl {
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.35);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.2;
}

/* ── Лидерборд ──────────────────────────────────────────────────── */
.m3inf-lb {
  background: var(--surface2);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.m3inf-lb-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.m3inf-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  font-size: 14px;
}
.m3inf-lb-row--top {
  background: linear-gradient(90deg, rgba(245,158,11,.12), rgba(168,85,247,.08));
  border: 1px solid rgba(245,158,11,.2);
}
.m3inf-lb-rank { font-size: 16px; min-width: 24px; }
.m3inf-lb-name { flex: 1; font-weight: 600; color: var(--text); }
.m3inf-lb-score { font-weight: 700; color: #f59e0b; font-variant-numeric: tabular-nums; }

/* ── Модалка конца игры ─────────────────────────────────────────── */
.m3inf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.m3inf-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: m3inf-modal-in .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes m3inf-modal-in {
  from { transform: scale(.7) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);    opacity: 1; }
}
.m3inf-modal-emoji { font-size: 52px; line-height: 1; }
.m3inf-modal-title { font-size: 22px; font-weight: 800; color: var(--text); }
.m3inf-modal-score {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.m3inf-modal-coins,
.m3inf-modal-roshan-dmg {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.m3inf-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.m3inf-modal-btn {
  display: block;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .18s;
}
.m3inf-modal-btn:hover { opacity: .85; }
.m3inf-modal-btn--primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
}
.m3inf-modal-btn--ghost {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Адаптив */
@media (max-width: 600px) {
  .m3inf-hud-val { font-size: 18px; }
  .m3inf-modal { padding: 24px 18px 20px; }
  .m3inf-modal-score { font-size: 26px; }
  .ls-m3-banner .m3b-eyebrow { font-size:14px !important; }
  .ls-m3-banner .m3b-title-dota { font-size:20px !important; }
  .ls-m3-banner .m3b-content { max-width:100% !important; }
}

/* ═══════════════════════════════════════════════════════════
   LEISURE — Баннер «Dota: 3 в ряд»
   Префикс: .ls-m3-banner / .m3b-
   ═══════════════════════════════════════════════════════════ */

.ls-m3-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow:
    0 0 0 1.5px rgba(255,190,30,.4),
    0 0 60px rgba(255,130,0,.3),
    0 24px 70px rgba(0,0,0,.9);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
  min-height: 480px;
  transition: transform .2s, box-shadow .2s;
}
.ls-m3-banner:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px rgba(255,190,30,.7), 0 0 80px rgba(255,130,0,.45), 0 28px 80px rgba(0,0,0,.95); }

.ls-m3-banner .mug-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/game/mug.jpg') center/cover no-repeat;
  transition: transform 9s ease;
}

.ls-m3-banner .plk-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/game/plk.jpg') center/cover no-repeat;
  transition: transform 9s ease;
}

.ls-m3-banner .m3b-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/game/3rd.jpg') center/cover no-repeat;
  transition: transform 9s ease;
}
.ls-m3-banner:hover .m3b-bg { transform: scale(1.12); }

.ls-m3-banner .m3b-overlay {
  position: absolute;
  inset: 0;
}
.ls-m3-banner .m3b-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.07) 3px, rgba(0,0,0,.07) 4px);
  pointer-events: none;
}
.ls-m3-banner .m3b-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.ls-m3-banner .m3b-streak {
  position: absolute;
  top: 50%; left: -100%;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,190,30,.5), transparent);
  animation: m3bStreakAnim 5s 1.5s infinite ease-in-out;
  pointer-events: none;
}
@keyframes m3bStreakAnim {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .6; }
  100% { left: 110%; opacity: 0; }
}
.ls-m3-banner .m3b-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ls-m3-banner .m3b-p {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: m3bRise var(--d) var(--dl) infinite ease-in-out;
}
@keyframes m3bRise {
  0%   { transform: translateY(0) scale(.5); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: .5; }
  100% { transform: translateY(-310px) scale(1.6); opacity: 0; }
}
.ls-m3-banner .m3b-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0px 24px 72px;
  gap: 5px;
  max-width: 62%;
}
.ls-m3-banner .m3b-eyebrow {
  font-size: 20px;
  font-weight: 500;
  color: #f8c200;
  text-shadow: 0 0 14px rgba(248,194,0,.75);
}
.ls-m3-banner .m3b-title-dota {
  font-size: 52px;
  font-weight: 900;
  line-height: .92;
  text-transform: uppercase;
  background: linear-gradient(145deg, #ffffff 0%, #ffe566 40%, #ff7b2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(255,200,0,.5));
}
.ls-m3-banner .m3b-title-sub {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-shadow: 0 0 24px rgba(255,255,255,.35);
}
.ls-m3-banner .m3b-cta {
  margin-top: 60px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background:#fff;
  padding: 10px 22px;
  width: fit-content;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #1a0800;
  box-shadow: 0 4px 22px rgba(248,194,0,.55);
  animation: m3bBtnPulse 2.8s 1.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes m3bBtnPulse {
  0%,100% { box-shadow: 0 4px 22px rgba(248,194,0,.55); }
  50%      { box-shadow: 0 4px 40px rgba(248,194,0,.9); }
}
.ls-m3-banner .m3b-btn-dots { display: flex; gap: 3px; }
.ls-m3-banner .m3b-btn-dot  { width: 7px; height: 7px; border-radius: 50%; }

.ls-m3-banner .m3b-hero-row {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  pointer-events: none;
  align-items: flex-end;
  z-index: 2;
}
.ls-m3-banner .m3b-hero-cell {
  width: 38px; height: 38px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  animation: m3bHeroBob var(--hb, 2.4s) var(--hd, 0s) ease-in-out infinite;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.18), 0 0 14px var(--hc, rgba(255,190,30,.5));
  flex-shrink: 0;
}
.ls-m3-banner .m3b-hero-cell img { width:100%; height:100%; object-fit:cover; display:block; }
.ls-m3-banner .m3b-hero-cell::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--hc, #f8c200);
  box-shadow: 0 0 8px var(--hc, #f8c200);
}
@keyframes m3bHeroBob {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1.07); }
}
.ls-m3-banner .m3b-hero-cell.matched {
  box-shadow: 0 0 0 2px rgba(255,220,50,.7), 0 0 20px rgba(255,220,50,.6);
}
.ls-m3-banner .m3b-hero-cell:nth-child(1) { --hc: #c0392b; --hd: 0s; }
.ls-m3-banner .m3b-hero-cell:nth-child(2) { --hc: #8e44ad; --hd: .28s; }
.ls-m3-banner .m3b-hero-cell:nth-child(3) { --hc: #e67e22; --hd: .56s; }
.ls-m3-banner .m3b-hero-cell:nth-child(4) { --hc: #c0392b; --hd: .84s; }
.ls-m3-banner .m3b-hero-cell:nth-child(5) { --hc: #8e44ad; --hd: 1.12s; }
.ls-m3-banner .m3b-hero-cell:nth-child(6) { --hc: #e67e22; --hd: 1.4s; }
.ls-m3-banner .m3b-hero-cell:nth-child(7) { --hc: #27ae60; --hd: 1.68s; }
.ls-m3-banner .m3b-hero-cell.flash {
  animation: m3bHeroFlash 1.3s ease-in-out infinite !important;
}
@keyframes m3bHeroFlash {
  0%,100% { transform: scale(1);    filter: brightness(1); }
  35%      { transform: scale(1.22); filter: brightness(1.6); }
  65%      { transform: scale(.94);  filter: brightness(.9); }
}
.ls-m3-banner .m3b-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: rgba(248,194,0,.6);
  border-style: solid;
  animation: m3bCornerGlow 3s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
.ls-m3-banner .m3b-corner.tl { top:10px;    left:10px;  border-width:2px 0 0 2px; }
.ls-m3-banner .m3b-corner.tr { top:10px;    right:10px; border-width:2px 2px 0 0; }
.ls-m3-banner .m3b-corner.bl { bottom:10px; left:10px;  border-width:0 0 2px 2px; }
.ls-m3-banner .m3b-corner.br { bottom:10px; right:10px; border-width:0 2px 2px 0; }
@keyframes m3bCornerGlow {
  0%,100% { border-color: rgba(248,194,0,.45); }
  50%      { border-color: rgba(248,194,0,.9); }
}
.ls-m3-banner .m3b-badge {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1a0800;
  background: linear-gradient(135deg, #f8c200, #ff7b2e);
  border-radius: 5px;
  padding: 3px 8px;
  text-transform: uppercase;
}

/* Match3 refresh */
.m3s-wrap--v2 {
  padding: 18px 14px 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.m3s-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.18), transparent 34%),
    linear-gradient(180deg, rgba(18,21,27,.98), rgba(11,14,19,.98));
}
.m3s-hero-kicker,
.m3s-panel-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #f59e0b;
}
.m3s-title--hero {
  font-size: 34px;
  margin: 8px 0 8px;
}
.m3s-sub--hero {
  max-width: 58ch;
  margin: 0;
}
.m3s-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.m3s-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}
.m3s-hero-btn--primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
}
.m3s-hero-btn--ghost {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.m3s-hero-side {
  display: grid;
  gap: 12px;
}
.m3s-hearts--panel,
.m3s-hero-progress,
.m3s-side-card,
.m3s-levels-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.m3s-hearts--panel,
.m3s-hero-progress {
  padding: 14px;
}
.m3s-hearts-head,
.m3s-side-card__head,
.m3s-levels-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.m3s-hearts-row {
  display: flex;
  gap: 5px;
  margin: 10px 0 12px;
}
.m3s-hero-progress strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}
.m3s-hero-progress-bar,
.m3s-boss-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: 12px;
}
.m3s-hero-progress-fill,
.m3s-boss-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.m3s-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}
.m3s-main,
.m3s-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}
.m3s-levels-panel {
  padding: 16px;
}
.m3s-panel-title,
.m3s-side-card__title {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--text);
}
.m3s-side-card {
  padding: 16px;
}
.m3s-side-card--accent {
  background:
    radial-gradient(circle at top right, rgba(239,68,68,.16), transparent 40%),
    var(--surface);
}
.m3s-side-chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(239,68,68,.14);
  color: #fca5a5;
}
.m3s-rank-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.m3s-rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.m3s-rank-pos {
  color: var(--muted);
  font-weight: 800;
}
.m3s-rank-user {
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m3s-rank-val {
  color: #f59e0b;
  font-weight: 800;
}
.m3s-boss-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.m3s-empty-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
/* v2 — центрированный вертикальный лэйаут с крупной доской */
.m3g-wrap--v2 {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 14px 42px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.m3g-wrap--v2 .m3g-nav,
.m3g-wrap--v2 .m3g-boss-bar,
.m3g-wrap--v2 .m3g-quests,
.m3g-wrap--v2 .m3g-boosters--v2,
.m3g-wrap--v2 .m3g-hud--v2,
.m3g-wrap--v2 .m3g-board-wrap--v2 {
  border-radius: 10px;
  width: 100%;
}
.m3g-wrap--v2 .m3g-nav {
  padding: 12px 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(96,165,250,.12), transparent 34%),
    var(--surface);
}
.m3g-wrap--v2 .m3g-nav-center { gap: 8px; flex-wrap: wrap; }
.m3g-wrap--v2 .m3g-nav-hearts {
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.m3g-wrap--v2 .m3g-boss-bar { margin-top: 0; }

/* HUD — горизонтальная панель: счёт | цели | ходы */
.m3g-wrap--v2 .m3g-hud--v2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.m3g-wrap--v2 .m3g-hud-block {
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
}
.m3g-wrap--v2 .m3g-hud-block:first-child { text-align: left; }
.m3g-wrap--v2 .m3g-hud-block:last-child  { text-align: right; }
.m3g-wrap--v2 .m3g-targets {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.m3g-wrap--v2 .m3g-target {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  font-size: 11px;
}

/* Доска — большая, с отступом и тёмным фоном */
.m3g-wrap--v2 .m3g-board-wrap--v2 {
  padding: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14,17,22,.98), rgba(9,11,16,.98));
}
.m3g-wrap--v2 .m3g-board { margin: 0 auto; }

/* Бустеры — горизонтальная сетка */
.m3g-wrap--v2 .m3g-boosters--v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.m3g-wrap--v2 .m3g-booster {
  min-height: 64px;
  width: 100%;
}

.m3g-wrap--v2 .m3g-quests { margin-top: 0; }

@media (max-width: 1100px) {
  .m3s-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .m3s-hero { grid-template-columns: 1fr; padding: 16px; }
  .m3s-title--hero { font-size: 26px; }
  .m3s-stats-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m3g-wrap--v2 {
    padding: 12px 8px 28px;
    gap: 10px;
  }
  .m3g-wrap--v2 .m3g-hud--v2 {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .m3g-wrap--v2 .m3g-hud-block:first-child,
  .m3g-wrap--v2 .m3g-hud-block:last-child { text-align: center; }
  .m3g-wrap--v2 .m3g-boosters--v2 {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

/* в•”в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   PLINKO вЂ” Dota 2 С‚РµРјР°С‚РёРєР°
   РџСЂРµС„РёРєСЃ: .pk-
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */

/* в”Ђв”Ђ РћР±С‘СЂС‚РєР° СЃС‚СЂР°РЅРёС†С‹ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-wrap {
  padding: 0;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

/* в”Ђв”Ђ РўРѕРїР±Р°СЂ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.pk-topbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.3px;
  flex: 1;
}
.pk-title-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.pk-badge-dota {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  color: #fff;
}
.pk-topbar-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  flex-shrink: 0;
}
.pk-balance-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* в”Ђв”Ђ РћСЃРЅРѕРІРЅРѕР№ layout в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-main {
  display: flex;
  flex: 1;
  gap: 0;
  min-height: 0;
}

/* в”Ђв”Ђ РЎР°Р№РґР±Р°СЂ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-sidebar {
  width: 240px;
  min-width: 200px;
  max-width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* в”Ђв”Ђ РџР°РЅРµР»Рё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.pk-panel--history {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pk-panel-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pk-hist-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: .6;
}
.pk-hist-clear:hover { opacity: 1; color: #f87171; }

/* в”Ђв”Ђ РЎС‚Р°РІРєР° в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-bet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.pk-bet-btn {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 4px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pk-bet-btn:hover { background: var(--surface); border-color: var(--primary); }
.pk-bet-btn--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pk-bet-custom {
  position: relative;
}
.pk-input {
  width: 100%;
  background: var(--surface3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 36px 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.pk-input:focus { border-color: var(--primary); }
.pk-input-suffix {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  pointer-events: none;
}

/* в”Ђв”Ђ Р РёСЃРє в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-risk-tabs {
  display: flex;
  gap: 4px;
}
.pk-risk-tab {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface3);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.pk-risk-tab:hover { color: var(--text); border-color: var(--primary); }
.pk-risk-tab--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pk-risk-tab--disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* ── Авто-дроп ─────────────────────────────────────────────────────────────── */
.pk-auto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.pk-auto-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 4px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.pk-auto-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pk-auto-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pk-auto-stop {
  width: 100%;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  border-radius: 8px;
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
  padding: 7px;
  cursor: pointer;
  transition: background .15s;
}
.pk-auto-stop:hover { background: rgba(239,68,68,.25); }
.pk-auto-remaining {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-left: 4px;
}

/* ── История (обновлённая) ──────────────────────────────────────────────────── */
.pk-hist-bet {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
  margin-right: 4px;
}

/* в”Ђв”Ђ РЎР»Р°Р№РґРµСЂ СЃС‚СЂРѕРє в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--surface3);
  outline: none;
  margin-bottom: 4px;
}
.pk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.4);
}
.pk-rows-hint {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}

/* в”Ђв”Ђ Р’С‹Р±РѕСЂ РіРµСЂРѕСЏ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-hero-pick {
  position: relative;
}
.pk-hero-pick-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pk-hero-pick-current:hover { border-color: var(--primary); }
.pk-hero-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.pk-hero-pick-current svg { margin-left: auto; color: var(--muted); }
.pk-hero-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-y: auto;
  max-height: 220px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.pk-hero-dropdown--open { display: block; }
.pk-hero-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  transition: background .12s;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.pk-hero-opt:hover { background: var(--surface2); }
.pk-hero-opt img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: cover;
}

/* в”Ђв”Ђ РљРЅРѕРїРєР° Р±СЂРѕСЃРєР° в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-drop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.pk-drop-btn:hover { opacity: .9; transform: translateY(-1px); }
.pk-drop-btn:active { transform: translateY(0); }
.pk-drop-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* в”Ђв”Ђ РџРѕРґСЃРєР°Р·РєР° Р°РІС‚РѕСЂРёР·Р°С†РёРё в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-auth-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}

/* в”Ђв”Ђ РСЃС‚РѕСЂРёСЏ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-history {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pk-history-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 12px 0;
}
.pk-hist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--surface3);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity .3s, transform .3s;
}
.pk-hist-item--new {
  animation: pkHistSlide .3s ease;
}
@keyframes pkHistSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pk-hist-hero {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.pk-hist-mult {
  color: var(--text);
  min-width: 36px;
}
.pk-hist-coins {
  margin-left: auto;
  font-size: 11px;
}
.pk-hist-coins--win  { color: #22c55e; }
.pk-hist-coins--loss { color: #ef4444; }

/* в”Ђв”Ђ Canvas в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-canvas-wrap {
  flex: 1;
  position: relative;
  background: var(--bg);
  overflow: hidden;
  min-height: 500px;
}
.pk-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* в”Ђв”Ђ РћРІРµСЂР»РµР№ СЂРµР·СѓР»СЊС‚Р°С‚Р° в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-canvas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}
.pk-result-popup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  min-width: 240px;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
  animation: pkPopupIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pkPopupIn {
  from { opacity: 0; transform: scale(.8) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.pk-result-popup--win {
  border-color: #f59e0b;
  box-shadow: 0 16px 48px rgba(245,158,11,.3);
}
.pk-result-popup--loss {
  border-color: var(--border);
}
.pk-result-hero img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #f59e0b;
  margin-bottom: 12px;
}
.pk-result-mult {
  font-size: 42px;
  font-weight: 900;
  color: #f59e0b;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.pk-result-coins {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.pk-result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .15s;
}
.pk-result-btn:hover { opacity: .85; }

/* в”Ђв”Ђ Toast в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.pk-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.pk-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pk-toast--error { background: #dc2626; }
.pk-toast--success { background: #16a34a; }

/* в”Ђв”Ђ РљР°СЂС‚РѕС‡РєР° РЅР° СЃС‚СЂР°РЅРёС†Рµ РјРёРЅРё-РёРіСЂ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.ls-m-plinko-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  background: linear-gradient(135deg, #0c0a09 0%, #1c1917 50%, #0c0a09 100%);
  border: 1px solid rgba(245,158,11,.25);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.ls-m-plinko-banner:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,158,11,.2);
}
.pk-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(180,83,9,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(245,158,11,.1) 0%, transparent 60%);
}
.pk-banner-pins {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .5;
}
.pk-banner-pin {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fde68a, #b45309);
  box-shadow: 0 0 6px rgba(245,158,11,.5);
}
.pk-banner-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}
.pk-banner-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #f59e0b;
  margin-bottom: 4px;
  display: block;
}
.pk-banner-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.4px;
  display: block;
  margin-bottom: 4px;
}
.pk-banner-sub {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
  display: block;
}
.pk-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
}
.pk-banner-heroes {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.pk-banner-hero-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(245,158,11,.4);
  opacity: .85;
  transition: opacity .2s;
}
.ls-m-plinko-banner:hover .pk-banner-hero-img { opacity: 1; }

/* в”Ђв”Ђ РђРґР°РїС‚РёРІ в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
@media (max-width: 768px) {
  .pk-main { flex-direction: column; }
  .pk-sidebar {
    width: 100%;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  .pk-panel { flex: 1; min-width: 140px; }
  .pk-panel--history { display: none; }
  .pk-drop-btn { width: 100%; }
  .pk-canvas-wrap { min-height: 400px; }
}



/* ================================================================
   raffles.css — публичная страница розыгрышей
   ================================================================ */

/* ── Обёртка страниц ─────────────────────────────────────────────────────── */

.rfl-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* ── Герой-шапка ─────────────────────────────────────────────────────────── */

.rfl-hero {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    border-radius: 18px;
    padding: 36px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
}
.rfl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(124,58,237,.18) 0%, transparent 60%);
    pointer-events: none;
}
.rfl-hero-title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
}
.rfl-hero-title span {
    background: linear-gradient(90deg, #c084fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rfl-hero-sub {
    font-size: 14px;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.6;
}
.rfl-hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.rfl-hero-stat {
    text-align: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 10px 20px;
    min-width: 90px;
}
.rfl-hero-stat-val {
    font-size: 22px;
    font-weight: 900;
    display: block;
    color: #c084fc;
}
.rfl-hero-stat-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Фильтр-табы ─────────────────────────────────────────────────────────── */

.rfl-filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.rfl-filter-tabs::-webkit-scrollbar { display: none; }
.rfl-filter-tab {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.rfl-filter-tab:hover { color: var(--text); }
.rfl-filter-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.rfl-filter-tab-cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    margin-left: 5px;
}

/* ── Грид карточек ───────────────────────────────────────────────────────── */

.rfl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* ── Карточка розыгрыша ──────────────────────────────────────────────────── */

.rfl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    text-decoration: none;
    color: var(--text);
}
.rfl-card:hover {
    border-color: rgba(192,132,252,.5);
    box-shadow: 0 6px 28px rgba(124,58,237,.2);
    transform: translateY(-2px);
}

.rfl-card-cover {
    height: 130px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b, #312e81, #4c1d95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rfl-card-cover img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0;
}
.rfl-card-cover-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(192,132,252,.25) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(99,102,241,.2) 0%, transparent 40%);
}
.rfl-card-cover-emoji {
    font-size: 52px;
    opacity: .25;
    position: relative;
}

.rfl-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
    backdrop-filter: blur(8px);
}
.rfl-card-badge.active    { background: rgba(34,197,94,.2);   color: #4ade80; border: 1px solid rgba(34,197,94,.4); }
.rfl-card-badge.completed { background: rgba(96,165,250,.2);  color: #93c5fd; border: 1px solid rgba(96,165,250,.4); }
.rfl-card-badge.upcoming  { background: rgba(251,191,36,.2);  color: #fbbf24; border: 1px solid rgba(251,191,36,.4); }
.rfl-card-badge.cancelled { background: rgba(239,68,68,.2);   color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }

/* Призовые миниатюры на обложке */
.rfl-card-prize-strip {
    position: absolute;
    bottom: 8px;
    left: 10px;
    display: flex;
    gap: 4px;
}
.rfl-card-prize-thumb {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.rfl-card-prize-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rfl-card-prize-more {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
}

.rfl-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rfl-card-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

/* Таймер */
.rfl-card-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}
.rfl-card-timer svg { width: 13px; height: 13px; flex-shrink: 0; }
.rfl-timer-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.rfl-timer-val.urgent { color: #f87171; }

/* Статы */
.rfl-card-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.rfl-card-stat {
    flex: 1;
    text-align: center;
}
.rfl-card-stat + .rfl-card-stat {
    border-left: 1px solid var(--border);
}
.rfl-card-stat-val {
    font-size: 17px;
    font-weight: 900;
    display: block;
}
.rfl-card-stat-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Условия входа */
.rfl-card-conds {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.rfl-cond-badge {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(99,102,241,.1);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,.2);
}
.rfl-cond-badge.free   { background: rgba(34,197,94,.1); color: #4ade80; border-color: rgba(34,197,94,.2); }
.rfl-cond-badge.gcoin  { background: rgba(251,191,36,.1); color: #fbbf24; border-color: rgba(251,191,36,.2); }
.rfl-cond-badge.wins   { background: rgba(249,115,22,.1); color: #fb923c; border-color: rgba(249,115,22,.2); }

/* Кнопка на карточке */
.rfl-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.rfl-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
}
.rfl-card-btn:hover { opacity: .88; transform: scale(.98); }
.rfl-card-btn.disabled {
    background: var(--surface2);
    color: var(--muted);
    cursor: default;
    pointer-events: none;
}

/* ── Пустое состояние ────────────────────────────────────────────────────── */

.rfl-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.rfl-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.rfl-empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rfl-empty-sub { font-size: 14px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════════════════
   СТРАНИЦА ДЕТАЛЕЙ
   ════════════════════════════════════════════════════════════════════════════ */

.rfl-detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* Хлебные крошки */
.rfl-breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rfl-breadcrumb a { color: var(--muted); text-decoration: none; }
.rfl-breadcrumb a:hover { color: var(--text); }
.rfl-breadcrumb-sep { opacity: .4; }

/* Обложка детали */
.rfl-detail-cover {
    border-radius: 18px;
    overflow: hidden;
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, #1e1b4b, #312e81, #4c1d95);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
}
.rfl-detail-cover img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.rfl-detail-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
}
.rfl-detail-cover-content {
    position: relative;
    padding: 20px 24px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.rfl-detail-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.rfl-detail-status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}

/* Основной грид детали */
.rfl-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 760px) {
    .rfl-detail-grid { grid-template-columns: 1fr; }
}

/* Секции */
.rfl-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}
.rfl-section:last-child { margin-bottom: 0; }
.rfl-section-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.rfl-section-body { padding: 16px 18px; }

/* ── Призы ───────────────────────────────────────────────────────────────── */

.rfl-prize-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rfl-prize-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: border-color .15s;
}
.rfl-prize-item:hover { border-color: rgba(192,132,252,.3); }
.rfl-prize-position {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
}
.rfl-prize-position.p1 { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.rfl-prize-position.p2 { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.25); }
.rfl-prize-position.p3 { background: rgba(180,83,9,.12); color: #d97706; border: 1px solid rgba(180,83,9,.25); }
.rfl-prize-position.pN { background: rgba(99,102,241,.1); color: #818cf8; border: 1px solid rgba(99,102,241,.2); }
.rfl-prize-img {
    width: 56px;
    height: 42px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.rfl-prize-img img { width: 100%; height: 100%; object-fit: contain; }
.rfl-prize-info { flex: 1; min-width: 0; }
.rfl-prize-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rfl-prize-price {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.rfl-prize-winner {
    font-size: 11px;
    color: #4ade80;
    margin-top: 3px;
    font-weight: 600;
}
.rfl-prize-awarded {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(34,197,94,.1);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,.2);
    flex-shrink: 0;
}

/* ── Участие — правая панель ─────────────────────────────────────────��───── */

.rfl-enter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    position: sticky;
    top: calc(var(--nav-h, 64px) + 16px);
}

/* Большой таймер */
.rfl-big-timer {
    padding: 20px 18px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(124,58,237,.08) 0%, transparent 100%);
}
.rfl-big-timer-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 8px;
}
.rfl-big-timer-digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.rfl-digit-block {
    text-align: center;
    min-width: 52px;
}
.rfl-digit-val {
    font-size: 30px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #c084fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}
.rfl-digit-label {
    font-size: 9px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 2px;
}
.rfl-timer-sep {
    font-size: 24px;
    font-weight: 900;
    color: var(--muted);
    margin-bottom: 12px;
    opacity: .5;
}
.rfl-big-timer.ended .rfl-digit-val {
    background: none;
    -webkit-text-fill-color: var(--muted);
    color: var(--muted);
}

/* Прогресс-бар заполненности */
.rfl-fill-bar-wrap {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}
.rfl-fill-bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}
.rfl-fill-bar-track {
    height: 6px;
    background: var(--surface2);
    border-radius: 3px;
    overflow: hidden;
}
.rfl-fill-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    border-radius: 3px;
    transition: width .5s ease;
}

/* Условия участия */
.rfl-conditions {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rfl-condition-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.rfl-cond-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}
.rfl-cond-icon.met   { background: rgba(34,197,94,.15); color: #4ade80; }
.rfl-cond-icon.unmet { background: rgba(239,68,68,.15); color: #f87171; }
.rfl-cond-icon.info  { background: rgba(148,163,184,.1); color: var(--muted); }
.rfl-cond-text.met   { color: var(--text); }
.rfl-cond-text.unmet { color: #f87171; }
.rfl-cond-text.info  { color: var(--muted); }

/* Форма участия */
.rfl-enter-form {
    padding: 16px 18px;
}
.rfl-ticket-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg);
}
.rfl-ticket-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}
.rfl-ticket-btn:hover { background: var(--surface2); }
.rfl-ticket-btn:disabled { opacity: .3; cursor: default; }
.rfl-ticket-count {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
    line-height: 40px;
    font-variant-numeric: tabular-nums;
}
.rfl-enter-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    margin-bottom: 10px;
}
.rfl-cost-label { color: var(--muted); }
.rfl-cost-val {
    font-weight: 800;
    font-size: 15px;
    color: #fbbf24;
}
.rfl-cost-val.free { color: #4ade80; }
.rfl-enter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}
.rfl-enter-btn:hover:not(:disabled) { opacity: .88; transform: scale(.98); }
.rfl-enter-btn:disabled {
    background: var(--surface2);
    color: var(--muted);
    cursor: not-allowed;
}
.rfl-my-tickets {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}
.rfl-my-tickets strong { color: #c084fc; font-size: 14px; }

/* Login CTA */
.rfl-login-cta {
    padding: 20px 18px;
    text-align: center;
}
.rfl-login-cta-text {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.5;
}
.rfl-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: opacity .15s;
}
.rfl-login-btn:hover { opacity: .85; }

/* ── Победители ──────────────────────────────────────────────────────────── */

.rfl-winners-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rfl-winner-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(34,197,94,.05);
    border: 1px solid rgba(34,197,94,.15);
    border-radius: 10px;
}
.rfl-winner-pos {
    font-size: 18px;
    flex-shrink: 0;
}
.rfl-winner-info { flex: 1; min-width: 0; }
.rfl-winner-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rfl-winner-prize {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rfl-winner-img {
    width: 44px;
    height: 33px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.rfl-winner-img img { width: 100%; height: 100%; object-fit: contain; }

/* ── Алерт-полоска ───────────────────────────────────────────────────────── */

.rfl-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.rfl-alert.success { background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.rfl-alert.error   { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.2); }

/* ── Участники (список) ──────────────────────────────────────────────────── */

.rfl-participants {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
}
.rfl-participant-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--bg);
    font-size: 12px;
}
.rfl-participant-ava {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface2);
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
}
.rfl-participant-name { flex: 1; font-weight: 600; }
.rfl-participant-tickets {
    font-weight: 800;
    color: #c084fc;
    font-size: 11px;
}
.rfl-participant-row.is-me { background: rgba(192,132,252,.08); border: 1px solid rgba(192,132,252,.15); }

/* ── Адаптив ─────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .rfl-page { padding: 16px 12px 40px; }
    .rfl-hero { padding: 22px 18px; }
    .rfl-hero-title { font-size: 22px; }
    .rfl-grid { grid-template-columns: 1fr; }
    .rfl-detail-cover { height: 140px; }
    .rfl-detail-title { font-size: 18px; }
    .rfl-enter-panel { position: static; }
}

