  :root{
    --bg: #0A0A10;
    --bg-2: #0F0E17;
    --panel: #16141F;
    --panel-2: #1B1826;
    --line: #2A2638;
    --text: #F3F1F8;
    --muted: #948FA8;
    --violet: #8B5CF6;
    --violet-rgb: 139,92,246;
    --pink: #F4568C;
    --pink-rgb: 244,86,140;
    --orange: #FFA95E;
    --ok: #34D399;
    --ggsel: #FFC94A;
    --radius: 16px;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}

  body{
    background:
      radial-gradient(900px 500px at 10% -5%, rgba(139,92,246,0.22), transparent 60%),
      radial-gradient(800px 450px at 95% 15%, rgba(244,86,140,0.14), transparent 55%),
      radial-gradient(700px 400px at 50% 100%, rgba(255,169,94,0.08), transparent 60%),
      var(--bg);
    color:var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }

  a{ color:inherit; text-decoration:none; }
  .mono{ font-family:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

  .wrap{ max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  /* ---------- Header ---------- */
  header{
    position: sticky; top:0; z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(10,10,16,0.7);
    border-bottom: 1px solid var(--line);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    padding: 16px 24px; max-width:1080px; margin:0 auto;
    position:relative;
  }
  .logo{
    display:flex; align-items:center; gap:11px;
    font-family:'Sora','Inter',sans-serif; font-weight:700; font-size:17px;
    cursor:pointer; user-select:none;
  }
  .logo .avatar{
    width:34px; height:34px; border-radius:10px; flex-shrink:0;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    display:flex; align-items:center; justify-content:center;
    font-family:'Sora',sans-serif; font-weight:800; font-size:14px; color:#0A0A10;
  }
  .logo small{ display:block; font-weight:400; font-size:11px; color:var(--muted); font-family:'Inter',sans-serif; }
  .logo-caret{ color:var(--muted); flex-shrink:0; transition: transform .2s ease, color .2s ease; }
  .logo:hover .logo-caret, .logo.is-open .logo-caret{ color:var(--text); transform: translateY(1px) rotate(180deg); }

  #nav-menu{
    list-style:none;
    display:flex; flex-direction:column; gap:0;
    position:absolute; top: calc(100% + 10px); left:0;
    min-width:210px;
    background: var(--panel);
    border:1px solid var(--line);
    border-radius:14px;
    padding:8px;
    box-shadow: 0 20px 44px rgba(0,0,0,0.45);
    opacity:0; transform: translateY(-10px) scale(0.97);
    transform-origin: top left;
    pointer-events:none;
    transition: opacity .32s cubic-bezier(0.16,1,0.3,1), transform .32s cubic-bezier(0.16,1,0.3,1);
    z-index:60;
  }
  #nav-menu li{ width:100%; }
  #nav-menu a{
    display:block; font-size:14px; color:var(--muted);
    padding:10px 12px; border-radius:9px;
    transition: color .15s, background .15s;
  }
  #nav-menu a:hover{ color:var(--text); background: rgba(139,92,246,0.08); }

  .logo:hover + #nav-menu,
  #nav-menu:hover,
  #nav-menu.is-open{
    opacity:1; transform: translateY(0) scale(1);
    pointer-events:auto;
  }

  .nav-vpn{
    display:inline-flex; align-items:center; gap:8px;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color:#fff; font-weight:700; font-size:13.5px;
    padding: 10px 18px; border-radius: 999px; border:none; cursor:pointer;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .nav-vpn:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(139,92,246,0.35); }

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

  .lang-switch{ position:relative; }
  .lang-switch-btn{
    display:flex; align-items:center; gap:5px;
    height:36px; padding:0 12px; border-radius:10px;
    color: var(--muted); border:1px solid var(--line); background:transparent;
    font-size:12.5px; font-weight:700; letter-spacing:.02em; cursor:pointer;
    transition: color .15s, border-color .15s, background .15s;
  }
  .lang-switch-btn:hover{ color: var(--text); border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.08); }
  .lang-switch-btn svg{ width:12px; height:12px; color:var(--muted); transition: transform .2s ease; }
  .lang-switch.is-open .lang-switch-btn svg{ transform: rotate(180deg); }
  .lang-menu{
    list-style:none;
    position:absolute; top: calc(100% + 10px); right:0;
    min-width:180px; max-height:320px; overflow-y:auto;
    background: var(--panel); border:1px solid var(--line); border-radius:14px;
    padding:8px; box-shadow: 0 20px 44px rgba(0,0,0,0.45);
    opacity:0; transform: translateY(-10px) scale(0.97); transform-origin: top right;
    pointer-events:none;
    transition: opacity .25s cubic-bezier(0.16,1,0.3,1), transform .25s cubic-bezier(0.16,1,0.3,1);
    z-index:60;
  }
  .lang-menu.is-open{ opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }
  .lang-menu li{ width:100%; }
  .lang-menu button{
    display:block; width:100%; text-align:left; font-size:14px; color:var(--muted);
    background:none; border:none; cursor:pointer;
    padding:9px 12px; border-radius:9px; transition: color .15s, background .15s;
  }
  .lang-menu button:hover{ color:var(--text); background: rgba(139,92,246,0.08); }
  .lang-menu button.active{ color:var(--text); background: rgba(139,92,246,0.14); }
  [dir="rtl"] .lang-menu{ right:auto; left:0; transform-origin: top left; }
  [dir="rtl"] .lang-menu button{ text-align:right; }

  .nav-login{
    display:flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:10px;
    color: var(--muted);
    border: 1px solid var(--line);
    transition: color .15s, border-color .15s, background .15s;
  }
  .nav-login svg{ width:17px; height:17px; }
  .nav-login:hover{ color: var(--text); border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.08); }

  /* ---------- Hero ---------- */
  .hero{ padding: 80px 0 50px; text-align:center; }

  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-family:'JetBrains Mono', monospace; font-size:12px; color: var(--pink);
    background: rgba(244,86,140,0.1); border:1px solid rgba(244,86,140,0.3);
    padding:6px 14px; border-radius:999px; margin-bottom:24px;
  }

  h1{
    font-family:'Sora','Inter',sans-serif;
    font-size: clamp(32px, 5.5vw, 54px);
    line-height:1.06; letter-spacing:-0.02em; font-weight:700;
    margin-bottom: 16px;
  }
  h1 .hero-name{
    background: linear-gradient(135deg, var(--violet), var(--pink) 55%, var(--orange));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero p.lead{
    color:var(--muted); font-size:16.5px; max-width:52ch; margin: 0 auto 36px;
  }

  .social-row{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }

  .donate-alerts{
    margin: 34px auto 0;
    max-width: 620px;
    display:flex; flex-wrap:wrap; justify-content:center; gap:18px;
  }
  .donate-alert-box{
    flex: 1 1 280px; max-width: 300px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 20px;
    text-align:center;
  }
  .donate-alert-label{
    display:block; font-family:'Sora',sans-serif; font-weight:700; font-size:14px;
    margin-bottom: 12px; color: var(--text);
  }
  .donate-alert-frame-wrap{
    width:100%; height:220px; border-radius:10px; overflow:hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
  }
  .donate-alert-frame-wrap iframe{
    width:100%; height:100%; border:0; display:block;
  }

  .schedule-panel{
    margin: 34px auto 0;
    max-width: 620px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    text-align: left;
  }
  .schedule-head{
    display:flex; align-items:baseline; justify-content:space-between; gap:10px;
    margin-bottom: 14px; flex-wrap:wrap;
  }
  .schedule-title{ font-family:'Sora',sans-serif; font-weight:700; font-size:15px; }
  .schedule-sub{ font-size:12px; color:var(--muted); }

  .schedule-list{ display:flex; flex-direction:column; gap:2px; }
  .schedule-row{
    display:flex; justify-content:space-between; align-items:center;
    padding: 9px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .schedule-row:last-child{ border-bottom:none; }
  .schedule-row .day{ color: var(--text); font-weight:500; display:flex; align-items:center; gap:8px; }
  .schedule-row .game{ color: var(--muted); font-family:'JetBrains Mono', monospace; font-size:13px; }

  .schedule-row.is-today{
    background: linear-gradient(90deg, rgba(139,92,246,0.14), rgba(244,86,140,0.06));
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -4px;
  }
  .schedule-row.is-today .day{ color: var(--text); font-weight:700; }
  .schedule-row.is-today .game{ color: var(--pink); }
  .today-tag{
    font-family:'JetBrains Mono', monospace;
    font-size:10px; font-weight:700; letter-spacing:0.04em;
    color: #0A0A10;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    padding: 2px 8px;
    border-radius: 999px;
  }

  .btn{
    display:inline-flex; align-items:center; gap:10px;
    font-weight:700; font-size:15px;
    padding: 14px 24px; border-radius:13px; border:1px solid transparent;
    cursor:pointer; transition: transform .15s ease, box-shadow .15s ease;
  }
  .btn:hover{ transform: translateY(-2px); }
  .btn svg{ width:19px; height:19px; }

  .btn-telegram{
    background: linear-gradient(135deg, var(--violet), #6D6AF0);
    color:#fff;
    box-shadow: 0 10px 26px rgba(139,92,246,0.25);
  }
  .btn-telegram:hover{ box-shadow: 0 14px 30px rgba(139,92,246,0.4); }

  .btn-vk{
    background: linear-gradient(135deg, #0077FF, #4EA1FF);
    color:#fff;
    box-shadow: 0 10px 26px rgba(0,119,255,0.22);
  }
  .btn-vk:hover{ box-shadow: 0 14px 30px rgba(0,119,255,0.35); }

  .btn-all{
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--line);
  }
  .btn-all:hover{ border-color: rgba(139,92,246,0.5); box-shadow: 0 10px 26px rgba(139,92,246,0.15); }

  /* ---------- Sections ---------- */
  section{ padding: 54px 0; }
  .section-head{ margin-bottom: 30px; max-width: 60ch; }
  .section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
  h2{
    font-family:'Sora',sans-serif; font-size: clamp(23px, 3vw, 30px);
    font-weight:700; letter-spacing:-0.01em; margin-bottom:8px;
  }
  .section-head p{ color:var(--muted); font-size:15px; }

  /* ---------- GGsel ---------- */
  .ggsel-panel{
    background: linear-gradient(160deg, rgba(255,201,74,0.08), var(--panel) 45%);
    border: 1px solid rgba(255,201,74,0.25);
    border-radius: 22px;
    padding: 30px 28px;
    display:flex; gap:26px; align-items:flex-start; flex-wrap:wrap;
  }
  .ggsel-badge{
    width:56px; height:56px; border-radius:14px; flex-shrink:0;
    background: linear-gradient(135deg, var(--ggsel), #FF8A3D);
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 10px 26px rgba(255,201,74,0.25);
  }
  .ggsel-badge svg{ width:28px; height:28px; color:#0A0A10; }

  .ggsel-body{ flex:1; min-width:240px; }
  .ggsel-body h3{ font-family:'Sora',sans-serif; font-size:19px; font-weight:700; margin-bottom:8px; }
  .ggsel-body p{ color:var(--muted); font-size:14.5px; margin-bottom:20px; max-width:56ch; }

  .ggsel-actions{ display:flex; gap:12px; flex-wrap:wrap; }

  /* ---------- Custom recommendation blocks (admin-added, GGsel-like) ---------- */
  .custom-rec-panel{
    background: linear-gradient(160deg, rgba(139,92,246,0.08), var(--panel) 45%);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 22px;
    padding: 30px 28px;
    display:flex; gap:26px; align-items:flex-start; flex-wrap:wrap;
  }
  .custom-rec-panel + .custom-rec-panel{ margin-top:18px; }
  .custom-rec-badge{
    width:56px; height:56px; border-radius:14px; flex-shrink:0;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 10px 26px rgba(139,92,246,0.25);
  }
  .custom-rec-badge svg{ width:26px; height:26px; color:#fff; }
  .custom-rec-body{ flex:1; min-width:240px; }
  .custom-rec-body h3{ font-family:'Sora',sans-serif; font-size:19px; font-weight:700; margin-bottom:8px; }
  .custom-rec-body p{ color:var(--muted); font-size:14.5px; margin-bottom:20px; max-width:56ch; }
  .custom-rec-actions{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
  .blog-username-note{
    display:inline-flex; align-items:center; gap:8px;
    font-size:13.5px; color: var(--muted);
    background: var(--panel-2); border:1px solid var(--line);
    padding: 10px 16px; border-radius:13px;
  }
  .blog-username-note svg{ width:16px; height:16px; flex-shrink:0; opacity:.7; }
  .blog-username-note b{ color: var(--text); font-weight:700; }
  .btn-custom-rec{
    display:inline-flex; align-items:center; gap:8px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.4);
    color: var(--violet);
    font-size:13.5px; font-weight:600;
    padding: 10px 16px; border-radius:10px;
    transition: background .15s, transform .15s;
  }
  .btn-custom-rec:hover{ background: rgba(139,92,246,0.18); transform: translateY(-1px); }
  .btn-custom-rec.filled{
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color:#fff; border:none;
  }

  /* ---------- Clips gallery ---------- */
  .gallery-grid{
    display:grid; grid-template-columns: repeat(3, 1fr); gap:18px;
  }
  .clips-empty{
    grid-column: 1 / -1;
    background: var(--panel-2); border:1px dashed var(--line); border-radius: var(--radius);
    padding: 22px 24px; text-align:center; color: var(--muted); font-size:13.5px;
  }
  .clip-card{
    display:block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow:hidden;
    transition: transform .15s ease, border-color .15s ease;
  }
  .clip-card:hover{ transform: translateY(-3px); border-color: rgba(139,92,246,0.4); }

  .clip-thumb{
    position:relative;
    aspect-ratio: 16/9;
    display:flex; align-items:center; justify-content:center;
  }
  .clip-thumb-1{ background: linear-gradient(135deg, #8B5CF6, #F4568C); }
  .clip-thumb-2{ background: linear-gradient(135deg, #FFA95E, #F4568C); }
  .clip-thumb-3{ background: linear-gradient(135deg, #0077FF, #8B5CF6); }
  .clip-thumb-4{ background: linear-gradient(135deg, #34D399, #0077FF); }
  .clip-thumb-5{ background: linear-gradient(135deg, #F4568C, #FFC94A); }
  .clip-thumb-6{ background: linear-gradient(135deg, #9146FF, #34D399); }

  .clip-play{
    width:44px; height:44px; border-radius:50%;
    background: rgba(10,10,16,0.45);
    backdrop-filter: blur(2px);
    display:flex; align-items:center; justify-content:center;
    color:#fff;
    position:relative; z-index:1;
  }
  .clip-play svg{ width:20px; height:20px; margin-left:2px; }

  .clip-duration{
    position:absolute; right:8px; bottom:8px; z-index:1;
    font-family:'JetBrains Mono', monospace; font-size:11px;
    background: rgba(10,10,16,0.6);
    color:#fff;
    padding: 2px 7px;
    border-radius: 6px;
  }

  .clip-title{
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
  }

  .btn-ggsel{
    display:inline-flex; align-items:center; gap:8px;
    background: rgba(255,201,74,0.1);
    border: 1px solid rgba(255,201,74,0.4);
    color: var(--ggsel);
    font-size:13.5px; font-weight:600;
    padding: 10px 16px; border-radius:10px;
    transition: background .15s, transform .15s;
  }
  .btn-ggsel:hover{ background: rgba(255,201,74,0.18); transform: translateY(-1px); }
  .btn-ggsel.filled{
    background: linear-gradient(135deg, var(--ggsel), #FF8A3D);
    color:#0A0A10; border:none;
  }

  /* ---------- Support ---------- */
  .support-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
  .support-card{
    background: var(--panel); border:1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; display:flex; flex-direction:column; gap:14px;
  }
  .support-card .icon{
    width:38px; height:38px; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    background: rgba(52,211,153,0.12); color: var(--ok);
  }
  .support-card .icon svg{ width:20px; height:20px; }
  .support-card h3{ font-size:16px; font-weight:600; }
  .support-card p{ color:var(--muted); font-size:13.5px; flex-grow:1; }

  .btn-support{
    align-self:flex-start;
    background: transparent; color: var(--ok);
    border: 1px solid rgba(52,211,153,0.4);
    padding: 10px 18px; border-radius:10px; font-size:14px; font-weight:600;
    transition: background .15s;
  }
  .btn-support:hover{ background: rgba(52,211,153,0.12); }

  /* ---------- Twitch ---------- */
  .twitch-panel{
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
  }
  .twitch-top{
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
    margin-bottom: 18px;
  }
  .twitch-badge{
    display:inline-flex; align-items:center; gap:8px;
    font-family:'JetBrains Mono', monospace; font-size:12px; color:#B99CFF;
    background: rgba(145,70,255,0.12); border:1px solid rgba(145,70,255,0.3);
    padding: 6px 12px; border-radius:999px;
  }
  .twitch-badge .blip{
    width:7px; height:7px; border-radius:50%; background: #9146FF;
    animation: blink 1.6s ease-in-out infinite;
  }
  @keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:0.3;} }

  .vk-badge{ color:#7FB4FF; background: rgba(0,119,255,0.12); border-color: rgba(0,119,255,0.3); }
  .vk-badge .vk-blip{ background: #0077FF; }

  .btn-twitch{
    background: linear-gradient(135deg, #9146FF, #B47CFF);
    color:#fff; font-size:13.5px; padding: 10px 18px;
    box-shadow: 0 10px 24px rgba(145,70,255,0.25);
  }

  .twitch-frame-wrap{
    position:relative; width:100%; padding-top:56.25%;
    border-radius: 16px; overflow:hidden; border:1px solid var(--line);
    background: #000;
  }
  .twitch-frame-wrap iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

  /* ---------- VPN|Proxy CTA band ---------- */
  .cta-band{
    background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(244,86,140,0.1));
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 24px;
    padding: 46px 36px;
    text-align:center;
  }
  .cta-band h2{ margin-bottom:10px; }
  .cta-band p{ color: var(--muted); margin-bottom: 26px; }

  .btn-primary{
    display:inline-flex; align-items:center; gap:10px;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color:#fff; font-weight:700; font-size:15px;
    padding: 15px 26px; border-radius:13px; border:none; cursor:pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 30px rgba(139,92,246,0.3);
  }
  .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(139,92,246,0.45); }

  /* ---------- Footer ---------- */
  footer{ border-top:1px solid var(--line); padding: 30px 0; margin-top: 20px; }
  .footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
  .footer-row .muted{ color:var(--muted); font-size:13px; }
  .footer-links{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; list-style:none; }
  .footer-links a{ color:var(--muted); font-size:13px; text-decoration:none; transition: color .15s ease; }
  .footer-links a:hover{ color:var(--text); }

  /* ================= MOBILE ================= */
  @media (max-width: 860px){
    .support-grid{ grid-template-columns: 1fr; }
    .ggsel-panel{ flex-direction:column; }
    .custom-rec-panel{ flex-direction:column; }
    .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 640px){
    .wrap{ padding: 0 18px; }
    .nav{ padding: 14px 18px; }
    #nav-menu{ min-width:190px; }
    .nav-vpn{ font-size:12.5px; padding: 9px 14px; }
    .hero{ padding: 44px 0 32px; }
    h1{ font-size: 29px; }
    .hero p.lead{ font-size:15px; }
    .social-row{ flex-direction:column; align-items:stretch; }
    .btn{ justify-content:center; }
    .ggsel-actions{ flex-direction:column; }
    .btn-ggsel{ justify-content:center; }
    .gallery-grid{ grid-template-columns: 1fr; }
    .schedule-head{ flex-direction:column; align-items:flex-start; gap:4px; }
    .twitch-top{ flex-direction:column; align-items:flex-start; }
    .btn-twitch{ align-self:stretch; text-align:center; justify-content:center; display:flex; }
    .cta-band{ padding: 32px 20px; border-radius:18px; }
    .footer-row{ flex-direction:column; align-items:flex-start; }
    .footer-links{ order:-1; gap:8px 14px; }
  }

  @media (prefers-reduced-motion: reduce){
    .blip{ animation:none !important; }
    #nav-menu{ transition: opacity .01ms linear !important; transform:none !important; }
  }

  /* ---------- Maintenance mode ---------- */
  #maintenance-screen{
    display:none;
    min-height:100vh; align-items:center; justify-content:center;
    flex-direction:column; gap:16px; text-align:center; padding:24px;
  }
  html.maintenance-mode #site-content{ display:none !important; }
  html.maintenance-mode #maintenance-screen{ display:flex !important; }
  .maintenance-avatar{
    width:52px; height:52px; border-radius:15px;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    display:flex; align-items:center; justify-content:center;
    font-family:'Sora',sans-serif; font-weight:800; font-size:19px; color:#0A0A10;
  }
  .maintenance-screen h1{ font-size:26px; }
  .maintenance-screen p{ color:var(--muted); max-width:44ch; font-size:15px; }

  /* ---------- Schedule (dynamic, multi-game) ---------- */
  .schedule-row{ flex-direction:column; align-items:stretch; gap:6px; }
  .schedule-row .day-line{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .schedule-games{ display:flex; flex-direction:column; gap:3px; }
  .schedule-game-line{ display:flex; justify-content:space-between; gap:10px; font-size:13px; }
  .schedule-game-line .g-name{ color: var(--text); }
  .schedule-game-line .g-time{ color: var(--muted); font-family:'JetBrains Mono', monospace; font-size:12px; }
  .schedule-game-line .g-num{ color: var(--muted); font-size:11px; margin-right:6px; }
  .schedule-off{ color: var(--muted); font-family:'JetBrains Mono', monospace; font-size:13px; }

  /* ---------- Clip player modal ---------- */
  .clip-card{ cursor:pointer; border:none; text-align:left; width:100%; background:var(--panel); }
  .clip-modal{
    display:none; position:fixed; inset:0; z-index:200;
    background: rgba(6,6,10,0.86); backdrop-filter: blur(6px);
    align-items:center; justify-content:center; padding:24px;
  }
  .clip-modal.show{ display:flex; }
  .clip-modal-inner{
    width:100%; max-width: 860px;
    background: var(--panel); border:1px solid var(--line); border-radius: 18px;
    overflow:hidden;
  }
  .clip-modal-top{
    display:flex; align-items:center; justify-content:space-between;
    padding: 14px 18px; border-bottom:1px solid var(--line);
  }
  .clip-modal-title{ font-family:'Sora',sans-serif; font-weight:700; font-size:14.5px; }
  .clip-modal-close{
    background: var(--panel-2); border:1px solid var(--line); color:var(--text);
    width:30px; height:30px; border-radius:9px; cursor:pointer; font-size:16px; line-height:1;
  }
  .clip-modal-close:hover{ border-color: rgba(139,92,246,0.5); }
  .clip-modal-media{ position:relative; width:100%; padding-top:56.25%; background:#000; }
  .clip-modal-media iframe, .clip-modal-media video{
    position:absolute; inset:0; width:100%; height:100%; border:0;
  }
  .clip-modal-fallback{ padding: 16px 18px; font-size:13px; color:var(--muted); }
  .clip-modal-fallback a{ color: var(--pink); text-decoration:underline; }
  .clip-uploaded-badge{
    position:absolute; top:8px; left:8px; z-index:1;
    background: rgba(139,92,246,0.85); color:#fff;
    font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:6px;
    letter-spacing:.2px;
  }
  .clip-thumb-photo{
    background-size: cover;
    background-position: center;
    background-color: #000;
  }
  .clip-thumb-photo::after{
    content:'';
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%);
  }

  /* ---------- GGsel dynamic list ---------- */
  .ggsel-empty{ color:var(--muted); font-size:13.5px; }

  /* ---------- Виджет чата с поддержкой ---------- */
  .bg-chat-fab{
    position: fixed; right: 22px; bottom: 22px; z-index: 300;
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    display:flex; align-items:center; justify-content:center;
    border:none; cursor:pointer; color:#fff;
    box-shadow: 0 12px 30px rgba(139,92,246,0.45);
    transition: transform .15s ease;
  }
  .bg-chat-fab:hover{ transform: translateY(-2px) scale(1.03); }
  .bg-chat-fab svg{ width:26px; height:26px; }
  .bg-chat-fab .bg-chat-badge{
    position:absolute; top:-4px; right:-4px; background: var(--pink);
    color:#fff; font-size:10.5px; font-weight:800; min-width:18px; height:18px;
    border-radius:999px; display:flex; align-items:center; justify-content:center;
    padding:0 4px; border:2px solid var(--bg);
  }

  .bg-chat-window{
    position: fixed; right: 22px; bottom: 92px; z-index: 300;
    width: 380px; max-width: calc(100vw - 32px);
    height: 540px; max-height: calc(100vh - 130px);
    background: var(--panel); border:1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    display:none; flex-direction:column; overflow:hidden;
  }
  .bg-chat-window.show{ display:flex; }
  .bg-chat-window.bg-dragging{ user-select:none; box-shadow: 0 30px 70px rgba(0,0,0,0.6); }

  .bg-chat-head{
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding: 14px 16px; border-bottom:1px solid var(--line);
    background: rgba(139,92,246,0.06); flex-shrink:0;
    cursor: move; touch-action:none;
  }
  .bg-chat-head-title{ font-family:'Sora',sans-serif; font-weight:700; font-size:14px; }
  .bg-chat-head-sub{ font-size:11.5px; color:var(--muted); margin-top:2px; }
  .bg-chat-head-actions{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
  .bg-chat-head-actions button{ cursor:pointer; }
  .bg-chat-end-btn{
    background: transparent; border:1px solid var(--line); color:var(--muted);
    height:26px; padding:0 9px; border-radius:8px; cursor:pointer; font-size:11px; font-weight:600; line-height:1; flex-shrink:0; white-space:nowrap;
  }
  .bg-chat-end-btn:hover{ color: var(--pink); border-color: rgba(244,86,140,0.45); }
  .bg-chat-close{
    background: transparent; border:1px solid var(--line); color:var(--muted);
    width:26px; height:26px; border-radius:8px; cursor:pointer; font-size:15px; line-height:1; flex-shrink:0;
  }
  .bg-chat-close:hover{ color:var(--text); border-color: rgba(139,92,246,0.5); }

  .bg-chat-body{ flex:1; overflow-y:auto; padding: 14px 16px; display:flex; flex-direction:column; gap:10px; }

  .bg-chat-form-field{ margin-bottom:12px; }
  .bg-chat-form-field label{ display:block; font-size:12px; color:var(--muted); margin-bottom:5px; }
  .bg-chat-form-field input, .bg-chat-form-field select{
    width:100%; background: var(--panel-2); border:1px solid var(--line); color:var(--text);
    font-size:13.5px; padding:10px 12px; border-radius:9px; outline:none; font-family:inherit;
  }
  .bg-chat-form-field input:focus, .bg-chat-form-field select:focus{ border-color: rgba(139,92,246,0.6); }
  .bg-chat-form-hint{ font-size:12px; color:var(--muted); margin-bottom:14px; }
  .bg-chat-captcha-hint{ font-size:12px; color:var(--muted); margin-bottom:8px; }
  .bg-chat-captcha-target-row{ display:flex; align-items:center; gap:6px; margin-bottom:10px; }
  .bg-chat-captcha-target{
    width:34px; height:34px; border-radius:8px; background: var(--panel-2); border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0;
  }
  .bg-chat-captcha-target-arrow{ color: var(--muted); font-size:13px; flex-shrink:0; }
  .bg-chat-captcha-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:8px; margin-bottom:6px; }
  .bg-chat-captcha-item{
    background: var(--panel-2); border:1px solid var(--line); border-radius:9px;
    height:46px; font-size:19px; cursor:pointer; display:flex; align-items:center; justify-content:center;
    color:var(--text); position:relative;
  }
  .bg-chat-captcha-item:hover:not(:disabled){ border-color: rgba(139,92,246,0.5); }
  .bg-chat-captcha-item.picked{ border-color: var(--ok, #34D399); background: rgba(52,211,153,0.14); }
  .bg-chat-captcha-item.picked::after{
    content: attr(data-order); position:absolute; top:2px; right:4px; font-size:10px; font-weight:800; color: var(--ok, #34D399);
  }
  .bg-chat-captcha-item:disabled{ cursor:not-allowed; }
  .bg-chat-captcha-item.wrong{ border-color: var(--pink); background: rgba(244,86,140,0.14); }
  .bg-chat-captcha-status{ font-size:12px; margin-bottom:2px; min-height:15px; }
  .bg-chat-captcha-status.ok{ color: var(--ok, #34D399); }
  .bg-chat-captcha-status.err{ color: var(--pink); }
  .bg-chat-captcha-refresh-link{
    background:none; border:none; color:var(--muted); font-size:11.5px; cursor:pointer; text-decoration:underline;
    padding:0; margin-bottom:6px;
  }
  .bg-chat-captcha-refresh-link:hover{ color:var(--text); }
  .bg-chat-submit{
    width:100%; background: linear-gradient(135deg, var(--violet), var(--pink));
    color:#fff; font-weight:700; font-size:13.5px; border:none;
    padding: 11px 16px; border-radius:10px; cursor:pointer;
  }
  .bg-chat-submit:disabled{ opacity:.55; cursor:not-allowed; }
  .bg-chat-error{ color: var(--pink); font-size:12px; margin-top:8px; display:none; }
  .bg-chat-error.show{ display:block; }

  /* ---------- Согласие с правилами чата (перед первым сообщением) ---------- */
  .bg-chat-consent-title-row{
    display:flex; align-items:center; gap:8px;
    font-family:'Sora','Inter',sans-serif; font-weight:700; font-size:14.5px; margin-bottom:8px;
  }
  .bg-chat-consent-icon{ font-size:16px; line-height:1; }
  .bg-chat-consent-lead{ color:var(--muted); font-size:12.5px; margin-bottom:12px; }
  .bg-chat-consent-card{
    border-radius:12px; padding:12px 14px; margin-bottom:10px; font-size:12.5px;
  }
  .bg-chat-consent-card h4{
    font-family:'Sora','Inter',sans-serif; font-size:13px; font-weight:700; margin-bottom:6px;
  }
  .bg-chat-consent-card ul{ margin:0; padding-left:18px; color:var(--text); opacity:.92; }
  .bg-chat-consent-card ul li{ margin-bottom:5px; }
  .bg-chat-consent-card ul li:last-child{ margin-bottom:0; }
  .bg-chat-consent-card p{ color:var(--text); opacity:.9; margin:0; }
  .bg-chat-consent-card.allow{ background: rgba(52,211,153,0.08); border:1px solid rgba(52,211,153,0.28); }
  .bg-chat-consent-card.allow h4{ color: var(--ok, #34D399); }
  .bg-chat-consent-card.deny{ background: rgba(244,86,140,0.08); border:1px solid rgba(244,86,140,0.28); }
  .bg-chat-consent-card.deny h4{ color: var(--pink); }
  .bg-chat-consent-card.violation{ background: var(--panel-2); border:1px solid var(--line); }
  .bg-chat-consent-note{
    background: rgba(139,92,246,0.08); border:1px solid rgba(139,92,246,0.28); color:var(--text); opacity:.92;
    font-size:11.5px; line-height:1.5; padding:10px 12px; border-radius:10px; margin-bottom:14px;
  }
  .bg-chat-consent-actions{ display:flex; gap:8px; }
  .bg-chat-consent-actions button{
    flex:1; font-weight:700; font-size:13px; border-radius:10px; padding:11px 12px; cursor:pointer;
  }
  .bg-chat-consent-agree{
    background: linear-gradient(135deg, var(--violet), var(--pink)); color:#fff; border:none;
  }
  .bg-chat-consent-disagree{
    background: transparent; color:var(--muted); border:1px solid var(--line);
  }
  .bg-chat-consent-disagree:hover{ color:var(--text); border-color: rgba(244,86,140,0.45); }

  .bg-chat-msg{ max-width:82%; font-size:13px; padding:9px 12px; border-radius:12px; line-height:1.4; word-wrap:break-word; }
  .bg-chat-msg.user{ align-self:flex-end; background: linear-gradient(135deg, var(--violet), var(--pink)); color:#fff; border-bottom-right-radius:4px; }
  .bg-chat-msg.admin{ align-self:flex-start; background: var(--panel-2); border:1px solid var(--line); color:var(--text); border-bottom-left-radius:4px; }
  .bg-chat-msg.system{ align-self:center; background: rgba(139,92,246,0.1); border:1px solid rgba(139,92,246,0.3); color: var(--violet); font-size:12px; text-align:center; }
  .bg-chat-msg .bg-chat-msg-time{ display:block; font-size:10px; opacity:.7; margin-top:4px; }
  .bg-chat-msg .bg-chat-msg-img{
    display:block; max-width:100%; max-height:220px; border-radius:9px; margin-bottom:6px; cursor:zoom-in; object-fit:cover;
  }

  .bg-chat-closed-banner{
    align-self:center; text-align:center; background: rgba(148,143,168,0.1); border:1px solid var(--line);
    color:var(--muted); font-size:12px; padding:14px 16px; border-radius:12px; max-width:92%;
  }
  .bg-chat-closed-banner .bcb-title{ color:var(--text); font-weight:700; font-size:13px; margin-bottom:4px; }
  .bg-chat-restart-btn{
    margin-top:10px; background: linear-gradient(135deg, var(--violet), var(--pink)); border:none; color:#fff;
    font-weight:700; font-size:12.5px; padding:9px 16px; border-radius:9px; cursor:pointer;
  }

  .bg-chat-foot{
    display:flex; gap:8px; padding: 12px 14px; border-top:1px solid var(--line); flex-shrink:0;
  }
  .bg-chat-foot input{
    flex:1; background: var(--panel-2); border:1px solid var(--line); color:var(--text);
    font-size:13.5px; padding:10px 12px; border-radius:9px; outline:none; font-family:inherit;
  }
  .bg-chat-foot input:focus{ border-color: rgba(139,92,246,0.6); }
  .bg-chat-send, .bg-chat-attach{
    background: linear-gradient(135deg, var(--violet), var(--pink)); border:none; color:#fff;
    width:40px; height:40px; border-radius:9px; cursor:pointer; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
  }
  .bg-chat-attach{ background: var(--panel-2); border:1px solid var(--line); color:var(--muted); }
  .bg-chat-attach:hover{ color:var(--text); border-color: rgba(139,92,246,0.5); }
  .bg-chat-send:disabled, .bg-chat-attach:disabled{ opacity:.5; cursor:not-allowed; }
  .bg-chat-send svg, .bg-chat-attach svg{ width:17px; height:17px; }

  .bg-chat-resize-handle{
    position:absolute; right:2px; bottom:2px; width:22px; height:22px; z-index:5;
    display:flex; align-items:center; justify-content:center;
    color: var(--muted); cursor: nwse-resize; touch-action:none;
    border-bottom-right-radius: 18px;
  }
  .bg-chat-resize-handle:hover{ color: var(--violet); }
  .bg-chat-resize-handle svg{ width:13px; height:13px; }

  .bg-chat-lightbox{
    position: fixed; inset:0; z-index:400; background: rgba(5,5,10,0.9);
    display:none; align-items:center; justify-content:center; padding:24px; cursor:zoom-out;
  }
  .bg-chat-lightbox.show{ display:flex; }
  .bg-chat-lightbox img{ max-width:100%; max-height:100%; border-radius:10px; }

  /* ---------- Баннер о новом сообщении в чате ---------- */
  .bg-msg-toast{
    position: fixed; top:14px; left:50%; z-index:500;
    display:flex; align-items:center; gap:10px;
    background: var(--panel-2); border:1px solid rgba(139,92,246,0.4);
    color: var(--text); font-size:13.5px; line-height:1.35;
    padding:12px 16px; border-radius:13px; max-width:min(360px, 88vw);
    box-shadow: 0 14px 34px rgba(0,0,0,0.45);
    cursor:pointer; user-select:none;
    transform: translate(-50%, -140%); opacity:0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .bg-msg-toast.show{ transform: translate(-50%, 0); opacity:1; }
  .bg-msg-toast .bmt-dot{
    width:9px; height:9px; border-radius:50%; background: var(--violet); flex-shrink:0; margin-top:3px;
    box-shadow: 0 0 0 4px rgba(139,92,246,0.18);
  }
  .bg-msg-toast .bmt-body b{ display:block; font-weight:700; font-size:13px; margin-bottom:2px; }
  .bg-msg-toast .bmt-body span{ color: var(--muted); }

  @media (max-width:420px){
    .bg-chat-window{ right:16px; left:16px; width:auto; bottom:88px; }
    .bg-chat-fab{ right:16px; bottom:16px; }
  }


/* ---------- Красивый скроллбар — везде, где есть прокрутка ---------- */
*{ scrollbar-width: thin; scrollbar-color: var(--violet) var(--panel-2); }
*::-webkit-scrollbar{ width:9px; height:9px; }
*::-webkit-scrollbar-track{ background: var(--panel-2); border-radius:8px; }
*::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--violet), var(--pink));
  border-radius:8px;
}
*::-webkit-scrollbar-thumb:hover{ background: linear-gradient(180deg, var(--pink), var(--violet)); }
*::-webkit-scrollbar-corner{ background: transparent; }
