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

/* GPU-accelerated containers */
.case-loop, .cp-rulet-wrap, .live-track, .cp-items-grid, .nav-cards-grid {
  contain: layout style;
}
.case, .live-card, .cp-item, .inv-card {
  contain: layout style paint;
  will-change: transform;
}
.case-images img, .cp-rulet-wrap .rulet-ul {
  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 */
img { content-visibility: auto; }

:root {
  --cr-bg-primary: #08060e;
  --cr-bg-secondary: #0e0b18;
  --cr-bg-card: #141024;
  --cr-bg-elevated: #1a1530;
  --cr-accent: #a855f7;
  --cr-accent-hover: #c084fc;
  --cr-text-primary: #ffffff;
  --cr-text-secondary: #9590ad;
  --cr-text-muted: #554f6e;
  --cr-border: rgba(138,120,200,0.12);
  --cr-radius: 14px;
  --cr-radius-sm: 8px;
  --cr-font: 'Gotham', 'Gotham SSm', 'Gotham Pro', 'Avenir Next', 'Segoe UI', sans-serif;
  --cr-display-font: var(--cr-font);
  --cr-body-font: var(--cr-font);
  --cr-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

body {
  background: var(--cr-bg-primary) !important;
  color: var(--cr-text-primary);
  font-family: var(--cr-font) !important;
  line-height: 1.48;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

#app, .wrap {
  background: var(--cr-bg-primary) !important;
  min-height: 100vh;
}

a { color: inherit; }

.header-wrapper,
#header-data-id {
  background: #06050c !important;
  border-bottom: 1px solid rgba(90, 50, 140, 0.25);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(130, 80, 200, 0.08), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: 1720px;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
}

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

.header-online {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

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

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

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

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

.social-link {
  width: 32px;
  height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(80, 50, 130, 0.25);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
}

.social-link:hover {
  background: rgba(100, 50, 180, 0.1);
  border-color: rgba(120, 60, 200, 0.35);
}

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

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

.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: 10px;
  background: rgba(100, 50, 180, 0.08);
  border: 1px solid rgba(80, 50, 130, 0.3);
  border-radius: 6px;
  padding: 5px 8px 5px 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

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

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

.login-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(80, 50, 130, 0.25);
}

.login-btn-text {
  color: var(--cr-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: 1720px;
  margin-left: auto;
  margin-right: auto;
}

.live-feed-tab-items {
  display: flex;
  gap: 4px;
  background: var(--cr-bg-card);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--cr-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(--cr-bg-card);
  border-radius: 10px;
  border: 1px solid var(--cr-border);
  overflow: hidden;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 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(--cr-text-secondary);
  font-size: 9px;
  margin-top: 2px;
}

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

.promo-banner-wrap {
  max-width: 1720px;
  margin: 0 auto;
  border-radius: 0 0 var(--cr-radius) var(--cr-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: 1720px !important;
  margin: 0 auto !important;
  padding: 0 40px 60px !important;
}

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

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

.yd-cf-select {
  position: relative;
  background: #1c1530;
  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: #231a3a;
}

.yd-cf-select.active {
  border-color: rgba(168, 85, 247, 0.3);
  background: #231a3a;
}

.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: #9590ad;
  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: #1c1530;
  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: #9590ad;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.5px;
}

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

.yd-cf-dropdown-item.active {
  color: #a855f7;
  background: rgba(168, 85, 247, 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: #1c1530;
  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: #9590ad;
}

.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: #a855f7;
  border-radius: 2px;
  pointer-events: none;
}

.yd-cf-slider-handle {
  width: 16px;
  height: 16px;
  background: #a855f7;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 0 0 10px rgba(168,85,247,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(168,85,247,0.8);
}

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

.yd-cf-reset {
  background: transparent;
  border: none;
  color: #9590ad;
  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: #1c1530;
  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: #a855f7;
}

.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: #9590ad;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-title, .case-title2 {
  font-family: var(--cr-font) !important;
  line-height: 1.48;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--cr-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(--cr-text-muted);
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}

button, input, select, textarea {
  font-family: var(--cr-font) !important;
  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(5, 1fr) !important;
  gap: 28px !important;
  padding: 0 0 60px !important;
  margin: 0 !important;
  max-width: 1720px;
  justify-items: center;
}

.case {
  position: relative;
  background: transparent !important;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  width: 100%;
}

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

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

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

.case-images img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
  transition: transform 0.4s ease;
  z-index: 2;
}

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

.case:hover .case-images img {
  transform: scale(1.1) translateY(-5px);
}

.case-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 1;
  transition: transform 0.3s ease, background 0.3s ease;
}

