/* Telegram Stars / Premium case landing */

:root {
  --tg-bg: #e6f1fa;
  --tg-bg-2: #d6e8f6;
  --tg-panel: rgba(255, 255, 255, 0.96);
  --tg-border: rgba(42, 171, 238, 0.24);
  --tg-gold: #2aabee;
  --tg-gold-2: #5bc4f7;
  --tg-blue: #229ed9;
  --tg-navy: #1a4f7a;
  --tg-text: #0f2942;
  --tg-muted: #4a657a;
  --tg-r-common: #7b8fa3;
  --tg-r-rare: #229ed9;
  --tg-r-epic: #6b4fc7;
  --tg-r-legendary: #9333ea;
  --tg-r-arcane: #eb4b4b;
}

html.landing-telegram,
html.landing-telegram body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(42, 171, 238, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(34, 158, 217, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(91, 196, 247, 0.16) 0%, transparent 38%),
    linear-gradient(180deg, #f8fcff 0%, var(--tg-bg) 35%, var(--tg-bg-2) 100%) !important;
  color: var(--tg-text);
}

html.landing-telegram body {
  display: block;
  font-family: "Roboto", system-ui, sans-serif;
}

html.landing-telegram .tg-page {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
}

html.landing-telegram .tg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(42, 171, 238, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 171, 238, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

html.landing-telegram .tg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

html.landing-telegram .tg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: tg-orb-float 14s ease-in-out infinite alternate;
}

html.landing-telegram .tg-glow-orb--1 {
  width: 280px;
  height: 280px;
  top: 5%;
  left: 15%;
  background: rgba(42, 171, 238, 0.14);
}

html.landing-telegram .tg-glow-orb--2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: 5%;
  background: rgba(34, 158, 217, 0.12);
  animation-delay: -4s;
}

html.landing-telegram .tg-sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

html.landing-telegram .tg-spark {
  position: absolute;
  bottom: -5%;
  left: var(--x, 50%);
  font-size: 12px;
  color: rgba(42, 171, 238, 0.55);
  animation: tg-spark-rise 12s linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

/* Case app */
html.landing-telegram .tg-case-app {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 18px 24px;
}

html.landing-telegram .tg-case-app--claimed {
  opacity: 0.55;
  transform: scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

html.landing-telegram .tg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

html.landing-telegram .tg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tg-text);
}

html.landing-telegram .tg-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #229ed9, #2aabee);
  box-shadow: 0 6px 24px rgba(42, 171, 238, 0.35);
  font-size: 18px;
}

html.landing-telegram .tg-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #4ade80;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.12);
}

html.landing-telegram #tg-online-count {
  transition: opacity 0.25s ease;
}

html.landing-telegram #tg-online-count.tg-online-count--tick {
  opacity: 0.55;
}

html.landing-telegram .tg-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: tg-live-pulse 2s ease-in-out infinite;
}

html.landing-telegram .tg-hero {
  text-align: center;
  margin-bottom: 28px;
}

html.landing-telegram .tg-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

html.landing-telegram .tg-accent {
  background: linear-gradient(90deg, var(--tg-gold), var(--tg-gold-2), var(--tg-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: tg-shimmer 4s linear infinite;
}

html.landing-telegram .tg-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tg-muted);
}

/* Recent drops — horizontal strip */
html.landing-telegram .tg-drops {
  position: relative;
  margin: 0 0 18px;
  padding: 10px 14px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--tg-border);
}

html.landing-telegram .tg-drops::before,
html.landing-telegram .tg-drops::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}

html.landing-telegram .tg-drops::before {
  left: 0;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(90deg, rgba(238, 246, 252, 0.98) 15%, transparent);
}

html.landing-telegram .tg-drops::after {
  right: 0;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(-90deg, rgba(238, 246, 252, 0.98) 15%, transparent);
}

html.landing-telegram .tg-drops-track {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 18px,
    #000 calc(100% - 18px),
    transparent 100%
  );
}

html.landing-telegram .tg-drops-track::-webkit-scrollbar {
  display: none;
}

