.steps-device-demo.sgr-device-demo {
  position: relative;
  min-height: 680px;
  max-width: 1320px;
  margin: 68px auto 0;
  padding: 38px 22px 0;
  isolation: isolate;
  overflow: visible;
}

.sgr-demo-glow {
  position: absolute;
  inset: 2% 2% 5%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 25%, rgba(107, 210, 158, .24), transparent 34%),
    radial-gradient(circle at 20% 67%, rgba(239, 130, 170, .26), transparent 36%),
    radial-gradient(circle at 62% 78%, rgba(255, 205, 87, .16), transparent 30%);
  filter: blur(30px);
}

.sgr-demo-caption {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 7%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #fff8ef;
  background: rgba(17, 8, 13, .76);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sgr-demo-caption span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6bd29e;
  box-shadow: 0 0 0 6px rgba(107, 210, 158, .12), 0 0 22px #6bd29e;
}

.sgr-demo-desktop {
  position: relative;
  z-index: 1;
  width: min(82%, 980px);
  margin: 32px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: linear-gradient(145deg, #55444c, #130b0f 55%, #070405);
  box-shadow: 0 38px 96px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .2);
  transform: perspective(1400px) rotateX(1deg);
}

.sgr-demo-desktop-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #e5d7da;
}

.sgr-demo-desktop-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #77656d;
}

.sgr-demo-desktop-bar i:first-child { background: #ef82aa; }
.sgr-demo-desktop-bar i:nth-child(2) { background: #ffd45f; }
.sgr-demo-desktop-bar i:nth-child(3) { background: #6bd29e; }
.sgr-demo-desktop-bar strong { margin-left: 6px; font-size: 11px; font-weight: 750; }
.sgr-demo-desktop-bar em { margin-left: auto; color: #75dda8; font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .1em; }

.sgr-demo-desktop-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(131, 226, 178, .22);
  border-radius: 14px;
  background: #06140f;
}

.sgr-demo-desktop-screen img { width: 100%; height: 100%; display: block; object-fit: cover; }

.sgr-demo-desktop-stand {
  position: absolute;
  left: 50%;
  bottom: -49px;
  width: 170px;
  height: 50px;
  transform: translateX(-50%);
  border-bottom: 9px solid #251a1f;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(90deg, transparent 39%, #392b31 40%, #1b1216 60%, transparent 61%);
}

.sgr-demo-phones {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 350px;
  pointer-events: none;
}

.sgr-demo-phone {
  position: absolute;
  bottom: 0;
  width: 166px;
  aspect-ratio: 9 / 18.2;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 29px;
  background: linear-gradient(145deg, #4e4046, #090506 62%);
  box-shadow: 0 30px 58px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .18);
  transform-origin: bottom center;
}

.sgr-demo-phone::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 42px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #090b0a;
}

.sgr-demo-phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #05120d;
}

.sgr-demo-phone-screen img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  object-position: top center;
}

.sgr-demo-phone-left { left: 1.5%; transform: rotate(-9deg) translateY(18px) scale(.86); opacity: .84; }
.sgr-demo-phone-center { left: 14%; width: 180px; transform: rotate(-2deg); }
.sgr-demo-phone-right { right: 1.5%; transform: rotate(8deg) translateY(16px) scale(.9); opacity: .93; }

.sgr-demo-sync {
  position: absolute;
  z-index: 6;
  right: 19%;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 212, 95, .26);
  border-radius: 16px;
  color: #fff8ef;
  background: rgba(18, 8, 12, .88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
  backdrop-filter: blur(16px);
}