.case:hover .case-glow-bg {
  transform: translate(-50%, -50%) scale(1.14);
  background: radial-gradient(circle, rgba(168,85,247,0.2) 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(--cr-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(--cr-accent) !important;
  color: #0a0610 !important;
  font-family: var(--cr-font);
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(168,85,247,0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 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(--cr-accent-hover) !important;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(168,85,247,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;
}

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

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

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

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

.item-title span {
  font-family: var(--cr-font) !important;
  line-height: 1.48;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  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: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  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: var(--cr-font);
  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: #a855f7; 
  --rarity-glow: rgba(168, 85, 247, 0.3);
  border-bottom: 2px solid #a855f7 !important;
}

.c-title {
  text-align: center;
  margin: 24px 0 16px;
}
.c-title span {
  font-family: var(--cr-font) !important;
  line-height: 1.48;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  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(--cr-border) !important;
  color: var(--cr-text-secondary) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 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(168, 85, 247, 0.12) !important;
  color: #a855f7 !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
}
ul.case-x-v2 li.active,
ul.case-x-v2 li.active:hover {
  background: rgba(168, 85, 247, 0.1) !important;
  color: #a855f7 !important;
  -webkit-text-fill-color: #a855f7 !important;
  border-color: #a855f7 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 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: #a855f7 !important;
}

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

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

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

.rulet {
  margin-bottom: 16px;
}

.rulet2 {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--cr-border);
  background: var(--cr-bg-secondary);
}

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

.top-drop-title {
  font-family: var(--cr-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(--cr-accent);
  font-size: 16px;
}

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

.ftext {
  max-width: 1720px;
  margin: 0 auto;
  text-align: center;
}

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

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

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

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

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

.btn {
  border: none !important;
  border-radius: var(--cr-radius-sm) !important;
  font-family: var(--cr-font) !important;
  line-height: 1.48;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.vue-notification {
  background: var(--cr-bg-elevated) !important;
  border: 1px solid var(--cr-border) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-family: var(--cr-font) !important;
  line-height: 1.48;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  box-shadow: var(--cr-shadow) !important;
}

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

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

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

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

.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 130px minmax(172px, auto);
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 40px;
  align-items: stretch;
  justify-items: stretch;
}

.nav-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, #191f40 0%, #0e0b18 100%);
  border: 1px solid var(--cr-border);
  padding: 20px;
  display: flex !important;
  flex-direction: column;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-color: rgba(168,85,247,0.2);
}

.tall-card {
  grid-row: span 2;
}

.wide-card {
  grid-column: span 2;
}

.nc-content {
  position: relative;
  z-index: 2;
}

.nc-title {
  font-family: var(--cr-font);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.nc-title i {
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.nav-card:hover .nc-title i {
  transform: translateX(4px);
  background: rgba(168,85,247,0.2);
  color: var(--cr-accent);
}

.nc-subtitle {
  font-size: 12px;
  color: var(--cr-text-secondary);
  line-height: 1.4;
  max-width: 70%;
}

.card-telegram .nc-subtitle {
  max-width: 100%;
  margin-bottom: 16px;
}

.nc-btn {
  display: inline-block;
  background: #a855f7;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-transform: uppercase;
}

.card-cases     { background: url('/images/cases/caserace-case.svg') right -20px bottom -10px / 55% no-repeat, linear-gradient(135deg, rgba(39,26,86,1) 0%, rgba(11,10,28,1) 100%); }
.card-upgrade   { background: linear-gradient(135deg, rgba(56,28,104,1) 0%, rgba(15,11,36,1) 100%); overflow: hidden; }
.nc-upgrade-icon {
  position: absolute;
  bottom: -10px;
  right: -5px;
  width: 140px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.card-upgrade:hover .nc-upgrade-icon {
  transform: scale(1.08) translateY(-4px);
  opacity: 1;
}
.nc-upgrade-main {
  position: relative;
}
.card-contracts { background: url('/images/nav/contracts-main-imagegen.webp') right bottom / 45% no-repeat, linear-gradient(135deg, rgba(43,27,98,1) 0%, rgba(10,11,31,1) 100%); }
.card-free      { background: url('/images/caserace-money.svg') right 20px bottom 50% / 35% no-repeat, linear-gradient(135deg, rgba(62,33,116,1) 0%, rgba(14,10,31,1) 100%); }
.card-shop      { background: url('/images/nav/shop.webp') right bottom / 45% no-repeat, linear-gradient(135deg, rgba(53,25,92,1) 0%, rgba(15,11,35,1) 100%); }
.card-fortune   { background: url('/images/nav/fortune-imagegen.webp') right 20px bottom 50% / 35% no-repeat, linear-gradient(135deg, rgba(36,27,99,1) 0%, rgba(10,13,34,1) 100%); }
.nav-card.wide-card.card-games.nc-home-games {
  background: linear-gradient(145deg, #0f1228 0%, #151a36 100%) !important;
  background-image: none !important;
}
.card-games {
  background: linear-gradient(145deg, #0f1228 0%, #151a36 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  border-color: rgba(168, 85, 247, 0.12);
}
.nc-home-games {
  height: 100%;
}
.nc-home-games-inner {
  padding: 14px 18px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
.nc-home-games-head {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  text-align: center;
  margin-bottom: 2px;
}
.nc-home-games-head:hover .nc-home-games-title i {
  transform: translateX(4px);
  background: rgba(168, 85, 247, 0.2);
  color: var(--cr-accent);
}
.nc-home-games-title {
  font-family: var(--cr-font);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f5f0ff;
}
.nc-home-games-title i {
  font-size: 14px;
  -webkit-text-fill-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.nc-home-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  align-items: stretch;
}
.nc-home-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none !important;
  color: #fff !important;
  border: 1px solid rgba(146, 151, 178, 0.15);
  background: rgba(21, 26, 54, 0.75);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 0;
}
.nc-home-game::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.2s;
}
.nc-home-game:hover {
  transform: translateY(-2px);
}
.nc-home-game:hover::before {
  opacity: 0.2;
}
.nc-home-game--crash { border-color: rgba(236, 67, 60, 0.45); }
.nc-home-game--crash::before { background: radial-gradient(circle at 30% 50%, #ec433c 0%, transparent 65%); }
.nc-home-game--mines { border-color: rgba(168, 85, 247, 0.4); }
.nc-home-game--mines::before { background: radial-gradient(circle at 30% 50%, #a855f7 0%, transparent 65%); }
.nc-home-game--roulette { border-color: rgba(108, 92, 231, 0.45); }
.nc-home-game--roulette::before { background: radial-gradient(circle at 30% 50%, #6c5ce7 0%, transparent 65%); }
.nc-home-game--battle { border-color: rgba(192, 132, 252, 0.45); }
.nc-home-game--battle::before { background: radial-gradient(circle at 30% 50%, #c084fc 0%, transparent 65%); }
.nc-home-game-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
}
.nc-home-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.nc-home-game--crash .nc-home-game-icon { background: none; color: #ec433c; }
.nc-home-game--mines .nc-home-game-icon { background: none; color: #a855f7; }
.nc-home-game--roulette .nc-home-game-icon { background: none; color: #6c5ce7; }
.nc-home-game--battle .nc-home-game-icon { background: none; color: #c084fc; }
.nc-home-game-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.nc-home-game-name {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.2;
}
.nc-home-game-desc {
  font-size: 10px;
  color: var(--cr-text-secondary);
  line-height: 1.3;
}

.nc-halava-wrap .nc-content.nc-halava {
  padding: 16px 18px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}
a.nav-card.nc-halava-wrap {
  text-decoration: none !important;
  color: inherit !important;
}
.nc-halava-head {
  text-decoration: none !important;
  color: inherit;
  display: block;
}
.nc-halava-wrap:hover .nc-halava .nc-title i,
.nc-halava-wrap.router-link-active .nc-halava .nc-title i {
  transform: translateX(4px);
  background: rgba(168, 85, 247, 0.2);
  color: var(--cr-accent);
}
.nc-halava-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.nc-halava-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
  text-decoration: none !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--cr-font);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.nc-halava-tile i {
  font-size: 18px;
  color: #a855f7;
  opacity: 0.95;
}
.nc-halava-tile-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.nc-halava-tile--steam .nc-halava-tile-img {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.nc-halava-tile:hover {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
}

.nc-upgrade-wrap {
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.nc-upgrade-main {
  flex: 1;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  padding: 20px 16px 20px 20px;
  min-height: 0;
  box-sizing: border-box;
}
.nc-upgrade-main .nc-content {
  width: 100%;
}
.card-cases .nc-content,
.card-upgrade .nc-content,
.card-telegram .nc-content {
  padding: 20px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
}

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

.telegram-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
  z-index: 1;
}

.telegram-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  max-width: 58%;
  padding-right: 8px;
}

.telegram-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 4px;
}

.telegram-subtitle {
  font-size: 12px !important;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.4;
  max-width: 100% !important;
  margin-bottom: 12px;
}

.telegram-btn {
  background: #a855f7 !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-telegram {
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  position: relative;
  overflow: hidden;
  align-self: stretch;
  justify-self: stretch;
  display: flex;
}

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

.card-telegram:hover {
  border-color: rgba(255,255,255,0.3) !important;
  box-shadow: 0 16px 40px rgba(30, 136, 229, 0.3) !important;
}

.card-telegram .tg-mascot {
  position: absolute;
  right: -10px;
  bottom: -5px;
  height: 90%;
  max-height: 220px;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.card-telegram .telegram-text {
  position: relative;
  z-index: 1;
}

.nc-progress {
  display: none !important;
}

.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: 1720px;
  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;
}

.yd-inst-card:hover {
  opacity: 1;
}

.yd-inst-num {
  font-family: var(--cr-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(--cr-text-secondary);
  line-height: 1.4;
}

.yd-inst-show-all {
  color: var(--cr-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(--cr-accent);
}

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

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

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

.yd-footer-paybox-title {
  color: var(--cr-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(--cr-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(--cr-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(--cr-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) {
  .nav-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 120px 120px minmax(168px, auto);
  }
  .nc-home-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-loop { grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; }
}
@media (max-width: 1200px) {
  .cr-cases-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 1024px) {
  .nav-cards-grid {
    display: none !important;
  }
  .tall-card { grid-row: span 1; min-height: 120px; }
  .case-loop { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 768px) {
  .cr-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 { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .container { padding: 0 12px 40px !important; }
  .promo-block { display: none !important; }
  .header-social-links { display: none !important; }
}
@media (max-width: 600px) {
  .nav-cards-grid { 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: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s 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: #a855f7;
  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: #a855f7;
  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: #a855f7;
  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: max(8px, env(safe-area-inset-bottom, 8px));
  left: 10px;
  right: 10px;
  background: rgba(10, 14, 31, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 10px 8px;
  z-index: 9998;
  justify-content: space-around;
  align-items: center;
  border: 1px solid rgba(168, 85, 247, 0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  transition: color 0.2s;
}

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

.mobile-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-item.active .mobile-nav-icon {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.mobile-nav-icon.cases-icon {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: #13091f;
  width: 36px;
  height: 36px;
  font-size: 15px;
  margin-top: -8px;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.mobile-nav-icon.support-icon {
  background: #6c5ce7;
  color: #fff;
}

@media (max-width: 768px) {
  .mobile-app-banner {
    display: none !important;
  }
  .mobile-skin-strip {
    display: block;
    z-index: 99;
    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-desktop {
    display: none !important;
  }
  
  .live-ribbon {
    display: none;
  }
  
  .nav-cards-grid {
    display: none !important;
  }
  
  .case-loop {
    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);
  }
  
  .cr-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: sticky;
    top: 0;
    z-index: 90;
  }
  
  .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.steam {
    background: #1b2838;
  }
  
  .mobile-social-btn.telegram {
    background: #0088cc;
  }
  
  .mobile-user-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #a855f7;
    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 #a855f7;
  }
  
  .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 .rulet {
  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;
}
.cp-rulet-wrap .rulet-ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  position: relative !important;
  left: 0 !important;
}
.cp-rulet-wrap .rulet2 {
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* === Mobile: full responsive === */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: transparent; }
  .case, .inv-card, .cx-btn, .nav-card { -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 */
  .case-loop {
    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;
  }

  /* Games grid on main */
  .nc-home-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .nc-home-game {
    padding: 10px 12px !important;
    min-height: 0 !important;
  }
  .nc-home-game-icon {
    width: 36px !important;
    height: 36px !important;
  }
  .nc-home-game-name { font-size: 12px !important; }
  .nc-home-game-desc { font-size: 10px !important; }
  .nc-home-games-title { font-size: 16px !important; }

  /* Filter */
  .cr-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 */
  .live-ribbon {
    height: 70px !important;
    padding: 0 8px !important;
    gap: 8px !important;
  }
  .live-card {
    width: 120px !important;
    height: 60px !important;
  }
  .live-tab { width: 36px !important; height: 36px !important; }
  .live-tab span { font-size: 8px !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 {
    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: 60px !important; }
  .live-card { width: 100px !important; height: 52px !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 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  .case-images { height: 130px !important; }
  .case-images img { max-height: 110px !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 .rulet-ul .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;
  }
}

:root {
  --cr-bg-primary: #08060e;
  --cr-bg-secondary: #10152b;
  --cr-bg-elevated: #141b38;
  --cr-bg-panel: rgba(20, 27, 56, 0.86);
  --cr-bg-glass: rgba(16, 21, 43, 0.78);
  --cr-accent: #a855f7;
  --cr-accent-hover: #c084fc;
  --cr-support: #8b5cf6;
  --cr-text-primary: #f8fbff;
  --cr-text-secondary: #9aa5c3;
  --cr-text-muted: #65708f;
  --cr-border: rgba(154, 165, 195, 0.16);
  --cr-radius-xl: 32px;
  --cr-radius-lg: 24px;
  --cr-radius-md: 18px;
  --cr-radius-sm: 12px;
  --cr-shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.45);
  --cr-shadow-md: 0 18px 48px rgba(0, 0, 0, 0.28);
  --cr-display-font: var(--cr-font);
  --cr-body-font: var(--cr-font);
}

html,
body {
  min-width: 0 !important;
  background:
    radial-gradient(circle at top right, rgba(35, 164, 255, 0.16), transparent 34%),
    radial-gradient(circle at left 18%, rgba(168, 85, 247, 0.12), transparent 28%),
    linear-gradient(180deg, #080c1a 0%, #0b1020 28%, #0a0e1f 100%) !important;
  color: var(--cr-text-primary);
  font-family: var(--cr-body-font) !important;
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
}

button, input, select, textarea {
  font-family: var(--cr-font) !important;
  letter-spacing: 0;
}

body.is-shell-locked {
  overflow: hidden !important;
}

.header-layer {
  position: relative;
  z-index: 3000;
}

#app.wrap > .header-layer {
  z-index: 3000;
}

#app,
.wrap {
  background: transparent !important;
  min-height: 100vh;
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.shell-main {
  position: relative;
  z-index: 1;
  width: 100%;
}

.shell-view {
  width: 100%;
}

.cases-stage,
.cases-spotlight,
.catalog-toolbar,
.catalog-shelf,
.catalog-empty-state {
  max-width: 1840px;
  margin-left: auto;
  margin-right: auto;
}

.shell-view > .container:not(.home-page) {
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px 40px 64px;
}

.shell-section {
  position: relative;
  z-index: 1;
}

.shell-section__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 40px;
}

.shell-section__heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.shell-section__title,
.home-section-head__title,
.lives-feed__title {
  margin: 0;
  font-family: var(--cr-display-font);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  color: var(--cr-text-primary);
}

.shell-section__copy,
.home-section-head__copy {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cr-text-secondary);
}

.header-wrapper.header-shell,
#header-data-id.header-shell {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: auto;
  min-height: 56px;
  background: #07060d !important;
  border-bottom: 1px solid rgba(80, 40, 130, 0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(100, 50, 170, 0.1), 0 2px 12px rgba(0, 0, 0, 0.6);
}

.header-shell .header-inner {
  max-width: 1760px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.header-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  white-space: nowrap;
}

.header-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.header-status-label {
  font-size: 12px;
  color: var(--cr-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-status-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--cr-text-primary);
}

.header-primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  color: rgba(180, 175, 200, 0.75);
  transition: color 0.15s ease, background 0.15s ease;
  border: none;
  letter-spacing: 0.02em;
}

.header-nav-link:hover,
.header-nav-link.is-active,
.header-primary-nav .router-link-active,
.header-primary-nav .router-link-exact-active {
  color: #fff;
  background: rgba(120, 60, 200, 0.12);
}

.header-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-utility-link,
.header-sound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  color: var(--cr-text-secondary);
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.header-utility-link:hover,
.header-utility-link.is-active,
.header-utilities .router-link-active,
.header-utilities .router-link-exact-active,
.header-sound-btn:hover {
  color: var(--cr-text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(154, 165, 195, 0.16);
}

.header-sound-btn {
  gap: 8px;
  cursor: pointer;
}

.header-social-link {
  width: 32px;
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(80, 50, 130, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(180, 175, 200, 0.6) !important;
  text-decoration: none !important;
  font-size: 13px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.header-social-link:hover {
  border-color: rgba(130, 80, 200, 0.4);
  background: rgba(120, 60, 200, 0.1);
  color: #c4b5fd !important;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-bonus-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(80, 50, 130, 0.3);
  background: rgba(100, 50, 180, 0.08);
  color: var(--cr-text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.header-bonus-chip:hover {
  border-color: rgba(130, 80, 200, 0.45);
  background: rgba(100, 50, 180, 0.14);
}

.header-bonus-chip__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--cr-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.header-bonus-chip__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--cr-text-primary);
}

.header-auth-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(154, 165, 195, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.header-auth-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cr-text-secondary);
}

.header-auth-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-auth-link,
.header-logout-btn {
  width: 34px;
  height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cr-text-primary) !important;
  text-decoration: none !important;
  transition: transform 0.22s ease, background 0.22s ease;
}

.header-auth-link:hover,
.header-logout-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.header-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-balance-chip {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(154, 165, 195, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cr-text-primary);
  cursor: pointer;
}

.header-balance-chip__value {
  font-size: 14px;
  font-weight: 800;
  color: var(--cr-accent);
}

.header-balance-chip__action {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cr-accent);
  color: #0a0e1f;
  font-size: 20px;
  font-weight: 700;
}

.header-user-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(168, 85, 247, 0.26);
}

.header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-drawer-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cr-text-primary);
  font-size: 18px;
  cursor: pointer;
}

.header-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 19, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1190;
}

.header-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.header-drawer__panel {
  height: 100%;
  width: min(100vw, 520px);
  margin-left: auto;
  padding: 26px 22px calc(32px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 14, 31, 0.98), rgba(12, 19, 40, 0.98));
  border-left: 1px solid rgba(154, 165, 195, 0.16);
  box-shadow: var(--cr-shadow-lg);
  pointer-events: auto;
  overflow-y: auto;
}

.header-drawer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.header-drawer__title {
  margin: 0;
  font-family: var(--cr-display-font);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1;
}

.header-drawer__close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cr-text-primary);
}

.header-drawer__bonus {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(35, 164, 255, 0.06));
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--cr-text-primary);
  margin-bottom: 22px;
}

.header-drawer__bonus-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cr-accent);
}

.header-drawer__bonus-value {
  font-size: 15px;
  font-weight: 800;
}

.header-drawer__nav {
  display: grid;
  gap: 10px;
}

.header-drawer__nav-link {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(154, 165, 195, 0.12);
  text-decoration: none !important;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.header-drawer__nav-link span {
  display: block;
  font-family: var(--cr-display-font);
  font-size: 24px;
  color: var(--cr-text-primary);
  line-height: 1;
}

.header-drawer__nav-link small {
  display: block;
  margin-top: 8px;
  color: var(--cr-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.header-drawer__nav-link:hover,
.header-drawer__nav-link.is-active {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.header-drawer__utilities {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.header-drawer__utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(154, 165, 195, 0.12);
  color: var(--cr-text-primary) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
}

.header-drawer__utility-link.is-button {
  cursor: pointer;
}

.header-drawer__socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.header-drawer__social-link {
  flex: 1;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(154, 165, 195, 0.12);
  color: var(--cr-text-primary) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
}

.drawer-fade-enter-active,
.drawer-fade-leave-active {
  transition: opacity 0.25s ease;
}

.drawer-fade-enter,
.drawer-fade-leave-to {
  opacity: 0;
}

.drawer-panel-enter-active,
.drawer-panel-leave-active {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.drawer-panel-enter,
.drawer-panel-leave-to {
  opacity: 0;
}

.drawer-panel-enter .header-drawer__panel,
.drawer-panel-leave-to .header-drawer__panel {
  transform: translateX(28px);
}

.shell-loader {
  margin: 120px auto 0;
}

.shell-section--home-lives {
  padding-top: 18px;
}

.lives-feed {
  position: relative;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(35, 164, 255, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(17, 23, 46, 0.96), rgba(12, 18, 38, 0.96));
  border: 1px solid rgba(154, 165, 195, 0.14);
  box-shadow: var(--cr-shadow-md);
  overflow: hidden;
}

.lives-feed__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.lives-feed__heading {
  max-width: 680px;
}

.lives-feed__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lives-feed__tab {
  min-width: 76px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--cr-text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease;
}

.lives-feed__tab.is-active {
  background: var(--cr-accent);
  color: #0a0e1f;
}

.lives-feed__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(236px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.lives-feed__track::-webkit-scrollbar {
  display: none;
}

.lives-card {
  position: relative;
  min-height: 178px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, var(--lives-card-glow, rgba(60, 96, 252, 0.2)), transparent 36%),
    linear-gradient(180deg, rgba(18, 25, 50, 0.94), rgba(11, 16, 32, 0.96));
  border: 1px solid var(--lives-card-border, rgba(60, 96, 252, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.lives-card__art {
  position: absolute;
  top: 16px;
  right: 10px;
  width: 120px;
  height: 90px;
  pointer-events: none;
}

.lives-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.35));
}

.lives-card__body {
  position: relative;
  z-index: 1;
  max-width: 140px;
}

.lives-card__weapon {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cr-text-secondary);
}

.lives-card__skin {
  margin: 8px 0 20px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--cr-text-primary);
}

.lives-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lives-card__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.lives-card__user {
  font-size: 13px;
  font-weight: 700;
  color: var(--cr-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.lives-card__case {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  opacity: 0.72;
}

.lives-card__case img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lives-card--skeleton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.lives-card__skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  background-size: 200% 100%;
  animation: lives-shimmer 1.5s linear infinite;
}

.lives-card__skeleton--image {
  width: 118px;
  height: 78px;
}

.lives-card__skeleton--line {
  height: 14px;
  width: 75%;
}

.lives-card__skeleton--line.short {
  width: 48%;
}

.lives-feed__empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px dashed rgba(154, 165, 195, 0.24);
  color: var(--cr-text-secondary);
  font-size: 14px;
}

@keyframes lives-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.shell-section--trust {
  padding: 22px 0 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(17, 23, 46, 0.92), rgba(10, 15, 31, 0.96));
  border: 1px solid rgba(154, 165, 195, 0.14);
  box-shadow: var(--cr-shadow-md);
  text-decoration: none !important;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.18);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.trust-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--cr-accent);
  font-size: 20px;
}

.trust-card--support .trust-card__icon,
.trust-card--external .trust-card__icon {
  background: rgba(35, 164, 255, 0.14);
  color: var(--cr-support);
}

.trust-card__title {
  font-family: var(--cr-display-font);
  font-size: 24px;
  line-height: 1.1;
  color: var(--cr-text-primary);
}

.trust-card__copy {
  font-size: 14px;
  line-height: 1.65;
  color: var(--cr-text-secondary);
}

.shell-footer {
  margin-top: 28px;
  padding: 28px 0 calc(44px + env(safe-area-inset-bottom, 0px));
}

.shell-footer__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 40px;
}

.shell-footer__top {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(520px, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid rgba(154, 165, 195, 0.1);
}

.shell-footer__brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.shell-footer__logo img {
  height: 34px;
  width: auto;
}

.shell-footer__brand-copy {
  margin: 18px 0 0;
  max-width: 31ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cr-text-secondary);
}

.shell-footer__brand-note {
  max-width: 56ch;
  margin: 10px 0 0;
  color: rgba(231, 225, 214, 0.5);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.65;
}

.shell-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.shell-footer__social-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(192, 132, 252, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(231, 225, 214, 0.72) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.shell-footer__social-link i {
  color: #c084fc;
  font-size: 14px;
}

.shell-footer__social-link:hover {
  border-color: rgba(192, 132, 252, 0.32);
  background: rgba(192, 132, 252, 0.09);
  color: #fbf7ef !important;
  transform: translateY(-1px);
}

.shell-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 32px 72px;
}

.shell-footer__nav-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shell-footer__nav-title {
  margin: 0;
  color: rgba(248, 251, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.shell-footer__nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  color: var(--cr-text-secondary) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.shell-footer__nav-link:hover {
  color: var(--cr-text-primary) !important;
}

.shell-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(154, 165, 195, 0.08);
}

.shell-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(231, 225, 214, 0.54);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
}

.shell-footer__meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.shell-footer__copyright {
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: rgba(154, 165, 195, 0.62);
  letter-spacing: 0;
}

button, input, select, textarea {
  font-family: var(--cr-font) !important;
  letter-spacing: 0;
}

.home-page {
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 40px 56px;
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 36px;
  padding: 46px;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 22%, rgba(35, 164, 255, 0.22), transparent 28%),
    radial-gradient(circle at 14% 28%, rgba(168, 85, 247, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(16, 21, 43, 0.94), rgba(10, 15, 31, 0.98));
  border: 1px solid rgba(154, 165, 195, 0.14);
  box-shadow: var(--cr-shadow-lg);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.home-hero__title {
  margin: 0;
  font-family: var(--cr-display-font);
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--cr-text-primary);
}

.home-hero__copy {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--cr-text-secondary);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.home-hero__cta,
.home-hero__link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-hero__cta--primary {
  background: var(--cr-accent);
  color: #0a0e1f;
  box-shadow: 0 18px 32px rgba(168, 85, 247, 0.2);
  cursor: pointer;
}

.home-hero__cta--secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(154, 165, 195, 0.18);
  color: var(--cr-text-primary);
}

.home-hero__link {
  color: var(--cr-text-primary);
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 640px;
}

.home-stat-chip {
  min-height: 92px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(154, 165, 195, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-stat-chip span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cr-text-secondary);
}

.home-stat-chip strong {
  font-family: var(--cr-display-font);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.home-hero__promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(35, 164, 255, 0.1);
  border: 1px solid rgba(35, 164, 255, 0.22);
}

.home-hero__promo-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cr-support);
}

.home-hero__promo strong {
  font-size: 14px;
  font-weight: 800;
}

.home-hero__visual {
  position: relative;
  min-height: 560px;
}

.home-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
}

.home-hero__glow--lime {
  width: 230px;
  height: 230px;
  top: 14%;
  left: 8%;
  background: rgba(168, 85, 247, 0.15);
}

.home-hero__glow--blue {
  width: 260px;
  height: 260px;
  bottom: 10%;
  right: 8%;
  background: rgba(35, 164, 255, 0.16);
}

.home-hero__art {
  position: absolute;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.42));
}

.home-hero__art--case {
  width: clamp(240px, 30vw, 420px);
  top: 9%;
  left: 6%;
  transform: rotate(-7deg);
}

.home-hero__art--upgrade {
  width: clamp(190px, 22vw, 300px);
  top: 4%;
  right: 10%;
  transform: rotate(10deg);
}

.home-hero__art--bonus {
  width: clamp(180px, 20vw, 250px);
  bottom: 13%;
  left: 16%;
}

.home-hero__art--mascot {
  width: clamp(190px, 24vw, 280px);
  right: 4%;
  bottom: 4%;
}

.home-route-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.home-route-rail__item {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(17, 23, 46, 0.88);
  border: 1px solid rgba(154, 165, 195, 0.14);
  box-shadow: var(--cr-shadow-md);
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-route-rail__item:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.home-route-rail__icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--cr-accent);
  font-size: 18px;
}

.home-route-rail__item strong {
  font-family: var(--cr-display-font);
  font-size: 24px;
  line-height: 1;
  color: var(--cr-text-primary);
}

.home-route-rail__item small {
  font-size: 13px;
  line-height: 1.55;
  color: var(--cr-text-secondary);
}

.home-case-section {
  padding-top: 42px;
}

.home-case-section .case-loop {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px !important;
  padding: 0 !important;
  margin: 24px 0 0 !important;
}

.home-page .case {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0;
  display: block !important;
}

.home-page .case-in {
  position: relative;
  height: 100%;
  min-height: 360px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 25, 50, 0.9), rgba(10, 16, 32, 0.96));
  border: 1px solid rgba(154, 165, 195, 0.14);
  box-shadow: var(--cr-shadow-md);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.home-page .case-in:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.18);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.home-page .case-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.home-page .case-images {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-page .case-images img {
  width: 100%;
  max-width: 280px;
  height: 100%;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.home-page .case-in:hover .case-images img {
  transform: translateY(8px) scale(1.04);
}

.home-page .case-new,
.home-page .case-opened-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-page .case-new {
  background: rgba(35, 164, 255, 0.16);
  color: var(--cr-support);
}

.home-page .case-opened-badge {
  background: rgba(168, 85, 247, 0.18);
  color: var(--cr-accent);
}

.home-page .case-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 21, 0.42);
  z-index: 1;
}

.home-page .case-pole {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-page .case-name {
  font-family: var(--cr-display-font);
  font-size: 26px;
  line-height: 1.04;
  color: var(--cr-text-primary);
  text-transform: uppercase;
}

.home-page .case-price-pill {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--cr-accent);
  color: #0a0e1f;
  font-size: 14px;
  font-weight: 800;
}

.home-page .case-price-pill span {
  margin-left: 2px;
}

.home-page .case-day {
  font-size: 13px;
  font-weight: 700;
  color: var(--cr-text-secondary);
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  z-index: 1080;
  padding: 10px 8px;
  border-radius: 24px;
  background: rgba(8, 12, 26, 0.9);
  border: 1px solid rgba(154, 165, 195, 0.14);
  box-shadow: var(--cr-shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  color: rgba(248, 251, 255, 0.52);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cr-text-primary);
  font-size: 15px;
}

.mobile-nav-item.active {
  color: var(--cr-accent);
}

.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-icon.cases-icon {
  background: rgba(168, 85, 247, 0.18);
  color: var(--cr-accent);
}

.mobile-nav-icon.games-icon {
  background: rgba(35, 164, 255, 0.14);
  color: var(--cr-support);
}

.mobile-nav-icon.bonus-icon {
  background: rgba(168, 85, 247, 0.14);
  color: var(--cr-accent);
}

.mobile-nav-icon.upgrade-icon {
  background: rgba(255, 153, 94, 0.14);
  color: #ffb16b;
}

@media (max-width: 1520px) {
  .header-shell .header-inner {
    gap: 14px;
  }

  .header-nav-link {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .header-utilities {
    gap: 4px;
  }

  .header-utility-link,
  .header-sound-btn {
    min-height: 36px;
    padding: 0 8px;
    font-size: 11px;
  }

  .header-sound-btn span {
    display: none;
  }

  .header-social-link {
    width: 36px;
    height: 36px;
  }

  .header-status-pill {
    padding: 8px 12px;
  }
}

@media (max-width: 1280px) {
  .header-shell .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header-utilities {
    display: none;
  }
}

@media (max-width: 1180px) {
  .header-shell .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
  }

  .header-status-pill {
    display: none;
  }

  .header-primary-nav {
    justify-content: flex-start;
    gap: 6px;
  }

  .header-nav-link {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .home-route-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid,
  .shell-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shell-view > .container:not(.home-page),
  .shell-section__inner,
  .home-page,
  .shell-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-shell .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 16px 20px;
  }

  .header-primary-nav {
    gap: 4px;
  }

  .header-nav-link {
    padding: 0 10px;
    font-size: 12px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-hero__visual {
    min-height: 380px;
  }

  .home-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-wrapper.header-shell,
  #header-data-id.header-shell {
    min-height: 82px;
  }

  .header-shell .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 14px 16px;
  }

  .header-primary-nav,
  .header-utilities,
  .header-status-pill,
  .header-auth-label,
  .header-logout-btn {
    display: none;
  }

  .header-brand {
    min-width: 0;
  }

  .header-logo img {
    height: 34px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-bonus-chip {
    min-height: 40px;
    padding: 0 12px;
    min-width: 0;
    max-width: 122px;
  }

  .header-bonus-chip__label {
    display: none;
  }

  .header-bonus-chip__value {
    font-size: 12px;
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-auth-cluster {
    padding: 2px 4px;
    gap: 6px;
  }

  .header-auth-links {
    gap: 4px;
  }

  .header-auth-link {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .header-user-chip {
    gap: 6px;
  }

  .header-balance-chip {
    min-height: 40px;
    padding: 0 6px 0 12px;
    gap: 8px;
  }

  .header-balance-chip__value {
    font-size: 12px;
  }

  .header-balance-chip__action {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }

  .header-user-avatar {
    width: 38px;
    height: 38px;
  }

  .header-drawer-toggle {
    display: inline-flex;
  }

  .shell-view > .container:not(.home-page),
  .shell-section__inner,
  .home-page,
  .shell-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-page {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .home-hero {
    padding: 24px 20px 26px;
    border-radius: 30px;
  }

  .home-hero__title {
    font-size: clamp(38px, 12vw, 56px);
  }

  .home-hero__copy {
    font-size: 15px;
  }

  .home-hero__stats {
    grid-template-columns: 1fr;
  }

  .home-hero__visual {
    min-height: 280px;
  }

  .home-route-rail,
  .trust-grid,
  .shell-footer__top {
    grid-template-columns: 1fr;
  }

  .shell-footer {
    margin-top: 12px;
    padding-top: 24px;
  }

  .shell-footer__top {
    gap: 32px;
    padding-top: 24px;
  }

  .shell-footer__nav {
    gap: 24px 32px;
  }

  .shell-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .shell-footer__copyright {
    text-align: left;
  }

  .home-case-section .case-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
  }

  .home-page .case-in {
    min-height: 286px;
    padding: 14px;
    border-radius: 22px;
  }

  .home-page .case-images {
    height: 160px;
    margin-bottom: 12px;
  }

  .home-page .case-name {
    font-size: 18px;
  }

  .home-page .case-price-pill {
    font-size: 12px;
    min-height: 34px;
  }

  .lives-feed {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .lives-feed__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .lives-feed__track {
    grid-auto-columns: minmax(220px, 1fr);
  }

  .lives-card {
    min-height: 164px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .wrap {
    padding-bottom: 92px;
  }

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

@media (max-width: 520px) {
  .shell-footer__nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shell-footer__brand-copy {
    max-width: none;
  }

  .shell-footer__socials {
    gap: 8px;
  }

  .shell-footer__social-link {
    flex: 1 1 120px;
    justify-content: center;
  }

  .shell-footer__copyright {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .home-page .case-loop {
    grid-template-columns: 1fr;
  }

  .header-drawer__panel {
    width: 100vw;
  }

  .header-drawer__nav-link span {
    font-size: 20px;
  }

  .header-drawer__socials {
    flex-direction: column;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__cta,
  .home-hero__link {
    width: 100%;
  }
}

.home-page--cases-first {
  max-width: 1680px;
  margin: 0 auto;
  padding: 18px 0 56px;
  position: relative;
}

.home-page--cases-first::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 460px;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(72, 118, 255, 0.18), transparent 36%);
  pointer-events: none;
  z-index: 0;
}

.home-showcase {
  position: relative;
  z-index: 1;
  display: block;
}

.home-showcase__main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.home-rail-card,
.home-command-bar__panel,
.home-toolbar,
.home-case-section,
.home-empty-state {
  background: linear-gradient(180deg, rgba(16, 22, 45, 0.96), rgba(12, 16, 34, 0.96));
  border: 1px solid rgba(146, 151, 178, 0.12);
  border-radius: 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.home-rail-card {
  padding: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-rail-card__head,
.home-command-bar,
.home-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.home-rail-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.home-rail-card__tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(146, 151, 178, 0.12);
}

.home-rail-card__tab {
  min-width: 54px;
  height: 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #8d93ad;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-rail-card__tab.is-active {
  color: #09101f;
  background: #a855f7;
}

.home-rail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.home-rail-stat {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(146, 151, 178, 0.1);
}

.home-rail-stat span {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6f7798;
  margin-bottom: 8px;
}

.home-rail-stat strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  font-weight: 800;
}

.home-live-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.home-live-card {
  --home-live-border: rgba(60, 96, 252, 0.36);
  --home-live-glow: rgba(60, 96, 252, 0.12);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--home-live-border);
  background:
    linear-gradient(90deg, var(--home-live-glow), transparent 52%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-live-card__thumb,
.home-live-card__case {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-live-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(7, 10, 23, 0.66);
}

.home-live-card__thumb img,
.home-live-card__case img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.home-live-card__case {
  width: 42px;
  height: 42px;
}

.home-live-card__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-live-card__body strong,
.home-live-card__body span,
.home-live-card__body small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-live-card__body strong {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.home-live-card__body span {
  font-size: 12px;
  color: #a4abc3;
}

.home-live-card__body small {
  font-size: 11px;
  color: #6f7798;
}

.home-live-empty {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #7f87a5;
  font-size: 13px;
  line-height: 1.5;
}

.home-rail-card--promo {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(16, 22, 45, 0.96), rgba(12, 16, 34, 0.96));
}

.home-rail-card__promo-code {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  color: #fff;
}

.home-rail-card__promo-copy {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #97a0bf;
}

.home-rail-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.home-rail-card__action,
.home-command-bar__panel-btn,
.home-empty-state__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(146, 151, 178, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-rail-card__action:hover,
.home-command-bar__panel-btn:hover,
.home-empty-state__reset:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.32);
}

.home-rail-card__action--accent,
.home-command-bar__panel-btn--accent,
.home-empty-state__reset {
  color: #09101f;
  background: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.18);
}

.home-command-bar {
  padding: 22px 24px;
  align-items: stretch;
}

.home-command-bar__copy {
  max-width: 760px;
}

.home-command-bar__title {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 0.96;
  letter-spacing: 0;
  color: #fff;
  font-weight: 900;
}

.home-command-bar__text {
  margin: 18px 0 0;
  max-width: 700px;
  font-size: 16px;
  line-height: 1.7;
  color: #97a0bf;
}

.home-command-bar__panel {
  width: min(100%, 320px);
  padding: 20px;
  display: grid;
  gap: 10px;
  border-radius: 22px;
}

.home-command-bar__panel-label {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f7798;
  font-weight: 800;
}

.home-command-bar__panel strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  color: #fff;
  font-weight: 900;
}

.home-command-bar__panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #97a0bf;
}

.home-command-bar__panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.home-toolbar {
  padding: 16px 18px;
  align-items: center;
}

.home-search {
  flex: 0 0 360px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(6, 10, 21, 0.68);
  border: 1px solid rgba(146, 151, 178, 0.12);
}

.home-search i {
  color: #737b98;
  font-size: 14px;
}

.home-search input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.home-search input::placeholder {
  color: #646c8c;
}

.home-search__clear {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #a4abc3;
}

.home-toolbar__chips {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.home-toolbar__chip {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(146, 151, 178, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #9ca4c4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-toolbar__chip:hover,
.home-toolbar__chip.is-active {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(168, 85, 247, 0.1);
}

.home-case-section {
  padding: 22px;
  scroll-margin-top: 112px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-section-head__title {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  color: #fff;
  font-weight: 900;
}

.home-section-head__copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #8c95b4;
}

.home-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 16px;
}

.home-case-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.home-case-card {
  --case-accent: #a855f7;
  --case-accent-soft: rgba(168, 85, 247, 0.14);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 24px;
  border: 1px solid rgba(146, 151, 178, 0.12);
  background:
    radial-gradient(circle at top center, var(--case-accent-soft), transparent 55%),
    linear-gradient(180deg, rgba(17, 22, 45, 0.98), rgba(10, 14, 28, 0.98));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-case-card:hover {
  transform: translateY(-6px);
  border-color: var(--case-accent);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.home-case-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--case-accent), transparent);
  opacity: 0.88;
}

.home-case-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.home-case-card__topline,
.home-case-card__body {
  position: relative;
  z-index: 2;
}

.home-case-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 0;
}

.home-case-card__state,
.home-case-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.home-case-card__state {
  background: rgba(255, 255, 255, 0.06);
  color: #9ca4c4;
}

.home-case-card__tag {
  background: rgba(168, 85, 247, 0.18);
  color: #a855f7;
}

.home-case-card__media {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px 0;
}

.home-case-card__glow {
  position: absolute;
  inset: 22px 34px 26px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--case-accent-soft), transparent 72%);
  filter: blur(18px);
}

.home-case-card__media img {
  position: relative;
  z-index: 1;
  width: min(100%, 220px);
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.34));
  transition: transform 0.22s ease;
}

.home-case-card:hover .home-case-card__media img {
  transform: translateY(-6px) scale(1.02);
}

.home-case-card__body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.home-case-card__title {
  margin: 0;
  min-height: 44px;
  font-size: 19px;
  line-height: 1.15;
  color: #fff;
  font-weight: 900;
}

.home-case-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-case-card__price {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--case-accent-soft);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.home-case-card__old-price {
  font-size: 13px;
  color: #717897;
  text-decoration: line-through;
  font-weight: 700;
}

.home-case-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 20px;
  font-size: 12px;
  line-height: 1.4;
  color: #9098b6;
  font-weight: 700;
}

.home-case-card.is-locked {
  opacity: 0.84;
}

.home-case-card.tone-lime {
  --case-accent: #a855f7;
  --case-accent-soft: rgba(168, 85, 247, 0.16);
}

.home-case-card.tone-blue {
  --case-accent: #67a9ff;
  --case-accent-soft: rgba(103, 169, 255, 0.14);
}

.home-case-card.tone-violet {
  --case-accent: #9a7bff;
  --case-accent-soft: rgba(154, 123, 255, 0.14);
}

.home-case-card.tone-red {
  --case-accent: #c084fc;
  --case-accent-soft: rgba(192, 132, 252, 0.14);
}

.home-case-card.tone-gold {
  --case-accent: #8b5cf6;
  --case-accent-soft: rgba(139, 92, 246, 0.14);
}

.home-empty-state {
  padding: 40px 24px;
  text-align: center;
}

.home-empty-state p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #9aa2c1;
}