html.landing-telegram .tg-drop {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(42, 171, 238, 0.12);
  animation: tg-drop-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.landing-telegram .tg-drop--legendary {
  border-color: rgba(211, 44, 230, 0.35);
  background: rgba(211, 44, 230, 0.06);
}

html.landing-telegram .tg-drop--arcane {
  border-color: rgba(235, 75, 75, 0.4);
  background: rgba(235, 75, 75, 0.07);
}

html.landing-telegram .tg-drop--epic {
  border-color: rgba(136, 71, 255, 0.35);
  background: rgba(136, 71, 255, 0.06);
}

html.landing-telegram .tg-drop__icon-wrap {
  width: 56px;
  height: 52px;
  display: grid;
  place-items: center;
}

html.landing-telegram .tg-drop__img-wrap {
  width: 56px;
  height: 44px;
  display: grid;
  place-items: center;
}

html.landing-telegram .tg-drop__img-wrap img {
  max-width: 52px;
  max-height: 40px;
  min-height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html.landing-telegram .tg-drop__name {
  display: block;
  width: 100%;
  font-size: 9px;
  font-weight: 700;
  color: var(--tg-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

html.landing-telegram .tg-drop__skin {
  display: block;
  width: 100%;
  font-size: 10px;
  font-weight: 700;
  color: var(--tg-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.landing-telegram .tg-drop__rarity {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tg-muted);
}

html.landing-telegram .tg-drop--legendary .tg-drop__rarity { color: var(--tg-r-legendary); }
html.landing-telegram .tg-drop--arcane .tg-drop__rarity { color: var(--tg-r-arcane); }
html.landing-telegram .tg-drop--epic .tg-drop__rarity { color: var(--tg-r-epic); }
html.landing-telegram .tg-drop--rare .tg-drop__rarity { color: var(--tg-r-rare); }
html.landing-telegram .tg-drop--common .tg-drop__rarity { color: var(--tg-r-common); }

html.landing-telegram .tg-drop--yours {
  position: relative;
  margin-top: 6px;
  border-color: rgba(42, 171, 238, 0.55) !important;
  background: rgba(42, 171, 238, 0.1) !important;
  box-shadow: 0 0 0 1px rgba(42, 171, 238, 0.2);
}

html.landing-telegram .tg-drop--yours-active {
  animation: tg-yours-drop 1.6s ease-in-out infinite alternate;
}

html.landing-telegram .tg-drop__yours {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--tg-gold-2), var(--tg-gold));
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.35);
  white-space: nowrap;
  z-index: 2;
}

html.landing-telegram .tg-case-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 3D Case */
html.landing-telegram .tg-case-box {
  position: relative;
  width: min(220px, 55vw);
  height: min(220px, 55vw);
  perspective: 800px;
}

html.landing-telegram .tg-case-box--idle {
  animation: tg-case-bob 3s ease-in-out infinite;
}

html.landing-telegram .tg-case-box--opening .tg-case-inner {
  animation: tg-case-open 0.7s ease forwards;
}

html.landing-telegram .tg-case-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

html.landing-telegram .tg-case-body {
  position: absolute;
  inset: 12% 8% 8%;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #1a7fbd 0%, #2aabee 45%, #5bc4f7 70%, #229ed9 100%);
  box-shadow:
    0 20px 50px rgba(26, 79, 122, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 12px rgba(0, 0, 0, 0.08),
    0 0 60px rgba(42, 171, 238, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

html.landing-telegram .tg-case-body::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
}

html.landing-telegram .tg-case-lid {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 28%;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #5bc4f7, #2aabee 60%, #229ed9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform-origin: bottom center;
}

html.landing-telegram .tg-case-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 42px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

html.landing-telegram .tg-case-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 62%
  );
  background-size: 200% 100%;
  animation: tg-shine 3s ease-in-out infinite;
  pointer-events: none;
}

html.landing-telegram .tg-open-btn {
  padding: 16px 42px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, var(--tg-gold-2), var(--tg-gold));
  box-shadow: 0 10px 32px rgba(42, 171, 238, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

html.landing-telegram .tg-open-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

html.landing-telegram .tg-open-btn:active:not(:disabled) {
  transform: scale(0.98);
}

html.landing-telegram .tg-open-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Roulette */
html.landing-telegram .tg-roulette-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 160px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--tg-border);
  box-shadow: inset 0 0 40px rgba(42, 171, 238, 0.06);
}

html.landing-telegram .tg-roulette-wrap::before,
html.landing-telegram .tg-roulette-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

html.landing-telegram .tg-roulette-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--tg-bg), transparent);
}

