/* ==========================================================================
   LidoGift presentation — CaseMint visual system mapped onto existing DOM.
   Theme: charcoal surfaces + mint accents (calmed 2026-08-28).
   ROLLBACK sky-blue palette:
     --cm-bg: #0c0e1f; --cm-surface: #131525; --cm-blue: #229ed9;
     --cm-blue-hover: #1f90c5; --cm-gold: #feca58; --cm-gold-hover: #fecf69;
     --tone: #229ed9;
   ========================================================================== */

:root{
  --cm-bg: #0b0d12;
  --cm-surface: #14161c;
  --cm-text: #eef1f6;
  --cm-muted: #8b93a3;
  --cm-dim: #5c6470;
  --cm-line: #ffffff12;
  --cm-line-strong: #ffffff22;
  --cm-blue: #4db88a;
  --cm-blue-hover: #43a87c;
  --cm-on-blue: #062318;
  --cm-gold: #e8d48a;
  --cm-gold-hover: #f0e0a4;
  --cm-gold-text: #1a1608;
  --cm-live: #3dcf7a;
  --cm-success: #41be74;
  --cm-danger: #ff6b6b;
  --cm-radius: 20px;
  --cm-radius-md: 14px;
  --cm-radius-sm: 8px;
  --cm-shell: 1280px;
  --cm-gutter: 24px;
  --cm-nav: calc(82px + env(safe-area-inset-bottom, 0px));
  --cm-font: "Geologica", system-ui, "Segoe UI", Roboto, sans-serif;
  --tone: #4db88a;
}

@keyframes gift-feed-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #22c55e80; }
  50% { box-shadow: 0 0 0 6px #22c55e00; }
}

@keyframes lg-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Base / layout atmosphere (CaseMint .layout)
   -------------------------------------------------------------------------- */

html:has(body.lidogift){
  background: var(--cm-bg) !important;
  background-image: none !important;
}

html body.lidogift{
  font-family: var(--cm-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cm-text);
  background: var(--cm-bg) !important;
  background-image: none !important;
  padding-bottom: calc(var(--cm-nav) + 8px);
  overflow-x: hidden;
  --app-shell-width: var(--cm-shell);
  --gift-glow: rgba(255, 255, 255, 0.10);
  --case-glow: rgba(255, 255, 255, 0.08);
}