@media (max-width: 1400px) {
  .home-showcase {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .home-command-bar__title {
    max-width: 11ch;
  }
}

@media (max-width: 1180px) {
  .home-showcase {
    grid-template-columns: 1fr;
  }

  .home-showcase__rail {
    order: 2;
    position: static;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    align-items: start;
  }

  .home-showcase__main {
    order: 1;
  }

  .home-live-list {
    max-height: 460px;
    overflow: auto;
    padding-right: 4px;
  }

  .home-command-bar {
    flex-direction: column;
  }

  .home-command-bar__panel {
    width: 100%;
  }

  .home-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-search {
    flex-basis: auto;
    width: 100%;
  }

  .home-toolbar__chips {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .home-page--cases-first {
    padding-top: 12px;
  }

  .home-showcase__rail {
    grid-template-columns: 1fr;
  }

  .home-live-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 4px;
  }

  .home-command-bar,
  .home-toolbar,
  .home-case-section,
  .home-rail-card {
    border-radius: 22px;
  }

  .home-command-bar__title {
    max-width: 12ch;
    font-size: clamp(34px, 9vw, 46px);
  }

  .home-command-bar__text {
    font-size: 14px;
  }

  .home-rail-card__actions,
  .home-command-bar__panel-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-page--cases-first::before {
    height: 320px;
  }

  .header-logo img {
    width: 124px;
  }

  .header-bonus-chip {
    min-width: 0;
    padding: 0 12px;
  }

  .header-bonus-chip__label {
    display: none;
  }

  .header-bonus-chip__value {
    display: block;
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-command-bar,
  .home-toolbar,
  .home-case-section,
  .home-rail-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-command-bar {
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .home-command-bar__text {
    display: none;
  }

  .home-command-bar__panel {
    gap: 8px;
    padding: 16px;
  }

  .home-toolbar {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-case-section {
    padding-top: 16px;
  }

  .home-section-head {
    margin-bottom: 12px;
  }

  .home-rail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-case-grid,
  .home-case-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-case-card {
    min-height: 288px;
    border-radius: 20px;
  }

  .home-case-card__media {
    height: 150px;
  }

  .home-case-card__media img {
    width: min(100%, 170px);
    max-height: 144px;
  }

  .home-case-card__title {
    min-height: 38px;
    font-size: 17px;
  }

  .home-toolbar__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 460px) {
  .home-case-grid,
  .home-case-grid--featured {
    grid-template-columns: 1fr;
  }

  .home-rail-stats {
    grid-template-columns: 1fr;
  }

  .home-live-card {
    grid-template-columns: 52px minmax(0, 1fr) 34px;
  }
}

@media (max-width: 420px) {
  .header-bonus-chip {
    display: none;
  }
}

.home-page--cases-first::before {
  height: 320px;
  background:
    radial-gradient(circle at 14% 0%, rgba(168, 85, 247, 0.1), transparent 32%),
    radial-gradient(circle at 86% 0%, rgba(56, 94, 241, 0.12), transparent 30%);
}

.home-showcase {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.home-showcase__rail {
  top: 92px;
  gap: 14px;
}

.home-showcase__main {
  gap: 14px;
}

.home-rail-card,
.home-toolbar,
.home-case-section,
.home-empty-state {
  background: linear-gradient(180deg, rgba(13, 18, 31, 0.98), rgba(8, 11, 20, 0.98));
  border: 1px solid rgba(130, 139, 167, 0.14);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.home-rail-card {
  padding: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-rail-card__head {
  align-items: center;
  gap: 12px;
}

.home-rail-card__title,
.home-toolbar__title,
.home-section-head__title {
  font-family: var(--cr-display-font);
}

.home-rail-card__title {
  font-size: 22px;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.home-rail-stats {
  gap: 8px;
  margin-top: 14px;
}

.home-rail-stat {
  padding: 10px 11px;
  border-radius: 16px;
}

.home-rail-stat span {
  margin-bottom: 6px;
}

.home-live-list {
  gap: 8px;
  margin-top: 14px;
}

.home-live-card {
  grid-template-columns: 52px minmax(0, 1fr) 38px;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 16px;
}

.home-live-card__thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.home-live-card__case {
  width: 38px;
  height: 38px;
}

.home-rail-card--promo {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(13, 18, 31, 0.98), rgba(8, 11, 20, 0.98));
}

.home-rail-card__promo-code {
  font-size: 22px;
  line-height: 1;
}

.home-rail-card__promo-copy {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #8e97b4;
}

.home-rail-card__actions {
  gap: 8px;
  margin-top: 14px;
}

.home-rail-card__action,
.home-toolbar__action,
.home-empty-state__reset {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(130, 139, 167, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-rail-card__action:hover,
.home-toolbar__action:hover,
.home-empty-state__reset:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.26);
}

.home-rail-card__action--accent,
.home-toolbar__action--accent,
.home-empty-state__reset {
  color: #08101d;
  background: #a855f7;
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.16);
}

.home-toolbar {
  position: sticky;
  top: 92px;
  z-index: 4;
  display: grid;
  gap: 12px;
  padding: 18px 20px;
}

.home-toolbar__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 18px;
  align-items: end;
}

.home-toolbar__title-block {
  display: grid;
  gap: 6px;
}

.home-toolbar__title {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: #fff;
  font-weight: 700;
}

.home-toolbar__summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #8189a7;
}

.home-search {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(7, 10, 20, 0.54);
  border: 1px solid rgba(130, 139, 167, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-search:focus-within {
  background: rgba(7, 10, 20, 0.8);
  border-color: rgba(168, 85, 247, 0.24);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08);
}

.home-search input {
  font-size: 13px;
  font-weight: 600;
}

.home-search input::placeholder {
  color: #707897;
}

.home-toolbar__chips {
  gap: 8px;
  justify-content: flex-start;
}

.home-toolbar__chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(130, 139, 167, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #9099b8;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-case-section {
  padding: 18px;
  scroll-margin-top: 160px;
}

.home-section-head {
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.home-section-head__main {
  display: grid;
  gap: 6px;
}

.home-section-head__title {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 0.96;
  letter-spacing: 0.02em;
}

.home-section-head__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #8f97b4;
  white-space: nowrap;
}

.home-case-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.home-case-card {
  min-height: 292px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 19, 33, 0.98), rgba(9, 12, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.home-case-card::before {
  display: none;
}

.home-case-card__topline {
  padding: 12px 12px 0;
}

.home-case-card__state,
.home-case-card__tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.home-case-card__media {
  height: 148px;
  padding: 6px 14px 0;
}

.home-case-card__glow {
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 74px;
  filter: blur(18px);
}

.home-case-card__media img {
  width: min(100%, 184px);
  max-height: 136px;
}

.home-case-card__body {
  gap: 10px;
  padding: 12px 14px 14px;
}

.home-case-card__title {
  min-height: 42px;
  font-size: 18px;
  line-height: 1.08;
}

.home-case-card__price {
  font-size: 23px;
}

.home-case-card__old-price,
.home-case-card__footer {
  font-size: 12px;
}

@media (max-width: 1400px) {
  .home-toolbar__intro {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 1180px) {
  .home-toolbar {
    position: static;
  }
}

@media (max-width: 860px) {
  .home-page--cases-first {
    padding-top: 12px;
  }

  .home-toolbar,
  .home-case-section,
  .home-rail-card {
    border-radius: 20px;
  }

  .home-toolbar {
    padding: 16px;
  }

  .home-toolbar__title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .home-case-section {
    scroll-margin-top: 96px;
  }

  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-section-head__copy {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .home-page--cases-first::before {
    height: 220px;
  }

  .home-toolbar,
  .home-case-section,
  .home-rail-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-case-card {
    min-height: 276px;
  }

  .home-case-card__media {
    height: 136px;
  }

  .home-case-card__media img {
    width: min(100%, 160px);
    max-height: 126px;
  }

  .home-case-card__title {
    font-size: 17px;
  }

  .home-toolbar__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 460px) {
  .home-case-grid,
  .home-rail-stats {
    grid-template-columns: 1fr;
  }
}

.header-wrapper.header-shell,
#header-data-id.header-shell {
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(13, 9, 22, 0.98), rgba(8, 5, 14, 0.96)) !important;
  border-bottom: none;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), inset 0 -1px 0 rgba(192, 132, 252, 0.11);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
  position: relative;
}

.header-wrapper.header-shell::before,
#header-data-id.header-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 240, 255, 0.16) 22%, rgba(192, 132, 252, 0.3) 50%, rgba(245, 240, 255, 0.14) 78%, transparent);
  pointer-events: none;
}

.header-wrapper.header-shell::after,
#header-data-id.header-shell::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2) 24%, rgba(192, 132, 252, 0.34) 50%, rgba(168, 85, 247, 0.2) 76%, transparent);
  pointer-events: none;
}

.header-shell .header-inner {
  width: 100%;
  max-width: 1840px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3.2vw, 56px);
  grid-template-columns: minmax(204px, auto) minmax(420px, 1fr) minmax(420px, auto);
  gap: clamp(18px, 2vw, 34px);
}

.header-brand {
  gap: 16px;
}

.header-logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), filter 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-logo:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.22));
}