html.landing-telegram .tg-roulette-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--tg-bg), transparent);
}

html.landing-telegram .tg-roulette-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--tg-gold);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.8);
  z-index: 3;
}

html.landing-telegram .tg-roulette-pointer::before,
html.landing-telegram .tg-roulette-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

html.landing-telegram .tg-roulette-pointer::before {
  top: 8px;
  border-bottom: 10px solid var(--tg-gold);
}

html.landing-telegram .tg-roulette-pointer::after {
  bottom: 8px;
  border-top: 10px solid var(--tg-gold);
}

html.landing-telegram .tg-roulette-track {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 100%;
  padding: 12px 0;
  will-change: transform;
}

html.landing-telegram .tg-reel-item {
  flex: 0 0 132px;
  height: 132px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html.landing-telegram .tg-reel-item--rare { border-color: rgba(75, 105, 255, 0.45); }
html.landing-telegram .tg-reel-item--epic { border-color: rgba(136, 71, 255, 0.5); }
html.landing-telegram .tg-reel-item--legendary { border-color: rgba(211, 44, 230, 0.55); }
html.landing-telegram .tg-reel-item--arcane {
  border-color: rgba(235, 75, 75, 0.6);
  box-shadow: 0 0 20px rgba(235, 75, 75, 0.25);
}

html.landing-telegram .tg-reel-item__img-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  background: radial-gradient(circle at 50% 60%, rgba(77, 163, 255, 0.08), transparent 70%);
}

html.landing-telegram .tg-reel-item__img-wrap img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

html.landing-telegram .tg-reel-item__meta {
  padding: 6px 8px;
  font-size: 10px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
}

html.landing-telegram .tg-reel-item__rarity {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tg-muted);
}

html.landing-telegram .tg-reel-item--legendary .tg-reel-item__rarity { color: var(--tg-r-legendary); }
html.landing-telegram .tg-reel-item--arcane .tg-reel-item__rarity { color: var(--tg-r-arcane); }

html.landing-telegram .tg-reel-item__name {
  display: block;
  color: var(--tg-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.landing-telegram .tg-roulette--active {
  animation: tg-roulette-glow 0.8s ease-in-out infinite alternate;
}

/* Win reveal */
html.landing-telegram .tg-win {
  position: relative;
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 28px 20px;
  border-radius: 20px;
  background: var(--tg-panel);
  border: 1px solid var(--tg-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html.landing-telegram .tg-win--pop {
  animation: tg-win-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

html.landing-telegram .tg-win--loss {
  border-color: rgba(143, 163, 184, 0.25);
  background: rgba(18, 24, 34, 0.96);
}

html.landing-telegram .tg-win--loss img {
  filter: grayscale(0.85) brightness(0.72) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  animation: none;
}

html.landing-telegram .tg-win--grand {
  border-color: rgba(42, 171, 238, 0.35);
  box-shadow:
    0 24px 60px rgba(26, 79, 122, 0.12),
    0 0 48px rgba(42, 171, 238, 0.15);
}

html.landing-telegram .tg-win-badge {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #64748b;
}

html.landing-telegram .tg-win-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.2), transparent 60%);
  pointer-events: none;
  animation: tg-win-glow 2s ease-in-out infinite alternate;
}

html.landing-telegram .tg-win-icon {
  position: relative;
  z-index: 1;
  min-height: 120px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  animation: tg-win-float 3s ease-in-out infinite;
}

html.landing-telegram .tg-win--loss .tg-win-icon {
  animation: none;
  filter: grayscale(0.35);
  opacity: 0.75;
}

html.landing-telegram .tg-win img {
  position: relative;
  z-index: 1;
  max-width: min(280px, 80vw);
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  animation: tg-win-float 3s ease-in-out infinite;
}

html.landing-telegram .tg-win-rarity {
  display: inline-block;
  margin: 14px 0 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.landing-telegram .tg-win-rarity--legendary {
  color: var(--tg-r-legendary);
  background: rgba(211, 44, 230, 0.15);
  border: 1px solid rgba(211, 44, 230, 0.35);
}

html.landing-telegram .tg-win-rarity--common,
html.landing-telegram .tg-win-rarity--rare {
  color: var(--tg-r-common);
  background: rgba(154, 164, 178, 0.12);
  border: 1px solid rgba(154, 164, 178, 0.28);
}

html.landing-telegram .tg-win-rarity--arcane {
  color: var(--tg-r-arcane);
  background: rgba(235, 75, 75, 0.15);
  border: 1px solid rgba(235, 75, 75, 0.35);
}

html.landing-telegram .tg-win h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--tg-text);
}

html.landing-telegram .tg-win-hint {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tg-muted);
}

