/* =========================================================
   INVITEGAME 2.0
   FULLSCREEN GAME PLATFORM SHELL
   ========================================================= */

:root {
  --ig-safe-top: max(
    env(safe-area-inset-top, 0px),
    var(--tg-safe-area-inset-top, 0px)
  );

  --ig-safe-right: max(
    env(safe-area-inset-right, 0px),
    var(--tg-safe-area-inset-right, 0px)
  );

  --ig-safe-bottom: max(
    env(safe-area-inset-bottom, 0px),
    var(--tg-safe-area-inset-bottom, 0px)
  );

  --ig-safe-left: max(
    env(safe-area-inset-left, 0px),
    var(--tg-safe-area-inset-left, 0px)
  );

  /*
   * Telegram owns the very top controls.
   * Application content starts immediately below them.
   */
  --ig-telegram-controls-top: 54px;

  --ig-content-safe-top:
    calc(
      var(--ig-safe-top)
      + var(--ig-telegram-controls-top)
    );

  --ig-content-safe-bottom:
    var(--ig-safe-bottom);

  /*
   * Space reserved for compact navigation.
   */
  --ig-nav-clearance: 82px;

  --ig-network-status-top:
    calc(
      var(--ig-content-safe-top)
      + 6px
    );

  --ig-bottom-nav-bottom:
    max(
      6px,
      calc(var(--ig-safe-bottom) + 4px)
    );
}


/* =========================================================
   ROOT APPLICATION
   ========================================================= */

.app {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 100dvh;

  display: flex;
  justify-content: center;

  padding:
    var(--ig-content-safe-top)
    var(--ig-safe-right)
    calc(
      var(--ig-nav-clearance)
      + var(--ig-safe-bottom)
    )
    var(--ig-safe-left);

  overflow-x: clip;

  color: var(--ig-text);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(26,159,255,.10),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #0d151e 0%,
      #0b1118 42%,
      #080d12 100%
    );
}


/*
 * Fullscreen pages own the entire available viewport.
 * Case opening, games etc. don't reserve navigation space.
 */

.app--fullscreen {
  --ig-nav-clearance: 0px;

  padding-bottom:
    var(--ig-safe-bottom);
}


/* =========================================================
   CONTENT FRAME
   ========================================================= */

.app-frame {
  position: relative;

  width: min(
    100%,
    var(--ig-page-max-width)
  );

  min-width: 0;
}


/* =========================================================
   SUBTLE BACKGROUND LIGHT
   ========================================================= */

.app::before {
  content: "";

  position: fixed;

  width: 380px;
  height: 380px;

  top: -220px;
  right: -190px;

  z-index: -1;

  border-radius: 999px;

  background:
    rgba(26,159,255,.12);

  filter: blur(70px);

  pointer-events: none;
}


/* =========================================================
   LOADING SCREEN
   ========================================================= */

.loading-screen {
  width: min(100%, 430px);

  min-height:
    calc(
      100dvh
      - var(--ig-content-safe-top)
      - var(--ig-safe-bottom)
    );

  display: grid;
  place-content: center;
  justify-items: center;

  gap: 10px;

  padding: 24px;

  text-align: center;
}


.loader {
  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  font-size: 24px;
  font-weight: 900;

  letter-spacing: -.05em;

  color: #fff;

  background:
    linear-gradient(
      145deg,
      #1a9fff,
      #1479b8
    );

  box-shadow:
    0 18px 45px rgba(0,0,0,.35),
    0 0 30px rgba(26,159,255,.18);

  animation:
    igLoader 1.6s ease-in-out infinite;
}


.loading-screen h2 {
  margin: 14px 0 0;

  font-size: 26px;
}


.loading-screen p {
  margin: 0;

  color: var(--ig-muted);
}


.loading-line {
  width: 180px;
  height: 4px;

  margin-top: 12px;

  overflow: hidden;

  border-radius: 999px;

  background: #172431;
}


.loading-line i {
  display: block;

  width: 45%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #1a9fff,
      #66c0f4
    );

  animation:
    loadLine 1.2s ease-in-out infinite;
}


@keyframes igLoader {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}


@keyframes loadLine {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(330%);
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 430px) {
  :root {
    --ig-telegram-controls-top: 54px;
    --ig-nav-clearance: 78px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .loader,
  .loading-line i {
    animation: none;
  }
}


@supports not (height: 100dvh) {
  .app {
    min-height: 100svh;
  }

  .loading-screen {
    min-height: 100svh;
  }
}
:root {
  /* =====================================================
     INVITEGAME V3 — MIDNIGHT ARCADE DESIGN SYSTEM
     Runtime-ready InviteGame identity
     ===================================================== */

  --ig-color-bg: #0b1118;
  --ig-color-bg-elevated: #111a24;

  --ig-color-surface: #16212d;
  --ig-color-surface-hover: #1b2a38;
  --ig-color-surface-active: #213445;

  --ig-color-primary: #1a9fff;
  --ig-color-primary-hover: #45b6ff;
  --ig-color-primary-active: #1484d6;

  --ig-color-secondary: #66c0f4;

  --ig-color-text: #f3f6f8;
  --ig-color-text-muted: #8f9ba7;
  --ig-color-text-soft: #667787;

  --ig-color-success: #75b022;
  --ig-color-warning: #e5a833;
  --ig-color-danger: #e35d6a;
  --ig-color-info: #66c0f4;

  --ig-color-border: rgba(255,255,255,.07);
  --ig-color-border-strong: rgba(102,192,244,.18);

  --ig-radius-xs: 6px;
  --ig-radius-sm: 8px;
  --ig-radius-md: 10px;
  --ig-radius-lg: 14px;
  --ig-radius-xl: 18px;
  --ig-radius-round: 999px;

  --ig-space-1: 4px;
  --ig-space-2: 8px;
  --ig-space-3: 12px;
  --ig-space-4: 16px;
  --ig-space-5: 20px;
  --ig-space-6: 24px;
  --ig-space-8: 32px;

  --ig-shadow-card:
    0 10px 28px rgba(0,0,0,.28);

  --ig-shadow-modal:
    0 24px 80px rgba(0,0,0,.58);

  --ig-duration-fast: 140ms;
  --ig-duration-normal: 220ms;

  --ig-easing:
    cubic-bezier(.2,.8,.2,1);

  --ig-page-max-width: 760px;

  /* New compact navigation */
  --ig-bottom-nav-height: 64px;

  /* Steam-like platform colors */
  --ig-steam-bg: #0b1118;
  --ig-steam-panel: #111a24;
  --ig-steam-panel-2: #16212d;
  --ig-steam-blue: #1a9fff;
  --ig-steam-blue-light: #66c0f4;

  /* Legacy compatibility */
  --ig-bg: var(--ig-color-bg);
  --ig-bg-elevated: var(--ig-color-bg-elevated);

  --ig-surface: var(--ig-color-surface);
  --ig-surface-2: var(--ig-color-surface);
  --ig-surface-strong: var(--ig-color-bg-elevated);

  --ig-border: var(--ig-color-border);
  --ig-border-strong: var(--ig-color-border-strong);

  --ig-text: var(--ig-color-text);
  --ig-text-muted: var(--ig-color-text-muted);
  --ig-text-soft: var(--ig-color-text-soft);
  --ig-muted: var(--ig-color-text-muted);

  --ig-primary: var(--ig-color-primary);
  --ig-secondary: var(--ig-color-secondary);

  --ig-success: var(--ig-color-success);
  --ig-danger: var(--ig-color-danger);

  --ig-radius-2xl: 22px;
  --ig-radius-pill: var(--ig-radius-round);

  --ig-gradient-primary:
    linear-gradient(
      135deg,
      #1a9fff,
      #66c0f4
    );

  --ig-gradient-surface:
    linear-gradient(
      145deg,
      #16212d,
      #0f1821
    );

  --ig-gradient-premium:
    linear-gradient(
      135deg,
      #f4d35e,
      #e5a833
    );

  --ig-shadow: var(--ig-shadow-modal);

  --ig-shadow-accent:
    0 10px 28px rgba(26,159,255,.22);

  --ig-shadow-popup:
    var(--ig-shadow-modal);

  --ig-telegram-top-clearance:
    var(--ig-telegram-controls-top, 54px);

  --ig-ease:
    var(--ig-easing);
}

/* =========================================================
   INVITEGAME V3
   BATTLE PASS DEFAULT ACCENT
   ========================================================= */

:root {
  --battlepass-accent: #1a9fff;
}

.ig-page {
  width: 100%;
  max-width: var(--ig-page-max-width);
  min-height: 0;
  margin: 0 auto;
  padding: 0 var(--ig-space-4) var(--ig-space-4);
  color: var(--ig-color-text);
}

.ig-stack {
  display: grid;
  gap: var(--ig-space-3);
}

.ig-row {
  display: flex;
  align-items: center;
  gap: var(--ig-space-3);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ig-space-3);
}