html body.lidogift::before{
  content: "";
  pointer-events: none;
  z-index: 0;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(45% 80% at -2%, #ffffff0a, #0000 70%),
    radial-gradient(45% 80% at 102%, #ffffff08, #0000 70%),
    repeating-linear-gradient(#ffffff04 0 1px, #0000 1px 128px),
    repeating-linear-gradient(90deg, #ffffff04 0 1px, #0000 1px 128px);
}

html body.lidogift .bg-effects,
html body.lidogift .bg-noise{
  display: none !important;
}

html body.lidogift .app-shell{
  position: relative;
  z-index: 1;
  max-width: none !important;
  width: 100% !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html body.lidogift .container{
  width: min(var(--cm-shell), calc(100% - var(--cm-gutter) * 2)) !important;
  max-width: var(--cm-shell) !important;
  margin: 0 auto !important;
  padding: 24px 0 0 !important;
  flex: 1;
}

html body.lidogift h1,
html body.lidogift h2,
html body.lidogift h3,
html body.lidogift .splash-title,
html body.lidogift .lg-play-head h2{
  font-family: var(--cm-font);
  letter-spacing: -0.01em;
  color: var(--cm-text);
}

/* --------------------------------------------------------------------------
   Buttons → CaseMint .app-btn
   -------------------------------------------------------------------------- */

html body.lidogift .btn,
html body.lidogift .btn-white,
html body.lidogift .btn-green,
html body.lidogift .btn-violet,
html body.lidogift .btn-glass,
html body.lidogift .mini-btn,
html body.lidogift .upgrade-run-btn,
html body.lidogift .balance-action,
html body.lidogift .switch-btn,

html body.lidogift .btn,
html body.lidogift .btn-white,
html body.lidogift .btn-green,
html body.lidogift .btn-violet,
html body.lidogift .upgrade-run-btn:not(:disabled),
html body.lidogift .mini-btn-violet,
html body.lidogift #sellAllBtn,
html body.lidogift #profileSupportBanner,
html body.lidogift #runCraftBtn:not(:disabled),
html body.lidogift #redeemPromoBtn{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 24px !important;
  border-radius: var(--cm-radius-md) !important;
  border: 1px solid #6fd4a399 !important;
  background: var(--cm-blue) !important;
  color: var(--cm-on-blue, #062318) !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .18s;
}

html body.lidogift .btn:hover:not(:disabled),
html body.lidogift .btn-white:hover:not(:disabled),
html body.lidogift .btn-green:hover:not(:disabled),
html body.lidogift .btn-violet:hover:not(:disabled),
html body.lidogift .upgrade-run-btn:hover:not(:disabled),
html body.lidogift #sellAllBtn:hover,
html body.lidogift #runCraftBtn:hover:not(:disabled),
html body.lidogift #redeemPromoBtn:hover{
  background: var(--cm-blue-hover) !important;
}

html body.lidogift .mini-btn-dark,
html body.lidogift .inventory-card [data-a="sell"]{
  color: var(--cm-gold) !important;
  background: #f3e08a1a !important;
  border: 1px solid #f3e08a47 !important;
}

html body.lidogift .btn-glass,
html body.lidogift .upgrade-run-btn:disabled,
html body.lidogift .btn:disabled{
  background: #ffffff0a !important;
  color: var(--cm-muted) !important;
  border: 1px solid var(--cm-line) !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

html body.lidogift #clearCraftBtn,
html body.lidogift #playCraftView #clearCraftBtn,
html body.lidogift button#clearCraftBtn.lg-clear-craft{
  background: #1a2a22 !important;
  color: #eef1f6 !important;
  border: 1px solid #6fd4a373 !important;
  box-shadow: inset 0 0 0 1px #6fd4a338 !important;
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

html body.lidogift #clearCraftBtn:hover,
html body.lidogift #playCraftView #clearCraftBtn:hover{
  background: #24362c !important;
  border-color: #6fd4a3 !important;
  color: #fff !important;
}

html body.lidogift .card,
html body.lidogift .progress-card,
html body.lidogift .profile-inventory-card{
  background: var(--cm-surface) !important;
  border: 1px solid var(--cm-line) !important;
  border-radius: var(--cm-radius) !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Header → CaseMint .header
   -------------------------------------------------------------------------- */

html body.lidogift .topbar.lg-topbar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 200 !important;
  display: flex !important;
  align-items: center;
  gap: 24px;
  margin: 0 !important;
  padding: 12px 16px !important;
  padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--cm-line) !important;
  background: #14161c !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-sizing: border-box !important;
}

html body.lidogift.is-tg .topbar.lg-topbar{
  top: 0 !important;
  padding-top: calc(var(--lg-tg-top-offset, 56px) + 12px) !important;
  background: #14161c !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.lidogift .lg-logo{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
  max-width: 46% !important;
  border: 0;
  background: transparent;
  color: var(--cm-text);
  cursor: pointer;
  padding: 0;
  overflow: visible !important;
}

html body.lidogift .lg-logo-mark{
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  width: auto;
  height: 42px;
}

html body.lidogift .lg-logo-mark img{
  width: auto;
  height: 42px;
  max-width: 148px;
  object-fit: contain;
  display: block;
}

html body.lidogift .lg-splash-mark{
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 8px;
}

html body.lidogift .lg-splash-mark img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

html body.lidogift .visually-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Don't show brand word on phones — it squeezes balance into the logo */
html body.lidogift .lg-logo-word{
  display: none !important;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #6fd4a3 0%, #f3e08a 100%);
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 18px;
  font-weight: 700;
  max-width: 110px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.lidogift .lg-desk-nav{
  display: none;
  flex: 1;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
}

html body.lidogift .lg-nav-ico,
html body.lidogift .bottom-nav .nav-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  filter: none !important;
  text-shadow: none !important;
}

html body.lidogift .lg-nav-ico svg,
html body.lidogift .bottom-nav .nav-icon svg{
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden !important;
  filter: none !important;
}

html body.lidogift .lg-desk-link,
html body.lidogift .lg-desk-link:hover,
html body.lidogift .lg-desk-link:focus,
html body.lidogift .lg-desk-link:focus-visible,
html body.lidogift .lg-desk-link.active{
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

html body.lidogift .lg-desk-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--cm-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

html body.lidogift .lg-desk-link:hover{
  color: var(--cm-text);
  background: #ffffff0a;
}

html body.lidogift .lg-desk-link.active{
  color: var(--cm-blue);
  background: #ffffff0d;
  border-color: #ffffff22;
}

html body.lidogift .lg-topbar-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

html body.lidogift .lg-wallet{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Balance chip → CaseMint .balance */
html body.lidogift .lg-wallet .balance-pill,
html body.lidogift .balance-pill-hero,
html body.lidogift .lg-balance-chip{
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 12px !important;
  min-height: 0 !important;
  border-radius: var(--cm-radius-sm) !important;
  border: 1px solid #6fd4a340 !important;
  background: #6fd4a326 !important;
  color: var(--cm-text) !important;
  box-shadow: none !important;
  font-weight: 500;
  line-height: 1;
}

/* Header wallet uses ton.png — kill filters that look like a second icon */
html body.lidogift .lg-wallet .balance-pill > img.lg-ton-ico,
html body.lidogift .balance-pill > img.lg-ton-ico{
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  object-fit: contain !important;
  filter: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

html body.lidogift .balance-pill > img:not(.lg-ton-ico),
html body.lidogift .lg-balance-chip img{
  width: 16px !important;
  height: 16px !important;
  filter: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  border-radius: 0 !important;
}

html body.lidogift .lg-ton-ico,
html body.lidogift .balance-pill .lg-ton-ico{
  line-height: 0 !important;
  position: relative !important;
}

html body.lidogift .lg-ton-ico svg{
  display: none !important;
}

html body.lidogift .balance-pill-copy strong,
html body.lidogift .lg-balance-chip strong{
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: var(--cm-text);
}

/* Deposit + → CaseMint .header__add */
html body.lidogift .balance-action,
html body.lidogift #openDepositTopBtn{
  width: 28px !important;
  height: 28px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid #6fd4a373 !important;
  background: #6fd4a31f !important;
  color: var(--cm-blue) !important;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: background .18s, border-color .18s, transform .15s;
}

html body.lidogift .balance-action:hover,
html body.lidogift #openDepositTopBtn:hover{
  background: #6fd4a338 !important;
  border-color: #6fd4a3a6 !important;
  transform: scale(1.08);
}

html body.lidogift .lg-header-user{
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--cm-text);
  cursor: pointer;
  padding: 0;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(42vw, 160px) !important;
  overflow: hidden !important;
}

html body.lidogift .header-avatar,
html body.lidogift .profile-avatar{
  width: 36px;
  height: 36px;
  flex: 0 0 36px !important;
  border-radius: 50%;
  border: 2px solid #6fd4a380;
  background: linear-gradient(135deg, #6fd4a3 0%, #f3e08a 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

/* Long nicknames were crushing logo into the balance pill (styles.css force-shows them). */
html body.lidogift .header-nickname,
html body.lidogift .lg-header-user .header-nickname,
html body.lidogift .app-shell .header-nickname{
  display: none !important;
  width: auto !important;
  max-width: 96px !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: hidden !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--cm-text) !important;
  letter-spacing: 0 !important;
}

/* Hide duplicate play switcher — desk/mobile nav owns IA */
html body.lidogift .lg-play-head .section-switcher{
  display: none !important;
}

html body.lidogift .lg-play-head .eyebrow{
  color: var(--cm-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html body.lidogift .lg-play-head h2{
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   LIVE feed → CaseMint .gift-feed
   -------------------------------------------------------------------------- */

html body.lidogift .lg-live-card{
  background: var(--cm-surface) !important;
  border: 1px solid var(--cm-line) !important;
  border-radius: var(--cm-radius) !important;
  padding: 16px 16px 14px !important;
  margin-bottom: 20px;
}

html body.lidogift .live-strip{
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  align-items: stretch !important;
  gap: 10px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body.lidogift .live-label,
html body.lidogift .lg-live-head{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  color: var(--cm-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

html body.lidogift .live-label::before,
html body.lidogift .live-badge::before{
  display: none !important;
  content: none !important;
}

html body.lidogift .lg-live-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cm-live);
  flex-shrink: 0;
  animation: 1.8s ease-in-out infinite gift-feed-pulse;
}

html body.lidogift .lg-live-label,
html body.lidogift .live-label{
  color: var(--cm-live);
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
}

html body.lidogift .lg-live-sep{
  width: 1px;
  height: 13px;
  background: #ffffff1f;
  flex-shrink: 0;
}

html body.lidogift .lg-live-title{
  color: #8b93a3;
  font-size: 13px;
  font-weight: 500;
}

html body.lidogift .live-items,
html body.lidogift #hubLiveFeed{
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #0000, #000 52px calc(100% - 52px), #0000);
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 52px calc(100% - 52px), #0000);
}

html body.lidogift .live-items::-webkit-scrollbar,
html body.lidogift #hubLiveFeed::-webkit-scrollbar{
  display: none;
}

html body.lidogift .lg-live-track{
  display: flex;
  gap: 10px;
  min-width: min-content;
  padding: 4px 8px;
  animation: none;
  transform: translateX(0);
  will-change: transform;
}

html body.lidogift .live-item,
html body.lidogift .lg-live-track > div{
  flex-shrink: 0;
  width: 76px;
  padding: 8px 6px 7px;
  border-radius: var(--cm-radius-md);
  border: 1px solid var(--cm-line);
  background: #ffffff0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform .15s, border-color .15s, background .15s;
}

html body.lidogift .live-item:hover,
html body.lidogift .lg-live-track > div:hover{
  background: #ffffff12;
  border-color: #ffffff22;
}

html body.lidogift .live-item img,
html body.lidogift .lg-live-track img{
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
}

html body.lidogift .live-empty{
  color: var(--cm-muted);
  font-size: 13px;
  padding: 8px;
}

@keyframes lg-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Cases → CaseMint .case + .category__grid
   -------------------------------------------------------------------------- */

html body.lidogift .cases-grid,
html body.lidogift .cases-grid-shell{
  display: grid !important;
  gap: 48px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.lidogift .case-section{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: grid;
  gap: 16px;
}

html body.lidogift .case-section-head,
html body.lidogift .case-section .section-head{
  display: flex;
  align-items: baseline;
  gap: 12px;
}

html body.lidogift .case-section h2,
html body.lidogift .case-section .section-head h2,
html body.lidogift .case-section .section-head h3{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

html body.lidogift .case-section-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  justify-content: start;
  align-items: stretch;
}

html body.lidogift .case-section-grid > *{
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

/* Case card 1:1 feel */
html body.lidogift .case-card-product,
html body.lidogift .case-card,
html body.lidogift .case-card-compact,
html body.lidogift .case-card-premium{
  --tone: #4db88a;
  position: relative;
  isolation: isolate;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 16px !important;
  text-align: center;
  cursor: pointer;
  background: #0b0d12 !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: none;
}

html body.lidogift .case-card-product::before,
html body.lidogift .case-card-premium::before{
  content: "";
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, var(--tone) 0%, transparent 60%);
  opacity: .07;
  pointer-events: none;
  z-index: 0;
  transition: opacity .25s;
  position: absolute;
  inset: 0;
}

html body.lidogift .case-card-product:hover,
html body.lidogift .case-card-premium:hover{
  border-color: color-mix(in srgb, var(--tone) 45%, transparent) !important;
  transform: none;
}

html body.lidogift .case-card-product:hover::before,
html body.lidogift .case-card-premium:hover::before{
  opacity: .14;
}

html body.lidogift .case-card-product .case-card-cover-wrap,
html body.lidogift .case-card-product .case-card-cover,
html body.lidogift .case-card-product .case-visual{
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
  display: grid;
  place-items: center;
}

html body.lidogift .case-card-product .case-glow,
html body.lidogift .case-card-product .case-gift-glow{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, var(--case-glow, var(--tone)) 0%, transparent 60%);
  opacity: .5;
  filter: blur(22px);
  pointer-events: none;
  transition: transform .4s, opacity .3s;
  z-index: 0;
}

html body.lidogift .case-card-product:hover .case-glow,
html body.lidogift .case-card-product:hover .case-gift-glow{
  opacity: 1;
  transform: scale(1.15);
}

html body.lidogift .case-card-product .case-base,
html body.lidogift .case-card-product .case-card-cover img,
html body.lidogift .case-card-product .case-visual img{
  position: relative;
  z-index: 1;
  width: 90%;
  height: 90%;
  object-fit: contain;
  background: transparent;
  transition: transform .4s;
}

html body.lidogift .case-card-product:hover .case-base,
html body.lidogift .case-card-product:hover .case-visual img{
  transform: scale(1.05);
}

html body.lidogift .case-card-product .case-card-copy{
  position: relative;
  z-index: 1;
  margin: 0 !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

html body.lidogift .case-card-product .case-card-copy h3{
  margin: 0 !important;
  color: #eef1f6 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: .01em;
  text-transform: none !important;
}

html body.lidogift .case-card-product .eyebrow,
html body.lidogift .case-card-product .case-sub,
html body.lidogift .case-card-product .case-card-enter{
  display: none !important;
}

/* Price = CaseMint .balance pill */
html body.lidogift .case-card-product .case-card-footer{
  position: relative;
  z-index: 1;
  align-self: center;
  width: fit-content !important;
  margin: 0 auto !important;
  padding: 6px 12px !important;
  min-height: 0 !important;
  border-radius: 8px !important;
  background: #ffffff0d !important;
  border: 1px solid #ffffff18 !important;
  color: #eef1f6 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

html body.lidogift .case-card-product .balance-inline-compact,
html body.lidogift .case-card-product .balance-inline-compact strong{
  color: #eef1f6 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html body.lidogift .case-card-product .balance-inline-compact img{
  width: 14px !important;
  height: 14px !important;
}

html body.lidogift .case-card-promo{ --tone: #f3e08a; }
html body.lidogift .case-card-free{ --tone: #6fce7a; }
html body.lidogift .case-card-blogger,
html body.lidogift .case-card-bloggers{ --tone: #4db88a; }

/* --------------------------------------------------------------------------
   Upgrade → CaseMint .upgrade__stage / .up-slot
   -------------------------------------------------------------------------- */

html body.lidogift #playUpgradeView .upgrade-panel,
html body.lidogift #playUpgradeView .lg-upgrade-shell,
html body.lidogift #playUpgradeView .card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.lidogift .lg-upgrade-layout{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

html body.lidogift .lg-upgrade-arena{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "core core"
    "src tgt";
  gap: 16px;
  align-items: stretch;
}

html body.lidogift .lg-pick-source{ grid-area: src; }
html body.lidogift .lg-pick-target{ grid-area: tgt; }
html body.lidogift .lg-upgrade-core{
  grid-area: core;
  background: #14161c;
  border: 1px solid #ffffff0f;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
}

html body.lidogift .lg-pick-label{
  margin-bottom: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b93a3;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

html body.lidogift #playUpgradeView .upgrade-slot,
html body.lidogift .lg-target-core{
  --tone: #4db88a;
  min-height: 180px !important;
  width: 100%;
  border-radius: 20px !important;
  border: 1px solid #ffffff0f !important;
  background: #14161c !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px !important;
  transition: border-color .25s, box-shadow .25s;
}

html body.lidogift .lg-pick-target .lg-target-core,
html body.lidogift .lg-pick-target{
  --tone: #f3e08a;
}

html body.lidogift #playUpgradeView .upgrade-slot.is-filled,
html body.lidogift .lg-target-core:has(.upgrade-target-card:not(.hidden)){
  border-color: color-mix(in srgb, var(--tone) 28%, transparent) !important;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tone) 12%, transparent) !important;
}

html body.lidogift #upgradeTargetPlaceholder,
html body.lidogift .upgrade-slot-empty strong{
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--cm-muted) !important;
}
html body.lidogift #playUpgradeView .upgrade-sim-wheel{
  width: min(240px, 58vw) !important;
  height: min(240px, 58vw) !important;
  margin: 0 auto;
}

html body.lidogift .lg-chance-core{ text-align: center; }

html body.lidogift .lg-chance-core strong{
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--cm-text);
}

html body.lidogift .lg-chance-core span{
  color: var(--cm-muted);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 700;
}

html body.lidogift .lg-upgrade-actions{
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
}

html body.lidogift .lg-upgrade-actions .upgrade-run-btn{
  flex: 1;
  min-width: 0;
}

html body.lidogift .lg-fast-btn{
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid #ffffff0f;
  background: #ffffff0a;
  color: #8b93a3;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background .18s, border-color .18s, color .18s;
}

html body.lidogift .lg-fast-btn svg{
  width: 22px;
  height: 22px;
  display: block;
}

html body.lidogift .lg-fast-btn:hover,
html body.lidogift .lg-fast-btn.is-active{
  color: #14161c;
  background: #f3e08a;
  border-color: transparent;
}

html body.lidogift .upgrade-gift-visual{
  position: relative;
  isolation: isolate;
}

html body.lidogift .upgrade-gift-visual::before{
  content: none !important;
  display: none !important;
}

html body.lidogift .upgrade-gift-visual img:not(.lg-gift-glow){
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Craft
   -------------------------------------------------------------------------- */

html body.lidogift .lg-craft-layout{
  display: grid;
  gap: 16px;
}

html body.lidogift .lg-craft-slots{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

html body.lidogift .lg-craft-slot{
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid #ffffff0f;
  background: #14161c;
  display: grid;
  place-items: center;
  color: var(--cm-muted);
  font-weight: 600;
  overflow: hidden;
  padding: 0;
}

html body.lidogift .lg-craft-slot.is-filled{
  border-color: color-mix(in srgb, #6fd4a3 45%, transparent);
  box-shadow: 0 0 0 2px #6fd4a32e;
  cursor: pointer;
}

html body.lidogift .lg-craft-slot img{
  width: 78%;
  height: 78%;
  object-fit: contain;
}

html body.lidogift .lg-craft-controls{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

html body.lidogift .lg-craft-stats{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 20px;
  background: #14161c;
  border: 1px solid #ffffff0f;
}

html body.lidogift .lg-craft-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

html body.lidogift .lg-craft-hint{
  margin: 8px 0 0;
  text-align: center;
  color: var(--cm-muted);
  font-size: 13px;
}

html body.lidogift .craft-chamber,
html body.lidogift .craft-selection-shell,
html body.lidogift .craft-fly{
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html body.lidogift #craftGrid,
html body.lidogift #playCraftView .inventory-grid{
  max-height: none !important;
  overflow: visible !important;
  align-content: start !important;
}

/* --------------------------------------------------------------------------
   Profile / inventory → CaseMint .inv-card
   -------------------------------------------------------------------------- */

html body.lidogift .inventory-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 16px !important;
}

html body.lidogift .inventory-card{
  --tone: #4db88a;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 16px !important;
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

html body.lidogift .inventory-card:hover{
  background: #ffffff05 !important;
  border-color: #ffffff1f !important;
}

html body.lidogift .inventory-visual{
  aspect-ratio: 1;
  isolation: isolate;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  background: transparent !important;
}

html body.lidogift .inventory-visual::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  height: 75%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--tone) 0%, transparent 70%);
  filter: blur(25px) saturate(1.3);
  z-index: 0;
  pointer-events: none;
}

html body.lidogift .inventory-visual img{
  position: relative;
  z-index: 1;
  width: 80%;
  height: 80%;
  object-fit: contain;
}

html body.lidogift .inventory-body{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

html body.lidogift .inventory-name{
  color: #eef1f6;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html body.lidogift .inventory-price{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #6fd4a31a !important;
  border: 1px solid #6fd4a338 !important;
  color: #eef1f6 !important;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html body.lidogift .inventory-price .lg-price-inline,
html body.lidogift .inventory-price .balance-inline,
html body.lidogift .inventory-price .balance-inline-compact{
  display: contents !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.lidogift .inventory-price img,
html body.lidogift .lg-price-inline img{
  width: 14px;
  height: 14px;
}

html body.lidogift .inventory-actions{
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  margin-top: auto;
}

html body.lidogift .inventory-actions .mini-btn{
  min-height: 0 !important;
  padding: 7px 4px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1;
}

/* Sell = gold (CaseMint),
Withdraw = muted */
html body.lidogift .inventory-actions [data-a="sell"],
html body.lidogift .inventory-actions .mini-btn-violet{
  color: #f3e08a !important;
  background: #f3e08a1a !important;
  border: 1px solid #f3e08a47 !important;
  box-shadow: none !important;
}

html body.lidogift .inventory-actions [data-a="withdraw"],
html body.lidogift .inventory-actions .mini-btn-dark{
  color: #8b93a3 !important;
  background: #ffffff0a !important;
  border: 1px solid #ffffff0f !important;
}

html body.lidogift .lg-profile-user{
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 8px 0 4px;
}

html body.lidogift .lg-profile-user h2{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

html body.lidogift .lg-settings-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

html body.lidogift .lg-lang-switch{
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  max-width: max-content;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #ffffff0a;
  border: 1px solid #ffffff0f;
}

html body.lidogift .lg-lang-btn{
  border: 0;
  background: transparent;
  color: var(--cm-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

html body.lidogift .lg-lang-btn.active{
  color: #6fd4a3;
  background: #6fd4a32e;
}

html body.lidogift .field,
html body.lidogift select.field,
html body.lidogift input.field{
  background: #0b0d12 !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 14px !important;
  color: var(--cm-text) !important;
  min-height: 46px;
}

html body.lidogift .lg-support-btn,
html body.lidogift #profileSupportBanner{
  width: 100%;
  margin-top: 12px;
}

html body.lidogift .lg-gift-credit{
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: #8b90a0;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Bottom nav → CaseMint .mobile-nav
   -------------------------------------------------------------------------- */

html body.lidogift .bottom-nav{
  z-index: 90 !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px max(env(safe-area-inset-left), 8px) max(env(safe-area-inset-bottom), 8px) max(env(safe-area-inset-right), 8px) !important;
  background: #14161c !important;
  border-top: 1px solid #ffffff0f !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body.lidogift .bottom-nav .nav-btn,
html body.lidogift .bottom-nav .nav-btn:hover,
html body.lidogift .bottom-nav .nav-btn:focus,
html body.lidogift .bottom-nav .nav-btn.active{
  color: #8b93a3 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 14px !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

html body.lidogift .bottom-nav .nav-btn.active{
  color: var(--cm-blue) !important;
  background: #ffffff0d !important;
}

html body.lidogift .bottom-nav .nav-icon{
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  filter: none !important;
}

html body.lidogift .bottom-nav .nav-icon svg{
  width: 22px;
  height: 22px;
  filter: none !important;
}

html body.lidogift .bottom-nav .nav-label{
  letter-spacing: .01em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Splash / modal / toast
   -------------------------------------------------------------------------- */

html body.lidogift .splash-screen{
  background: #0b0d12 !important;
  background-image: none !important;
}

html body.lidogift .splash-logo,
html body.lidogift .lg-splash-mark{
  position: relative !important;
  width: min(220px, 58vw) !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  isolation: isolate !important;
  overflow: visible !important;
}

html body.lidogift .splash-loader,
html body.lidogift .splash-subtitle{
  display: none !important;
}

html body.lidogift .splash-title{
  display: none !important;
}

html body.lidogift .modal{
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px #00000073 !important;
}

html body.lidogift .overlay{
  background: #0b0d12cc !important;
}

html body.lidogift .toast,
html body.lidogift .toast-stack .toast{
  background: #14161c !important;
  border: 1px solid #ffffff1f !important;
  border-radius: 14px !important;
  color: #eef1f6 !important;
  box-shadow: 0 8px 32px #00000073 !important;
}

/* Inner page host */
html body.lidogift .lg-inner-page{
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0b0d12;
  overflow: auto;
  padding: 16px 16px calc(var(--cm-nav) + 16px);
}

html body.lidogift .lg-inner-page .lg-inner-back{
  margin-bottom: 16px;
}

html body.lidogift.lg-inner-open .bottom-nav{
  display: none !important;
}

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 901px){
  html body.lidogift .lg-logo-word {
    display: none !important;
  }
  html body.lidogift .lg-logo-mark {
    height: 52px;
  }
  html body.lidogift .lg-logo-mark img {
    height: 52px;
    max-width: 180px;
    width: auto;
  }
}

@media (min-width: 700px) {
  html body.lidogift .lg-craft-layout{
    grid-template-columns: none;
    align-items: stretch;
  }
}

@media (min-width: 901px) {
  html body.lidogift{
    padding-bottom: 28px !important;
    --cm-gutter: 48px;
  }

  html body.lidogift .topbar.lg-topbar{
    padding: 16px 48px !important;
    padding-top: 16px !important;
  }

  html body.lidogift.is-tg .topbar.lg-topbar{
    top: 0 !important;
    padding-top: calc(var(--lg-tg-top-offset, 0px) + 16px) !important;
  }

  html body.lidogift .lg-desk-nav{ display: flex !important; }
html body.lidogift .header-nickname,
  html body.lidogift .lg-header-user .header-nickname,
  html body.lidogift .app-shell .header-nickname{
    display: inline-block !important;
    visibility: visible !important;
    max-width: 110px !important;
  }
  html body.lidogift .lg-header-user{
    max-width: 180px !important;
  }
  html body.lidogift .bottom-nav{ display: none !important; }

  html body.lidogift .container{
    padding: 48px 0 32px !important;
  }

html body.lidogift .lg-play-head h2,
  html body.lidogift .case-section h2{
    font-size: 22px;
  }

  html body.lidogift .case-section-grid{
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
  }

  html body.lidogift .lg-upgrade-arena{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "src core tgt";
    gap: 24px;
  }

html body.lidogift #playUpgradeView .upgrade-slot,
  html body.lidogift .lg-target-core{
    min-height: 260px !important;
  }

  html body.lidogift #playUpgradeView .upgrade-sim-wheel{
    width: 260px !important;
    height: 260px !important;
  }

  html body.lidogift .inventory-grid:not(#profileGrid){
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  html body.lidogift .case-section-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

html body.lidogift .case-card-product,
  html body.lidogift .case-card-premium{
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 16px !important;
  }

  html body.lidogift .case-card-product .case-card-copy h3{
    font-size: 13px !important;
  }

  html body.lidogift .container{
    width: min(100%, calc(100% - 32px)) !important;
    --cm-gutter: 16px;
  }

  html body.lidogift .lg-play-head h2{
    font-size: 18px;
  }

html body.lidogift .live-item,
html body.lidogift .lg-live-track > div{
  width: 68px;
  }
}

/* ==========================================================================
   LAYOUT LOCK
   styles.css uses IDs + !important (e.g. #playUpgradeView max-width:640px,
   .cases-grid auto-fit 280px, bottom-nav translateX(-50%)). Those win over
   class-only lidogift rules and shove screens off-center. This block uses
   equal-or-higher specificity and must stay last.
   ========================================================================== */

html body.lidogift,
html body.lidogift .app-shell,
html body.lidogift main.container,
html body.lidogift #playTab,
html body.lidogift #playCasesView,
html body.lidogift #playUpgradeView,
html body.lidogift #playCraftView,
html body.lidogift #profileTab,
html body.lidogift #socialTab{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html body.lidogift .app-shell{
  overflow-x: visible !important;
}

html body.lidogift main.container,
html body.lidogift body[data-tab="play"] .container,
html body.lidogift[data-tab="play"] .container,
html body.lidogift[data-tab="profile"] .container{
  display: block !important;
  width: min(1280px, calc(100% - 32px)) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  transform: none !important;
}

html body.lidogift .lg-play-head{
  display: none !important;
}

html body.lidogift .card::before,
html body.lidogift .btn::before,
html body.lidogift .case-card::before,
html body.lidogift .item::before,
html body.lidogift .progress-card::before{
  display: none !important;
  content: none !important;
}

/* Header: pinned to the viewport — never scrolls away */
html body.lidogift header.topbar.lg-topbar,
html body.lidogift .app-shell .topbar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  transform: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  z-index: 200 !important;
}

html body.lidogift .lg-desk-nav{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

html body.lidogift .lg-topbar-actions,
html body.lidogift .topbar-actions{
  flex: 0 1 auto !important;
  margin-left: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 48px) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: hidden !important;
}

html body.lidogift .lg-wallet{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

/* Cases: sections stack full-width; cards fill like CaseMint category__grid */
html body.lidogift #casesGrid,
html body.lidogift #casesGrid.cases-grid,
html body.lidogift .cases-grid-shell{
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  gap: 48px !important;
  margin: 0 !important;
}

html body.lidogift .case-section-head{
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
}

html body.lidogift .case-section-head h3{
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: #eef1f6 !important;
  text-transform: none !important;
}

html body.lidogift .case-section-head p{
  margin: 4px 0 0 !important;
  color: #8b93a3 !important;
  font-size: 13px !important;
}

html body.lidogift .case-section-count{
  display: none !important;
}

html body.lidogift .case-section-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: start !important;
  width: 100% !important;
  gap: 12px !important;
}

html body.lidogift .case-section-grid > *{
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}

html body.lidogift .case-card-product .case-base,
html body.lidogift .case-card-product .case-visual img,
html body.lidogift .case-card-cover .case-base{
  position: relative !important;
  inset: auto !important;
  width: 90% !important;
  height: 90% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  padding: 0 !important;
  transform: none !important;
}

html body.lidogift .case-card-product .case-gift,
html body.lidogift .case-card-cover .case-gift{
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 42% !important;
  max-width: 110px !important;
  height: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
}

html body.lidogift .case-card-cover,
html body.lidogift .case-card-product .case-visual{
  min-height: 0 !important;
  height: auto !important;
}

html body.lidogift #hubLiveFeed,
html body.lidogift .live-items{
  display: block !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-column: 1 / -1 !important;
}

html body.lidogift .lg-live-track{
  width: max-content !important;
}

/* Upgrade: kill 640px cap,
3-col leftover metrics,
opacity:0 shell */
html body.lidogift .tab.active,
html body.lidogift .subtab.active,
html body.lidogift #playCasesView.active,
html body.lidogift #playCraftView.active,
html body.lidogift #playUpgradeView.active{
  display: block !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html body.lidogift #playUpgradeView .upgrade-layout,
html body.lidogift #playUpgradeView .upgrade-layout-modern,
html body.lidogift #playUpgradeView .lg-upgrade-layout{
  display: block !important;
  grid-template-columns: none !important;
  justify-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

html body.lidogift #playUpgradeView .upgrade-panel,
html body.lidogift #playUpgradeView .upgrade-panel-modern,
html body.lidogift #playUpgradeView #upgradePanelRoot,
html body.lidogift #playUpgradeView .upgrade-screen-shell,
html body.lidogift #playUpgradeView #upgradeScreenShell{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  justify-items: stretch !important;
  overflow: visible !important;
}

html body.lidogift #playUpgradeView .lg-upgrade-arena{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-areas:
    "core core"
    "src tgt" !important;
  width: 100% !important;
  max-width: none !important;
  gap: 16px !important;
}

html body.lidogift #playUpgradeView .upgrade-wheel-stage{
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
}

html body.lidogift #playUpgradeView .upgrade-slot-grid,
html body.lidogift #playUpgradeView #upgradeSourceSlots{
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

html body.lidogift #playUpgradeView #upgradeSourceSlots .upgrade-slot:nth-child(n+2){
  display: none !important;
}

html body.lidogift #playUpgradeView .upgrade-slot-badge{
  display: none !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-wheel{
  width: 240px !important;
  height: 240px !important;
  max-width: 100% !important;
}

/* Profile: one settings card must not sit in a 2/3-col leftover grid */
html body.lidogift #profileTab .lg-profile-top,
html body.lidogift #profileTab .profile-utility-grid{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
}

html body.lidogift #profileTab .inventory-grid,
html body.lidogift #profileGrid{
  display: grid !important;
  width: 100% !important;
}

html body.lidogift #craftGrid.inventory-grid,
html body.lidogift #playCraftView .inventory-grid{
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
}

/* Bottom nav: full-bleed CaseMint bar,
not a centered pill */
html body.lidogift #bottomNav,
html body.lidogift nav.bottom-nav{
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

@media (min-width: 700px) {
  html body.lidogift .case-section-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 901px) {
  html body.lidogift #playUpgradeView .lg-upgrade-arena{
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-areas: "src core tgt" !important;
    gap: 24px !important;
    align-items: stretch !important;
  }

  html body.lidogift #playUpgradeView .upgrade-sim-wheel{
    width: 260px !important;
    height: 260px !important;
    max-width: 280px !important;
  }

  html body.lidogift #bottomNav{
    display: none !important;
  }

  html body.lidogift main.container{
    width: min(1280px, calc(100% - 96px)) !important;
    padding: 48px 0 32px !important;
  }

  html body.lidogift .case-section-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 520px) {
  html body.lidogift .case-section-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body.lidogift main.container{
    width: calc(100% - 32px) !important;
  }
}

/* ==========================================================================
   CaseMint components mapped 1:1 onto existing DOM
   ========================================================================== */

html body.lidogift .lg-inner-page{
  background: #0b0d12 !important;
}

html body.lidogift .lg-inner-bar{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

html body.lidogift .lg-inner-back{
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff0f;
  border-radius: 14px;
  background: #ffffff0a;
  color: #eef1f6;
  font-size: 22px;
  cursor: pointer;
}

html body.lidogift .lg-inner-title{
  font-size: 18px;
  font-weight: 700;
}

html body.lidogift .lg-case-page{
  display: grid;
  gap: 24px;
  max-width: 560px;
  margin: 0 auto;
}

html body.lidogift .lg-case-hero{
  background: #14161c;
  border: 1px solid #ffffff0f;
  border-radius: 20px;
  padding: 24px 20px;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

html body.lidogift .lg-case-art{
  width: min(220px, 58vw);
  height: min(220px, 58vw);
  max-height: 240px;
  display: grid;
  place-items: center;
  background: #0b0d12;
  border-radius: 16px;
  overflow: hidden;
}

/* Only the idle case cover image — never roulette / result gifts inside #casePhoneCover */
html body.lidogift .lg-case-art:not(.is-opening) > img{
  width: 90% !important;
  height: 90% !important;
  max-width: 220px !important;
  max-height: 220px !important;
  object-fit: contain !important;
  transform: none !important;
  background: transparent;
}

html body.lidogift .lg-case-hero h1{
  font-size: 20px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  margin: 0 !important;
}

html body.lidogift .lg-case-actions{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
}

html body.lidogift .lg-case-counts{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
}

html body.lidogift .lg-count-btn{
  height: 44px;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid #ffffff0f;
  background: #ffffff0a;
  color: #8b93a3;
  font-weight: 700;
  cursor: pointer;
}

html body.lidogift .lg-count-btn.active{
  color: #eef1f6;
  background: #6fd4a32e;
  border-color: #6fd4a380;
}

html body.lidogift .case-phone-cover:not(.is-opening),
html body.lidogift #casePhoneCover:not(.is-opening),
html body.lidogift .case-inline-shell .case-phone-cover:not(.is-opening){
  width: min(240px, 70vw) !important;
  height: min(240px, 70vw) !important;
  max-height: 240px !important;
  margin: 0 auto !important;
  background: #0b0d12 !important;
  overflow: hidden !important;
}

html body.lidogift .case-phone-cover:not(.is-opening) > img,
html body.lidogift #casePhoneCover:not(.is-opening) > img{
  width: 90% !important;
  height: 90% !important;
  max-height: 220px !important;
  object-fit: contain !important;
  transform: none !important;
}

html body.lidogift .case-card-product{
  max-width: none;
}

/* Upgrade wheel → CaseMint .wheel */
html body.lidogift #playUpgradeView .upgrade-sim-wheel{
  width: min(280px, 72vw) !important;
  height: auto !important;
  aspect-ratio: 1;
  max-width: 280px !important;
  overflow: visible !important;
  background: transparent !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow,
html body.lidogift #playUpgradeView #upgradeGlow{
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  background: #ffffff !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow.is-idle,
html body.lidogift #playUpgradeView #upgradeGlow.is-idle{
  background: #ffffff !important;
  opacity: .04 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow.is-armed,
html body.lidogift #playUpgradeView #upgradeGlow.is-armed{
  background: #4db88a !important;
  opacity: .16 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow.is-success,
html body.lidogift #playUpgradeView #upgradeGlow.is-success{
  background: #6fd4a3 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-ring{
  border: 0 !important;
  box-shadow: 0 0 0 1px #ffffff14, 0 18px 48px -28px #00000080 !important;
  padding: 12px !important;
  background: conic-gradient(#4db88a 0deg 0deg, #1c1e26 0deg 360deg);
}

html body.lidogift #playUpgradeView .upgrade-sim-center{
  inset: 22px !important;
  border: 1px solid #ffffff0f !important;
  background: radial-gradient(circle at 50% 40%, #14161c, #0b0d12 70%) !important;
  box-shadow: none !important;
}

html body.lidogift .lg-chance-core{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

html body.lidogift .lg-chance-core .lg-chance-num{
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: #eef1f6;
}

html body.lidogift .lg-chance-core .lg-chance-pct{
  font-size: 22px;
  font-weight: 700;
  color: #8b93a3;
}

html body.lidogift .lg-chance-core strong{
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: inherit;
}

html body.lidogift .lg-chance-core > span{
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8b93a3;
  font-size: 12px;
}

html body.lidogift #playUpgradeView .upgrade-slot-empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #5e7368;
}

html body.lidogift #playUpgradeView .upgrade-slot-empty span{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px dashed #ffffff1f;
  background: #00000040;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #8b93a3;
}

/* Craft → CaseMint craft__* */
html body.lidogift .lg-craft-board{
  position: relative !important;
  overflow: hidden;
}

html body.lidogift .lg-craft-slots{
  background: #14161c;
  border: 1px solid #ffffff0f;
  border-radius: 20px;
  padding: 16px;
  gap: 8px !important;
}

html body.lidogift .lg-craft-slot{
  background: #00000047 !important;
  border: 1px dashed #ffffff1f !important;
  border-radius: 14px !important;
  color: #5e7368;
}

html body.lidogift .lg-craft-slot-num{
  font-size: 20px;
  font-weight: 700;
}

html body.lidogift .lg-craft-slot.is-filled{
  background: #6fd4a326 !important;
  border-style: solid !important;
  border-color: #6fd4a3 !important;
  box-shadow: 0 0 0 2px #6fd4a32e;
}

html body.lidogift .lg-craft-slot-price{
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: #0009;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #eef1f6;
  white-space: nowrap;
}

html body.lidogift .lg-craft-slot{
  position: relative;
}

html body.lidogift .lg-craft-hint.is-bad{
  color: #ff8a9f !important;
}

html body.lidogift .lg-craft-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid #ffffff0f;
  background: #14161c;
  color: #eef1f6;
  cursor: pointer;
}

html body.lidogift .lg-craft-item.is-selected{
  border-color: #6fd4a3;
  box-shadow: 0 0 0 2px #6fd4a347;
  background: #6fd4a30a;
}

html body.lidogift .lg-craft-item-img{
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

html body.lidogift .lg-craft-item-img img{
  width: 80%;
  height: 80%;
  object-fit: contain;
}

html body.lidogift .lg-craft-item-name{
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

html body.lidogift .lg-craft-item-price{
  font-size: 13px;
  font-weight: 700;
  color: #f3e08a;
}

html body.lidogift #playCraftView .inventory-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  max-height: none !important;
}

html body.lidogift .lg-craft-stage{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: #0b0d12e8;
  border: 1px solid #ffffff14;
  overflow: hidden;
  contain: layout paint;
}

html body.lidogift .lg-craft-stage.hidden{
  display: none !important;
  pointer-events: none !important;
}

html body.lidogift .lg-craft-stage.is-result{
  border-color: #f3e08a73;
  background: linear-gradient(#f3e08a1a, #000000d9);
}

html body.lidogift .lg-craft-cauldron{
  width: clamp(160px, 28vw, 220px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

html body.lidogift .lg-craft-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #6fd4a3;
  border-color: #6fd4a3 #6fd4a366 transparent transparent;
  animation: lg-craft-spin 1.6s linear infinite;
}

html body.lidogift .lg-craft-ring-2{
  inset: 8%;
  animation-duration: 2.2s;
  animation-direction: reverse;
}

html body.lidogift .lg-craft-ring-3{
  inset: 16%;
  border-color: #f3e08a #f3e08a66 transparent transparent;
  animation-duration: 1.1s;
}

html body.lidogift .lg-craft-stage-label{
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}

html body.lidogift .lg-craft-prize{
  width: clamp(140px, 26vw, 200px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

html body.lidogift .lg-craft-prize::before{
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, #f3e08a80, transparent 65%);
  filter: blur(24px);
}

html body.lidogift .lg-craft-prize img{
  width: 90%;
  height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

html body.lidogift .lg-craft-prize-info{
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #00000073;
  border: 1px solid #ffffff0f;
}

@keyframes lg-craft-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   UX LOCK — CaseMint live / upgrade inventories / 1-gift
   Must stay last so styles.css ID + !important cannot shove LIVE or reopen
   the old 0/6 picker sheet.
   ========================================================================== */

html body.lidogift .lg-live-card.gift-feed{
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

html body.lidogift .live-strip{
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}

html body.lidogift .lg-live-head,
html body.lidogift .live-strip > .lg-live-head{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  grid-column: 1 / -1 !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
}

html body.lidogift .lg-live-label,
html body.lidogift .live-label,
html body.lidogift .live-badge{
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  display: inline-flex !important;
  flex-direction: row !important;
  width: auto !important;
  height: auto !important;
  color: #22c55e !important;
  letter-spacing: .14em !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html body.lidogift .live-label::before,
html body.lidogift .live-badge::before{
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

html body.lidogift .live-items,
html body.lidogift #hubLiveFeed,
html body.lidogift .live-row{
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  mask-image: linear-gradient(90deg, #0000, #000 52px calc(100% - 52px), #0000) !important;
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 52px calc(100% - 52px), #0000) !important;
}

html body.lidogift .live-item,
html body.lidogift .lg-live-track > div{
  flex: 0 0 76px !important;
  width: 76px !important;
  height: auto !important;
  min-width: 76px !important;
  min-height: 0 !important;
  padding: 8px 6px 7px !important;
  border-radius: 14px !important;
  background: #ffffff0a !important;
  border: 1px solid #ffffff0f !important;
}

html body.lidogift .live-item img,
html body.lidogift .lg-live-track img{
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
}

html body.lidogift .case-section-count,
html body.lidogift .upgrade-bottom-sheet{
  display: none !important;
}

html body.lidogift #playUpgradeView .lg-pick-card{
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .upgrade-slot-grid,
html body.lidogift #playUpgradeView .lg-pick-card .lg-target-core,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-slot{
  flex: 1 1 auto !important;
  min-height: 220px !important;
  height: auto !important;
}

html body.lidogift .lg-up-inventories{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  width: 100% !important;
  margin-top: 24px !important;
}

html body.lidogift .lg-up-tabs{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-column: 1 / -1 !important;
  gap: 0 !important;
  overflow: hidden !important;
  background: #ffffff0a !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 14px !important;
}

html body.lidogift .lg-up-tab{
  color: #8b93a3;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

html body.lidogift .lg-up-tab + .lg-up-tab{
  border-left: 1px solid #ffffff0f;
}

html body.lidogift .lg-up-tab.is-active{
  color: #eef1f6;
  background: #6fd4a32e;
}

html body.lidogift .lg-up-inventories[data-tab="user"] .lg-up-inv-target,
html body.lidogift .lg-up-inventories[data-tab="target"] .lg-up-inv-user{
  display: none !important;
}

html body.lidogift .lg-up-inv{
  background: #14161c;
  border: 1px solid #ffffff0f;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  min-width: 0;
}

html body.lidogift .lg-up-inv-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

html body.lidogift .lg-up-inv-head h2{
  color: #eef1f6;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

html body.lidogift .lg-up-inv-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html body.lidogift .lg-up-empty{
  grid-column: 1 / -1;
  text-align: center;
  color: #5e7368;
  background: #0003;
  border: 1px dashed #ffffff0f;
  border-radius: 14px;
  padding: 48px 24px;
  font-size: 13px;
}

html body.lidogift .lg-up-card{
  --tone: #4db88a;
  cursor: pointer;
  user-select: none;
  background: #14161c;
  border: 1px solid #ffffff0f;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  color: #eef1f6;
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

html body.lidogift .lg-up-inv-target .lg-up-card{
  --tone: #f3e08a;
}

html body.lidogift .lg-up-card:hover{
  background: #ffffff05;
  border-color: #ffffff1f;
}

html body.lidogift .lg-up-card.is-selected{
  border-color: var(--tone);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tone) 28%, transparent);
  background: #14161c !important;
}

html body.lidogift .lg-up-card-img{
  aspect-ratio: 1;
  width: 100%;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

html body.lidogift .lg-up-card-img::before{
  content: none !important;
  display: none !important;
}

html body.lidogift .lg-up-card-img img{
  width: 80%;
  height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

html body.lidogift .lg-up-card-name{
  color: #eef1f6;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

html body.lidogift .lg-up-card-price{
  color: #f3e08a;
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 601px) {
  html body.lidogift .lg-up-tabs{
    display: none !important;
  }

html body.lidogift .lg-up-inventories,
  html body.lidogift .lg-up-inventories[data-tab="user"],
  html body.lidogift .lg-up-inventories[data-tab="target"]{
    grid-template-columns: 1fr 1fr !important;
  }

html body.lidogift .lg-up-inventories[data-tab="user"] .lg-up-inv-target,
  html body.lidogift .lg-up-inventories[data-tab="target"] .lg-up-inv-user{
    display: flex !important;
  }

  html body.lidogift .lg-up-inv-grid{
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

html body.lidogift #playUpgradeView .upgrade-slot,
html body.lidogift #playUpgradeView #upgradeTargetButton,
html body.lidogift #playUpgradeView .lg-target-core{
  pointer-events: none !important;
  cursor: default !important;
}

html body.lidogift #playUpgradeView .lg-pick-source .upgrade-slot,
html body.lidogift #playUpgradeView .lg-pick-target .lg-target-core{
  min-height: 240px !important;
}

html body.lidogift .lg-up-count{
  color: #5e7368;
  font-variant-numeric: tabular-nums;
  background: #ffffff0a;
  border: 1px solid #ffffff0f;
  border-radius: 999px;
  min-width: 28px;
  padding: 2px 8px;
  font-size: 12px;
  text-align: center;
}

html body.lidogift .lg-gamble-btn.is-active{
  color: #14161c !important;
  background: #ff8a9f !important;
  border-color: transparent !important;
}

html body.lidogift #casesGrid.hidden,
html body.lidogift .cases-grid.hidden,
html body.lidogift .lg-live-card.hidden,
html body.lidogift #caseInlineStageHost.hidden{
  display: none !important;
}

html body.lidogift #playCasesView.is-case-detail-open .lg-live-card,
html body.lidogift.lg-case-open .lg-live-card{
  display: none !important;
}

html body.lidogift #caseInlineStageHost:not(.hidden){
  display: block !important;
  width: 100% !important;
}

html body.lidogift .lg-case-route{
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

html body.lidogift .lg-case-top{
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
}

html body.lidogift .lg-case-name{
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #eef1f6;
  text-transform: none;
  letter-spacing: -0.02em;
}

html body.lidogift .lg-case-hero{
  background: #14161c;
  border: 1px solid #ffffff0f;
  border-radius: 20px;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

html body.lidogift .lg-fast-open{
  background: #c4a574 !important;
  color: #1a1406 !important;
  border: 0 !important;
  min-height: 54px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}

html body.lidogift .case-phone-open-btn{
  min-height: 54px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

html body.lidogift .case-open-btn-price{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html body.lidogift .case-open-btn-price img{
  width: 16px;
  height: 16px;
}

html body.lidogift .case-phone-prizes-head{
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: left !important;
}

html body.lidogift .case-phone-prizes-head h3{
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #eef1f6 !important;
}

html body.lidogift .case-prize-count{
  background: #f3e08a !important;
  color: #1a1406 !important;
  border: 0 !important;
  font-weight: 700 !important;
}

html body.lidogift .case-prize-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body.lidogift .case-prize-card{
  padding: 12px 8px !important;
  border-radius: 16px !important;
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
}

html body.lidogift .case-prize-card-visual{
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

html body.lidogift .case-prize-card-visual img:not(.lg-gift-glow){
  width: 72% !important;
  height: auto !important;
  max-height: 72% !important;
  object-fit: contain !important;
}

html body.lidogift .lg-page-dimmed,
html body.lidogift.lg-inner-open #playTab,
html body.lidogift.lg-inner-open #profileTab,
html body.lidogift.lg-inner-open #socialTab,
html body.lidogift.lg-inner-open #depositTab{
  display: none !important;
}

html body.lidogift .lg-inner-page:not(.hidden){
  display: block !important;
}

html body.lidogift .lg-deposit-page{
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0 32px;
}

html body.lidogift .lg-pay-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html body.lidogift .lg-pay-opt{
  min-height: 92px;
  padding: 10px 8px !important;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #ffffff14;
  background: transparent;
  color: #eef1f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
}

html body.lidogift .lg-pay-opt img{
  width: 100%;
  height: 72px;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  mix-blend-mode: normal;
  display: block;
}

html body.lidogift .lg-pay-opt span{
  display: none;
}

html body.lidogift .lg-pay-opt.active{
  border-color: #eef1f6;
  box-shadow: 0 0 0 2px #ffffff2e;
  background: #ffffff0a;
}

html body.lidogift .lg-deposit-label{
  color: #8b93a3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html body.lidogift .lg-deposit-amount{
  display: flex;
  align-items: center;
  gap: 8px;
}

html body.lidogift .lg-deposit-amount .field{
  flex: 1;
}

html body.lidogift .lg-deposit-quick{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

html body.lidogift .lg-craft-layout{
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

html body.lidogift .lg-craft-inv .section-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

html body.lidogift #playCraftView .lg-up-empty{
  grid-column: 1 / -1;
}

@media (min-width: 700px) {
  html body.lidogift .case-prize-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  html body.lidogift .lg-craft-layout{
    grid-template-columns: none !important;
  }
}

/* ==========================================================================
   TZ 10-photo lock — proportions,
fixed nav,
LIVE insert-only,
flatten shells
   Must stay last so styles.css ID + !important cannot undo these.
   ========================================================================== */

html:has(body.lidogift),
html body.lidogift{
  --lg-topbar-h: 112px;
  --lg-tg-top-offset: 0px;
  scroll-behavior: auto !important;
}

html body.lidogift{
  overflow-x: hidden;
}

html body.lidogift .app-shell{
  overflow-x: visible !important;
  padding-top: calc(var(--lg-tg-top-offset, 0px) + 56px) !important;
}

html body.lidogift.is-tg .app-shell{
  padding-top: var(--lg-topbar-h, calc(var(--lg-tg-top-offset, 56px) + 56px)) !important;
}

html body.lidogift header.topbar.lg-topbar,
html body.lidogift .app-shell > header.topbar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 200 !important;
}

html body.lidogift.is-tg header.topbar.lg-topbar,
html body.lidogift.is-tg .app-shell > header.topbar{
  top: 0 !important;
  padding-top: calc(var(--lg-tg-top-offset, 56px) + 12px) !important;
  background: #14161c !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.lidogift main.container{
  padding-top: 20px !important;
}

@media (min-width: 901px) {
  html body.lidogift main.container{
    padding-top: 28px !important;
    padding-bottom: 32px !important;
  }
}

/* 1. Upgrade: three equal boxes,
no TON on the run button */
html body.lidogift .upgrade-run-total,
html body.lidogift #runUpgradeBtn .upgrade-run-total{
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
}

html body.lidogift #runUpgradeBtn,
html body.lidogift .lg-upgrade-actions .upgrade-run-btn{
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

html body.lidogift #playUpgradeView .lg-pick-card,
html body.lidogift #playUpgradeView .lg-upgrade-core{
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 20px !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

html body.lidogift #playUpgradeView .lg-pick-label{
  flex: 0 0 auto;
  min-height: 18px;
  margin-bottom: 10px !important;
}

html body.lidogift #playUpgradeView .lg-pick-label-ghost{
  visibility: hidden !important;
  pointer-events: none !important;
}

html body.lidogift #playUpgradeView .upgrade-slot-grid,
html body.lidogift #playUpgradeView #upgradeSourceSlots,
html body.lidogift #playUpgradeView .lg-target-core,
html body.lidogift #playUpgradeView .upgrade-slot{
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .upgrade-slot,
html body.lidogift #playUpgradeView .lg-pick-card .lg-target-core{
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.lidogift #playUpgradeView .lg-pick-card,
html body.lidogift #playUpgradeView .lg-upgrade-core{
  min-height: 280px !important;
}

@media (min-width: 901px) {
  html body.lidogift #playUpgradeView .lg-upgrade-arena{
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: minmax(360px, auto) !important;
    grid-template-areas: "src core tgt" !important;
    align-items: stretch !important;
    gap: 20px !important;
  }

html body.lidogift #playUpgradeView .lg-pick-card,
  html body.lidogift #playUpgradeView .lg-upgrade-core{
    min-height: 360px !important;
    height: 100% !important;
  }
}

/* 2–3. Craft: CaseMint full-width scale */
html body.lidogift #playCraftView .lg-craft-layout,
html body.lidogift .lg-craft-layout{
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  gap: 24px !important;
}

html body.lidogift #playCraftView .lg-craft-board.card,
html body.lidogift #playCraftView .lg-craft-inv.card{
  width: 100% !important;
  max-width: none !important;
}

html body.lidogift #playCraftView .lg-craft-board{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

html body.lidogift #playCraftView .lg-craft-slots{
  width: 100% !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 20px !important;
  border-radius: 20px !important;
}

html body.lidogift #playCraftView .lg-craft-slot{
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

html body.lidogift #playCraftView .lg-craft-slot-num{
  font-size: 22px !important;
}

html body.lidogift #playCraftView .lg-craft-controls{
  width: 100% !important;
  gap: 16px !important;
  margin-top: 0 !important;
}

html body.lidogift #playCraftView .lg-craft-stats{
  padding: 24px !important;
  border-radius: 20px !important;
}

html body.lidogift #playCraftView .lg-craft-actions{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

html body.lidogift #playCraftView #runCraftBtn,
html body.lidogift #playCraftView #clearCraftBtn{
  min-height: 56px !important;
  font-size: 16px !important;
  width: 100% !important;
}

html body.lidogift #playCraftView .lg-craft-item{
  padding: 16px !important;
}

html body.lidogift #playCraftView .lg-craft-item-img{
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}

html body.lidogift #playCraftView .inventory-grid,
html body.lidogift #craftGrid.inventory-grid{
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  max-height: none !important;
  overflow: visible !important;
}

/* 4. LIVE: static until a new drop is inserted */
html body.lidogift .lg-live-track{
  animation: none !important;
  width: max-content !important;
  transform: translateX(0);
}

html body.lidogift #hubLiveFeed,
html body.lidogift .live-items{
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

/* 6. Profile spacing + compact language + sell-all alignment */
html body.lidogift #profileTab .lg-profile-top{
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  margin-bottom: 24px !important;
}

html body.lidogift #profileTab .profile-hero,
html body.lidogift #profileTab .profile-hero-clean{
  margin: 0 !important;
}

html body.lidogift #profileTab .profile-utility-grid{
  margin-top: 0 !important;
  width: 100% !important;
}

html body.lidogift #profileTab .lg-settings-row{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html body.lidogift #profileTab .lg-lang-switch{
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  max-width: max-content !important;
  justify-self: start;
}

html body.lidogift #sellAllBtn{
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  line-height: 1 !important;
}

html body.lidogift #sellAllBtn .lg-sell-label,
html body.lidogift #sellAllBtn .lg-sell-sum,
html body.lidogift #sellAllBtn .lg-price-inline{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

html body.lidogift #sellAllBtn img{
  width: 14px !important;
  height: 14px !important;
  display: block !important;
  flex-shrink: 0;
  margin: 0 !important;
  vertical-align: middle;
}