html.landing-telegram .tg-retry-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, var(--tg-gold-2), var(--tg-blue));
  box-shadow: 0 10px 32px rgba(42, 171, 238, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

html.landing-telegram .tg-retry-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

html.landing-telegram .tg-retry-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

html.landing-telegram .tg-claim-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, var(--tg-blue), #2563eb);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.4);
  animation: tg-claim-pulse 2s ease-in-out infinite;
}

html.landing-telegram .tg-win-auth-hint {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--tg-muted);
}

html.landing-telegram .tg-win-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

html.landing-telegram .tg-win-particle {
  position: absolute;
  left: 50%;
  top: 45%;
  font-size: 14px;
  color: var(--tg-gold);
  animation: tg-particle-burst 2s ease-out forwards;
}

/* Auth section — hide default MAX gray shell behind the card */
html.landing-telegram .tg-auth-section .container.svelte-12qhfyh,
html.landing-telegram .tg-auth-section .container.svelte-vywflk {
  width: 100%;
  max-width: 520px;
  min-height: auto;
  height: auto !important;
  display: block;
  padding: 0;
  margin: 0 auto;
  background: transparent !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
}

html.landing-telegram .tg-auth-section .background,
html.landing-telegram .tg-auth-section .background.svelte-vywflk,
html.landing-telegram .tg-auth-section .background.svelte-1afbb1c,
html.landing-telegram .tg-auth-section .layer.layer-base,
html.landing-telegram .tg-auth-section .layer.layer-base.svelte-1afbb1c {
  display: none !important;
}

html.landing-telegram .logoWrapper.svelte-vywflk,
html.landing-telegram .auth--regular.svelte-vywflk .header.svelte-vywflk {
  display: none;
}

html.landing-telegram .tg-auth-section {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.landing-telegram .tg-auth-section--revealed {
  opacity: 1;
  transform: translateY(0);
}

html.landing-telegram .tg-auth-heading {
  text-align: center;
  margin-bottom: 16px;
}

html.landing-telegram .tg-auth-heading h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

html.landing-telegram .tg-auth-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--tg-muted);
}

html.landing-telegram .tg-auth-section .auth.auth--regular.svelte-vywflk {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: auto;
  height: auto !important;
  border-radius: 18px;
  border: 1px solid var(--tg-border);
  background: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 20px 50px rgba(26, 79, 122, 0.12);
  padding: 0;
  overflow: hidden;
}

html.landing-telegram .auth--regular.svelte-vywflk .form.svelte-vywflk {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 24px 22px 8px;
  min-height: auto;
  margin: 0 auto;
}

html.landing-telegram .auth-step {
  display: block !important;
  transition: opacity 0.3s ease;
}

html.landing-telegram .auth-step:not(.active) {
  opacity: 0;
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
}

html.landing-telegram .auth-step.active {
  opacity: 1;
  position: relative;
  visibility: visible;
}

html.landing-telegram .auth-step .explainer.svelte-vywflk .subheader {
  color: var(--tg-text);
}

html.landing-telegram .auth-step .explainer.svelte-vywflk .detail,
html.landing-telegram .auth-step .field.svelte-vywflk .hint {
  color: var(--tg-muted);
}