.ig-muted {
  color: var(--ig-color-text-muted);
}

.ig-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .ig-page {
    padding-left: var(--ig-space-3);
    padding-right: var(--ig-space-3);
  }

  .ig-grid {
    grid-template-columns: 1fr;
  }
}
.ig-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ig-space-2);
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--ig-radius-sm);
  color: var(--ig-color-text);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform var(--ig-duration-fast) var(--ig-easing),
    background var(--ig-duration-fast) var(--ig-easing),
    border-color var(--ig-duration-fast) var(--ig-easing),
    opacity var(--ig-duration-fast) var(--ig-easing);
}

.ig-button:active:not(:disabled) {
  transform: scale(0.98);
}

.ig-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ig-button--primary {
  background: linear-gradient(
    135deg,
    var(--ig-color-primary),
    var(--ig-color-primary-active)
  );
  box-shadow: 0 8px 24px rgba(117, 89, 255, 0.24);
}

.ig-button--secondary {
  border-color: rgba(117, 89, 255, 0.34);
  background: rgba(117, 89, 255, 0.13);
}

.ig-button--ghost {
  border-color: var(--ig-color-border);
  background: rgba(255, 255, 255, 0.04);
}

.ig-button--danger {
  border-color: rgba(241, 111, 122, 0.3);
  background: rgba(241, 111, 122, 0.12);
}

.ig-button--small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 11px;
}

.ig-button--medium {
  padding: 10px 15px;
}

.ig-button--large {
  min-height: 52px;
  padding: 13px 19px;
  font-size: 14px;
}

.ig-button--full {
  width: 100%;
}

.ig-button__spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ig-spin 700ms linear infinite;
}

.ig-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ig-color-border);
  border-radius: var(--ig-radius-sm);
  color: var(--ig-color-text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  cursor: pointer;
}

.ig-icon-button--primary {
  border-color: rgba(117, 89, 255, 0.35);
  background: rgba(117, 89, 255, 0.15);
}

.ig-card {
  border: 1px solid var(--ig-color-border);
  border-radius: var(--ig-radius-lg);
  background:
    linear-gradient(
      145deg,
      rgba(20, 27, 52, 0.96),
      rgba(9, 13, 28, 0.98)
    );
  box-shadow: var(--ig-shadow-card);
}

.ig-card--default {
  padding: var(--ig-space-4);
}

.ig-card--compact {
  padding: var(--ig-space-3);
  border-radius: var(--ig-radius-md);
}

.ig-card--flat {
  padding: var(--ig-space-4);
  box-shadow: none;
}

.ig-card--interactive {
  cursor: pointer;
  transition:
    transform var(--ig-duration-normal) var(--ig-easing),
    border-color var(--ig-duration-normal) var(--ig-easing);
}

.ig-card--interactive:active {
  transform: scale(0.985);
}

.ig-surface {
  border: 1px solid var(--ig-color-border);
}

.ig-surface--1 {
  border-radius: var(--ig-radius-md);
  background: var(--ig-color-surface);
}

.ig-surface--2 {
  border-radius: var(--ig-radius-lg);
  background: var(--ig-color-bg-elevated);
}

.ig-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 8px;
  border-radius: var(--ig-radius-round);
  color: var(--ig-color-text);
  background: rgba(255, 255, 255, 0.07);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ig-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ig-badge--primary {
  color: #dcd6ff;
  background: rgba(117, 89, 255, 0.18);
}

.ig-badge--success {
  color: #b9f8df;
  background: rgba(45, 210, 151, 0.14);
}

.ig-badge--warning {
  color: #ffe0a3;
  background: rgba(247, 185, 85, 0.14);
}

.ig-badge--danger {
  color: #ffc2c8;
  background: rgba(241, 111, 122, 0.14);
}

.ig-progress {
  display: grid;
  gap: 7px;
}

.ig-progress__header {
  display: flex;
  justify-content: space-between;
  gap: var(--ig-space-2);
  color: var(--ig-color-text-muted);
  font-size: 10px;
}

.ig-progress__header strong {
  color: var(--ig-color-text);
}

.ig-progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: var(--ig-radius-round);
  background: rgba(255, 255, 255, 0.07);
}

.ig-progress__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--ig-color-primary),
    var(--ig-color-secondary)
  );
  transition: width var(--ig-duration-normal) var(--ig-easing);
}

@keyframes ig-spin {
  to {
    transform: rotate(360deg);
  }
}
.ig-page-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--ig-space-3);
  align-items: center;
  margin-bottom: var(--ig-space-4);
}

.ig-page-header__content span {
  color: #a99cff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.ig-page-header__content h1 {
  margin: 4px 0;
  color: var(--ig-color-text);
  font-size: clamp(23px, 7vw, 34px);
  line-height: 1;
}

.ig-page-header__content p {
  margin: 0;
  color: var(--ig-color-text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ig-state {
  display: grid;
  justify-items: center;
  gap: var(--ig-space-2);
  min-height: 240px;
  padding: var(--ig-space-6);
  text-align: center;
}

.ig-state__icon {
  font-size: 42px;
}

.ig-state h2 {
  margin: 4px 0 0;
}

.ig-state p {
  max-width: 380px;
  margin: 0 0 var(--ig-space-2);
  color: var(--ig-color-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.ig-state--error {
  border-color: rgba(241, 111, 122, 0.22);
}
.home-next-section {
  display: grid;
  gap: var(--ig-space-3);
  margin-top: var(--ig-space-6);
}

.home-next-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ig-space-3);
}

.home-next-section__header span {
  color: #a99cff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.home-next-section__header h2 {
  margin: 5px 0 0;
  font-size: 20px;
}


.home-next-player {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(
      145deg,
      rgba(117, 89, 255, .13),
      rgba(16, 22, 42, .94) 46%,
      rgba(45, 212, 191, .07)
    );
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

.home-next-player__glow {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(117, 89, 255, .28),
      rgba(117, 89, 255, 0) 70%
    );
  pointer-events: none;
}

.home-next-player__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-next-player__identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.home-next-player__avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.home-next-player__avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      var(--ig-color-primary),
      var(--ig-color-secondary)
    );
  box-shadow:
    0 8px 24px rgba(117, 89, 255, .25);
  font-size: 22px;
  font-weight: 900;
}

.home-next-player__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-next-player__online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ig-color-surface);
  border-radius: 50%;
  background: var(--ig-color-success);
  box-shadow:
    0 0 14px rgba(52, 211, 153, .7);
}

.home-next-player__identity-text {
  min-width: 0;
}