html body.lidogift #sellAllBtn strong{
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* 7–8. Case list: image → name → price under the name */
html body.lidogift .case-card-product{
  display: flex !important;
  flex-direction: column !important;
}

html body.lidogift .case-card-product .case-card-cover-wrap{
  order: 1 !important;
}

html body.lidogift .case-card-product .case-card-copy{
  order: 2 !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

html body.lidogift .case-card-product .case-card-footer{
  order: 3 !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 6px !important;
}

html body.lidogift .case-card-product .case-card-copy .case-card-footer{
  order: 0 !important;
}

html body.lidogift .case-card-product .balance-inline-compact{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
}

/* 9–10. Case inner page: wider,
clean back,
one shell per gift */
html body.lidogift .lg-case-route,
html body.lidogift .case-phone-shell.lg-case-route{
  max-width: 1100px !important;
  width: 100% !important;
  margin: 0 auto !important;
  gap: 28px !important;
}

html body.lidogift .lg-inner-back,
html body.lidogift .case-phone-back,
html body.lidogift #caseBackBtn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid #ffffff0f !important;
  background: #ffffff0a !important;
  color: #eef1f6 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

html body.lidogift .lg-inner-back svg,
html body.lidogift .case-phone-back svg,
html body.lidogift #caseBackBtn svg{
  display: block !important;
  width: 18px !important;
  height: 18px !important;
}

html body.lidogift .lg-case-hero{
  width: 100% !important;
  padding: 32px 28px 24px !important;
}

html body.lidogift .lg-case-art,
html body.lidogift .case-phone-cover.lg-case-art{
  width: min(320px, 56vw) !important;
  height: min(320px, 56vw) !important;
  max-height: 340px !important;
  background: transparent !important;
  border: 0 !important;
}

html body.lidogift .lg-case-actions{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  width: 100% !important;
  gap: 10px !important;
}

html body.lidogift .case-phone-prizes{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: grid !important;
  gap: 16px !important;
}

html body.lidogift .case-prize-grid{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  gap: 12px !important;
}

html body.lidogift .case-prize-card,
html body.lidogift .case-drop-card{
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 16px !important;
  padding: 14px 10px 12px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

html body.lidogift .case-prize-card-visual,
html body.lidogift .case-drop-visual{
  width: 100% !important;
  flex: 0 0 auto !important;
  aspect-ratio: 1 / 1 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.lidogift .case-prize-card-visual img:not(.lg-gift-glow),
html body.lidogift .case-drop-visual img:not(.lg-gift-glow){
  width: 64% !important;
  height: auto !important;
  max-height: 64% !important;
}

html body.lidogift .case-prize-card-price{
  position: static !important;
  top: auto !important;
  right: auto !important;
  background: transparent !important;
  padding: 0 !important;
}

html body.lidogift .case-prize-card-bottom{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
}

/* ==========================================================================
   Upgrade empty slots + CaseMint win/lose (must stay last)
   ========================================================================== */

html body.lidogift #upgradeOutcomeBanner,
html body.lidogift .upgrade-outcome-banner,
html body.lidogift #upgradeResultFx,
html body.lidogift #playUpgradeView .upgrade-fx,
html body.lidogift #playUpgradeView .win-rays{
  display: none !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .upgrade-slot,
html body.lidogift #playUpgradeView .lg-pick-card .lg-target-core,
html body.lidogift #playUpgradeView #upgradeSourceSlots,
html body.lidogift #playUpgradeView .upgrade-slot-grid{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  padding: 0 !important;
}

html body.lidogift #playUpgradeView #upgradeTargetPlaceholder.hidden,
html body.lidogift #playUpgradeView #upgradeTargetCard.hidden,
html body.lidogift #playUpgradeView .upgrade-target-card.hidden,
html body.lidogift #playUpgradeView .upgrade-target-placeholder.hidden{
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html body.lidogift #playUpgradeView .lg-up-empty,
html body.lidogift #playUpgradeView .upgrade-slot-empty,
html body.lidogift #playUpgradeView #upgradeTargetPlaceholder{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 140px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  place-items: center !important;
}

html body.lidogift #playUpgradeView #upgradeTargetPlaceholder::before{
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html body.lidogift #playUpgradeView .lg-up-empty-plus,
html body.lidogift #playUpgradeView .upgrade-slot-empty > span,
html body.lidogift #playUpgradeView #upgradeTargetPlaceholder .lg-up-empty-plus{
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 50% !important;
  border: 1px dashed #ffffff1f !important;
  background: #00000040 !important;
  color: #8b93a3 !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
}

html body.lidogift #playUpgradeView .lg-up-empty-text,
html body.lidogift #playUpgradeView .upgrade-slot-empty strong,
html body.lidogift #playUpgradeView #upgradeTargetPlaceholder .lg-up-empty-text,
html body.lidogift #playUpgradeView #upgradeTargetPlaceholder strong{
  margin: 0 !important;
  color: #5e7368 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: center !important;
  line-height: 1.3 !important;
}

html body.lidogift #playUpgradeView .lg-target-core,
html body.lidogift #playUpgradeView #upgradeTargetCard{
  position: relative;
}

html body.lidogift #playUpgradeView .lg-up-remove{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #ffffff0f;
  background: #0006;
  color: #8b93a3;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

html body.lidogift #playUpgradeView .lg-up-remove:hover{
  color: #eef1f6;
  background: #ff4d6d33;
}

html body.lidogift #playUpgradeView .upgrade-gift-visual{
  position: relative !important;
}

html body.lidogift #playUpgradeView .lg-up-ban{
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid #ff4d6d;
  background: #1a0a10cc;
  pointer-events: none;
}

html body.lidogift #playUpgradeView .lg-up-ban::after{
  content: "";
  position: absolute;
  left: 8%;
  top: 50%;
  width: 84%;
  height: 3px;
  background: #ff4d6d;
  transform: translateY(-50%) rotate(-32deg);
  border-radius: 2px;
}

html body.lidogift #playUpgradeView .upgrade-target-card.is-inline-success,
html body.lidogift #playUpgradeView .lg-target-core:has(.is-inline-success){
  --tone: #f3e08a;
}

html body.lidogift #playUpgradeView .upgrade-sim-wheel.lg-wheel-win .upgrade-sim-ring,
html body.lidogift #playUpgradeView .upgrade-sim-wheel.has-inline-success .upgrade-sim-ring{
  box-shadow: 0 0 0 1px #46d37e73, 0 24px 60px -20px #46d37e8c !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-wheel.lg-wheel-lose .upgrade-sim-ring,
html body.lidogift #playUpgradeView .upgrade-sim-wheel.has-inline-fail .upgrade-sim-ring{
  box-shadow: 0 0 0 1px #ff4d6d73, 0 24px 60px -20px #ff4d6d73 !important;
}

html body.lidogift #playUpgradeView .lg-wheel-result{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  text-align: center;
  animation: lg-wheel-result-in .16s ease-out;
}

html body.lidogift #playUpgradeView .lg-wheel-result-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

html body.lidogift #playUpgradeView .lg-wheel-result-text{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  text-wrap: balance;
}

html body.lidogift #playUpgradeView .lg-wheel-result--win{
  color: #7be5a4;
}

html body.lidogift #playUpgradeView .lg-wheel-result--win .lg-wheel-result-icon{
  background: #46d37e2e;
  border: 1px solid #46d37e8c;
}

html body.lidogift #playUpgradeView .lg-wheel-result--lose{
  color: #ff8a9f;
}

html body.lidogift #playUpgradeView .lg-wheel-result--lose .lg-wheel-result-icon{
  background: #ff4d6d2e;
  border: 1px solid #ff4d6d8c;
}

