*,
*::before,
*::after {
  letter-spacing: 0;
}

body {
  display: block !important;
  text-rendering: optimizeLegibility;
}

.snowflake-layer {
  display: none !important;
}

.brand-particle-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.brand-particle-layer img {
  position: absolute;
  top: -7rem;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  object-fit: contain;
  opacity: 0.2;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
  animation: brand-particle-fall var(--duration) linear var(--delay) infinite;
  will-change: transform;
}

.site-background {
  background-image:
    linear-gradient(180deg, rgba(6, 18, 46, 0.08), rgba(6, 18, 46, 0.18)),
    url("../a/background1.webp") !important;
  transition: opacity 0.18s ease;
}

.reward-mode-discord .site-background {
  background-image:
    linear-gradient(180deg, rgba(6, 18, 46, 0.08), rgba(6, 18, 46, 0.18)),
    url("../a/background1.webp") !important;
}

.reward-mode-roblox .site-background {
  background-image:
    linear-gradient(180deg, rgba(8, 12, 26, 0.12), rgba(8, 12, 26, 0.24)),
    url("../a/bg.webp") !important;
}

.brand-particle-layer img:nth-child(3n) {
  opacity: 0.13;
}

.brand-particle-layer img:nth-child(4n) {
  opacity: 0.26;
}

.username-input-active .brand-particle-layer img {
  animation-play-state: paused;
}

@keyframes brand-particle-fall {
  from {
    transform: translate3d(-50%, -12vh, 0) rotate(0);
  }

  to {
    transform: translate3d(calc(-50% + var(--drift)), 122vh, 0) rotate(var(--rotation));
  }
}

.claim-step--transitioning {
  opacity: 1 !important;
  transition: none !important;
}

body > iframe#test_iframe {
  visibility: hidden !important;
}

.lang-root {
  left: 1rem !important;
  right: auto !important;
  bottom: 1rem;
}

.adblock-root {
  bottom: 4.75rem;
}

.lang-widget--custom {
  width: 11.5rem;
  max-width: calc(100vw - 2rem);
  border-radius: 0.875rem;
  overflow: hidden;
}

.lang-trigger--custom {
  cursor: pointer;
  min-height: 2.75rem;
}

.lang-flag-img {
  width: 1.35rem;
  height: 1rem;
  flex: 0 0 auto;
  border-radius: 0.25rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.lang-short {
  margin-left: auto;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.lang-panel--custom {
  display: grid !important;
  gap: 0.125rem;
  padding: 0 var(--space-1) 0;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  border-top: 1px solid transparent;
  transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur-fast), padding var(--dur-fast);
}

.lang-widget--open .lang-panel--custom {
  max-height: 18rem;
  opacity: 1;
  pointer-events: auto;
  padding: var(--space-1);
  border-top-color: var(--color-border-soft);
}

.lang-item--custom {
  min-height: 2.25rem;
  border-radius: 0.625rem;
  cursor: pointer;
}

.lang-item--selected {
  background: var(--color-primary-soft);
  color: var(--color-text-strong);
}

.lang-item--selected .lang-item-name {
  color: var(--color-text-strong);
}

.claim-offers-list--target {
  display: block;
  min-height: clamp(25rem, 60vh, 32rem);
}

.claim-offers-list--target .claim-offer,
.claim-offers-list--target .claim-offer-placeholder,
.claim-offers-list--target .claim-info-tooltip {
  display: none !important;
}

.og-locker-slot {
  width: 100%;
  min-height: inherit;
  border: 1px solid rgba(51, 95, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 15%, rgba(34, 197, 94, 0.16), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(51, 95, 255, 0.12), transparent 34%),
    var(--color-surface-1);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}

.og-locker-slot iframe#test_iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  z-index: 2 !important;
  touch-action: pan-y !important;
}

.og-locker-slot > div:not(.og-locker-status) {
  max-width: 100%;
}

.og-locker-status {
  padding: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: center;
}

.og-locker-status--loaded {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.og-locker-slot--ready .og-locker-status {
  display: none;
}

.og-locker-status--error {
  width: min(100%, 20rem);
  color: var(--color-danger);
  opacity: 1;
  position: static;
}

.roblox-profile-preview {
  min-height: 0;
  margin-top: var(--space-2);
  padding: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
}

.roblox-profile-preview:empty,
.roblox-profile-preview--empty {
  display: none;
}

.roblox-profile-preview--loading {
  border-color: var(--color-border-soft);
  background: var(--color-surface-4);
}

.roblox-profile-preview--error {
  border-color: rgba(239, 68, 68, 0.24);
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.roblox-profile-preview--ready {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.roblox-profile-preview-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--color-surface-2);
  border: 2px solid var(--color-on-dark);
}

.roblox-profile-preview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
}

.roblox-profile-preview-copy strong,
.roblox-profile-preview-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roblox-profile-preview-copy strong {
  color: var(--color-text-strong);
  font-size: var(--text-sm);
}

.roblox-profile-preview-copy span {
  color: var(--color-text-subtle);
}

.roblox-profile-preview-link {
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.claim-reward-card .claim-reward-icon {
  padding: 0.55rem;
  border-radius: 1rem;
  background: var(--color-on-dark);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  object-fit: contain;
}

.claim-reward-card[data-reward-visual="discord"] .claim-reward-icon,
.claim-reward-card .claim-reward-icon[src$="nitro.webp"],
.claim-reward-card .claim-reward-icon[src$="nitro_anim.webp"] {
  background: rgba(88, 101, 242, 0.1);
}

.claim-reward-card[data-reward-visual="robux"] .claim-reward-icon,
.claim-reward-card .claim-reward-icon[src$="robux.webp"] {
  background: rgba(255, 195, 66, 0.16);
}

.claim-character {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.2));
}