.sgr-demo-sync b { color: #ffd45f; font-size: 18px; }
.sgr-demo-sync span { max-width: 62px; font-size: 9px; line-height: 1.05; text-transform: uppercase; letter-spacing: .04em; }
.sgr-demo-sync i { color: #ef82aa; font-size: 16px; font-style: normal; font-weight: 900; }

@media (max-width: 980px) {
  .steps-device-demo.sgr-device-demo { min-height: 610px; padding-inline: 0; }
  .sgr-demo-desktop { width: 92%; }
  .sgr-demo-phone-center { left: 12%; }
}

@media (max-width: 620px) {
  .steps-device-demo.sgr-device-demo { min-height: 470px; margin-top: 45px; padding-top: 28px; }
  .sgr-demo-caption { top: -4px; right: 2%; font-size: 8px; padding: 8px 10px; }
  .sgr-demo-desktop { width: 100%; margin-top: 24px; padding: 6px; border-radius: 16px; transform: none; }
  .sgr-demo-desktop-bar { height: 26px; }
  .sgr-demo-desktop-screen { border-radius: 10px; }
  .sgr-demo-desktop-stand { bottom: -31px; width: 108px; height: 32px; }
  .sgr-demo-phones { height: 230px; left: -4%; right: -4%; }
  .sgr-demo-phone { width: 99px; padding: 5px; border-radius: 19px; }
  .sgr-demo-phone::before { top: 9px; width: 28px; height: 6px; }
  .sgr-demo-phone-screen { border-radius: 14px; }
  .sgr-demo-phone-center { left: 20%; width: 109px; }
  .sgr-demo-phone-right { right: 1%; }
  .sgr-demo-sync { right: 15%; bottom: 3px; gap: 4px; padding: 8px 9px; }
  .sgr-demo-sync b { font-size: 13px; }
  .sgr-demo-sync span { max-width: 46px; font-size: 7px; }
}

/* v18.5 landing: direct catalogue CTA */
.sgr-landing-catalog-link{display:inline-flex;align-items:center;gap:7px;margin-top:16px;padding:9px 13px;border:1px solid #8c5166;border-radius:11px;color:#6e1736;background:#fff8f6;text-decoration:none;font-size:13px;font-weight:820;line-height:1;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.sgr-landing-catalog-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sgr-landing-catalog-link:hover{background:#fff0ee;border-color:#a52e58;transform:translateY(-1px)}


/* v18.6: catalogue action beside My games */
.sgr-header-actions{display:flex;align-items:center;gap:8px}
.sgr-header-catalog svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
@media(max-width:680px){.sgr-header-actions{gap:6px}.sgr-header-catalog,.sgr-header-actions .header-action{width:42px;height:42px;padding:0;justify-content:center}.sgr-header-actions .header-action span{display:none!important}}


/* v25 landing header + catalogue CTA */
.sgr-landing-catalog-link{
  box-sizing:border-box;
  min-height:54px;
  padding:0 20px;
  border:1px solid #68122f;
  border-radius:16px;
  background:#68122f;
  color:#fff;
  font-size:15px;
  font-weight:760;
  line-height:1;
  justify-content:center;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
  box-shadow:0 10px 24px rgba(104,18,47,.16);
}
.sgr-landing-catalog-link:hover{
  background:#7a1738;
  border-color:#7a1738;
  color:#fff;
  transform:translateY(-1px);
}
.sgr-landing-catalog-link:focus-visible{
  outline:3px solid rgba(104,18,47,.22);
  outline-offset:3px;
}
@media(max-width:680px){
  .sgr-landing-catalog-link{width:100%;}
}

/* v26 — mobile catalogue CTA follows the swipe controls. */
@media(max-width:720px){
  #games > .sgr-landing-catalog-link{
    display:flex !important;
    width:min(82vw,350px) !important;
    min-height:52px;
    /* v44: visually centre the CTA between the carousel arrows and
       the lower edge of the yellow section. */
    margin:29px auto 0 !important;
  }
}

/* v47 — replace entire old library mockup with supplied gameplay photo */
.library-window.sgr-games-photo-v47{padding:0;background:transparent;border:0;border-radius:34px;box-shadow:none;isolation:isolate}
.library-window.sgr-games-photo-v47::before{content:"";position:absolute;z-index:-1;inset:-34px;border-radius:42px;background:radial-gradient(circle at 28% 72%,rgba(245,203,99,.22),transparent 44%),radial-gradient(circle at 72% 34%,rgba(240,138,179,.34),transparent 52%);filter:blur(42px)}
.sgr-games-photo-v47 .sgr-games-photo-frame{position:relative;width:100%;aspect-ratio:3/2;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:32px;background:#160b10;box-shadow:0 44px 95px rgba(0,0,0,.38),0 10px 30px rgba(240,138,179,.10)}
.sgr-games-photo-v47 .sgr-games-photo-frame::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 1px rgba(255,255,255,.14);pointer-events:none}
.sgr-games-photo-v47 img{width:100%;height:100%;display:block;object-fit:cover}
@media(max-width:680px){.library-window.sgr-games-photo-v47{padding:0;transform:none}.sgr-games-photo-v47 .sgr-games-photo-frame{border-radius:24px}}

/* v48 — robust full replacement of the dynamic library mockup.
   Keep .library-window only as the original tilted shell; hide anything
   React/backend may render inside and paint the supplied gameplay photo
   across the full module. */
.download-section .library-window{
  position:relative !important;
  isolation:isolate !important;
  aspect-ratio:4/3 !important;
  min-height:0 !important;
  padding:0 !important;
  overflow:visible !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:28px !important;
  background-color:#130d12 !important;
  background-image:url('/assets/site-v48/games-at-hand.jpg?v=48') !important;
  background-position:center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  box-shadow:0 44px 95px rgba(0,0,0,.35),0 14px 42px rgba(240,138,179,.14) !important;
}
.download-section .library-window > *{
  display:none !important;
}
.download-section .library-window::before{
  content:"" !important;
  position:absolute !important;
  z-index:-1 !important;
  inset:-34px !important;
  border-radius:42px !important;
  background:
    radial-gradient(circle at 25% 72%,rgba(245,203,99,.26),transparent 44%),
    radial-gradient(circle at 76% 30%,rgba(240,138,179,.38),transparent 54%) !important;
  filter:blur(44px) !important;
  opacity:.95 !important;
  pointer-events:none !important;
}
.download-section .library-window::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -1px 0 rgba(255,255,255,.04);
  pointer-events:none;
}
@media(max-width:680px){
  .download-section .library-window{
    transform:none !important;
    border-radius:24px !important;
  }
  .download-section .library-window::before{
    inset:-22px !important;
    border-radius:32px !important;
    filter:blur(34px) !important;
  }
}

/* v49 — clean gameplay photo: absolutely no visual layer above the image. */
.download-section .library-window{
  filter:none !important;
  -webkit-filter:none !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  background-color:transparent !important;
  background-image:url('/site-media/home/games-at-hand'),url('/assets/site-v48/games-at-hand.jpg?v=49') !important;
  background-position:center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  box-shadow:
    0 44px 95px rgba(0,0,0,.35),
    0 18px 52px rgba(240,138,179,.16),
    0 20px 58px rgba(245,203,99,.10) !important;
}
.download-section .library-window::before,
.download-section .library-window::after{
  content:none !important;
  display:none !important;
  background:none !important;
  filter:none !important;
  -webkit-filter:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  opacity:0 !important;
}

/* v84 — desktop: make the “Ваши игры всегда под рукой” media 15% larger.
   Mobile/tablet layout stays exactly as before. */
@media (min-width:961px){
  .download-section{
    grid-template-columns:.86fr 1fr !important;
    gap:64px !important;
  }
}