.home-next-player__identity-text small,
.home-next-player__identity-text strong,
.home-next-player__identity-text em {
  display: block;
}

.home-next-player__identity-text small {
  color: var(--ig-color-text-soft);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.home-next-player__identity-text strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-next-player__identity-text em {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--ig-color-success);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.home-next-player__identity-text em span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 0 8px currentColor;
}

.home-next-player__bell {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(10px);
}

.home-next-player__bell b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--ig-color-bg);
  border-radius: 999px;
  background: var(--ig-color-danger);
  font-size: 8px;
}

.home-next-player__level {
  position: relative;
  z-index: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 15px;
  background: rgba(5, 8, 22, .38);
}

.home-next-player__level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.home-next-player__level-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-next-player__level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(117, 89, 255, .28);
  border-radius: 999px;
  color: #c8beff;
  background: rgba(117, 89, 255, .13);
  font-size: 9px;
  font-weight: 900;
}

.home-next-player__level-title {
  color: var(--ig-color-text-soft);
  font-size: 9px;
}

.home-next-player__level-head > strong {
  flex: 0 0 auto;
  color: var(--ig-color-text-soft);
  font-size: 9px;
}

.home-next-player__progress .ig-progress__header {
  display: none;
}

.home-next-player__progress .ig-progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}

.home-next-player__progress .ig-progress__track i {
  box-shadow:
    0 0 14px rgba(117, 89, 255, .7);
}

.home-next-player__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-next-player__stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, .035);
  text-align: left;
}

button.home-next-player__stat {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.home-next-player__stat--friends {
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.home-next-player__stat--friends:active {
  transform: scale(.97);
}

.home-next-player__stat-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  font-size: 16px;
}

.home-next-player__stat small,
.home-next-player__stat strong {
  display: block;
}

.home-next-player__stat small {
  color: var(--ig-color-text-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.home-next-player__stat strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-next-player__stat--coin {
  background:
    linear-gradient(
      145deg,
      rgba(251, 191, 36, .08),
      rgba(255, 255, 255, .025)
    );
}

.home-next-player__stat--ticket {
  background:
    linear-gradient(
      145deg,
      rgba(45, 212, 191, .08),
      rgba(255, 255, 255, .025)
    );
}

.home-next-player__stat--friends {
  background:
    linear-gradient(
      145deg,
      rgba(117, 89, 255, .1),
      rgba(255, 255, 255, .025)
    );
}

.home-next-player__stat-arrow {
  position: absolute;
  top: 50%;
  right: 7px;
  color: var(--ig-color-text-soft);
  font-size: 16px;
  transform: translateY(-50%);
}

@media (max-width: 390px) {
  .home-next-player {
    padding: 15px;
  }

  .home-next-player__avatar {
    width: 52px;
    height: 52px;
  }

  .home-next-player__identity-text strong {
    font-size: 16px;
  }

  .home-next-player__stats {
    gap: 6px;
  }

  .home-next-player__stat {
    display: grid;
    justify-items: start;
    gap: 5px;
    min-height: 74px;
    padding: 8px;
  }

  .home-next-player__stat-icon {
    width: 27px;
    height: 27px;
    font-size: 14px;
  }

  .home-next-player__stat strong {
    font-size: 12px;
  }
}

.home-next-hero {
  position: relative;
  min-height: 210px;
  margin-top: var(--ig-space-3);
  overflow: hidden;
  border-radius: var(--ig-radius-xl);
}

.home-next-hero--event {
  display: flex;
  align-items: flex-end;
  padding: var(--ig-space-5);
  border: 1px solid
    color-mix(
      in srgb,
      var(--home-hero-accent) 36%,
      transparent
    );
  background:
    radial-gradient(
      circle at 85% 25%,
      color-mix(
        in srgb,
        var(--home-hero-accent) 30%,
        transparent
      ),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #1d1447,
      #0a0f21
    );
  background-position: center;
  background-size: cover;
}

.home-next-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--ig-space-3);
  width: min(100%, 520px);
}

.home-next-hero h1 {
  margin: 0;
  font-size: clamp(27px, 8vw, 42px);
  line-height: 0.98;
}

.home-next-hero p {
  max-width: 430px;
  margin: 0;
  color: var(--ig-color-text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.home-next-hero__footer {
  display: flex;
  align-items: center;
  gap: var(--ig-space-3);
}

.home-next-hero__footer > span {
  padding: 9px 11px;
  border-radius: var(--ig-radius-sm);
  color: #dcd6ff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
}

.home-next-hero--battlepass {
  padding: var(--ig-space-5);
  border-color: rgba(247, 185, 85, 0.22);
  background:
    radial-gradient(
      circle at 92% 5%,
      rgba(247, 185, 85, 0.18),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      #211809,
      #0b1020 70%
    );
}

.home-next-hero__battlepass-head {
  display: flex;
  justify-content: space-between;
  gap: var(--ig-space-4);
}

.home-next-hero__battlepass-head > strong {
  flex: 0 0 auto;
  color: #ffd77a;
}

.home-next-daily {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ig-space-3);
  margin-top: var(--ig-space-3);
}

.home-next-daily--ready {
  border-color: rgba(45, 210, 151, 0.2);
  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(45, 210, 151, 0.13),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(15, 38, 37, 0.96),
      rgba(9, 14, 29, 0.98)
    );
}

.home-next-daily__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--ig-radius-md);
  background: rgba(255, 255, 255, 0.06);
  font-size: 25px;
}

.home-next-daily__content h2 {
  margin: 7px 0 3px;
  font-size: 15px;
}

.home-next-daily__content p {
  margin: 0;
  color: var(--ig-color-text-muted);
  font-size: 9px;
}

.home-next-daily__content p strong {
  color: var(--ig-color-text);
}

.home-next-actions {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: var(--ig-space-2);
}

.home-next-action {
  display: grid;
  min-height: 104px;
  color: inherit;
  text-align: left;
}

.home-next-action > span {
  font-size: 27px;
}

.home-next-action div {
  align-self: end;
}

.home-next-action strong,
.home-next-action small {
  display: block;
}

.home-next-action strong {
  font-size: 12px;
}

.home-next-action small {
  margin-top: 4px;
  color: var(--ig-color-text-soft);
  font-size: 9px;
}

@media (max-width: 390px) {
  .home-next-daily {
    grid-template-columns:
      auto minmax(0, 1fr);
  }

  .home-next-daily > .ig-button {
    grid-column: 1 / -1;
    width: 100%;
  }

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

.home-next-custom-banner {
  display: flex;
  align-items: flex-end;
  min-height: 180px;
  margin-top: var(--ig-space-4);
  padding: var(--ig-space-5);
  overflow: hidden;
  border: 1px solid var(--ig-color-border);
  border-radius: var(--ig-radius-xl);
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(117, 89, 255, 0.22),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      #171c38,
      #090e1d
    );
  background-position: center;
  background-size: cover;
  box-shadow: var(--ig-shadow-card);
}

.home-next-custom-banner > div {
  display: grid;
  gap: var(--ig-space-3);
  width: min(100%, 480px);
}

.home-next-custom-banner h2 {
  margin: 0;
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1;
}

.home-next-custom-banner p {
  margin: 0;
  color: var(--ig-color-text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.home-next-quests {
  display: grid;
  gap: var(--ig-space-2);
}

.home-next-quest {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: var(--ig-space-3);
  width: 100%;
  color: inherit;
  text-align: left;
}

.home-next-quest__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--ig-radius-md);
  background: rgba(117, 89, 255, 0.14);
  font-size: 21px;
}

.home-next-quest__content {
  min-width: 0;
}

.home-next-quest__head {
  display: flex;
  justify-content: space-between;
  gap: var(--ig-space-2);
}

