.home { position:relative;  }
.home--list .foorumm{ grid-template-columns:1fr !important; }
.home--list .glav_menu_container {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 0 8px 4px;
}
.home--list .glav_menu_touch {
  display: grid !important;
  grid-template-columns: 40px 1fr auto !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #e7edf6 !important;
  border-radius: 12px !important;
  background: #fff !important;
  text-align: left !important;
  box-shadow: none !important;
  min-height: 30px;
  width: auto;
  margin: 0;
}
.home--list .glav_menu_touch svg  {
  width: 26px;
  height: 26px;
}
.home--list .glav_menu_touch > *{ margin:0 !important; text-align:left !important; }
.home--list .glav_menu_icon{
  width:26px !important;
  height:26px !important;
  display:grid !important;
  place-items:center !important;
}
.home--list .glav_menu_label{
  font-weight:600 !important;
  color:#1f2a3b !important;
  white-space:normal !important;
}
.home--list .mb_8 {
  margin-bottom: 4px;
}
.home--list .glav_menu_badge {
  position: static !important;
  transform: none !important;
  margin: 0 0 0 8px !important;
  display: inline-block !important;
  text-align: right !important;
  padding: 8px 8px !important;
  border-radius: 10px !important;
  background: #f5f8ff !important;
  font-weight: 700 !important;
}
.home--list .glav_menu_container2 {
  display: flex;
  padding: 0 8px 0;
  flex-direction: column;
  margin-bottom: 4px;
  gap: 4px;
}
.home--list .glav_menu_touch2 {
  border: 1px solid #e7edf6 !important;
  border-radius: 12px !important;
  padding: 10px !important;
  background: #fff !important;
  margin: 0 !important;
}
.home--list .story-scroll-container  {
    margin: 0 8px 5px;
}
.onlinesy {
  padding: 0 20px;
  border-radius: 14px;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 700;
  transition: 0.25s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 8px 8px;
}

.home .onlines {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  border-radius: 0 0 14px 14px;
  z-index: 11;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 700;
  transition: 0.25s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home .onlines span {
  background: #f2f3f5;
  padding: 6px 12px;
  border-radius: 8px;
}

[data-theme="dark"] .home .onlines, [data-theme="dark"] .onlinesy  {
    background: var(--plitka);
    color: #fff;
}


.home-toggle-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  opacity: 0; 
  pointer-events: none;
  transition: opacity .15s ease;
}
#HomeLayout[data-ready="0"] * { transition: none !important; }
.home-toggle:focus,
.glav_menu_touch:focus { outline: none; }
.glav_menu_touch:focus-visible { outline: 2px solid rgba(45,129,224,.35); }

/* Продавливание плитки */
.glav_menu_touch { transition: transform .22s cubic-bezier(.2,.8,.3,1.2), box-shadow .22s ease, background-color .22s ease; }
.glav_menu_touch:active {
  transform: scale(.94);
  box-shadow: 0 1px 2px 0 rgba(44, 61, 120, .05), inset 0 2px 5px rgba(20, 40, 90, .10);
  background-color: #f6f8fc;
  transition-duration: .06s;
}
.home--list .glav_menu_touch:active { transform: scale(.98); }
[data-theme="dark"] .glav_menu_touch:active { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45); }

.home-toggle{
  width:38px;height:38px;
  border-radius:12px;
  border:1px solid #e5ebf3;
  background:#fff;
  box-shadow:0 2px 10px rgba(15,27,62,.08);
  display:grid; place-items:center;
  cursor:pointer;
}
.home-toggle:active{ transform: translateY(1px); }
.home-toggle svg{ width:30px;height:30px; display:block; }
#HomeLayout {
  margin-top: 8px;
}
@media (max-width: 881px) {
.onlinesy {
  padding: 0 20px;
  border-radius: 14px;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 700;
  transition: 0.25s ease;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -1px 8px 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.onlinesy span {
  background: #f2f3f5;
  padding: 6px 12px;
  border-radius: 8px;
}
#HomeLayout {
  margin-top: 0;
}
}
@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

#main-skeleton {
    width: 100%;
}

/* Чтобы скролл историй был плавным */
#main-skeleton div::-webkit-scrollbar {
    display: none;
}

@media (max-width: 881px) {
    .SkeletonOnlineWrapper {
        display: block !important;
    }
    
    /* Добавляем отступ всему скелету, чтобы фиксированная шапка ничего не перекрывала */
    #main-skeleton {
        padding-top: 48px; 
    }
}


