html, body { min-width: 0 !important; }

/* GPU-accelerated containers */
.case-loop, .cp-rulet-wrap, .cp-items-grid {
  contain: layout style;
}
.case, .cp-item, .inv-card {
  contain: layout style paint;
}
.live-card {
  contain: layout style paint;
  isolation: isolate;
}
.live-card img {
  content-visibility: visible;
}
.case-images img, .cp-rulet-wrap .cp-rulet-strip {
  will-change: transform;
  transform: translateZ(0);
}

/* Smooth scrolling for touch */
.cp-strip, .live-track, .cp-top-drop-scroll {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Reduce layout thrashing — not on live ribbon (dynamic src breaks with content-visibility) */
.case-images img,
.cp-rulet-wrap .cp-rulet-strip img,
.inv-card img {
  content-visibility: auto;
}

:root {
  --yd-bg-primary: #0a0e1f;
  --yd-bg-secondary: #111631;
  --yd-bg-card: #151a36;
  --yd-bg-elevated: #191f40;
  --yd-accent: #d3f85a;
  --yd-accent-hover: #e0ff7a;
  --yd-text-primary: #ffffff;
  --yd-text-secondary: #9297b2;
  --yd-text-muted: #555a73;
  --yd-border: rgba(146,151,178,0.12);
  --yd-panel: rgba(21, 26, 54, 0.72);
  --yd-radius: 14px;
  --yd-radius-sm: 8px;
  --yd-font: 'Inter', 'Play', sans-serif;
  --yd-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

body {
  background-color: #050814;
  background-image:
    linear-gradient(180deg, rgba(8, 10, 24, 0.5) 0%, rgba(5, 7, 18, 0.72) 100%),
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(90, 40, 130, 0.12) 0%, transparent 55%),
    url("/images/site-bg.png") !important;
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--yd-text-primary);
  font-family: var(--yd-font) !important;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

#app, .wrap {
  background: transparent !important;
  min-height: 100vh;
}

/* Полноэкранный апгрейд: не даём document расти (spacer + блок в потоке давали скролл) */
html.yd-route-upgrade,
body.yd-route-upgrade {
  overflow: hidden !important;
}

/* Лента + шапка фиксированы; высота задаётся через CSS var из App.vue */
.yd-top-fixed {
  --yd-top-stack-height: 180px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #0a0c14;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.yd-top-fixed .header-wrapper,
.yd-top-fixed #header-data-id {
  position: relative !important;
  top: auto !important;
  flex-shrink: 0;
}
.yd-top-spacer {
  width: 100%;
  height: var(--yd-top-stack-height, 180px);
  flex-shrink: 0;
  pointer-events: none;
}

a { color: inherit; }

.header-wrapper,
#header-data-id {
  background: var(--yd-bg-secondary) !important;
  border-bottom: 1px solid var(--yd-border);
  height: 80px;
  position: relative;
  top: auto;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}
/* Навигация по центру вьюпорта: слева/спрада разной ширины, flex даёт визуальный сдвиг */
.header-inner.header-desktop {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 2.5vw, 40px);
}
.header-inner.header-desktop .header-left {
  justify-self: start;
  min-width: 0;
}
.header-inner.header-desktop .yd-nav {
  justify-self: center;
  margin: 0;
  position: relative;
  z-index: 2;
}
.header-inner.header-desktop .header-right {
  justify-self: end;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.header-left {
  display: flex !important;
  align-items: center;
  gap: 20px;
}

.header-online {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--yd-border);
}

.header-online-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--yd-text-primary);
  font-weight: 700;
  font-size: 14px;
}

.header-online-label {
  color: var(--yd-text-secondary);
  font-size: 12px;
}

.header-social {
  display: flex;
  align-items: center;
}

.header-social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid var(--yd-border);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none !important;
}

.social-link:hover {
  background: rgba(211,248,90,0.1);
  border-color: rgba(211,248,90,0.3);
}

.social-link:hover i {
  color: var(--yd-accent) !important;
}

.header-logo img,
#header-data-id .mobile-logo img,
.sidebar-logo img {
  mix-blend-mode: lighten;
}

.header-logo { display: inline-flex; align-items: center; }
.header-logo__img {
  height: 56px;
  width: auto;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  filter: drop-shadow(0 4px 12px rgba(211, 248, 90, 0.15));
}
.header-logo:hover .header-logo__img { transform: scale(1.04); }
@media (max-width: 1200px) {
  .header-logo__img { height: 48px; }
}

.header-right {
  display: flex !important;
  align-items: center;
  gap: 16px;
}

.header-promo-wrap {
  display: flex;
  align-items: center;
}

.promo-block {
  display: flex !important;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(211,248,90,0.12), rgba(211,248,90,0.04));
  border: 1px solid rgba(211,248,90,0.25);
  border-radius: 28px;
  padding: 6px 8px 6px 20px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.promo-block:hover {
  background: linear-gradient(135deg, rgba(211,248,90,0.2), rgba(211,248,90,0.08));
  border-color: rgba(211,248,90,0.5);
  transform: translateY(-1px);
}

.promo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--yd-text-secondary);
  margin: 0;
  white-space: nowrap;
}

.promo-text-accent {
  color: var(--yd-accent);
  font-weight: 800;
}

.promo-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(12, 16, 39, 0.92);
  border: 1px solid var(--yd-border);
  color: var(--yd-accent);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.promo-block:hover .promo-arrow-btn {
  border-color: rgba(211, 248, 90, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.header-auth {
  display: flex;
  align-items: center;
}

.login-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 16px;
  border-radius: 28px;
  border: 1px solid var(--yd-border);
}

.login-btn-text {
  color: var(--yd-text-secondary);
  font-weight: 600;
  font-size: 13px;
  margin: 0;
}

.login-btn-methods {
  display: flex;
  gap: 4px;
}

.lives-feed-container {
  width: 100%;
  margin-bottom: 16px;
  padding-top: 8px;
}

.live-feed-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 40px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.live-feed-tab-items {
  display: flex;
  gap: 4px;
  background: var(--yd-bg-card);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--yd-border);
}

