.is-landing {
  overflow: hidden;
}

html:has(body.is-docked) {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

html:has(body.is-kb-overlay) {
  overflow: hidden;
}

html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: var(--kb-scroll-thumb) var(--kb-scroll-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--kb-scroll-track-image);
  box-shadow: inset 0 0 0 1px var(--kb-scroll-border);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: var(--kb-scroll-thumb-image);
  border-radius: var(--kb-art-btn-radius, 999px);
  border: 1px solid var(--kb-scroll-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.12);
}

body.is-docked {
  overflow: visible;
  height: auto;
  min-height: 100dvh;
}

.landing-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: 4.5rem;
  pointer-events: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition:
    opacity 0.45s ease,
    background 0.7s ease,
    border-color 0.7s ease,
    box-shadow 0.7s ease;
}

.is-docked .landing-topbar {
  opacity: 1;
  pointer-events: auto;
}

.is-docked .landing-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-bottom: 1px solid rgba(210, 210, 220, 0.16);
  background: rgba(14, 14, 18, 0.82);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
}

.landing-stage {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  padding: clamp(1.5rem, 6vw, 3rem) 1.25rem calc(2rem + env(safe-area-inset-bottom));
  overflow-x: clip;
  text-align: center;
  pointer-events: none;
}

.is-docked .landing-stage,
.is-home .landing-stage {
  margin-top: 4.5rem;
  min-height: calc(100dvh - 4.5rem);
  padding-top: 1.15rem;
  padding-bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
}

.landing-stage a,
.landing-stage button,
.landing-stage input,
.landing-stage textarea,
.landing-stage label,
.landing-stage form,
.landing-auth,
.profile-card,
.home-feed,
.feed-card,
.kb-alliance-section,
.kb-alliance-hero,
.kb-alliance-chat,
.kb-alliance-chat-top,
.kb-alliance-composer-card,
.kb-profile,
.kb-explore,
.kb-explore-section,
.kb-tour,
.kb-tour-section,
.kb-tour-demo,
.kb-tour-payouts,
.kb-tour-shortcuts,
.kb-tour-search,
.kb-tour-sheet,
.kb-tour-note,
.home-swipe,
.home-swipe__pager,
.story-tray,
.event-card,
.kb-live {
  pointer-events: auto;
}

.landing-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.landing-brand {
  position: fixed;
  top: 2.25rem;
  left: 50%;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  overflow: visible;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.landing-logo-glow {
  position: absolute;
  inset: -6% -4%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 46%, rgba(42, 212, 255, 0.34) 0%, transparent 48%),
    radial-gradient(circle at 64% 46%, rgba(232, 75, 255, 0.3) 0%, transparent 48%);
  opacity: 0.32;
  transform: scale(1);
  animation: logo-glow 4.8s ease-in-out infinite;
  pointer-events: none;
}

.landing-logo-frame {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
}

.landing-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 3.35rem;
  height: auto;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
  box-shadow: none;
}

.is-docked .landing-logo {
  width: 3.35rem;
}

.is-docked .landing-logo-glow {
  inset: -16%;
  animation: none;
  opacity: 0.18;
  transform: scale(1);
}

.landing-logo-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    rgba(170, 236, 255, 0.08) 38%,
    rgba(245, 248, 255, 0.58) 50%,
    rgba(255, 176, 246, 0.1) 62%,
    transparent 100%
  );
  /* Perf: band lives on ::before and moves with transform/opacity (no background-position repaint). */
  background-image: none;
  overflow: hidden;
  mix-blend-mode: screen;
  -webkit-mask-image: url("../images/logo.webp");
  mask-image: url("../images/logo.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.landing-logo-sheen::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 55%;
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    rgba(170, 236, 255, 0.08) 38%,
    rgba(245, 248, 255, 0.58) 50%,
    rgba(255, 176, 246, 0.1) 62%,
    transparent 100%
  );
  opacity: 0;
  transform: translate3d(-150%, 0, 0);
  animation: logo-sheen 10s linear infinite;
}

.landing-welcome {
  position: fixed;
  top: calc(50% + min(31vw, 8.15rem) + 1.85rem);
  left: 50%;
  right: auto;
  z-index: 102;
  width: min(94vw, 48rem);
  margin: 0;
  padding: 0.2rem 0.6rem;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  color: #c8fbff;
  font-family: "Vazirmatn", "Vazirmatn Fallback", Tahoma, sans-serif;
  font-size: clamp(1.14rem, 3.6vw, 1.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  word-spacing: 0.12em;
  line-height: 1.55;
  text-align: center;
  text-shadow:
    0 0 6px rgba(180, 250, 255, 0.95),
    0 0 16px rgba(72, 214, 255, 0.62),
    0 0 28px rgba(40, 168, 255, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.78);
  pointer-events: none;
}

.landing-welcome::after {
  content: "";
  position: absolute;
  inset: -10% 4%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(90, 224, 255, 0.26) 0%, rgba(56, 180, 255, 0.1) 46%, transparent 72%);
  opacity: 0.4;
  animation: welcome-glow 3.2s ease-in-out infinite;
}

.landing-welcome::before {
  content: "";
  position: absolute;
  inset: -30% -8%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(12, 12, 16, 0.55) 0%, rgba(12, 12, 16, 0.16) 58%, transparent 78%);
}

.landing-welcome__text {
  display: block;
  width: 100%;
  text-align: center;
}

.landing-welcome__scan {
  position: absolute;
  inset: 42% 8%;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #c8fbff, transparent);
  box-shadow: 0 0 12px rgba(72, 214, 255, 0.45);
}

.is-dissolving .landing-welcome {
  animation: tv-shutdown 0.92s cubic-bezier(0.45, 0, 1, 0.35) forwards;
}

.is-dissolving .landing-welcome__text {
  animation: tv-glitch 0.28s steps(2) 0s 2;
}

.is-dissolving .landing-welcome__scan {
  animation: tv-scan 0.92s linear forwards;
}

.is-welcome-gone .landing-welcome,
.is-auth .landing-welcome {
  display: none;
}

@keyframes logo-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes logo-glow {
  0%,
  100% {
    opacity: 0.26;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.46;
    transform: scale(1.08);
  }
}

@keyframes welcome-glow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes tv-glitch {
  0% {
    transform: translate3d(0, 0, 0) skewX(0deg);
    text-shadow:
      0 0 6px rgba(106, 55, 255, 1),
      -3px 0 0 rgba(255, 40, 40, 0.85),
      3px 0 0 rgba(40, 180, 255, 0.85);
  }
  50% {
    transform: translate3d(1.4%, -0.6%, 0) skewX(-14deg);
    text-shadow:
      0 0 8px rgba(106, 55, 255, 1),
      5px 0 0 rgba(255, 40, 40, 0.9),
      -4px 0 0 rgba(40, 180, 255, 0.9);
  }
  100% {
    transform: translate3d(-1.1%, 0.5%, 0) skewX(12deg);
    text-shadow:
      0 0 10px #fff,
      -6px 0 0 rgba(255, 40, 40, 0.75),
      6px 0 0 rgba(40, 180, 255, 0.75);
  }
}