.home-next-quest__head strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-next-quest__head em {
  color: #bcb2ff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.home-next-quest__content > small {
  display: block;
  margin: 5px 0 7px;
  color: var(--ig-color-text-soft);
  font-size: 9px;
}

.home-next-news {
  display: grid;
  gap: var(--ig-space-3);
}

.home-next-news__card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--ig-space-3);
  overflow: hidden;
}

.home-next-news__card img {
  width: 120px;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  border-radius: var(--ig-radius-md);
}

.home-next-news__card h3 {
  margin: 0;
  font-size: 15px;
}

.home-next-news__card p {
  margin: 7px 0 12px;
  color: var(--ig-color-text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.home-next-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 40vw);
  gap: var(--ig-space-2);
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.home-next-scroll::-webkit-scrollbar {
  display: none;
}

.home-next-case {
  display: grid;
  min-height: 180px;
  color: inherit;
  text-align: left;
}

.home-next-case__image {
  display: grid;
  place-items: center;
  height: 110px;
  overflow: hidden;
  border-radius: var(--ig-radius-md);
  background:
    radial-gradient(
      circle,
      rgba(117, 89, 255, 0.2),
      transparent 65%
    );
}

.home-next-case__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-next-case__image span {
  font-size: 42px;
}

.home-next-case > strong {
  margin-top: 10px;
  font-size: 11px;
}

.home-next-case > small {
  margin-top: 5px;
  color: #f8cd68;
  font-size: 9px;
}

.home-next-partner {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: var(--ig-space-3);
  min-height: 80px;
  color: inherit;
  text-align: left;
}

.home-next-partner__logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: var(--ig-radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.home-next-partner__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-next-partner__logo span {
  font-size: 22px;
}

.home-next-partner strong,
.home-next-partner small {
  display: block;
}

.home-next-partner strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-next-partner small {
  margin-top: 4px;
  color: var(--ig-color-text-soft);
  font-size: 8px;
}

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

  .home-next-news__card img {
    width: 100%;
    height: 150px;
  }
}


/* Daily Random Game */

.home-next-daily-game--ready {
  border-color: rgba(247, 185, 85, 0.22);
  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(247, 185, 85, 0.14),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(40, 29, 12, 0.96),
      rgba(9, 14, 29, 0.98)
    );
}

.home-next-daily-game
.home-next-daily__icon {
  background: rgba(247, 185, 85, 0.09);
}


/* Daily game result */

.daily-game-result {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 18, .82);
  backdrop-filter: blur(10px);
}

.daily-game-result__card {
  position: relative;
  width: min(100%, 390px);
  padding: 24px;
  text-align: center;
}

.daily-game-result__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: rgba(255,255,255,.06);
  font-size: 21px;
}

.daily-game-result__icon {
  margin-bottom: 12px;
  font-size: 42px;
}

.daily-game-result__card > small {
  color: #f8cd68;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.daily-game-result__card h2 {
  margin: 8px 0 12px;
}

.daily-game-result__card p {
  margin: 12px 0 18px;
  color: var(--ig-color-text-muted);
  font-size: 11px;
}

.daily-game-result__key {
  margin: 15px 0;
  padding: 13px;
  border: 1px solid rgba(247,185,85,.2);
  border-radius: 14px;
  background: rgba(247,185,85,.07);
}

.daily-game-result__key span,
.daily-game-result__key strong {
  display: block;
}

.daily-game-result__key span {
  margin-bottom: 6px;
  color: var(--ig-color-text-muted);
  font-size: 9px;
}

.daily-game-result__key strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  letter-spacing: .05em;
}


/* ==========================================================
   IGSTARS — PLAYER CARD
   ========================================================== */

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

.home-next-player__stat--igstars {
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;

  border-color:
    rgba(255, 214, 75, .12);

  background:
    linear-gradient(
      145deg,
      rgba(255, 205, 47, .11),
      rgba(255, 255, 255, .025)
    );
}

.home-next-player__stat--igstars
.home-next-player__stat-icon {
  color: #ffe16d;

  background:
    rgba(255, 206, 55, .10);

  text-shadow:
    0 0 12px
      rgba(255, 217, 75, .48);
}

.home-next-player__stat--igstars em {
  display: block;

  margin-top: 3px;

  color: #d7b648;

  font-size: 6px;
  font-style: normal;
  font-weight: 900;

  letter-spacing: .05em;
  text-transform: uppercase;
}

.home-next-player__stat--igstars:active {
  transform: scale(.97);
}

@media (max-width: 390px) {

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

}


/* ACTIVE RAFFLE NEXT */

.home-raffle {
  margin: 18px 0 8px;
}

.home-raffle__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-raffle__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #fbbf24;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.home-raffle__head h2 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.1;
}

.home-raffle__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(248,113,113,.22);
  border-radius: 999px;
  color: #f87171;
  background: rgba(127,29,29,.14);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.home-raffle__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
  animation: homeRafflePulse 1.5s ease-in-out infinite;
}

.home-raffle__card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 175px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(251,191,36,.17);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(
      circle at 85% 12%,
      rgba(251,191,36,.20),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(34,25,10,.98),
      rgba(13,12,12,.98)
    );
  box-shadow:
    0 16px 45px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.035);
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.home-raffle__glow {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(251,191,36,.10);
  filter: blur(30px);
  pointer-events: none;
}

.home-raffle__trophy {
  position: absolute;
  top: 22px;
  right: 17px;
  font-size: 58px;
  line-height: 1;
  transform: rotate(7deg);
  filter: drop-shadow(
    0 10px 18px rgba(251,191,36,.18)
  );
}

.home-raffle__content {
  position: relative;
  z-index: 2;
  width: 72%;
}

.home-raffle__label {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.42);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.home-raffle__prize {
  display: block;
  margin-bottom: 13px;
  color: #fbbf24;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.home-raffle__content h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
}

.home-raffle__content p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-raffle__action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
}

.home-raffle__action b {
  font-size: 16px;
  transition: transform .2s ease;
}

.home-raffle__card:active {
  transform: scale(.985);
}

.home-raffle__card:active
.home-raffle__action b {
  transform: translateX(3px);
}

@keyframes homeRafflePulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