html.landing-telegram .auth-step .input.input--secondary.input--neutral.svelte-14rzpox {
  background: rgba(42, 171, 238, 0.06);
  border-color: var(--tg-border);
}

html.landing-telegram .auth-step .country.svelte-1cug6p,
html.landing-telegram .auth-step input.field.svelte-14rzpox {
  color: var(--tg-text);
}

html.landing-telegram #code-inputs .digit {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--tg-border);
  color: var(--tg-text);
}

html.landing-telegram #submit-btn.button--primary,
html.landing-telegram #code-submit-btn.button--primary,
html.landing-telegram #password-submit-btn.button--primary,
html.landing-telegram #password-reset-btn.button--primary,
html.landing-telegram #return-btn.button--primary {
  background: linear-gradient(180deg, var(--tg-blue), #1d4ed8) !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  color: #fff !important;
}

html.landing-telegram .qr-phone-link,
html.landing-telegram .back-link {
  color: var(--tg-blue);
}

html.landing-telegram .auth--regular.svelte-vywflk .footer .description {
  color: var(--tg-muted);
  font-size: 11px;
}

html.landing-telegram .legal-link.svelte-vywflk {
  color: var(--tg-blue);
}

html.landing-telegram #step-phone .explainer.svelte-vywflk {
  display: block;
}

@keyframes tg-orb-float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(18px, -20px); }
}

@keyframes tg-spark-rise {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100vh) rotate(30deg); }
}

@keyframes tg-case-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes tg-case-open {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(0.92); opacity: 0.3; }
}

@keyframes tg-shine {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

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

@keyframes tg-roulette-glow {
  0% { box-shadow: inset 0 0 30px rgba(245, 166, 35, 0.1); }
  100% { box-shadow: inset 0 0 50px rgba(245, 166, 35, 0.25); }
}

@keyframes tg-win-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tg-win-glow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes tg-win-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes tg-claim-pulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 10px 40px rgba(37, 99, 235, 0.55); }
}

@keyframes tg-particle-burst {
  0% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(var(--px, 0), var(--py, -60px)); }
}

@keyframes tg-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes tg-drop-in {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.landing-telegram .tg-glow-orb,
  html.landing-telegram .tg-spark,
  html.landing-telegram .tg-case-box--idle,
  html.landing-telegram .tg-accent,
  html.landing-telegram .tg-case-shine,
  html.landing-telegram .tg-win img,
  html.landing-telegram .tg-claim-btn,
  html.landing-telegram .tg-drop--yours-active {
    animation: none !important;
  }
  html.landing-telegram .tg-live-dot {
    animation: none !important;
  }
}

@media (min-width: 641px) {
  html.landing-telegram .tg-drops::before,
  html.landing-telegram .tg-drops::after {
    width: 52px;
  }

  html.landing-telegram .tg-drops-track {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 28px,
      #000 calc(100% - 28px),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 28px,
      #000 calc(100% - 28px),
      transparent 100%
    );
  }
}

@media (max-width: 640px) {
  html.landing-telegram .tg-case-app {
    padding-left: 14px;
    padding-right: 14px;
  }

  html.landing-telegram .tg-drops {
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  html.landing-telegram .tg-auth-section .container.svelte-12qhfyh,
  html.landing-telegram .tg-auth-section .container.svelte-vywflk {
    height: auto !important;
    min-height: auto !important;
    overflow: hidden;
  }

  html.landing-telegram .tg-auth-section .auth.auth--phone.auth--regular.svelte-vywflk,
  html.landing-telegram .tg-auth-section .auth.auth--regular.svelte-vywflk {
    width: 100%;
    max-width: none;
    min-height: auto;
    height: auto !important;
    border-radius: 18px;
    border: 1px solid var(--tg-border);
    box-shadow: 0 20px 50px rgba(26, 79, 122, 0.12);
  }

  html.landing-telegram .auth--regular.svelte-vywflk .form.svelte-vywflk {
    padding: 22px 18px 6px;
  }

  html.landing-telegram .tg-roulette-wrap {
    height: 140px;
  }

  html.landing-telegram .tg-reel-item {
    flex: 0 0 112px;
    height: 112px;
  }
}

/* Prize icons */
html.landing-telegram .tg-prize-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  min-height: 40px;
}

