/* LY1 common layer (2026-10-25, owner 21:31 «делай все, да»): menu without running lights + white neon edge,
   same header chips on phones, current section highlight, chat window resize, chat/support on every page,
   «N играют» on catalogue live badges, ruby instead of the last blue block, no «ЖУРНАЛ W» label.
   Only additive overrides; rollback = remove the LY1 tag from nginx map $wg_layer_tag. */

/* 1. white neon edge of the side menu: same wave/notch paths as SBX1/design6, only the strokes change (static image:
      painted once, no animation, no filter -> no per-frame cost). Dark theme only; light theme keeps its edge. */
html:root:not([data-theme="light"]):not(#ly1){--d6-edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 100' preserveAspectRatio='none'%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%231a0000' stroke-opacity='.45' stroke-width='9' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='18' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%23ffffff' stroke-opacity='.26' stroke-width='9' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='4.5' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%23ffffff' stroke-opacity='1' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");--sbx-edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 100' preserveAspectRatio='none'%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%231a0000' stroke-opacity='.45' stroke-width='9' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='18' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%23ffffff' stroke-opacity='.26' stroke-width='9' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='4.5' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M60 0C60 2.0 62 2.0 62 4C62 6.0 74 6.0 74 8C74 10.0 54 10.0 54 12C54 14.25 81 16.005 81 16.5C81 16.885 12 19.615 12 20C12 20.44 68 22.0 68 24C68 26.25 58 26.25 58 28.5C58 33.5 8 33.5 8 38.5C8 43.5 58 43.5 58 48.5C58 50.5 66 50.5 66 52.5C66 54.75 82 56.505 82 57C82 57.385 14 60.115 14 60.5C14 60.94 70 62.5 70 64.5C70 66.75 56 66.75 56 69C56 74.0 6 74.0 6 79C6 84.0 58 84.0 58 89C58 91.25 72 91.25 72 93.5C72 96.75 60 96.75 60 100' fill='none' stroke='%23ffffff' stroke-opacity='1' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");--d6-edge-n:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 100' preserveAspectRatio='none'%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%231a0000' stroke-opacity='.45' stroke-width='9' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='18' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%23ffffff' stroke-opacity='.26' stroke-width='9' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='4.5' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%23ffffff' stroke-opacity='1' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");--sbx-edge-n:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 100' preserveAspectRatio='none'%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%231a0000' stroke-opacity='.45' stroke-width='9' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='18' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%23ffffff' stroke-opacity='.26' stroke-width='9' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='4.5' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M84 0C84 19.5 84 19.5 84 39C84 44.5 5 44.5 5 50C5 55.5 84 55.5 84 61C84 80.5 84 80.5 84 100' fill='none' stroke='%23ffffff' stroke-opacity='1' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");--d6-pulse:linear-gradient(transparent,transparent);--sbx-pulse:linear-gradient(transparent,transparent);--sv-pulse-now:linear-gradient(transparent,transparent)}

@layer wg-polish26{
/* 1b. running lights off: the ruby sheen (background-position animation = repaint of the whole menu every frame),
       the breathing active icon and the background breathing; the static sheen stays as a still picture. */
html body .mp-sidebar.mp-sidebar.mp-sidebar::after,html body .wg-shell-sidebar.wg-shell-sidebar.wg-shell-sidebar::after{animation:none!important;background-position:100% 100%,0 0,0 0,0 0!important}
html body .mp-sidebar.mp-sidebar.mp-sidebar::before,html body .wg-shell-sidebar.wg-shell-sidebar.wg-shell-sidebar::before{animation:none!important;will-change:auto!important}
html body :is(.mp-sidebar,.wg-shell-sidebar) a:is(.active,[aria-current="page"]) :is(.mp-nav-glyph,.wg-shell-nav-glyph):is(.mp-nav-glyph,.wg-shell-nav-glyph),
html body :is(.mp-sidebar,.wg-shell-sidebar) a:is(.active,[aria-current="page"]) :is(.mp-nav-glyph,.wg-shell-nav-glyph)::after{animation:none!important}

/* 2. header chips on phones: one size, one radius, one border (accent chips keep their colour) */
@media (max-width:600px){
 html body :is(.mp-topbar,.wgt-header,.wg-shell-header,header) :is(.mp-menu-toggle,.wg-shell-toggle,.dp-top-in,.tgp-chip,.wg-snd-btn,.mp-theme-toggle,.wgt-theme,.mp-lang,.pe-bell):is(button,a):not(#ly1){
   width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;
   padding:0!important;border-radius:10px!important;border-width:1px!important;border-style:solid!important;box-sizing:border-box!important;
   display:inline-grid!important;place-items:center!important;margin-top:0!important;margin-bottom:0!important;align-self:center!important}
 html body :is(.mp-topbar,.wgt-header,.wg-shell-header,header) :is(.mp-menu-toggle,.wg-shell-toggle):is(button):not(#ly1){border-color:rgba(225,29,72,.5)!important}
 html body :is(.mp-topbar,.wgt-header,.wg-shell-header,header) .mp-wallet-chip.wg-account-combined:not(#ly1){height:34px!important;min-height:34px!important;border-radius:10px!important;align-self:center!important}
 html body :is(.mp-topbar,.wgt-header,.wg-shell-header,header) :is(.wg-snd-btn,.mp-theme-toggle,.wgt-theme,.mp-lang,.pe-bell,.mp-menu-toggle,.wg-shell-toggle):not(#ly1) svg{width:18px!important;height:18px!important}
}
/* Telegram chip before its own CSS arrives (tgp1 loads it late): never a giant paper plane */
html body .tgp-chip:not(#ly1) svg{max-width:22px!important;max-height:22px!important}
html body .tgp-go:not(.tgp-chip):not(#ly1) svg{max-width:24px;max-height:24px}

/* 3. current section: mobile bottom bar (aria-current set by ly1.js on every page, not only the home page) */
html body .rd-bottom-bar a[aria-current="page"]:not(#ly1){box-shadow:var(--wg-nav-on-glow,0 0 0 1px #ff4d6d66,0 6px 18px #e11d4840)!important;background:var(--wg-nav-on-bg,linear-gradient(180deg,#3a1420,#1d1116))!important;border-color:var(--wg-nav-on-line,#ff4d6d)!important}

html[data-theme="light"] body .rd-bottom-bar a[aria-current="page"]:not(#ly1),html[data-theme="light"] body .rd-bottom-bar a[aria-current="page"]:not(#ly1) *{color:#9f1239!important;-webkit-text-fill-color:#9f1239!important}

/* 4. chat window: drag the edges with the mouse (dock43 pinned width 440 px with !important, the size handles of
      help-fab only changed the height); «↙» removed (double click on ⠿ puts the window back in the corner). */
@media (min-width:601px){
 html body #p43-utilities #wg-help-panel.wg-help-panel.wg-chat-floating[data-movable]:not(#ly1),
 html body :is(#wp-support-dock,.wg-help-fab) #wg-help-panel.wg-help-panel.wg-chat-floating[data-movable]:not(#ly1){
   width:min(var(--wg-chat-width,440px),calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;
   height:min(var(--wg-chat-height,680px),calc(100dvh - 24px))!important;max-height:calc(100dvh - 16px)!important}
 html body #wg-help-panel .wg-help-rz:not(#ly1){display:block!important;pointer-events:auto!important}
 html body #wg-help-panel .wg-help-rz-side:not(#ly1){width:12px!important}
 html body #wg-help-panel .wg-help-rz-top:not(#ly1){height:10px!important}
 html body #wg-help-panel .wg-help-rz-corner:not(#ly1){width:24px!important;height:24px!important}
 html body #wg-help-panel .wg-help-rz:not(#ly1):hover{background:linear-gradient(90deg,transparent,#ff4d6d55,transparent)!important}
}
html body #wg-help-panel .wg-chat-reset:not(#ly1){display:none!important}

/* 5. catalogue live badges: «N играют» + rocket phase (ly1.js) */
html body .lrk-live-badge>b:not(:empty)::after{content:" играют";font-weight:600;opacity:.9}
html[lang="en"] body .lrk-live-badge>b:not(:empty)::after{content:" playing"}
html body .lrk-live-badge.ly1-has-rk>em{display:none!important}
html body .lrk-live-badge>s.ly1-rk{text-decoration:none;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html body .lrk-live-badge>s.ly1-rk::before{content:"· ";opacity:.6}
html body .lrk-live-badge>s.ly1-rk[data-k="bet"]{color:#7ee2a0}
html body .lrk-live-badge>s.ly1-rk[data-k="spin"]{color:#ffd166}

/* 6. ruby instead of the last navy block (account page «Как начать» / verification status) */
html:not([data-theme="light"]) body :is(.wg-verification,.wg-verification .wg-status,p.wg-status):not(#ly1){background:linear-gradient(160deg,#2a1219e6,#17121ae6)!important;border-color:#e11d4866!important}

/* 7. «ЖУРНАЛ W» label: never shown (the online counter and the wins ticker stay) */
html body :is(.wg-live-wins-head,.wg-live-source):not(#ly1){display:none!important}
}