@keyframes tv-shutdown {
  0% {
    transform: translateX(-50%) scale(1, 1);
    filter: contrast(1) brightness(1);
    opacity: 1;
  }
  18% {
    transform: translateX(-50%) scale(1.08, 1.12);
    filter: contrast(1.8) brightness(1.35) saturate(1.4);
    opacity: 1;
  }
  38% {
    transform: translateX(-50%) scale(1.35, 0.08);
    filter: contrast(2.4) brightness(2.2);
    opacity: 1;
  }
  62% {
    transform: translateX(-50%) scale(0.22, 0.018);
    filter: brightness(3.2);
    opacity: 1;
  }
  82% {
    transform: translateX(-50%) scale(0.04, 0.04);
    filter: brightness(3.6);
    opacity: 0.85;
  }
  100% {
    transform: translateX(-50%) scale(0, 0);
    filter: brightness(4);
    opacity: 0;
  }
}

@keyframes tv-scan {
  0%,
  28% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  38% {
    opacity: 1;
    transform: scaleX(1.05);
  }
  70% {
    opacity: 1;
    transform: scaleX(0.28);
  }
  100% {
    opacity: 0;
    transform: scaleX(0);
  }
}

.landing-auth {
  display: none;
  width: min(92vw, 26.5rem);
  flex-direction: column;
  align-items: stretch;
  gap: 0.72rem;
}

.is-auth .landing-auth {
  display: flex;
  animation: logo-rise 0.7s ease-out both;
}

.auth-card,
.auth-alt,
.auth-guest {
  margin: 0;
}

.landing-auth[hidden],
.auth-card[hidden],
.auth-status[hidden] {
  display: none !important;
}

/* After a successful SMS send, keep the code field visible even if the
   hidden attribute races with autofill or a stale CSS rule. */
#auth-panel.is-awaiting-code #auth-verify-form {
  display: grid !important;
}

.messenger-code__timer {
  margin: 0;
  color: #c4a574;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-shadow: 0 0 12px rgba(196, 165, 116, 0.35);
}

.messenger-code.is-expired .messenger-code__timer {
  color: #ffb4a8;
}

.auth-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(6, 8, 10, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  text-align: right;
}