html.landing-telegram .tg-prize-icon--lg {
  min-width: 88px;
  min-height: 88px;
  transform: scale(1.15);
}

html.landing-telegram .tg-prize-icon--nothing {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px dashed rgba(100, 116, 139, 0.45);
  color: #94a3b8;
  font-size: 22px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  box-sizing: border-box;
}

html.landing-telegram .tg-prize-icon--stars {
  color: var(--tg-navy);
}

html.landing-telegram .tg-prize-icon__glyph {
  font-size: 22px;
  line-height: 1;
}

html.landing-telegram .tg-prize-icon__amt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html.landing-telegram .tg-prize-icon--lg .tg-prize-icon__glyph {
  font-size: 36px;
}

html.landing-telegram .tg-prize-icon--lg .tg-prize-icon__amt {
  font-size: 15px;
}

html.landing-telegram .tg-prize-icon--premium {
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #7dd3fc 0%, #38bdf8 42%, #229ed9 100%);
  color: #fff;
  box-shadow:
    0 6px 16px rgba(34, 158, 217, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
  padding: 0;
  justify-content: center;
}

html.landing-telegram .tg-prize-icon__gem {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(15, 41, 66, 0.15));
}

html.landing-telegram .tg-prize-icon__prem {
  display: none;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 68px;
  text-align: center;
  line-height: 1.15;
  margin-top: 4px;
}

html.landing-telegram .tg-prize-icon--lg.tg-prize-icon--premium {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  padding: 10px 8px;
  justify-content: center;
}

html.landing-telegram .tg-prize-icon--lg .tg-prize-icon__gem {
  font-size: 34px;
}

html.landing-telegram .tg-prize-icon--lg .tg-prize-icon__prem {
  display: block;
  font-size: 11px;
  margin-top: 6px;
}

html.landing-telegram .tg-reel-item {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(42, 171, 238, 0.12);
}

html.landing-telegram .tg-reel-item__icon-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 10px 8px 6px;
  min-height: 72px;
}

html.landing-telegram .tg-reel-item__meta {
  padding: 6px 8px;
  font-size: 10px;
  text-align: center;
  background: rgba(42, 171, 238, 0.06);
}

html.landing-telegram .tg-win {
  background: var(--tg-panel);
  border: 1px solid var(--tg-border);
  box-shadow: 0 24px 60px rgba(26, 79, 122, 0.12);
}

html.landing-telegram .tg-win--loss {
  border-color: rgba(100, 116, 139, 0.25);
  background: rgba(255, 255, 255, 0.98);
}

html.landing-telegram .tg-auth-section .auth-step .input.input--secondary.input--neutral.svelte-14rzpox {
  background: rgba(42, 171, 238, 0.06);
  border-color: var(--tg-border);
}

html.landing-telegram .tg-auth-section .auth-step .country.svelte-1cug6p,
html.landing-telegram .tg-auth-section .auth-step input.field.svelte-14rzpox {
  color: var(--tg-text);
}

html.landing-telegram .tg-auth-section #code-inputs .digit {
  background: rgba(42, 171, 238, 0.06);
  border-color: var(--tg-border);
  color: var(--tg-text);
}

html.landing-telegram .tg-auth-section .auth-step .explainer.svelte-vywflk .subheader {
  color: var(--tg-text);
}

html.landing-telegram .tg-auth-section .auth-step .explainer.svelte-vywflk .detail,
html.landing-telegram .tg-auth-section .auth-step .field.svelte-vywflk .hint {
  color: var(--tg-muted);
}

@keyframes tg-yours-drop {
  0% {
    box-shadow:
      0 0 0 1px rgba(42, 171, 238, 0.2),
      0 0 16px rgba(42, 171, 238, 0.15);
    transform: scale(1);
  }
  100% {
    box-shadow:
      0 0 0 2px rgba(42, 171, 238, 0.45),
      0 0 28px rgba(42, 171, 238, 0.3);
    transform: scale(1.04);
  }
}