.live-feed-scroll-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.live-feed-scroll {
  display: flex;
  gap: 10px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.live-feed-scroll::-webkit-scrollbar { display: none; }

.live-scroll-inner {
  display: flex;
  gap: 10px;
}

.live-feed-item {
  position: relative;
  width: 130px;
  min-width: 130px;
  height: 90px;
  background: var(--yd-bg-card);
  border-radius: 10px;
  border: 1px solid var(--yd-border);
  overflow: hidden;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
}

.live-feed-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.rarity-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: radial-gradient(ellipse at 50% 20%, var(--rarity-color, #9297b2) 0%, transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

.ItemLiveDropComponent_content {
  position: relative;
  z-index: 2;
  padding: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-img-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.item-info { flex: 1; min-width: 0; }

.weapon-name {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.user-name-small {
  color: var(--yd-text-secondary);
  font-size: 9px;
  margin-top: 2px;
}

.promo-banner {
  margin-bottom: 0 !important;
}

.promo-banner-wrap {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0 0 var(--yd-radius) var(--yd-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.promo-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px 60px !important;
}

.yd-cases-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171c36;
  border-radius: 12px;
  padding: 12px 24px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 100%;
}

.yd-cf-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.yd-cf-select {
  position: relative;
  background: #232845;
  border-radius: 8px;
  height: 40px;
  min-width: 180px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.yd-cf-select:hover {
  background: #2a3052;
}

.yd-cf-select.active {
  border-color: rgba(211, 248, 90, 0.3);
  background: #2a3052;
}

.yd-cf-select-trigger {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yd-cf-select-trigger i {
  font-size: 10px;
  color: #a0a5c3;
  transition: transform 0.2s;
}

.yd-cf-select.active .yd-cf-select-trigger i {
  transform: rotate(180deg);
}

.yd-cf-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #232845;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
}

.yd-cf-dropdown-item {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a0a5c3;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.yd-cf-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.yd-cf-dropdown-item.active {
  color: #d3f85a;
  background: rgba(211, 248, 90, 0.1);
}

.yd-cf-dropdown::-webkit-scrollbar {
  width: 4px;
}

.yd-cf-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.yd-cf-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.yd-cf-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

.yd-cf-range {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #232845;
  border-radius: 8px;
  height: 40px;
  padding: 0 16px;
}

.yd-cf-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yd-cf-input {
  width: 60px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.yd-cf-input::-webkit-inner-spin-button,
.yd-cf-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.yd-cf-dash {
  color: #a0a5c3;
}

.yd-cf-slider-wrap {
  width: 140px;
  height: 20px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.yd-cf-slider-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  position: relative;
}

.yd-cf-slider-fill {
  position: absolute;
  height: 100%;
  background: #d3f85a;
  border-radius: 2px;
  pointer-events: none;
}

.yd-cf-slider-handle {
  width: 16px;
  height: 16px;
  background: #d3f85a;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 0 0 10px rgba(211,248,90,0.5);
  transition: transform 0.1s, box-shadow 0.2s;
  z-index: 10;
}

.yd-cf-slider-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 15px rgba(211,248,90,0.8);
}

.yd-cf-slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.yd-cf-reset {
  background: transparent;
  border: none;
  color: #a0a5c3;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-transform: uppercase;
  padding: 0 8px;
  transition: color 0.2s;
}

.yd-cf-reset:hover {
  color: #fff;
}

.yd-cf-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.yd-cf-toggle input {
  display: none;
}

.yd-cf-toggle-bg {
  width: 32px;
  height: 18px;
  background: #232845;
  border-radius: 10px;
  position: relative;
  transition: background 0.3s;
}

.yd-cf-toggle-knob {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.yd-cf-toggle input:checked + .yd-cf-toggle-bg {
  background: #d3f85a;
}

.yd-cf-toggle input:checked + .yd-cf-toggle-bg .yd-cf-toggle-knob {
  transform: translateX(14px);
  background: #111;
}

.yd-cf-toggle span {
  font-size: 10px;
  font-weight: 700;
  color: #a0a5c3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-title, .case-title2 {
  font-family: var(--yd-font) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--yd-text-primary) !important;
  margin: 60px 0 32px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  background: none !important;
}

.case-title span, .case-title2 span {
  display: block;
  width: 100%;
}

.case-title-sub {
  font-size: 13px;
  color: var(--yd-text-muted);
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}

.case-title span::after, .case-title2 span::after,
.case-title span::before, .case-title2 span::before {
  display: none !important;
}
.case-title2::after, .case-title2::before {
  display: none !important;
}

.case-loop {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 24px !important;
  padding: 0 0 60px !important;
  margin: 0 !important;
  max-width: 100%;
  justify-items: center;
}

/* Главная: мистери-кейсы в отдельной тёмной «рамке» (как на макете) */
.case-loop--mystery-showcase {
  display: block !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
  padding: 0 0 48px !important;
}
.mystery-showcase-shell {
  max-width: 1320px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 22px 18px 26px;
  border-radius: 20px;
  border: 1px solid rgba(90, 110, 150, 0.35);
  background: linear-gradient(
    165deg,
    rgba(10, 14, 28, 0.98) 0%,
    rgba(16, 20, 42, 0.94) 45%,
    rgba(12, 16, 32, 0.99) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 22px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mystery-showcase-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.mystery-showcase-title {
  margin: 0;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.mystery-showcase-what {
  position: relative;
  display: inline-block;
}
.mystery-showcase-what-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(211, 248, 90, 0.35);
  background: rgba(211, 248, 90, 0.08);
  color: #d3f85a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.mystery-showcase-what-btn:hover {
  background: rgba(211, 248, 90, 0.14);
  border-color: rgba(211, 248, 90, 0.55);
}
.mystery-showcase-tip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 10px);
  width: min(340px, 92vw);
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(18, 22, 44, 0.98);
  border: 1px solid rgba(211, 248, 90, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  z-index: 30;
}
.mystery-showcase-tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-bottom-color: rgba(211, 248, 90, 0.2);
}
@media (min-width: 769px) {
  .mystery-showcase-what:hover .mystery-showcase-tip {
    display: block;
  }
}
@media (max-width: 768px) {
  .mystery-showcase-what--open .mystery-showcase-tip {
    display: block;
  }
}
.mystery-showcase-cases {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)) !important;
  gap: 16px 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  justify-items: stretch;
  align-items: start;
}
.mystery-showcase-cases .case {
  max-width: 100%;
  min-width: 0;
}
.mystery-showcase-cases .case .case-name {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: unset;
  max-width: 100%;
  min-height: 2.4em;
  line-height: 1.2;
  font-size: 11px !important;
  letter-spacing: 0.04em;
  padding: 0 4px;
  word-break: break-word;
  hyphens: auto;
}

.case {
  position: relative;
  background: transparent !important;
  transition: transform 0.22s ease;
  cursor: pointer;
  width: 100%;
}

.case:hover {
  transform: translateY(-4px);
}

.case-in {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
}

.case-hover {
  position: absolute;
  inset: 0;
  z-index: 20;
}

.case-images img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.45));
  transition: transform 0.22s ease;
  z-index: 2;
  pointer-events: none;
}
/* PNG мистери с чёрным фоном — смешиваем с фоном страницы */
.case--mystery .case-images img {
  mix-blend-mode: lighten;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
}
.case:hover.case--mystery .case-images img {
  filter: drop-shadow(0 14px 32px rgba(0,0,0,0.4));
}

.case-images {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}

.case:hover .case-images img {
  transform: translateY(-3px);
}

.case-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(211,248,90,0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.case:hover .case-glow-bg {
  transform: translate(-50%, -50%) scale(1.08);
  background: radial-gradient(circle, rgba(211,248,90,0.15) 0%, transparent 70%);
}

.case-pole {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
  gap: 12px;
}

.case-name {
  color: #fff !important;
  font-family: var(--yd-font);
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.case-price-pill {
  background: var(--yd-accent) !important;
  color: #0c1027 !important;
  font-family: var(--yd-font);
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(211,248,90,0.2);
  transition: all 0.2s ease;
  min-width: 60px;
  text-align: center;
}

.case-price-pill span {
  font-size: 11px;
  margin-left: 2px;
}

.case:hover .case-price-pill {
  background: var(--yd-accent-hover) !important;
  box-shadow: 0 6px 18px rgba(211,248,90,0.4);
}

.case-new {
  position: absolute !important;
  top: 10px;
  left: 10px;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  background: #ff4e50;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

.case-opened-badge {
  position: absolute !important;
  top: 10px;
  right: 10px;
  background: #16a34a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 5;
  pointer-events: none;
}

.case-locked-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}

.case-day {
  color: var(--yd-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.item-title {
  text-align: center;
  margin: 40px 0 24px;
}

.item-title span {
  font-family: var(--yd-font) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.item-loop {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  padding: 20px !important;
  margin: 0 auto 40px !important;
  max-width: 1200px;
}

.item-loop .item {
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  background: linear-gradient(145deg, #1d1b32 0%, #131125 100%) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  overflow: hidden;
  padding: 16px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 160px;
}

.item-loop .item:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--rarity-glow, rgba(130, 80, 220, 0.1));
}

.item-loop .item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 40%, var(--rarity-color, #4b69ff) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.item-bracket {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-size: 140px;
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
.item-bracket::after { content: '['; }

.item-loop .item .item-wp {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.item-loop .item .item-wp img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
  transition: transform 0.4s ease;
}

.item-loop .item:hover .item-wp img {
  transform: scale(1.1) translateY(-4px);
}

.item-info {
  position: relative;
  z-index: 2;
  width: 100%;
}

.item-name1 {
  color: rgba(255,255,255,0.4) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.item-name2 {
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  line-height: 1.2;
}

.item-loop .item.blue, .item-loop .item.color-3 { 
  --rarity-color: #4b69ff; 
  --rarity-glow: rgba(75, 105, 255, 0.3);
  border-bottom: 2px solid #4b69ff !important;
}
.item-loop .item.purple, .item-loop .item.color-6 { 
  --rarity-color: #8847ff; 
  --rarity-glow: rgba(136, 71, 255, 0.3);
  border-bottom: 2px solid #8847ff !important;
}
.item-loop .item.pink, .item-loop .item.color-4 { 
  --rarity-color: #d32ce6; 
  --rarity-glow: rgba(211, 44, 230, 0.3);
  border-bottom: 2px solid #d32ce6 !important;
}
.item-loop .item.red, .item-loop .item.color-2 { 
  --rarity-color: #eb4b4b; 
  --rarity-glow: rgba(235, 75, 75, 0.3);
  border-bottom: 2px solid #eb4b4b !important;
}
.item-loop .item.gold, .item-loop .item.color-1 { 
  --rarity-color: #caab05; 
  --rarity-glow: rgba(202, 171, 5, 0.3);
  border-bottom: 2px solid #caab05 !important;
}
.item-loop .item.gray, .item-loop .item.color-5 { 
  --rarity-color: #b0c3d9; 
  --rarity-glow: rgba(176, 195, 217, 0.3);
  border-bottom: 2px solid #b0c3d9 !important;
}
.item-loop .item.green, .item-loop .item.color-7 { 
  --rarity-color: #4ec04e; 
  --rarity-glow: rgba(78, 192, 78, 0.3);
  border-bottom: 2px solid #4ec04e !important;
}

.c-title {
  text-align: center;
  margin: 24px 0 16px;
}
.c-title span {
  font-family: var(--yd-font) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-do {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.case-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.case-x {
  display: flex !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.case-x li {
  background: rgba(25, 31, 64, 0.8) !important;
  border: 1px solid var(--yd-border) !important;
  color: var(--yd-text-secondary) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s;
}

ul.case-x-v2 li {
  min-width: 42px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(25, 31, 64, 0.8) !important;
  border: 1px solid rgba(146, 151, 178, 0.15) !important;
  color: #9297b2 !important;
  padding: 0 14px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}
ul.case-x-v2 li::before { display: none !important; }
ul.case-x-v2 li:hover:not(.active) {
  background: rgba(211, 248, 90, 0.12) !important;
  color: #d3f85a !important;
  border-color: rgba(211, 248, 90, 0.3) !important;
}
ul.case-x-v2 li.active,
ul.case-x-v2 li.active:hover {
  background: rgba(211, 248, 90, 0.1) !important;
  color: #d3f85a !important;
  -webkit-text-fill-color: #d3f85a !important;
  border-color: #d3f85a !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(211, 248, 90, 0.2) !important;
}
ul.case-x-v2 li:not(.active) {
  -webkit-text-fill-color: #9297b2 !important;
}
ul.case-x-v2 li:hover:not(.active) {
  -webkit-text-fill-color: #d3f85a !important;
}

.case-btn {
  background: var(--yd-accent) !important;
  color: #0c1027 !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  cursor: pointer;
  transition: all 0.2s;
}

.case-btn:hover {
  background: var(--yd-accent-hover) !important;
  transform: translateY(-1px);
}

.case-price-btn {
  background: rgba(25, 31, 64, 0.8) !important;
  border: 1px solid var(--yd-border) !important;
  border-radius: 10px !important;
  padding: 8px 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rulet {
  margin-bottom: 16px;
  position: relative;
}

.rulet2 {
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--yd-border);
  background: var(--yd-bg-secondary);
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Указатель рулетки — в case.vue (одна SVG-стрелка) */

/* Glow ring around roulette */
.cp-rulet-glow {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: radial-gradient(ellipse at center, rgba(211,248,90,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== ITEM STYLING IN ROULETTE — Case Card Style ===== */
.rulet-ul .item, .cp-rulet-strip .item {
  flex-shrink: 0;
  width: 178px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 6px 0;
  border-radius: 12px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: opacity 0.55s, filter 0.3s, transform 0.3s;
}

/* Rarity gradient backgrounds */
.rulet-ul .item.color-5, .rulet-ul .item.gray, .cp-rulet-strip .item.color-5, .cp-rulet-strip .item.gray {
  background: linear-gradient(145deg, #4a5078 0%, #2d3155 100%);
  border: 1px solid rgba(176,195,217,0.15);
}
.rulet-ul .item.color-3, .rulet-ul .item.blue, .cp-rulet-strip .item.color-3, .cp-rulet-strip .item.blue {
  background: linear-gradient(145deg, #3a4f8a 0%, #1e2e6e 100%);
  border: 1px solid rgba(75,105,255,0.2);
}
.rulet-ul .item.color-6, .rulet-ul .item.purple, .cp-rulet-strip .item.color-6, .cp-rulet-strip .item.purple {
  background: linear-gradient(145deg, #5a3a8a 0%, #3a1e6e 100%);
  border: 1px solid rgba(136,71,255,0.25);
}
.rulet-ul .item.color-4, .rulet-ul .item.pink, .cp-rulet-strip .item.color-4, .cp-rulet-strip .item.pink {
  background: linear-gradient(145deg, #8a2a7a 0%, #5e1e5e 100%);
  border: 1px solid rgba(211,44,230,0.25);
}
.rulet-ul .item.color-2, .rulet-ul .item.red, .cp-rulet-strip .item.color-2, .cp-rulet-strip .item.red {
  background: linear-gradient(145deg, #8a2a2a 0%, #5e1a1a 100%);
  border: 1px solid rgba(235,75,75,0.3);
}
.rulet-ul .item.color-1, .rulet-ul .item.gold, .cp-rulet-strip .item.color-1, .cp-rulet-strip .item.gold {
  background: linear-gradient(145deg, #7a6a2a 0%, #5e501a 100%);
  border: 1px solid rgba(211,248,90,0.35);
}
.rulet-ul .item.color-7, .rulet-ul .item.green, .cp-rulet-strip .item.color-7, .cp-rulet-strip .item.green {
  background: linear-gradient(145deg, #2a6a3a 0%, #1a4a2a 100%);
  border: 1px solid rgba(75,186,108,0.25);
}

.rulet-ul .item--winner, .cp-rulet-strip .item--winner {
  opacity: 1 !important;
  border-color: rgba(211, 248, 90, 0.7) !important;
  box-shadow: 0 0 25px rgba(211, 248, 90, 0.3), inset 0 0 20px rgba(211, 248, 90, 0.08);
  transform: scale(1.06);
}

.rulet-ul .item--winner::after, .cp-rulet-strip .item--winner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top, rgba(211,248,90,0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 12px;
  z-index: 3;
}

/* Rarity glow bar at bottom */
.rulet-ul .item::before, .cp-rulet-strip .item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.rulet-ul .item.color-5::before, .rulet-ul .item.gray::before, .cp-rulet-strip .item.color-5::before, .cp-rulet-strip .item.gray::before { background: linear-gradient(90deg, #b0c3d9, #b0c3d9); }
.rulet-ul .item.color-3::before, .rulet-ul .item.blue::before, .cp-rulet-strip .item.color-3::before, .cp-rulet-strip .item.blue::before { background: linear-gradient(90deg, #4b69ff, #4b69ff); }
.rulet-ul .item.color-6::before, .rulet-ul .item.purple::before, .cp-rulet-strip .item.color-6::before, .cp-rulet-strip .item.purple::before { background: linear-gradient(90deg, #8847ff, #8847ff); }
.rulet-ul .item.color-4::before, .rulet-ul .item.pink::before, .cp-rulet-strip .item.color-4::before, .cp-rulet-strip .item.pink::before { background: linear-gradient(90deg, #d32ce6, #d32ce6); }
.rulet-ul .item.color-2::before, .rulet-ul .item.red::before, .cp-rulet-strip .item.color-2::before, .cp-rulet-strip .item.red::before { background: linear-gradient(90deg, #eb4b4b, #eb4b4b); }
.rulet-ul .item.color-1::before, .rulet-ul .item.gold::before, .cp-rulet-strip .item.color-1::before, .cp-rulet-strip .item.gold::before { background: linear-gradient(90deg, #d3f85a, #ffd700); }
.rulet-ul .item.color-7::before, .rulet-ul .item.green::before, .cp-rulet-strip .item.color-7::before, .cp-rulet-strip .item.green::before { background: linear-gradient(90deg, #4bba6c, #4bba6c); }

/* Quality badge */
.rulet-ul .item__quality, .cp-rulet-strip .item__quality {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  margin-left: 8px;
  margin-top: 6px;
}

.item__quality--fn { background: rgba(80,200,120,0.2); color: #50c878; }
.item__quality--mw { background: rgba(80,200,220,0.2); color: #50c8dc; }
.item__quality--ft { background: rgba(220,180,40,0.2); color: #dcb430; }
.item__quality--ww { background: rgba(200,80,80,0.2); color: #c85050; }
.item__quality--bs { background: rgba(160,60,60,0.2); color: #a03c3c; }

/*
 * mobile.css задаёт глобально .item-wp / .item-wp img / .item-name1 с !important
 * (строки ~674–677) — без этого блока рулетка остаётся «как раньше», деплой theme не виден.
 */
.cp-rulet-wrap .cp-rulet-strip .item-wp {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
}

.cp-rulet-wrap .cp-rulet-strip .item-wp img {
  max-width: 150px !important;
  max-height: 88px !important;
  width: auto !important;
  min-height: 48px !important;
  object-fit: contain !important;
  z-index: 1 !important;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.45)) !important;
}

.cp-rulet-wrap .cp-rulet-strip .item {
  width: 178px !important;
  height: 160px !important;
  min-height: 160px !important;
  max-width: none !important;
}

/* Name at bottom */
.rulet-ul .item-name1, .cp-rulet-strip .item-name1 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
  padding: 0 8px;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.cp-rulet-wrap .cp-rulet-strip .item-name1 {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.rulet-ul .item-name2, .cp-rulet-strip .item-name2 { display: none; }

.top-drop-section {
  margin: 32px 0;
  text-align: center;
}

.top-drop-title {
  font-family: var(--yd-font);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.top-drop-title::before,
.top-drop-title::after {
  content: '❦';
  color: var(--yd-accent);
  font-size: 16px;
}

.footer {
  background: var(--yd-bg-secondary) !important;
  border-top: 1px solid var(--yd-border);
  padding: 32px 24px !important;
  margin-top: 40px;
}

.ftext {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.ftext p {
  color: var(--yd-text-muted) !important;
  font-size: 12px;
  margin: 4px 0;
}

.ftext a {
  color: var(--yd-text-secondary) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.ftext a:hover {
  color: var(--yd-accent) !important;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.lds-ring div {
  border-color: var(--yd-accent) transparent transparent transparent !important;
}

.btn {
  border: none !important;
  border-radius: var(--yd-radius-sm) !important;
  font-family: var(--yd-font) !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.yellow, .btn.green, .btn.red {
  background: none !important;
}

.vue-notification {
  background: var(--yd-bg-elevated) !important;
  border: 1px solid var(--yd-border) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-family: var(--yd-font) !important;
  box-shadow: var(--yd-shadow) !important;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--yd-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--yd-bg-elevated);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--yd-text-muted);
}

/* ============================================================
   YouDrop: Hero Banner Carousel (BannerCarousel.vue)
   ============================================================ */
.yd-hero-wrap { margin: 10px 0 18px; min-width: 0; }

.yd-hero {
  position: relative;
  display: block;
  width: 100%;
  /* Hero-аспект: нативный баннер 1608×656 ≈ 2.45:1. Держим 16/5.5 ≈ 2.91:1 — минимальная
     обрезка + место для двухстрочных заголовков. max-height растёт c шириной viewport:
     на FullHD/2K/4K мониторах не распухает, но и не "плющится" в узкую полоску. */
  aspect-ratio: 16 / 5.5;
  max-height: 480px;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--yd-panel, rgba(15, 18, 37, 0.92));
  border: 1px solid rgba(146, 151, 178, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 36px rgba(0, 0, 0, 0.34);
  outline: none;
  isolation: isolate;
}
.yd-hero::after {
  /* Лёгкий bottom-shade + виньетка по углам: кроп выглядит осознанно, точки читаются */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(7, 10, 25, 0.42) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 62%, rgba(7, 10, 25, 0.30) 100%);
  /* Над слайд-треком, под кнопками/точками (z-index:3) */
  z-index: 2;
}
.yd-hero:focus-visible {
  box-shadow:
    0 0 0 2px var(--yd-accent),
    0 20px 50px rgba(0, 0, 0, 0.5);
}
.yd-hero__track {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.22, 1);
  will-change: transform;
}
.yd-hero__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  text-decoration: none !important;
  color: inherit !important;
  pointer-events: none;
}
.yd-hero__slide--active { pointer-events: auto; }
.yd-hero__img {
  width: 100%;
  height: 100%;
  /* На всех баннерах YouDrop заголовки стоят у самой верхней кромки (минимум safe-zone сверху),
     а низ — декоративные элементы (огонь, листья, низ ленты на подарке). Поэтому якорим по верху
     и режем только декоративный низ. Лица персонажей при этом остаются в кадре. */
  object-fit: cover;
  object-position: center top;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Слой art: картинки с /images/ через background (у img в .svg внешние картинки в Chrome не видны) */
.yd-hero__art {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background-color: #0a0e1a;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.yd-hero__art--logo-right {
  background-image:
    radial-gradient(ellipse 50% 90% at 100% 42%, rgba(211, 248, 90, 0.1) 0%, transparent 58%),
    linear-gradient(100deg, #0a0e1a 0%, #0a0e1a 38%, rgba(20, 32, 56, 0.22) 52%, rgba(20, 32, 56, 0) 72%),
    var(--b1, none);
  background-size: auto, auto, 58% auto;
  background-position: 0 0, 0 0, 100% 50%;
}
.yd-hero__art--wheel {
  background-color: #0d1120;
  background-image:
    radial-gradient(ellipse 40% 80% at 86% 45%, rgba(211, 248, 90, 0.14) 0%, transparent 60%),
    linear-gradient(100deg, #0d1120 0%, #0d1120 45%, rgba(26, 31, 53, 0) 70%),
    var(--b1, none);
  background-size: auto, auto, 50% auto;
  background-position: 0 0, 0 0, 100% 50%;
}
.yd-hero__art--telegram {
  background-color: #080c18;
  background-image:
    linear-gradient(100deg, #080c18 0%, #080c18 50%, rgba(8, 12, 24, 0) 70%),
    var(--b2, none),
    var(--b1, none);
  background-size: auto, 32% auto, 38% auto;
  background-position: 0 0, 4% 58%, 100% 48%;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.yd-hero__art--split-bonus {
  background-image:
    linear-gradient(100deg, #0a0e1a 0%, #0a0e1a 46%, rgba(20, 32, 56, 0) 66%),
    var(--b2, none),
    var(--b1, none);
  background-size: auto, 20% auto, 50% auto;
  background-position: 0 0, 5% 52%, 99% 48%;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.yd-hero__art-text {
  position: relative;
  z-index: 1;
  max-width: 52%;
  padding: 24px 0 24px 8px;
  box-sizing: border-box;
  pointer-events: none;
}
.yd-hero__art-title {
  margin: 0;
  font-size: clamp(22px, 3.1vw, 40px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--yd-accent, #d3f85a);
  font-family: 'Inter', system-ui, sans-serif;
}
.yd-hero__art-sub {
  margin: 10px 0 0;
  font-size: clamp(13px, 1.35vw, 20px);
  line-height: 1.5;
  color: #9aa3b2;
  font-family: 'Inter', system-ui, sans-serif;
}
@media (max-width: 768px) {
  .yd-hero__art--logo-right {
    background-size: auto, auto, 86% auto;
    background-position: 0 0, 0 0, 100% 36%;
  }
  .yd-hero__art--wheel {
    background-size: auto, auto, 64% auto;
    background-position: 0 0, 0 0, 100% 50%;
  }
  .yd-hero__art--telegram {
    background-size: auto, 44% auto, 52% auto;
    background-position: 0 0, 1% 56%, 100% 40%;
  }
  .yd-hero__art--split-bonus {
    background-size: auto, 28% auto, 64% auto;
    background-position: 0 0, 1% 58%, 100% 44%;
  }
  .yd-hero__art-text { max-width: 92%; }
}
.yd-hero__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  z-index: 2;
}
.yd-hero__btn:hover {
  background: rgba(211, 248, 90, 0.18);
  border-color: rgba(211, 248, 90, 0.45);
  color: var(--yd-accent);
  transform: translateY(-50%) scale(1.03);
}
.yd-hero__btn--prev { left: 12px; }
.yd-hero__btn--next { right: 12px; }
.yd-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8, 11, 25, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}
.yd-hero__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: background 0.18s ease, width 0.22s ease, opacity 0.18s ease;
}
.yd-hero__dot--active {
  width: 18px;
  background: var(--yd-accent);
}
.yd-hero__btn { z-index: 3; }
.yd-hero__dots { z-index: 3; }

@media (max-width: 1100px) {
  .yd-hero {
    aspect-ratio: 16 / 6;
    max-height: 340px;
    min-height: 190px;
    border-radius: 16px;
  }
}
@media (max-width: 768px) {
  .yd-hero {
    border-radius: 14px;
    /* Мобилка: аспект близок к нативному (2.29 ≈ 2.45) — почти без кропа */
    aspect-ratio: 16 / 7;
    max-height: 230px;
    min-height: 140px;
  }
  /* mobile.css: глобальное img{ height:auto } — не даём сжать баннер в полоску */
  .yd-hero__img {
    height: 100% !important;
    width: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
  }
  .yd-hero__btn { display: none; }
  .yd-hero__dots { bottom: 8px; }
}
/* Широкие мониторы: даём баннеру высоту пропорционально ширине, чтобы в fullscreen
   не превращался в узкую полоску с агрессивной обрезкой низа. */
@media (min-width: 1400px) {
  .yd-hero { max-height: 540px; }
}
@media (min-width: 1700px) {
  .yd-hero {
    aspect-ratio: 16 / 5.2;
    max-height: 620px;
  }
}
@media (min-width: 2100px) {
  .yd-hero {
    aspect-ratio: 16 / 5;
    max-height: 720px;
  }
  .yd-hero__img { object-position: center 18%; }
}

/* Готовые PNG 2000x400: держим нативные 5:1, чтобы не было пустой тёмной полки снизу. */
.yd-hero.yd-hero--png-banners {
  aspect-ratio: 5 / 1;
  max-height: 240px;
  min-height: 150px;
}
.yd-hero.yd-hero--png-banners::after {
  background:
    linear-gradient(90deg, rgba(7, 10, 25, 0.26) 0%, transparent 16%, transparent 84%, rgba(7, 10, 25, 0.26) 100%),
    linear-gradient(180deg, transparent 72%, rgba(7, 10, 25, 0.18) 100%);
  opacity: 1;
}
.yd-hero.yd-hero--png-banners .yd-hero__img {
  object-fit: cover;
  object-position: center center;
  background: var(--yd-panel, rgba(15, 18, 37, 0.92));
}
@media (max-width: 1100px) {
  .yd-hero.yd-hero--png-banners {
    max-height: 220px;
    min-height: 130px;
  }
}
@media (max-width: 768px) {
  .yd-hero.yd-hero--png-banners {
    aspect-ratio: 16 / 4.2;
    max-height: 170px;
    min-height: 110px;
  }
  .yd-hero.yd-hero--png-banners .yd-hero__img {
    object-fit: cover !important;
    object-position: center center !important;
  }
}
@media (min-width: 1400px) {
  .yd-hero.yd-hero--png-banners { max-height: 270px; }
}
@media (min-width: 1700px) {
  .yd-hero.yd-hero--png-banners {
    max-height: 320px;
  }
}
@media (min-width: 2100px) {
  .yd-hero.yd-hero--png-banners .yd-hero__img { object-position: center center; }
}

/* Мобилка: hero — точки не как огромные кнопки; мистери — на всю ширину + ровная сетка */
@media (max-width: 768px) {
  .yd-hero.yd-hero--png-banners {
    padding-bottom: 8px;
    box-sizing: border-box;
  }
  .yd-hero .yd-hero__dots {
    bottom: 2px;
    gap: 5px;
    pointer-events: none;
  }
  .yd-hero .yd-hero__dots .yd-hero__dot {
    pointer-events: auto;
    width: 5px !important;
    height: 5px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 40px !important;
    max-height: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border-radius: 999px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    flex-shrink: 0;
    box-sizing: border-box !important;
  }
  .yd-hero .yd-hero__dots .yd-hero__dot--active {
    width: 16px !important;
    height: 5px !important;
    min-width: 16px !important;
    min-height: 5px !important;
    max-width: 28px !important;
    max-height: 5px !important;
  }
}

/* ============================================================
   YouDrop: Site-wide top navigation (Header.vue)
   ============================================================ */
.yd-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--yd-border);
  border-radius: 14px;
  flex: 0 1 auto;
}
.yd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--yd-text-secondary);
  font-family: var(--yd-font, inherit);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none !important;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.yd-nav__link i {
  font-size: 13px;
  opacity: 0.9;
}
.yd-nav__link:hover {
  color: var(--yd-text-primary);
  background: rgba(211, 248, 90, 0.06);
}
.yd-nav__link--active,
.yd-nav__link.router-link-active {
  color: #0b0f22;
  background: var(--yd-accent);
  box-shadow: 0 4px 14px rgba(211, 248, 90, 0.25);
}
.yd-nav__link--active i,
.yd-nav__link.router-link-active i { opacity: 1; }

@media (min-width: 1201px) and (max-width: 1600px) {
  .yd-nav__link {
    padding: 8px 11px;
    font-size: 12px;
  }
  .yd-nav {
    gap: 2px;
  }
}

@media (max-width: 1200px) {
  .yd-nav__link { padding: 8px 10px; }
  .yd-nav__link span { display: none; }
  .yd-nav__link i { font-size: 15px; }
}
@media (max-width: 768px) {
  .yd-nav { display: none; }
}

/* ============================================================
   YouDrop: Compact legal footer (App.vue -> yd-legal-v2)
   ============================================================ */
.yd-legal-v2 {
  max-width: 1200px;
  margin: 32px auto 28px;
  padding: 26px clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--yd-border);
  background: linear-gradient(180deg, transparent 0%, rgba(15, 19, 46, 0.55) 100%);
  border-radius: 20px;
}
.yd-legal-v2__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.yd-legal-v2__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.yd-legal-v2__logo {
  height: 28px;
  width: auto;
  display: block;
  mix-blend-mode: lighten;
}
.yd-legal-v2__tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--yd-text-secondary);
  line-height: 1.35;
}
.yd-legal-v2__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.yd-legal-v2__pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--yd-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--yd-text-secondary);
  white-space: nowrap;
}
.yd-legal-v2__pills li i {
  color: var(--yd-accent);
  font-size: 12px;
}
.yd-legal-v2__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.yd-legal-v2__socials a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--yd-border);
  color: var(--yd-text-secondary);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none !important;
}
.yd-legal-v2__socials a:hover {
  color: var(--yd-accent);
  background: rgba(211, 248, 90, 0.08);
  border-color: rgba(211, 248, 90, 0.35);
  transform: translateY(-1px);
}
.yd-legal-v2__fine {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--yd-text-muted, var(--yd-text-secondary));
  text-align: center;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .yd-legal-v2 {
    margin: 20px 12px;
    padding: 20px 16px;
    border-radius: 16px;
  }
  .yd-legal-v2__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .yd-legal-v2__pills {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .yd-legal-v2__pills::-webkit-scrollbar { display: none; }
  .yd-legal-v2__socials { align-self: flex-end; }
}


.yd-footer-wrapper {
  margin-top: 60px;
  padding-bottom: 20px;
}

.yd-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.yd-inst-scroller {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 40px;
}

.yd-inst-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: transparent;
  width: calc(25% - 16px);
  min-width: 200px;
  padding: 10px;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
}
a.yd-inst-card { color: inherit; }

.yd-inst-card:hover {
  opacity: 1;
  border-color: rgba(211, 248, 90, 0.15);
}
.yd-inst-show-all { text-decoration: none; display: inline-block; }

.yd-inst-num {
  font-family: var(--yd-font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.yd-inst-text {
  font-size: 13px;
  color: var(--yd-text-secondary);
  line-height: 1.4;
}

.yd-inst-show-all {
  color: var(--yd-accent);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  transition: text-shadow 0.3s ease;
}

.yd-inst-show-all:hover {
  text-shadow: 0 0 10px var(--yd-accent);
}

.yd-footer-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.yd-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.yd-footer-paybox {
  background: #171c36;
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.yd-footer-paybox-title {
  color: var(--yd-text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.yd-footer-info {
  background: #0f1225;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.yd-fi-copy {
  color: var(--yd-text-secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 50px;
}

.yd-fi-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.yd-fi-support-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.yd-fi-support-title span {
  color: var(--yd-accent);
}

.yd-fi-contacts {
  display: flex;
  gap: 12px;
}

.yd-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #202746;
  color: #fff !important;
  text-decoration: none !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.yd-btn-contact:hover {
  background: #2a3359;
}
.yd-btn-contact i {
  color: #0088cc;
}
.yd-btn-contact i.fa-envelope {
  color: #fff;
}

.yd-fi-links {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.yd-fi-links a {
  color: var(--yd-text-secondary) !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none !important;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.yd-fi-links a:hover {
  color: #fff !important;
}

@media (max-width: 1400px) {
  .case-loop { grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; }
  .mystery-showcase-cases { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: 16px 12px !important; }
}
@media (max-width: 1200px) {
  .yd-cases-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 1024px) {
  .case-loop { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
  .mystery-showcase-cases { grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)) !important; gap: 14px 10px !important; }
}
@media (max-width: 768px) {
  .yd-cases-filter {
    padding: 12px 16px;
  }
  .yd-cf-left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .yd-cf-select {
    width: 100%;
  }
  .yd-cf-range {
    width: 100%;
    justify-content: space-between;
  }
  .yd-cf-slider-wrap {
    flex: 1;
    margin-left: 12px;
  }
}
@media (max-width: 900px) {
  .yd-footer-info {
    flex-direction: column;
    gap: 32px;
  }
  .yd-fi-right {
    align-items: flex-start;
  }
  .yd-fi-copy {
    margin-top: 0;
  }
  .yd-inst-card {
    width: calc(50% - 16px);
  }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 12px; }
  .header-menu-desktop { display: none !important; }
  .case-loop:not(.case-loop--mystery-showcase) { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .mystery-showcase-cases { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px 8px !important; }
  .mystery-showcase-shell {
    padding: 16px 12px 20px;
    border-radius: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .case-loop.case-loop--mystery-showcase {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
  .container { padding: 0 12px 40px !important; }
  .promo-block { display: none !important; }
  .header-social-links { display: none !important; }
}

.telegram-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
}

.telegram-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

@media (max-width: 768px) {
  .telegram-float-btn {
    display: none !important;
  }
}
.mobile-app-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #1a1f3d 0%, #0d1225 100%);
  padding: 10px 12px;
  z-index: 9999;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-app-close {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-app-icon {
  width: 40px;
  height: 40px;
  background: #d3f85a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mobile-app-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mobile-app-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mobile-app-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-app-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.2;
}

.mobile-app-btn {
  background: #d3f85a;
  color: #0a0e1f;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-header {
  display: none;
}

.mobile-skin-strip {
  display: none;
  background: #0a0c14;
  padding: 8px 0;
  margin-top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-skin-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 12px;
}

.mobile-skin-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-skin-card {
  width: 70px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(236,67,60,0.3) 0%, rgba(20,24,48,0.9) 100%);
  border: 1px solid rgba(236,67,60,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-skin-card img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.mobile-telegram-section {
  display: none;
  padding: 12px;
  margin-top: 8px;
}

.mobile-telegram-card {
  display: block;
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.mobile-telegram-card .tg-mascot {
  position: absolute;
  right: -8px;
  bottom: -5px;
  height: 140px;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.mobile-telegram-card .mt-content {
  position: relative;
  z-index: 1;
}

.mobile-telegram-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(100, 181, 246, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.mt-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  height: 100%;
  padding-right: 120px;
  box-sizing: border-box;
}

.mt-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mt-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.mt-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

.mt-btn {
  background: #d3f85a;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  text-transform: uppercase;
  width: fit-content;
  margin-top: 8px;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #141830;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 8px 4px max(8px, env(safe-area-inset-bottom, 8px));
  z-index: 1000;
  justify-content: space-around;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  overflow: visible;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #555a73;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  transition: color 0.2s;
  min-width: 56px;
}

.mobile-nav-item.active {
  color: #d3f85a;
}

.mobile-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: transparent;
  color: #555a73;
  transition: all 0.2s;
}

.mobile-nav-item.active .mobile-nav-icon {
  color: #d3f85a;
}

.mobile-nav-item:has(.cases-icon) {
  position: relative;
  z-index: 10;
  margin-top: -20px;
}
.mobile-nav-icon.cases-icon {
  background: linear-gradient(135deg, #d3f85a, #b8e030);
  color: #0a0e1f !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 16px rgba(211, 248, 90, 0.3);
  border: 4px solid #141830;
}

.mobile-nav-icon.support-icon {
  color: inherit;
}

@media (max-width: 768px) {
  .mobile-app-banner {
    display: none !important;
  }
  .mobile-skin-strip {
    display: block;
    z-index: 88;
    position: relative;
  }
  .mobile-telegram-section {
    display: block;
    position: relative;
    z-index: 98;
  }
  .mobile-bottom-nav {
    display: flex;
    z-index: 1000;
  }
  
  .container {
    position: relative;
    z-index: 1;
    padding: 0 12px 20px;
  }
  
  .wrap {
    padding-top: 0;
    padding-bottom: 80px;
  }
  
  .yd-footer-wrapper {
    display: none;
  }
  /* Важно: селектор с двумя классами — иначе .header-inner.header-desktop { display:grid } сильнее .header-desktop { display:none } */
  .header-inner.header-desktop {
    display: none !important;
  }
  
  .case-loop:not(.case-loop--mystery-showcase) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    position: relative;
    z-index: 1;
  }
  
  .case {
    padding: 12px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
  }
  
  .case-img {
    height: 80px;
  }
  
  .case-name {
    font-size: 11px;
    margin: 8px 0;
  }
  
  .case-price-pill {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .case-title, .case-title2 {
    font-size: 16px;
    margin: 16px 0 8px;
    position: relative;
    z-index: 1;
  }
  
  .case-title-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
  }
  
  .yd-cases-filter {
    display: none;
  }
  
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    background: #0a0c14;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    top: auto;
    z-index: 1000;
  }
  
  .mobile-logo {
    display: flex;
    align-items: center;
  }
  
  .mobile-logo img {
    height: 32px;
    width: auto;
  }
  
  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-online-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(25, 31, 64, 0.6);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
  }
  
  .online-dot {
    width: 8px;
    height: 8px;
    background: #ec433c;
    border-radius: 50%;
    box-shadow: 0 0 6px #ec433c;
  }
  
  .online-count {
    font-weight: 700;
  }
  
  .online-text {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
  }
  
  .mobile-login-text {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-right: 4px;
  }
  
  .mobile-social-btns {
    display: flex;
    gap: 4px;
  }
  
  .mobile-social-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
  }
  
  .mobile-social-btn.vk {
    background: #4a76a8;
  }
  
  .mobile-social-btn.steam {
    background: #1b2838;
  }
  
  .mobile-social-btn.telegram {
    background: #0088cc;
  }
  
  .mobile-user-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d3f85a;
    border: none;
    color: #0a0e1f;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d3f85a;
  }
  
  .mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .mobile-balance {
    background: rgba(25, 31, 64, 0.8);
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
  }
  
  .mobile-menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(25, 31, 64, 0.8);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
  }
}

/* Fix mobile.css breaking cp-rulet-wrap roulette */
.cp-rulet-wrap .cp-rulet-row {
  width: auto !important;
  height: auto !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  display: block !important;
  box-sizing: border-box !important;
  /* all.css: фон rulet.png и псевдо PNG (rulet2 / rulet-row) — старый «прицел» */
  background: none !important;
  background-image: none !important;
}

.cp-rulet-wrap .cp-rulet-row::before,
.cp-rulet-wrap .cp-rulet-row::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
  background: none !important;
  background-image: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  border: none !important;
}

.cp-rulet-wrap .cp-rulet-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  position: relative !important;
  left: 0 !important;
}
.cp-rulet-wrap .cp-rulet-track {
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cp-rulet-wrap .cp-rulet-strip::before,
.cp-rulet-wrap .cp-rulet-strip::after {
  display: none !important;
  content: none !important;
}

/* === Mobile: full responsive === */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: transparent; }
  .case, .inv-card, .cx-btn { -webkit-touch-callout: none; user-select: none; }
  .case:hover { transform: none !important; }
  .case:hover .case-images img { transform: none !important; }
  .case:hover .case-price-pill { transform: none !important; box-shadow: none !important; }
  .cp-item:hover { transform: none !important; box-shadow: none !important; }
  .cp-strip__card:hover { transform: none !important; }
  .inv-card:hover { transform: none !important; }
  .live-card:hover .card-front,
  .live-card:hover .card-back,
  .live-card:hover .weapon-image { transform: none !important; }

  /* Main page: cases grid (мистери — блок, один ребёнок, не 2-колоночный grid) */
  .case-loop:not(.case-loop--mystery-showcase) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 0 24px !important;
  }
  .case-images {
    height: 140px !important;
  }
  .case-images img {
    max-height: 120px !important;
  }
  .case-name {
    font-size: 11px !important;
    max-width: 100% !important;
  }
  .case-price-pill {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }
  .case-title, .case-title2 {
    font-size: 16px !important;
    margin: 24px 0 16px !important;
  }

  /* Filter */
  .yd-cases-filter {
    padding: 10px 12px !important;
    gap: 10px !important;
    flex-direction: column !important;
  }
  .yd-cf-select { width: 100% !important; font-size: 12px !important; }

  /* Live ribbon - compact mobile */
  .live-ribbon {
    height: auto !important;
    padding: 4px 6px !important;
    gap: 0 !important;
    border-bottom: none !important;
  }
  .live-tabs { display: none !important; }
  .live-card {
    width: 68px !important;
    height: 48px !important;
    border-radius: 7px !important;
    border-width: 2px !important;
  }
  .live-card .card-front { padding: 0 !important; align-items: center !important; justify-content: center !important; }
  .live-card .weapon-text { display: none !important; }
  .live-card .weapon-image { position: static !important; transform: none !important; width: 52px !important; height: 36px !important; right: auto !important; top: auto !important; }
  .live-card .weapon-image img { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) !important; }
  .live-card .card-back { display: none !important; }
  .live-tab { display: none !important; }

  /* Instructions */
  .yd-instructions { display: none !important; }

  /* Footer: hidden on mobile */
  .yd-footer-wrapper { display: none !important; }

  /* Telegram float */
  .telegram-float-btn { display: none !important; }

  /* Bottom padding for bottom nav */
  .container { padding-bottom: 80px !important; }
}

/* Small phones (iPhone SE, Galaxy S8) */
@media (max-width: 375px) {
  .case-loop:not(.case-loop--mystery-showcase) {
    gap: 6px !important;
  }
  .case-images {
    height: 110px !important;
  }
  .case-images img {
    max-height: 95px !important;
  }
  .case-name { font-size: 10px !important; }
  .case-price-pill { font-size: 10px !important; padding: 4px 10px !important; }
  .live-ribbon { height: auto !important; padding: 4px 6px !important; border-bottom: none !important; }
  .live-card { width: 68px !important; height: 48px !important; border-radius: 7px !important; border-width: 2px !important; }
  .live-card .card-front { padding: 0 !important; align-items: center !important; justify-content: center !important; }
  .live-card .weapon-text { display: none !important; }
  .live-card .weapon-image { position: static !important; transform: none !important; width: 52px !important; height: 36px !important; right: auto !important; top: auto !important; }
  .live-card .card-back { display: none !important; }
  .nc-home-game { padding: 8px 10px !important; }
  .nc-home-game-icon { width: 30px !important; height: 30px !important; }
  .nc-home-game-name { font-size: 11px !important; }
  .nc-home-game-desc { display: none !important; }
  .mobile-bottom-nav { height: 56px !important; }
  .mobile-nav-item span { font-size: 9px !important; }
}

/* Large phones (S24 Ultra, iPhone 15 Pro Max: 430px+) */
@media (min-width: 430px) and (max-width: 768px) {
  .case-loop:not(.case-loop--mystery-showcase) {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  .case-images { height: 160px !important; }
  .case-images img { max-height: 140px !important; }
}

/* Главная: мистери на всю ширину (один child в .case-loop не в 2-кол. grid) + крупнее карточки */
@media (max-width: 1024px) {
  .case-loop.case-loop--mystery-showcase {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: unset !important;
  }
  .index-page .case-loop:not(.case-loop--mystery-showcase) .case-images {
    height: 150px !important;
    min-height: 110px !important;
  }
  .index-page .case-loop:not(.case-loop--mystery-showcase) .case-images img {
    max-height: 136px !important;
  }
  .mystery-showcase-cases .case-images {
    height: 180px !important;
    min-height: 140px !important;
  }
  .mystery-showcase-cases .case-images img {
    max-height: 166px !important;
    max-width: 100% !important;
  }
  .mystery-showcase-cases .case-name {
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: unset !important;
    line-height: 1.28 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    min-height: 3.6em !important;
    padding: 0 2px !important;
  }
  .mystery-showcase-cases .case-price-pill {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}

@media (max-width: 768px) {
  .index-page .case-loop:not(.case-loop--mystery-showcase) .case-images {
    height: 154px !important;
  }
  .index-page .case-loop:not(.case-loop--mystery-showcase) .case-images img {
    max-height: 132px !important;
  }
  .mystery-showcase-cases .case-images {
    height: 172px !important;
    min-height: 140px !important;
  }
  .mystery-showcase-cases .case-images img {
    max-height: 158px !important;
  }
}

/* Battle cases: мобиле — не жмём scale(0.38) как на странице кейса, карточки и подписи крупнее */
@media (max-width: 768px) {
  .battle-page .rulet {
    width: 1020px !important;
    height: 228px !important;
    transform: translateX(-50%) scale(0.74) !important;
    transform-origin: center top !important;
    margin-bottom: -56px !important;
  }
  .battle-page .rulet2 {
    min-height: 200px !important;
  }
  .battle-page .rulet-ul .item .item-wp {
    height: 104px !important;
    min-height: 104px !important;
  }
  .battle-page .rulet-ul .item .item-wp img {
    max-width: 118px !important;
    max-height: 96px !important;
  }
  .battle-page .rulet-ul .item .item-name1 {
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #e8eaf0 !important;
    max-height: 3.2em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    padding: 0 6px !important;
    text-align: center !important;
  }
  .battle-page .vs-divider {
    margin: 10px 0;
  }
  .battle-page .roulette-label {
    margin: 10px 0 6px;
  }
  .battle-page .battle-round {
    margin-bottom: 18px;
  }
}

/* Upgrade: мобильная сетка и отступы (upgrade-page-new не попадает под старые .upgrade-page правила) */
@media (max-width: 768px) {
  .upgrade-page-new {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .upgrade-page-new .upg-layout {
    gap: 18px !important;
    max-width: 100% !important;
  }
  .upgrade-page-new .upg-panel {
    padding: 16px 14px !important;
  }
  .upgrade-page-new .upg-subtitle {
    font-size: 12px !important;
    line-height: 1.45 !important;
    max-width: 28em;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .upgrade-page-new .upg-center {
    gap: 12px !important;
  }
  .upgrade-page-new .upg-pedestal--side {
    width: min(260px, 92vw) !important;
    max-width: min(260px, 92vw) !important;
    height: 248px !important;
  }
  .upgrade-page-new .upg-knife-inner {
    width: 168px !important;
    height: 122px !important;
  }
  .upgrade-page-new .upg-stoyka-base {
    width: 220px !important;
  }
  .upgrade-page-new .upg-actions {
    max-width: min(340px, 100%) !important;
    margin-top: 12px !important;
  }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .case:hover { transform: none !important; }
  .case:hover .case-images img { transform: none !important; }
  .live-card:hover .card-front,
  .live-card:hover .card-back { transform: none !important; }
  .fast-reveal-img { animation: none !important; }
  .fast-reveal-glow { animation: none !important; }
  .page-loader { display: none !important; }
}

/* Save battery on low-end devices */
@media (prefers-reduced-motion: reduce), (update: slow) {
  .cp-rulet-wrap .cp-rulet-strip .item { transition: none !important; }
  .case-glow-bg { display: none !important; }
  .loader-ring, .loader-glow, .loader-arc { animation: none !important; }
  .mobile-bottom-nav, .case-prize-overlay, .sell-modal-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 768px) {
  .header-wrapper,
  #header-data-id,
  .yd-hero__btn,
  .yd-hero__dots {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .case-images img,
  .case--mystery .case-images img {
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
  }

  .case-glow-bg {
    display: none;
  }
}

/*
 * Рулетка кейса: дубль правил из case.css (на проде /css/case.css может отдаваться как HTML).
 */
.cp-rulet-wrap--rolling .cp-rulet-strip .item,
.cp-rulet-wrap .cp-rulet-strip .item {
  opacity: 1 !important;
}
.cp-rulet-wrap--finished .cp-rulet-strip .item:not(.item--winner) {
  opacity: 0.2 !important;
}
.cp-rulet-pointer {
  z-index: 60 !important;
}
.cp-rulet-pointer::before,
.cp-rulet-pointer::after {
  display: none !important;
  content: none !important;
}