@media (min-width: 882px) {
    .SkeletonOnlineWrapper {
        display: none !important;
    }
}
@media (max-width: 881px) {
  .glav_menu_container2, .glav_menu_container {
    padding: 0 0 8px !important;
    margin-bottom: 0 !important;
  }
}
/* Плашка ежедневного бонуса */
.hb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 8px 8px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px 0 rgba(44, 61, 120, .07); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .2s; }
.hb:active { transform: scale(.985); }
.hb-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; background: #eaf3ff; color: #2688eb; display: flex; align-items: center; justify-content: center; }
.hb-ic svg { display: block; }
.hb-t { flex: 1; min-width: 0; }
.hb-t b { display: block; font-size: 15.5px; font-weight: 700; color: #1b1f24; }
.hb-t > span { display: block; margin-top: 1px; font-size: 13.5px; font-weight: 600; color: #2688eb; }
.hb-t small { display: block; margin-top: 1px; font-size: 12.5px; color: #818c99; }
.hb-btn { flex: none; padding: 9px 14px; border-radius: 12px; background: #2688eb; color: #fff; font-weight: 700; font-size: 14px; }
.hb-bar { flex: 0 0 100%; display: flex; gap: 5px; }
.hb-bar u { flex: 1; height: 6px; border-radius: 3px; background: #eef1f4; text-decoration: none; }
.hb-bar u.is-done { background: #2688eb; }
.hb-bar u.is-now { background: rgba(38, 136, 235, .4); }
.hb-bar u.is-prize { background: #f1b400; }
.hb-bar u.is-prize.is-now { box-shadow: 0 0 0 2px rgba(241, 180, 0, .3); }
[data-theme="dark"] .hb { background: var(--fon_korob, #10151c); }
[data-theme="dark"] .hb-ic { background: rgba(38, 136, 235, .16); color: #4ea3ff; }
[data-theme="dark"] .hb-t b { color: #e6e8eb; }
[data-theme="dark"] .hb-t > span { color: #4ea3ff; }
[data-theme="dark"] .hb-t small { color: #9aa4b2; }
[data-theme="dark"] .hb-bar u { background: #20262d; }
[data-theme="dark"] .hb-bar u.is-done { background: #4ea3ff; }
[data-theme="dark"] .hb-bar u.is-now { background: rgba(78, 163, 255, .4); }
[data-theme="dark"] .hb-bar u.is-prize { background: #f1b400; }
@media (max-width: 881px) { .hb { margin: 0 0 8px; } }

/* Главная для гостей */
.gh { margin: 0 8px; }
.gh-hero { padding: 18px 16px 16px; margin-bottom: 8px; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 2px 6px 0 rgba(44, 61, 120, .07); }
.gh-logo { display: inline-flex; align-items: center; gap: 8px; }
.gh-logo img { display: block; width: 32px; height: 32px; box-sizing: border-box; background: #435f8b; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(67, 95, 139, .15); }
.gh-logo span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: bold; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; background: linear-gradient(to right, #435f8b, #64b3c4, #435e8a); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: flowShine 4s ease-in-out infinite; }
.gh-hero h1 { margin: 10px 0 4px; font-size: 18px; line-height: 1.25; font-weight: 700; color: #1b1f24; }
.gh-hero p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.4; color: #818c99; }
.gh-btns { display: flex; gap: 8px; }
.gh-btn { flex: 1; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 14px; background: #f2f3f5; color: #1b1f24 !important; font-size: 15px; font-weight: 700; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.gh-btn.is-main { background: #2688eb; color: #fff !important; }
.gh-btn:active { transform: scale(.98); }
.gh-on { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: #6b7785 !important; text-decoration: none; }
.gh-on i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf6b; }
.gh-avs { display: flex; }
.gh-avs u { width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; border: 2px solid #fff; background: #e9edf3 center / cover no-repeat; text-decoration: none; }
.gh-avs u:first-child { margin-left: 0; }
.gh-h { padding: 6px 6px 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #818c99; }
@media (max-width: 881px) {
  .gh { margin: 0; }
  .gh-h { padding-left: 14px; }
}
/* Вход — в боковой */
@media (min-width: 882px) {
  .gh-btn--in { display: none; }
  .gh-btns { justify-content: center; }
  .gh-btn.is-main { max-width: 320px; }
}
[data-theme="dark"] .gh-hero { background: var(--fon_korob, #10151c); }
[data-theme="dark"] .gh-hero h1 { color: #e6e8eb; }
[data-theme="dark"] .gh-btn { background: #1d232b; color: #e6e8eb !important; }
[data-theme="dark"] .gh-btn.is-main { background: #2688eb; color: #fff !important; }
[data-theme="dark"] .gh-avs u { border-color: #10151c; }
[data-theme="dark"] .gh-logo img { background: var(--plitka, #1c2128); }