@media (max-width: 380px) {
  .home-raffle__card {
    min-height: 165px;
    padding: 16px;
  }

  .home-raffle__trophy {
    right: 12px;
    font-size: 50px;
  }

  .home-raffle__content {
    width: 76%;
  }

  .home-raffle__prize {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-raffle__live i {
    animation: none;
  }
}
.currency-icon {
  display: inline-block;
  flex: 0 0 auto;

  object-fit: contain;
  vertical-align: middle;

  pointer-events: none;
  user-select: none;

  filter:
    drop-shadow(
      0 2px 5px
      rgba(0, 0, 0, .28)
    );
}
.screen-skeleton{padding:16px 14px 110px;display:grid;gap:14px;animation:skeletonEnter .24s ease both}.skeleton{position:relative;overflow:hidden;border-radius:20px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.05)}.skeleton::after{content:"";position:absolute;inset:0;transform:translateX(-110%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.09),transparent);animation:skeletonShimmer 1.25s infinite}.skeleton--hero{height:168px}.skeleton-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.skeleton--card{height:78px;border-radius:16px}.skeleton--line{width:58%;height:22px;border-radius:999px}.skeleton--panel{height:112px}.system-state{margin:18px 14px 110px;padding:28px 22px;text-align:center;border-radius:28px;background:linear-gradient(160deg,rgba(255,91,124,.16),rgba(12,17,35,.94));border:1px solid rgba(255,116,146,.24);box-shadow:0 22px 60px rgba(0,0,0,.35)}.system-state__icon{width:54px;height:54px;margin:0 auto 14px;display:grid;place-items:center;border-radius:18px;background:rgba(255,91,124,.16);font-size:28px;font-weight:900}.system-state__eyebrow{margin:0;color:#ff8ca5;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.system-state h2{margin:7px 0 8px}.system-state p{color:rgba(235,240,255,.66);line-height:1.55}.system-state button{margin-top:8px;border:0;border-radius:16px;padding:13px 18px;font:inherit;font-weight:900;color:#08101e;background:linear-gradient(135deg,#8de7ff,#8d8bff)}.network-status{position:fixed;z-index:1200;left:12px;right:12px;top:var(--ig-network-status-top, max(10px, env(safe-area-inset-top)));padding:10px 14px;border-radius:14px;text-align:center;font-size:12px;font-weight:800;color:#fff3cf;background:rgba(120,73,12,.94);border:1px solid rgba(255,196,83,.38);backdrop-filter:blur(18px);animation:networkDrop .25s ease both}.page-transition{animation:pageReveal .28s cubic-bezier(.22,.8,.24,1) both;will-change:opacity,transform}@keyframes pageReveal{from{opacity:0;transform:translate3d(0,8px,0) scale(.995)}to{opacity:1;transform:none}}@keyframes skeletonEnter{from{opacity:0}to{opacity:1}}@keyframes skeletonShimmer{to{transform:translateX(110%)}}@keyframes networkDrop{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.page-transition,.screen-skeleton,.network-status{animation:none}.skeleton::after{animation:none}}@media(max-width:360px){.skeleton-grid{grid-template-columns:1fr 1fr}.skeleton-grid .skeleton:last-child{display:none}.skeleton--hero{height:148px}}
.notification-center-layer {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding:
    calc(12px + env(safe-area-inset-top))
    12px
    calc(12px + env(safe-area-inset-bottom));
  overflow: hidden;
  overscroll-behavior: contain;
}

.notification-center-layer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 5, 12, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notification-center {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(
    82dvh,
    calc(
      100dvh
      - env(safe-area-inset-top)
      - env(safe-area-inset-bottom)
      - 24px
    )
  );
  margin-top: clamp(8px, 5dvh, 42px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 90% 0,
      rgba(124, 92, 255, .2),
      transparent 35%
    ),
    #0a1020;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
  animation: notificationCenterIn .22s ease-out both;
}

.notification-center header {
  position: sticky;
  z-index: 3;
  top: -20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: -20px -20px 0;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
  background:
    linear-gradient(180deg, rgba(10, 16, 32, .99), rgba(10, 16, 32, .94));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.notification-center header span {
  color: #8f88ff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.notification-center header h2 {
  margin: 6px 0 4px;
  font-size: 24px;
}

.notification-center header p {
  margin: 0;
  color: #74809a;
  font-size: 9px;
}

.notification-center__close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 13px;
  color: #fff;
  background: #121b30;
  font-size: 20px;
}

.notification-center__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.notification-center__toolbar span {
  color: #74809a;
  font-size: 8px;
}

.notification-center__toolbar button {
  border: 0;
  padding: 4px 0;
  color: #a5b4fc;
  background: transparent;
  font-size: 8px;
  font-weight: 900;
}

.notification-center__toolbar button:disabled {
  color: #4b556a;
}

.notification-center__list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.notification-center__list > button {
  position: relative;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 15px;
  color: #fff;
  background: #10182a;
  text-align: left;
}

.notification-center__list > button.is-unread {
  border-color: rgba(124, 92, 255, .3);
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(124, 92, 255, .12),
      transparent 34%
    ),
    #10182a;
}

.notification-center__list > button.is-read {
  opacity: .68;
}

.notification-center__list > button > span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: rgba(124, 92, 255, .1);
  font-size: 21px;
}

.notification-center__list strong,
.notification-center__list small {
  display: block;
}

.notification-center__list strong {
  font-size: 11px;
}

.notification-center__list small {
  margin-top: 4px;
  color: #74809a;
  font-size: 8px;
  line-height: 1.45;
}

.notification-center__list > button > i {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c5cff;
  box-shadow: 0 0 12px rgba(124, 92, 255, .7);
}

.notification-center__list > button > b {
  margin-left: 3px;
  color: #8b96ac;
}

.notification-center__empty {
  display: grid;
  place-items: center;
  min-height: 230px;
  text-align: center;
}

.notification-center__empty > span {
  font-size: 46px;
}

.notification-center__empty strong {
  margin-top: 12px;
}

.notification-center__empty small {
  margin-top: 6px;
  color: #74809a;
  font-size: 9px;
}

@keyframes notificationCenterIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .notification-center-layer {
    padding:
      calc(8px + env(safe-area-inset-top))
      8px
      calc(8px + env(safe-area-inset-bottom));
  }

  .notification-center {
    width: 100%;
    max-height: calc(
      100dvh
      - env(safe-area-inset-top)
      - env(safe-area-inset-bottom)
      - 16px
    );
    margin-top: 0;
    padding: 17px;
    border-radius: 22px;
  }

  .notification-center header {
    top: -17px;
    margin: -17px -17px 0;
    padding: 17px 17px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-center {
    animation: none;
  }
}


/* =========================================================
   INVITEGAME V3
   NOTIFICATION CENTER — TELEGRAM SAFE AREA

   Keeps the notification panel below Telegram's
   top controls / three-dot menu.
   ========================================================= */

.notification-center-layer {
  padding:
    calc(
      var(
        --ig-content-safe-top,
        calc(
          env(safe-area-inset-top)
          + 54px
        )
      )
      + 8px
    )
    12px
    calc(
      max(
        12px,
        var(
          --ig-safe-bottom,
          env(safe-area-inset-bottom)
        )
      )
    ) !important;
}


.notification-center {
  margin-top: 0 !important;

  max-height: calc(
    100dvh
    - var(
        --ig-content-safe-top,
        calc(
          env(safe-area-inset-top)
          + 54px
        )
      )
    - max(
        12px,
        var(
          --ig-safe-bottom,
          env(safe-area-inset-bottom)
        )
      )
    - 20px
  ) !important;
}


/*
 * Header remains sticky INSIDE the safe notification panel.
 * The close button therefore can no longer move underneath
 * Telegram's top controls.
 */

.notification-center header {
  scroll-margin-top: 0;
}


@media (max-width: 520px) {

  .notification-center-layer {
    padding:
      calc(
        var(
          --ig-content-safe-top,
          calc(
            env(safe-area-inset-top)
            + 54px
          )
        )
        + 6px
      )
      8px
      max(
        8px,
        var(
          --ig-safe-bottom,
          env(safe-area-inset-bottom)
        )
      ) !important;
  }


  .notification-center {
    width: 100% !important;

    margin-top: 0 !important;

    max-height: calc(
      100dvh
      - var(
          --ig-content-safe-top,
          calc(
            env(safe-area-inset-top)
            + 54px
          )
        )
      - max(
          8px,
          var(
            --ig-safe-bottom,
            env(safe-area-inset-bottom)
          )
        )
      - 14px
    ) !important;
  }

}

/* END NOTIFICATION CENTER TELEGRAM SAFE AREA */

/* =========================================================
   INVITEGAME 2.0 — GAME PLATFORM HOME
   ========================================================= */

.home-platform-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 12px 26px;
  background: transparent;
}


/* HEADER */