@keyframes lg-wheel-result-in {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Selected gifts in the two upgrade slots: same CaseMint scale */
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-compact,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-compact{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-visual,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-compact .upgrade-gift-visual,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-visual,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-compact .upgrade-gift-visual{
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-visual img:not(.lg-gift-glow),
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-compact .upgrade-gift-visual img:not(.lg-gift-glow),
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-visual img:not(.lg-gift-glow),
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-compact .upgrade-gift-visual img:not(.lg-gift-glow){
  width: 80% !important;
  height: 80% !important;
  max-width: 80% !important;
  max-height: 80% !important;
  object-fit: contain !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-copy,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-copy{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 0 !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-copy strong,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-compact .upgrade-gift-copy strong,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-copy strong{
  min-height: 0 !important;
  color: #eef1f6 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-copy span,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-compact .upgrade-gift-copy span,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-copy span{
  color: #eef1f6 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Gift glow: blurred copy of the gift image so lighting matches the gift itself */
html body.lidogift .upgrade-gift-visual::before,
html body.lidogift .lg-up-card-img::before,
html body.lidogift .inventory-visual::before,
html body.lidogift .lg-craft-prize::before{
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

html body.lidogift .inventory-visual,
html body.lidogift .lg-craft-prize,
html body.lidogift .lg-craft-slot.is-filled,
html body.lidogift .lg-craft-item-img,
html body.lidogift .case-prize-card-visual,
html body.lidogift .case-drop-visual,
html body.lidogift .live-ribbon-visual,
html body.lidogift .live-item,
html body.lidogift .item-img{
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

html body.lidogift .lg-up-card-img{
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

html body.lidogift .upgrade-gift-visual{
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
}

html body.lidogift img.lg-gift-glow,
html body.lidogift .gift-anim-host img.lg-gift-glow,
html body.lidogift .lg-up-card-img img.lg-gift-glow,
html body.lidogift .inventory-visual img.lg-gift-glow,
html body.lidogift .lg-craft-prize img.lg-gift-glow,
html body.lidogift .lg-craft-slot img.lg-gift-glow,
html body.lidogift .lg-craft-item-img img.lg-gift-glow,
html body.lidogift .case-prize-card-visual img.lg-gift-glow,
html body.lidogift .case-drop-visual img.lg-gift-glow,
html body.lidogift .live-ribbon-visual img.lg-gift-glow,
html body.lidogift .live-item img.lg-gift-glow,
html body.lidogift .item-img img.lg-gift-glow{
  position: absolute !important;
  inset: auto !important;
  top: 52% !important;
  left: 50% !important;
  z-index: 0 !important;
  width: 58% !important;
  height: 58% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  pointer-events: none !important;
  user-select: none !important;
  transform: translate(-50%, -50%) !important;
  filter: blur(10px) saturate(1.12) brightness(1.05) !important;
  opacity: .18 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  mix-blend-mode: soft-light !important;
}

html body.lidogift #playUpgradeView .lg-pick-card,
html body.lidogift #playUpgradeView .upgrade-slot,
html body.lidogift #playUpgradeView .lg-target-core,
html body.lidogift #playUpgradeView .upgrade-gift-visual,
html body.lidogift #playUpgradeView .upgrade-gift-visual.gift-anim-host,
html body.lidogift .lg-up-inventories .lg-up-card,
html body.lidogift .lg-up-inventories .lg-up-card-img{
  overflow: hidden !important;
  contain: paint;
}

html body.lidogift .gift-anim-host.is-gift-animating img.lg-gift-glow,
html body.lidogift .upgrade-gift-visual.gift-anim-host.is-gift-animating img.lg-gift-glow{
  opacity: .55 !important;
  visibility: visible !important;
  display: block !important;
}

html body.lidogift .upgrade-gift-visual img:not(.lg-gift-glow),
html body.lidogift .lg-up-card-img img:not(.lg-gift-glow),
html body.lidogift .inventory-visual img:not(.lg-gift-glow),
html body.lidogift .lg-craft-prize img:not(.lg-gift-glow),
html body.lidogift .lg-craft-slot img:not(.lg-gift-glow),
html body.lidogift .lg-craft-item-img img:not(.lg-gift-glow),
html body.lidogift .case-prize-card-visual img:not(.lg-gift-glow){
  position: relative !important;
  z-index: 1 !important;
}

/* Profile: CaseMint layout,
6 gifts,
no nested shells */
html body.lidogift #profileTab .lg-profile-top{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 24px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

html body.lidogift #profileTab .profile-hero,
html body.lidogift #profileTab .profile-hero-clean{
  height: 100% !important;
  margin: 0 !important;
  padding: 48px 24px !important;
  position: relative !important;
  overflow: hidden !important;
}

html body.lidogift #profileTab .profile-hero::before,
html body.lidogift #profileTab .profile-hero-clean::before,
html body.lidogift #profileTab .profile-hero::after,
html body.lidogift #profileTab .profile-hero-clean::after{
  content: none !important;
  display: none !important;
  background: none !important;
  filter: none !important;
  opacity: 0 !important;
  animation: none !important;
  box-shadow: none !important;
}

html body.lidogift #profileTab .profile-utility-grid{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin: 0 !important;
  width: 100% !important;
}

html body.lidogift #profileTab .profile-utility-card{
  height: 100% !important;
  padding: 24px !important;
  gap: 16px;
  display: flex !important;
  flex-direction: column !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html body.lidogift #profileTab .lg-avatar-ring,
html body.lidogift #profileTab .profile-avatar::before,
html body.lidogift #profileTab .profile-avatar::after{
  content: none !important;
  display: none !important;
  animation: none !important;
  background: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body.lidogift #profileTab .profile-avatar{
  position: relative !important;
  z-index: 2 !important;
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: 3px solid #6fd4a380 !important;
  background: #0b0d12 !important;
  box-shadow: none !important;
}

html body.lidogift #profileTab .profile-avatar img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  position: relative !important;
  z-index: 2 !important;
  background: #0b0d12 !important;
  border-radius: 50% !important;
  filter: none !important;
  opacity: 1 !important;
}

html body.lidogift #profileTab .lg-profile-user{
  position: relative;
  z-index: 1;
}

html body.lidogift #profileTab #profileGrid,
html body.lidogift #profileTab .inventory-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

html body.lidogift #profileGrid .inventory-card{
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  box-shadow: none !important;
  border-radius: 20px !important;
  padding: 8px !important;
  gap: 6px !important;
}

html body.lidogift #profileGrid .inventory-card:hover{
  background: #ffffff05 !important;
  border-color: #ffffff1f !important;
}

html body.lidogift #profileGrid .inventory-card.is-selected{
  border-color: #b8f0d4 !important;
  box-shadow: 0 0 0 2px #6fd4a347 !important;
  background: #13241c !important;
}

html body.lidogift #profileGrid .inventory-visual{
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 14px !important;
}

html body.lidogift #profileGrid .inventory-body{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 100%;
}

html body.lidogift #profileGrid .inventory-price{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: auto !important;
  max-width: 100% !important;
  gap: 4px !important;
  margin: 0 auto !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  background: #6fd4a31a !important;
  border: 1px solid #6fd4a338 !important;
  box-shadow: none !important;
}

html body.lidogift #profileGrid .inventory-price > :not(img):not(strong){
  display: contents !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.lidogift #profileGrid .inventory-actions{
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 4px !important;
}

html body.lidogift #profileGrid .lg-inv-btn,
html body.lidogift #profileGrid .inventory-actions .mini-btn,
html body.lidogift #profileGrid .inventory-actions [data-a]{
  width: 100% !important;
  min-height: 36px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

html body.lidogift #profileGrid .lg-inv-btn-sell,
html body.lidogift #profileGrid .inventory-actions [data-a="sell"]{
  color: #062318 !important;
  background: #6fd4a3 !important;
  border: 1px solid #6fd4a399 !important;
}

html body.lidogift #profileGrid .lg-inv-btn-sell:hover,
html body.lidogift #profileGrid .inventory-actions [data-a="sell"]:hover{
  background: #4cbe8a !important;
}

html body.lidogift #profileGrid .lg-inv-btn-withdraw,
html body.lidogift #profileGrid .inventory-actions [data-a="withdraw"]{
  color: #14161c !important;
  background: #f3e08a !important;
  border: 1px solid #f3e08a !important;
}

html body.lidogift #profileGrid .lg-inv-btn-withdraw:hover,
html body.lidogift #profileGrid .inventory-actions [data-a="withdraw"]:hover{
  background: #f5be3d !important;
}

html body.lidogift #profileSupportBanner{
  gap: 10px !important;
}

html body.lidogift #profileSupportBanner svg{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (min-width: 700px) {
html body.lidogift #profileTab #profileGrid,
  html body.lidogift #profileTab .inventory-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  html body.lidogift #profileGrid .inventory-card{
    padding: 16px !important;
    gap: 8px !important;
  }
}

@media (min-width: 861px) {
  html body.lidogift #profileTab .lg-profile-top{
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr) !important;
  }
}

@media (min-width: 901px) {
html body.lidogift #profileTab #profileGrid,
  html body.lidogift #profileTab .inventory-grid{
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Gift hover animation: same box as the static photo,
instant swap */
html body.lidogift .gift-anim-host,
html body.lidogift .lg-craft-item-img,
html body.lidogift .lg-craft-slot.is-filled,
html body.lidogift .lg-craft-prize,
html body.lidogift .live-item,
html body.lidogift .inventory-visual,
html body.lidogift .case-prize-card-visual,
html body.lidogift .case-gift-wrap{
  position: relative !important;
}

html body.lidogift .gift-anim-host > img:not(.lg-gift-glow),
html body.lidogift .gift-anim-host img:not(.lg-gift-glow){
  position: relative !important;
  z-index: 2 !important;
  width: 80% !important;
  height: auto !important;
  max-width: 80% !important;
  max-height: 80% !important;
  object-fit: contain !important;
  transition: none !important;
}

html body.lidogift .live-item.gift-anim-host img:not(.lg-gift-glow),
html body.lidogift .live-ribbon-visual.gift-anim-host img:not(.lg-gift-glow){
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
}

html body.lidogift .case-prize-card-visual.gift-anim-host img:not(.lg-gift-glow){
  width: 68% !important;
  height: auto !important;
  max-width: 68% !important;
  max-height: none !important;
  min-width: 48px !important;
  min-height: 48px !important;
}

html body.lidogift .lg-craft-prize.gift-anim-host img:not(.lg-gift-glow){
  width: 90% !important;
  height: 90% !important;
  max-width: 90% !important;
  max-height: 90% !important;
}

html body.lidogift .case-gift-wrap.gift-anim-host img:not(.lg-gift-glow),
html body.lidogift .case-gift-wrap.gift-anim-host .case-gift{
  width: 42% !important;
  max-width: 110px !important;
  height: auto !important;
}

html body.lidogift .gift-anim-layer{
  position: absolute !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  width: 68% !important;
  height: 68% !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-50%, -50%) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 4 !important;
  overflow: hidden !important;
}

html body.lidogift .gift-anim-host.is-gift-animating .gift-anim-layer{
  display: flex !important;
}

html body.lidogift .gift-anim-layer svg,
html body.lidogift .gift-anim-layer canvas{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  transform: none !important;
}

html body.lidogift .gift-anim-host.is-gift-animating > img:not(.lg-gift-glow){
  opacity: 0 !important;
}

html body.lidogift .gift-anim-host.is-gift-animating img.lg-gift-glow{
  opacity: .28 !important;
  visibility: visible !important;
  display: block !important;
}

/* Craft inventory: CaseMint inv-card scale + aligned copy */
html body.lidogift #playCraftView .lg-craft-inv.card{
  padding: 24px !important;
  border-radius: 20px !important;
  gap: 16px !important;
  display: flex !important;
  flex-direction: column !important;
}

html body.lidogift #playCraftView .lg-craft-inv .section-head{
  margin: 0 !important;
  align-items: baseline !important;
}

html body.lidogift #playCraftView .lg-craft-inv h2{
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #eef1f6 !important;
}

html body.lidogift #playCraftView .lg-craft-inv .lg-up-count{
  background: none !important;
  border: 0 !important;
  color: #5e7368 !important;
  min-width: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body.lidogift #playCraftView #craftGrid,
html body.lidogift #playCraftView #craftGrid.inventory-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 16px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  width: 100% !important;
}

html body.lidogift #playCraftView .lg-craft-item{
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 16px !important;
  gap: 8px !important;
  border-radius: 20px !important;
  border: 1px solid #ffffff0f !important;
  background: #14161c !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  font: inherit !important;
  color: #eef1f6 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}

html body.lidogift #playCraftView .lg-craft-item.is-selected{
  border-color: #6fd4a3 !important;
  box-shadow: 0 0 0 2px #6fd4a347 !important;
  background: #6fd4a30a !important;
}

html body.lidogift #playCraftView .lg-craft-item-img,
html body.lidogift #playCraftView #craftGrid .lg-craft-item-img{
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  place-items: center !important;
}

html body.lidogift #playCraftView .lg-craft-item-img img:not(.lg-gift-glow),
html body.lidogift #playCraftView .lg-craft-item-img.gift-anim-host img:not(.lg-gift-glow){
  width: 80% !important;
  height: 80% !important;
  max-width: 80% !important;
  max-height: 80% !important;
  object-fit: contain !important;
}

html body.lidogift #playCraftView .lg-craft-item-name{
  width: 100% !important;
  min-height: 2.6em !important;
  margin: 0 !important;
  color: #eef1f6 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word;
}

html body.lidogift #playCraftView .lg-craft-item-price{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  background: #6fd4a31a !important;
  border: 1px solid #6fd4a338 !important;
  color: #eef1f6 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1 !important;
}

html body.lidogift #playCraftView .lg-craft-item-price img{
  width: 14px !important;
  height: 14px !important;
}

html body.lidogift #playCraftView .lg-craft-item-price strong{
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #eef1f6 !important;
}

html body.lidogift #playCraftView .lg-craft-stats{
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 20px 24px !important;
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

html body.lidogift #playCraftView .lg-craft-stat{
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  min-width: 0;
}

html body.lidogift #playCraftView .lg-craft-stat-end{
  text-align: right !important;
  align-items: flex-end !important;
}

html body.lidogift #playCraftView .lg-craft-stat-divider{
  width: 1px;
  height: 40px;
  flex-shrink: 0;
  background: #ffffff0f;
}

html body.lidogift #playCraftView .lg-craft-stat .eyebrow{
  color: #5e7368 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

html body.lidogift #playCraftView .lg-craft-stat-value,
html body.lidogift #playCraftView .lg-craft-stats .balance-inline{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #eef1f6 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
}

html body.lidogift #playCraftView .lg-craft-stat-value strong,
html body.lidogift #playCraftView #craftTotal{
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #eef1f6 !important;
  letter-spacing: 0 !important;
}

html body.lidogift #playCraftView .lg-craft-stat-value img,
html body.lidogift #playCraftView .lg-craft-stats .balance-inline img{
  width: 20px !important;
  height: 20px !important;
}

html body.lidogift #playCraftView .lg-craft-stat-range,
html body.lidogift #playCraftView #craftGiftRange{
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f3e08a !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 560px) {
html body.lidogift #playCraftView #craftGrid,
  html body.lidogift #playCraftView #craftGrid.inventory-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body.lidogift #playCraftView .lg-craft-item{
    padding: 8px !important;
    gap: 6px !important;
  }
}

/* Upgrade: one-line slot titles + tab shells that don't overlap */
html body.lidogift #playUpgradeView .lg-pick-card{
  overflow: hidden !important;
  isolation: isolate !important;
  min-width: 0 !important;
}

html body.lidogift #playUpgradeView .lg-pick-label{
  flex: 0 0 auto !important;
  min-height: 16px !important;
  margin: 0 0 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
  letter-spacing: .08em !important;
  font-size: 12px !important;
}

html body.lidogift #playUpgradeView .lg-pick-label-ghost{
  min-height: 16px !important;
  line-height: 1.2 !important;
}

html body.lidogift #playUpgradeView .lg-pick-card .lg-up-empty,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-slot-empty,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-target-placeholder{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: auto 0 !important;
  padding: 24px 0 !important;
}

html body.lidogift .lg-up-tabs{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #ffffff0a !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 14px !important;
}

html body.lidogift .lg-up-tab,
html body.lidogift .lg-up-tab:first-child,
html body.lidogift .lg-up-tab:last-child{
  margin: 0 !important;
  border: 0 !important;
  border-right-width: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  position: relative !important;
  z-index: 0 !important;
}

html body.lidogift .lg-up-tab + .lg-up-tab{
  border-left: 1px solid #ffffff0f !important;
}

html body.lidogift .lg-up-tab.is-active{
  z-index: 1 !important;
  color: #eef1f6 !important;
  background: #6fd4a32e !important;
  box-shadow: inset 0 0 0 1px #6fd4a380 !important;
}

@media (max-width: 600px) {
  html body.lidogift #playUpgradeView .lg-upgrade-arena{
    gap: 8px !important;
  }

html body.lidogift #playUpgradeView .lg-pick-card,
  html body.lidogift #playUpgradeView .lg-upgrade-core{
    padding: 16px !important;
  }
}

/* Profile: CaseMint settings + inventory head + inv-cards */
html body.lidogift #profileTab .lg-settings-row-promo{
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}

html body.lidogift #profileTab .lg-settings-row-promo > span{
  color: #8b93a3 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  flex-shrink: 0;
}

html body.lidogift #profileTab .lg-promo-row{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

html body.lidogift #profileTab .lg-promo-row .field,
html body.lidogift #profileTab #promoCodeInput{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

html body.lidogift #profileTab #redeemPromoBtn{
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

html body.lidogift #profileTab .profile-inventory-card{
  padding: 24px !important;
}

html body.lidogift #profileTab .lg-profile-inv-head{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px 10px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
}

html body.lidogift #profileTab .lg-profile-inv-left{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

html body.lidogift #profileTab .lg-profile-inv-head h2{
  margin: 0 !important;
  color: #eef1f6 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

html body.lidogift #profileTab .lg-profile-inv-count{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  height: 22px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #6fd4a31f !important;
  border: 1px solid #6fd4a338 !important;
  color: #6fd4a3 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

html body.lidogift #profileTab #sellAllBtn{
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  gap: 6px !important;
  overflow: hidden !important;
}

html body.lidogift #profileTab #sellAllBtn img{
  width: 14px !important;
  height: 14px !important;
}

html body.lidogift #profileTab #profileGrid .inventory-visual img:not(.lg-gift-glow),
html body.lidogift #profileTab #profileGrid .inventory-visual.gift-anim-host img:not(.lg-gift-glow){
  width: 80% !important;
  height: 80% !important;
  max-width: 80% !important;
  max-height: 80% !important;
}

@media (max-width: 520px) {
html body.lidogift #profileTab .profile-inventory-card,
  html body.lidogift #profileTab .profile-utility-card{
    padding: 16px !important;
  }

  html body.lidogift #profileTab .lg-profile-top{
    gap: 16px !important;
    margin-bottom: 16px !important;
  }

  html body.lidogift #profileTab .lg-profile-inv-left{
    flex: 1 1 auto !important;
  }

  html body.lidogift #profileTab #sellAllBtn{
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Kill tab / sell "page refresh" enter animation (styles.css .screen-enter + tabPulse) */
html body.lidogift .tab,
html body.lidogift .tab.active,
html body.lidogift .subtab,
html body.lidogift .subtab.active,
html body.lidogift .screen-enter,
html body.lidogift .tab.screen-enter,
html body.lidogift .subtab.screen-enter,
html body.lidogift #playTab,
html body.lidogift #playTab.active,
html body.lidogift #playTab.screen-enter,
html body.lidogift #profileTab,
html body.lidogift #profileTab.active,
html body.lidogift #profileTab.screen-enter,
html body.lidogift #playCasesView,
html body.lidogift #playCasesView.active,
html body.lidogift #playCasesView.screen-enter,
html body.lidogift #playUpgradeView,
html body.lidogift #playUpgradeView.active,
html body.lidogift #playCraftView,
html body.lidogift #playCraftView.active,
html body.lidogift #playUpgradeView.active .upgrade-screen-shell,
html body.lidogift #caseInlineStageHost{
  animation: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  will-change: auto !important;
}

html body.lidogift .case-card-product,
html body.lidogift .case-card,
html body.lidogift .case-card-compact,
html body.lidogift .case-card-premium{
  animation: none !important;
}

html body.lidogift #profileTab .profile-utility-grid,
html body.lidogift #profileTab .profile-utility-card,
html body.lidogift #profileTab .progress-card,
html body.lidogift #profileTab .profile-inventory-card,
html body.lidogift #profileTab .card{
  animation: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html body.lidogift #profileTab .progress-card::before,
html body.lidogift #profileTab .progress-card::after,
html body.lidogift #profileTab .profile-utility-card::before,
html body.lidogift #profileTab .profile-utility-card::after{
  animation: none !important;
}

/* Case interior → CaseMint case-page (idle shell + x1 horizontal / xN vertical opening) */
html body.lidogift.lg-case-open .lg-play-head,
html body.lidogift #playCasesView.is-case-detail-open ~ .lg-play-head,
html body.lidogift.lg-case-open #playTab > .lg-play-head{
  display: none !important;
}

html body.lidogift .lg-case-route,
html body.lidogift .case-phone-shell.lg-case-route{
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 24px 0 48px !important;
  gap: 48px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.lidogift .lg-case-box:not(.is-results){
  display: flex !important;
  flex-direction: column !important;
  height: 580px !important;
  width: 100% !important;
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  position: relative !important;
}

html body.lidogift .lg-case-box.is-opening:not(.is-results){
  height: 580px !important;
}

html body.lidogift .lg-case-box.is-results{
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100% !important;
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 20px !important;
}

html body.lidogift .lg-case-box.is-results .lg-case-hero,
html body.lidogift .lg-case-box.is-results #casePhoneCover,
html body.lidogift .lg-case-box.is-results .lg-case-art.is-opening,
html body.lidogift .lg-case-box.is-results .lg-case-opening{
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: none !important;
  display: block !important;
  overflow: visible !important;
  width: 100% !important;
}

html body.lidogift .lg-case-hero{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  display: flex !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 0 !important;
}

html body.lidogift .lg-case-name{
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

html body.lidogift .lg-case-art,
html body.lidogift .case-phone-cover.lg-case-art,
html body.lidogift .case-inline-shell .case-phone-cover,
html body.lidogift .case-inline-shell #casePhoneCover,
html body.lidogift #casePhoneCover{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: radial-gradient(circle, #ffffff14, #0000 62%) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

html body.lidogift .lg-case-art::after,
html body.lidogift .case-phone-cover::after,
html body.lidogift #casePhoneCover::after{
  display: none !important;
  content: none !important;
}

/* Idle cover only. Descendant `img` here was crushing roulette + result gifts to ~20%. */
html body.lidogift .lg-case-art:not(.is-opening) > img,
html body.lidogift #casePhoneCover:not(.is-opening) > img{
  width: min(42%, 360px) !important;
  height: auto !important;
  max-width: 360px !important;
  max-height: 360px !important;
  aspect-ratio: 1 !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
}

html body.lidogift .lg-case-art.is-opening,
html body.lidogift #casePhoneCover.is-opening,
html body.lidogift .case-inline-shell #casePhoneCover.is-opening{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  background: #14161c !important;
}

html body.lidogift .lg-case-art.is-opening > img,
html body.lidogift #casePhoneCover.is-opening > img{
  display: none !important;
}

html body.lidogift .lg-case-panel{
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 24px !important;
  border-top: 1px solid #ffffff0f !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
}

html body.lidogift .lg-case-actions{
  position: relative !important;
  z-index: 1 !important;
}

html body.lidogift .lg-case-counts{
  position: relative !important;
  z-index: 3 !important;
  isolation: isolate !important;
}

html body.lidogift .lg-count-btn,
html body.lidogift .lg-count-btn.case-open-count-btn{
  pointer-events: auto !important;
  touch-action: manipulation !important;
  user-select: none !important;
}

html body.lidogift .lg-case-actions{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

html body.lidogift .case-phone-open-btn,
html body.lidogift #caseOpenBtn{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 10px !important;
  border-radius: 14px !important;
  background: #6fd4a3 !important;
  border: 1px solid #6fd4a399 !important;
  color: #062318 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  touch-action: manipulation !important;
  box-sizing: border-box !important;
}