.header-live-pill {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(53, 225, 172, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(53, 225, 172, 0.1), rgba(53, 225, 172, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.header-live-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35e1ac;
  box-shadow: 0 0 0 3px rgba(53, 225, 172, 0.08), 0 0 10px rgba(53, 225, 172, 0.68);
}

.header-live-pill__label {
  color: rgba(210, 216, 236, 0.66);
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.header-live-pill__value {
  font-size: 0.8125rem;
  line-height: 1;
  font-weight: 850;
  color: #f5f0ff;
  font-variant-numeric: tabular-nums;
}

.header-primary-nav {
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.header-nav-link {
  min-width: 0;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(229, 214, 255, 0.62);
  transform: none;
  overflow: hidden;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-nav-link i {
  font-size: 14px;
  color: rgba(192, 132, 252, 0.46);
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-nav-link span {
  line-height: 1.2;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 1px;
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.74);
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition: opacity 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-nav-link:hover,
.header-nav-link.is-active,
.header-primary-nav .router-link-active,
.header-primary-nav .router-link-exact-active {
  color: #fbf7ef;
  border-color: rgba(192, 132, 252, 0.16);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.17), rgba(168, 85, 247, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.header-nav-link:hover {
  transform: translateY(-1px);
}

.header-nav-link:hover i,
.header-nav-link.is-active i,
.header-primary-nav .router-link-active i,
.header-primary-nav .router-link-exact-active i {
  color: #c084fc;
}

.header-nav-link:hover::after,
.header-nav-link.is-active::after,
.header-primary-nav .router-link-active::after,
.header-primary-nav .router-link-exact-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  gap: 10px;
}

.header-side-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 2px;
}

.header-side-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(192, 132, 252, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(229, 214, 255, 0.54) !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-side-link:hover {
  color: #fbf7ef !important;
  border-color: rgba(192, 132, 252, 0.22);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-1px);
}

.header-language-switch {
  position: relative;
  width: 110px;
  min-width: 110px;
  height: 36px;
  padding: 3px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  border-radius: 9px;
  border: 1px solid rgba(192, 132, 252, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.header-language-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 50px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.28), rgba(168, 85, 247, 0.14));
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.18), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.header-language-switch__thumb.is-en {
  transform: translateX(54px);
}

.header-language-switch__option {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(229, 214, 255, 0.52);
  cursor: pointer;
  transition: color 0.15s ease;
}

.header-language-switch__option:hover,
.header-language-switch__option.is-active {
  color: #f5f7ff;
}

.header-language-switch__option:active {
  transform: scale(0.96);
}

.header-language-switch__flag {
  position: relative;
  width: 17px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 3px 8px rgba(0, 0, 0, 0.18);
}

.header-language-switch__flag--ru {
  background: linear-gradient(to bottom, #f5f7ff 0 33.333%, #2958d7 33.333% 66.666%, #e43d45 66.666% 100%);
}

.header-language-switch__flag--en {
  background: repeating-linear-gradient(to bottom, #c83240 0 1px, #c83240 1px 2px, #f5f7ff 2px 3px, #f5f7ff 3px 4px);
}

.header-language-switch__flag--en::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 7px;
  background: #273a78;
  border-radius: 2px 0 2px 0;
}

.header-language-switch__code {
  font-size: 0.6875rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-bonus-btn,
.header-balance-chip,
.header-drawer-toggle {
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(192, 132, 252, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.header-bonus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  color: #f5f7ff;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-bonus-btn i {
  font-size: 11px;
  color: #c084fc;
}

.header-bonus-btn:hover,
.header-balance-chip:hover,
.header-drawer-toggle:hover {
  border-color: rgba(192, 132, 252, 0.24);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-1px);
}

.header-bonus-btn__value {
  display: inline-flex;
  align-items: center;
  max-width: 132px;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 700;
  color: #f5f7ff;
}

.header-bonus-btn__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 800;
  color: #d8b4fe;
}

.header-auth-btn {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(192, 132, 252, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.024);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: #f5f7ff;
  cursor: pointer;
  text-decoration: none !important;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-auth-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  margin-left: 4px;
  padding: 6px;
  border: 1px solid rgba(192, 132, 252, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.header-auth-provider-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-auth-label {
  padding: 0 4px;
  font-size: 0.6875rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 214, 255, 0.56);
  white-space: nowrap;
}

.header-auth-btn i {
  font-size: 0.9375rem;
  color: rgba(245, 247, 255, 0.7);
}

.header-auth-btn--telegram i {
  color: #2aabee;
}

.header-auth-btn--steam i {
  color: #dfe7f3;
}

.header-auth-btn:hover {
  color: #fbf7ef;
  border-color: rgba(192, 132, 252, 0.22);
  background: rgba(168, 85, 247, 0.09);
  transform: translateY(-1px);
}

.header-user-chip {
  gap: 8px;
}

.header-balance-chip {
  min-height: 42px;
  padding: 0 7px 0 14px;
  gap: 10px;
}

.header-balance-chip__value {
  font-size: 14px;
  color: #f5f7ff;
}

.header-balance-chip__action {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #7c3aed;
  color: #fff;
  font-size: 14px;
}

.header-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(192, 132, 252, 0.2);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.045);
}

.header-drawer-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: #f5f7ff;
  font-size: 14px;
  cursor: pointer;
}

.header-drawer-toggle__label {
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(124, 58, 237, 0.22), transparent 32%),
    rgba(4, 2, 9, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-promo-panel {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: min(470px, 100%);
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 194, 74, 0.16), transparent 28%),
    radial-gradient(circle at 14% 4%, rgba(168, 85, 247, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(22, 12, 38, 0.98), rgba(8, 5, 15, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 80px rgba(124, 58, 237, 0.22);
  color: #f8f2ff;
}

.header-promo-panel__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 242, 255, 0.72);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-promo-panel__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.header-promo-panel__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #ffc24a);
  color: #13091f;
  font-size: 20px;
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.32);
}

.header-promo-panel__head {
  display: grid;
  gap: 10px;
  margin: 0 42px 18px 0;
}

.header-promo-panel__title {
  margin: 0;
  color: #fff9ef;
  font-family: var(--cr-display-font);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.95;
  font-weight: 950;
}

.header-promo-panel__copy {
  max-width: 390px;
  margin: 0;
  color: rgba(239, 229, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.header-promo-panel__code {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(255, 194, 74, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 194, 74, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.055);
  color: #fff7df;
  font-size: clamp(18px, 3.8vw, 28px);
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.header-promo-panel__code:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.header-promo-panel__code:hover:not(:disabled),
.header-promo-panel__code.is-copied {
  border-color: rgba(255, 194, 74, 0.62);
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 194, 74, 0.24), transparent 45%),
    rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.header-promo-panel__code i {
  color: #ffc24a;
  font-size: 16px;
}

.header-promo-panel__meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(255, 194, 74, 0.12);
  color: #ffd889;
  font-size: 12px;
  font-weight: 900;
}

.header-promo-panel__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 10px;
  margin-top: 18px;
}

.header-promo-panel__primary,
.header-promo-panel__secondary,
.header-promo-panel__submit {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none !important;
  cursor: pointer;
}

.header-promo-panel__primary {
  border: 0;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: #13091f;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.32);
}

.header-promo-panel__primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.header-promo-panel__secondary {
  border: 1px solid rgba(216, 180, 254, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f8f2ff !important;
}

.header-promo-panel__form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 180, 254, 0.12);
}

.header-promo-panel__form-title {
  color: rgba(239, 229, 255, 0.66);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.header-promo-panel__form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.header-promo-panel__input {
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(216, 180, 254, 0.16);
  border-radius: 8px;
  background: rgba(5, 3, 10, 0.58);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.header-promo-panel__input::placeholder {
  color: rgba(239, 229, 255, 0.34);
}

.header-promo-panel__submit {
  border: 1px solid rgba(255, 194, 74, 0.22);
  background: rgba(255, 194, 74, 0.12);
  color: #ffd889;
}

.header-promo-panel__submit:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.header-promo-panel__message {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.header-promo-panel__message.success {
  color: #77f0a0;
}

.header-promo-panel__message.error {
  color: #ff8c8c;
}

.header-promo-modal-enter-active,
.header-promo-modal-leave-active {
  transition: opacity 180ms ease;
}

.header-promo-modal-enter-active .header-promo-panel,
.header-promo-modal-leave-active .header-promo-panel {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.header-promo-modal-enter,
.header-promo-modal-leave-to {
  opacity: 0;
}

.header-promo-modal-enter .header-promo-panel,
.header-promo-modal-leave-to .header-promo-panel {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.header-drawer__panel {
  width: min(360px, 100vw);
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  background: #08070f;
  border-left: 1px solid rgba(80, 50, 130, 0.25);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

.header-drawer__top {
  margin-bottom: 14px;
}

.header-drawer__logo {
  height: 28px;
  width: auto;
  display: block;
}

.header-drawer__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(147, 155, 184, 0.68);
}

.header-drawer__status {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(34, 211, 238, 0.055);
  color: rgba(222, 247, 255, 0.78);
}

.header-drawer__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.72);
}

.header-drawer__sound {
  margin-left: auto;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(128, 138, 163, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
}

.header-drawer__bonus {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(128, 138, 163, 0.14);
}

.header-drawer__bonus-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(147, 155, 184, 0.68);
}

.header-drawer__bonus-value {
  font-size: 14px;
}

.header-drawer__language {
  margin-bottom: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(128, 138, 163, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.header-drawer__language-label {
  min-width: 0;
  color: rgba(147, 155, 184, 0.68);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-language-switch--drawer {
  flex: 0 0 auto;
}

.header-drawer__nav {
  gap: 0;
  border-top: 1px solid rgba(80, 50, 130, 0.2);
  border-bottom: 1px solid rgba(80, 50, 130, 0.2);
}

.header-drawer__nav-link {
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-drawer__nav-link + .header-drawer__nav-link {
  border-top: 1px solid rgba(128, 138, 163, 0.12);
}

.header-drawer__nav-link span {
  font-size: 18px;
  line-height: 1;
}

.header-drawer__nav-link i {
  font-size: 12px;
  color: rgba(147, 155, 184, 0.68);
}

.header-drawer__nav-link:hover,
.header-drawer__nav-link.is-active {
  transform: none;
  border: 0;
  background: transparent;
}

.header-drawer__nav-link:hover span,
.header-drawer__nav-link.is-active span,
.header-drawer__nav-link:hover i,
.header-drawer__nav-link.is-active i {
  color: #a78bfa;
}

.header-drawer__section {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.header-drawer__section-title {
  margin: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(147, 155, 184, 0.68);
}

.header-drawer__auth-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.header-drawer__utilities,
.header-drawer__socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.header-drawer__socials {
  grid-template-columns: 1fr;
}

.header-drawer__auth-link,
.header-drawer__utility-link,
.header-drawer__social-link {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(128, 138, 163, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f7ff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
}

.header-drawer__auth-link:hover,
.header-drawer__utility-link:hover,
.header-drawer__social-link:hover {
  border-color: rgba(168, 85, 247, 0.2);
}

.mobile-bottom-nav {
  left: 8px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom, 8px));
  padding: 6px 6px;
  border-radius: 10px;
  background: #08070f;
  border: 1px solid rgba(80, 50, 130, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-nav-item {
  gap: 4px;
  color: rgba(245, 247, 255, 0.52);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.mobile-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: transparent;
  color: rgba(245, 247, 255, 0.68);
  font-size: 14px;
}

.mobile-nav-icon.cases-icon,
.mobile-nav-icon.games-icon,
.mobile-nav-icon.bonus-icon,
.mobile-nav-icon.upgrade-icon {
  background: transparent;
  color: rgba(245, 247, 255, 0.68);
}

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

.mobile-nav-item.active .mobile-nav-icon {
  background: rgba(100, 50, 180, 0.18);
  color: #a78bfa;
}

@media (max-width: 1280px) {
  .header-shell .header-inner {
    grid-template-columns: minmax(190px, auto) minmax(360px, 1fr) minmax(360px, auto);
    gap: 14px;
  }

  .header-primary-nav {
    gap: 3px;
  }

  .header-nav-link {
    min-width: 0;
    padding: 0 12px;
  }

  .header-side-links {
    display: none;
  }
}

@media (max-width: 1100px) {
  .header-shell .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-primary-nav {
    display: none;
  }

  .header-drawer-toggle {
    display: inline-flex;
  }

  .header-auth-group,
  .header-side-links {
    display: none;
  }

  .header-live-pill {
    min-height: 24px;
    padding: 0 8px;
  }

  .header-bonus-btn {
    max-width: 118px;
    padding: 0 12px;
  }

  .header-bonus-btn__value {
    max-width: 72px;
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  .header-wrapper.header-shell,
  #header-data-id.header-shell {
    min-height: 54px;
  }

  .header-shell .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    position: relative;
    min-height: 54px;
    padding: 0 14px;
    gap: 8px;
  }

  .header-brand,
  .header-logo {
    min-width: 0;
  }

  .header-logo {
    min-height: 44px;
  }

  .header-logo img {
    width: auto;
    max-width: min(152px, 48vw);
    height: 30px;
  }

  .header-live-pill {
    display: none;
  }

  .header-side-links {
    display: none;
  }

  .header-actions > .header-language-switch {
    display: none;
  }

  .header-actions {
    position: fixed;
    top: 9px;
    right: 14px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
    z-index: 1102;
  }

  .header-bonus-btn {
    width: 44px;
    min-width: 44px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .header-bonus-btn__value {
    display: none;
  }

  .header-bonus-btn__meta {
    display: none;
  }

  .header-auth-group {
    display: none;
  }

  .header-auth-btn {
    padding: 0 10px;
  }

  .header-drawer-toggle {
    display: inline-flex !important;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .header-drawer-toggle__label {
    display: none;
  }

  .header-promo-modal {
    align-items: start;
    padding: 76px 10px 16px;
  }

  .header-promo-panel {
    width: 100%;
    padding: 22px 16px 18px;
  }

  .header-promo-panel__head {
    margin-right: 38px;
  }

  .header-promo-panel__actions,
  .header-promo-panel__form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-drawer__auth-links,
  .header-drawer__utilities,
  .header-drawer__socials {
    grid-template-columns: 1fr;
  }

  .header-drawer__language {
    align-items: flex-start;
    flex-direction: column;
  }
}

:root {
  --cr-bg-primary: #07040d;
  --cr-bg-secondary: #0d0718;
  --cr-bg-card: #130b22;
  --cr-bg-elevated: #1b1030;
  --cr-accent: #a855f7;
  --cr-accent-hover: #c084fc;
  --cr-support: #8b5cf6;
  --cr-text-primary: #f5f0ff;
  --cr-text-secondary: rgba(229, 214, 255, 0.68);
  --cr-text-muted: rgba(229, 214, 255, 0.42);
  --cr-border: rgba(192, 132, 252, 0.13);
  --cr-radius: 8px;
  --cr-radius-sm: 7px;
}

body {
  background: #07040d !important;
  color: var(--cr-text-primary);
}

.shell-main {
  background: transparent;
}

.shell-footer {
  margin-top: 0;
  padding: 34px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(7, 4, 13, 0.88), rgba(7, 4, 13, 0.98)),
    radial-gradient(circle at 16% 0%, rgba(168, 85, 247, 0.1), transparent 24%);
}

.shell-footer__top {
  border-top-color: rgba(231, 225, 214, 0.1);
}

.shell-footer__brand-copy,
.shell-footer__brand-note,
.shell-footer__nav-link,
.shell-footer__copyright {
  color: rgba(231, 225, 214, 0.6) !important;
}

.shell-footer__social-link,
.shell-footer__meta {
  color: rgba(231, 225, 214, 0.64) !important;
}

.shell-footer__nav-title {
  color: #fbf7ef;
  font-weight: 850;
}

.shell-footer__nav-link:hover {
  color: #c084fc !important;
}

.telegram-float-btn {
  background: #1d9bd7;
  box-shadow: 0 16px 40px rgba(29, 155, 215, 0.3);
}

.mobile-bottom-nav {
  border-radius: 8px;
  border-color: rgba(192, 132, 252, 0.16);
  background: rgba(10, 6, 18, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
  box-sizing: border-box;
  width: auto !important;
  max-width: calc(100vw - 16px);
}

.mobile-nav-item {
  min-width: 0;
}

.profile-case-all,
.profile-rating {
  color: rgba(236, 239, 255, 0.72);
}

.profile-case-all span {
  color: #f5f7ff;
}

.mobile-nav-icon {
  border-radius: 8px;
}

.mobile-nav-item.active .mobile-nav-icon {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

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

.header-logo img,
#header-data-id .mobile-logo img,
.sidebar-logo img,
.shell-footer__logo img {
  filter: none;
}

.header-shell .header-inner {
  grid-template-columns: minmax(190px, auto) minmax(360px, 1fr) minmax(340px, auto);
  gap: clamp(14px, 1.6vw, 24px);
}

.header-live-pill {
  min-height: 26px;
  padding: 0 9px;
  gap: 6px;
  border-color: rgba(53, 225, 172, 0.13);
  background: rgba(53, 225, 172, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.header-live-pill__dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px rgba(53, 225, 172, 0.055);
}

.header-live-pill__label {
  color: rgba(210, 216, 236, 0.52);
  font-size: 0.625rem;
}

.header-live-pill__value {
  font-size: 0.75rem;
}

.header-primary-nav {
  min-height: 42px;
  padding: 3px;
}

.header-nav-link {
  min-height: 34px;
  padding: 0 13px;
  gap: 7px;
}

.header-auth-group {
  min-height: 38px;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.header-auth-label {
  display: none;
}

.header-auth-btn {
  min-height: 32px;
  padding: 0 11px;
}

.header-auth-provider-links {
  gap: 5px;
}

.telegram-float-btn {
  right: max(18px, calc(env(safe-area-inset-right, 0px) + 18px));
  bottom: max(84px, calc(env(safe-area-inset-bottom, 0px) + 84px));
  width: 48px;
  height: 48px;
  font-size: 23px;
  opacity: 0.94;
  background: #1d9bd7;
  box-shadow: 0 14px 34px rgba(29, 155, 215, 0.28);
}

.telegram-float-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 42px rgba(29, 155, 215, 0.34);
}

body.is-shell-locked .telegram-float-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.94);
}

body[data-caserace-route="contracts"] .telegram-float-btn,
body[data-caserace-route="arena"] .telegram-float-btn,
body[data-caserace-route="wheel"] .telegram-float-btn {
  bottom: max(118px, calc(env(safe-area-inset-bottom, 0px) + 118px));
}

body[data-caserace-route="contracts"] .telegram-float-btn,
body[data-caserace-route="arena"] .telegram-float-btn {
  display: none !important;
}

@media (max-width: 1280px) {
  .header-shell .header-inner {
    grid-template-columns: minmax(180px, auto) minmax(320px, 1fr) minmax(292px, auto);
  }

  .header-nav-link {
    padding: 0 10px;
  }

  .header-bonus-btn__meta {
    display: none;
  }
}

@media (max-width: 1180px) {
  .header-auth-btn span {
    display: none;
  }

  .header-auth-btn {
    width: 36px;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .telegram-float-btn {
    display: flex !important;
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px));
    bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    width: 44px;
    height: 44px;
    font-size: 21px;
    z-index: 1080;
  }

  body[data-caserace-route="contracts"] .telegram-float-btn,
  body[data-caserace-route="arena"] .telegram-float-btn,
  body[data-caserace-route="wheel"] .telegram-float-btn,
  body[data-caserace-route="case"] .telegram-float-btn,
  body[data-caserace-route="index"] .telegram-float-btn,
  body[data-caserace-route="cases"] .telegram-float-btn,
  body[data-caserace-route="games"] .telegram-float-btn,
  body[data-caserace-route="bonus"] .telegram-float-btn,
  body[data-caserace-route="faq"] .telegram-float-btn,
  body[data-caserace-route="agreement"] .telegram-float-btn,
  body[data-caserace-route="privacypolicy"] .telegram-float-btn {
    display: none !important;
  }
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