.auth-kicker {
  margin: 0;
  color: var(--kb-neon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.auth-title {
  margin: 0 0 0.35rem;
  color: #f3f5ee;
  font-size: 1.12rem;
  font-weight: 800;
}

.auth-label {
  color: var(--kb-mist);
  font-size: 0.82rem;
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.55rem 0.15rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  background: rgba(4, 8, 8, 0.45);
}

.auth-icon {
  display: grid;
  place-items: center;
  width: 1.2rem;
  color: var(--kb-neon);
  opacity: 0.9;
}

.auth-icon svg,
.auth-btn svg,
.auth-alt svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.auth-input {
  flex: 1;
  min-width: 0;
  padding: 0.72rem 0.35rem;
  border: 0;
  background: transparent;
  color: var(--kb-mist);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.auth-input:focus {
  outline: none;
}

.auth-btn,
.auth-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-btn {
  margin-top: 0.25rem;
  border: 1px solid #8f70ff;
  background: linear-gradient(180deg, #6b2ebb 0%, #4a1691 100%);
  color: #f4fff0;
  box-shadow:
    0 0 16px rgba(106, 55, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-status {
  margin: 0;
  min-height: 1.2rem;
  color: #a8aaf5;
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-flash {
  margin: 0.2rem 0 0.9rem;
  min-height: 0;
}

.auth-status.is-error {
  color: #ffb4a8;
}

.auth-status a {
  color: inherit;
  text-decoration: underline;
}

.auth-alt {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 10, 0.5);
  color: #f3f5ee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-alt--bale:disabled,
.auth-alt--bale[aria-disabled='true'],
.auth-alt--telegram:disabled,
.auth-alt--telegram[aria-disabled='true'] {
  opacity: 0.38;
  filter: grayscale(0.35);
  cursor: not-allowed;
}

.auth-alt--guest:hover,
.auth-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.home-stage {
  justify-content: flex-start;
  overflow: visible;
  max-height: none;
  gap: 0.75rem;
}

.home-pulse {
  margin: 0;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(6, 8, 10, 0.55);
  color: #dbd8ff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(106, 55, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.is-docked .landing-brand,
.is-home .landing-brand {
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

[data-kb-nav]:not(.landing-brand),
.landing-stage a[href] {
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.landing-brand .landing-logo {
  pointer-events: auto;
  cursor: pointer;
}

.is-docked .landing-brand .landing-logo,
[data-kb-nav] img,
[data-kb-nav] svg {
  pointer-events: none;
}

.topbar-hud {
  position: absolute;
  left: max(0.45rem, env(safe-area-inset-left, 0px));
  top: 50%;
  z-index: 5;
  display: flex;
  direction: ltr;
  align-items: center;
  gap: 0.32rem;
  transform: translateY(-50%);
  pointer-events: auto;
}

.topbar-chip {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 0.28rem;
  min-height: 2.15rem;
  max-width: min(32vw, 7.6rem);
  padding: 0.12rem 0.4rem 0.12rem 0.32rem;
  border: 1px solid rgba(210, 210, 220, 0.16);
  border-radius: 0.75rem;
  background: rgba(14, 14, 18, 0.55);
  color: #ececf2;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
}

.topbar-chip img {
  width: 1.42rem;
  height: 1.42rem;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
}

.topbar-chip b {
  min-width: 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.topbar-chip--wallet {
  position: absolute;
  top: 50%;
  right: calc(2.55rem + 0.7rem + max(0.45rem, env(safe-area-inset-right, 0px)));
  z-index: 5;
  transform: translateY(-50%);
  pointer-events: auto;
}

.topbar-profile {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.topbar-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.topbar-profile img {
  width: 2.35rem;
  height: 2.35rem;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.topbar-profile.is-current {
  cursor: default;
}

.topbar-profile:hover,
.topbar-chip:hover,
.profile-rank:hover {
  opacity: 0.92;
}

.topbar-menu {
  position: absolute;
  right: max(0.7rem, env(safe-area-inset-right));
  top: 50%;
  z-index: 6;
  display: grid;
  gap: 0.28rem;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0.7rem 0.55rem;
  border: 1px solid rgba(210, 210, 220, 0.28);
  border-radius: 0.65rem;
  background: rgba(12, 12, 16, 0.42);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.topbar-menu span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: #e4e4ea;
  box-shadow: none;
}

.site-menu {
  width: min(92vw, 22rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(6, 8, 10, 0.94);
  color: inherit;
  z-index: 200;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.site-menu[open],
.site-menu.is-open {
  display: block;
}

.site-menu::backdrop {
  background: rgba(4, 6, 5, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-menu__panel {
  width: auto;
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: #e8f6d8;
  font-weight: 800;
}

.site-menu__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.site-menu__list {
  display: grid;
  gap: 0.45rem;
}

.site-menu__list a {
  display: block;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  background: rgba(18, 12, 8, 0.45);
  color: #f3f5ee;
  text-decoration: none;
  font-weight: 700;
}

#kb-chrome-top:empty,
#kb-chrome-dock:empty {
  display: none;
}

#kb-shell {
  transform: translateZ(0);
}

.kb-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr 1.18fr 1fr 1fr;
  direction: ltr;
  align-items: end;
  gap: 0.12rem;
  padding-top: 0.32rem;
  padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
  padding-bottom: calc(0.32rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
  border-top: 1px solid rgba(210, 210, 220, 0.16);
  background: rgba(14, 14, 18, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
  pointer-events: auto;
}

.kb-dock__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.kb-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 3.2rem;
  padding: 0.1rem 0.1rem 0.08rem;
  color: #8f8f9a;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transform: translateZ(0);
}

.kb-dock__icon {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 2.15rem;
  height: 2.15rem;
  transform: translateZ(0);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, width 0.18s ease, height 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.kb-dock__icon svg {
  width: 1.42rem;
  height: 1.42rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.kb-dock__label {
  margin-top: 0.12rem;
  direction: rtl;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.kb-dock__item--play .kb-dock__icon {
  width: 2.35rem;
  height: 2.35rem;
}

.kb-dock__item--play .kb-dock__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.kb-dock__item.is-active {
  color: #ececf2;
}

.kb-dock__item.is-active .kb-dock__icon {
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.08rem;
  border: 1px solid rgba(228, 228, 234, 0.55);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(78, 78, 88, 0.86), rgba(22, 22, 26, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateZ(0);
}

.kb-dock__item.is-active .kb-dock__icon svg {
  width: 1.62rem;
  height: 1.62rem;
}

@media (max-width: 420px) {
  .kb-dock__label {
    font-size: 0.56rem;
  }

  .topbar-menu {
    right: max(0.45rem, env(safe-area-inset-right));
  }

  .topbar-chip--wallet {
    right: calc(2.55rem + 0.55rem + max(0.45rem, env(safe-area-inset-right, 0px)));
  }

  .topbar-chip {
    max-width: min(30vw, 6.8rem);
    padding-right: 0.32rem;
    font-size: 0.64rem;
  }

  .topbar-chip b {
    font-size: 0.7rem;
  }
}

.profile-card .auth-btn {
  text-decoration: none;
}

.guest-banner {
  position: fixed;
  top: 4.5rem;
  right: 0;
  left: 0;
  z-index: 110;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0;
  padding: 0.42rem 2.4rem 0.42rem 1rem;
  border-bottom: 1px solid rgba(152, 138, 255, 0.38);
  background: rgba(10, 12, 16, 0.72);
  color: #f3f5ee;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(106, 55, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transform: translateZ(0);
}

.guest-banner__copy {
  margin: 0;
  max-width: 42rem;
}

.guest-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.85rem;
  border: 1px solid rgba(152, 138, 255, 0.55);
  border-radius: 999px;
  background: rgba(106, 55, 255, 0.08);
  color: #dbd8ff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(106, 55, 255, 0.2);
  transform: translateZ(0);
}

.guest-banner__cta:hover {
  filter: brightness(1.1);
}

.guest-banner__close {
  position: absolute;
  top: 50%;
  left: 0.45rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 10, 14, 0.45);
  color: #f3f5ee;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%) translateZ(0);
}

.is-auth .guest-banner,
.guest-banner.is-off {
  display: none;
}

.is-guest .landing-stage {
  padding-top: 3.4rem;
}

html.is-guest-banner-off .is-guest.is-docked .landing-stage,
html.is-guest-banner-off .is-guest.is-home .landing-stage {
  padding-top: 1.15rem;
}

.auth-prompt {
  width: min(92vw, 22rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(152, 138, 255, 0.38);
  border-radius: 1.15rem;
  background: rgba(8, 10, 14, 0.82);
  color: inherit;
  z-index: 220;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 28px rgba(106, 55, 255, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.auth-prompt[open],
.auth-prompt.is-open {
  display: block;
}

.auth-prompt::backdrop {
  background: rgba(4, 6, 5, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-prompt__panel {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem 1.1rem 1.2rem;
  text-align: right;
}

.auth-prompt__panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.auth-prompt__panel p {
  margin: 0;
  color: var(--kb-mist);
  font-size: 0.86rem;
}

.auth-prompt__close {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 10, 14, 0.45);
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.auth-prompt__cta,
.auth-prompt .auth-btn {
  margin-top: 0.35rem;
  text-decoration: none;
}

.profile-stage {
  justify-content: flex-start;
  overflow: visible;
  max-height: none;
  padding-bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
}

.profile-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.85rem;
  width: min(32rem, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(6, 8, 10, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.32);
  text-align: right;
  pointer-events: auto;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: rgba(6, 8, 10, 0.28);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-copy,
.profile-phone {
  margin: 0;
  color: var(--kb-mist);
  font-size: 0.9rem;
  line-height: 1.7;
}

.profile-phone {
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.profile-identity {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.profile-identity__upload {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.35rem;
}

.profile-identity__upload:not(:has(:not([hidden]))) {
  display: none;
}

.profile-identity__meta {
  flex: 1;
  min-width: 0;
}

.profile-avatar {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.profile-avatar.is-custom,
.topbar-profile img.is-custom {
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-stack {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1;
}

@keyframes kb-avatar-spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-avatar-stack.is-busy img {
  opacity: 0.42;
  filter: grayscale(0.18) brightness(0.9);
}

.profile-avatar-stack.is-busy::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 4;
  border: 2px solid rgba(120, 180, 255, 0.2);
  border-top-color: #6ec0ff;
  border-radius: 50%;
  animation: kb-avatar-spin 0.7s linear infinite;
  pointer-events: none;
}

.profile-avatar-stack.is-saved .profile-avatar {
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #aa59e5,
    0 0 16px rgba(170, 89, 229, 0.55);
}

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

.profile-avatar-file {
  position: absolute;
  left: 0;
  top: 0;
  grid-column: 1;
  grid-row: 1;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.kb-profile .profile-avatar-stack .kb-tick {
  left: auto;
  right: -0.18rem;
  bottom: auto;
  top: -0.12rem;
  z-index: 6;
  width: 1.28rem;
  height: 1.28rem;
}

.kb-profile .profile-avatar-stack .kb-tick svg {
  width: 0.82rem;
  height: 0.82rem;
}

.profile-avatar-edit {
  position: absolute;
  left: 0.05rem;
  bottom: 0.05rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 10, 8, 0.92);
  color: #e8dcc8;
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.45);
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.profile-avatar-edit svg {
  width: 0.72rem;
  height: 0.72rem;
  pointer-events: none;
}

.profile-avatar-stack img {
  pointer-events: none;
}

.profile-avatar-upload {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  max-width: 8.6rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(232, 220, 200, 0.18);
  border-radius: 0.75rem;
  background: rgba(18, 12, 8, 0.55);
  color: #e8dcc8;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.profile-avatar-upload svg,
.profile-avatar-upload span {
  pointer-events: none;
}

.profile-avatar-upload svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: #c4a574;
}

.xp-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem 0.7rem;
  border: 1px solid rgba(210, 220, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(10, 12, 20, 0.42);
}

.xp-bar__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.xp-bar img {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
  flex-shrink: 0;
}

.xp-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: min(100%, 10.5rem);
  margin: 0 auto;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(4, 8, 8, 0.35);
  color: #e8edf6;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.xp-score strong {
  color: #cfe4ff;
  font-size: 0.82rem;
}

.profile-uid {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--kb-mist);
  font-size: 0.78rem;
}

.profile-uid code {
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.28);
  color: #d7e7ff;
  letter-spacing: 0.06em;
}

.profile-uid__copy,
.profile-name-edit {
  display: grid;
  place-items: center;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  background: rgba(8, 10, 8, 0.45);
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-name-edit {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  flex-shrink: 0;
}

.profile-name-edit svg {
  width: 0.85rem;
  height: 0.85rem;
  pointer-events: none;
}

.profile-bio {
  display: grid;
  gap: 0.4rem;
  text-align: right;
}

.profile-bio.is-saved .profile-bio__editor,
.profile-bio.is-editing .profile-bio__display {
  display: none;
}

.profile-bio__label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #d7e7ff;
}

.profile-bio__label svg {
  width: 1.05rem;
  height: 1.05rem;
}

.profile-bio textarea {
  width: 100%;
  min-height: 4.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  background: rgba(4, 8, 8, 0.42);
  color: inherit;
  font: inherit;
  resize: vertical;
}

.profile-bio__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.profile-bio__display {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  background: rgba(4, 8, 8, 0.42);
}

.profile-bio__display p {
  margin: 0;
  flex: 1;
  white-space: pre-wrap;
  line-height: 1.7;
}

.bio-save {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(120, 180, 255, 0.45);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #4aa7ff 0%, #2b6dff 100%);
  color: #f4f8ff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(70, 160, 255, 0.28);
}

.bio-save svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.bio-save[hidden] {
  display: none !important;
}

.name-dialog {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 1.1rem;
  overflow: hidden;
  border: 0;
  background: rgba(6, 8, 16, 0.58);
  color: #c9d2e4;
}

.name-dialog[open],
.name-dialog.is-open {
  display: grid;
  place-items: center;
}

.name-dialog::backdrop {
  background: rgba(6, 8, 16, 0.58);
}

.name-dialog__panel {
  width: min(92vw, 22rem);
  margin: auto;
  padding: 1rem;
  border: var(--kb-art-panel-border);
  border-radius: var(--kb-art-radius);
  background: linear-gradient(180deg, rgba(18, 20, 32, 0.96) 0%, rgba(8, 10, 16, 0.96) 100%);
  box-shadow:
    var(--kb-art-shadow),
    0 0 0 1px rgba(255, 70, 190, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.45);
  color: #c9d2e4;
}

.name-dialog__panel h2 {
  margin: 0;
  color: #eef1f8;
  font-size: 1.05rem;
}

.name-dialog__panel p {
  margin: 0.25rem 0 0;
  color: #c9d2e4;
}

.name-dialog__panel input {
  width: 100%;
  margin: 0.7rem 0 1rem;
  padding: 0.7rem;
  border: 1px solid rgba(210, 220, 255, 0.16);
  border-radius: 0.7rem;
  background: rgba(8, 10, 16, 0.85);
  color: #f4fbff;
  font: inherit;
}

.name-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.xp-track {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  height: 0.78rem;
  overflow: hidden;
  direction: ltr;
  border-radius: 999px;
  background: linear-gradient(180deg, #6a6a6a 0%, #3b3b3b 42%, #1f1f1f 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -2px 5px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(220, 220, 220, 0.22);
}

.xp-fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--xp, 0%);
  background: linear-gradient(180deg, #f7e7b0 0%, #d4b24a 46%, #8c6a14 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.xp-value {
  position: relative;
  z-index: 1;
  color: #f4f1ea;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.profile-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.profile-balance {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(4, 8, 8, 0.42);
}

.profile-balance img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.profile-balance span {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.profile-balance strong {
  color: #f3f5ee;
  font-size: 0.98rem;
}

.profile-balance small {
  color: var(--kb-mist);
  font-size: 0.72rem;
  opacity: 0.88;
}

.profile-codm {
  display: grid;
  gap: 0.55rem;
}

.profile-codm__title {
  margin: 0;
  color: #f3f5ee;
  font-size: 0.92rem;
  font-weight: 800;
}

.profile-codm__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(4, 8, 8, 0.42);
}

.profile-codm__row img {
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
  flex-shrink: 0;
}

.profile-codm__row input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  border: 0;
  background: transparent;
  color: #f3f5ee;
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
}

.profile-codm__btn {
  flex-shrink: 0;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(120, 180, 255, 0.4);
  border-radius: 0.7rem;
  background: rgba(70, 140, 255, 0.16);
  color: #d7e7ff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-codm__status {
  margin: 0;
  color: #cfe4ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-codm__status[hidden],
.profile-codm__result[hidden],
.profile-codm__fallback[hidden] {
  display: none;
}

.profile-codm__status.is-error {
  color: #ffb4a8;
}

.profile-codm__result {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: var(--kb-mist);
  font-size: 0.78rem;
}

.profile-codm__result strong {
  color: #f3f5ee;
}

.profile-codm__fallback {
  display: grid;
  gap: 0.45rem;
}

.profile-codm__fallback p {
  margin: 0;
  color: var(--kb-mist);
  font-size: 0.78rem;
}

.home-toast {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(8, 6, 4, 0.52), transparent 62%);
}

.home-toast[hidden] {
  display: none !important;
}

.home-toast__card {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  animation: home-toast-play 3s ease forwards;
}

.home-toast__card img {
  width: min(52vw, 14rem);
  height: min(52vw, 14rem);
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.home-toast__card.is-xp img {
  width: 5.4rem;
  height: 5.4rem;
  filter: drop-shadow(0 0 16px rgba(106, 55, 255, 0.28));
}

.home-toast__label {
  color: #f3ead8;
  font-size: 1.35rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.home-toast__blurb {
  max-width: 18rem;
  margin: 0;
  color: #d7cbb6;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.kb-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.kb-tick {
  position: absolute;
  left: -0.08rem;
  bottom: -0.06rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 0.92rem;
  height: 0.92rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(8, 8, 12, 0.92), 0 0 10px rgba(29, 155, 240, 0.45);
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.kb-avatar.is-locked .kb-tick,
.profile-tick .kb-tick:not(.is-on) {
  background: #6b7280;
  box-shadow: 0 0 0 2px rgba(8, 8, 12, 0.92);
}

.kb-avatar.is-verified .kb-tick,
.kb-tick.is-on,
.kb-tick--inline.is-on {
  background: #1d9bf0;
}

.kb-avatar.is-locked .kb-tick[data-blue-tick],
.kb-tick[data-blue-tick] {
  pointer-events: auto;
  cursor: pointer;
}

.topbar-profile .kb-tick {
  z-index: 4;
}

.kb-tick svg {
  width: 0.62rem;
  height: 0.62rem;
  display: block;
}

.kb-tick--inline {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
}

/* Inline tick right after a name (chat, comments, lists, slots, leaderboards). */
.kb-tick--inline {
  display: inline-grid;
  vertical-align: -0.16em;
  width: max(0.85rem, 1.05em);
  height: max(0.85rem, 1.05em);
  margin-inline-start: 0.24rem;
  box-shadow: 0 0 8px rgba(29, 155, 240, 0.4);
}

.kb-tick--inline svg {
  width: 68%;
  height: 68%;
}

.kb-tick--inline:not(.is-on) {
  background: #6b7280;
  box-shadow: 0 0 0 2px rgba(8, 8, 12, 0.92);
}

.profile-tick {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(210, 220, 255, 0.22);
  border-radius: 0.9rem;
  background: rgba(10, 12, 20, 0.55);
}

.profile-tick .kb-tick {
  position: relative;
  left: auto;
  bottom: auto;
  width: 1.35rem;
  height: 1.35rem;
  pointer-events: none;
}

.profile-tick .kb-tick svg {
  width: 0.85rem;
  height: 0.85rem;
}

.profile-tick span:last-of-type,
.profile-tick > span:nth-child(2) {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.profile-tick strong {
  font-size: 0.92rem;
}

.profile-tick small {
  color: var(--kb-mist, #c9d2e4);
  font-size: 0.75rem;
}

.profile-tick .auth-alt {
  width: auto;
  min-width: 5.6rem;
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

@keyframes home-toast-play {
  0% { opacity: 0; transform: scale(0.82); }
  12% { opacity: 1; transform: scale(1); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.94); }
}

.auth-card.is-disabled {
  opacity: 0.72;
}

.avatar-crop {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 1.1rem;
  overflow: hidden;
  border: 0;
  background: rgba(6, 8, 16, 0.58);
  color: #c9d2e4;
}

.avatar-crop[open],
.avatar-crop.is-open {
  display: grid;
  place-items: center;
}

.avatar-crop::backdrop {
  background: rgba(6, 8, 16, 0.58);
}

.avatar-crop__panel {
  display: grid;
  gap: 0.8rem;
  width: min(92vw, 26.5rem);
  padding: 1rem;
  border: var(--kb-art-panel-border);
  border-radius: var(--kb-art-radius);
  background: linear-gradient(180deg, rgba(18, 20, 32, 0.96) 0%, rgba(8, 10, 16, 0.96) 100%);
  box-shadow:
    var(--kb-art-shadow),
    0 0 0 1px rgba(255, 70, 190, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.45);
}

.avatar-crop__head h2 {
  margin: 0;
  color: #eef1f8;
  font-size: 1.05rem;
}

.avatar-crop__head p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

.avatar-crop__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: #080a10;
  touch-action: none;
  cursor: grab;
}

.avatar-crop__stage.is-dragging {
  cursor: grabbing;
}

.avatar-crop__stage img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.avatar-crop__frame {
  position: absolute;
  inset: 0;
  box-shadow: 0 0 0 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(120, 190, 255, 0.7);
  pointer-events: none;
}

.avatar-crop__zoom {
  display: grid;
  gap: 0.35rem;
  color: #c9d2e4;
  font-size: 0.8rem;
  font-weight: 700;
}

.avatar-crop__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.profile-rank {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(4, 8, 8, 0.42);
  color: inherit;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  pointer-events: auto;
}

.profile-rank img,
.profile-rank span {
  pointer-events: none;
}

.profile-rank img {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  flex-shrink: 0;
}

.profile-rank span {
  display: grid;
  gap: 0.18rem;
}

.profile-rank strong {
  color: #eef1f8;
  font-size: 0.92rem;
}

.profile-rank small {
  color: #c9d2e4;
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0.92;
}

dialog:not([open]) {
  pointer-events: none !important;
}

.rank-dialog {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  place-items: center;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 1.1rem;
  overflow: hidden;
  border: 0;
  background: rgba(6, 8, 16, 0.58);
  color: #c9d2e4;
  pointer-events: auto;
}

.rank-dialog[open],
.rank-dialog.is-open {
  display: grid;
}

.rank-dialog::backdrop {
  background: rgba(6, 8, 16, 0.58);
}

.rank-dialog__panel {
  display: flex;
  flex-direction: column;
  width: min(28rem, 100%);
  max-height: min(86dvh, 42rem);
  min-height: 0;
  overflow: hidden;
  border: var(--kb-art-panel-border);
  border-radius: var(--kb-art-radius);
  background: linear-gradient(180deg, rgba(18, 20, 32, 0.96) 0%, rgba(8, 10, 16, 0.96) 100%);
  box-shadow:
    var(--kb-art-shadow),
    0 0 0 1px rgba(255, 70, 190, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.45);
}

.rank-dialog__head {
  position: relative;
  flex-shrink: 0;
  padding: 1rem 1rem 0.8rem 2.6rem;
  border-bottom: 1px solid rgba(210, 220, 255, 0.12);
}

.rank-dialog__kicker {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 0;
  color: #edf6ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 4px #fff,
    0 0 10px rgba(140, 210, 255, 1),
    0 0 22px rgba(70, 160, 255, 0.85),
    0 0 38px rgba(255, 55, 190, 0.5);
}

.rank-dialog__kicker span {
  color: #d7dcff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(120, 190, 255, 0.9),
    0 0 18px rgba(255, 80, 200, 0.4);
}

.rank-dialog__title {
  margin: 0.2rem 0 0;
  color: #eef1f8;
  font-size: 1.05rem;
  text-align: right;
}

.rank-dialog__close {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f4fbff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.rank-dialog__list {
  display: grid;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0.8rem;
  padding-inline-end: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--kb-scroll-thumb) var(--kb-scroll-track);
}

.rank-dialog__list::-webkit-scrollbar {
  width: 0.42rem;
}

.rank-dialog__list::-webkit-scrollbar-track {
  margin: 0.4rem 0;
  background: var(--kb-scroll-track-image);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--kb-scroll-border);
}

.rank-dialog__list::-webkit-scrollbar-thumb {
  background: var(--kb-scroll-thumb-image);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(180, 210, 255, 0.35);
}

.rank-dialog__list::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.12);
}

.rank-dialog__item {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(210, 220, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(10, 12, 20, 0.55);
}

.rank-dialog__item.is-current {
  border-color: rgba(74, 167, 255, 0.55);
  background: rgba(18, 28, 48, 0.72);
  box-shadow:
    inset 3px 0 0 rgba(120, 190, 255, 0.75),
    0 0 16px rgba(70, 160, 255, 0.18);
}

.rank-dialog__badge {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.rank-dialog__now {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e8eefc;
  font-size: 0.66rem;
  font-weight: 700;
  vertical-align: middle;
}

.rank-dialog__copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.rank-dialog__name {
  margin: 0;
  color: #eef1f8;
  font-size: 0.9rem;
  font-weight: 800;
}

.rank-dialog__blurb {
  margin: 0;
  color: #c9d2e4;
  font-size: 0.78rem;
  line-height: 1.6;
}

@keyframes logo-sheen {
  0%,
  68% {
    transform: translate3d(-150%, 0, 0);
    opacity: 0;
  }
  72% {
    opacity: 1;
  }
  86% {
    transform: translate3d(190%, 0, 0);
    opacity: 1;
  }
  90%,
  100% {
    transform: translate3d(190%, 0, 0);
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .landing-logo {
    width: 3.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-brand,
  .landing-logo-glow,
  .landing-logo-sheen,
  .landing-welcome,
  .landing-logo-frame {
    animation: none;
  }

  .landing-topbar,
  .landing-brand,
  .landing-logo {
    transition: none;
  }

  .landing-logo-glow,
  .landing-logo-sheen {
    display: none;
  }
}

#google_translate_element,
.goog-te-banner-frame,
.skiptranslate iframe,
body > .skiptranslate {
  display: none !important;
  pointer-events: none !important;
}

body {
  top: 0 !important;
}

.auth-title--sub {
  margin: 0.55rem 0 0;
  font-size: 1.15rem;
}

.profile-card,
.site-menu {
  border: var(--kb-art-panel-border);
  border-radius: var(--kb-art-radius);
  background: var(--kb-art-panel-bg);
  box-shadow: var(--kb-art-shadow);
}

.profile-card::before {
  background: var(--kb-art-veil);
  backdrop-filter: blur(var(--kb-art-panel-blur));
  -webkit-backdrop-filter: blur(var(--kb-art-panel-blur));
}

.site-menu {
  background: rgba(12, 12, 16, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-menu {
  border: var(--kb-art-control-border);
  border-radius: var(--kb-art-btn-radius);
  background: var(--kb-art-control-bg);
  box-shadow: none;
}

.guest-banner {
  background: rgba(14, 14, 18, 0.78);
}

.auth-alt,
.lang-btn,
.profile-follow,
.profile-social__item,
.profile-settings,
.profile-extra,
.profile-action,
.profile-rank,
.profile-avatar-upload,
.xp-bar,
.profile-balance,
.home-pulse,
.story-viewer__icon,
.story-act,
.home-swipe__nav,
.post-reader__nav-btn,
.profile-codm__row,
.story-viewer__comment input {
  border: var(--kb-art-control-border);
  border-radius: var(--kb-art-btn-radius);
  background: var(--kb-art-control-bg);
}

.home-feed--posts .home-swipe.is-pair .home-swipe__slide {
  border: var(--kb-art-control-border);
  border-radius: var(--kb-art-btn-radius);
  background: var(--kb-art-control-bg);
}

.feed-card {
  border: var(--kb-art-panel-border);
  border-radius: var(--kb-art-radius);
  background: var(--kb-art-panel-bg);
  box-shadow: var(--kb-art-shadow);
}

dialog.post-reader,
dialog.story-viewer {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

dialog.post-reader {
  background: #05070a;
}

.auth-btn {
  border-radius: var(--kb-art-btn-radius);
}

/* Unread badge (support tickets) in the menu and profile links */
.site-menu__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-inline-start: 0.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #b44cff 0%, #7a5cff 100%);
  box-shadow: 0 0 12px rgba(180, 76, 255, 0.55);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  vertical-align: middle;
}

/* ---- Login (/register) — H1 redesign: app icon + floating purple glass card ---- */
.landing-topbar.is-bare {
  pointer-events: none;
}
.is-docked .landing-topbar.is-bare::before {
  border-bottom: 0;
  background: #07050d;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.landing-topbar.is-bare .site-menu-toggle,
.landing-topbar.is-bare [data-menu-open] {
  pointer-events: auto;
}
.kb-login-stage {
  justify-content: flex-start;
}
.is-auth .kb-login {
  width: min(92vw, 27rem);
  gap: 1rem;
  padding-top: clamp(0.4rem, 4vh, 2.2rem);
}
.kb-login__brand {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}
.kb-login__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  margin-bottom: 0.55rem;
  border-radius: 1.6rem;
  background: linear-gradient(145deg, #b14dff 0%, #7a3cff 52%, #4a2bd8 100%);
  box-shadow:
    0 0 26px rgba(168, 85, 247, 0.55),
    0 0 70px rgba(124, 58, 237, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: kb-login-pulse 4.5s ease-in-out infinite;
}
.kb-login__icon img {
  width: 78%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(20, 0, 40, 0.55));
}
@keyframes kb-login-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(168, 85, 247, 0.5), 0 0 60px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 0 34px rgba(192, 110, 255, 0.7), 0 0 90px rgba(124, 58, 237, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}
.kb-login__word {
  margin: 0;
  color: #fff;
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.kb-login__word span {
  background: linear-gradient(90deg, #c98bff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.55));
}
.kb-login__tag {
  margin: 0;
  color: rgba(222, 214, 240, 0.72);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.kb-login__card.auth-card {
  gap: 0.7rem;
  padding: 1.5rem 1.35rem 1.45rem;
  border: 0;
  border-radius: 1.6rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    rgba(14, 10, 26, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(168, 85, 247, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 46px rgba(124, 58, 237, 0.14);
}
.kb-login__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.45rem;
}
.kb-login__tile {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.95rem;
  color: #d8b4fe;
  background: rgba(139, 92, 246, 0.18);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}
.kb-login__tile svg {
  width: 1.45rem;
  height: 1.45rem;
}
.kb-login__title {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.35;
}
.kb-login__title.is-small {
  font-size: 1.2rem;
  text-align: center;
}
.kb-login__sub {
  margin: 0.15rem 0 0;
  color: rgba(222, 214, 240, 0.7);
  font-size: 1rem;
}
.kb-login__label {
  margin-top: 0.2rem;
  color: rgba(232, 226, 248, 0.82);
  font-size: 1.02rem;
  font-weight: 700;
}
.kb-login__input.auth-input {
  width: 100%;
  min-height: 3.6rem;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 1.05rem;
  color: #fff;
  background: rgba(8, 6, 16, 0.85);
  box-shadow: 0 0 0 1.5px rgba(168, 85, 247, 0.45), 0 0 16px rgba(139, 92, 246, 0.18);
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  text-align: left;
  caret-color: #c98bff;
  transition: box-shadow 0.25s ease;
}
.kb-login__input.auth-input::placeholder {
  color: rgba(200, 190, 225, 0.38);
}
.kb-login__input.auth-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.9), 0 0 24px rgba(168, 85, 247, 0.45);
}
.kb-login__input--code.auth-input {
  letter-spacing: 0.4em;
  text-align: center;
}
.kb-login__btn.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.5rem;
  margin-top: 0.4rem;
  border: 0;
  border-radius: 1.05rem;
  color: #fff;
  background: linear-gradient(90deg, #a855f7 0%, #7c3aed 50%, #4f46e5 100%);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.42), 0 0 22px rgba(168, 85, 247, 0.32);
  font-size: 1.2rem;
  font-weight: 900;
  text-shadow: none;
}
.kb-login__btn.auth-btn svg {
  width: 1.3rem;
  height: 1.3rem;
}
.kb-login__btn.auth-btn:hover,
.kb-login__btn.auth-btn:focus-visible {
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.55), 0 0 30px rgba(192, 132, 252, 0.45);
}
.kb-login__btn.auth-btn:disabled {
  filter: saturate(0.6) brightness(0.85);
}
.kb-login__reopen {
  color: #d8b4fe;
  font-size: 0.92rem;
  text-align: center;
}
.kb-login__alt {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.35rem;
}
.kb-login__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: rgba(222, 214, 240, 0.62);
  font-size: 0.98rem;
}
.kb-login__or::before,
.kb-login__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), transparent);
}
.kb-login__msgrs {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}
.kb-login__msgr {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.4rem;
  border: 0;
  color: #f1eaff;
  background: none;
  font: inherit;
  cursor: pointer;
}
.kb-login__msgr-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kb-login__msgr-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.kb-login__msgr.is-bale .kb-login__msgr-icon {
  background: linear-gradient(145deg, #8b5cf6, #5b3fd6);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
}
.kb-login__msgr.is-telegram .kb-login__msgr-icon {
  background: linear-gradient(145deg, #a78bfa, #6d4df2);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.42);
}
.kb-login__msgr:hover .kb-login__msgr-icon,
.kb-login__msgr:focus-visible .kb-login__msgr-icon {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.65);
}
.kb-login__msgr-label {
  font-size: 1.05rem;
  font-weight: 800;
}
.kb-login__msgr:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.kb-login__guest {
  display: flex;
  justify-content: center;
}
.kb-login__guest button {
  padding: 0.3rem 0.6rem;
  border: 0;
  color: rgba(216, 200, 245, 0.66);
  background: none;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(168, 85, 247, 0.4);
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.kb-login__guest button:hover {
  color: #e9d5ff;
}
.kb-login__terms {
  margin: 0;
  padding: 0 0.6rem;
  color: rgba(210, 200, 232, 0.55);
  font-size: 0.85rem;
  line-height: 1.9;
  text-align: center;
}
.kb-login__terms a {
  color: #d8b4fe;
}
.kb-login-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 38% at 50% 18%, rgba(139, 92, 246, 0.2), transparent 70%),
    radial-gradient(70% 40% at 50% 100%, rgba(88, 28, 135, 0.22), transparent 70%),
    #07050d;
}

/* Blue tick (batch I): Instagram-style starburst badge beside the name only. */
.kb-tick,
.kb-tick--inline,
.kb-avatar.is-verified .kb-tick,
.kb-tick.is-on,
.kb-tick--inline.is-on {
  border-radius: 0;
  background: transparent;
  color: #1d9bf0;
  box-shadow: none;
  filter: drop-shadow(0 0 4px rgba(29, 155, 240, 0.55));
}
.kb-tick svg,
.kb-tick--inline svg {
  width: 100%;
  height: 100%;
}
.kb-tick--inline:not(.is-on),
.profile-tick .kb-tick:not(.is-on),
.kb-avatar.is-locked .kb-tick {
  background: transparent;
  color: #6b7280;
  box-shadow: none;
  filter: none;
}
.kb-tick--inline {
  width: max(0.95rem, 1.12em);
  height: max(0.95rem, 1.12em);
}
.kb-avatar > .kb-tick {
  display: none;
}
.profile-name-row .profile-name-tick {
  width: 1.45rem;
  height: 1.45rem;
  margin-inline-start: 0.1rem;
  padding: 0;
  border: 0;
  cursor: pointer;
}

/* ---- Header bell + notification tray (batch I item 10) ---- */
.topbar-bell {
  position: absolute;
  top: 50%;
  right: calc(2.55rem + 0.7rem + max(0.45rem, env(safe-area-inset-right, 0px)));
  z-index: 6;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(210, 210, 220, 0.16);
  border-radius: 0.75rem;
  background: rgba(14, 14, 18, 0.55);
  color: #d9d4ff;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.topbar-bell svg {
  width: 1.2rem;
  height: 1.2rem;
  pointer-events: none;
}

.topbar-bell.has-unread {
  color: #fff;
  box-shadow: 0 0 14px rgba(152, 110, 255, 0.55);
  animation: kb-bell-glow 2.4s ease-in-out infinite;
}

.topbar-bell.has-unread svg {
  animation: kb-bell-ring 3.2s ease-in-out infinite;
  transform-origin: 50% 8%;
}

.topbar-bell b {
  position: absolute;
  top: -0.35rem;
  left: -0.35rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3b7a, #b14cff);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.05rem;
  box-shadow: 0 0 10px rgba(255, 59, 122, 0.7);
}

.topbar-bell b[hidden] {
  display: none;
}

.landing-topbar.has-bell .topbar-chip--wallet {
  right: calc(2.55rem + 0.7rem + 2.1rem + 0.3rem + max(0.45rem, env(safe-area-inset-right, 0px)));
}

@media (max-width: 420px) {
  .topbar-bell {
    right: calc(2.55rem + 0.5rem + max(0.45rem, env(safe-area-inset-right, 0px)));
    width: 2rem;
    height: 2rem;
  }

  .landing-topbar.has-bell .topbar-chip--wallet {
    right: calc(2.55rem + 0.5rem + 2rem + 0.28rem + max(0.45rem, env(safe-area-inset-right, 0px)));
  }
}

@keyframes kb-bell-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(152, 110, 255, 0.4); }
  50% { box-shadow: 0 0 20px rgba(177, 76, 255, 0.75); }
}

@keyframes kb-bell-ring {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(14deg); }
  90% { transform: rotate(-12deg); }
  94% { transform: rotate(8deg); }
}

.kb-bell-tray {
  position: fixed;
  top: calc(4.6rem + env(safe-area-inset-top, 0px));
  right: max(0.6rem, env(safe-area-inset-right, 0px));
  z-index: 420;
  display: none;
  width: min(23rem, calc(100vw - 1.2rem));
  max-height: min(70vh, 32rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.7rem;
  border-radius: 1.2rem;
  background: rgba(13, 10, 24, 0.94);
  box-shadow: 0 0 0 1px rgba(152, 138, 255, 0.22), 0 0 28px rgba(140, 90, 255, 0.28), 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  direction: rtl;
  text-align: right;
}

.kb-bell-tray.is-open {
  display: block;
  animation: kb-bell-in 0.22s ease-out;
}

@keyframes kb-bell-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.kb-bell-tray__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.25rem 0.55rem;
  color: #f4f0ff;
  font-weight: 900;
}

.kb-bell-tray__head button {
  border: 0;
  background: none;
  color: #a9a2d6;
  font-size: 1.3rem;
  cursor: pointer;
}

.kb-bell-tray__list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-bell-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.65rem 0.7rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e9e6f7;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.7;
  cursor: pointer;
}

.kb-bell-item.is-unread {
  background: rgba(140, 90, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(152, 138, 255, 0.28);
}

.kb-bell-item__dot {
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: #8c7bff;
  box-shadow: 0 0 10px #8c7bff;
}

.kb-bell-item[data-icon="live"] .kb-bell-item__dot {
  background: #ff3b5c;
  box-shadow: 0 0 10px #ff3b5c;
}

.kb-bell-item[data-icon="prize"] .kb-bell-item__dot {
  background: #ffc53d;
  box-shadow: 0 0 10px #ffc53d;
}

.kb-bell-item small {
  display: block;
  color: #9b95bd;
  font-size: 0.7rem;
}

.kb-bell-item em {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.55rem;
  border-radius: 0.6rem;
  background: rgba(152, 110, 255, 0.22);
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: 0.72rem;
}

.kb-bell-tray__empty {
  margin: 0;
  padding: 1.4rem 0.5rem;
  color: #9b95bd;
  text-align: center;
}

/* ---- Room-start modal (batch I item 9, reference photo 12) ---- */
.kb-start-modal {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 0;
  background: rgba(4, 4, 10, 0.66);
  direction: rtl;
}

.kb-start-modal.is-open {
  display: flex;
}

.kb-start-modal__panel {
  position: relative;
  display: grid;
  gap: 0.8rem;
  width: min(30rem, 100%);
  max-height: 92dvh;
  overflow: auto;
  padding: 1.4rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1.6rem 1.6rem 0 0;
  background: linear-gradient(180deg, rgba(20, 14, 36, 0.98) 0%, rgba(8, 7, 14, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(152, 138, 255, 0.2), 0 -10px 40px rgba(120, 70, 255, 0.25);
  color: #f2efff;
  text-align: center;
  animation: kb-start-up 0.28s ease-out;
}

@media (min-width: 640px) {
  .kb-start-modal {
    align-items: center;
    padding: 1rem;
  }

  .kb-start-modal__panel {
    border-radius: 1.6rem;
  }
}

@keyframes kb-start-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.kb-start-modal__close {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.kb-start-modal__orb {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0.4rem auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #d39bff 0%, #8a3dff 45%, #2a1250 100%);
  box-shadow: 0 0 22px rgba(167, 90, 255, 0.8), 0 0 50px rgba(120, 60, 255, 0.45);
  animation: kb-start-orb 1.8s ease-in-out infinite;
}

@keyframes kb-start-orb {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(167, 90, 255, 0.7), 0 0 40px rgba(120, 60, 255, 0.35); }
  50% { transform: scale(1.07); box-shadow: 0 0 28px rgba(190, 110, 255, 0.95), 0 0 64px rgba(130, 70, 255, 0.55); }
}

.kb-start-modal h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
}

.kb-start-modal__sub {
  margin: -0.3rem 0 0;
  color: #b9b3da;
  font-size: 0.85rem;
}

.kb-start-modal__seat {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 190, 70, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 70, 0.35);
  color: #ffe6b0;
  font-size: 0.88rem;
  line-height: 1.85;
  text-align: right;
}

.kb-start-modal__cred {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(152, 138, 255, 0.22);
  text-align: right;
}

.kb-start-modal__cred span {
  display: block;
  color: #9b95bd;
  font-size: 0.74rem;
}

.kb-start-modal__cred strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.kb-start-modal__cred button {
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(152, 110, 255, 0.22);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.kb-start-modal__cred button.is-done {
  background: rgba(152, 110, 255, 0.55);
  box-shadow: 0 0 12px rgba(152, 110, 255, 0.6);
}

.kb-start-modal__wait {
  margin: 0;
  color: #c9c3ea;
  font-size: 0.85rem;
}

.kb-start-modal__help {
  margin: 0.2rem 0 0;
  color: #b9b3da;
  font-size: 0.82rem;
}

.kb-start-modal__help a,
.kb-start-modal__go {
  color: #b9a8ff;
  font-weight: 900;
}

.kb-start-modal__text {
  margin: 0;
  font-weight: 800;
  line-height: 1.9;
}

.kb-start-modal [hidden] {
  display: none !important;
}