html body.lidogift #caseOpenBtn .case-open-btn-copy,
html body.lidogift .case-phone-open-btn .case-open-btn-copy{
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex-shrink: 1 !important;
}

html body.lidogift #caseOpenBtn .case-open-btn-price,
html body.lidogift .case-phone-open-btn .case-open-btn-price{
  background: #00000047 !important;
  border-radius: 999px !important;
  padding: 3px 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  gap: 4px !important;
}

html body.lidogift #caseOpenBtn .case-open-btn-price img,
html body.lidogift .case-phone-open-btn .case-open-btn-price img{
  width: 12px !important;
  height: 12px !important;
}

html body.lidogift .lg-fast-open,
html body.lidogift #caseFastOpenBtn{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 10px !important;
  border-radius: 14px !important;
  background: #f3e08a !important;
  border: 1px solid #f3e08ab3 !important;
  color: #1a1608 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  touch-action: manipulation !important;
  box-sizing: border-box !important;
}

html body.lidogift .lg-case-counts,
html body.lidogift .lg-case-counts.case-open-counts,
html body.lidogift .lg-case-counts.case-open-counts-wide{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

html body.lidogift .lg-count-btn,
html body.lidogift .lg-count-btn.case-open-count-btn,
html body.lidogift .lg-case-counts .case-open-count-btn{
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 4px !important;
  border-radius: 14px !important;
  border: 1px solid #ffffff0f !important;
  background: transparent !important;
  color: #aeb6d4 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
}

html body.lidogift .lg-count-btn:hover,
html body.lidogift .lg-count-btn.case-open-count-btn:hover,
html body.lidogift .lg-case-counts .case-open-count-btn:hover{
  transform: none !important;
  box-shadow: none !important;
}

html body.lidogift .lg-count-btn.active,
html body.lidogift .lg-count-btn.case-open-count-btn.active,
html body.lidogift .lg-case-counts .case-open-count-btn.active{
  color: #fff !important;
  background: #6fd4a3 !important;
  border-color: #6fd4a38c !important;
  /* Без внешней тени — иначе active визуально лезет на «Открыть» */
  box-shadow: inset 0 0 0 1px #ffffff14 !important;
  transform: none !important;
}

html body.lidogift .case-phone-prizes-head h3{
  font-size: 20px !important;
}

html body.lidogift .case-prize-count{
  color: #f3e08a !important;
  background: #f3e08a1f !important;
  border: 1px solid #f3e08a4d !important;
  border-radius: 999px !important;
  min-width: 28px !important;
  min-height: 0 !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body.lidogift .case-prize-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body.lidogift .case-prize-card,
html body.lidogift .case-drop-card{
  background: #14161c !important;
  border: 1px solid #ffffff0f !important;
  border-radius: 20px !important;
  padding: 16px !important;
  gap: 16px !important;
  box-shadow: none !important;
}

html body.lidogift .case-prize-card-name{
  min-height: 0 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: #eef1f6 !important;
}

html body.lidogift .case-prize-card-price .case-price-inline,
html body.lidogift .case-prize-card-bottom .case-price-inline{
  background: #6fd4a31a !important;
  border: 1px solid #6fd4a338 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

html body.lidogift .case-prize-card-visual img:not(.lg-gift-glow),
html body.lidogift .case-drop-visual img:not(.lg-gift-glow){
  width: 64% !important;
  height: auto !important;
  max-height: none !important;
}

html body.lidogift .lg-case-opening,
html body.lidogift .case-opening-shell-inline,
html body.lidogift #caseOpeningShell{
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 0 !important;
}

html body.lidogift .lg-case-opening-stage,
html body.lidogift .case-opening-stage-v2{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  display: flex !important;
  position: relative !important;
}

html body.lidogift .lg-rolls,
html body.lidogift #caseOpeningRouletteStack{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

html body.lidogift .lg-rolls--multi,
html body.lidogift #caseOpeningRouletteStack.lg-rolls--multi{
  flex-direction: row !important;
  gap: 2px !important;
}

html body.lidogift .lg-roll,
html body.lidogift .case-open-row{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  gap: 0 !important;
}

html body.lidogift #caseOpeningRouletteStack.lg-rolls--multi .lg-roll,
html body.lidogift #caseOpeningRouletteStack.lg-rolls--multi .case-open-row{
  width: auto !important;
  flex: 1 1 0 !important;
}

html body.lidogift .lg-roulette,
html body.lidogift .case-open-row-shell{
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #14161c !important;
  box-shadow: none !important;
}

html body.lidogift .lg-rolls--single{
  justify-content: center !important;
}

html body.lidogift .lg-rolls--single .lg-roll,
html body.lidogift .lg-rolls--single .case-open-row{
  flex: 0 0 auto !important;
  height: auto !important;
}

html body.lidogift .lg-roulette--h{
  --lg-item-size: clamp(200px, 24vw, 280px);
  height: var(--lg-item-size) !important;
  margin: auto 0 !important;
  border-top: 1px solid #ffffff0f !important;
  border-bottom: 1px solid #ffffff0f !important;
}

html body.lidogift .lg-roulette--v{
  --lg-item-size: clamp(160px, 20vh, 220px);
}

/* x2–x5: ~3 ячейки в высоту героя,
иначе верх/низ режутся и прицел «плывёт» */
html body.lidogift #caseOpeningRouletteStack.lg-rolls--multi .lg-roulette--v,
html body.lidogift .lg-rolls--multi .lg-roulette--v{
  --lg-item-size: clamp(104px, 32%, 148px);
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
}

html body.lidogift .lg-roulette-visual,
html body.lidogift .case-open-reel-visual,
html body.lidogift #casePhoneCover .lg-roulette-visual,
html body.lidogift #casePhoneCover .case-open-reel-visual{
  aspect-ratio: 1 !important;
  /* CaseMint: ~58% / 60% — не на весь слот */
  width: 58% !important;
  height: auto !important;
  max-width: none !important;
  max-height: 60% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  z-index: 1 !important;
}

html body.lidogift #caseOpeningRouletteStack.lg-rolls--multi .lg-roulette-visual,
html body.lidogift #caseOpeningRouletteStack.lg-rolls--multi .case-open-reel-visual,
html body.lidogift .lg-rolls--multi .lg-roulette-visual,
html body.lidogift .lg-rolls--multi .case-open-reel-visual{
  width: 58% !important;
  max-height: 60% !important;
}

html body.lidogift .lg-roulette-window,
html body.lidogift .case-open-row-window{
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

html body.lidogift .case-open-row-shell::before,
html body.lidogift .lg-roulette::before{
  display: none !important;
  content: none !important;
}

html body.lidogift .lg-roulette-strip,
html body.lidogift .case-open-row-track{
  display: flex !important;
  position: relative !important;
  padding: 0 !important;
  gap: 0 !important;
  margin: 0 !important;
  align-items: stretch !important;
  will-change: transform;
}

html body.lidogift .lg-roulette-strip--h{
  flex-direction: row !important;
  width: max-content !important;
  height: 100% !important;
}

html body.lidogift .lg-roulette-strip--v{
  flex-direction: column !important;
  width: 100% !important;
  height: max-content !important;
}

html body.lidogift .lg-roulette-item,
html body.lidogift .lg-roulette-strip--h .case-open-reel-card,
html body.lidogift .case-open-reel-card{
  flex: 0 0 var(--lg-item-size, 220px) !important;
  width: var(--lg-item-size, 220px) !important;
  min-width: var(--lg-item-size, 220px) !important;
  max-width: var(--lg-item-size, 220px) !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px !important;
  border: 0 !important;
  border-right: 1px solid #ffffff0a !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  position: relative !important;
  overflow: hidden !important;
}

html body.lidogift .lg-roulette-item::before,
html body.lidogift .case-open-reel-card::before{
  content: "" !important;
  position: absolute !important;
  inset: 8% !important;
  z-index: 0 !important;
  background: #ffffff08 !important;
  border: 1px solid #ffffff0d !important;
  border-radius: 14px !important;
  pointer-events: none !important;
}

html body.lidogift .lg-roulette-item.is-winning::before,
html body.lidogift .case-open-reel-card.is-winning::before{
  background: #f3e08a26 !important;
  border-color: #f3e08a66 !important;
}

html body.lidogift .lg-roulette-strip--v .lg-roulette-item,
html body.lidogift .lg-roulette-strip--v .case-open-reel-card{
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 var(--lg-item-size, 180px) !important;
  height: var(--lg-item-size, 180px) !important;
  min-height: var(--lg-item-size, 180px) !important;
  border-right: 0 !important;
  border-bottom: 1px solid #ffffff0a !important;
}

html body.lidogift .lg-roulette-visual,
html body.lidogift .case-open-reel-visual,
html body.lidogift #casePhoneCover .lg-roulette-visual,
html body.lidogift #casePhoneCover .case-open-reel-visual{
  aspect-ratio: 1 !important;
  width: 58% !important;
  height: auto !important;
  max-width: none !important;
  max-height: 60% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  z-index: 1 !important;
}

html body.lidogift .lg-roulette-item::before,
html body.lidogift .case-open-reel-card::before{
  content: none !important;
  display: none !important;
}

html body.lidogift .lg-roulette-visual img,
html body.lidogift .case-open-reel-visual img,
html body.lidogift #casePhoneCover .lg-roulette-visual img,
html body.lidogift #casePhoneCover .case-open-reel-visual img,
html body.lidogift .lg-case-art.is-opening .lg-roulette-visual img,
html body.lidogift .lg-case-art.is-opening .case-open-reel-visual img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: none !important;
  position: relative !important;
  filter: none !important;
}

html body.lidogift .lg-roulette-visual img.lg-gift-glow,
html body.lidogift .case-open-reel-visual img.lg-gift-glow,
html body.lidogift .lg-roulette-name,
html body.lidogift .lg-roulette-price,
html body.lidogift .lg-roulette-item .case-price-inline{
  display: none !important;
}

html body.lidogift .lg-roulette-item.is-winning,
html body.lidogift .case-open-reel-card.is-winning{
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
}

html body.lidogift .lg-roulette-pointer{
  position: absolute !important;
  z-index: 4 !important;
  pointer-events: none !important;
  background: #f3e08af2 !important;
}

html body.lidogift .lg-roulette-pointer--v{
  width: 2px !important;
  margin-left: -1px !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 50% !important;
}

html body.lidogift .lg-roulette-pointer--h{
  height: 2px !important;
  margin-top: -1px !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
}

html body.lidogift .lg-roulette-cap{
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
}

html body.lidogift .lg-roulette-pointer--v .lg-roulette-cap-start{
  border-left: 7px solid transparent !important;
  border-right: 7px solid transparent !important;
  border-top: 9px solid #f3e08a !important;
  left: 50% !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
}

html body.lidogift .lg-roulette-pointer--v .lg-roulette-cap-end{
  border-left: 7px solid transparent !important;
  border-right: 7px solid transparent !important;
  border-bottom: 9px solid #f3e08a !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
}