.ig-platform-header {
  position: sticky;
  top: var(--ig-content-safe-top);
  z-index: 40;

  height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin: 0 -12px 12px;
  padding: 0 12px;

  border-bottom:
    1px solid rgba(255,255,255,.055);

  background:
    linear-gradient(
      180deg,
      rgba(11,17,24,.98),
      rgba(11,17,24,.93)
    );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ig-platform-header__brand {
  min-width: 0;

  display: grid;

  line-height: 1;
}

.ig-platform-header__brand strong {
  font-size: 16px;
  font-weight: 900;

  letter-spacing: -.04em;

  color: #fff;
}

.ig-platform-header__brand small {
  margin-top: 5px;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: .19em;

  color: #607486;
}

.ig-platform-header__right {
  display: flex;
  align-items: center;

  gap: 6px;
}

.ig-platform-header__stars {
  height: 40px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 0 8px;

  border:
    1px solid rgba(102,192,244,.16);

  border-radius: 8px;

  background: #111d28;

  color: #fff;
}

.ig-platform-header__stars > span {
  display: grid;

  text-align: left;
}

.ig-platform-header__stars strong {
  font-size: 13px;
  line-height: 1;
}

.ig-platform-header__stars small {
  margin-top: 3px;

  font-size: 6px;
  font-weight: 800;

  letter-spacing: .12em;

  color: #66c0f4;
}

.ig-platform-header__stars > b {
  display: grid;
  place-items: center;

  width: 18px;
  height: 18px;

  border-radius: 5px;

  background: #1a9fff;

  font-size: 14px;

  color: #fff;
}

.ig-platform-header__notifications {
  position: relative;

  width: 38px;
  height: 40px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 8px;

  background: #111a24;

  color: #728696;
}

.ig-platform-header__notifications > span {
  font-size: 11px;
}

.ig-platform-header__notifications > b {
  position: absolute;

  top: 4px;
  right: 3px;

  min-width: 15px;
  height: 15px;

  display: grid;
  place-items: center;

  padding: 0 3px;

  border-radius: 999px;

  background: #e35d6a;

  font-size: 8px;

  color: #fff;
}

.ig-platform-header__profile {
  position: relative;

  width: 40px;
  height: 40px;

  padding: 2px;

  overflow: visible;

  border:
    1px solid rgba(102,192,244,.42);

  border-radius: 8px;

  background: #16212d;
}

.ig-platform-header__profile img,
.ig-platform-header__profile > span {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  object-fit: cover;

  overflow: hidden;

  border-radius: 5px;

  background:
    linear-gradient(
      145deg,
      #1a9fff,
      #17496a
    );

  font-weight: 900;

  color: #fff;
}

.ig-platform-header__profile i {
  position: absolute;

  right: -2px;
  bottom: -2px;

  width: 9px;
  height: 9px;

  border:
    2px solid #0b1118;

  border-radius: 999px;

  background: #75b022;
}


/* HOME */

.ig-platform-home {
  display: grid;
  gap: 26px;
}


/* FEATURED */

.ig-platform-featured {
  position: relative;

  min-height: 255px;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  border:
    1px solid rgba(255,255,255,.07);

  border-radius: 11px;

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(26,159,255,.32),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #152a3a,
      #0c141c 60%
    );

  box-shadow:
    0 18px 45px rgba(0,0,0,.32);

  background-size: cover;
  background-position: center;
}

.ig-platform-featured::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      transparent 40%,
      rgba(5,9,13,.45)
    );
}

.ig-platform-featured__content {
  position: relative;
  z-index: 2;

  width: min(100%, 500px);

  padding: 22px;
}

.ig-platform-featured__status {
  display: flex;
  align-items: center;

  gap: 7px;

  margin-bottom: 10px;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .17em;

  color: #66c0f4;
}

.ig-platform-featured__status i {
  width: 6px;
  height: 6px;

  border-radius: 999px;

  background: #75b022;

  box-shadow:
    0 0 10px rgba(117,176,34,.8);
}

.ig-platform-featured h1 {
  max-width: 420px;

  margin: 0;

  font-size:
    clamp(27px, 8vw, 40px);

  line-height: .98;

  letter-spacing: -.055em;

  color: #fff;
}

.ig-platform-featured p {
  max-width: 420px;

  margin: 12px 0 0;

  font-size: 12px;
  line-height: 1.5;

  color: #a7b6c2;
}

.ig-platform-featured__actions {
  display: flex;

  gap: 7px;

  margin-top: 18px;
}

.ig-platform-primary,
.ig-platform-secondary {
  height: 38px;

  border: 0;
  border-radius: 6px;

  padding: 0 14px;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: .04em;
}

.ig-platform-primary {
  background:
    linear-gradient(
      90deg,
      #1a9fff,
      #3cb2ff
    );

  color: #fff;
}

.ig-platform-primary span {
  margin-right: 6px;
}

.ig-platform-secondary {
  border:
    1px solid rgba(255,255,255,.09);

  background:
    rgba(18,29,39,.88);

  color: #b7c5cf;
}


/* SECTIONS */

.ig-platform-section {
  display: grid;

  gap: 12px;
}

.ig-platform-section__head {
  min-height: 34px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 12px;
}

.ig-platform-section__head small {
  display: block;

  margin-bottom: 4px;

  font-size: 7px;
  font-weight: 900;

  letter-spacing: .17em;

  color: #5c7890;
}

.ig-platform-section__head h2 {
  margin: 0;

  font-size: 18px;

  letter-spacing: -.025em;

  color: #eaf2f7;
}

.ig-platform-section__head > button {
  border: 0;

  padding: 5px 0;

  background: transparent;

  font-size: 10px;
  font-weight: 700;

  color: #66c0f4;
}


/* QUICK ACCESS */

.ig-platform-quick {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0,1fr));

  gap: 7px;
}

.ig-platform-quick__item {
  min-width: 0;
  min-height: 67px;

  display: grid;
  grid-template-columns:
    36px minmax(0,1fr) auto;

  align-items: center;

  gap: 9px;

  padding: 9px;

  border:
    1px solid rgba(255,255,255,.055);

  border-radius: 8px;

  background:
    linear-gradient(
      135deg,
      #15212c,
      #101820
    );

  text-align: left;

  color: #fff;
}

.ig-platform-quick__icon {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 7px;

  background:
    rgba(26,159,255,.11);

  font-size: 18px;

  color: #66c0f4;
}

.ig-platform-quick__text {
  min-width: 0;

  display: grid;
}

.ig-platform-quick__text strong {
  overflow: hidden;

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-platform-quick__text small {
  margin-top: 4px;

  overflow: hidden;

  font-size: 8px;

  text-overflow: ellipsis;
  white-space: nowrap;

  color: #718291;
}

.ig-platform-quick__item > b {
  font-size: 18px;
  font-weight: 400;

  color: #496276;
}


/* PLAYER PROGRESS */

.ig-platform-progress {
  display: grid;
  grid-template-columns:
    62px minmax(0,1fr);

  gap: 13px;

  padding: 14px;

  border:
    1px solid rgba(255,255,255,.06);

  border-radius: 8px;

  background: #111a23;
}

.ig-platform-progress__level {
  min-height: 62px;

  display: grid;
  place-content: center;

  border-radius: 7px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      #1b3345,
      #12222e
    );
}

.ig-platform-progress__level span {
  font-size: 7px;
  font-weight: 900;

  letter-spacing: .16em;

  color: #66c0f4;
}

.ig-platform-progress__level strong {
  margin-top: 2px;

  font-size: 27px;

  color: #fff;
}

.ig-platform-progress__body {
  min-width: 0;

  align-self: center;
}

.ig-platform-progress__head {
  display: flex;
  justify-content: space-between;

  gap: 8px;
}

.ig-platform-progress__head strong {
  font-size: 11px;

  color: #dce7ed;
}

.ig-platform-progress__head span {
  font-size: 8px;

  color: #758897;
}

.ig-platform-progress__track {
  height: 5px;

  margin-top: 9px;

  overflow: hidden;

  border-radius: 999px;

  background: #26333d;
}

.ig-platform-progress__track i {
  display: block;

  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #1a9fff,
      #66c0f4
    );
}