.claim-character-mod {
  background: transparent;
}

.claim-character-haz3mn,
.claim-character-builder {
  background: transparent;
}

.reward-mode-discord .roblox-profile-preview {
  display: none !important;
}

.claim-username-row:not([data-username-confirmed="true"]) .claim-username-verified {
  opacity: 0 !important;
  top: 120% !important;
  transform: rotate(180deg) !important;
}

.claim-username-row[data-username-confirmed="true"] .claim-username-verified {
  display: block !important;
  opacity: 1 !important;
  top: 50% !important;
  transform: translateY(-50%) rotate(0) !important;
}

.claim-title,
.help-question,
.claim-reward-name,
.claim-reward-desc,
.chat-message,
.chat-claim-message {
  overflow-wrap: anywhere;
}

@media (max-width: 700px), (pointer: coarse) {
  html {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    touch-action: pan-y;
  }

  body {
    height: auto !important;
    min-height: 100svh;
    overflow-y: visible !important;
    touch-action: pan-y;
  }

  #root,
  .app-shell,
  .app-stage,
  .app-modal-slot,
  .claim-modal,
  .claim-stage,
  .claim-step,
  .claim-offers-screen,
  .claim-offers-list--target,
  .og-locker-slot {
    touch-action: pan-y;
  }

  .input-field {
    font-size: 16px;
    transition: border-color 0.12s ease, background-color 0.12s ease;
  }

  .claim-glow-overlay:not(.claim-glow-overlay--static) {
    display: none;
    animation: none !important;
    mix-blend-mode: normal;
  }

  .claim-character {
    filter: none;
  }

  .brand-particle-layer img {
    width: min(var(--size), 46px);
    height: min(var(--size), 46px);
    opacity: 0.11;
    filter: none;
    will-change: auto;
  }

  .brand-particle-layer img:nth-child(n + 11) {
    display: none;
  }

  .username-input-active .brand-particle-layer {
    opacity: 0.35;
  }
}

@media (max-width: 480px) {
  html {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  body {
    height: auto !important;
    min-height: 100svh;
    overflow-y: visible !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    text-rendering: auto;
  }

  #root,
  .app-shell,
  .app-stage,
  .app-modal-slot,
  .claim-modal,
  .claim-stage,
  .claim-step,
  .claim-offers-screen,
  .claim-offers-list--target,
  .og-locker-slot {
    touch-action: pan-y;
  }

  .app-shell,
  .error-screen {
    min-height: 100svh;
    padding: 6.25rem 0.75rem 5.5rem;
  }

  .app-stage,
  .app-modal-slot,
  .app-modal-slot--center {
    width: 100%;
    max-width: 100%;
  }

  .app-stage {
    gap: 0.875rem;
  }

  .app-modal-slot--help,
  .app-modal-slot--chat {
    content-visibility: auto;
    contain-intrinsic-size: auto 28rem;
  }

  .claim-modal {
    width: 100%;
    max-width: 100%;
    padding: 1.125rem;
    min-height: 0;
    will-change: auto;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  }

  .claim-modal,
  .help-modal,
  .chat-modal {
    border-radius: 0.875rem;
  }

  .claim-title {
    flex-wrap: wrap;
    line-height: 1.15;
  }

  .claim-stage {
    min-height: 17.75rem;
  }

  .claim-reward-grid[data-count="1"],
  .claim-reward-grid[data-count="2"],
  .claim-reward-grid[data-count="3"],
  .claim-reward-grid[data-count="4"],
  .claim-reward-grid[data-count="5"],
  .claim-reward-grid[data-count="6"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    justify-content: stretch;
    width: 100%;
  }

  .claim-reward-card {
    min-width: 0;
    padding: 0.75rem 0.5rem;
    transition: background-color 0.12s ease, transform 0.12s ease;
  }

  .claim-reward-icon {
    max-width: 4.875rem;
  }

  .claim-character {
    width: 7.5rem;
    height: 7.5rem;
    filter: none;
  }

  .claim-character-haz3mn,
  .claim-character-builder {
    top: -6.75rem;
  }

  .claim-character-mod {
    top: -6.25rem;
  }

  .claim-countdown {
    left: -0.25rem;
  }

  .claim-username-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .input-field {
    min-height: 2.875rem;
  }

  .claim-username-verified {
    transition: opacity 0.12s ease;
  }

  .claim-next-btn {
    width: 5.25rem;
    min-height: 2.75rem;
    transition: transform 0.12s ease, opacity 0.12s ease;
  }

  .roblox-profile-preview--ready {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .roblox-profile-preview-img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .roblox-profile-preview-link {
    grid-column: 2;
  }

  .claim-offers-list--target {
    min-height: min(34rem, calc(100svh - 6rem));
  }

  .og-locker-slot {
    min-height: inherit;
  }

  .help-list {
    height: auto;
    max-height: none;
    padding-bottom: 4.5rem;
  }

  .lang-root {
    left: 0.75rem !important;
    right: auto !important;
    bottom: 0.75rem;
  }

  .adblock-root {
    left: 0.75rem;
    bottom: 4.25rem;
  }

  .lang-widget--custom {
    width: 10.75rem;
  }

}

@media (max-width: 380px) {
  .claim-reward-grid[data-count="1"],
  .claim-reward-grid[data-count="2"],
  .claim-reward-grid[data-count="3"],
  .claim-reward-grid[data-count="4"],
  .claim-reward-grid[data-count="5"],
  .claim-reward-grid[data-count="6"] {
    gap: 0.625rem;
  }

  .claim-modal {
    padding: 1rem;
  }

  .claim-title {
    font-size: 1.25rem;
  }

  .claim-next-btn {
    width: 4.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
