
  :root {
    --bg: #06041a; --line: rgba(255,255,255,.08); --line2: rgba(246,199,68,.28);
    --gold: #f6c744; --gold2: #ffe08a; --text: #fff; --mute: #a39dc4; --green: #3fe07a;
    --glass: linear-gradient(180deg, rgba(30,22,72,.72), rgba(12,8,34,.82));
    --ui: "Noto Sans Armenian", system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
  body { min-height: 100vh; overflow-x: hidden;
    background:
      radial-gradient(1000px 600px at 85% -5%, rgba(110, 60, 210, .32), transparent 60%),
      radial-gradient(800px 500px at -10% 20%, rgba(246, 199, 68, .07), transparent 60%),
      radial-gradient(900px 700px at 50% 120%, rgba(42, 171, 238, .10), transparent 60%),
      var(--bg); }
  body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
  a { color: inherit; text-decoration: none; }
  .wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 18px; }
  .gold-t { background: linear-gradient(180deg, #fffbe0 0%, #ffd768 38%, #b8781d 58%, #ffe9a6 78%, #8a5512 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

  .top { position: sticky; top: 0; z-index: 30; background: rgba(6,4,26,.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
  .top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
  .brand { display: flex; align-items: center; gap: 10px; }
  .crest { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font: 900 20px "Cinzel", serif; color: #1b1300;
    background: linear-gradient(160deg, #fff3c4, #f6c744 45%, #a8701c); box-shadow: 0 6px 18px rgba(246,199,68,.35), inset 0 1px 0 rgba(255,255,255,.7); }
  .brand b { font: 900 18px "Cinzel", serif; letter-spacing: 1.5px; }
  .brand small { display: block; font-size: 9.5px; font-weight: 900; letter-spacing: 4px; color: var(--mute); margin-top: -2px; }
  .nav { display: flex; gap: 4px; margin-left: 10px; }
  .nav a { font-size: 13px; font-weight: 800; color: #cfc8e6; padding: 8px 12px; border-radius: 10px; transition: .2s; }
  .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .sp { flex: 1; }
  .pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 20px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
  .pill.on { color: #c9f7d3; background: rgba(40,180,90,.12); border: 1px solid rgba(60,210,110,.35); }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s ease-in-out infinite; display: inline-block; flex: none; }
  @keyframes blink { 50% { opacity: .35; } }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 13px; border: 0; font: 900 14px var(--ui); cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .2s, filter .2s; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
  .btn:disabled { opacity: .45; cursor: default; transform: none; }
  .btn-tg { background: linear-gradient(180deg, #45bdf5, #2193d6); color: #fff; box-shadow: 0 8px 22px rgba(42,171,238,.3); }
  .btn-gold { background: linear-gradient(180deg, #fff0b8, #f6c744 42%, #c48a26); color: #1b1300; box-shadow: 0 10px 26px rgba(246,199,68,.28), inset 0 1px 0 rgba(255,255,255,.7); }
  .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.14); }
  .btn-green { background: linear-gradient(180deg, #c3ffcf, #3fcf63 50%, #1c8a37); color: #04220c; box-shadow: 0 10px 24px rgba(63,207,99,.25), inset 0 1px 0 rgba(255,255,255,.6); }
  .bal { display: flex; align-items: center; height: 44px; border-radius: 13px; background: rgba(0,0,0,.45); border: 1px solid rgba(246,199,68,.45); overflow: hidden; }
  .coin { width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff3b8, #f6c744 50%, #a8701c); box-shadow: inset 0 -2px 3px rgba(0,0,0,.3), 0 0 10px rgba(246,199,68,.35); }
  .bal .coin { margin: 0 9px 0 11px; }
  .bal .v { font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; padding-right: 12px; min-width: 9ch; white-space: nowrap; }
  .bal button { height: 100%; width: 44px; border: 0; background: linear-gradient(180deg, #fff0b8, #f6c744 45%, #c48a26); color: #1b1300; font-size: 22px; font-weight: 900; cursor: pointer; }
  .ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; cursor: pointer; flex: none; position: relative;
    background: linear-gradient(135deg, #7a4cf0, #2aabee); box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
  .menu { position: absolute; right: 0; top: 52px; background: #120d2e; border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 190px; display: none; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
  .menu.show { display: block; }
  .menu div { padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
  .menu div:hover { background: rgba(255,255,255,.06); }
  .menu .nm { cursor: default; color: var(--mute); font-weight: 500; }
  .menu .nm:hover { background: none; }

  .ticker { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(246,199,68,.06), rgba(110,60,210,.06)); overflow: hidden; height: 40px; }
  .ticker .lane { position: absolute; top: 0; left: 0; display: flex; gap: 34px; align-items: center; height: 40px; white-space: nowrap; animation: tick 70s linear infinite; }
  .ticker:hover .lane { animation-play-state: paused; }
  @keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .tw { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #d9d3f0; }
  .tw b { color: var(--gold2); font-variant-numeric: tabular-nums; }
  .tw .x { font: 900 13px var(--ui); color: #fff; background: rgba(246,199,68,.16); border: 1px solid rgba(246,199,68,.4); border-radius: 7px; padding: 1px 7px; }
  .tw .lab { font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #1b1300; background: var(--gold); border-radius: 5px; padding: 1px 5px; }

  .hero { position: relative; margin: 22px 0 0; border-radius: 28px; overflow: hidden; height: 530px; border: 1px solid var(--line2);
    box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); background: #0b0726; }
  .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
  .hero .slide.on { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }
  .hero .slide canvas { transform: scale(1.06); transition: transform 7.5s ease-out; }
  .hero .slide.on canvas { transform: scale(1); }
  .hero .slide .txt > * { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
  .hero .slide.on .txt > * { opacity: 1; transform: none; }
  .hero .slide.on .txt > :nth-child(2) { transition-delay: .08s; } .hero .slide.on .txt > :nth-child(3) { transition-delay: .16s; } .hero .slide.on .txt > :nth-child(4) { transition-delay: .24s; }
  .hero .txt { position: relative; padding: 44px 44px 86px; max-width: 600px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
  .hero .feats { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 20px; }
  .hero .feats i { font-style: normal; font-size: 11.5px; font-weight: 800; color: #f2ecff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 4px 9px; }
  .htabs { position: absolute; z-index: 3; left: 44px; right: 44px; bottom: 22px; display: flex; gap: 8px; }
  .htab { flex: 1; min-width: 0; position: relative; overflow: hidden; height: 46px; border-radius: 13px; border: 1px solid rgba(255,255,255,.14); background: rgba(6,4,26,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #d8d1ef; font: 800 12.5px var(--ui); cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 0 12px; text-align: left; transition: border-color .25s, background .25s, color .25s; }
  .htab .ic { font-size: 18px; flex: none; }
  .htab .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .htab:hover { border-color: rgba(246,199,68,.55); color: #fff; }
  .htab.on { border-color: rgba(246,199,68,.85); color: #fff; background: rgba(40,26,80,.72); }
  .htab .pr { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #ffe08a, #f6c744); }
  .htab.on .pr { animation: hprog 7s linear forwards; }
  .hero.paused .htab.on .pr { animation-play-state: paused; }
  @keyframes hprog { to { width: 100%; } }
  .hstats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
  .hstats .chip { background: rgba(255,255,255,.04); }
  .aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .aura span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .22; animation: drift 26s ease-in-out infinite alternate; }
  .aura span:nth-child(1) { background: #7a3cf0; left: -12vmax; top: -10vmax; }
  .aura span:nth-child(2) { background: #f6c744; right: -16vmax; top: 30vh; opacity: .1; animation-duration: 32s; }
  .aura span:nth-child(3) { background: #e040a0; left: 20vw; bottom: -22vmax; opacity: .14; animation-duration: 38s; }
  @keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
  .tag { display: inline-flex; gap: 8px; align-items: center; width: max-content; font-size: 11px; font-weight: 900; letter-spacing: 2px; color: #1b1300; background: var(--gold); border-radius: 7px; padding: 4px 9px; }
  .tag i { font-style: normal; background: #1b1300; color: var(--gold); border-radius: 4px; padding: 0 5px; }
  .hero h1 { font: 900 clamp(40px, 6vw, 72px)/1 "Cinzel Decorative", serif; margin: 16px 0 14px; filter: drop-shadow(0 4px 0 #2a1600) drop-shadow(0 0 30px rgba(255,190,80,.35)); }
  .hero p { color: #e6e0fa; font-size: 15.5px; line-height: 1.6; margin: 0 0 22px; max-width: 470px; }
  .hero .row { display: flex; gap: 10px; flex-wrap: wrap; }
  .hero .btn { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 15px; }
  .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
  .chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 11px; background: rgba(0,0,0,.42); border: 1px solid var(--line); font-size: 12.5px; color: #e2dcf5; font-weight: 700; }
  .chip b { color: #fff; font-variant-numeric: tabular-nums; }

  .card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }
  .card h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: 1px; color: var(--gold); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .mut { color: var(--mute); font-size: 13px; line-height: 1.55; }
  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
  .qc { display: flex; flex-direction: column; }
  .qc .big { font: 900 30px var(--ui); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
  .qc .btn { margin-top: auto; width: 100%; }
  .qc .mut { margin-bottom: 14px; }
  .prz { display: flex; gap: 8px; margin: 10px 0 14px; }
  .prz div { flex: 1; text-align: center; background: rgba(255,255,255,.04); border: 1px solid rgba(246,199,68,.22); border-radius: 12px; padding: 8px 2px; font-size: 11px; color: var(--mute); }
  .prz b { display: block; font-size: 18px; color: var(--gold2); }
  .cd { font-variant-numeric: tabular-nums; font-weight: 900; color: #fff; }

  .sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 44px 0 16px; scroll-margin-top: 90px; }
  .sec h2 { margin: 0; font: 900 24px "Cinzel", serif; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; position: relative; padding-bottom: 8px; }
  .sec h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ffe08a, #f6c744 60%, transparent); }
  .sec small { color: var(--mute); font-size: 13px; }


  .two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
  .podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 10px; align-items: end; margin: 4px 0 14px; }
  .pd { text-align: center; min-width: 0; }
  .pd .av { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 22px; position: relative; }
  .pd .av::after { content: attr(data-m); position: absolute; bottom: -6px; right: -8px; font-size: 20px; }
  .pd .nm { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pd .sc { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold2); font-size: 15px; }
  .pd .base { margin-top: 10px; border-radius: 14px 14px 6px 6px; display: grid; place-items: center; font: 900 26px "Cinzel", serif; color: rgba(255,255,255,.85); border: 1px solid var(--line); }
  .pd.p1 .av { width: 72px; height: 72px; background: linear-gradient(160deg, #fff3c4, #f6c744 50%, #a8701c); color: #1b1300; box-shadow: 0 0 30px rgba(246,199,68,.5); }
  .pd.p2 .av { background: linear-gradient(160deg, #ffffff, #c8cde0 50%, #7a8099); color: #1a1d2a; }
  .pd.p3 .av { background: linear-gradient(160deg, #ffd9b3, #cd7f32 50%, #7a4515); color: #2a1404; }
  .pd.p1 .base { height: 110px; background: linear-gradient(180deg, rgba(246,199,68,.28), rgba(246,199,68,.04)); }
  .pd.p2 .base { height: 80px; background: linear-gradient(180deg, rgba(200,205,224,.2), rgba(200,205,224,.03)); }
  .pd.p3 .base { height: 62px; background: linear-gradient(180deg, rgba(205,127,50,.24), rgba(205,127,50,.03)); }
  .pd .prize { font-size: 11px; color: var(--mute); margin-top: 2px; }
  .li { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .li.me { background: rgba(246,199,68,.1); border-radius: 10px; }
  .li .rk { font-weight: 900; color: var(--mute); text-align: center; }
  .li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
  .li small, .hi small { display: block; font-weight: 500; color: var(--mute); font-size: 11.5px; }
  .li .sc { font-weight: 900; font-variant-numeric: tabular-nums; }
  .hi { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .hi b { color: var(--gold2); }
  .hi a, .hi button { height: 32px; padding: 0 11px; border-radius: 9px; border: 1px solid rgba(246,199,68,.45); background: rgba(255,255,255,.04); color: #ffe9a6; font: 800 12px var(--ui); cursor: pointer; display: inline-flex; align-items: center; }
  .empty { color: var(--mute); text-align: center; padding: 22px 0; font-size: 13.5px; }

  .refx { position: relative; overflow: hidden; border-radius: 24px; padding: 28px; border: 1px solid rgba(246,199,68,.35);
    background: radial-gradient(600px 300px at 100% 0%, rgba(246,199,68,.22), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(42,171,238,.18), transparent 60%), linear-gradient(135deg, #1a1040, #0c0828); }
  .refx .grid { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
  .refx .pct { font: 900 110px/0.9 "Cinzel", serif; filter: drop-shadow(0 6px 0 #2a1600) drop-shadow(0 0 30px rgba(246,199,68,.35)); }
  .refx h3 { margin: 0 0 6px; font-size: 22px; }
  .refl { display: flex; gap: 8px; margin-top: 14px; }
  .refl input { flex: 1; min-width: 0; height: 46px; border-radius: 13px; border: 1px solid rgba(246,199,68,.4); background: rgba(4,2,16,.7); color: #fff; padding: 0 14px; font: 700 14px var(--ui); }
  .refl .btn { flex: none; height: 46px; }
  .refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
  .refs div { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
  .refs b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--gold2); }
  .refs span { font-size: 11px; color: var(--mute); }
  .rli { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 2px; border-bottom: 1px solid var(--line); }

  footer { margin: 54px 0 34px; text-align: center; color: var(--mute); font-size: 12px; line-height: 1.7; }
  footer .bt { display: inline-block; max-width: 760px; background: rgba(255,150,40,.06); border: 1px solid rgba(255,170,60,.25); color: #ffd7a0; border-radius: 14px; padding: 12px 16px; }
  footer .lg { margin-top: 16px; font: 900 13px "Cinzel", serif; letter-spacing: 3px; color: #6f6896; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
  .reveal.in { opacity: 1; transform: none; }

  @media (max-width: 980px) {
    .nav { display: none; }
  }
  @media (max-width: 860px) {
    .grid3, .two { grid-template-columns: 1fr; }
    .hero { height: 600px; }
    .hero .txt { justify-content: flex-start; padding: 24px 20px; max-width: 100%; }
    .hero h1 { margin: 12px 0 10px; }
    .hero .feats { margin: -2px 0 14px; }
    .htabs { left: 12px; right: 12px; bottom: 12px; gap: 6px; }
    .htab { height: 40px; padding: 0; justify-content: center; }
    .htab .nm { display: none; }
    .hero p { max-width: 80%; font-size: 14px; }
    .brand b { font-size: 15px; }
    .brand small { display: none; }
    .top .wrap { gap: 8px; height: 62px; }
    .pill.on .ot { display: none; }
    .pill.on { padding: 0 9px; }
    .bal .v { min-width: 0; font-size: 14px; padding-right: 8px; }
    .bal .coin { margin: 0 7px 0 9px; width: 18px; height: 18px; }
    .bal button { width: 38px; }
    .ava { width: 38px; height: 38px; }
    .btn-tg .lg { display: none; }
    .refx { padding: 20px; }
    .refx .grid { grid-template-columns: 1fr; gap: 6px; }
    .refx .pct { font-size: 74px; }
    .refs { grid-template-columns: repeat(2, 1fr); }
    .sec h2 { font-size: 20px; }
  }
  @media (max-width: 420px) { .brand b { display: none; } }

  /* ================= казино-лобби: сайдбар, поиск, категории, плитки ================= */
  .layout { position: relative; z-index: 1; display: grid; grid-template-columns: var(--snw, 256px) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .32s cubic-bezier(.4,0,.2,1); }
  body.snc { --snw: 80px; }
  .sidenav { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px 24px; border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14,10,40,.92), rgba(6,4,26,.92)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow-x: hidden;
    scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .3s; }
  /* скроллбар меню: тонкий золотой, проявляется при наведении */
  .sidenav:hover { scrollbar-color: rgba(246,199,68,.45) transparent; }
  .sidenav::-webkit-scrollbar { width: 6px; }
  .sidenav::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
  .sidenav::-webkit-scrollbar-thumb { border-radius: 6px; background: transparent; }
  .sidenav:hover::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255,224,138,.65), rgba(196,138,38,.55)); box-shadow: 0 0 8px rgba(246,199,68,.4); }
  .sidenav::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffe08a, #c48a26); }
  .snhead { display: flex; align-items: center; gap: 8px; padding: 0 0 16px 4px; }
  .sidenav .brand { flex: 1; min-width: 0; }
  .sidenav .brand .bt { white-space: nowrap; overflow: hidden; transition: opacity .2s; }
  .sidenav .brand b { font-size: 15.5px; letter-spacing: 1px; }
  .sidenav .brand small { letter-spacing: 3px; }
  .sntog { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #cfc8e6; cursor: pointer; display: grid; place-items: center; transition: .25s; }
  .sntog:hover { border-color: rgba(246,199,68,.6); color: var(--gold2); background: rgba(246,199,68,.08); }
  .sntog i { transition: transform .32s; }
  body.snc .sntog i { transform: rotate(180deg); }
  .snav { display: flex; flex-direction: column; gap: 2px; }
  .snav .sh { font-size: 10.5px; font-weight: 900; letter-spacing: 2px; color: #6f6896; padding: 16px 12px 6px; }
  .snav button, .snav a { display: flex; align-items: center; gap: 11px; width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: #cfc8e6;
    font: 800 13.5px var(--ui); cursor: pointer; text-align: left; transition: background .2s, color .2s; position: relative; }
  .snav .ic { width: 22px; text-align: center; font-size: 15px; flex: none; color: #8f88b8; transition: color .2s, transform .2s; }
  .snav .lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .snav .n { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 900; color: #a39dc4; background: rgba(255,255,255,.07); border-radius: 8px; padding: 2px 7px; }
  .snav button:hover .ic, .snav a:hover .ic { color: var(--gold2); transform: scale(1.12); }
  .snav button.on .ic { color: var(--gold); }
  .snav button:hover, .snav a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .snav button.on { background: linear-gradient(90deg, rgba(246,199,68,.2), rgba(246,199,68,.04)); color: #fff; }
  .snav button.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); }
  .sclaim { margin-top: 18px; padding: 14px; border-radius: 16px; text-align: center; border: 1px solid rgba(63,224,122,.35);
    background: radial-gradient(200px 120px at 50% 0%, rgba(63,224,122,.22), transparent 70%), rgba(255,255,255,.03); }
  .sclaim .t { font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #9dffb0; }
  .sclaim .v { font: 900 26px var(--ui); margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
  .sclaim .btn { width: 100%; height: 40px; font-size: 13px; }
  .sclaim .btn .fa-gift { display: none; }
  /* свёрнутое меню: только иконки */
  body.snc .sidenav { padding: 18px 10px 24px; }
  body.snc .snhead { flex-direction: column; padding: 0 0 12px; gap: 10px; }
  body.snc .sidenav .brand { flex: none; padding: 0; }
  body.snc .sidenav .brand .bt, body.snc .snav .lb, body.snc .snav .n, body.snc .sclaim .t, body.snc .sclaim .v { display: none; }
  body.snc .snav .sh { font-size: 0; padding: 0; height: 1px; margin: 12px 10px; background: var(--line); }
  body.snc .snav button, body.snc .snav a { justify-content: center; padding: 0; height: 46px; }
  body.snc .snav .ic { font-size: 17px; width: auto; }
  body.snc .snav button.on::before { top: 12px; bottom: 12px; }
  body.snc .sclaim { padding: 8px; border-radius: 14px; }
  body.snc .sclaim .btn { height: 42px; padding: 0; font-size: 17px; }
  body.snc .sclaim .btn .fa-gift { display: inline; }
  body.snc .sclaim .btn .lb { display: none; }
  .mmenu { display: none; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font-size: 17px; cursor: pointer; }
  .snback { display: none; }
  .rowh h3 i, .gridhead h2 i { color: var(--gold); font-size: .85em; }
  .hstats .chip i { color: var(--gold); }
  .cat i { font-size: 13px; opacity: .85; transition: color .2s; }
  .noresult b i { color: #6f6896; }
  .mainc { min-width: 0; }

  .top .wrap { gap: 14px; }
  .brand-m { display: none; }
  .search { position: relative; flex: 1; max-width: 460px; }
  .search input { width: 100%; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff;
    padding: 0 40px 0 44px; font: 700 14px var(--ui); outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
  .search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
  .search input::placeholder { color: #8a84ad; }
  .search input:focus { border-color: rgba(246,199,68,.7); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(246,199,68,.12); }
  .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8a84ad; pointer-events: none; }
  .search .clr { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: none; font-size: 14px; }
  .search.has .clr { display: block; }
  .search .kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 900; color: #8a84ad; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 1px 6px; }
  .search.has .kbd { display: none; }

  /* лента категорий: стеклянная панель с градиентной золотой рамкой, затухание по краям, стрелки */
  #lobbyView, #grid { overflow-anchor: none; }
  .catbar { position: sticky; top: 68px; z-index: 20; display: flex; align-items: center; gap: 10px; margin: 22px -18px 0; padding: 10px 18px 14px;
    background: none; pointer-events: none; }
  .catbar > * { pointer-events: auto; }
  .catwrap { position: relative; flex: 1; min-width: 0; border-radius: 18px; padding: 6px; border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(26,18,64,.96), rgba(10,7,30,.96)) padding-box,
      linear-gradient(100deg, rgba(246,199,68,.75), rgba(150,90,255,.5) 35%, rgba(42,171,238,.45) 65%, rgba(246,199,68,.75)) border-box;
    box-shadow: 0 0 22px rgba(246,199,68,.1), inset 0 1px 0 rgba(255,255,255,.08); }
  .catwrap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(400px 60px at 10% 0%, rgba(246,199,68,.12), transparent 70%), radial-gradient(400px 60px at 90% 100%, rgba(122,76,240,.14), transparent 70%); }
  .cats { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; scroll-behavior: smooth; cursor: grab; user-select: none; -webkit-user-select: none; }
  .cats.drag { cursor: grabbing; scroll-behavior: auto; }
  .cats.drag .cat { pointer-events: none; }
  .cats::-webkit-scrollbar { display: none; }
  .catwrap.fl .cats { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
  .catwrap.fr .cats { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .catwrap.fl.fr .cats { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent); }
  .cscroll { position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
    border: 1px solid rgba(246,199,68,.55); background: rgba(14,10,40,.92); color: var(--gold2); font-size: 13px; box-shadow: 0 0 12px rgba(246,199,68,.25);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s, background .2s; }
  .cscroll.l { left: 6px; } .cscroll.r { right: 6px; }
  .cscroll:hover { background: linear-gradient(180deg, #fff0b8, #f6c744 45%, #c48a26); color: #1b1300; transform: scale(1.08); }
  .catwrap.fl .cscroll.l, .catwrap.fr .cscroll.r { opacity: 1; pointer-events: auto; }
  .cat { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 13px; border: 1px solid transparent;
    background: transparent; color: #cfc8e6; font: 800 13px var(--ui); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
  .cat:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #fff; }
  .cat:hover i { color: var(--gold2); }
  .cat.on { background: linear-gradient(180deg, #fff0b8, #f6c744 45%, #c48a26); color: #1b1300; border-color: #fff1b0; box-shadow: 0 6px 18px rgba(246,199,68,.3), inset 0 1px 0 rgba(255,255,255,.7); }
  .cat.on i { color: #1b1300; opacity: 1; }
  /* сортировка: такая же панель с рамкой, иконка + стрелка */
  .sortw { position: relative; flex: none; display: flex; align-items: center; height: 54px; border-radius: 18px; border: 1px solid transparent; cursor: pointer;
    background: linear-gradient(180deg, rgba(26,18,64,.96), rgba(10,7,30,.96)) padding-box, linear-gradient(100deg, rgba(246,199,68,.75), rgba(150,90,255,.5)) border-box;
    box-shadow: 0 0 22px rgba(246,199,68,.1); color: var(--gold2); }
  .sortw > i { position: absolute; pointer-events: none; }
  .sortw .si { left: 16px; font-size: 14px; }
  .sortw .sc { right: 14px; font-size: 11px; color: #a39dc4; }
  .sort { appearance: none; -webkit-appearance: none; height: 100%; border: 0; border-radius: 18px; background: transparent; color: #fff; font: 800 13px var(--ui); padding: 0 36px 0 40px; cursor: pointer; outline: none; }
  .sortw:hover { box-shadow: 0 0 22px rgba(246,199,68,.18), 0 0 0 3px rgba(246,199,68,.15); }
  .sort option { background: #120d2e; }

  .rowh { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; }
  .rowh h3 { margin: 0; font: 900 20px "Cinzel", "Noto Sans Armenian", serif; display: flex; align-items: center; gap: 10px; }
  .rowh h3 small { font: 700 12px var(--ui); color: var(--mute); }
  .rowh .sp { flex: 1; }
  .rowh .all { font-size: 12.5px; font-weight: 900; color: var(--gold2); cursor: pointer; background: none; border: 0; padding: 6px 4px; }
  .rowh .arr { display: flex; gap: 6px; }
  .rowh .arr button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
  .rowh .arr button:hover { border-color: var(--gold); }
  .rail { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .tile { scroll-snap-align: start; }
  .rail.big { grid-auto-columns: 260px; }

  .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
  .tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #110c28; border: 1px solid rgba(255,255,255,.08);
    transition: transform .25s, box-shadow .25s; isolation: isolate; }
  .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; }
  .tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-110%); transition: transform .9s; pointer-events: none; z-index: 3; }
  .tile:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(246,199,68,.6), 0 0 50px rgba(246,199,68,.16); }
  .tile:hover img { transform: scale(1.07); filter: brightness(.55) saturate(1.1); }
  .tile:hover::after { transform: translateX(110%); }
  .tcap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 12px 12px; background: linear-gradient(180deg, transparent, rgba(4,2,16,.82) 45%, rgba(4,2,16,.96)); }
  .tcap b { display: block; font: 900 15px "Cinzel", serif; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
  .tcap small { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; color: #a39dc4; }
  .tb { position: absolute; z-index: 2; top: 10px; left: 10px; font-size: 9.5px; font-weight: 900; letter-spacing: 1px; padding: 3px 7px; border-radius: 6px; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
  .tb.hot { background: linear-gradient(180deg, #ff6a4a, #c8102e); }
  .tb.new { background: linear-gradient(180deg, #4ad86a, #1c8a37); }
  .tb.exc { background: linear-gradient(180deg, #8a6aff, #4a1ab8); }
  .tb.top { background: linear-gradient(180deg, #ffe08a, #c48a26); color: #1b1300; }
  .fav { position: absolute; z-index: 4; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: rgba(255,255,255,.75);
    display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s, color .2s; padding: 0; }
  .fav svg { width: 17px; height: 17px; }
  .fav:hover { transform: scale(1.12); color: #fff; }
  .fav.on { color: #ff4a7a; background: rgba(255,74,122,.18); }
  .fav.on svg path { fill: currentColor; }
  .fav.pop { animation: favpop .4s cubic-bezier(.2,1.8,.4,1); }
  @keyframes favpop { 40% { transform: scale(1.45); } }
  .ton { position: absolute; z-index: 2; top: 46px; right: 10px; display: none; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 900; background: rgba(0,0,0,.6); border: 1px solid rgba(60,210,110,.45); border-radius: 20px; padding: 2px 7px; }
  .ton.show { display: inline-flex; }
  .ton .dot { width: 6px; height: 6px; }
  .thov { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity .25s; padding-bottom: 46px; }
  .tile:hover .thov { opacity: 1; }
  .tplay { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #fff0b8, #f6c744 45%, #c48a26); color: #1b1300; font-size: 22px;
    box-shadow: 0 0 0 6px rgba(246,199,68,.22), 0 0 40px rgba(246,199,68,.6); transform: scale(.7); transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
  .tile:hover .tplay { transform: scale(1); }
  .tinfo { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; padding: 0 10px; }
  .tinfo em { font-style: normal; font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); border-radius: 7px; padding: 2px 7px; }
  .tile.skel { background: linear-gradient(90deg, #110c28, #1c1440, #110c28); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
  @keyframes skel { to { background-position: -200% 0; } }

  .gridhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 36px 0 14px; scroll-margin-top: 140px; }
  .gridhead h2 { margin: 0; font: 900 24px "Cinzel", "Noto Sans Armenian", serif; display: flex; align-items: center; gap: 10px; }
  .gridhead small { color: var(--mute); font-size: 13px; }
  .gridhead .reset { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; font: 800 12.5px var(--ui); cursor: pointer; }
  .noresult { text-align: center; padding: 40px 10px; color: var(--mute); border: 1px dashed rgba(255,255,255,.14); border-radius: 18px; }
  .noresult b { display: block; font-size: 40px; margin-bottom: 8px; }

  .bnav { display: none; }
  @media (max-width: 1100px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidenav { position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; width: 280px; height: 100%; transform: translateX(-105%); transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: 20px 0 60px rgba(0,0,0,.6); }
    body.snopen .sidenav { transform: none; }
    .snback { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
    body.snopen .snback { opacity: 1; pointer-events: auto; }
    body.snopen { overflow: hidden; }
    body.snopen .bnav { transform: translateY(110%); }
    .bnav { transition: transform .3s; }
    .sidenav .brand b, .sidenav .brand small { display: block !important; }
    body.snc .sntog i, .sntog i { transform: none; }
    .mmenu { display: grid; place-items: center; }
    body.snc .sidenav { padding: 18px 14px 24px; }
    body.snc .snhead { flex-direction: row; }
    body.snc .sidenav .brand .bt, body.snc .snav .lb, body.snc .snav .n, body.snc .sclaim .t, body.snc .sclaim .v { display: revert; }
    body.snc .snav .sh { font-size: 10.5px; padding: 16px 12px 6px; height: auto; margin: 0; background: none; }
    body.snc .snav button, body.snc .snav a { justify-content: flex-start; padding: 0 12px; height: 42px; }
    .brand-m { display: flex; }
    .catbar { top: 62px; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
      background: rgba(8,6,28,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
    .bnav button { border: 0; background: none; color: #a39dc4; font: 800 10px var(--ui); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; position: relative; }
    .bnav button > i { font-size: 19px; line-height: 1; height: 20px; }
    .bnav .mid span i { font-size: 20px; color: #04220c; }
    .bnav button.on { color: var(--gold2); }
    .bnav button.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
    .bnav .mid span { line-height: 1; width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: linear-gradient(180deg, #c3ffcf, #3fcf63 50%, #1c8a37); box-shadow: 0 6px 20px rgba(63,207,99,.45), 0 0 0 4px rgba(8,6,28,.94); }
  }
  @media (max-width: 860px) {
    .top .wrap { gap: 8px; }
    .top .pill.on { display: none; }
    .search { max-width: none; min-width: 0; }
    .top .wrap > .sp { display: none; }
    .btn-tg .lg { display: inline; }
    .tgw { display: none; }
    #loginTop { padding: 0 12px; height: 40px; }
    .tcap .prov { display: none; }
    .search input { height: 40px; font-size: 13.5px; padding-left: 38px; border-radius: 12px; }
    .search svg { left: 12px; width: 16px; height: 16px; }
    .search .kbd { display: none; }
    .brand-m .brand b, .brand-m .brand small { display: none; }
    .catbar { margin: 16px -18px 0; padding: 8px 12px 12px; gap: 8px; }
    .catwrap { padding: 5px; border-radius: 15px; }
    .cat { height: 36px; padding: 0 12px; font-size: 12px; border-radius: 11px; }
    .cscroll { display: none; }
    .catwrap.fl .cats, .catwrap.fr .cats, .catwrap.fl.fr .cats { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent); }
    .sortw { width: 48px; height: 48px; border-radius: 15px; }
    .sortw .sc { display: none; }
    .sortw .si { left: 50%; transform: translateX(-50%); font-size: 16px; }
    .sort { position: absolute; inset: 0; width: 100%; opacity: 0; padding: 0; }
    .tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
    .rail { grid-auto-columns: 140px; gap: 10px; }
    .rail.big { grid-auto-columns: 180px; }
    .rowh { margin: 24px 0 10px; }
    .rowh h3 { font-size: 17px; }
    .rowh h3 small { display: none; }
    .rowh .all { white-space: nowrap; }
    .rowh .arr { display: none; }
    .tcap { padding: 30px 9px 9px; }
    .tcap b { font-size: 13px; }
    .tcap small { font-size: 9.5px; }
    .fav { width: 28px; height: 28px; }
    .thov { display: none; }
    .gridhead h2 { font-size: 20px; }
  }

  /* рекорд дня: кликабельный чип → повтор раунда */
  .chip.rec { cursor: pointer; border-color: rgba(246,199,68,.45); background: linear-gradient(90deg, rgba(246,199,68,.14), rgba(255,255,255,.04)); transition: border-color .2s, box-shadow .2s, transform .2s; }
  .chip.rec .fa-crown { color: var(--gold); }
  .chip.rec .rp { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; font-size: 10.5px; font-weight: 900; letter-spacing: .5px; color: #1b1300; background: linear-gradient(180deg, #fff0b8, #f6c744 45%, #c48a26); border-radius: 7px; padding: 3px 7px; }
  .chip.rec .rp i { font-size: 8px; }
  .chip.rec:hover { border-color: var(--gold); box-shadow: 0 0 18px rgba(246,199,68,.3); transform: translateY(-1px); }

  /* телефон: поиск — кнопка-лупа, по тапу раскрывается на всю ширину верхней панели (поверх баланса) */
  @media (max-width: 600px) {
    .top .wrap { position: relative; }
    .search { flex: none; width: 40px; height: 40px; }
    .search input { width: 40px; padding: 0; color: transparent; cursor: pointer; caret-color: transparent; }
    .search input::placeholder { color: transparent; }
    .search svg { left: 50%; transform: translate(-50%, -50%); }
    .search:focus-within, .search.has { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); width: auto; z-index: 5; }
    .search:focus-within input, .search.has input { width: 100%; padding: 0 44px 0 40px; color: #fff; caret-color: auto; cursor: text; background: #160f3a; box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 0 4px rgba(246,199,68,.14); }
    .search:focus-within input::placeholder, .search.has input::placeholder { color: #8a84ad; }
    .search:focus-within svg, .search.has svg { left: 14px; transform: translateY(-50%); }
    .search:focus-within .clr, .search.has .clr { display: block; }
  }
  /* телефон: верхняя панель — меню и логотип слева, поиск и аккаунт справа */
  @media (max-width: 600px) {
    .top .wrap > .sp { display: block; flex: 1; }
    .top .wrap { gap: 8px; }
  }
  /* вошедший игрок на очень узком экране: логотип уступает место балансу */
  @media (max-width: 380px) { .top .wrap:has(#user[style*="flex"]) .brand-m { display: none; } }
  /* вошедший игрок на телефоне: от логотипа остаётся только «W», подарок — в нижней навигации; аватар всегда целиком */
  @media (max-width: 600px) {
    .top .wrap:has(#user[style*="flex"]) .brand-m .brand > span:not(.crest) { display: none; }
    #user { gap: 8px !important; min-width: 0; flex: 0 1 auto; }
    #user .ava { flex: none; }
    #user .bal { min-width: 0; flex: 0 1 auto; }
  }
  @media (max-width: 440px) { #user .wmgift { display: none !important; } .bal .v { font-size: 13px; padding-right: 7px; } .bal button { width: 34px; } }
  @media (max-width: 400px) {
    .bal .v { font-size: 13px; padding-right: 7px; }
    .bal .coin { margin: 0 6px 0 8px; }
  }
  /* телефон: баннер — текст сверху (описание 3 строки, одна кнопка), арт в нижней половине */
  @media (max-width: 600px) {
    .hero { height: 640px; }
    .hero .txt { padding: 22px 18px; }
    .hero h1 { font-size: 40px; margin: 10px 0 8px; }
    .hero p { max-width: 100%; font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hero .feats { flex-wrap: nowrap; overflow: hidden; margin: 0 0 14px; }
    .hero .feats i { flex: none; }
    .hero .row .btn-ghost { display: none; }
    .hero .btn { height: 46px; padding: 0 22px; }
  }

  /* телефон: счётчики под баннером — три в ряд, рекорд дня отдельной строкой */
  @media (max-width: 600px) {
    .hstats { gap: 6px; }
    .hstats .chip { height: 32px; padding: 0 8px; font-size: 11px; gap: 4px; white-space: nowrap; max-width: 100%; }
    .hstats .chip.rec { height: auto; min-height: 32px; white-space: normal; text-align: center; padding: 5px 10px; flex-wrap: wrap; }
    .hstats .chip:not(.rec) .dot { width: 6px; height: 6px; }
    .hstats .chip.rec { order: 5; flex-basis: 100%; justify-content: center; }
  }

  /* телефон: блок «Пригласите друзей» — колонка не шире карточки, длинная кнопка переносится */
  @media (max-width: 860px) {
    .refx .grid { grid-template-columns: minmax(0, 1fr); }
    #refGuest .btn { width: 100%; white-space: normal; height: auto; min-height: 46px; padding: 10px 14px; line-height: 1.3; text-align: center; }
  }

  /* ничто не должно раздвигать страницу вбок (iOS Safari игнорирует overflow-x:hidden у body при свайпе):
     обрезаем по ширине всю колонку контента; clip не ломает sticky у шапки и ленты категорий */
  body { max-width: 100%; }
  @supports (overflow: clip) { html, body { overflow-x: clip; } .mainc, .layout { overflow-x: clip; } }
  /* лента выигрышей: анимированная полоса изолирована, свайп по ней не двигает страницу */
  .ticker { max-width: 100%; contain: paint; touch-action: pan-y; }
  .ticker .lane { will-change: transform; }
  /* iOS увеличивает страницу при фокусе на поле со шрифтом < 16px — после этого её можно двигать вбок */
  @media (max-width: 860px) {
    .search input, .refl input, input, select, textarea { font-size: 16px !important; }
  }

  /* ================= v2: hero из 7 слайдов на картинках, лидерборд / лента / история с аватарками ================= */
  .hero.v2 { background: #090620; }
  .hero.v2 .slide .bg { position: absolute; inset: 0; overflow: hidden; }
  .hero.v2 .slide .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; transform: scale(1.06); transition: transform 7.5s ease-out; }
  .hero.v2 .slide.on .bg img { transform: scale(1); }
  .hero.v2 .slide .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,4,26,.94) 0%, rgba(6,4,26,.72) 34%, rgba(6,4,26,.12) 62%, rgba(6,4,26,0) 100%), linear-gradient(0deg, rgba(6,4,26,.7), rgba(6,4,26,0) 30%); }
  .hero.v2 .txt { z-index: 2; }
  .hero.v2 .tag .fa-solid, .hero.v2 .tag .fa-brands { font-size: 11px; }
  /* фолбэк, пока нет картинки: размытая обложка игры + сама обложка карточкой справа */
  .hero.v2 .fb { position: absolute; inset: 0; display: none; }
  .hero.v2 .slide.noimg .fb { display: block; }
  .hero.v2 .fb .blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) saturate(1.3) brightness(.62); transform: scale(1.1); }
  .hero.v2 .fb .card3 { position: absolute; right: 7%; top: 50%; height: 84%; aspect-ratio: 3 / 4; transform: translateY(-50%) rotate(4deg); border-radius: 22px; background-size: cover; background-position: center;
    box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 2px rgba(246,199,68,.55), 0 0 60px rgba(246,199,68,.25); }
  .hero.v2 .fb .card3.b { right: 24%; height: 70%; transform: translateY(-46%) rotate(-7deg); opacity: .55; filter: blur(1px); }
  /* промо-слайды без картинки: градиент и большая иконка */
  .hero.v2 .deco { position: absolute; inset: 0; overflow: hidden; }
  .hero.v2 .deco.wm1 { background: radial-gradient(ellipse at 75% 40%, rgba(246,199,68,.35), transparent 55%), radial-gradient(ellipse at 90% 90%, rgba(150,60,255,.45), transparent 60%), linear-gradient(135deg, #0b0726, #2a1258 60%, #4a1a5e); }
  .hero.v2 .deco.wm2 { background: radial-gradient(ellipse at 76% 45%, rgba(80,255,160,.32), transparent 55%), radial-gradient(ellipse at 95% 10%, rgba(246,199,68,.35), transparent 50%), linear-gradient(135deg, #06140f, #0c3a2a 55%, #1d4a1a); }
  .hero.v2 .deco.leaderboard { background: radial-gradient(ellipse at 74% 42%, rgba(246,199,68,.42), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(224,36,46,.35), transparent 55%), linear-gradient(135deg, #10061e, #3a1430 55%, #5a2a10); }
  .hero.v2 .deco > i { position: absolute; right: 9%; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: 300px; color: rgba(255,226,140,.16); filter: drop-shadow(0 0 40px rgba(246,199,68,.35)); }
  .hero.v2 .slide.hasimg .deco { display: none; }
  /* лидерборд прямо в слайде */
  .hero.v2 .hpod { display: flex; gap: 12px; align-items: flex-end; margin: 0 0 20px; flex-wrap: wrap; }
  .hero.v2 .hpod .p { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(6,4,26,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 0; }
  .hero.v2 .hpod .p.r1 { border-color: rgba(246,199,68,.8); box-shadow: 0 0 24px rgba(246,199,68,.25); }
  .hero.v2 .hpod .p b { display: block; font-size: 14px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero.v2 .hpod .p small { display: block; font-size: 12px; color: var(--gold2); font-weight: 800; }
  .hero.v2 .hcd { font-weight: 800; color: #ffe9a6; }
  .htabs.v2 .htab .ic { font-size: 15px; width: 18px; text-align: center; color: var(--gold2); }
  .hero.v2 .harr { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(6,4,26,.55); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .25s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .hero.v2:hover .harr { opacity: 1; }
  .hero.v2 .harr.l { left: 14px; } .hero.v2 .harr.r { right: 14px; }
  .hero.v2 .harr:hover { border-color: rgba(246,199,68,.8); color: var(--gold2); }

  /* аватарки */
  .av2 { --s: 40px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; position: relative; font: 900 calc(var(--s) * .42) var(--ui); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); }
  .av2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  #ava > img.avimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; pointer-events: none; }

  /* лидерборд v2 */
  .lbx { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
  .lbcard { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(40,24,90,.55), rgba(14,10,36,.75)); box-shadow: 0 18px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
  .lbcard::before { content: ""; position: absolute; inset: -40% -10% auto; height: 70%; background: radial-gradient(ellipse at 50% 100%, rgba(246,199,68,.22), transparent 60%); pointer-events: none; }
  .lbhead { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
  .lbhead h3 { margin: 0; font: 900 17px "Cinzel", serif; color: #fff; display: flex; gap: 10px; align-items: center; }
  .lbhead h3 i { color: var(--gold2); }
  .lbhead .cdp { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 800; color: #ffe9a6; background: rgba(246,199,68,.12); border: 1px solid rgba(246,199,68,.4); border-radius: 999px; padding: 6px 12px; }
  .pod2 { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin: 18px 0 16px; }
  .pod2 .c { text-align: center; min-width: 0; }
  .pod2 .ring { position: relative; width: max-content; margin: 0 auto 10px; padding: 4px; border-radius: 50%; background: conic-gradient(from 210deg, #6a6a7a, #e6e6f2, #8a8a9a, #f4f4ff, #6a6a7a); }
  .pod2 .r1 .ring { background: conic-gradient(from 210deg, #8a5512, #ffe9a6, #f6c744, #fffbe0, #b8781d, #8a5512); box-shadow: 0 0 34px rgba(246,199,68,.45); }
  .pod2 .r3 .ring { background: conic-gradient(from 210deg, #6a3a1a, #e8a070, #a8602a, #ffc8a0, #6a3a1a); }
  .pod2 .ring .av2 { box-shadow: 0 0 0 3px #120c2e; }
  .pod2 .crown { position: absolute; left: 50%; top: -24px; transform: translateX(-50%) rotate(-8deg); color: #ffd768; font-size: 24px; filter: drop-shadow(0 2px 0 #6a3a00) drop-shadow(0 0 10px rgba(246,199,68,.6)); }
  .pod2 .pl { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 900 12px var(--ui); color: #1b1300; background: var(--gold); border: 2px solid #120c2e; }
  .pod2 .r2 .pl { background: #dcdcea; } .pod2 .r3 .pl { background: #e0a070; }
  .pod2 .nm { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pod2 .sc { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold2); font-size: 15px; margin-top: 2px; }
  .pod2 .pz { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; padding: 6px 10px; border-radius: 10px; font: 900 12px var(--ui); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
  .pod2 .r1 .pz { background: linear-gradient(180deg, rgba(246,199,68,.3), rgba(246,199,68,.1)); border-color: rgba(246,199,68,.6); color: #ffe9a6; }
  .pod2 .step { margin-top: 10px; border-radius: 14px 14px 6px 6px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
  .pod2 .r1 .step { height: 46px; background: linear-gradient(180deg, rgba(246,199,68,.28), rgba(246,199,68,.04)); border-color: rgba(246,199,68,.45); }
  .pod2 .r2 .step { height: 30px; } .pod2 .r3 .step { height: 20px; }
  .lrow { position: relative; display: grid; grid-template-columns: 30px auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 14px; font-size: 14px; transition: background .2s; }
  .lrow + .lrow { margin-top: 4px; }
  .lrow:hover { background: rgba(255,255,255,.04); }
  .lrow.me { background: linear-gradient(90deg, rgba(246,199,68,.16), rgba(246,199,68,.04)); box-shadow: inset 0 0 0 1px rgba(246,199,68,.35); }
  .lrow .rk { font: 900 14px var(--ui); color: var(--mute); text-align: center; }
  .lrow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
  .lrow .nm small { display: block; font-weight: 600; color: var(--mute); font-size: 11.5px; }
  .lrow .sc { font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; display: flex; gap: 6px; align-items: center; }
  .lrow .sc .coin { width: 14px; height: 14px; }
  .lbnote { position: relative; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); color: #cfc8ea; font-size: 13px; line-height: 1.55; }
  .lbnote i { color: var(--gold2); margin-right: 6px; }
  .lbnote b { color: #fff; }
  .lbempty { padding: 22px 10px; text-align: center; color: var(--mute); }
  .lbempty i { display: block; font-size: 30px; color: rgba(246,199,68,.5); margin-bottom: 8px; }
  /* правая карточка: вкладки «Մեծ շահումներ / Իմ պատմությունը» */
  .ftabs { position: relative; display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); margin: 4px 0 14px; }
  .ftabs button { flex: 1; height: 38px; border-radius: 10px; border: 0; background: transparent; color: #bdb5dc; font: 800 13px var(--ui); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
  .ftabs button.on { background: linear-gradient(180deg, rgba(246,199,68,.26), rgba(246,199,68,.1)); color: #fff; box-shadow: inset 0 0 0 1px rgba(246,199,68,.5); }
  .flist { position: relative; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(246,199,68,.4) transparent; }
  .frow { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .2s; }
  .frow + .frow { margin-top: 3px; }
  .frow:hover { background: rgba(255,255,255,.05); }
  .frow .th { position: relative; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: #1a1240 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
  .frow .th .av2 { position: absolute; right: -3px; bottom: -3px; --s: 22px; box-shadow: 0 0 0 2px #140e32; }
  .frow .tx { min-width: 0; }
  .frow .tx b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .frow .tx small { display: block; font-size: 11.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .frow .tx .bn { display: inline-block; font: 900 9.5px var(--ui); letter-spacing: 1px; color: #1b1300; background: var(--gold); border-radius: 5px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; }
  .frow .rt { text-align: right; }
  .frow .rt .x { display: inline-block; font: 900 13px var(--ui); color: #fff; background: rgba(246,199,68,.16); border: 1px solid rgba(246,199,68,.45); border-radius: 8px; padding: 2px 8px; }
  .frow .rt small { display: block; margin-top: 3px; font-weight: 900; color: var(--gold2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
  .frow .acts { display: flex; gap: 6px; margin-top: 4px; justify-content: flex-end; }
  .frow .acts button { width: 30px; height: 28px; border-radius: 8px; border: 1px solid rgba(246,199,68,.4); background: rgba(255,255,255,.04); color: #ffe9a6; cursor: pointer; }
  .ticker .tw .fa-bolt { color: var(--gold2); }
  /* ссылка на рефералку в лобби */
  .refcta { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 18px 20px; border-radius: 20px; text-decoration: none; color: inherit; border: 1px solid rgba(246,199,68,.35);
    background: radial-gradient(ellipse at 0% 50%, rgba(246,199,68,.2), transparent 55%), linear-gradient(90deg, rgba(40,26,80,.7), rgba(16,10,40,.7)); transition: transform .2s, box-shadow .2s; }
  .refcta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(246,199,68,.15); }
  .refcta .ic { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #1b1300; background: linear-gradient(180deg, #ffe08a, #f6c744); }
  .refcta b { display: block; font-size: 16px; } .refcta small { color: var(--mute); font-size: 13px; }
  .refcta .go { margin-left: auto; color: var(--gold2); font-size: 18px; }
  .menu a { display: block; color: inherit; text-decoration: none; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; }
  .menu a:hover { background: rgba(255,255,255,.06); }
  .menu i { width: 18px; text-align: center; margin-right: 6px; color: var(--gold2); }
  @media (max-width: 900px) {
    .lbx { grid-template-columns: 1fr; }
    .flist { max-height: 480px; }
  }
  @media (max-width: 760px) {
    .hero.v2 .slide .bg img { object-position: center top; }
    .hero.v2 .slide .shade { background: linear-gradient(0deg, rgba(6,4,26,.97) 0%, rgba(6,4,26,.85) 38%, rgba(6,4,26,.25) 62%, rgba(6,4,26,.05) 100%); }
    .hero.v2 .txt { justify-content: flex-end; padding: 22px 18px 74px; }
    .hero.v2 .fb .card3 { right: 50%; top: 6%; height: 46%; transform: translateX(50%) rotate(4deg); }
    .hero.v2 .fb .card3.b { right: 62%; top: 9%; height: 38%; transform: translateX(50%) rotate(-7deg); }
    .hero.v2 .deco > i { right: 50%; top: 22%; transform: translate(50%, -50%) rotate(-8deg); font-size: 190px; }
    .hero.v2 .hpod { gap: 8px; margin-bottom: 14px; }
    .hero.v2 .hpod .p { padding: 6px 10px 6px 6px; }
    .hero.v2 .hpod .p b { max-width: 78px; font-size: 12.5px; }
    .hero.v2 .harr { display: none; }
    .lbcard { padding: 16px; border-radius: 20px; }
    .hero.v2 .feats i:nth-child(n+3) { display: none; }
    .pod2 .pz { white-space: nowrap; font-size: 10.5px; padding: 5px 7px; gap: 4px; }
    .pod2 .nm { font-size: 13px; }
    .ftabs button { font-size: 12px; gap: 6px; white-space: nowrap; }
    .ftabs button i { display: none; }
    .pod2 { gap: 6px; }
    .refcta { padding: 14px; gap: 12px; } .refcta .ic { width: 46px; height: 46px; }
  }
/* на обложке-картинке название уже нарисовано — подпись плитки не дублируем */
.tile:has(> img) .tcap { display: none; }
/* телефон: открытый поиск закрывает шапку — за строкой поиска ничего не видно */
@media (max-width: 600px) {
  .top .wrap:has(.search:focus-within) > :not(.search), .top .wrap:has(.search.has) > :not(.search) { visibility: hidden; }
}
/* телефон: hero компактнее */
@media (max-width: 760px) {
  .hero.v2 { height: 430px !important; border-radius: 22px; }
  .hero.v2 .txt { padding: 16px 16px 62px; }
  .hero.v2 .txt h1 { font-size: 30px !important; line-height: 1.02; margin: 6px 0 6px; }
  .hero.v2 .txt p { font-size: 12.5px; line-height: 1.45; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero.v2 .feats { margin-bottom: 10px; }
  .hero.v2 .row .btn { height: 42px; padding: 0 18px; font-size: 14px; }
  .hero.v2 .hpod { margin-bottom: 10px; }
  .hero.v2 .slide .shade { background: linear-gradient(0deg, rgba(6,4,26,.97) 0%, rgba(6,4,26,.86) 34%, rgba(6,4,26,.2) 60%, rgba(6,4,26,0) 100%); }
}
/* ===== v3: лидерборд и лента/история — аккуратнее, лента на всю высоту карточки ===== */
.lbx { align-items: stretch; }
.lbcard { display: flex; flex-direction: column; min-width: 0; }
#hist .flist { flex: 1 1 0; min-height: 360px; max-height: none; }
@media (max-width: 900px) { #hist .flist { flex: none; height: 520px; min-height: 0; } }
.lbhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lbhead h3 { margin: 0; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.lbhead h3 i { color: var(--gold2); }
/* пьедестал */
.pod2 { margin: 30px 0 18px; gap: 10px; }
.pod2 .c { display: flex; flex-direction: column; align-items: center; }
.pod2 .nm { max-width: 100%; }
.pod2 .pz { margin: 8px 0 0; }
.pod2 .step { width: 100%; margin-top: 12px; display: grid; place-items: center; border-radius: 16px 16px 6px 6px; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(220,220,240,.22), rgba(120,120,150,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.pod2 .step span { font: 900 26px Cinzel, serif; color: rgba(255,255,255,.75); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.pod2 .r1 .step { height: 92px; background: linear-gradient(180deg, rgba(246,199,68,.45), rgba(246,199,68,.08)); border-color: rgba(246,199,68,.6); box-shadow: inset 0 1px 0 rgba(255,240,190,.5), 0 0 30px rgba(246,199,68,.18); }
.pod2 .r1 .step span { font-size: 38px; color: #ffe9a6; }
.pod2 .r2 .step { height: 68px; }
.pod2 .r3 .step { height: 52px; background: linear-gradient(180deg, rgba(224,150,100,.3), rgba(224,150,100,.06)); border-color: rgba(224,150,100,.35); }
.lrow { grid-template-columns: 34px 36px minmax(0,1fr) auto; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); }
.lrow .rk { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #cfc8ea; font-size: 13px; }
/* строки ленты и истории */
.frow { grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; padding: 8px 10px 8px 8px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); }
.frow + .frow { margin-top: 6px; }
.frow:hover { background: rgba(255,255,255,.06); border-color: rgba(246,199,68,.25); }
.frow .th { width: 48px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 14px rgba(0,0,0,.35); }
.frow .tx b { display: flex; align-items: center; gap: 7px; }
.frow .tx b .av2 { --s: 22px; }
.frow .tx b .un { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .tx small { margin-top: 3px; }
.frow .tx small.ago { font-size: 11px; opacity: .8; }
.frow .tx small.ago i { margin-right: 4px; }
.frow .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.frow .rt small { margin: 0; font-size: 13px; }
.frow .acts { margin: 2px 0 0; }
.frow .acts button { width: 32px; height: 30px; transition: background .2s, border-color .2s; }
.frow .acts button:hover { background: rgba(246,199,68,.16); border-color: var(--gold); }
.frow .acts button.ok { color: #3fcf63; border-color: #3fcf63; }
@media (max-width: 760px) {
  .pod2 { margin-top: 26px; }
  .pod2 .r1 .step { height: 70px; } .pod2 .r2 .step { height: 52px; } .pod2 .r3 .step { height: 40px; }
  .pod2 .r1 .step span { font-size: 28px; } .pod2 .step span { font-size: 20px; }
  .lrow { grid-template-columns: 28px 32px minmax(0,1fr) auto; gap: 9px; padding: 8px; }
  .frow { grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; }
  .frow .th { width: 42px; height: 56px; }
}
/* hero: текст и кнопки слайда никогда не залезают под вкладки слайдов */
.hero.v2 .txt { padding-bottom: 104px; max-width: 640px; }
.hero.v2 .txt h1 { font-size: clamp(34px, 4.6vw, 62px); }
.hero.v2 .txt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero.v2 .row { flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .hero.v2 .txt { padding-bottom: 70px; }
  .hero.v2 .txt h1 { font-size: 28px !important; }
  .hero.v2 .feats i:nth-child(n+3) { display: none; }
  .hero.v2 .row { flex-wrap: nowrap; }
  .hero.v2 .row .btn { height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
}
/* карточки не прокручиваются вбок (свечение ::before шире карточки, а scrollIntoView сдвигал контент влево) */
.lbcard { overflow: hidden; overflow: clip; }
.lbcard::before { inset: -40% 0 auto; }
/* без кривого свечения: ровный фон карточек и тонкая золотая линия сверху */
.lbcard::before { display: none; }
.lbcard { background: linear-gradient(180deg, rgba(30,20,70,.88), rgba(14,10,36,.92)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(246,199,68,.28); }
/* онлайн сайта под логотипом в сайдбаре — только на телефоне/планшете (на ПК он в шапке) */
.snon { display: none; }
@media (max-width: 900px) {
  .snon { display: flex; align-items: center; gap: 8px; margin: 2px 16px 10px; padding: 8px 12px; border-radius: 12px; background: rgba(63,207,99,.1); border: 1px solid rgba(63,207,99,.35); font: 800 13px var(--ui); color: #d8ffe2; }
  .snon b { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
  .snon .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fcf63; box-shadow: 0 0 0 4px rgba(63,207,99,.2); animation: snpulse 1.6s infinite; }
  @keyframes snpulse { 50% { box-shadow: 0 0 0 7px rgba(63,207,99,0); } }
}
/* стрим YouTube вверху лобби */
.stream { margin: 18px 0 0; border-radius: 24px; padding: 14px; background: linear-gradient(180deg, rgba(40,10,20,.85), rgba(14,8,30,.9)); border: 1px solid rgba(255,60,60,.35); box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 40px rgba(255,40,40,.12); }
.sthead { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; }
.sthead b { font: 900 17px var(--ui); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sthead .live { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 5px 11px; border-radius: 9px; background: #e0182e; color: #fff; font: 900 12px var(--ui); letter-spacing: 1px; }
.sthead .live .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: stlive 1.2s infinite; }
@keyframes stlive { 50% { opacity: .25; } }
.stbtn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; font: 800 14px var(--ui); }
.stbtn i { color: #ff3a3a; font-size: 18px; }
.stbtn:hover { background: rgba(255,60,60,.18); border-color: rgba(255,80,80,.6); }
.stframe { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; max-height: 72vh; border-radius: 16px; overflow: hidden; background: #000; }
.stframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) {
  .stream { padding: 10px; border-radius: 18px; margin-top: 12px; }
  .sthead { gap: 8px; margin-bottom: 10px; }
  .sthead b { font-size: 14px; }
  .stbtn { height: 34px; padding: 0 11px; font-size: 13px; }
  .stframe { border-radius: 12px; }
}
@media (max-width: 480px) { .sthead b { display: none; } }
/* провайдеры */
.provrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 4px 0 22px; }
.provc { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); cursor: pointer; text-align: left; color: #fff; font-family: var(--ui); transition: transform .2s, border-color .2s; }
.provc:hover { transform: translateY(-2px); }
.provc img { width: 120px; height: 56px; object-fit: contain; flex: none; }
.provc span { flex: 1; min-width: 0; }
.provc b { display: block; font-size: 18px; font-weight: 900; }
.provc small { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 3px; }
.provc em { flex: none; font-style: normal; font-weight: 900; font-size: 13px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.1); white-space: nowrap; }
.provc.pv-majestic { background: radial-gradient(ellipse at 20% 50%, rgba(246,199,68,.22), transparent 60%), linear-gradient(135deg, #24123e, #0e0820); border-color: rgba(246,199,68,.45); }
.provc.pv-majestic em { color: #ffe08a; }
.provc.pv-electric { background: radial-gradient(ellipse at 20% 50%, rgba(54,224,255,.35), transparent 60%), linear-gradient(135deg, #2a6cff, #6a1aff); border-color: rgba(120,240,255,.6); }
@media (max-width: 600px) { .provc { padding: 12px 14px; gap: 12px; } .provc img { width: 86px; height: 42px; } .provc small { display: none; } }
/* Electric Play — тёмная карточка с неоновой бирюзой и лаймом (вписывается в тёмное лобби) */
.provc.pv-electric { background: radial-gradient(ellipse at 15% 50%, rgba(54,224,255,.28), transparent 55%), radial-gradient(ellipse at 95% 100%, rgba(170,255,60,.16), transparent 50%), linear-gradient(135deg, #071a2e, #0a0f24 60%, #120a2a); border-color: rgba(54,224,255,.55); box-shadow: 0 0 0 1px rgba(54,224,255,.15) inset, 0 0 24px rgba(54,224,255,.12); }
.provc.pv-electric em { color: #c8ff3a; background: rgba(200,255,58,.1); border: 1px solid rgba(200,255,58,.35); }
.provc.pv-electric small { color: rgba(200,240,255,.75); }
/* табло джекпота MGT */
.provc.pv-mgt { background: radial-gradient(ellipse at 15% 50%, rgba(255,110,40,.3), transparent 55%), linear-gradient(135deg, #3a0610, #160306); border-color: rgba(255,170,70,.55); }
.provc.pv-mgt em { color: #ffcf6a; }
.provc.pv-imperial { background: radial-gradient(ellipse at 15% 50%, rgba(230,230,240,.18), transparent 55%), linear-gradient(135deg, #1c1c22, #070708 60%, #2a0408); border-color: rgba(220,220,230,.45); }
.provc.pv-imperial em { color: #ff4a5a; }
.provc.pv-lotus { background: radial-gradient(ellipse at 15% 50%, rgba(255,80,220,.25), transparent 55%), radial-gradient(ellipse at 95% 100%, rgba(60,240,255,.2), transparent 50%), linear-gradient(135deg, #1a0838, #070a24); border-color: rgba(220,110,255,.55); }
.provc.pv-lotus em { color: #6ef4ff; }
/* ряд провайдеров v2: компактные вертикальные карточки в одну строку, на телефоне — лента со свайпом */
.provrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; margin: 4px 0 22px; }
.provrow::-webkit-scrollbar { display: none; }
.provc { scroll-snap-align: start; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 10px; padding: 16px 12px 14px; min-height: 0; }
.provc .pl { width: 100%; height: 74px; display: grid; place-items: center; border-radius: 14px; background: rgba(0,0,0,.28); }
.provc .pl img { width: auto; max-width: 88%; height: 60px; object-fit: contain; }
.provc > b { font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.provc em { margin-top: auto; }
.provc span:not(.pl), .provc small { display: none; }
@media (max-width: 900px) { .provrow { grid-auto-columns: 46%; } }
@media (max-width: 600px) { .provrow { grid-auto-columns: 62%; } .provc .pl { height: 60px; } .provc .pl img { height: 48px; } }
.provc > b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.4em; }

/* джекпот MGT в лобби: без фона-рамки — только 4 плашки уровней и крупная кнопка «Играть» в одну строку */
.jpbar { position: relative; margin: 18px 0 0; }
.jprow { display: flex; align-items: center; gap: 14px; }
.jpl { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.jpc { position: relative; min-width: 0; aspect-ratio: 4 / 1; container-type: inline-size; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
.jpc img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.jpc b { position: absolute; left: 27.5%; right: 5%; top: 50%; transform: translateY(-50%); display: block; text-align: center; white-space: nowrap; overflow: hidden;
  font: 700 11.5cqw/1 Oswald, var(--ui); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #f4dfa6; text-shadow: 0 0 .4em rgba(232,180,80,.28), 0 1px 1px rgba(0,0,0,.9); }
.jpgo { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 30px; border-radius: 16px; border: 1px solid #ffe3a0; cursor: pointer;
  font: 900 17px var(--ui); letter-spacing: 1.5px; color: #2a1200; white-space: nowrap;
  background: linear-gradient(180deg, #fff0bf, #f2c35a 50%, #c48a26); box-shadow: 0 4px 0 #6a420e, 0 10px 26px rgba(246,199,68,.28), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .15s, box-shadow .15s; animation: jpglow 2.6s ease-in-out infinite; }
.jpgo i { font-size: 14px; }
.jpgo:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #6a420e, 0 14px 32px rgba(246,199,68,.4), inset 0 1px 0 rgba(255,255,255,.6); }
.jpgo:active { transform: translateY(2px); box-shadow: 0 2px 0 #6a420e, 0 6px 16px rgba(246,199,68,.25); }
@keyframes jpglow { 50% { box-shadow: 0 4px 0 #6a420e, 0 10px 34px rgba(246,199,68,.42), inset 0 1px 0 rgba(255,255,255,.6); } }
@media (prefers-reduced-motion: reduce) { .jpgo { animation: none; } }
@media (max-width: 1100px) { .jpl { gap: 8px; } .jpgo { height: 50px; padding: 0 22px; font-size: 15px; } }
/* телефон: плашки 2×2, кнопка на всю ширину под ними */
@media (max-width: 700px) {
  .jprow { flex-direction: column; align-items: stretch; gap: 10px; }
  .jpl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .jpgo { width: 100%; height: 48px; font-size: 15px; }
}

/* провайдеры: широкие баннеры из пака владельца (картинка с логотипом), счётчик игр поверх справа */
.provrow { grid-auto-columns: minmax(360px, 1fr); }
.provc.pvimg { position: relative; display: block; padding: 0; min-height: 0; aspect-ratio: 1200 / 330; overflow: hidden; border-radius: 18px; background: #0b0618; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.provc.pvimg .pvbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.provc.pvimg:hover .pvbg { transform: scale(1.04); }
.provc.pvimg em { position: absolute; right: 3.5%; bottom: 12%; margin: 0; z-index: 1; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@media (max-width: 900px) { .provrow { grid-auto-columns: 78%; } }
@media (max-width: 600px) { .provrow { grid-auto-columns: 88%; } .provc.pvimg { border-radius: 14px; } .provc.pvimg em { font-size: 11.5px; padding: 5px 9px; bottom: 10%; } }

/* полоса под hero: компактно в одну строку — рекорд дня (мини-обложка + повтор) | игры | игроки | онлайн */
.hstats.hs3 { display: flex; align-items: stretch; margin: 14px 0 4px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.hs3 > * + * { border-left: 1px solid rgba(255,255,255,.08); }
.hsrec { flex: 1.9; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 8px; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, rgba(246,199,68,.13), rgba(246,199,68,0) 85%); transition: background .15s; }
.hsrec:hover { background: linear-gradient(90deg, rgba(246,199,68,.22), rgba(246,199,68,.02) 90%); }
.hrc { flex: none; width: 34px; height: 45px; border-radius: 7px; background: #120c2a center / cover no-repeat; box-shadow: 0 3px 8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.14); }
.hrb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.hrb small { font: 800 9.5px var(--ui); letter-spacing: 1.6px; color: #ffd98a; white-space: nowrap; }
.hrl { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.hrx { font: 700 18px/1 Oswald, var(--ui); color: #fff3c4; text-shadow: 0 0 10px rgba(246,199,68,.3); font-variant-numeric: tabular-nums; }
.hrav { flex: none; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2a1f55; font: 900 9px var(--ui); color: #ffd98a; }
.hrav img { width: 100%; height: 100%; object-fit: cover; }
.hrn { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 800; font-size: 12.5px; }
.hrb em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrgo { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #2a1200;
  background: linear-gradient(180deg, #fff0bf, #f2c35a 55%, #c48a26); box-shadow: 0 2px 0 #6a420e, 0 4px 12px rgba(246,199,68,.25); }
.hrgo i { margin-left: 2px; }
.hsc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: #d9d4ee; white-space: nowrap; }
.hsc > i { flex: none; font-size: 16px; color: var(--gold); width: 18px; text-align: center; }
.hsc > span { min-width: 0; line-height: 1.15; }
.hsc b { font: 700 18px/1 Oswald, var(--ui); color: #fff; font-variant-numeric: tabular-nums; margin-right: 2px; }
.hsc small { display: block; font-size: 10.5px; font-weight: 700; color: var(--mute); overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.hsc.live .dot { flex: none; width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; background: #4fe39a; animation: hslive 1.8s infinite; }
@keyframes hslive { 0% { box-shadow: 0 0 0 0 rgba(79,227,154,.55); } 70% { box-shadow: 0 0 0 8px rgba(79,227,154,0); } 100% { box-shadow: 0 0 0 0 rgba(79,227,154,0); } }
@media (max-width: 1100px) { .hstats.hs3 { flex-wrap: wrap; } .hsrec { flex-basis: 100%; } .hs3 > .hsc { border-top: 1px solid rgba(255,255,255,.08); } .hs3 > .hsc:nth-child(2) { border-left: 0; } }
@media (max-width: 700px) {
  .hsc { padding: 7px 8px; gap: 6px; font-size: 11px; } .hsc b { font-size: 15px; } .hsc > i { font-size: 13px; width: 14px; } .hsc small { font-size: 9.5px; }
  /* телефон: число сверху, подпись под ним — ничего не обрезается */
  .hsc { justify-content: center; text-align: center; padding: 8px 4px; } .hsc > i, .hsc.live > .dot { display: none; } .hsc.live b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 6px 0 0; border-radius: 50%; background: #4fe39a; vertical-align: middle; position: relative; top: -2px; animation: hslive 1.8s infinite; } .hsc b { display: block; margin: 0 0 3px; font-size: 17px; }
}
  /* ежедневные бонусы: тонкий баннер #bonus в лобби (рисует wm.js, только когда есть что забрать) → /games/profile/#bonus */
  .wm-dbsec { margin: 16px 0 4px; }
  /* карточки «бесплатные монеты / лидерборд / купить» в лобби убраны: монеты и WCoin — на странице профиля */
  .grid3 { display: none !important; }
  .sclaim button:disabled { opacity: 1; cursor: pointer; }

/* ================= аудит сайта 28.11 — правки оболочки (лобби / профиль / игра в окне) ================= */
/* S-07: безопасные зоны со всех сторон (viewport-fit=cover: вырез iPhone в альбомной ориентации) */
.top { padding-top: env(safe-area-inset-top); }
.top .wrap, .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.sidenav { padding-left: max(14px, env(safe-area-inset-left)); }
.bnav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* S-04: место под блоки, которые приходят с сервера, держится сразу (без прыжков страницы) */
.ticker { display: block !important; }
.ticker:not(:has(.lane > *)) { background: linear-gradient(90deg, rgba(246,199,68,.04), rgba(110,60,210,.05), rgba(246,199,68,.04)); background-size: 200% 100%; animation: wmsk 1.6s linear infinite; }
@keyframes wmsk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
#jpBar { display: block !important; }
.jpc b:empty::before, .jpc b { min-width: 3ch; }
.hero.v2:empty { background: linear-gradient(110deg, #0d0a26 30%, #171238 50%, #0d0a26 70%); background-size: 220% 100%; animation: wmsk 1.6s linear infinite; }
/* L-10: поиск — плитки не пустые, пока грузятся обложки */
.tile { background: linear-gradient(110deg, #120d2e 30%, #1c1546 50%, #120d2e 70%); background-size: 220% 100%; }

/* S-04: порядок блоков лобби — hero сразу под джекпотами; блоки, приходящие позже (розыгрыш, лента BF), — под hero, чтобы не сдвигать его */
body:not(.pp) .mainc > .wrap { display: flex; flex-direction: column; }
body:not(.pp) .mainc > .wrap > * { order: 30; flex: none; }
body:not(.pp) .mainc > .wrap > #linkBox { order: 5; } /* баннер «привяжите ID» — под hero, не сдвигает его */
body:not(.pp) .mainc > .wrap > #stream { order: 2; }
body:not(.pp) .mainc > .wrap > #jpBar { order: 3; }
body:not(.pp) .mainc > .wrap > #hero { order: 4; }
body:not(.pp) .mainc > .wrap > #bfRib { order: 5; }
body:not(.pp) .mainc > .wrap > #gwBox { order: 6; }
body:not(.pp) .mainc > .wrap > .hstats { order: 7; }
#bfRib { margin: 12px 0 0 !important; }
@media (min-width: 761px) { .hstats { min-height: 62px; } }
/* S-09: вкладки hero — иконки одинаковой ширины (название — в подсказке и на самом слайде), без обрезанных «Olympu…»;
   ряд прижат вправо: вставка вкладки BF слева не сдвигает остальные (CLS) */
.htabs.v2 { left: auto; right: 44px; justify-content: flex-end; }
.htabs.v2 .htab { flex: 0 0 48px; width: 48px; padding: 0; justify-content: center; }
.htabs.v2 .htab .nm { display: none; }
.htabs.v2 .htab .ic { font-size: 17px; }
.htabs.v2 .htab.on { border-color: rgba(246,199,68,.75); background: rgba(246,199,68,.14); }

/* S-12: значок NEW/HOT больше не закрывает надпись провайдера на обложке (слева сверху) */
.tile .tb { top: auto; bottom: 10px; left: 10px; }
.tile:has(> img) .tb { top: 9px; bottom: auto; left: auto; right: 46px; }

/* S-10: боковое меню — группа «Մեխանիկաներ» свёрнута, пункты компактнее на невысоких экранах */
.snav .sgrp { cursor: pointer; text-align: left; }
.snav .sgrp:hover { background: rgba(255,255,255,.05); }
.snav .sgrp .car { margin-left: auto; font-size: 11px; opacity: .7; transition: transform .25s; }
.snav .sgrp.open .car { transform: rotate(180deg); }
.snav .sgi { display: none; }
.snav .sgi.open { display: contents; }
.snav .sgi.open > button { padding-left: 26px; }
body.snc .snav .sgrp { display: none; }
body.snc .snav .sgi { display: contents; }
.snav .lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1101px) and (max-height: 860px) {
  .sidenav { padding-top: 12px; }
  .snav button, .snav a, .snav .sgrp { height: 36px; }
  .snav .sh { padding-top: 10px; padding-bottom: 4px; }
  .snon { margin-bottom: 4px; }
  .sclaim { padding: 10px; }
  .sclaim .v { font-size: 20px; }
}

/* S-17: цели нажатия ≥ 40–44px */
.gd-rp { min-height: 40px; padding: 0 10px; margin-left: -10px; border-radius: 10px; }
.gd-ft .gd-rp { margin: 0; }
.hsrec { min-height: 44px; }
.ticker { height: 44px; }
.ticker .lane { height: 44px; }
.ticker .lane > * { min-height: 44px; display: inline-flex; align-items: center; }
a:empty:not([class]), .gd a:empty:not(.gd-cv) { display: none; }

/* L-06: сумма и значок VIP не разрываются */
.gd-ft .yw { flex-wrap: wrap; }
.gd-ft .yw b, .gd-ft .yw .gd-x, .wmvn { white-space: nowrap; }

/* L-08: заголовки разделов не уходят под липкую ленту категорий */
.sec, #lb, #hist, #bfTop, #gotd, #bonus, #gridHead, .lbx, .lbcard { scroll-margin-top: 150px; }

/* L-11: 1920 — контент шире, без пустых полей по 230px */
@media (min-width: 1700px) { body:not(.pp) .mainc > .wrap { max-width: 1520px; } }

/* L-12: лента больших выигрышей — плавное затухание внизу, а не обрез посередине строки */
.flist { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); padding-bottom: 30px; }

/* L-02: заголовок «Անվճար մետաղադրամներ» не уходит под картинку подарка (1280–1440) */
@media (min-width: 761px) {
  .hero.v2 .txt h1 { overflow-wrap: anywhere; }
  .hero.v2 .slide[data-k="wm2"] .txt h1, .hero.v2 .slide[data-k="leaderboard"] .txt h1 { font-size: clamp(28px, 2.9vw, 46px); }
  .hero.v2 .slide .shade { background: linear-gradient(90deg, rgba(6,4,26,.95) 0%, rgba(6,4,26,.8) 38%, rgba(6,4,26,.18) 66%, rgba(6,4,26,0) 100%), linear-gradient(0deg, rgba(6,4,26,.7), rgba(6,4,26,0) 30%); }
}

/* L-14: подвал — поддержка, ответственная игра 21+, провайдеры, соцсети, © */
.wmft { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; text-align: left; margin: 0 auto 22px; max-width: 1100px; padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(30,20,70,.5), rgba(10,8,28,.6)); }
.wmft h4 { margin: 0 0 10px; font: 900 12px var(--ui); letter-spacing: 2px; color: #ffe9a6; text-transform: uppercase; }
.wmft a { color: #d9d3ee; text-decoration: none; display: flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 700; font-size: 13.5px; }
.wmft a:hover { color: #fff; }
.wmft a i { width: 18px; text-align: center; color: var(--gold2); }
.wmft .rg { display: flex; gap: 12px; align-items: flex-start; color: #cfc8ea; font-size: 12.5px; line-height: 1.55; }
.wmft .rg .a21 { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--ui); color: #fff; border: 2px solid #ff5a5a; background: rgba(255,90,90,.1); }
.wmft .pv { display: flex; flex-wrap: wrap; gap: 8px; }
.wmft .pv img { height: 30px; width: auto; max-width: 110px; object-fit: contain; padding: 4px 8px; border-radius: 9px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.wmft .so { display: flex; gap: 8px; margin-top: 8px; }
.wmft .so a { width: 40px; height: 40px; min-height: 0; justify-content: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.wmft .so a i { width: auto; color: #fff; font-size: 17px; }
footer .cpy { margin-top: 12px; font-size: 12px; color: #8a84ad; }
@media (max-width: 760px) { .wmft { grid-template-columns: 1fr; gap: 18px; padding: 18px; } }

/* L-15: логотипы провайдеров — одинаковая подложка и размер */
.provrow .pv img, .provrow img { object-fit: contain; }

/* ================= телефон (портрет): S-05 первый экран с играми, L-03 кадрирование hero, L-04, L-16 ================= */
@media (max-width: 760px) {
  .ticker, .ticker .lane { height: 34px; }
  .ticker .lane > * { min-height: 34px; }
  /* порядок блоков: джекпоты → hero → категории → ряды игр; турниры, игра дня, розыгрыш — ниже */
  body:not(.pp) .mainc > .wrap { display: flex; flex-direction: column; }
  body:not(.pp) .mainc > .wrap > * { order: 30; }
  body:not(.pp) .mainc > .wrap > #linkBox { order: 11; }
  body:not(.pp) .mainc > .wrap > #stream { order: 2; }
  body:not(.pp) .mainc > .wrap > #jpBar { order: 3; }
  body:not(.pp) .mainc > .wrap > #hero { order: 4; }
  body:not(.pp) .mainc > .wrap > #catbar { order: 5; }
  body:not(.pp) .mainc > .wrap > #lobbyView { order: 6; }
  body:not(.pp) .mainc > .wrap > #gridHead { order: 7; }
  body:not(.pp) .mainc > .wrap > #grid { order: 8; }
  body:not(.pp) .mainc > .wrap > #gridEmpty { order: 9; }
  body:not(.pp) .mainc > .wrap > .wmmore { order: 10; }
  body:not(.pp) .mainc > .wrap > #bfTop { order: 11; }
  body:not(.pp) .mainc > .wrap > #gotd { order: 12; }
  body:not(.pp) .mainc > .wrap > #gwBox { order: 13; }
  body:not(.pp) .mainc > .wrap > #bonus { order: 14; }
  body:not(.pp) .mainc > .wrap > .hstats { order: 15; }
  #lobbyView { display: flex; flex-direction: column; }
  #lobbyView > * { order: 10; }
  #lobbyView > [data-rail="provRow"], #lobbyView > #provRow { order: 20; }
  body:not(.pp) .mainc > .wrap > #bfRib { display: none !important; } /* BF уже первым слайдом hero — лента дублировала его */
  #linkBox:empty { display: none; }
  #linkBox { margin-top: 14px !important; }
  #linkBox .wm-link { padding: 10px 12px; }
  #linkBox .wm-link span { display: none; }
  /* джекпоты — одна строка из 4 плашек */
  .jpbar { margin-top: 10px; }
  .jprow { flex-direction: row !important; align-items: center; gap: 6px !important; }
  .jpl { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 5px !important; flex: 1; min-width: 0; }
  .jpc { aspect-ratio: 4 / 1.25; }
  .jpc b { font-size: 15.5cqi !important; left: 29% !important; right: 2% !important; letter-spacing: -.2px; }
  .jpgo { display: none !important; }
  .jpl { cursor: pointer; }
  /* hero: высота по экрану, картинка — справа целиком (портрет 4:5), текст — слева; вкладки — точки */
  .hero.v2 { height: clamp(208px, calc(100svh - 430px), 380px) !important; margin-top: 10px; border-radius: 20px; }
  .hero.v2 .slide .bg { left: auto; width: 54%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
  .hero.v2 .slide .bg img { object-position: center 40%; transform: none !important; }
  .hero.v2 .slide .shade { background: linear-gradient(90deg, rgba(6,4,26,.96) 0%, rgba(6,4,26,.85) 42%, rgba(6,4,26,.1) 72%, rgba(6,4,26,0) 100%) !important; }
  .hero.v2 .txt { max-width: 60% !important; padding: 14px 0 30px 16px !important; justify-content: center !important; }
  .hero.v2 .txt h1 { font-size: clamp(20px, 6vw, 28px) !important; margin: 6px 0 8px !important; text-shadow: 0 2px 10px rgba(0,0,0,.85); }
  .hero.v2 .slide[data-k="wm2"] .txt h1, .hero.v2 .slide[data-k="wm1"] .txt h1 { font-size: clamp(17px, 4.9vw, 22px) !important; }
  .hero.v2 .txt p, .hero.v2 .feats, .hero.v2 .hpod, .hero.v2 .hcdl { display: none !important; }
  .hero.v2 .tag { font-size: 10px; padding: 3px 8px; }
  .hero.v2 .row { flex-wrap: nowrap; }
  .hero.v2 .row .btn { height: 40px !important; padding: 0 14px !important; font-size: 13px !important; white-space: nowrap; }
  .hero.v2 .row .btn ~ .btn { display: none; }
  .hero.v2 .fb .card3 { right: 7%; left: auto; top: 50%; height: 76%; transform: translateY(-50%) rotate(4deg) !important; }
  .hero.v2 .fb .card3.b { display: none; }
  .hero.v2 .deco > i { right: 8%; left: auto; top: 50%; transform: translateY(-50%) rotate(-8deg) !important; font-size: 120px; }
  .hero.v2 .slide.promo.bf:after { right: 12px !important; top: 50% !important; transform: translateY(-50%) !important; width: 38% !important; }
  .htabs.v2 { left: 16px !important; right: auto !important; transform: none !important; bottom: 10px !important; gap: 5px !important; max-width: none; }
  .htabs.v2 .htab, .htabs.v2 .htab.on { flex: 0 0 auto !important; width: 8px !important; height: 8px !important; min-width: 0; padding: 0 !important; border-radius: 4px; border: 0; background: rgba(255,255,255,.3); }
  .htabs.v2 .htab.on { width: 22px !important; background: rgba(255,255,255,.22); }
  .htabs.v2 .htab .ic, .htabs.v2 .htab .nm { display: none !important; }
  .htabs.v2 .htab::after { content: ""; position: absolute; inset: -14px -4px; } /* зона нажатия */
  .htabs.v2 .htab .pr { top: 0; height: 100%; border-radius: 4px; }
  .catbar { margin-top: 10px; }
  .rowh:first-child { margin-top: 12px; }
  /* L-04: чипы статистики не вылезают за карточку */
  .hstats { flex-wrap: wrap; }
  .hstats .hsc, .hstats .hsrec { min-width: 0; max-width: 100%; }
  /* L-16: на телефоне сетка «Все игры» — сначала 18 плиток */
  .tiles.lim > .tile:nth-child(n+19) { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) { .hero.v2 .tag { display: none; } }
.wmmore { display: none; margin: 14px auto 0; height: 46px; padding: 0 26px; border-radius: 14px; border: 1px solid rgba(246,199,68,.5); background: rgba(246,199,68,.08); color: #ffe9a6; font: 800 14px var(--ui); cursor: pointer; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 760px) { .tiles.lim ~ .wmmore { display: flex; } }
.wmmore[style*="none"] { display: none !important; }

/* ================= S-06: телефон в альбомной ориентации — без бегущей строки, шапка 48px, тонкое нижнее меню ================= */
@media (orientation: landscape) and (max-height: 500px) {
  .ticker { display: none !important; }
  .top .wrap { height: 48px !important; }
  .catbar { top: calc(48px + env(safe-area-inset-top)) !important; }
  .bnav { height: calc(46px + env(safe-area-inset-bottom)) !important; }
  .bnav button { flex-direction: row !important; gap: 6px !important; font-size: 11px !important; }
  .bnav button > i { font-size: 16px !important; height: auto !important; }
  .bnav .mid span { width: 34px !important; height: 34px !important; margin-top: 0 !important; font-size: 16px !important; box-shadow: none !important; }
  .bnav .mid span i { font-size: 15px !important; }
  body { padding-bottom: calc(48px + env(safe-area-inset-bottom)) !important; }
  body:not(.pp) .mainc > .wrap { display: flex; flex-direction: column; }
  body:not(.pp) .mainc > .wrap > * { order: 30; }
  body:not(.pp) .mainc > .wrap > #jpBar { order: 3; } body:not(.pp) .mainc > .wrap > #hero { order: 4; } body:not(.pp) .mainc > .wrap > #catbar { order: 5; } body:not(.pp) .mainc > .wrap > #lobbyView { order: 6; }
  body:not(.pp) .mainc > .wrap > #gridHead { order: 7; } body:not(.pp) .mainc > .wrap > #grid { order: 8; } body:not(.pp) .mainc > .wrap > #gridEmpty { order: 9; } body:not(.pp) .mainc > .wrap > .wmmore { order: 10; }
  body:not(.pp) .mainc > .wrap > #bfRib { display: none !important; }
  .jpbar { margin-top: 8px; }
  .jprow { flex-direction: row !important; gap: 8px !important; }
  .jpl { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; flex: 1; }
  .jpc { aspect-ratio: 4 / 1; max-height: 40px; }
  .jpc b { font-size: 14px !important; }
  .jpgo { height: 38px !important; padding: 0 16px !important; font-size: 13px !important; width: auto !important; }
  .hero.v2 { height: calc(100svh - 48px - 46px - 70px) !important; min-height: 190px; max-height: 320px; margin-top: 8px; }
  .hero.v2 .txt { padding: 12px 18px 30px !important; max-width: 56% !important; justify-content: center !important; }
  .hero.v2 .txt h1 { font-size: 26px !important; margin: 4px 0 8px !important; }
  .hero.v2 .txt p, .hero.v2 .feats, .hero.v2 .hpod { display: none !important; }
  .hero.v2 .slide .bg img { object-position: right center !important; }
  .hero.v2 .slide .shade { background: linear-gradient(90deg, rgba(6,4,26,.95) 0%, rgba(6,4,26,.7) 45%, rgba(6,4,26,0) 80%) !important; }
  .htabs.v2 { bottom: 8px !important; }
  .catbar { margin-top: 8px; padding-top: 6px; padding-bottom: 8px; }
}
/* S-04: боковое меню дорисовывается скриптом — место под пункты держится сразу */
#snavCats:empty { display: block !important; min-height: 420px; }
#snavMine:empty { display: block !important; min-height: 84px; }
body.snc #snavCats:empty { min-height: 460px; }
@media (min-width: 1101px) and (max-height: 860px) { #snavCats:empty { min-height: 360px; } #snavMine:empty { min-height: 72px; } }
.pill.on b { display: inline-block; min-width: 2.2ch; text-align: center; }
@media (orientation: landscape) and (max-height: 500px) and (min-width: 761px) { .htabs.v2 .htab { height: 32px !important; flex-basis: 34px !important; width: 34px !important; } }
/* L-07: «Օրվա խաղ» на ПК — крупнее обложка и название, без пустот */
@media (min-width: 761px) {
  .gd { padding: 18px 20px; }
  .gd-row { gap: 22px; align-items: stretch; }
  .gd-cv { width: 118px !important; height: 158px !important; border-radius: 14px; flex: none; }
  .gd-main { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
  .gd-nm { font-size: 26px !important; }
  .gd-ch { gap: 8px !important; }
  .gd-ch span { height: 34px !important; font-size: 13.5px !important; padding: 0 12px !important; }
  .gd-side { justify-content: center; }
}
/* S-17: маленькие ссылки «կրկնություն», дорожки hero и т. п. — зона нажатия ≥ 44px без сдвига вёрстки */
.bf-ls a[href*="?r="], .gd-rp, .gd-nm, footer .lg a, .frow .acts button, .lbnote a { position: relative; }
.bf-ls a[href*="?r="]::after, .gd-rp::after, footer .lg a::after { content: ""; position: absolute; left: -10px; right: -10px; top: 50%; height: 44px; transform: translateY(-50%); }
.bf-ls a[href*="?r="] { display: inline-flex; align-items: center; min-width: 24px; justify-content: center; }

  /* ================================================================== /games/play/ — игра в окне страницы (ПК) */
  body.pp { min-height: 100vh; }
  .pp .wrap { max-width: none; padding: 0 22px; }
  /* онлайн показывается и здесь: на странице игры число берётся из /games/api/online (без отметки присутствия — игра сама считается) */
  /* полосы прокрутки — тонкая золотая «капсула», как в окне розыгрыша (все страницы оболочки: игра в окне, профиль, рефералы) */
  html, .pp * { scrollbar-width: thin; scrollbar-color: rgba(246,199,68,.55) transparent; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
  ::-webkit-scrollbar-thumb { border-radius: 10px; border: 3px solid transparent; background: linear-gradient(180deg, #ffe7a0, #f6c744 55%, #c48a26) padding-box; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
  ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #fff3c4, #ffd768 55%, #e0a63a) padding-box; }
  ::-webkit-scrollbar-corner { background: transparent; }
  /* S-01 (аудит 28.11): окно игры ≥85% экрана — боковое меню выезжает по бургеру, строка игры слита с шапкой (56px), окно — до низа экрана */
  body.gp .layout { grid-template-columns: minmax(0, 1fr); }
  body.gp .sidenav { position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; width: 280px; height: 100%; transform: translateX(-105%); transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  body.gp.snopen .sidenav { transform: none; }
  body.gp .snback { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.gp.snopen .snback { opacity: 1; pointer-events: auto; }
  body.gp .sntog { display: none; }
  body.gp .mmenu { display: grid; place-items: center; width: 44px; height: 44px; }
  body.gp .brand-m { display: flex; }
  body.gp .brand-m .brand > span:not(.crest) { display: none; }
  body.gp .top .wrap { max-width: none; height: 56px; gap: 10px; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
  body.gp .top .search { flex: 0 1 240px; min-width: 120px; }
  body.gp .top .search input { height: 40px; }
  body.gp .top .pill.on { display: none; }
  body.gp .top .bal { height: 40px; }
  body.gp .top .nm { min-width: 0; flex: 0 1 auto; display: flex; align-items: center; gap: 10px; margin: 0 4px; }
  body.gp .top .nm .pl { width: 32px; height: 32px; border-radius: 8px; flex: none; object-fit: contain; background: rgba(0,0,0,.35); padding: 3px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.08); }
  body.gp .top .nmt { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
  body.gp .top .nm b { font: 900 15px "Cinzel", "Noto Sans Armenian", serif; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.gp .top .nm small { font-size: 11px; font-weight: 800; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.gp .pacts { display: flex; gap: 8px; flex: none; }
  body.gp .top .pbtn { height: 44px; }
  @media (max-width: 1280px) { body.gp .top .nm small { display: none; } body.gp .top .search { flex-basis: 180px; } }
  @media (max-width: 1100px) { body.gp .top .search { flex: none; width: 44px; min-width: 44px; } body.gp .top .search input { width: 44px; padding: 0; color: transparent; cursor: pointer; caret-color: transparent; }
    body.gp .top .search input::placeholder { color: transparent; } body.gp .top .search svg { left: 50%; transform: translate(-50%, -50%); } body.gp .top .search .kbd { display: none; }
    body.gp .top .search:focus-within { position: absolute; left: 12px; right: 12px; width: auto; z-index: 5; } body.gp .top .search:focus-within input { width: 100%; padding-left: 40px; color: #fff; cursor: text; caret-color: auto; } body.gp .top .search:focus-within svg { left: 14px; transform: translateY(-50%); }
    body.gp .top .pbtn.back2 span { display: none; } body.gp .top .pbtn.back2 { padding: 0; width: 44px; } }
  body.gp { padding-bottom: 0; }
  body.gp .bnav { display: none; }
  .gp .ppw { padding: 10px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
  .pbtn { height: 44px; min-width: 44px; padding: 0 16px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #ece8f8; font: 800 14px var(--ui); transition: border-color .2s, background .2s, color .2s; text-decoration: none; }
  .pbtn.sq { padding: 0; width: 44px; }
  .pbtn:hover { border-color: rgba(246,199,68,.5); background: rgba(246,199,68,.07); }
  .pbtn i { font-size: 16px; }
  .pbtn.back2 i { font-size: 13px; color: var(--gold); }
  .pbtn.fav2.on { color: #1b1300; background: linear-gradient(180deg, #fff0b8, #f6c744 45%, #c48a26); border-color: transparent; }
  .qres { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; display: none; padding: 6px; border-radius: 14px; background: #120d2e; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.55); max-height: 70vh; overflow: auto; }
  .qres.show { display: block; }
  .qres a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; color: #fff; text-decoration: none; }
  .qres a:hover, .qres a:first-child { background: rgba(255,255,255,.06); }
  .qres img { width: 36px; height: 48px; border-radius: 7px; object-fit: cover; flex: none; background: #1c1440; }
  .qres b { display: block; font-size: 14px; }
  .qres small { display: block; font-size: 11.5px; color: var(--mute); font-weight: 700; }
  .qres .qno { padding: 12px; color: var(--mute); font-weight: 700; font-size: 13px; }
  .frame { position: relative; border-radius: 18px; overflow: hidden; background: #05030f; border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(246,199,68,.08), 0 0 60px rgba(122,60,240,.12); }
  .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #05030f; opacity: 0; transition: opacity .35s; }
  .frame iframe.ready { opacity: 1; }
  .fload { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--mute); font-weight: 800; font-size: 13px; pointer-events: none; transition: opacity .3s; }
  .fload .cv { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.35) saturate(1.2); transform: scale(1.15); }
  .fload .sp2 { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--gold); animation: wmrot .9s linear infinite; }
  .fload span { position: relative; }
  .frame.ok .fload { opacity: 0; }
  @keyframes wmrot { to { transform: rotate(360deg); } }
  .frame:fullscreen { border-radius: 0; border: 0; width: 100vw !important; height: 100vh !important; }
  .frame:-webkit-full-screen { border-radius: 0; border: 0; width: 100vw !important; height: 100vh !important; }
  /* полный экран: тонкая панель сверху (лого по центру, «выйти» справа) + игра на остальной высоте */
  .fsbar { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 52px; display: none; align-items: center; justify-content: center; padding: 0 12px;
    background: linear-gradient(180deg, #0d0a24, #07051a); border-bottom: 1px solid rgba(255,255,255,.07); }
  .fsbar .fsl { pointer-events: none; }
  .fsbar .fsl .crest { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }
  .fsbar .fsl b { font-size: 15px; letter-spacing: 1.5px; }
  .fsbar .fsl small { font-size: 8.5px; letter-spacing: 3.5px; }
  .fsbar .fsn { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 13px var(--ui); color: var(--mute); }
  .fsbar .fsx { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
    border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #ece8f8; font-size: 15px; transition: border-color .2s, background .2s; }
  .fsbar .fsx:hover { border-color: rgba(246,199,68,.55); background: rgba(246,199,68,.08); }
  .frame:fullscreen .fsbar, .frame.isfs .fsbar { display: flex; }
  .frame:fullscreen iframe, .frame.isfs iframe, .frame:fullscreen .fload, .frame.isfs .fload { top: 52px; height: calc(100% - 52px); }
  .frame { width: 100%; overscroll-behavior: contain; }
  .pp .rowh:first-child { margin-top: 26px; }
  .pp .rails { padding-left: 10px; padding-right: 10px; }
  .pp .rails { padding-bottom: 50px; }
  .pp .rail { grid-auto-columns: 176px; }
  .frame.pfs { position: fixed !important; inset: 0; z-index: 90; width: 100vw !important; height: 100vh !important; height: 100dvh !important; border-radius: 0; border: 0; }
  .frame.pfs .fsbar { display: flex; padding-top: env(safe-area-inset-top); height: calc(52px + env(safe-area-inset-top)); }
  .frame.pfs iframe, .frame.pfs .fload { top: calc(52px + env(safe-area-inset-top)); height: calc(100% - 52px - env(safe-area-inset-top)); }
  body.pfson { overflow: hidden; }