.ig-platform-progress__body > small {
  display: block;

  margin-top: 7px;

  font-size: 8px;

  color: #60717e;
}

.ig-platform-wallet {
  display: grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 7px;
}

.ig-platform-wallet > div {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 10px 12px;

  border:
    1px solid rgba(255,255,255,.05);

  border-radius: 7px;

  background: #101820;
}

.ig-platform-wallet span {
  min-width: 0;

  display: grid;
}

.ig-platform-wallet small {
  font-size: 7px;

  color: #667988;
}

.ig-platform-wallet strong {
  margin-top: 2px;

  overflow: hidden;

  font-size: 12px;

  text-overflow: ellipsis;

  color: #e9f1f5;
}


/* DAILY */

.ig-platform-daily {
  display: grid;

  gap: 7px;
}

.ig-platform-daily > button,
.ig-platform-missions > button {
  width: 100%;

  min-height: 65px;

  display: grid;
  grid-template-columns:
    42px minmax(0,1fr) auto;

  align-items: center;

  gap: 10px;

  padding: 10px;

  border:
    1px solid rgba(255,255,255,.055);

  border-radius: 8px;

  background:
    linear-gradient(
      90deg,
      #14212b,
      #101820
    );

  text-align: left;

  color: #fff;
}

.ig-platform-daily > button:disabled {
  opacity: .55;
}

.ig-platform-daily__icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 7px;

  background: #192a37;

  font-size: 19px;
}

.ig-platform-daily button > span:nth-child(2) {
  min-width: 0;

  display: grid;
}

.ig-platform-daily small {
  font-size: 7px;
  font-weight: 900;

  letter-spacing: .13em;

  color: #5d8098;
}

.ig-platform-daily strong {
  margin-top: 3px;

  font-size: 12px;
}

.ig-platform-daily em {
  margin-top: 3px;

  font-size: 8px;
  font-style: normal;

  color: #718594;
}

.ig-platform-daily b {
  color: #66c0f4;
}


/* CASES */

.ig-platform-cases {
  display: flex;

  gap: 8px;

  margin: 0 -12px;
  padding: 0 12px 5px;

  overflow-x: auto;

  scrollbar-width: none;
}

.ig-platform-cases::-webkit-scrollbar {
  display: none;
}

.ig-platform-case {
  flex:
    0 0 135px;

  min-width: 0;

  padding: 0 0 10px;

  overflow: hidden;

  border:
    1px solid rgba(255,255,255,.055);

  border-radius: 8px;

  background: #111a23;

  text-align: left;

  color: #fff;
}

.ig-platform-case__image {
  height: 105px;

  display: grid;
  place-items: center;

  margin-bottom: 9px;

  overflow: hidden;

  background:
    radial-gradient(
      circle,
      rgba(26,159,255,.16),
      transparent 58%
    ),
    #0d151c;
}

.ig-platform-case__image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  padding: 7px;
}

.ig-platform-case__image span {
  font-size: 34px;

  color: #66c0f4;
}

.ig-platform-case > strong,
.ig-platform-case > small {
  display: block;

  margin:
    0 9px;
}

.ig-platform-case > strong {
  overflow: hidden;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-platform-case > small {
  margin-top: 5px;

  font-size: 8px;

  color: #66c0f4;
}


/* MISSIONS */

.ig-platform-missions {
  display: grid;

  gap: 6px;
}

.ig-platform-missions > button {
  min-height: 58px;
}

.ig-platform-missions > button > span {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 7px;

  background:
    rgba(26,159,255,.1);

  color: #66c0f4;
}

.ig-platform-missions > button > div {
  min-width: 0;

  display: grid;
}

.ig-platform-missions strong {
  overflow: hidden;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-platform-missions small {
  margin-top: 4px;

  font-size: 8px;

  color: #718391;
}

.ig-platform-missions b {
  color: #506879;
}


/* TOUCH */

.ig-platform-header button,
.ig-platform-home button {
  -webkit-tap-highlight-color:
    transparent;
}

.ig-platform-home button:active,
.ig-platform-header button:active {
  transform: scale(.98);
}


@media (max-width: 360px) {
  .ig-platform-header__brand small {
    display: none;
  }

  .ig-platform-header__stars {
    padding: 0 6px;
  }

  .ig-platform-header__notifications {
    display: none;
  }

  .ig-platform-quick {
    grid-template-columns: 1fr;
  }
}


@media (prefers-reduced-motion: reduce) {
  .ig-platform-home button,
  .ig-platform-header button {
    transition: none;
  }
}


/* ==========================================================
   InviteGame V3.1 — PLAYER HUB
   ========================================================== */

.ig-player-hub {
  overflow: hidden;
}

.ig-player-hub__progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.ig-player-hub__level {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(109,94,252,.28),
      rgba(69,210,255,.10)
    );
  border: 1px solid rgba(133,120,255,.28);
}

.ig-player-hub__level span {
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  opacity: .55;
}

.ig-player-hub__level strong {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.ig-player-hub__progress-body {
  min-width: 0;
  flex: 1;
}

.ig-player-hub__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ig-player-hub__progress-head strong {
  font-size: 13px;
}

.ig-player-hub__progress-head span {
  font-size: 10px;
  opacity: .55;
  white-space: nowrap;
}

.ig-player-hub__track {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.ig-player-hub__track i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  min-width: 3px;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #7667ff,
      #5bc7ff
    );
}

.ig-player-hub__progress-body > small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  opacity: .45;
}

.ig-player-hub__continue {
  width: 100%;
  min-height: 86px;
  margin-top: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    linear-gradient(
      110deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.018)
    );
  color: inherit;
  cursor: pointer;
}

.ig-player-hub__continue-image,
.ig-player-hub__continue-placeholder {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
}

.ig-player-hub__continue-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ig-player-hub__continue-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(118,103,255,.24),
      rgba(91,199,255,.08)
    );
}

.ig-player-hub__continue-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ig-player-hub__continue-copy small {
  margin-bottom: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  opacity: .45;
}

.ig-player-hub__continue-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-player-hub__continue-copy em {
  margin-top: 3px;
  overflow: hidden;
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
  opacity: .5;
}

.ig-player-hub__continue > b {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  opacity: .7;
}

.ig-player-hub__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.ig-player-hub__stats button {
  min-width: 0;
  padding: 11px 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 7px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: inherit;
}

.ig-player-hub__stats button > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 17px;
}

.ig-player-hub__stats small {
  overflow: hidden;
  font-size: 9px;
  opacity: .45;
  text-overflow: ellipsis;
}

.ig-player-hub__stats strong {
  margin-top: 1px;
  font-size: 15px;
}

.ig-player-hub__wallet {
  margin-top: 7px !important;
}

@media (max-width: 390px) {
  .ig-player-hub__continue > b {
    display: none;
  }

  .ig-player-hub__continue-image,
  .ig-player-hub__continue-placeholder {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .ig-player-hub__stats {
    gap: 5px;
  }
}

/* ==========================================================
   InviteGame V3.1 — TODAY
   ========================================================== */

.ig-today__list {
  display: grid;
  gap: 7px;
}

.ig-today__item {
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: inherit;
  text-align: left;
}

.ig-today__item.is-active {
  background:
    linear-gradient(
      110deg,
      rgba(118,103,255,.08),
      rgba(255,255,255,.02)
    );
}

.ig-today__item.is-done {
  opacity: .48;
}

.ig-today__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  font-size: 18px;
}

.ig-today__copy {
  min-width: 0;
  flex: 1;
  display: grid;
}

.ig-today__copy small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .42;
}

.ig-today__copy strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-today__copy em {
  margin-top: 2px;
  font-size: 9px;
  font-style: normal;
  opacity: .48;
}