html body.lidogift .lg-roulette-pointer--h .lg-roulette-cap-start{
  border-top: 7px solid transparent !important;
  border-bottom: 7px solid transparent !important;
  border-left: 9px solid #f3e08a !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

html body.lidogift .lg-roulette-pointer--h .lg-roulette-cap-end{
  border-top: 7px solid transparent !important;
  border-bottom: 7px solid transparent !important;
  border-right: 9px solid #f3e08a !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

html body.lidogift .lg-roulette-shade{
  position: absolute !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

html body.lidogift .lg-roulette--h .lg-roulette-shade-start{
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 18% !important;
  background: linear-gradient(90deg, #0b0d12 0%, #0000 100%) !important;
}

html body.lidogift .lg-roulette--h .lg-roulette-shade-end{
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 18% !important;
  background: linear-gradient(-90deg, #0b0d12 0%, #0000 100%) !important;
}

html body.lidogift .lg-roulette--v .lg-roulette-shade-start{
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 18% !important;
  background: linear-gradient(#0b0d12 0%, #0000 100%) !important;
}

html body.lidogift .lg-roulette--v .lg-roulette-shade-end{
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 18% !important;
  background: linear-gradient(#0000 0%, #0b0d12 100%) !important;
}

html body.lidogift .case-opening-pointer-v2,
html body.lidogift .case-opening-status-v2,
html body.lidogift .case-opening-actions-v2{
  display: none !important;
}

html body.lidogift .lg-case-opening.is-results{
  height: auto !important;
  overflow: visible !important;
}

html body.lidogift #caseOpeningRollStage.hidden,
html body.lidogift .lg-case-results.hidden{
  display: none !important;
}

html body.lidogift .lg-case-results{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 16px !important;
}

html body.lidogift .lg-case-results-head{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: center !important;
}

html body.lidogift .lg-case-results-title{
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #f3e08a 0%, #ffd989 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

html body.lidogift .lg-case-results-total,
html body.lidogift .lg-case-results-total.hidden,
html body.lidogift #caseResultsTotalWrap{
  display: none !important;
}

html body.lidogift .lg-case-prizes{
  display: grid !important;
  grid-template-columns: repeat(var(--prize-cols, 1), minmax(0, 1fr)) !important;
  justify-items: center !important;
  align-content: start !important;
  align-items: stretch !important;
  gap: 16px !important;
  width: 100% !important;
  padding: 8px 0 !important;
}

html body.lidogift .lg-drop-prize{
  width: 100% !important;
  max-width: 220px !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 16px !important;
  background: #14161c !important;
  border: 1px solid #ffffff14 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  animation: .4s cubic-bezier(.18,.7,.25,1.05) both lgPrizeReveal;
}

html body.lidogift .lg-case-prizes--single .lg-drop-prize,
html body.lidogift .lg-drop-prize--single{
  width: min(100%, clamp(200px, 28vw, 260px)) !important;
  max-width: clamp(200px, 28vw, 260px) !important;
  padding: 16px 14px 12px !important;
  gap: 8px !important;
}

html body.lidogift .lg-drop-prize--single .lg-drop-prize-visual{
  width: 100% !important;
  height: clamp(140px, 20vw, 180px) !important;
  max-height: 180px !important;
}

html body.lidogift .lg-drop-prize--single .lg-drop-prize-visual img:not(.lg-gift-glow),
html body.lidogift #casePhoneCover .lg-drop-prize--single .lg-drop-prize-visual img:not(.lg-gift-glow),
html body.lidogift #casePhoneCover .lg-drop-prize-visual img:not(.lg-gift-glow){
  width: 72% !important;
  height: 72% !important;
  max-width: none !important;
  max-height: none !important;
}

html body.lidogift .lg-drop-prize--single .lg-drop-prize-name{
  font-size: 15px !important;
  font-weight: 600 !important;
  position: relative !important;
  z-index: 2 !important;
}

html body.lidogift .lg-drop-prize--single .lg-drop-sell{
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  margin-top: 4px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
}

html body.lidogift .lg-drop-prize--grid{
  max-width: clamp(140px, 20vw, 210px) !important;
  gap: 4px !important;
  padding: 8px !important;
}

html body.lidogift .lg-drop-prize.is-sold{
  opacity: .55 !important;
}

html body.lidogift .lg-drop-prize.is-empty-drop{
  pointer-events: none !important;
}

html body.lidogift .lg-drop-prize.is-empty-drop .lg-drop-sell,
html body.lidogift .lg-drop-prize.is-empty-drop .lg-drop-sell-cost,
html body.lidogift .lg-drop-prize.is-empty-drop .case-price-inline{
  display: none !important;
}

html body.lidogift #caseFastOpenBtn[hidden],
html body.lidogift .lg-fast-open[hidden]{
  display: none !important;
}

html body.lidogift .lg-case-actions.is-open-only{
  grid-template-columns: minmax(0, 1fr) !important;
}

html body.lidogift .lg-drop-prize-visual{
  position: relative !important;
  isolation: isolate !important;
  aspect-ratio: 1 !important;
  width: 100% !important;
  max-height: 140px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

html body.lidogift .lg-drop-prize--single .lg-drop-prize-visual{
  height: clamp(140px, 20vw, 180px) !important;
  max-height: 180px !important;
}

html body.lidogift .lg-drop-prize--grid .lg-drop-prize-visual{
  width: clamp(80px, 12vw, 120px) !important;
  height: clamp(80px, 12vw, 120px) !important;
  max-height: none !important;
}

html body.lidogift .lg-drop-prize-visual img,
html body.lidogift #casePhoneCover .lg-drop-prize-visual img{
  width: 70% !important;
  height: 70% !important;
  object-fit: contain !important;
  max-width: none !important;
  max-height: none !important;
}

html body.lidogift .lg-drop-prize-visual img.lg-gift-glow{
  position: absolute !important;
  inset: auto !important;
  top: 52% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 58% !important;
  height: 58% !important;
  filter: blur(10px) saturate(1.12) brightness(1.05) !important;
  opacity: .18 !important;
  z-index: 0 !important;
  mix-blend-mode: soft-light !important;
}

html body.lidogift .lg-drop-prize-visual img:not(.lg-gift-glow){
  position: relative !important;
  z-index: 1 !important;
}

html body.lidogift .lg-drop-prize-name{
  color: #eef1f6 !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.lidogift .lg-drop-prize--grid .lg-drop-prize-name{
  font-size: 11px !important;
}

html body.lidogift .lg-drop-sell{
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-self: stretch !important;
  margin-top: 4px !important;
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  border: 1px solid #f3e08a !important;
  background: #f3e08a14 !important;
  color: #f3e08a !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body.lidogift .lg-drop-prize--grid .lg-drop-sell{
  width: 100% !important;
  margin-top: 0 !important;
  padding: 5px 6px !important;
  font-size: 10px !important;
  gap: 3px !important;
}

html body.lidogift .lg-drop-sell > span:first-child{
  flex: 0 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.lidogift .lg-drop-sell-cost{
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 3px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  background: #00000052 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

html body.lidogift .lg-drop-sell-cost img{
  width: 12px !important;
  height: 12px !important;
}

html body.lidogift .lg-drop-sell.is-sold,
html body.lidogift .lg-drop-sell:disabled{
  color: #8b93a3 !important;
  background: #ffffff0a !important;
  border-color: #ffffff0f !important;
  cursor: default !important;
}

@keyframes lgPrizeReveal {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
html body.lidogift .lg-case-box:not(.is-results),
  html body.lidogift .lg-case-box.is-opening:not(.is-results){
    height: 480px !important;
  }

html body.lidogift .lg-case-route,
  html body.lidogift .case-phone-shell.lg-case-route{
    gap: 24px !important;
    padding: 16px 0 32px !important;
  }

  html body.lidogift .lg-case-prizes{
    grid-template-columns: repeat(min(var(--prize-cols, 1), 3), minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
html body.lidogift .lg-case-box:not(.is-results),
  html body.lidogift .lg-case-box.is-opening:not(.is-results){
    height: 460px !important;
  }

html body.lidogift .lg-case-art > img,
  html body.lidogift #casePhoneCover > img{
    width: min(50%, 240px) !important;
  }

  html body.lidogift .lg-case-results-title{
    font-size: 19px !important;
  }

  html body.lidogift .lg-case-prizes{
    grid-template-columns: repeat(min(var(--prize-cols, 1), 2), minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 4px 0 8px !important;
  }

  html body.lidogift .lg-drop-prize--grid{
    max-width: 100% !important;
    padding: 10px 8px !important;
  }

  html body.lidogift .lg-drop-prize--grid .lg-drop-prize-visual{
    width: 64px !important;
    height: 64px !important;
  }

  html body.lidogift .lg-drop-prize--grid .lg-drop-prize-name{
    font-size: 10px !important;
  }

  html body.lidogift .lg-drop-prize--grid .lg-drop-sell{
    min-height: 34px !important;
    padding: 4px 5px !important;
  }

  html body.lidogift .lg-drop-sell-cost{
    font-size: 9px !important;
    padding: 2px 5px !important;
  }

  html body.lidogift .lg-case-box.is-results .lg-case-panel{
    position: relative !important;
    z-index: 1 !important;
  }
}

@media (max-width: 600px) {
html body.lidogift .lg-case-box:not(.is-results),
  html body.lidogift .lg-case-box.is-opening:not(.is-results){
    height: 440px !important;
  }

  html body.lidogift .lg-case-panel{
    padding: 16px !important;
    gap: 12px !important;
  }

  html body.lidogift .lg-case-actions{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }

html body.lidogift .case-phone-open-btn,
  html body.lidogift #caseOpenBtn,
  html body.lidogift .lg-fast-open,
  html body.lidogift #caseFastOpenBtn{
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }

html body.lidogift #caseOpenBtn .case-open-btn-price,
  html body.lidogift .case-phone-open-btn .case-open-btn-price{
    padding: 2px 6px !important;
    font-size: 11px !important;
  }

html body.lidogift .lg-case-counts,
  html body.lidogift .lg-case-counts.case-open-counts,
  html body.lidogift .lg-case-counts.case-open-counts-wide{
    gap: 5px !important;
  }

html body.lidogift .lg-count-btn,
  html body.lidogift .lg-count-btn.case-open-count-btn,
  html body.lidogift .lg-case-counts .case-open-count-btn{
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    font-size: 12px !important;
    min-width: 0 !important;
  }

html body.lidogift .lg-case-prizes--single .lg-drop-prize,
  html body.lidogift .lg-drop-prize--single{
    width: min(100%, 240px) !important;
    max-width: 240px !important;
  }

  html body.lidogift .lg-drop-prize--single .lg-drop-prize-visual{
    height: 150px !important;
  }

html body.lidogift #caseOpeningRouletteStack.lg-rolls--multi .lg-roulette--v,
  html body.lidogift .lg-rolls--multi .lg-roulette--v{
    --lg-item-size: clamp(88px, 30%, 120px);
  }

  html body.lidogift .case-prize-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body.lidogift .lg-case-results{
    padding: 8px !important;
  }
}

@media (max-width: 480px) {
html body.lidogift .lg-case-box:not(.is-results),
  html body.lidogift .lg-case-box.is-opening:not(.is-results){
    height: 400px !important;
  }
}

/* Case pool: 2 per row on mobile,
5 on desktop */
html body.lidogift .case-prize-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (min-width: 700px) {
  html body.lidogift .case-prize-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Upgrade: no image/tone bleed into page background */
html body.lidogift #playUpgradeView .upgrade-gift-visual::before,
html body.lidogift #playUpgradeView .lg-up-card-img::before,
html body.lidogift .lg-up-inventories .lg-up-card-img::before{
  content: none !important;
  display: none !important;
}

html body.lidogift #playUpgradeView .lg-pick-card,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-slot,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift,
html body.lidogift #playUpgradeView .lg-pick-card .upgrade-gift-visual,
html body.lidogift #playUpgradeView #upgradeTargetCard,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift,
html body.lidogift #playUpgradeView #upgradeTargetCard .upgrade-gift-visual,
html body.lidogift .lg-up-inventories .lg-up-card,
html body.lidogift .lg-up-inventories .lg-up-card-img{
  overflow: hidden !important;
  contain: paint;
}

html body.lidogift #playUpgradeView .upgrade-gift-visual,
html body.lidogift #playUpgradeView .lg-up-card-img{
  background: #14161c !important;
}

html body.lidogift.lg-upgrade-active::before{
  display: none !important;
}

html body.lidogift #playUpgradeView,
html body.lidogift #playUpgradeView.active,
html body.lidogift #playUpgradeView .upgrade-panel,
html body.lidogift #playUpgradeView .lg-upgrade-shell{
  background: var(--cm-bg) !important;
  background-image: none !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-wheel{
  overflow: visible !important;
  isolation: isolate;
  background: transparent !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow,
html body.lidogift #playUpgradeView #upgradeGlow{
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  background: #6fd4a3 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-pointer-wrap{
  overflow: visible !important;
  z-index: 6 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-pointer{
  border-left-width: 14px !important;
  border-right-width: 14px !important;
  border-top-width: 28px !important;
  top: -10px !important;
}

html body.lidogift .case-phone-prizes,
html body.lidogift .case-prize-grid{
  overflow: visible !important;
  max-height: none !important;
}

html body.lidogift .case-prize-card,
html body.lidogift .case-drop-card{
  overflow: hidden !important;
}

html body.lidogift .case-phone-prizes{
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body.lidogift .case-phone-prizes .case-prize-card:hover .case-prize-card-visual img:not(.lg-gift-glow){
  transform: none !important;
}

html body.lidogift .case-phone-prizes .case-prize-card-visual{
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  min-height: 88px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: visible !important;
  background: transparent !important;
  border-radius: 14px !important;
  isolation: isolate !important;
}

html body.lidogift .case-phone-prizes .case-prize-card-visual img.lg-gift-glow{
  display: block !important;
  opacity: .26 !important;
  visibility: visible !important;
}

html body.lidogift .case-phone-prizes .case-prize-card-visual.gift-anim-host.is-gift-animating .gift-anim-layer{
  display: flex !important;
}

html body.lidogift .case-phone-prizes .case-prize-card-visual.gift-anim-host.is-gift-animating img:not(.lg-gift-glow){
  opacity: 0 !important;
}

html body.lidogift .case-phone-prizes .case-prize-card-visual img:not(.lg-gift-glow){
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 68% !important;
  height: auto !important;
  max-width: 68% !important;
  min-width: 48px !important;
  min-height: 48px !important;
  object-fit: contain !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}

html body.lidogift .lg-bonus-page{
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0 40px;
}

html body.lidogift .lg-bonus-card{
  background: #14161c !important;
  border: 1px solid #ffffff12 !important;
  border-radius: 24px !important;
  padding: 20px 20px 18px;
  box-shadow: 0 12px 32px #00000040;
}

html body.lidogift .lg-bonus-stats{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

html body.lidogift .lg-bonus-stat{
  color: #c5d6cc;
  font-size: 14px;
  font-weight: 700;
}

html body.lidogift .lg-bonus-stat-earn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html body.lidogift .lg-bonus-stat-earn img{
  width: 16px;
  height: 16px;
}

html body.lidogift .lg-bonus-stat strong{
  color: #fff;
  font-size: 16px;
}

html body.lidogift .lg-bonus-note{
  color: #8b93a3;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

html body.lidogift .lg-bonus-row{
  display: flex;
  gap: 10px;
}

html body.lidogift .lg-bonus-invite{
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #6fd4a3;
  color: #062318;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

html body.lidogift .lg-bonus-invite svg{
  width: 18px;
  height: 18px;
}

html body.lidogift .lg-bonus-iconbtn{
  width: 52px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #ffffff14;
  background: #14161c;
  color: #eef1f6;
  cursor: pointer;
  display: grid;
  place-items: center;
}

html body.lidogift .lg-bonus-gold{
  margin-left: auto;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #f3e08a;
  background: transparent;
  color: #f3e08a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

html body.lidogift .lg-bonus-foot{
  margin-top: 14px;
  color: #8b93a3;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

html body.lidogift .lg-bonus-foot img{
  width: 14px;
  height: 14px;
}

html body.lidogift .lg-bonus-head{
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

html body.lidogift .lg-bonus-promo{
  display: flex;
  gap: 8px;
  align-items: center;
}

html body.lidogift .lg-bonus-promo .field{
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
}

html body.lidogift .lg-task{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
}

html body.lidogift .lg-task-ico{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #6fd4a318;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

html body.lidogift .lg-task-copy{
  flex: 1;
  color: #eef1f6;
  font-weight: 700;
  font-size: 15px;
}

html body.lidogift .lg-task-status{
  color: #6fd4a3;
  font-weight: 800;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

html body.lidogift .lg-case-free-note,
html body.lidogift .lg-deposit-stars-hint,
html body.lidogift .lg-deposit-soon{
  margin: 0;
  color: #9aa3b2;
  font-size: 13px;
  line-height: 1.45;
}

html body.lidogift .lg-deposit-gift{
  padding: 14px 16px;
  border-radius: 16px;
  background: #14161c;
  border: 1px solid #ffffff14;
  color: #eef1f6;
}

html body.lidogift .lg-deposit-gift h3{
  margin: 0 0 10px;
  font-size: 16px;
}

html body.lidogift .lg-deposit-gift ol{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #c5ccd8;
  font-size: 14px;
  line-height: 1.45;
}

html body.lidogift .lg-deposit-link,
html body.lidogift .lg-deposit-row button{
  border: 0;
  background: transparent;
  color: #7ec8ff;
  font: inherit;
  padding: 0;
  text-align: left;
  word-break: break-all;
}

html body.lidogift .lg-deposit-paybox{
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #14161c;
  border: 1px solid #ffffff14;
}

html body.lidogift .lg-deposit-paybox-note,
html body.lidogift .lg-deposit-status{
  margin: 0;
  color: #9aa3b2;
  font-size: 13px;
  line-height: 1.4;
}

html body.lidogift .lg-deposit-row{
  display: grid;
  gap: 4px;
}

html body.lidogift .lg-deposit-row span{
  color: #8b93a3;
  font-size: 12px;
}

html body.lidogift .lg-deposit-row strong{
  color: #eef1f6;
}

html body.lidogift .lg-deposit-gift.hidden,
html body.lidogift .lg-deposit-paybox.hidden,
html body.lidogift .lg-deposit-wallet.hidden,
html body.lidogift .lg-ton-wallet-bar.hidden,
html body.lidogift #lgTonConnectBtn.hidden,
html body.lidogift #lgTonDisconnectBtn.hidden{
  display: none !important;
}

html body.lidogift .lg-ton-wallet-bar{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html body.lidogift .lg-deposit-wallet{
  margin: 0;
  color: #c8f0d4;
  font-size: 13px;
}

html body.lidogift .lg-gift-deposits-card{
  margin-top: 14px;
}

html body.lidogift .lg-gift-deposits-list{
  display: grid;
  gap: 8px;
}

html body.lidogift .lg-gift-deposit-row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #14161c;
  border: 1px solid #ffffff12;
  color: #eef1f6;
  font-size: 14px;
}

html body.lidogift .lg-gift-deposit-row span{
  flex: 1;
}

html body.lidogift .lg-gift-deposit-row strong{
  font-weight: 700;
  color: #ffe08a;
}

html body.lidogift .lg-gift-deposit-row em{
  font-style: normal;
  color: #7ddea0;
  font-size: 12px;
}

html body.lidogift .lg-case-promo-row{
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}

html body.lidogift .lg-case-counts.is-hidden{
  display: none !important;
}

html body.lidogift #sellAllBtn.is-selected-sell{
  background: #6fd4a3 !important;
  color: #062318 !important;
}

/* Gift backlight: mint + star-gold halo (logo),
faint item bloom,
sharp PNG on top.
   ROLLBACK: full-bleed blurred gift copy (blur 18px, opacity 1, scale 1.12). */
html body.lidogift .inventory-visual,
html body.lidogift .lg-up-card-img,
html body.lidogift .lg-craft-prize,
html body.lidogift .lg-craft-slot.is-filled,
html body.lidogift .lg-craft-item-img,
html body.lidogift .case-prize-card-visual,
html body.lidogift .case-drop-visual,
html body.lidogift .live-ribbon-visual,
html body.lidogift .item-img,
html body.lidogift .upgrade-gift-visual,
html body.lidogift .lg-drop-prize-visual,
html body.lidogift .live-item,
html body.lidogift .case-phone-prizes .case-prize-card-visual{
  isolation: isolate !important;
  contain: none !important;
  overflow: visible !important;
  position: relative !important;
}

html body.lidogift .lg-gift-glow-hold,
html body.lidogift .case-phone-prizes .lg-gift-glow-hold,
html body.lidogift .lg-drop-prize-visual .lg-gift-glow-hold,
html body.lidogift .inventory-visual .lg-gift-glow-hold,
html body.lidogift .upgrade-gift-visual .lg-gift-glow-hold,
html body.lidogift .live-item .lg-gift-glow-hold{
  position: absolute !important;
  inset: 18% !important;
  z-index: 0 !important;
  display: block !important;
  overflow: visible !important;
  pointer-events: none !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #ffffff28 0%, transparent 70%) !important;
  filter: blur(7px) !important;
  opacity: .75 !important;
  transform: none !important;
}

html body.lidogift .lg-gift-glow-hold img.lg-gift-glow,
html body.lidogift img.lg-gift-glow,
html body.lidogift .gift-anim-host img.lg-gift-glow,
html body.lidogift .lg-up-card-img img.lg-gift-glow,
html body.lidogift .inventory-visual img.lg-gift-glow,
html body.lidogift .lg-craft-prize img.lg-gift-glow,
html body.lidogift .lg-craft-slot img.lg-gift-glow,
html body.lidogift .lg-craft-item-img img.lg-gift-glow,
html body.lidogift .case-prize-card-visual img.lg-gift-glow,
html body.lidogift .case-drop-visual img.lg-gift-glow,
html body.lidogift .live-ribbon-visual img.lg-gift-glow,
html body.lidogift .live-item img.lg-gift-glow,
html body.lidogift .item-img img.lg-gift-glow,
html body.lidogift .lg-drop-prize-visual img.lg-gift-glow,
html body.lidogift .case-phone-prizes .case-prize-card-visual img.lg-gift-glow,
html body.lidogift .gift-anim-host.is-gift-animating img.lg-gift-glow,
html body.lidogift .upgrade-gift-visual.gift-anim-host.is-gift-animating img.lg-gift-glow{
  position: absolute !important;
  inset: auto !important;
  top: 52% !important;
  left: 50% !important;
  z-index: 0 !important;
  width: 58% !important;
  height: 58% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  filter: blur(10px) saturate(1.12) brightness(1.05) !important;
  opacity: .18 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  visibility: visible !important;
  display: block !important;
  mix-blend-mode: soft-light !important;
}

html body.lidogift .gift-anim-host.is-gift-animating .lg-gift-glow-hold{
  inset: 10% !important;
  opacity: 1 !important;
  z-index: 0 !important;
  filter: blur(9px) !important;
}

html body.lidogift .gift-anim-host.is-gift-animating .lg-gift-glow-hold img.lg-gift-glow,
html body.lidogift .gift-anim-host.is-gift-animating img.lg-gift-glow{
  filter: blur(14px) saturate(1.28) brightness(1.06) !important;
  opacity: .38 !important;
  visibility: visible !important;
  display: block !important;
}

html body.lidogift .inventory-visual > img:not(.lg-gift-glow),
html body.lidogift .lg-up-card-img > img:not(.lg-gift-glow),
html body.lidogift .lg-craft-prize > img:not(.lg-gift-glow),
html body.lidogift .lg-craft-slot > img:not(.lg-gift-glow),
html body.lidogift .lg-craft-item-img > img:not(.lg-gift-glow),
html body.lidogift .case-prize-card-visual > img:not(.lg-gift-glow),
html body.lidogift .case-drop-visual > img:not(.lg-gift-glow),
html body.lidogift .live-ribbon-visual > img:not(.lg-gift-glow),
html body.lidogift .item-img > img:not(.lg-gift-glow),
html body.lidogift .upgrade-gift-visual > img:not(.lg-gift-glow),
html body.lidogift .lg-drop-prize-visual > img:not(.lg-gift-glow){
  position: relative !important;
  z-index: 2 !important;
  filter: none !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  image-rendering: auto !important;
  backface-visibility: hidden !important;
}

html body.lidogift .lg-case-actions,
html body.lidogift #caseOpenBtn,
html body.lidogift #caseFastOpenBtn{
  position: relative !important;
  z-index: 12 !important;
  pointer-events: auto !important;
}

html body.lidogift .lg-case-counts{
  z-index: 1 !important;
}

html body.lidogift .lg-case-panel{
  z-index: 12 !important;
  background: #14161c !important;
}

html body.lidogift .lg-case-box.is-results .lg-case-hero,
html body.lidogift .lg-case-box.is-results .lg-case-opening{
  overflow: hidden !important;
}

html body.lidogift .lg-live-head{
  flex-wrap: wrap !important;
  gap: 8px 10px !important;
}

html body.lidogift .lg-live-spacer{
  flex: 1 1 8px !important;
  min-width: 4px !important;
}

html body.lidogift .lg-online{
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  margin-left: auto !important;
  color: #c5cad3 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

html body.lidogift .lg-online b{
  color: #6fd4a3 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html body.lidogift .lg-live-filter{
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid #ffffff18 !important;
  background: #ffffff08 !important;
  color: #c5cad3 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

html body.lidogift .lg-live-filter.is-on{
  border-color: #ffffff28 !important;
  background: #ffffff12 !important;
  color: #eef1f6 !important;
}

html body.lidogift .live-item,
html body.lidogift .lg-live-track > div{
  flex: 0 0 96px !important;
  width: 96px !important;
  min-width: 96px !important;
  padding: 10px 8px 9px !important;
}

html body.lidogift .live-item img,
html body.lidogift .lg-live-track img{
  width: 68px !important;
  height: 68px !important;
}

html body.lidogift .live-item--expensive{
  border-color: #ffffff2a !important;
}

html body.lidogift .case-prize-card{
  position: relative !important;
}

html body.lidogift .case-prize-card-odds{
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 3 !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #0b0d12cc !important;
  border: 1px solid #ffffff22 !important;
  color: #c5cad3 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  line-height: 1 !important;
}

html body.lidogift .live-item .lg-gift-glow-hold,
html body.lidogift .live-item img.lg-gift-glow,
html body.lidogift .lg-live-track .lg-gift-glow-hold,
html body.lidogift .lg-live-track img.lg-gift-glow,
html body.lidogift .live-items .lg-gift-glow-hold,
html body.lidogift .live-items img.lg-gift-glow,
html body.lidogift .live-ribbon-visual .lg-gift-glow-hold,
html body.lidogift .live-ribbon-visual img.lg-gift-glow{
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
  filter: none !important;
}

html body.lidogift .live-item img,
html body.lidogift .live-item.gift-anim-host img:not(.lg-gift-glow),
html body.lidogift .lg-live-track img:not(.lg-gift-glow){
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  filter: none !important;
  opacity: 1 !important;
  image-rendering: auto !important;
  transform: translateZ(0) !important;
}

html body.lidogift .lg-wd-card{
  margin-top: 12px !important;
  padding: 16px !important;
}

html body.lidogift .lg-wd-head h2{
  margin: 0 0 12px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

html body.lidogift .lg-wd-list{
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

html body.lidogift .lg-wd-empty{
  color: #8b93a3 !important;
  font-size: 13px !important;
}

html body.lidogift .lg-wd-row{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: #ffffff08 !important;
  border: 1px solid #ffffff10 !important;
}

html body.lidogift .lg-wd-copy{
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

html body.lidogift .lg-wd-copy strong{
  font-size: 14px !important;
  font-weight: 650 !important;
}

html body.lidogift .lg-wd-meta,
html body.lidogift .lg-wd-note{
  color: #8b93a3 !important;
  font-size: 12px !important;
}

html body.lidogift .lg-wd-status{
  flex-shrink: 0 !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

html body.lidogift .lg-wd-status.is-pending{
  background: #f3e08a1f !important;
  color: #f3e08a !important;
}

html body.lidogift .lg-wd-status.is-sent{
  background: #6fd4a324 !important;
  color: #6fd4a3 !important;
}

html body.lidogift .lg-wd-status.is-rejected{
  background: #ff6b6b1f !important;
  color: #ff8d8d !important;
}

html body.lidogift .overlay{
  z-index: 240 !important;
}

html body.lidogift .modal.lg-send-modal{
  width: min(400px, calc(100vw - 24px)) !important;
  padding: 22px 20px 18px !important;
  border-radius: 24px !important;
  background: #14161c !important;
  border: 1px solid #ffffff14 !important;
}

html body.lidogift .lg-send-head{
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  margin: 0 0 16px !important;
}

html body.lidogift .lg-send-gift{
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff0c, #ffffff06) !important;
  border: 1px solid #ffffff12 !important;
  margin-bottom: 18px !important;
}

html body.lidogift .lg-send-gift-art{
  position: relative !important;
  width: 64px !important;
  height: 64px !important;
  flex-shrink: 0 !important;
  display: grid !important;
  place-items: center !important;
}

html body.lidogift .lg-send-gift-art > img:not(.lg-gift-glow){
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  position: relative !important;
  z-index: 1 !important;
}

html body.lidogift .lg-send-gift-art .lg-gift-glow-hold,
html body.lidogift .lg-send-gift-art .lg-gift-glow{
  width: 64px !important;
  height: 64px !important;
}

html body.lidogift .lg-send-gift > div > strong{
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

html body.lidogift .lg-send-gift > div > span{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 6px !important;
  color: #8b93a3 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

html body.lidogift .lg-send-gift > div > span img{
  width: 14px !important;
  height: 14px !important;
}

html body.lidogift .lg-send-label{
  display: block !important;
  margin: 0 0 8px !important;
  color: #8b93a3 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

html body.lidogift .lg-send-field{
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  height: 52px !important;
  padding: 0 16px !important;
  border-radius: 16px !important;
  background: #0b0d12 !important;
  border: 1px solid #ffffff18 !important;
  transition: border-color .18s, box-shadow .18s !important;
}

html body.lidogift .lg-send-field:focus-within{
  border-color: #6fd4a3 !important;
  box-shadow: 0 0 0 3px #6fd4a324 !important;
}

html body.lidogift .lg-send-field span{
  color: #6fd4a3 !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}

html body.lidogift .lg-send-field input{
  flex: 1 !important;
  min-width: 0 !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: #eef1f6 !important;
  font: inherit !important;
  font-size: 16px !important;
  outline: none !important;
}

html body.lidogift .lg-send-hint{
  margin: 10px 0 18px !important;
  color: #8b93a3 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

html body.lidogift .lg-send-actions{
  display: grid !important;
  grid-template-columns: 1fr 1.15fr !important;
  gap: 10px !important;
}

html body.lidogift .lg-send-cancel,
html body.lidogift .lg-send-ok{
  min-height: 48px !important;
  border-radius: 14px !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

html body.lidogift .lg-send-cancel{
  color: #eef1f6 !important;
  background: #ffffff0d !important;
  border: 1px solid #ffffff18 !important;
}

html body.lidogift .lg-send-cancel:hover{
  background: #ffffff16 !important;
}

html body.lidogift .lg-send-ok{
  color: #062318 !important;
  background: #6fd4a3 !important;
  border: 1px solid #6fd4a3 !important;
}

html body.lidogift .lg-send-ok:hover:not(:disabled){
  background: #4cbe8a !important;
}

html body.lidogift .lg-send-ok:disabled{
  opacity: .55 !important;
  cursor: wait !important;
}

html body.lidogift #profileGrid .inventory-actions{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
}

html body.lidogift #profileGrid .lg-inv-btn-withdraw{
  grid-column: 1 / -1 !important;
}

html body.lidogift #profileGrid .lg-inv-btn-send,
html body.lidogift #profileGrid .inventory-actions [data-a="send"]{
  color: #eef1f6 !important;
  background: #ffffff0d !important;
  border: 1px solid #ffffff22 !important;
}

html body.lidogift #profileGrid .lg-inv-btn-send:hover:not(:disabled),
html body.lidogift #profileGrid .inventory-actions [data-a="send"]:hover:not(:disabled){
  background: #ffffff18 !important;
  border-color: #6fd4a355 !important;
  color: #eef1f6 !important;
}

html body.lidogift #profileGrid .lg-inv-btn:disabled{
  opacity: .45 !important;
  cursor: not-allowed !important;
}

html body.lidogift #profileGrid .inventory-card.is-locked{
  opacity: .88 !important;
}

html body.lidogift .lg-inv-lock{
  align-self: center !important;
  margin: 0 auto 4px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #f3e08a1f !important;
  color: #f3e08a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

html body.lidogift .lg-bonus-card-friends .lg-bonus-stats{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

html body.lidogift .lg-bonus-card-friends .lg-bonus-stat{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  min-height: 78px !important;
  height: 100% !important;
  padding: 10px 6px !important;
  border-radius: 16px !important;
  background: #0b0d12 !important;
  border: 1px solid #ffffff10 !important;
  box-sizing: border-box !important;
}

html body.lidogift .lg-bonus-card-friends .lg-bonus-stat strong{
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  color: #fff !important;
}

html body.lidogift .lg-bonus-card-friends .lg-bonus-stat strong img{
  width: 14px !important;
  height: 14px !important;
}

html body.lidogift .lg-bonus-card-friends .lg-bonus-stat span{
  color: #8b93a3 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  min-height: 2.5em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

html body.lidogift .lg-ref-board{
  margin: 16px 0 14px !important;
  padding: 14px 12px !important;
  border-radius: 18px !important;
  background: #0b0d12 !important;
  border: 1px solid #ffffff10 !important;
}

html body.lidogift .lg-ref-board-head{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 8px !important;
  color: #8b93a3 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

html body.lidogift .lg-ref-board-head em{
  font-style: normal !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: #6fd4a31f !important;
  color: #6fd4a3 !important;
  letter-spacing: 0 !important;
}

html body.lidogift .lg-ref-row{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 10px 4px !important;
}

html body.lidogift .lg-ref-row + .lg-ref-row{
  border-top: 1px solid #ffffff0d !important;
}

html body.lidogift .lg-ref-who{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

html body.lidogift .lg-ref-avatar{
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0 !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  background: #6fd4a31f !important;
  color: #6fd4a3 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

html body.lidogift .lg-ref-who strong{
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.lidogift .lg-ref-who span{
  color: #8b93a3 !important;
  font-size: 11px !important;
}

html body.lidogift .lg-ref-nums{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
  flex-shrink: 0 !important;
}

html body.lidogift .lg-ref-dep{
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #eef1f6 !important;
  font-size: 13px !important;
}

html body.lidogift .lg-ref-dep img{
  width: 14px !important;
  height: 14px !important;
}

html body.lidogift .lg-ref-earn{
  color: #4db88a !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html body.lidogift .lg-ref-empty{
  color: #8b93a3 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  padding: 8px 4px 4px !important;
}

html body.lidogift .lg-wd-row{
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  padding: 14px !important;
}

html body.lidogift .lg-wd-caption{
  color: #8b93a3 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

html body.lidogift .lg-wd-row--sent .lg-wd-caption{
  color: #6fd4a3 !important;
}

html body.lidogift .lg-wd-row--rejected .lg-wd-caption{
  color: #ff8d8d !important;
}

html body.lidogift .lg-wd-steps{
  display: grid !important;
  grid-template-columns: 1fr 18px 1fr 18px 1fr !important;
  align-items: start !important;
  gap: 0 !important;
}

html body.lidogift .lg-wd-steps b{
  display: block !important;
  height: 2px !important;
  margin-top: 11px !important;
  background: #ffffff14 !important;
  border-radius: 99px !important;
}

html body.lidogift .lg-wd-steps--request b:first-of-type,
html body.lidogift .lg-wd-steps--progress b:first-of-type,
html body.lidogift .lg-wd-steps--sent b{
  background: #4db88a !important;
}

html body.lidogift .lg-wd-step{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  text-align: center !important;
  color: #5c6470 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
}

html body.lidogift .lg-wd-step i{
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font-style: normal !important;
  font-size: 11px !important;
  background: #ffffff10 !important;
  color: #8b93a3 !important;
}

html body.lidogift .lg-wd-step.is-done,
html body.lidogift .lg-wd-step.is-on{
  color: #eef1f6 !important;
}

html body.lidogift .lg-wd-step.is-done i{
  background: #4db88a !important;
  color: #062318 !important;
}

html body.lidogift .lg-wd-step.is-on i{
  background: #f3e08a !important;
  color: #14161c !important;
}

html body.lidogift .lg-wd-row--sent .lg-wd-step.is-on i{
  background: #4db88a !important;
  color: #062318 !important;
}

html body.lidogift .lg-wd-status{
  align-self: flex-start !important;
}

@media (max-width: 720px) {
html body.lidogift .lg-live-card,
  html body.lidogift .lg-live-card.gift-feed{
    padding: 10px 12px 8px !important;
    margin-bottom: 12px !important;
    gap: 6px !important;
  }

html body.lidogift .lg-live-title,
  html body.lidogift .lg-live-sep{
    display: none !important;
  }

html body.lidogift .lg-live-head,
  html body.lidogift .live-strip > .lg-live-head{
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  html body.lidogift .lg-online{
    font-size: 11px !important;
    margin-left: auto !important;
  }

  html body.lidogift .lg-online b{
    font-size: 12px !important;
  }

  html body.lidogift .lg-live-filter{
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    flex-shrink: 0 !important;
  }

  html body.lidogift .lg-live-track{
    gap: 6px !important;
    padding: 0 !important;
  }

html body.lidogift .live-item,
  html body.lidogift .lg-live-track > div{
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    padding: 4px !important;
    border-radius: 10px !important;
  }

html body.lidogift .live-item img,
  html body.lidogift .live-item.gift-anim-host img:not(.lg-gift-glow),
  html body.lidogift .lg-live-track img,
  html body.lidogift .lg-live-track img:not(.lg-gift-glow){
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }

html body.lidogift .live-items,
  html body.lidogift #hubLiveFeed{
    mask-image: linear-gradient(90deg, #0000, #000 16px calc(100% - 16px), #0000) !important;
    -webkit-mask-image: linear-gradient(90deg, #0000, #000 16px calc(100% - 16px), #0000) !important;
  }

html body.lidogift #profileTab #profileGrid,
  html body.lidogift #profileTab .inventory-grid{
    gap: 8px !important;
  }

  html body.lidogift #profileGrid .inventory-card{
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 8px 6px 8px !important;
  }

  html body.lidogift #profileGrid .inventory-body{
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body.lidogift #profileGrid .inventory-actions{
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body.lidogift #profileGrid .lg-inv-btn-withdraw{
    grid-column: auto !important;
  }

html body.lidogift #profileGrid .lg-inv-btn,
  html body.lidogift #profileGrid .inventory-actions .mini-btn,
  html body.lidogift #profileGrid .inventory-actions [data-a]{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 6px 6px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.lidogift .bottom-nav{
    gap: 0 !important;
    padding-left: max(env(safe-area-inset-left), 2px) !important;
    padding-right: max(env(safe-area-inset-right), 2px) !important;
  }

  html body.lidogift .bottom-nav .nav-btn{
    min-width: 0 !important;
    padding: 8px 0 !important;
    font-size: 10px !important;
  }

  html body.lidogift .bottom-nav .nav-label{
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

html body.lidogift .lg-splash-glow{
  position: absolute !important;
  inset: -42% !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #6fd4a373 0%, #6fd4a338 34%, #6fd4a314 56%, #0000 74%) !important;
  filter: blur(22px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  animation: lg-splash-breathe 3.2s ease-in-out infinite !important;
}

html body.lidogift .lg-splash-mark img{
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 28px #6fd4a340) !important;
}

html body.lidogift .lg-splash-orbit{
  position: absolute !important;
  inset: -8% !important;
  z-index: 2 !important;
  pointer-events: none !important;
  animation: lg-splash-spin 7s linear infinite !important;
}

html body.lidogift .lg-splash-orbit i{
  position: absolute !important;
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #c8f5dc !important;
  box-shadow: 0 0 12px #6fd4a3cc !important;
}

html body.lidogift .lg-splash-orbit i:nth-child(1){
  top: 2% !important;
  left: 50% !important;
  transform: translate(-50%, 0) !important;
}

html body.lidogift .lg-splash-orbit i:nth-child(2){
  top: 78% !important;
  left: 8% !important;
  background: #f3e08a !important;
  box-shadow: 0 0 12px #f3e08acc !important;
}

html body.lidogift .lg-splash-orbit i:nth-child(3){
  top: 78% !important;
  left: auto !important;
  right: 8% !important;
}

html body.lidogift .lg-splash-load{
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 92px !important;
  height: 18px !important;
  margin-top: 26px !important;
}

html body.lidogift .lg-splash-ribbon{
  display: block !important;
  width: 100% !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, #0000, #6fd4a3, #0000) !important;
  transform-origin: 50% 50% !important;
  animation: lg-splash-draw 1.7s ease-in-out infinite !important;
}

html body.lidogift .lg-splash-knot{
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 2px !important;
  background: #9fe8c4 !important;
  box-shadow: 0 0 14px #6fd4a3cc !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  animation: lg-splash-knot 1.7s ease-in-out infinite !important;
}

@keyframes lg-splash-breathe {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes lg-splash-spin {
  to { transform: rotate(360deg); }
}

@keyframes lg-splash-draw {
  0%, 100% { transform: scaleX(.18); opacity: .35; }
  42% { transform: scaleX(1); opacity: 1; }
}

@keyframes lg-splash-knot {
  0%, 100% { opacity: .35; transform: translate(-50%, -50%) rotate(45deg) scale(.7); }
  42% { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
html body.lidogift .lg-splash-glow,
  html body.lidogift .lg-splash-orbit,
  html body.lidogift .lg-splash-ribbon,
  html body.lidogift .lg-splash-knot{
    animation: none !important;
  }
  html body.lidogift .lg-splash-glow{
    opacity: .85 !important;
    transform: none !important;
  }
  html body.lidogift .lg-splash-ribbon{
    transform: scaleX(1) !important;
    opacity: .8 !important;
  }
  html body.lidogift .lg-splash-knot{
    opacity: 1 !important;
  }
}

/* Case covers,
interiors,
black backdrops,
TON crumbs. */
html body.lidogift .lg-case-cover-img{
  width: 100%;
  height: 168px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

html body.lidogift .case-card-product .case-base{
  width: 100%;
  height: 168px;
  object-fit: contain;
  display: block;
}

html body.lidogift .case-prize-card.is-black-backdrop,
html body.lidogift .lg-drop-prize-visual.is-black-backdrop{
  position: relative;
}

html body.lidogift .case-prize-card.is-black-backdrop .case-prize-card-visual,
html body.lidogift .lg-drop-prize-visual.is-black-backdrop{
  background:
    radial-gradient(circle at 50% 40%, rgba(40, 40, 48, 0.55), rgba(0, 0, 0, 0.96) 72%),
    url("https://cdn.changes.tg/gifts/backgrounds/Black.png") center/cover no-repeat,
    #050505 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.55);
}

html body.lidogift .lg-black-chip{
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #f3f3f3;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 2px 7px;
}

html body.lidogift .case-prize-card.is-ton-drop .case-prize-card-visual,
html body.lidogift .lg-roulette-item.is-ton-drop .lg-roulette-visual,
html body.lidogift .lg-drop-prize-visual.is-ton-drop,
html body.lidogift .lg-roulette-item.is-ton-drop{
  background: transparent !important;
  box-shadow: none !important;
}

html body.lidogift .case-card-product .case-gift-wrap{
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 54px;
  height: 54px;
  z-index: 2;
  pointer-events: none;
}

html body.lidogift .case-card-product .case-gift{
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

html body.lidogift .case-card-product .case-visual{
  position: relative;
}

html body.lidogift .case-card-product .case-gift-wrap,
html body.lidogift .case-card-product .case-gift,
html body.lidogift .case-card .case-gift,
html body.lidogift .case-gift-wrap,
html body.lidogift .case-gift-wrap-preview,
html body.lidogift img.case-gift{
  display: none !important;
}

html body.lidogift .case-phone-cover:not(.is-opening),
html body.lidogift #casePhoneCover:not(.is-opening),
html body.lidogift .case-visual,
html body.lidogift .lg-case-cover-img,
html body.lidogift .case-base{
  background: transparent !important;
}

html body.lidogift .case-prize-card-visual img:not(.lg-gift-glow),
html body.lidogift .lg-drop-prize-visual img:not(.lg-gift-glow),
html body.lidogift .lg-roulette-visual img:not(.lg-gift-glow),
html body.lidogift .is-ton-drop img{
  background: transparent !important;
}

html body.lidogift .lg-roulette-item.is-ton-drop::before,
html body.lidogift .case-open-reel-card.is-ton-drop::before,
html body.lidogift .is-ton-drop .lg-gift-glow-hold,
html body.lidogift .is-ton-drop img.lg-gift-glow{
  display: none !important;
  content: none !important;
  background: none !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow,
html body.lidogift #playUpgradeView #upgradeGlow{
  background: #4db88a !important;
  opacity: 0 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow.is-idle,
html body.lidogift #playUpgradeView #upgradeGlow.is-idle{
  background: #ffffff !important;
  opacity: .04 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow.is-armed,
html body.lidogift #playUpgradeView #upgradeGlow.is-armed{
  background: #4db88a !important;
  opacity: .16 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow.is-success,
html body.lidogift #playUpgradeView #upgradeGlow.is-success{
  background: #6fd4a3 !important;
  opacity: .28 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-glow.is-fail,
html body.lidogift #playUpgradeView #upgradeGlow.is-fail{
  background: #ff4d6d !important;
  opacity: .22 !important;
}

html body.lidogift .gift-anim-layer{
  position: absolute !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  width: 68% !important;
  height: 68% !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-50%, -50%) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 4 !important;
  overflow: hidden !important;
}

html body.lidogift .gift-anim-host.is-gift-animating .gift-anim-layer,
html body.lidogift .case-phone-prizes .case-prize-card-visual.gift-anim-host.is-gift-animating .gift-anim-layer{
  display: flex !important;
}

html body.lidogift .gift-anim-layer svg,
html body.lidogift .gift-anim-layer canvas{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  transform: none !important;
}

html body.lidogift .lg-up-card.is-black-backdrop,
html body.lidogift .lg-up-card-img.is-black-backdrop,
html body.lidogift .upgrade-gift-visual.is-black-backdrop,
html body.lidogift #upgradeTargetCard.is-black-backdrop .upgrade-gift-visual{
  position: relative !important;
}

html body.lidogift .lg-up-card.is-black-backdrop .lg-up-card-img,
html body.lidogift .lg-up-card-img.is-black-backdrop,
html body.lidogift .upgrade-gift-visual.is-black-backdrop{
  background:
    radial-gradient(circle at 50% 40%, rgba(40, 40, 48, 0.55), rgba(0, 0, 0, 0.96) 72%),
    #050505 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

html body.lidogift .lg-up-card-img .lg-black-chip{
  top: 6px !important;
  left: 6px !important;
}

html body.lidogift .lg-up-card-img.gift-anim-host .gift-anim-layer,
html body.lidogift .upgrade-gift-visual.gift-anim-host .gift-anim-layer{
  width: 80% !important;
  height: 80% !important;
}

html body.lidogift .lg-roulette-item.is-black-backdrop,
html body.lidogift .lg-roulette-item.is-black-backdrop .lg-roulette-visual,
html body.lidogift .case-open-reel-card.is-black-backdrop,
html body.lidogift .case-open-reel-card.is-black-backdrop .lg-roulette-visual,
html body.lidogift .lg-roulette .lg-roulette-item.is-black-backdrop,
html body.lidogift .lg-roulette .lg-roulette-visual{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body.lidogift .lg-roulette-item.is-black-backdrop::before,
html body.lidogift .case-open-reel-card.is-black-backdrop::before{
  content: none !important;
  background: none !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-wrap,
html body.lidogift #playUpgradeView .upgrade-sim-wheel{
  overflow: visible !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-wheel{
  width: min(256px, 68vw) !important;
  max-width: 256px !important;
  height: auto !important;
  aspect-ratio: 1 !important;
}

@media (min-width: 901px) {
  html body.lidogift #playUpgradeView .upgrade-sim-wheel{
    width: min(268px, 34vw) !important;
    max-width: 268px !important;
  }
}

html body.lidogift #playUpgradeView .lg-up-groove{
  position: absolute !important;
  inset: 9px !important;
  border-radius: 50% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 42%, #161a22 0 62%, #0a0c11 76%) !important;
  box-shadow:
    inset 0 0 0 18px #1a1e27,
    inset 0 0 0 19px #000000b0,
    inset 0 0 0 20px #e8c36a2e,
    inset 0 14px 22px #00000080,
    0 0 0 1px #ffffff14 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-ring{
  inset: 11px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  z-index: 2 !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
  box-shadow: none !important;
  filter: drop-shadow(0 8px 16px #00000073) !important;
}

html body.lidogift #playUpgradeView .lg-up-shine{
  position: absolute !important;
  inset: 11px !important;
  z-index: 3 !important;
  pointer-events: none !important;
  border-radius: 50% !important;
  background: conic-gradient(
    from 210deg,
    transparent 0 38%,
    #ffffff44 46%,
    transparent 58%,
    #ffffff10 78%,
    transparent 100%
  ) !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
  mix-blend-mode: screen;
  opacity: .4 !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-wheel.lg-wheel-win .upgrade-sim-ring,
html body.lidogift #playUpgradeView .upgrade-sim-wheel.has-inline-success .upgrade-sim-ring{
  filter: drop-shadow(0 0 18px #5ee0a0aa) drop-shadow(0 12px 24px #00000080) !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-wheel.lg-wheel-lose .upgrade-sim-ring,
html body.lidogift #playUpgradeView .upgrade-sim-wheel.has-inline-fail .upgrade-sim-ring{
  filter: drop-shadow(0 0 18px #e44563aa) drop-shadow(0 12px 24px #00000080) !important;
}

html body.lidogift #playUpgradeView .lg-up-bezel{
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  pointer-events: none !important;
  overflow: visible !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-pointer-wrap{
  z-index: 8 !important;
  overflow: visible !important;
  transform-origin: 50% 50% !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

html body.lidogift #playUpgradeView .upgrade-sim-pointer{
  display: none !important;
}

html body.lidogift #playUpgradeView .lg-up-needle{
  position: absolute !important;
  top: -13px !important;
  left: 50% !important;
  width: 24px !important;
  height: 54px !important;
  transform: translateX(-50%) !important;
  overflow: visible !important;
  filter:
    drop-shadow(0 0 0.5px #1a1206)
    drop-shadow(0 0 0.5px #1a1206)
    drop-shadow(0 3px 4px #000000b3) !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-pointer-wrap.is-spinning .lg-up-needle{
  filter: drop-shadow(0 1px 0 #2a1c08) drop-shadow(0 3px 3px #00000099) !important;
}

html body.lidogift #playUpgradeView .upgrade-sim-center{
  inset: 32px !important;
  z-index: 5 !important;
  border: 1px solid #e8c36a33 !important;
  background:
    radial-gradient(circle at 50% 30%, #242833, #0b0d12 74%) !important;
  box-shadow:
    inset 0 0 0 1px #e8c36a24,
    inset 0 1px 0 #ffffff18,
    inset 0 -18px 28px #00000073,
    0 12px 30px #00000080 !important;
}

html body.lidogift .inventory-visual,
html body.lidogift .lg-up-card-img,
html body.lidogift .lg-craft-prize,
html body.lidogift .lg-craft-slot.is-filled,
html body.lidogift .lg-craft-item-img,
html body.lidogift .case-prize-card-visual,
html body.lidogift .case-drop-visual,
html body.lidogift .item-img,
html body.lidogift .upgrade-gift-visual,
html body.lidogift .lg-drop-prize-visual,
html body.lidogift .case-phone-prizes .case-prize-card-visual{
  isolation: isolate !important;
  contain: none !important;
  overflow: hidden !important;
  position: relative !important;
}

html body.lidogift .lg-gift-glow-hold,
html body.lidogift .case-phone-prizes .lg-gift-glow-hold,
html body.lidogift .lg-drop-prize-visual .lg-gift-glow-hold,
html body.lidogift .inventory-visual .lg-gift-glow-hold,
html body.lidogift .upgrade-gift-visual .lg-gift-glow-hold,
html body.lidogift .lg-up-card-img .lg-gift-glow-hold,
html body.lidogift .lg-craft-prize .lg-gift-glow-hold,
html body.lidogift .lg-craft-item-img .lg-gift-glow-hold,
html body.lidogift .case-prize-card-visual .lg-gift-glow-hold{
  position: absolute !important;
  inset: 16% !important;
  z-index: 0 !important;
  display: block !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html body.lidogift .lg-gift-glow-hold img.lg-gift-glow,
html body.lidogift img.lg-gift-glow,
html body.lidogift .gift-anim-host img.lg-gift-glow,
html body.lidogift .lg-up-card-img img.lg-gift-glow,
html body.lidogift .inventory-visual img.lg-gift-glow,
html body.lidogift .lg-craft-prize img.lg-gift-glow,
html body.lidogift .lg-craft-slot img.lg-gift-glow,
html body.lidogift .lg-craft-item-img img.lg-gift-glow,
html body.lidogift .case-prize-card-visual img.lg-gift-glow,
html body.lidogift .case-drop-visual img.lg-gift-glow,
html body.lidogift .item-img img.lg-gift-glow,
html body.lidogift .lg-drop-prize-visual img.lg-gift-glow,
html body.lidogift .upgrade-gift-visual img.lg-gift-glow,
html body.lidogift .case-phone-prizes .case-prize-card-visual img.lg-gift-glow,
html body.lidogift .gift-anim-host.is-gift-animating img.lg-gift-glow,
html body.lidogift .upgrade-gift-visual.gift-anim-host.is-gift-animating img.lg-gift-glow{
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  pointer-events: none !important;
  transform: scale(1.04) !important;
  filter: blur(14px) saturate(1.12) brightness(1.04) !important;
  opacity: .38 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  visibility: visible !important;
  display: block !important;
}

html body.lidogift .live-item .lg-gift-glow-hold,
html body.lidogift .live-item img.lg-gift-glow,
html body.lidogift .lg-live-track .lg-gift-glow-hold,
html body.lidogift .lg-live-track img.lg-gift-glow,
html body.lidogift .live-items .lg-gift-glow-hold,
html body.lidogift .live-items img.lg-gift-glow,
html body.lidogift .live-ribbon-visual .lg-gift-glow-hold,
html body.lidogift .live-ribbon-visual img.lg-gift-glow,
html body.lidogift .is-ton-drop .lg-gift-glow-hold,
html body.lidogift .is-ton-drop img.lg-gift-glow{
  display: none !important;
}

html body.lidogift .is-black-backdrop img.lg-gift-glow,
html body.lidogift .case-prize-card.is-black-backdrop img.lg-gift-glow,
html body.lidogift .lg-up-card.is-black-backdrop img.lg-gift-glow,
html body.lidogift .upgrade-gift-visual.is-black-backdrop img.lg-gift-glow{
  filter: blur(14px) saturate(1.18) brightness(1.12) !important;
  opacity: .34 !important;
}

html body.lidogift .lg-craft-board,
html body.lidogift #playCraftView .lg-craft-board{
  position: relative !important;
  flex: 0 0 auto !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

html body.lidogift .lg-craft-board.is-fusing,
html body.lidogift #playCraftView .lg-craft-board.is-fusing{
  overflow: hidden !important;
}

html body.lidogift #playCraftView .lg-craft-slots,
html body.lidogift .lg-craft-slots.lg-craft-chamber{
  position: relative !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  min-height: auto !important;
  height: auto !important;
}

html body.lidogift #playCraftView.is-crafting{
  overflow-x: hidden !important;
}

html body.lidogift #playCraftView .lg-craft-board > .lg-craft-stage,
html body.lidogift .lg-craft-board > .lg-craft-stage,
html body.lidogift .lg-craft-slots > .lg-craft-stage,
html body.lidogift #playCraftView > .lg-craft-stage{
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  z-index: 8 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin: 0 !important;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 42%, #1a1e28f5 0 30%, #0b0d12f8 74%) !important;
  border: 1px solid #ffffff14 !important;
  overflow: hidden !important;
  pointer-events: auto;
  contain: layout paint;
}

html body.lidogift #playCraftView .lg-craft-board > .lg-craft-stage.hidden,
html body.lidogift #playCraftView .lg-craft-slots > .lg-craft-stage.hidden,
html body.lidogift #playCraftView > .lg-craft-stage.hidden,
html body.lidogift .lg-craft-board > .lg-craft-stage.hidden,
html body.lidogift .lg-craft-slots > .lg-craft-stage.hidden,
html body.lidogift .lg-craft-stage.hidden{
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

html body.lidogift .lg-craft-slots > .lg-craft-stage.is-result,
html body.lidogift .lg-craft-board > .lg-craft-stage.is-result{
  border-color: #e8c36a55 !important;
}

html body.lidogift .lg-forge{
  position: relative;
  width: min(180px, 52%, 42vw);
  max-height: 52%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto !important;
  align-self: center;
}

html body.lidogift .lg-forge-done .lg-forge-well{
  display: none;
}

html body.lidogift .lg-forge-vignette{
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, #6fd4a324 0 18%, #e8c36a14 36%, transparent 68%);
  filter: blur(8px);
  animation: lg-forge-breathe 1.8s ease-in-out infinite;
}

html body.lidogift .lg-forge-well{
  position: absolute;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #fff6d8, #e8c36a 28%, #6fd4a3 58%, #0b0d12 78%);
  box-shadow: 0 0 28px #e8c36a80, inset 0 0 18px #ffffff40;
  animation: lg-forge-pulse 1.2s ease-in-out infinite;
}

html body.lidogift .lg-forge-rings{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html body.lidogift .lg-forge-rings i{
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #6fd4a3;
  border-right-color: #6fd4a366;
  animation: lg-forge-spin 1.8s linear infinite;
}

html body.lidogift .lg-forge-rings i:nth-child(2){
  inset: 16%;
  border-top-color: #f3e08a;
  border-right-color: #e8c36a66;
  animation-duration: 2.6s;
  animation-direction: reverse;
}

html body.lidogift .lg-forge-rings i:nth-child(3){
  inset: 26%;
  border-width: 1.5px;
  border-top-color: #ffffffaa;
  animation-duration: 1.15s;
}

html body.lidogift .lg-forge-rings.is-settled i{
  animation-duration: 8s;
  opacity: .45;
}

html body.lidogift .lg-forge-sparks{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html body.lidogift .lg-forge-sparks span{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: #fff6d8;
  box-shadow: 0 0 8px #e8c36a;
  animation: lg-forge-spark 1.6s linear infinite;
  animation-delay: calc(var(--s) * -0.11s);
  transform: rotate(calc(var(--s) * 26deg)) translateY(-78px);
}

html body.lidogift .lg-forge-orbs{
  position: absolute;
  inset: 0;
}

html body.lidogift .lg-forge-orb{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px;
  border-radius: 14px;
  background: #14161ccc;
  border: 1px solid #ffffff22;
  box-shadow: 0 8px 16px #00000080;
  overflow: hidden;
  animation: lg-forge-orbit 2.35s cubic-bezier(.22, .7, .18, 1) infinite;
  animation-delay: calc(var(--i) * -0.14s);
}

html body.lidogift .lg-forge-orb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

html body.lidogift .lg-forge-copy{
  display: grid;
  gap: 2px;
  text-align: center;
  z-index: 2;
  flex: 0 0 auto;
}

html body.lidogift .lg-forge-copy strong{
  font-size: 16px;
  letter-spacing: .04em;
}

html body.lidogift .lg-forge-copy span{
  color: #8b93a3;
  font-size: 12px;
}

html body.lidogift .lg-forge-burst{
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d8cc 0 8%, #e8c36a66 28%, transparent 70%);
  animation: lg-forge-burst .7s cubic-bezier(.16, .84, .18, 1) both;
}

html body.lidogift .lg-forge .lg-craft-prize,
html body.lidogift .lg-craft-stage.is-result .lg-forge .lg-craft-prize{
  position: absolute !important;
  top: 22% !important;
  left: 22% !important;
  right: auto !important;
  bottom: auto !important;
  width: 56% !important;
  height: 56% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  display: grid;
  place-items: center;
  z-index: 3;
  overflow: hidden !important;
  animation: lg-forge-prize .7s cubic-bezier(.16, .84, .18, 1) both;
}

html body.lidogift .lg-forge .lg-craft-prize::before{
  inset: 12%;
  filter: blur(16px);
}

html body.lidogift .lg-forge .lg-craft-prize img{
  width: 88% !important;
  height: 88% !important;
  max-width: 88% !important;
  max-height: 88% !important;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

html body.lidogift .lg-craft-stage.is-result .lg-craft-prize-info,
html body.lidogift .lg-craft-stage.is-result #lgCraftContinue,
html body.lidogift .lg-forge-copy{
  z-index: 3;
  flex: 0 0 auto !important;
}

html body.lidogift .lg-craft-stage.is-result #lgCraftContinue{
  min-width: 148px;
}

@media (max-width: 720px) {
  html body.lidogift .lg-craft-board > .lg-craft-stage{
    gap: 6px;
    padding: 10px;
  }

  html body.lidogift .lg-forge{
    width: min(150px, 48vw);
    max-height: 44%;
  }

  html body.lidogift .lg-forge-orb{
    width: 28px;
    height: 28px;
    margin: -14px;
    border-radius: 10px;
  }

  html body.lidogift .lg-forge-copy strong{
    font-size: 14px;
  }

  html body.lidogift .lg-forge-copy span{
    font-size: 11px;
  }

  html body.lidogift .lg-craft-stage.is-result #lgCraftContinue{
    min-width: 0;
    min-height: 44px;
    padding: 10px 18px;
  }
}

@keyframes lg-forge-spin {
  to { transform: rotate(360deg); }
}

@keyframes lg-forge-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.18); }
}

@keyframes lg-forge-breathe {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes lg-forge-spark {
  0% { opacity: 0; transform: rotate(calc(var(--s) * 26deg)) translateY(-48px) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--s) * 26deg + 70deg)) translateY(-88px) scale(.2); }
}

@keyframes lg-forge-orbit {
  0% {
    transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(-78px) scale(1);
    opacity: 1;
  }
  62% {
    transform: rotate(calc(var(--i) * 360deg / var(--n) + 210deg)) translateY(-28px) scale(.62);
    opacity: .95;
  }
  100% {
    transform: rotate(calc(var(--i) * 360deg / var(--n) + 360deg)) translateY(0) scale(.12);
    opacity: 0;
  }
}

@keyframes lg-forge-burst {
  0% { transform: scale(.4); opacity: .2; }
  40% { opacity: 1; }
  100% { transform: scale(1.45); opacity: .18; }
}

@keyframes lg-forge-prize {
  0% { transform: scale(.2); opacity: 0; filter: blur(8px); }
  100% { transform: scale(1); opacity: 1; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
html body.lidogift .lg-forge-orb,
  html body.lidogift .lg-forge-rings i,
  html body.lidogift .lg-forge-sparks span,
  html body.lidogift .lg-forge-well,
  html body.lidogift .lg-forge-vignette{
    animation-duration: 8s !important;
  }
}

html body.lidogift .case-prize-card-odds,
html body.lidogift .case-drop-odds,
html body.lidogift .lg-case-results-title,
html body.lidogift .lg-case-results-title.hidden,
html body.lidogift #caseResultsTitle,
html body.lidogift .lg-case-results-head{
  display: none !important;
}

html body.lidogift #playCraftView .lg-craft-slots,
html body.lidogift .lg-craft-slots{
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, auto)) !important;
}

html body.lidogift #playCraftView .lg-craft-slot,
html body.lidogift .lg-craft-slot{
  min-width: 0 !important;
  min-height: 52px !important;
}

/* ==========================================================================
   Visual polish — atmosphere, silhouette case glow, desktop profile
   ========================================================================== */

html body.lidogift{
  --lg-glow-left: rgba(64, 196, 142, 0.13);
  --lg-glow-right: rgba(232, 168, 72, 0.1);
  --tone-rgb: 77, 184, 138;
}

html body.lidogift[data-lg-atmosphere="profile"]{
  --lg-glow-left: rgba(64, 196, 142, 0.12);
  --lg-glow-right: rgba(232, 168, 72, 0.1);
}

html body.lidogift[data-lg-atmosphere="upgrade"]{
  --lg-glow-left: rgba(232, 168, 72, 0.11);
  --lg-glow-right: rgba(64, 196, 142, 0.1);
}

html body.lidogift[data-lg-atmosphere="craft"]{
  --lg-glow-left: rgba(88, 176, 232, 0.1);
  --lg-glow-right: rgba(64, 196, 142, 0.11);
}

html body.lidogift[data-lg-atmosphere="social"],
html body.lidogift[data-lg-atmosphere="deposit"]{
  --lg-glow-left: rgba(64, 196, 142, 0.11);
  --lg-glow-right: rgba(110, 158, 232, 0.1);
}

html body.lidogift::before,
html body.lidogift.reduced-effects::before{
  display: block !important;
  background:
    radial-gradient(ellipse 130% 95% at -22% 42%, var(--lg-glow-left), transparent 72%),
    radial-gradient(ellipse 130% 95% at 122% 62%, var(--lg-glow-right), transparent 72%),
    radial-gradient(40% 28% at 50% -20%, #ffffff04, transparent 78%),
    repeating-linear-gradient(#ffffff03 0 1px, transparent 1px 108px),
    repeating-linear-gradient(90deg, #ffffff03 0 1px, transparent 1px 108px) !important;
  opacity: 1;
}

html body.lidogift .bg-effects,
html body.lidogift.reduced-effects .bg-effects{
  display: block !important;
  position: fixed !important;
  inset: -18% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse 80% 70% at 8% 36%, var(--lg-glow-left), transparent 74%),
    radial-gradient(ellipse 80% 70% at 92% 70%, var(--lg-glow-right), transparent 74%) !important;
  filter: blur(92px);
  opacity: .55;
}

html body.lidogift .bg-noise,
html body.lidogift.reduced-effects .bg-noise{
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: .022;
  background-image: radial-gradient(#ffffff 0.5px, transparent 0.7px);
  background-size: 5px 5px;
}

html body.lidogift .lg-gift-credit{
  display: none !important;
}

html body.lidogift .btn:active:not(:disabled),
html body.lidogift .mini-btn:active:not(:disabled),
html body.lidogift .lg-inv-btn:active:not(:disabled),
html body.lidogift .nav-btn:active,
html body.lidogift .lg-desk-link:active{
  transform: scale(.98) !important;
}

html body.lidogift .overlay:not(.hidden) .modal{
  animation: lg-pop-in .2s cubic-bezier(.22,.82,.2,1);
}

html body.lidogift .lg-bal-flash{
  animation: lg-bal-flash .5s ease;
}

@keyframes lg-pop-in{
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-bal-flash{
  0% { box-shadow: 0 0 0 0 #6fd4a300; }
  40% { box-shadow: 0 0 0 5px #6fd4a322; }
  100% { box-shadow: 0 0 0 0 #6fd4a300; }
}

html body.lidogift .cases-grid,
html body.lidogift .case-section-grid,
html body.lidogift .case-section{
  overflow: visible !important;
}

html body.lidogift .case-section-grid{
  padding: 6px 2px 18px !important;
}

html body.lidogift .case-card-product,
html body.lidogift .case-card,
html body.lidogift .case-card-premium,
html body.lidogift.reduced-effects .case-card-product,
html body.lidogift.reduced-effects .case-card-premium{
  --tone: rgb(var(--tone-rgb));
  --tone-rgb: 77, 184, 138;
  overflow: hidden !important;
  isolation: isolate;
  background: #0b0d12 !important;
  border: 1px solid color-mix(in srgb, rgb(var(--tone-rgb)) 38%, #ffffff14) !important;
  box-shadow: inset 0 1px 0 #ffffff10 !important;
  transform: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

html body.lidogift .case-card-product::before,
html body.lidogift .case-card-premium::before,
html body.lidogift.reduced-effects .case-card-product::before,
html body.lidogift.reduced-effects .case-card-premium::before{
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background: radial-gradient(120% 70% at 50% -10%, rgba(var(--tone-rgb), .22), transparent 58%) !important;
  opacity: 1 !important;
  box-shadow: none !important;
  filter: none !important;
}

html body.lidogift .case-card-product::after,
html body.lidogift .case-card-premium::after,
html body.lidogift.reduced-effects .case-card-product::after,
html body.lidogift.reduced-effects .case-card-premium::after{
  content: none !important;
  display: none !important;
}

html body.lidogift .case-card-product .case-card-cover-wrap,
html body.lidogift .case-card-product .case-card-cover,
html body.lidogift .case-card-product .case-visual{
  overflow: visible !important;
  position: relative !important;
}

html body.lidogift .case-card-product .case-glow,
html body.lidogift .case-card-product .case-gift-glow,
html body.lidogift.reduced-effects .case-card-product .case-glow,
html body.lidogift.reduced-effects .case-card-product .case-gift-glow{
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 54% !important;
  width: 88% !important;
  height: 72% !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: radial-gradient(ellipse at center, rgba(var(--tone-rgb), .32) 0%, rgba(var(--tone-rgb), .1) 46%, transparent 78%) !important;
  opacity: .55 !important;
  filter: blur(28px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
  box-shadow: none !important;
}

html body.lidogift .case-card-product .case-visual::after{
  content: none !important;
  display: none !important;
}

html body.lidogift .case-card-product .case-halo,
html body.lidogift.reduced-effects .case-card-product .case-halo{
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 52% !important;
  width: 86% !important;
  height: 86% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  transform: translate(-50%, -50%) scale(1.06) !important;
  filter: blur(20px) saturate(1.08) !important;
  opacity: .2 !important;
  mix-blend-mode: normal !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

html body.lidogift .case-card-product .case-base,
html body.lidogift .case-card-product .case-visual img:not(.lg-gift-glow):not(.case-gift):not(.case-halo){
  position: relative !important;
  z-index: 1 !important;
  filter: drop-shadow(0 10px 16px rgba(var(--tone-rgb), .28));
}

html body.lidogift .case-card-product:hover,
html body.lidogift .case-card-premium:hover{
  transform: translateY(-2px) scale(1.01) !important;
  border-color: color-mix(in srgb, rgb(var(--tone-rgb)) 72%, #ffffff22) !important;
  box-shadow: inset 0 1px 0 #ffffff14 !important;
}

html body.lidogift .case-card-product:hover::before,
html body.lidogift .case-card-premium:hover::before{
  background: radial-gradient(120% 70% at 50% -10%, rgba(var(--tone-rgb), .34), transparent 60%) !important;
}

html body.lidogift .case-card-product:hover .case-visual::after{
  display: none !important;
}

html body.lidogift .case-card-product:hover .case-glow,
html body.lidogift .case-card-product:hover .case-gift-glow{
  opacity: .7 !important;
  filter: blur(32px) !important;
}

html body.lidogift .case-card-product:hover .case-halo{
  opacity: .26 !important;
  filter: blur(22px) saturate(1.1) !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
}

html body.lidogift .case-card-product:hover .case-base,
html body.lidogift .case-card-product:hover .case-visual img:not(.lg-gift-glow):not(.case-gift):not(.case-halo){
  transform: scale(1.03) !important;
  filter: brightness(1.03) drop-shadow(0 12px 20px rgba(var(--tone-rgb), .36));
}

html body.lidogift .case-card-product:active,
html body.lidogift .case-card-premium:active{
  transform: translateY(1px) scale(.988) !important;
  box-shadow: inset 0 1px 0 #ffffff10 !important;
  border-color: color-mix(in srgb, rgb(var(--tone-rgb)) 55%, #ffffff18) !important;
}

html body.lidogift .case-card-product:active .case-halo{
  opacity: .26 !important;
}

html body.lidogift .case-card-product:active .case-glow{
  opacity: .82 !important;
}

html body.lidogift .lg-roulette-flash{
  position: absolute !important;
  inset: 0 !important;
  z-index: 6 !important;
  pointer-events: none !important;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, #ffffff2a 0%, transparent 58%);
}

html body.lidogift .lg-roulette.is-landed .lg-roulette-flash{
  animation: lg-reel-flash .4s ease-out;
}

html body.lidogift .lg-roulette-item.is-winning,
html body.lidogift .case-open-reel-card.is-winning{
  z-index: 2 !important;
}

html body.lidogift .lg-roulette-strip,
html body.lidogift .case-open-row-track{
  transition: none !important;
}

html body.lidogift .lg-roulette-item.is-winning,
html body.lidogift .case-open-reel-card.is-winning{
  box-shadow: none !important;
}

html body.lidogift .lg-roulette-item.is-winning::before,
html body.lidogift .case-open-reel-card.is-winning::before{
  content: none !important;
  display: none !important;
  box-shadow: none !important;
}

html body.lidogift .lg-roulette-item.is-winning .lg-roulette-visual,
html body.lidogift .case-open-reel-card.is-winning .lg-roulette-visual,
html body.lidogift .lg-roulette-item.is-winning .case-open-reel-visual,
html body.lidogift .case-open-reel-card.is-winning .case-open-reel-visual{
  animation: lg-win-pulse .5s cubic-bezier(.18,.84,.22,1);
}

@keyframes lg-reel-flash{
  0% { opacity: .32; }
  100% { opacity: 0; }
}

@keyframes lg-win-pulse{
  0% { filter: brightness(1.12); }
  100% { filter: none; }
}

html body.lidogift #profileTab,
html body.lidogift #profileTab.tab,
html body.lidogift #profileTab.tab.active{
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html body.lidogift[data-tab="profile"] main.container,
html body.lidogift[data-tab="profile"] .container{
  width: min(1280px, calc(100% - 32px)) !important;
  max-width: 1280px !important;
}

html body.lidogift #profileTab .lg-profile-top{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 24px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

html body.lidogift #profileTab .profile-hero,
html body.lidogift #profileTab .profile-hero-clean,
html body.lidogift #profileTab .profile-utility-card{
  height: auto !important;
  min-height: 0 !important;
}

html body.lidogift #profileTab .profile-hero,
html body.lidogift #profileTab .profile-hero-clean{
  padding: 24px !important;
  background: #14161c !important;
  border: 1px solid #ffffff12 !important;
  box-shadow: none !important;
}

html body.lidogift #profileTab .lg-profile-user{
  display: block !important;
  padding: 0 !important;
  text-align: left !important;
}

html body.lidogift #profileTab .lg-profile-ident{
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
}

html body.lidogift #profileTab .lg-profile-meta{
  min-width: 0;
  display: grid;
  gap: 8px;
}

html body.lidogift #profileTab .lg-profile-user h2{
  font-size: 20px !important;
  letter-spacing: -.02em;
  line-height: 1.2;
}

html body.lidogift #profileTab .lg-profile-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html body.lidogift #profileTab .profile-avatar{
  flex: 0 0 96px !important;
  width: 96px !important;
  height: 96px !important;
  border-color: #6fd4a355 !important;
  box-shadow: none !important;
}

html body.lidogift #profileTab .lg-inv-chip{
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #ffffff16 !important;
  background: #ffffff0a !important;
  color: var(--cm-text) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

html body.lidogift #profileTab .lg-inv-chip span{
  color: var(--cm-muted);
  font-weight: 500;
  font-size: 12px;
}

html body.lidogift #profileTab .lg-inv-chip img{
  width: 14px !important;
  height: 14px !important;
}

html body.lidogift #profileTab .profile-utility-card{
  padding: 18px 20px !important;
  background: #14161c !important;
}

html body.lidogift #profileTab .profile-inventory-card,
html body.lidogift #profileTab .lg-gift-deposits-card,
html body.lidogift #profileTab .lg-wd-card{
  box-shadow: none !important;
}

html body.lidogift #profileGrid .inventory-card{
  transition: transform .16s ease, border-color .16s ease, background .16s ease !important;
}

html body.lidogift #profileGrid .inventory-card:hover{
  transform: translateY(-1px);
  border-color: #ffffff22 !important;
}

html body.lidogift .lg-gift-deposit-row{
  background: #ffffff08 !important;
  border-color: #ffffff12 !important;
}

html body.lidogift .lg-gift-deposit-row em{
  padding: 3px 8px;
  border-radius: 999px;
  background: #7ddea018;
  border: 1px solid #7ddea02e;
}

@media (min-width: 900px){
  html body.lidogift{
    --lg-glow-left: rgba(64, 196, 142, 0.16);
    --lg-glow-right: rgba(232, 168, 72, 0.13);
  }
  html body.lidogift .bg-effects{
    opacity: .62;
    filter: blur(110px);
  }
  html body.lidogift #profileTab .lg-profile-top{
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 24px !important;
  }
  html body.lidogift #profileTab .profile-hero,
  html body.lidogift #profileTab .profile-hero-clean,
  html body.lidogift #profileTab .profile-utility-card{
    height: 100% !important;
    min-height: 132px !important;
    padding: 24px !important;
  }
  html body.lidogift #profileTab .profile-avatar{
    flex-basis: 96px !important;
    width: 96px !important;
    height: 96px !important;
  }
  html body.lidogift #profileTab #profileGrid,
  html body.lidogift #profileTab .inventory-grid{
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  html body.lidogift #profileTab #sellAllBtn{
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 168px !important;
  }
  html body.lidogift #profileTab .lg-profile-inv-head{
    flex-wrap: nowrap !important;
  }
}

@media (max-width: 899px) and (min-width: 640px){
  html body.lidogift #profileTab #profileGrid,
  html body.lidogift #profileTab .inventory-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px){
  html body.lidogift{
    --lg-glow-left: rgba(64, 196, 142, 0.08);
    --lg-glow-right: rgba(232, 168, 72, 0.06);
  }
  html body.lidogift .bg-effects{
    opacity: .32;
    filter: blur(70px);
  }
  html body.lidogift #profileTab .profile-avatar{
    flex-basis: 64px !important;
    width: 64px !important;
    height: 64px !important;
  }
  html body.lidogift .case-card-product:hover,
  html body.lidogift .case-card-premium:hover{
    transform: scale(1.008) !important;
  }
}

@media (prefers-reduced-motion: reduce){
  html body.lidogift .overlay:not(.hidden) .modal,
  html body.lidogift .lg-bal-flash,
  html body.lidogift .lg-roulette.is-landed .lg-roulette-flash,
  html body.lidogift .lg-roulette-item.is-winning .lg-roulette-visual,
  html body.lidogift .case-open-reel-card.is-winning .lg-roulette-visual{
    animation: none !important;
  }
  html body.lidogift .case-card-product,
  html body.lidogift .case-card-premium,
  html body.lidogift #profileGrid .inventory-card{
    transition: none !important;
  }
  html body.lidogift .case-card-product:hover,
  html body.lidogift .case-card-premium:hover,
  html body.lidogift .case-card-product:active,
  html body.lidogift .case-card-premium:active{
    transform: none !important;
  }
}

html body.lidogift .lg-gift-glow-hold,
html body.lidogift .case-phone-prizes .lg-gift-glow-hold,
html body.lidogift .lg-drop-prize-visual .lg-gift-glow-hold,
html body.lidogift .inventory-visual .lg-gift-glow-hold,
html body.lidogift .upgrade-gift-visual .lg-gift-glow-hold,
html body.lidogift .lg-up-card-img .lg-gift-glow-hold,
html body.lidogift .lg-craft-prize .lg-gift-glow-hold,
html body.lidogift .lg-craft-item-img .lg-gift-glow-hold,
html body.lidogift .case-prize-card-visual .lg-gift-glow-hold{
  overflow: visible !important;
  background: none !important;
  filter: none !important;
  border-radius: 0 !important;
}

html body.lidogift img.lg-gift-glow,
html body.lidogift .lg-gift-glow-hold img.lg-gift-glow{
  width: 58% !important;
  height: 58% !important;
  max-width: none !important;
  inset: auto !important;
  top: 52% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  filter: blur(10px) saturate(1.12) brightness(1.05) !important;
  opacity: .18 !important;
  mix-blend-mode: soft-light !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

html body.lidogift .gift-anim-host.is-gift-animating img.lg-gift-glow,
html body.lidogift .gift-anim-host.is-gift-animating .lg-gift-glow-hold img.lg-gift-glow{
  opacity: .26 !important;
  filter: blur(12px) saturate(1.18) brightness(1.08) !important;
}

@media (min-width: 900px){
  html body.lidogift #profileTab .profile-hero,
  html body.lidogift #profileTab .profile-hero-clean,
  html body.lidogift #profileTab .profile-utility-card{
    padding: 24px !important;
  }
}