.ig-today__item > b {
  flex: 0 0 auto;
  font-size: 13px;
  opacity: .6;
}

.ig-today__item:disabled {
  cursor: default;
}

/* ==========================================================
   InviteGame V3.1 — FEATURED COMPACT
   ========================================================== */

.ig-platform-featured {
  min-height: 220px !important;
}

.ig-platform-featured__content {
  max-width: 520px;
  padding-top: 26px !important;
  padding-bottom: 26px !important;
}

.ig-platform-featured__content h1 {
  max-width: 480px;
  margin-top: 9px;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.02;
}

.ig-platform-featured__content p {
  max-width: 470px;
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.5;
  opacity: .72;
}

.ig-platform-featured__status {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 8px;
  letter-spacing: .09em;
}

.ig-featured-compact__actions {
  margin-top: 16px !important;
  align-items: center;
  gap: 12px;
}

.ig-featured-compact__actions .ig-platform-primary {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 10px;
}

.ig-featured-compact__more {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  opacity: .62;
}

.ig-featured-compact__more:hover {
  opacity: 1;
}

@media (max-width: 520px) {
  .ig-platform-featured {
    min-height: 190px !important;
  }

  .ig-platform-featured__content {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .ig-platform-featured__content h1 {
    max-width: 88%;
    font-size: 25px;
  }

  .ig-platform-featured__content p {
    max-width: 88%;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ig-featured-compact__actions {
    margin-top: 13px !important;
  }
}

/* ==========================================================
   InviteGame — ACCOUNT RANK V2
   ========================================================== */

.ig-player-hub__level em {
  max-width: 52px;
  margin-top: 3px;
  overflow: hidden;
  font-size: 7px;
  font-style: normal;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .55;
}
.home-next-page {
  background:
    radial-gradient(
      circle at 12% -4%,
      rgba(117, 89, 255, 0.17),
      transparent 30%
    ),
    radial-gradient(
      circle at 95% 20%,
      rgba(45, 212, 191, 0.06),
      transparent 25%
    ),
    var(--ig-color-bg);
}


/* =========================================================
   HOME BUILDER · REAL LIVE PREVIEW
   ========================================================= */

html.home-preview-mode,
body.home-preview-mode {
  min-height: 100%;
  background: #070b14;
}

body.home-preview-mode {
  overflow-x: hidden;
}

body.home-preview-mode .home-next-page {
  min-height: 100vh;
  padding-bottom: 110px;
}

body.home-preview-mode button,
body.home-preview-mode a {
  cursor: default;
}
/* =========================================================
   INVITEGAME 2.0 — BOTTOM NAVIGATION
   Compact game-platform navigation
   ========================================================= */

.bottom-nav {
  position: fixed;

  z-index: 100;

  left: 50%;

  bottom:
    var(
      --ig-bottom-nav-bottom,
      max(6px, env(safe-area-inset-bottom))
    );

  transform: translateX(-50%);

  width:
    min(
      620px,
      calc(100% - 16px)
    );

  min-height: 62px;

  padding: 5px 6px;

  display: grid;

  gap: 2px;

  isolation: isolate;

  border:
    1px solid rgba(255,255,255,.075);

  border-radius: 13px;

  background:
    rgba(17,26,36,.96);

  box-shadow:
    0 12px 36px rgba(0,0,0,.48),
    inset 0 1px rgba(255,255,255,.025);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);
}


/* =========================================================
   NAV ITEM
   ========================================================= */

.nav-item {
  position: relative;

  min-width: 0;

  min-height: 50px;

  border: 0;
  border-radius: 8px;

  padding: 6px 2px 5px;

  display: grid;
  place-items: center;

  gap: 3px;

  background: transparent;

  color: #71808d;

  cursor: pointer;

  transition:
    color .16s ease,
    background .16s ease,
    transform .16s ease;
}


.nav-item:active {
  transform: scale(.94);
}


.nav-item span {
  display: grid;
  place-items: center;

  min-width: 26px;
  height: 24px;

  font-size: 18px;

  line-height: 1;

  filter:
    grayscale(.35)
    saturate(.7);
}


.nav-item small {
  max-width: 100%;

  overflow: hidden;

  font-size: 8px;
  font-weight: 700;

  line-height: 1;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   ACTIVE
   ========================================================= */

.nav-item.active {
  color: #ffffff;

  background:
    linear-gradient(
      180deg,
      rgba(26,159,255,.14),
      rgba(26,159,255,.045)
    );
}


.nav-item.active::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 2px;

  width: 22px;
  height: 2px;

  transform:
    translateX(-50%);

  border-radius: 999px;

  background: #1a9fff;

  box-shadow:
    0 0 10px rgba(26,159,255,.65);
}


.nav-item.active span {
  filter: none;
}


/* =========================================================
   IGTAP
   No floating oversized center button anymore.
   Navigation stays compact.
   ========================================================= */

.nav-item-main {
  margin: 0;

  padding:
    6px 2px 5px;
}


.nav-item-main span {
  width: auto;
  height: 24px;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;

  font-size: 19px;
}


.nav-item-main.active {
  background:
    linear-gradient(
      180deg,
      rgba(26,159,255,.14),
      rgba(26,159,255,.045)
    );

  box-shadow: none;
}


/* =========================================================
   SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {
  .bottom-nav {
    width:
      calc(100% - 10px);

    padding-left: 3px;
    padding-right: 3px;
  }

  .nav-item small {
    font-size: 7px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .nav-item {
    transition: none;
  }
}
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ig-color-text);
  background: var(--ig-color-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--ig-color-bg);
}

body {
  min-width: 320px;
  overflow-x: clip;
  overscroll-behavior: none;
  color: var(--ig-color-text);
  background:
    radial-gradient(circle at 15% -10%, rgba(59, 130, 246, .32), transparent 36%),
    radial-gradient(circle at 95% 12%, rgba(139, 92, 246, .22), transparent 32%),
    linear-gradient(180deg, #080d20 0%, #050816 52%, #03050d 100%);
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: var(--tg-viewport-stable-height, 100dvh);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

::selection {
  color: #fff;
  background: rgba(34, 211, 238, .28);
}
/* Legacy quest-only UI. Scoped to avoid collisions with the design system. */
.legacy-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--ig-radius-sm);
  padding: 10px 14px;
  color: var(--ig-color-text);
  background: linear-gradient(135deg, var(--ig-color-primary), var(--ig-color-secondary));
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.legacy-ui-button--secondary {
  border-color: var(--ig-color-border-strong);
  color: #ddd6fe;
  background: rgba(117, 89, 255, .12);
}

.legacy-ui-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.legacy-ui-toast-stack {
  position: fixed;
  z-index: 13000;
  top: calc(var(--ig-content-safe-top) + 10px);
  left: 50%;
  width: min(calc(100% - 24px), 440px);
  transform: translateX(-50%);
  pointer-events: none;
}

.legacy-ui-toast {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--ig-color-border);
  border-radius: var(--ig-radius-md);
  color: var(--ig-color-text);
  background: rgba(10, 16, 32, .97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  pointer-events: auto;
  animation: legacyToastIn 220ms var(--ig-easing) both;
}

.legacy-ui-toast__icon,
.legacy-ui-toast__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--ig-radius-xs);
  font: inherit;
  font-weight: 900;
}

.legacy-ui-toast__icon {
  color: #052e26;
  background: var(--ig-color-success);
}

.legacy-ui-toast--error .legacy-ui-toast__icon {
  color: #450a0a;
  background: #fca5a5;
}

.legacy-ui-toast__close {
  color: var(--ig-color-text-muted);
  background: rgba(255, 255, 255, .04);
}

@keyframes legacyToastIn {
  from { opacity: 0; transform: translateY(-10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-ui-toast { animation: none; }
}
