:root {
  color-scheme: dark;
  --bg: #080a10;
  --bg-soft: #0d111b;
  --bg-elevated: rgba(19, 24, 36, 0.78);
  --surface: rgba(24, 30, 44, 0.82);
  --surface-solid: #171d2b;
  --surface-strong: #20283a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f9ff;
  --text-muted: #9da8bf;
  --text-soft: #c4ccdc;
  --accent: #57d5ff;
  --accent-2: #8d7bff;
  --accent-3: #28f0a8;
  --danger: #ff5f87;
  --warning: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --sidebar-width: 252px;
  --sidebar-collapsed: 82px;
  --topbar-height: 76px;
  --content-pad: clamp(18px, 3vw, 34px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(87, 213, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(141, 123, 255, 0.13), transparent 34rem),
    linear-gradient(135deg, #07090f 0%, #0c101a 47%, #090c13 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

body.drawer-open {
  overflow: hidden;
}

body.is-full-ban-screen {
  overflow: hidden;
  background: #000;
}

.ban-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
  color: #fff;
}

.ban-screen-panel {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.ban-screen-panel img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(87, 213, 255, 0.2);
}

.ban-screen-panel span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ban-screen-panel h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.ban-screen-panel p {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.ban-expiry {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 218, 255, 0.24);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(91, 218, 255, 0.1);
  color: #aeeaff;
  font-size: 0.92rem;
  font-weight: 900;
}

body.is-full-ban-screen .topbar,
body.is-full-ban-screen .sidebar,
body.is-full-ban-screen .sidebar-overlay,
body.is-full-ban-screen .app-main,
body.is-full-ban-screen .site-footer,
body.is-full-ban-screen .global-chat,
body.is-full-ban-screen .offline-badge,
body.is-full-ban-screen .toast-stack,
body.is-full-ban-screen .modal-root,
body.is-full-ban-screen .auth-gate,
body.is-full-ban-screen .app-loader,
body.is-full-ban-screen .noise-layer,
body.is-full-ban-screen .ambient {
  display: none;
}

.background-music-frame {
  position: fixed;
  left: -4px;
  bottom: -4px;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

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

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

button {
  border: 0;
}

button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img,
svg,
iframe {
  max-inline-size: 100%;
}

[hidden] {
  display: none !important;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.06;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
  transform: translateZ(0);
}

.ambient-a {
  top: 8rem;
  right: -14vw;
  background: rgba(87, 213, 255, 0.42);
}

.ambient-b {
  bottom: 8rem;
  left: -18vw;
  background: rgba(40, 240, 168, 0.22);
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 50% 44%, rgba(87, 213, 255, 0.14), transparent 19rem),
    radial-gradient(circle at 50% 56%, rgba(141, 123, 255, 0.12), transparent 22rem),
    #07090f;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.app-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-dot-grid {
  --dot-size: clamp(5px, 0.68vw, 9px);
  display: grid;
  grid-template-columns: repeat(13, var(--dot-size));
  gap: clamp(4px, 0.45vw, 7px);
  place-content: center;
  min-width: min(48vw, 218px);
  min-height: min(48vw, 218px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: clamp(18px, 4vw, 28px);
  background: rgba(15, 20, 31, 0.54);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dot {
  width: var(--dot-size);
  aspect-ratio: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 rgba(87, 213, 255, 0);
  opacity: 0.58;
  transform: scale(0.75);
  animation: loaderDotPulse 1450ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: calc(var(--dot-delay, 0) * 1ms);
}

.dot:nth-child(3n) {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
}

.dot:nth-child(5n) {
  background: linear-gradient(135deg, var(--accent-2), #ff7ad9);
}

.app-loader p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) minmax(240px, 420px) auto;
  gap: 14px;
  align-items: center;
  min-height: var(--topbar-height);
  padding: 12px var(--content-pad);
  border-bottom: 1px solid transparent;
  background: rgba(8, 10, 16, 0.62);
  backdrop-filter: blur(22px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.topbar > *,
.hero-glass > *,
.daily-feature > *,
.game-launch > *,
.stage-topline > *,
.profile-hero > *,
.site-footer > * {
  min-width: 0;
}

.topbar.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 10, 16, 0.86);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.mobile-menu-button {
  display: none !important;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 34px rgba(36, 63, 112, 0.2);
  padding: 4px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.03rem;
  line-height: 1;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.top-links {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.top-links a {
  border-radius: 999px;
  padding: 10px 11px;
  color: var(--text-muted);
  font-size: 0.91rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.top-links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-shell input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 18px 0 46px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.search-shell input:focus {
  border-color: rgba(87, 213, 255, 0.58);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(87, 213, 255, 0.1);
}

.search-shell input::placeholder {
  color: #737f95;
}

.search-icon {
  position: absolute;
  left: 18px;
  z-index: 1;
  width: 18px;
  color: var(--text-muted);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 17, 27, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.search-suggestions.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.suggestion,
.suggestion-empty {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.suggestion {
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.suggestion:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.suggestion span:last-child,
.suggestion-empty {
  display: grid;
  gap: 3px;
}

.suggestion small,
.suggestion-empty span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.suggestion-art {
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.game-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.game-thumb.has-cover,
.home-game-thumb.has-cover,
.experience-thumb.has-cover,
.suggestion-art.has-cover,
.hero-art.has-cover,
.mini-game-thumb.has-cover,
.game-action-thumb.has-cover {
  background: #171b24;
}

.game-thumb.has-cover::before,
.game-thumb.has-cover::after,
.home-game-thumb.has-cover::before,
.home-game-thumb.has-cover::after,
.experience-thumb.has-cover::after,
.suggestion-art.has-cover::before,
.hero-art.has-cover::before,
.hero-art.has-cover::after,
.game-action-thumb.has-cover::before,
.game-action-thumb.has-cover::after {
  display: none;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.cash-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(40, 240, 168, 0.26);
  border-radius: 999px;
  background: rgba(40, 240, 168, 0.1);
  color: var(--text);
  padding: 5px 12px 5px 6px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cash-chip:hover {
  border-color: rgba(40, 240, 168, 0.48);
  background: rgba(40, 240, 168, 0.16);
  transform: translateY(-2px);
}

.cash-chip span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #061018;
  font-size: 0.75rem;
}

.emergency-button {
  border-color: rgba(255, 95, 135, 0.22);
  color: #ff9ab4;
}

.icon-button,
.favorite-button,
.sidebar-toggle {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.icon-button:hover,
.favorite-button:hover,
.sidebar-toggle:hover {
  border-color: rgba(87, 213, 255, 0.4);
  background: rgba(87, 213, 255, 0.12);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  min-width: 18px;
  height: 18px;
  border: 2px solid #141927;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.profile-chip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  max-width: min(100%, 210px);
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 12px 5px 5px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.profile-chip:hover {
  border-color: rgba(87, 213, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #061018;
  font-weight: 900;
}

.avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
}

.avatar.has-image {
  background: #242832;
  color: transparent;
}

.avatar img,
.friend-avatar img,
.profile-avatar-large img,
.profile-stage-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-chip span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  line-height: 1;
}

.profile-chip small {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
}

.sidebar {
  position: fixed;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  z-index: 35;
  width: var(--sidebar-width);
  overflow: hidden;
  padding: 16px 14px 22px;
  border-right: 1px solid var(--line);
  background: rgba(9, 12, 19, 0.72);
  backdrop-filter: blur(22px);
  transition: width 220ms ease, transform 220ms ease;
}

.sidebar-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  min-height: 0;
  gap: 18px;
}

.sidebar-toggle {
  justify-self: end;
  width: 38px;
  height: 38px;
}

.sidebar-toggle svg {
  transition: transform 200ms ease;
}

.sidebar.is-collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar.is-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.side-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.side-link {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text-muted);
  padding: 0 13px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.side-link:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.side-link.is-active {
  border-color: rgba(87, 213, 255, 0.22);
  background: linear-gradient(90deg, rgba(87, 213, 255, 0.18), rgba(141, 123, 255, 0.08));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}

.side-link svg {
  flex: 0 0 auto;
}

.sidebar.is-collapsed .side-link {
  justify-content: center;
  padding: 0;
}

.sidebar.is-collapsed .side-link span,
.sidebar.is-collapsed .sidebar-player {
  display: none;
}

.sidebar-player {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.mini-rank {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-rank strong {
  color: var(--text);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width 360ms ease;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.54);
  opacity: 0;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.sidebar-overlay.is-visible {
  visibility: visible;
  opacity: 1;
}

.app-main {
  min-height: calc(100vh - var(--topbar-height));
  min-height: calc(100svh - var(--topbar-height));
  min-height: calc(100dvh - var(--topbar-height));
  margin-left: var(--sidebar-width);
  padding: 26px var(--content-pad) 60px;
  transition: margin-left 220ms ease, opacity 160ms ease, transform 160ms ease;
}

.app-main:focus {
  outline: 0;
}

.sidebar.is-collapsed ~ .app-main {
  margin-left: var(--sidebar-collapsed);
}

.app-main.is-transitioning {
  opacity: 0.25;
  transform: translateY(8px);
}

body.is-bugs-suggestions .app-main {
  min-height: calc(100vh - var(--topbar-height));
  min-height: calc(100svh - var(--topbar-height));
  min-height: calc(100dvh - var(--topbar-height));
  max-width: none;
  padding: 0;
}

body.is-bugs-suggestions .site-footer {
  display: none;
}

.bugs-suggestions-page {
  width: 100%;
  min-height: calc(100vh - var(--topbar-height));
  min-height: calc(100svh - var(--topbar-height));
  min-height: calc(100dvh - var(--topbar-height));
  background: #000;
}

.bugs-suggestions-frame {
  display: block;
  width: 100%;
  height: calc(100vh - var(--topbar-height));
  height: calc(100svh - var(--topbar-height));
  height: calc(100dvh - var(--topbar-height));
  border: 0;
  background: #000;
}

.hero {
  position: relative;
  min-height: clamp(420px, 52vw, 610px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after,
.game-thumb::before,
.game-thumb::after,
.daily-panel::before,
.category-tile::before,
.suggestion-art::before {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: -2px;
  opacity: 0.88;
  background:
    radial-gradient(circle at 18% 20%, var(--theme-a), transparent 30%),
    radial-gradient(circle at 82% 22%, var(--theme-b), transparent 28%),
    linear-gradient(135deg, var(--theme-c), #101622 65%, #090d14);
  animation: heroFloat 12s ease-in-out infinite alternate;
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(120deg, transparent 0%, black 24%, black 70%, transparent 100%);
  opacity: 0.24;
}

.hero-glass {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr);
  gap: clamp(18px, 3vw, 42px);
  min-height: inherit;
  align-items: center;
  padding: clamp(24px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.72), rgba(8, 10, 16, 0.24) 55%, rgba(8, 10, 16, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.hero-content {
  max-width: 720px;
}

.hero-badges,
.tag-row,
.hero-actions,
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.badge,
.eyebrow,
.tag-row span,
.thumb-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.badge,
.eyebrow,
.tag-row span {
  min-height: 30px;
  padding: 0 11px;
}

.badge-hot {
  border-color: rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.14);
  color: #ffe7a3;
}

.hero h1,
.collection-hero h1,
.profile-hero h1,
.error-view h1 {
  margin: 18px 0 14px;
  color: var(--text);
  font-size: clamp(2.45rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 0 0 28px;
  color: #dce6f8;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.button,
.play-button {
  position: relative;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 18px;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary,
.play-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 34px rgba(87, 213, 255, 0.22);
  color: #07111c;
}

.button-primary:hover,
.play-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 42px rgba(87, 213, 255, 0.3);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-self: stretch;
  align-content: center;
}

.hero-art {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.26), transparent 12%),
    radial-gradient(circle at 76% 34%, var(--theme-b), transparent 24%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-soft);
}

.hero-art::before {
  position: absolute;
  inset: 18%;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.035),
    0 0 70px rgba(255, 255, 255, 0.24);
  animation: slowSpin 18s linear infinite;
}

.hero-art::after {
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 38%;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(2px);
}

.hero-art-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to top, black, transparent 76%);
  opacity: 0.38;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-meta div,
.stat-tile,
.profile-card,
.game-stat-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
}

.hero-meta span,
.stat-tile span,
.profile-card span,
.game-stat-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-meta strong,
.stat-tile strong,
.profile-card strong,
.game-stat-grid strong {
  color: var(--text);
  font-size: 1.22rem;
}

.hero-controls {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.5);
  backdrop-filter: blur(12px);
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--accent);
}

.flip {
  transform: rotate(180deg);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  min-width: 0;
}

.home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-top: 8px;
}

.home-heading > * {
  min-width: 0;
}

.home-heading h1 {
  margin: 6px 0 8px;
  font-size: clamp(2.35rem, 6vw, 3.8rem);
  line-height: 0.96;
}

.home-heading p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.home-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  justify-content: flex-end;
}

.home-chip {
  display: grid;
  min-width: 120px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 16px;
}

.home-chip span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-chip strong {
  font-size: 1.1rem;
}

.home-chip-action {
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-chip-action:hover {
  border-color: rgba(87, 213, 255, 0.36);
  background: rgba(87, 213, 255, 0.12);
  transform: translateY(-2px);
}

.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px;
  align-items: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.friends-panel,
.most-played-panel,
.home-section {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
}

.friends-panel .section-heading,
.most-played-panel .section-heading,
.home-section .section-heading {
  margin-bottom: 16px;
}

.friend-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 116px);
  gap: 16px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

.friend-empty-state {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.friend-empty-copy {
  display: grid;
  gap: 8px;
}

.friend-empty-copy strong {
  font-size: 1.1rem;
}

.friend-empty-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.friend-add-card,
.friend-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  min-height: 170px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  padding: 6px 4px 0;
  text-align: center;
}

.friend-add-card {
  cursor: pointer;
}

.friend-add-card span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 3rem;
  line-height: 1;
}

.friend-add-card strong {
  font-size: 0.96rem;
}

.friend-avatar {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.28), transparent 14%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.friend-avatar span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.3rem;
  font-weight: 900;
}

.friend-presence {
  position: absolute;
  right: 2px;
  bottom: 5px;
  width: 15px;
  height: 15px;
  border: 3px solid #10141f;
  border-radius: 50%;
  background: #5d6677;
}

.friend-presence.is-online {
  background: #22d98e;
}

.friend-card h3,
.mini-game-copy h3,
.experience-body h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.friend-card h3 {
  font-size: 0.95rem;
}

.friend-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.most-played-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mini-game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mini-game-card:hover {
  border-color: rgba(87, 213, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.mini-game-link {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.mini-game-thumb {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.25), transparent 15%),
    radial-gradient(circle at 78% 24%, var(--theme-b), transparent 26%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
}

.mini-game-copy p,
.experience-meta span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.reward-strip-compact {
  margin-top: 0;
  padding-top: 18px;
  padding-bottom: 18px;
}

.reward-strip-compact h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.home-section {
  margin-top: 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.experience-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.experience-card:hover {
  border-color: rgba(87, 213, 255, 0.34);
  background: rgba(255, 255, 255, 0.082);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  transform: translateY(-5px);
}

.experience-link {
  display: grid;
  gap: 0;
}

.experience-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.25), transparent 15%),
    radial-gradient(circle at 78% 24%, var(--theme-b), transparent 28%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
}

.experience-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to top, black, transparent);
  opacity: 0.34;
}

.experience-body {
  display: grid;
  gap: 8px;
  padding: 14px 14px 4px;
}

.experience-meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 0 14px 14px;
}

.experience-card.is-row {
  min-width: 248px;
}

.home-shelf {
  margin-top: 0;
}

body.is-home-feed {
  --sidebar-width: 280px;
  --topbar-height: 38px;
  background: #101116;
}

.is-home-feed .noise-layer,
.is-home-feed .ambient {
  display: none;
}

.is-home-feed .topbar {
  grid-template-columns: auto minmax(520px, 1fr) minmax(360px, 520px) auto;
  gap: 18px;
  min-height: var(--topbar-height);
  padding: 3px 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #18191f;
  box-shadow: none;
  backdrop-filter: none;
}

.is-home-feed .brand {
  gap: 10px;
}

.is-home-feed .brand-mark {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.is-home-feed .brand-copy strong {
  font-size: 1rem;
}

.is-home-feed .brand-copy small {
  display: none;
}

.is-home-feed .top-links {
  justify-content: space-around;
  gap: 16px;
}

.is-home-feed .top-links a {
  border-radius: 6px;
  padding: 7px 10px;
  color: #eceef4;
  font-size: 0.95rem;
  font-weight: 700;
}

.is-home-feed .search-shell input {
  height: 30px;
  border-color: #3a3c45;
  border-radius: 8px;
  background: #24262f;
  padding-left: 36px;
}

.is-home-feed .search-icon {
  left: 12px;
  width: 17px;
}

.is-home-feed .top-actions {
  gap: 8px;
}

.is-home-feed .cash-chip,
.is-home-feed .icon-button,
.is-home-feed .profile-chip {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.is-home-feed .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.is-home-feed .cash-chip {
  padding: 0 4px;
}

.is-home-feed .cash-chip span {
  display: none;
}

.is-home-feed .profile-chip {
  gap: 7px;
  max-width: 190px;
  padding: 0 5px;
}

.is-home-feed .avatar {
  width: 28px;
  height: 28px;
}

.is-home-feed .sidebar {
  width: var(--sidebar-width);
  padding: 20px 14px 16px;
  border-right-color: #2b2d35;
  background: #111217;
  backdrop-filter: none;
}

.is-home-feed .sidebar-toggle,
.is-home-feed .sidebar-player {
  display: none;
}

.is-home-feed .sidebar-inner {
  grid-template-rows: 1fr;
}

.is-home-feed .side-nav {
  gap: 7px;
  padding-right: 0;
}

.is-home-feed .side-link {
  min-height: 40px;
  border-radius: 7px;
  color: #e5e7ef;
  padding: 0 12px;
}

.is-home-feed .side-link:hover {
  border-color: transparent;
  background: #20222a;
}

.is-home-feed .side-link.is-active {
  border-color: transparent;
  background: #2a2c35;
  box-shadow: none;
}

.is-home-feed .app-main {
  max-width: none;
  padding: 34px 32px 80px;
  background: #101116;
}

.is-home-feed .site-footer {
  display: none;
}

.home-shell-roblox {
  gap: 28px;
}

.home-heading-roblox {
  display: block;
  padding: 0;
}

.home-heading-roblox h1 {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  line-height: 1.05;
}

.home-friends-feed,
.home-feed-section {
  min-width: 0;
}

.home-feed-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.home-feed-heading h2 {
  margin: 0;
  color: #f2f3f7;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.15;
}

.home-feed-heading a {
  color: #f2f3f7;
  font-weight: 800;
}

.home-friend-strip {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 104px;
  overflow: hidden;
}

.home-friend-strip.has-friends {
  align-items: start;
}

.home-friend-add {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #f4f5f8;
  cursor: pointer;
}

.home-friend-add span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  background: #2a2c35;
  color: #fff;
  font-size: 3.8rem;
  font-weight: 200;
  line-height: 1;
}

.home-friend-add strong {
  font-size: 0.82rem;
  font-weight: 500;
}

.home-no-friends {
  max-width: 340px;
  color: #b8bdc8;
}

.home-no-friends strong {
  display: block;
  margin-bottom: 5px;
  color: #f2f3f7;
}

.home-no-friends p {
  margin: 0;
  line-height: 1.45;
}

.home-leaderboard-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.54fr);
  gap: 18px;
  align-items: center;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background:
    radial-gradient(circle at 16% 18%, rgba(87, 213, 255, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(36, 38, 48, 0.96), rgba(18, 20, 27, 0.98));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  color: #f5f7ff;
  padding: clamp(16px, 2vw, 22px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-leaderboard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 213, 255, 0.32);
  box-shadow: 0 22px 44px rgba(40, 174, 255, 0.14);
}

.home-leaderboard-card .eyebrow {
  margin-bottom: 6px;
}

.home-leaderboard-card strong {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.05;
}

.home-leaderboard-card p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #aeb4c2;
  line-height: 1.5;
}

.home-leaderboard-podium {
  display: grid;
  gap: 8px;
}

.home-leaderboard-podium span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  padding: 9px 10px;
}

.home-leaderboard-podium b {
  color: #74d5ff;
  font-size: 0.82rem;
}

.home-leaderboard-podium em {
  overflow: hidden;
  color: #f3f5fb;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-friend-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88px, 104px);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.home-friend {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #f3f4f8;
  text-align: center;
}

.home-friend strong,
.home-friend small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-friend strong {
  font-size: 0.82rem;
}

.home-friend small {
  color: #aeb4c2;
  font-size: 0.72rem;
}

.friend-avatar {
  display: grid;
  width: 76px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(145deg, #353a48, #171a23);
  color: #f5f7ff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.friend-avatar.has-image {
  background: #242832;
}

.home-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 30px 16px;
}

.home-continue-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 190px);
  gap: 14px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 10px;
}

.home-game-tile {
  min-width: 0;
}

.home-game-tile a {
  display: grid;
  gap: 8px;
}

.home-game-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.3), transparent 14%),
    radial-gradient(circle at 78% 28%, var(--theme-b), transparent 30%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
}

.home-game-thumb::before,
.home-game-thumb::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.home-game-thumb::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.34;
  mask-image: linear-gradient(to top, black, transparent 82%);
}

.home-game-thumb::after {
  right: 12%;
  bottom: 12%;
  width: 34%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.16);
  transform: rotate(17deg);
}

.home-game-tile h3 {
  display: -webkit-box;
  min-height: 1.25em;
  margin: 0;
  overflow: hidden;
  color: #f3f4f8;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.home-game-tile p {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 0;
  color: #c8ccd6;
  font-size: 0.82rem;
  font-weight: 500;
}

.home-game-tile p svg {
  width: 14px;
  height: 14px;
  color: #d6d9e2;
}

.home-game-tile:hover .home-game-thumb {
  filter: brightness(1.08);
}

.stat-tile {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.stat-tile::after {
  position: absolute;
  inset: auto -20% -55% 35%;
  height: 110px;
  content: "";
  border-radius: 999px;
  background: rgba(87, 213, 255, 0.12);
  filter: blur(20px);
}

.stat-tile small,
.profile-card small,
.game-stat-grid small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
}

.action-stat {
  cursor: pointer;
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.action-stat:hover {
  border-color: rgba(87, 213, 255, 0.42);
  background: rgba(87, 213, 255, 0.12);
  transform: translateY(-3px);
}

.game-shelf,
.daily-feature,
.discover-section,
.category-board,
.profile-layout,
.settings-layout,
.error-view {
  margin-top: 38px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading span:not(.tag-row span),
.collection-hero .eyebrow,
.profile-hero .eyebrow {
  color: var(--accent);
}

.section-heading h2,
.daily-copy h3,
.game-info-panel h2,
.achievement-panel h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: 0;
}

.section-heading p,
.collection-hero p,
.profile-hero p,
.game-info-panel p,
.error-view p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.split-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
}

.card-row {
  display: grid;
  grid-auto-columns: minmax(240px, 280px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 3px 3px 18px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.game-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  scroll-snap-align: start;
  transform: translateZ(0);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.game-card:hover {
  border-color: rgba(87, 213, 255, 0.34);
  background: rgba(255, 255, 255, 0.082);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34), 0 0 40px rgba(87, 213, 255, 0.1);
  transform: translateY(-8px);
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.25), transparent 15%),
    radial-gradient(circle at 78% 24%, var(--theme-b), transparent 28%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
}

.game-thumb::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to top, black, transparent);
  opacity: 0.36;
}

.game-thumb::after {
  right: 11%;
  bottom: 13%;
  width: 32%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.18);
  transform: rotate(18deg);
  transition: transform 260ms ease;
}

.game-card:hover .game-thumb::after {
  transform: rotate(28deg) scale(1.08);
}

.thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 7px 9px;
  background: rgba(8, 10, 16, 0.42);
  backdrop-filter: blur(10px);
}

.thumb-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
  backdrop-filter: blur(12px);
  transition: transform 200ms ease, background 200ms ease;
}

.game-card:hover .thumb-play {
  background: rgba(87, 213, 255, 0.28);
  transform: scale(1.08);
}

.game-card-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.card-title-row h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.favorite-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.favorite-button.is-active,
.icon-button.is-favorite {
  border-color: rgba(255, 95, 135, 0.42);
  background: rgba(255, 95, 135, 0.15);
  color: #ff8eaa;
}

.game-card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row span {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.68rem;
}

.card-meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.play-button {
  width: 100%;
  min-height: 42px;
}

.empty-card {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 24px;
  text-align: center;
}

.empty-card strong {
  color: var(--text);
}

.empty-card p {
  margin: 0;
  line-height: 1.5;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: rgba(87, 213, 255, 0.12);
  color: var(--accent);
}

.daily-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.daily-panel {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 72% 34%, var(--theme-b), transparent 32%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
  box-shadow: var(--shadow-soft);
}

.daily-panel::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.22;
}

.daily-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 420px;
  gap: 12px;
  padding: clamp(22px, 4vw, 42px);
}

.daily-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.daily-orbit {
  position: absolute;
  right: 8%;
  bottom: -20%;
  width: min(42vw, 380px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 55px rgba(255, 255, 255, 0.1), 0 0 70px rgba(255, 255, 255, 0.14);
  animation: slowSpin 24s linear infinite;
}

.discover-section {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.toolbar select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: #151b29;
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}

.category-pills {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 18px;
}

.nav-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-muted);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-pill:hover,
.nav-pill.is-active {
  border-color: rgba(87, 213, 255, 0.35);
  background: rgba(87, 213, 255, 0.13);
  color: var(--text);
  transform: translateY(-1px);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}

.collection-hero {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 20%, rgba(87, 213, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.collection-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 6vw, 5rem);
}

.collection-hero.is-compact {
  padding: clamp(16px, 3vw, 28px);
  border-radius: 22px;
}

.collection-hero.is-compact h1 {
  margin-bottom: 5px;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}

.collection-hero.is-compact p {
  margin: 0;
}

.discover-section.is-games-catalog {
  margin-top: 0;
  padding: clamp(14px, 2vw, 18px);
}

.discover-section.is-games-catalog .section-heading {
  margin-bottom: 12px;
}

.discover-section.is-games-catalog .category-pills {
  padding-bottom: 12px;
}

.category-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 28%, var(--theme-b), transparent 26%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.category-tile::before {
  right: -38px;
  bottom: -38px;
  width: 150px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  transform: rotate(21deg);
}

.category-tile:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.category-tile span,
.category-tile strong,
.category-tile small {
  position: relative;
  display: block;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  text-transform: uppercase;
}

.category-tile strong {
  margin: 10px 0;
  font-size: 1.8rem;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.76);
}

.game-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.game-stage-shell {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-soft);
}

.game-stage-shell {
  overflow: hidden;
}

.game-launch-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 205, 86, 0.16), rgba(87, 213, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px clamp(14px, 2.4vw, 22px);
}

.game-launch-notice strong {
  color: #ffd979;
}

.game-launch-notice span {
  color: var(--text-muted);
  font-weight: 800;
}

.stage-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
}

.stage-topline h1 {
  margin: 5px 0 0;
  font-size: clamp(1.45rem, 4vw, 2.4rem);
}

.game-frame-wrap {
  position: relative;
  overflow: hidden;
  background: #05070c;
  aspect-ratio: 16 / 9;
}

.game-frame-wrap.is-portrait {
  width: min(100%, 520px, calc((100dvh - 190px) * 0.62));
  min-width: min(100%, 280px);
  aspect-ratio: 62 / 100;
  margin-inline: auto;
}

.game-frame-wrap:fullscreen {
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.game-frame-wrap.is-portrait:fullscreen {
  width: 100vw;
}

.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.frame-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at center, rgba(87, 213, 255, 0.12), transparent 38%),
    #060913;
  color: var(--text-muted);
  font-weight: 900;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.frame-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.game-action-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 2.6vw, 26px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(20, 34, 50, 0.9), rgba(12, 18, 29, 0.96)),
    rgba(255, 255, 255, 0.045);
}

.game-action-identity {
  display: grid;
  grid-template-columns: clamp(72px, 8vw, 96px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: center;
  min-width: 0;
}

.game-action-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(87, 213, 255, 0.2), rgba(143, 125, 255, 0.2));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.game-action-title-block {
  min-width: 0;
}

.game-action-title-block span {
  display: block;
  color: var(--accent);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 900;
}

.game-action-title-block strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.03;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-action-title-block em {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(116, 203, 255, 0.34);
  border-radius: 999px;
  background: rgba(87, 213, 255, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  padding: 5px 10px;
}

.game-action-controls {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  justify-content: flex-end;
}

.mobile-game-actions {
  display: none;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(8, 12, 20, 0.98)),
    rgba(255, 255, 255, 0.04);
}

.mobile-game-action {
  justify-content: center;
  min-height: 50px;
  min-width: 0;
  padding-inline: 10px;
  font-size: clamp(0.78rem, 3.3vw, 0.92rem);
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.mobile-game-action svg {
  width: 20px;
  height: 20px;
}

.game-action-button {
  width: clamp(46px, 5vw, 58px);
  height: clamp(46px, 5vw, 58px);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.92);
}

.game-action-button svg {
  width: clamp(25px, 3vw, 34px);
  height: clamp(25px, 3vw, 34px);
  stroke-width: 1.55;
}

.game-action-button.is-active {
  border-color: rgba(87, 213, 255, 0.48);
  background: rgba(87, 213, 255, 0.16);
  color: #57d5ff;
}

.game-action-button.is-disliked {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.8);
}

.game-rating-score {
  min-width: 76px;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 900;
  text-align: center;
}

.skeleton {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton::after {
  display: block;
  width: 35%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: skeleton 1.2s ease-in-out infinite;
}

.skeleton-wide {
  width: 220px;
  height: 13px;
}

.skeleton-short {
  width: 138px;
  height: 10px;
}

.game-info-panel {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.large-thumb {
  border-radius: 18px;
}

.game-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-layout,
.settings-layout {
  display: grid;
  gap: 20px;
}

.friends-hero {
  background:
    radial-gradient(circle at 82% 10%, rgba(87, 213, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 12% 30%, rgba(40, 240, 168, 0.12), transparent 24rem),
    rgba(255, 255, 255, 0.045);
}

.friends-warning {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 209, 102, 0.26);
  border-radius: 18px;
  background: rgba(255, 209, 102, 0.08);
  color: #ffe9ad;
  padding: 18px;
}

.friends-warning p {
  margin: 0;
  color: #dac99b;
}

.friends-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.friends-dashboard article,
.friends-panel-large {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
}

.friends-dashboard article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: center;
  padding: 20px;
}

.friends-dashboard span,
.friend-card-meta span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.friends-dashboard strong {
  color: #f5f7fb;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.friends-panel-large {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2vw, 24px);
}

.friend-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 10px 10px 14px;
}

.friend-search svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.friend-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 14px;
}

.friend-card {
  display: grid;
  gap: 16px;
  justify-items: stretch;
  align-content: stretch;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(87, 213, 255, 0.09), transparent 14rem),
    rgba(12, 16, 25, 0.72);
  padding: 16px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.friend-card:hover {
  border-color: rgba(87, 213, 255, 0.28);
  background:
    radial-gradient(circle at top right, rgba(87, 213, 255, 0.14), transparent 14rem),
    rgba(18, 23, 34, 0.86);
  transform: translateY(-2px);
}

.friend-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.friend-card-top .friend-avatar {
  width: 64px;
}

.friend-card h3,
.friend-card p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-card h3 {
  color: #f5f7fb;
  font-size: 1.04rem;
}

.friend-card p {
  color: var(--text-muted);
}

.friend-card-meta,
.friend-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-card-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 10px;
}

.friend-card-actions .button {
  min-height: 42px;
  flex: 1 1 112px;
}

.messages-page {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  overflow: hidden;
  min-height: min(760px, calc(100dvh - var(--topbar-height) - 72px));
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 213, 255, 0.08), transparent 24rem),
    rgba(8, 10, 14, 0.78);
  box-shadow: var(--shadow);
}

.messages-sidebar-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(28, 30, 35, 0.9);
}

.messages-list-header,
.message-chat-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.messages-list-header span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.messages-list-header h1 {
  margin: 2px 0 0;
  font-size: 1.5rem;
}

.message-search {
  position: relative;
  display: block;
  margin: 12px 10px;
}

.message-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transform: translateY(-50%);
}

.message-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 12px 12px 40px;
}

.message-search input:focus {
  border-color: rgba(87, 213, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(87, 213, 255, 0.08);
}

.messages-warning {
  margin: 0 10px 10px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.08);
  color: #ffe7a8;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 10px 12px;
}

.message-thread-list {
  overflow: auto;
  min-height: 0;
  padding: 0 8px 10px;
}

.message-thread {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.message-thread:hover,
.message-thread.is-active {
  background: rgba(255, 255, 255, 0.095);
}

.message-thread:hover {
  transform: translateX(2px);
}

.message-thread .friend-avatar {
  width: 50px;
}

.message-thread-copy,
.message-thread-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.message-thread-copy strong,
.message-thread-copy small,
.message-thread-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread-copy strong {
  font-size: 0.98rem;
}

.message-thread-copy small,
.message-thread-meta small {
  color: var(--text-muted);
}

.message-thread-meta {
  justify-items: end;
}

.message-thread-meta b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-3);
  color: #03100b;
  font-size: 0.72rem;
}

.message-conversation-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  background:
    linear-gradient(rgba(8, 10, 14, 0.84), rgba(8, 10, 14, 0.84)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.5px);
  background-size: auto, 54px 54px, 78px 78px;
}

.message-chat-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: rgba(31, 33, 38, 0.92);
}

.message-chat-header .friend-avatar {
  width: 46px;
}

.message-chat-header strong,
.message-chat-header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-chat-header small {
  color: var(--text-muted);
}

.message-chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  padding: clamp(14px, 3vw, 26px);
}

.message-day-chip {
  align-self: center;
  border-radius: 999px;
  background: rgba(31, 33, 38, 0.96);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 12px;
}

.message-bubble {
  align-self: flex-start;
  max-width: min(620px, 76%);
  border-radius: 14px 14px 14px 4px;
  background: rgba(37, 39, 44, 0.96);
  color: var(--text);
  padding: 10px 12px 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.message-bubble.is-you {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: #005c4b;
}

.message-bubble:empty {
  width: 280px;
  min-height: 48px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

.message-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.message-bubble time {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  text-align: right;
}

.message-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(31, 33, 38, 0.95);
  padding: 12px 14px;
}

.message-composer input {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  padding: 14px 16px;
}

.message-empty-conversation,
.message-no-chat,
.messages-empty-list {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 100%;
  color: var(--text-muted);
  padding: 24px;
  text-align: center;
}

.messages-empty-list {
  min-height: 260px;
}

.message-empty-conversation strong,
.messages-empty-list strong,
.message-no-chat h2 {
  margin: 0;
  color: var(--text);
}

.profile-showcase {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 62vh, 700px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(31, 34, 43, 0.98) 0%, rgba(22, 24, 31, 0.98) 55%, rgba(15, 16, 21, 1) 100%);
  padding: clamp(18px, 3vw, 34px) clamp(22px, 6vw, 86px) 0;
}

.profile-showcase.equipped-trail-cyan,
body[data-equipped-item="trail-cyan"] .profile-chip {
  box-shadow: inset 0 0 0 1px rgba(87, 213, 255, 0.22), 0 0 46px rgba(87, 213, 255, 0.12);
}

.profile-showcase.equipped-badge-founder {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 209, 102, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(31, 34, 43, 0.98) 0%, rgba(22, 24, 31, 0.98) 55%, rgba(15, 16, 21, 1) 100%);
}

.profile-showcase.equipped-frame-orbit .profile-avatar-large,
.profile-showcase.equipped-frame-orbit .profile-stage-avatar {
  outline: 4px solid rgba(135, 126, 255, 0.38);
  box-shadow: 0 0 0 10px rgba(135, 126, 255, 0.08), 0 28px 80px rgba(0, 0, 0, 0.38);
}

.profile-showcase.equipped-emote-victory .profile-stage-avatar {
  animation: floaty 3.8s ease-in-out infinite;
}

.profile-showcase.equipped-theme-midnight {
  background:
    radial-gradient(circle at 50% 0%, rgba(87, 213, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(8, 10, 18, 0.98) 0%, rgba(15, 16, 28, 0.98) 55%, rgba(5, 7, 12, 1) 100%);
}

.profile-showcase.equipped-pet-spark::before {
  position: absolute;
  top: 18%;
  right: 18%;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(40, 240, 168, 0.95), rgba(87, 213, 255, 0.2) 48%, transparent 70%);
  content: "";
  filter: blur(0.2px);
  animation: floaty 4.5s ease-in-out infinite;
}

.profile-stage {
  position: relative;
  display: grid;
  min-height: clamp(220px, 30vh, 330px);
  place-items: center;
}

.profile-stage::after {
  position: absolute;
  right: -8%;
  bottom: -20%;
  left: -8%;
  height: 46%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(8, 9, 13, 0.72));
  pointer-events: none;
}

.profile-stage-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(150px, 13vw, 230px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 44% 48% 42% 50%;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(145deg, #3b4458, #151923);
  color: #eef3ff;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(-8px) rotate(-2deg);
}

.profile-stage-avatar.has-image {
  overflow: hidden;
  background: #242832;
}

.profile-view-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  min-width: 78px;
  height: 84px;
  border-radius: 14px;
  background: #2b2e38;
  color: #f4f5f8;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 900;
}

.profile-identity-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas: "avatar name actions";
  grid-template-columns: auto minmax(0, 1fr) minmax(420px, max-content);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: center;
  margin-top: -32px;
}

.profile-picture-stack {
  position: relative;
  grid-area: avatar;
  width: clamp(132px, 13vw, 224px);
}

.profile-avatar-large {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.25), transparent 22%),
    linear-gradient(145deg, #323743, #181b24);
  color: #f3f5fb;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.4);
}

.profile-avatar-large.has-image {
  background: #242832;
}

.profile-picture-badge {
  position: absolute;
  right: 5%;
  bottom: 6%;
  display: grid;
  width: clamp(34px, 3.3vw, 48px);
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid #15171d;
  border-radius: 999px;
  background: #3fc56c;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.profile-picture-badge svg {
  width: 58%;
  height: 58%;
}

.profile-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-name-block {
  grid-area: name;
  min-width: 0;
}

.profile-name-block h1 {
  margin: 0 0 6px;
  overflow: hidden;
  color: #f5f5f8;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-name-block p {
  margin: 0;
  overflow: hidden;
  color: #eef0f6;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  grid-area: actions;
  gap: 12px;
  justify-content: flex-end;
  min-width: 0;
}

.profile-action-row .button {
  min-width: clamp(132px, 11vw, 220px);
  min-height: 58px;
  border-radius: 12px;
  font-size: 1rem;
}

.profile-more-button {
  width: 64px;
  height: 58px;
  border-radius: 12px;
  background: #2b2d36;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.profile-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.profile-social-pills span,
.profile-social-pills a {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  border-radius: 999px;
  background: #2b2d36;
  color: #f3f4f7;
  padding: 0 22px;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: 900;
}

.profile-social-pills a:hover {
  background: rgba(87, 213, 255, 0.16);
  color: #fff;
}

.profile-bio-block {
  margin-top: 28px;
  color: #c9cdd7;
  font-size: 1.28rem;
}

.profile-bio-block p {
  margin: 0 0 8px;
}

.profile-bio-block button {
  border: 0;
  background: none;
  color: #d8dbe4;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.bio-edit-form {
  display: grid;
  max-width: 620px;
  gap: 10px;
  margin-top: 14px;
}

.bio-edit-form textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.bio-edit-form textarea:focus {
  border-color: rgba(87, 213, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(87, 213, 255, 0.1);
}

.profile-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-tabs button {
  min-height: 64px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #c7cad4;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
}

.profile-tabs button.is-active {
  border-color: #f2f3f7;
  color: #f2f3f7;
}

.profile-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 18%, rgba(40, 240, 168, 0.16), transparent 28rem),
    rgba(255, 255, 255, 0.055);
}

.public-profile {
  display: grid;
  gap: 22px;
}

.public-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(87, 213, 255, 0.16), transparent 26rem),
    rgba(255, 255, 255, 0.045);
  padding: clamp(22px, 4vw, 42px);
}

.public-profile-hero h1 {
  margin: 8px 0 4px;
  overflow-wrap: anywhere;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
}

.public-profile-hero p {
  margin: 0;
  color: var(--text-muted);
}

.public-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.public-profile-actions .button {
  min-height: 46px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  font-size: 2rem;
}

.profile-grid,
.settings-grid,
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.profile-card,
.achievement,
.setting-row {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.profile-card {
  display: grid;
  gap: 8px;
}

.achievement-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.achievement {
  display: grid;
  gap: 9px;
  min-height: 140px;
  align-content: center;
  border: 1px solid var(--line);
  padding: 18px;
  color: var(--text-muted);
}

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

.achievement.is-unlocked {
  border-color: rgba(40, 240, 168, 0.28);
  background: rgba(40, 240, 168, 0.1);
  color: var(--text);
}

.achievement.is-unlocked svg {
  color: var(--accent-3);
}

.setting-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 18px;
}

.setting-row span {
  display: grid;
  gap: 5px;
}

.setting-row small {
  color: var(--text-muted);
}

.setting-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.button-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.button-row:hover {
  border-color: rgba(255, 95, 135, 0.28);
  background: rgba(255, 95, 135, 0.08);
}

.error-view {
  display: grid;
  min-height: 60vh;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.site-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-left: var(--sidebar-width);
  padding: 28px var(--content-pad) 38px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  transition: margin-left 220ms ease;
}

.sidebar.is-collapsed ~ .app-main ~ .site-footer {
  margin-left: var(--sidebar-collapsed);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--text-soft);
  font-weight: 800;
}

.global-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 82;
  pointer-events: none;
}

.global-chat-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(87, 213, 255, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(87, 213, 255, 0.96), rgba(135, 126, 255, 0.96));
  color: #061018;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 0 8px rgba(87, 213, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.global-chat-launcher:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), 0 0 0 10px rgba(87, 213, 255, 0.12);
}

.global-chat-launcher svg {
  width: 25px;
  height: 25px;
}

.global-chat-launcher span {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #0b0e15;
  border-radius: 999px;
  background: #ff5f87;
  color: #fff;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 900;
}

.global-chat-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100dvh - 108px));
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(87, 213, 255, 0.15), transparent 18rem),
    radial-gradient(circle at 10% 100%, rgba(40, 240, 168, 0.1), transparent 16rem),
    rgba(12, 16, 25, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(22px);
}

.global-chat.is-open .global-chat-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.global-chat-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 14px 12px;
}

.global-chat-header div:first-child {
  display: grid;
  gap: 2px;
}

.global-chat-header span {
  color: var(--accent-3);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.global-chat-header strong {
  color: #f5f7fb;
  font-size: 1.05rem;
}

.global-chat-header-actions {
  display: flex;
  gap: 8px;
}

.global-chat-header-actions .icon-button {
  width: 38px;
  height: 38px;
}

.global-chat-header-actions [data-action="close-global-chat"] svg {
  transform: rotate(90deg);
}

.global-chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
}

.global-chat-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.global-chat-message.is-you p {
  border-color: rgba(87, 213, 255, 0.18);
  background: rgba(87, 213, 255, 0.1);
}

.global-chat-mini-avatar {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(145deg, #343a48, #191d27);
  color: #f4f7ff;
  font-size: 0.8rem;
  font-weight: 900;
}

.global-chat-mini-avatar.has-image {
  background: #242832;
}

.global-chat-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-chat-message-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 4px;
}

.global-chat-message-meta a,
.global-chat-message-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-chat-message-meta a {
  color: #f5f7fb;
  font-size: 0.84rem;
  font-weight: 900;
}

.global-chat-message-meta span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.global-chat-message p {
  margin: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #e9edf7;
  padding: 9px 10px;
  line-height: 1.45;
}

.global-chat-admin-actions,
.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.global-chat-admin-actions button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  cursor: pointer;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.global-chat-admin-actions button:hover {
  border-color: rgba(255, 95, 135, 0.3);
  color: #fff;
}

.global-chat-empty,
.global-chat-error,
.global-chat-auth {
  margin: 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 12px;
}

.global-chat-empty {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  text-align: center;
}

.global-chat-empty strong {
  color: #f5f7fb;
}

.global-chat-error {
  border-color: rgba(255, 209, 102, 0.24);
  background: rgba(255, 209, 102, 0.08);
  color: #ffe5a3;
}

.global-chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
}

.global-chat-form input {
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.global-chat-form input:focus {
  border-color: rgba(87, 213, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(87, 213, 255, 0.1);
}

.global-chat-form .button {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 14px;
}

.global-chat-auth {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.global-chat-auth .button {
  min-height: 36px;
  flex: 0 0 auto;
}

.chat-skeleton {
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.chat-skeleton.short {
  width: 72%;
}

.offline-badge {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 81;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  color: #ffe7a3;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.offline-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.modal-root.is-open {
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(14px);
}

.announcement-modal {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(87, 213, 255, 0.14), transparent 18rem),
    rgba(14, 19, 30, 0.96);
  box-shadow: var(--shadow);
  padding: 28px;
}

.announcement-modal h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.announcement-modal p {
  margin: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.live-event-modal {
  overflow: hidden;
}

.live-event-image,
.live-event-video {
  display: block;
  width: 100%;
  max-height: min(46dvh, 340px);
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.live-event-video {
  aspect-ratio: 16 / 9;
  height: auto;
}

.live-event-fireworks::before,
.live-event-explosion::before,
.live-event-emoji::before {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  opacity: 0.45;
  background:
    radial-gradient(circle at 18% 25%, rgba(110, 231, 255, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 18%, rgba(255, 215, 97, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 72%, rgba(255, 91, 141, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 74%, rgba(125, 104, 255, 0.7) 0 2px, transparent 3px);
  animation: liveEventSpark 2.4s ease-in-out infinite alternate;
}

.live-event-explosion::before {
  background: radial-gradient(circle, rgba(255, 151, 71, 0.42), transparent 58%);
}

.live-event-emoji {
  position: relative;
  z-index: 1;
  margin: 8px 0 16px;
  color: var(--accent);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
}

@keyframes liveEventSpark {
  from {
    transform: rotate(0deg) scale(0.96);
  }

  to {
    transform: rotate(10deg) scale(1.04);
  }
}

.tabs-promo-modal {
  overflow: hidden;
}

.tabs-promo-modal::before {
  content: "";
  position: absolute;
  inset: auto -20% -38% 34%;
  height: 220px;
  background: radial-gradient(circle, rgba(125, 104, 255, 0.26), transparent 68%);
  pointer-events: none;
}

.tabs-promo-art {
  position: relative;
  margin: -8px -8px 18px;
}

.tabs-promo-thumb {
  min-height: 190px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}

.launch-choice-modal {
  width: min(680px, calc(100vw - 28px));
}

.launch-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.launch-choice-card {
  min-height: 132px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(87, 213, 255, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  padding: 20px;
  text-align: left;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.launch-choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(116, 203, 255, 0.72);
  background:
    radial-gradient(circle at top left, rgba(87, 213, 255, 0.28), transparent 12rem),
    rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(52, 174, 255, 0.18);
}

.launch-choice-card strong,
.launch-choice-card span {
  display: block;
}

.launch-choice-card strong {
  margin-bottom: 8px;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 900;
}

.launch-choice-card span {
  color: var(--text-muted);
  font-weight: 800;
}

@media (max-width: 560px) {
  .launch-choice-grid {
    grid-template-columns: 1fr;
  }

  .launch-choice-card {
    min-height: 104px;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.reward-strip,
.wallet-banner,
.account-panel,
.leaderboard-panel,
.control-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.reward-strip,
.wallet-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 38px;
}

.reward-strip h2,
.wallet-banner strong {
  margin: 6px 0 4px;
}

.reward-strip p,
.wallet-banner p {
  margin: 0;
  color: var(--text-muted);
}

.wallet-banner span {
  color: var(--accent-3);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-banner strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.shop-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.shop-card,
.leader-row,
.control-panel {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.shop-card.is-visible,
.leader-row.is-visible,
.control-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-soft);
}

.shop-art {
  position: relative;
  min-height: 180px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 14%),
    radial-gradient(circle at 80% 26%, var(--theme-b), transparent 28%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
}

.shop-art::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 74px;
  height: 74px;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  transform: rotate(15deg);
}

.shop-art span {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.42);
  color: var(--text);
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-copy {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.shop-copy h2 {
  margin: 0;
  font-size: 1.35rem;
}

.shop-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.cash-card {
  background:
    radial-gradient(circle at 90% 12%, rgba(40, 240, 168, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.07);
}

.account-summary,
.leaderboard-table,
.moderation-list,
.form-grid {
  display: grid;
  gap: 12px;
}

.account-summary {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 16px;
}

.account-summary div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.account-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.leaderboard-panel {
  margin-top: 38px;
}

.leaderboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.leaderboard-loading {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.leaderboard-loading p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 800;
}

.leader-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1.1fr) repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 16px;
}

.leader-row.is-you {
  border-color: rgba(87, 213, 255, 0.34);
  background: rgba(87, 213, 255, 0.09);
}

.leaderboard-page {
  display: grid;
  gap: 22px;
  opacity: 1;
  transform: none;
}

.leaderboard-hero {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 12%, rgba(48, 235, 207, 0.2), transparent 20rem),
    radial-gradient(circle at 86% 10%, rgba(118, 134, 255, 0.18), transparent 20rem),
    linear-gradient(135deg, rgba(27, 31, 43, 0.98), rgba(10, 12, 18, 0.98));
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 38px);
}

.leaderboard-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.leaderboard-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-weight: 800;
  line-height: 1.6;
}

.leaderboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.leaderboard-stats-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
}

.leaderboard-stats-grid span,
.leaderboard-source {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-stats-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 2rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.12fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: end;
}

.leader-podium-card {
  display: grid;
  justify-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(87, 213, 255, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  padding: 20px;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.leader-podium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(87, 213, 255, 0.35);
  box-shadow: 0 20px 44px rgba(87, 213, 255, 0.12);
}

.leader-podium-card.rank-1 {
  min-height: 250px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 102, 0.22), transparent 13rem),
    rgba(255, 255, 255, 0.07);
}

.leader-crown {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-3);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 1000;
}

.leader-avatar-lg {
  display: grid;
  width: clamp(70px, 10vw, 104px);
  aspect-ratio: 1;
  place-items: center;
  margin: 16px 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4fe6d8, #7c76ff);
  color: #071014;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 1000;
  box-shadow: 0 18px 40px rgba(71, 219, 236, 0.2);
}

.leader-podium-card strong,
.leader-podium-card small,
.leader-podium-card b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-podium-card strong {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.leader-podium-card small {
  margin-top: 4px;
  color: var(--text-muted);
  font-weight: 800;
}

.leader-podium-card b {
  margin-top: 12px;
  color: var(--accent);
}

.leaderboard-rankings-panel {
  margin-top: 0;
}

.leader-row {
  color: var(--text);
  opacity: 1;
  text-decoration: none;
  transform: none;
}

.leader-name {
  display: grid;
  min-width: 0;
}

.leader-name b,
.leader-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-name small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.control-panel {
  display: grid;
  gap: 16px;
}

.danger-panel {
  border-color: rgba(255, 95, 135, 0.22);
}

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

.form-grid label {
  display: grid;
  gap: 8px;
}

.form-grid label span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 14px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: rgba(87, 213, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(87, 213, 255, 0.08);
}

.wide-field,
.form-grid .button,
.toggle-field {
  grid-column: 1 / -1;
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
}

.toggle-field input {
  width: 22px;
  height: 22px;
}

.emergency-key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.emergency-key-actions .button {
  flex: 1 1 180px;
}

.moderation-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.moderation-item span,
.moderation-item small {
  color: var(--text-muted);
}

.presence-row,
.quest-grid,
.notification-list,
.transaction-list,
.comment-list,
.admin-user-list,
.admin-game-list,
.public-recent-grid {
  display: grid;
  gap: 12px;
}

.presence-row {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.presence-card,
.quest-card,
.notification-card,
.transaction-row,
.comment-card,
.admin-user-row,
.admin-game-list article,
.public-recent-card {
  display: grid;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.presence-card,
.admin-user-row,
.comment-card,
.public-recent-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.presence-card strong,
.presence-card small,
.admin-user-row strong,
.admin-user-row small,
.public-recent-card h3,
.public-recent-card p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence-card small,
.admin-user-row small,
.transaction-row small,
.comment-meta small,
.notification-card p,
.quest-card p {
  color: var(--text-muted);
}

.quest-panel,
.comments-panel,
.transaction-panel,
.inbox-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
}

.quest-panel-compact {
  margin-top: 22px;
}

.quest-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quest-card {
  align-content: space-between;
  min-height: 168px;
}

.quest-card p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.quest-card-bottom,
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.quest-card-bottom span,
.notification-card > span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-card {
  grid-template-columns: 96px minmax(0, 1fr);
}

.notification-card.is-unread {
  border-color: rgba(87, 213, 255, 0.38);
  background: rgba(87, 213, 255, 0.08);
}

.notification-card strong,
.notification-card p {
  display: block;
  margin: 0 0 4px;
}

.transaction-row {
  grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr) minmax(160px, 0.8fr);
}

.transaction-row.is-positive strong {
  color: var(--accent-3);
}

.transaction-row.is-negative strong {
  color: var(--warning);
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.comment-form label,
.admin-search {
  display: grid;
  gap: 8px;
}

.comment-form span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comment-form input,
.comment-form select,
.comment-form textarea,
.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 13px 14px;
}

.comment-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.comment-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.comment-meta {
  justify-content: flex-start;
}

.comment-meta span {
  color: var(--warning);
}

.analytics-panel {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  border: 1px solid rgba(87, 213, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(87, 213, 255, 0.14), transparent 22rem),
    rgba(255, 255, 255, 0.048);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.analytics-metrics,
.analytics-grid {
  display: grid;
  gap: 14px;
}

.analytics-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.analytics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-metrics article,
.analytics-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.analytics-metrics span,
.analytics-card h3 {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.analytics-metrics small,
.analytics-list p,
.analytics-event-list p {
  color: var(--text-muted);
}

.analytics-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.95rem;
}

.analytics-list,
.analytics-event-list {
  display: grid;
  gap: 10px;
}

.analytics-list div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 11px 12px;
}

.analytics-list div > * {
  position: relative;
  z-index: 1;
}

.analytics-list i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.analytics-list span,
.analytics-event-list span {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-list strong {
  color: var(--text);
}

.analytics-event-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.analytics-event-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-command {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(116, 203, 255, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 6% 8%, rgba(87, 213, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 92% 20%, rgba(40, 240, 168, 0.12), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 34px);
}

.admin-command-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
}

.admin-command h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.96;
}

.admin-command p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.admin-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-status-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(143, 125, 255, 0.18), transparent 14rem),
    rgba(8, 13, 22, 0.62);
  padding: 22px;
}

.admin-status-card span,
.admin-status-card small,
.admin-metric-board span,
.admin-metric-board small,
.admin-panel-header span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-status-card strong {
  display: block;
  color: var(--accent-3);
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1;
}

.admin-status-card b {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.admin-warning {
  margin-top: 18px;
}

.admin-metric-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.admin-metric-board article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.admin-metric-board article.is-alert {
  border-color: rgba(255, 95, 135, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 95, 135, 0.13), transparent 9rem),
    rgba(255, 255, 255, 0.045);
}

.admin-metric-board article.is-warning {
  border-color: rgba(255, 209, 102, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.13), transparent 9rem),
    rgba(255, 255, 255, 0.045);
}

.admin-metric-board strong {
  display: block;
  margin: 10px 0 5px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1;
}

.admin-workbench {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.admin-tab-page {
  margin-top: 24px;
}

.admin-section-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.admin-tab {
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-tab:hover,
.admin-tab.is-active {
  border-color: rgba(87, 213, 255, 0.24);
  background: rgba(87, 213, 255, 0.12);
  color: var(--text);
}

.admin-tab-page [data-admin-section] {
  display: none;
}

.admin-tab-page[data-active-tab="dashboard"] [data-admin-section="dashboard"],
.admin-tab-page[data-active-tab="health"] [data-admin-section="health"],
.admin-tab-page[data-active-tab="players"] [data-admin-section="players"],
.admin-tab-page[data-active-tab="progress"] [data-admin-section="progress"],
.admin-tab-page[data-active-tab="economy"] [data-admin-section="economy"],
.admin-tab-page[data-active-tab="moderation"] [data-admin-section="moderation"],
.admin-tab-page[data-active-tab="roles"] [data-admin-section="roles"],
.admin-tab-page[data-active-tab="codes"] [data-admin-section="codes"],
.admin-tab-page[data-active-tab="announcements"] [data-admin-section="announcements"],
.admin-tab-page[data-active-tab="events"] [data-admin-section="events"],
.admin-tab-page[data-active-tab="chat"] [data-admin-section="chat"],
.admin-tab-page[data-active-tab="games"] [data-admin-section="games"],
.admin-tab-page[data-active-tab="system"] [data-admin-section="system"] {
  display: grid;
}

.admin-panel {
  grid-column: span 4;
  align-content: start;
  min-width: 0;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at top right, rgba(87, 213, 255, 0.08), transparent 13rem),
    rgba(255, 255, 255, 0.045);
}

.admin-panel-wide {
  grid-column: span 8;
}

.admin-panel-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-panel-header h2 {
  margin: 5px 0 6px;
}

.admin-panel-header p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-panel-header > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(116, 203, 255, 0.26);
  border-radius: 16px;
  background: rgba(87, 213, 255, 0.1);
  color: var(--accent);
  font-size: 1.35rem;
  min-width: 58px;
  padding: 10px 12px;
  text-align: center;
}

.admin-scroll-list {
  max-height: 440px;
  overflow: auto;
  padding-right: 2px;
}

.admin-ticket {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-ticket.is-resolved {
  opacity: 0.62;
}

.admin-form-compact {
  grid-template-columns: 1fr;
}

.admin-wide-panel {
  grid-column: span 2;
}

.admin-action-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-live-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 12px;
  min-height: 230px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
  padding: 16px;
}

.admin-chart-bar {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.admin-chart-bar span,
.admin-chart-bar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chart-bar span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.admin-chart-bar i {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 22px rgba(87, 213, 255, 0.22);
}

.admin-online-list,
.admin-log-list,
.admin-rank-list,
.admin-mini-list,
.admin-helper-requests {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-online-list article,
.admin-log-list article,
.admin-rank-list article,
.admin-mini-list > span,
.admin-helper-requests > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.admin-log-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-rank-list article {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.admin-online-list strong,
.admin-online-list small,
.admin-log-list strong,
.admin-log-list span,
.admin-rank-list strong,
.admin-rank-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-online-list small,
.admin-log-list span,
.admin-log-list small,
.admin-rank-list small,
.admin-helper-requests small {
  color: var(--text-muted);
}

.admin-health-grid,
.admin-flag-grid,
.admin-status-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-health-item,
.admin-flag,
.admin-status-pills button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(87, 213, 255, 0.08), transparent 9rem),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 14px;
  text-align: left;
}

.admin-health-item.is-warning,
.admin-status-card.is-warning {
  border-color: rgba(255, 209, 102, 0.36);
}

.admin-health-item.is-alert {
  border-color: rgba(255, 95, 135, 0.36);
}

.admin-health-item span,
.admin-health-item small,
.admin-flag small,
.admin-status-pills span {
  display: block;
  color: var(--text-muted);
}

.admin-health-item strong,
.admin-flag strong,
.admin-status-pills strong {
  display: block;
  margin: 6px 0;
}

.admin-flag {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.admin-flag:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 213, 255, 0.34);
}

.admin-flag.is-on {
  border-color: rgba(96, 255, 184, 0.4);
  background:
    radial-gradient(circle at top right, rgba(96, 255, 184, 0.14), transparent 9rem),
    rgba(255, 255, 255, 0.05);
}

.admin-flag span {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 10px;
}

.admin-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, auto) minmax(140px, auto);
  gap: 12px;
  margin: 18px 0;
}

.admin-filter-row select,
.admin-filter-row input,
.admin-section-grid select,
.admin-section-grid input,
.admin-section-grid textarea {
  width: 100%;
}

.admin-search {
  position: relative;
}

.admin-search svg {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--text-muted);
  transform: translateY(-50%);
}

.admin-search input {
  padding-left: 42px;
}

.admin-user-row {
  grid-template-columns: auto minmax(0, 1fr) repeat(6, auto);
}

.admin-user-list-detailed .admin-user-row {
  grid-template-columns: auto minmax(240px, 1fr);
  align-items: start;
}

.admin-user-list-detailed .admin-user-row .button {
  justify-self: start;
}

.admin-user-row.is-banned {
  border-color: rgba(255, 95, 135, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 95, 135, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.045);
}

.button-danger {
  border-color: rgba(255, 95, 135, 0.45);
  background: rgba(255, 95, 135, 0.14);
  color: #ffd1dc;
}

.button-danger:hover {
  background: rgba(255, 95, 135, 0.22);
}

.admin-inbox-form {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-adjust-form,
.admin-reset-user-form {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid rgba(255, 95, 135, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 95, 135, 0.14), transparent 16rem),
    rgba(255, 95, 135, 0.055);
  padding: 14px;
}

.admin-danger-zone strong,
.admin-danger-zone p {
  display: block;
  margin: 0;
}

.admin-danger-zone p {
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-game-list article {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) repeat(3, auto);
}

.compact-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 48px;
}

.compact-check input {
  width: auto;
}

.admin-helper-requests > strong {
  color: var(--text);
}

.admin-helper-requests > div {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.public-recent-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 36px));
}

.global-chat:not(:empty) ~ .toast-stack {
  bottom: 92px;
}

.toast {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 20, 31, 0.94);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  padding: 13px 15px;
  opacity: 0;
  backdrop-filter: blur(18px);
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-notification {
  cursor: pointer;
  display: grid;
  gap: 4px;
  border-color: rgba(87, 213, 255, 0.32);
  background:
    radial-gradient(circle at top left, rgba(87, 213, 255, 0.18), transparent 11rem),
    rgba(15, 20, 31, 0.96);
}

.toast-notification span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.toast-notification small {
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.35;
}

.toast-notification em {
  color: var(--accent-3);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ripple {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transform: scale(0);
  animation: ripple 620ms ease-out;
}

.reveal,
.game-card,
.category-tile,
.profile-card,
.achievement,
.setting-row {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.reveal.is-visible,
.game-card.is-visible,
.category-tile.is-visible,
.profile-card.is-visible,
.achievement.is-visible,
.setting-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-pop {
  animation: gridPop 360ms ease both;
}

.theme-neon {
  --theme-a: #00d4ff;
  --theme-b: rgba(176, 85, 255, 0.82);
  --theme-c: #10204c;
}

.theme-lab {
  --theme-a: #36f7b6;
  --theme-b: rgba(87, 213, 255, 0.84);
  --theme-c: #173328;
}

.theme-sky {
  --theme-a: #76b7ff;
  --theme-b: rgba(255, 209, 102, 0.72);
  --theme-c: #152642;
}

.theme-cipher {
  --theme-a: #8d7bff;
  --theme-b: rgba(40, 240, 168, 0.72);
  --theme-c: #221a42;
}

.theme-orbit {
  --theme-a: #57d5ff;
  --theme-b: rgba(255, 95, 135, 0.78);
  --theme-c: #172040;
}

.theme-block {
  --theme-a: #3ad29f;
  --theme-b: rgba(255, 209, 102, 0.78);
  --theme-c: #133026;
}

.theme-astro {
  --theme-a: #73e2ff;
  --theme-b: rgba(40, 240, 168, 0.72);
  --theme-c: #12354a;
}

.theme-metro {
  --theme-a: #ff5f87;
  --theme-b: rgba(87, 213, 255, 0.72);
  --theme-c: #321828;
}

.theme-mech {
  --theme-a: #ffd166;
  --theme-b: rgba(87, 213, 255, 0.78);
  --theme-c: #2f2b16;
}

.theme-crystal {
  --theme-a: #b7f7ff;
  --theme-b: rgba(141, 123, 255, 0.8);
  --theme-c: #172943;
}

.theme-dungeon {
  --theme-a: #8d7bff;
  --theme-b: rgba(255, 209, 102, 0.74);
  --theme-c: #241d31;
}

.theme-void {
  --theme-a: #4d63ff;
  --theme-b: rgba(255, 95, 135, 0.82);
  --theme-c: #12142d;
}

.theme-pizza {
  --theme-a: #ffb454;
  --theme-b: rgba(255, 95, 135, 0.78);
  --theme-c: #342113;
}

.theme-quantum {
  --theme-a: #28f0a8;
  --theme-b: rgba(141, 123, 255, 0.86);
  --theme-c: #132d2c;
}

.theme-lava {
  --theme-a: #ff5f57;
  --theme-b: rgba(255, 209, 102, 0.88);
  --theme-c: #351717;
}

.theme-cafe {
  --theme-a: #d891ff;
  --theme-b: rgba(40, 240, 168, 0.74);
  --theme-c: #281b34;
}

@keyframes loaderDotPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.75);
    box-shadow: 0 0 0 rgba(87, 213, 255, 0);
  }
  48%,
  55% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 18px rgba(87, 213, 255, 0.58);
  }
}

@keyframes heroFloat {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-12px, 10px, 0);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skeleton {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(340%);
  }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes gridPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authPosterFloat {
  from {
    transform: translate(var(--auth-shift)) rotate(var(--auth-rotate)) translateY(0);
  }
  to {
    transform: translate(var(--auth-shift)) rotate(calc(var(--auth-rotate) + 1.8deg)) translateY(-12px);
  }
}

body.is-auth-gate {
  overflow: hidden;
}

body.is-auth-gate .topbar,
body.is-auth-gate .sidebar,
body.is-auth-gate .sidebar-overlay,
body.is-auth-gate .app-main,
body.is-auth-gate .site-footer,
body.is-auth-gate .global-chat,
body.is-auth-gate .offline-badge {
  display: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.auth-gate:empty {
  display: none;
}

body.is-auth-gate .auth-gate {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: auto;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 18% 22%, rgba(87, 213, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 16%, rgba(141, 123, 255, 0.15), transparent 26rem),
    linear-gradient(180deg, #040507 0%, #07090f 45%, #090b11 100%);
}

.auth-line-bg,
.auth-shade,
.auth-poster-field {
  position: absolute;
  inset: 0;
}

.auth-line-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  mix-blend-mode: screen;
}

.auth-shade {
  background:
    linear-gradient(180deg, rgba(3, 4, 7, 0.58), rgba(3, 4, 7, 0.26) 28%, rgba(3, 4, 7, 0.76)),
    radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.54) 100%);
}

.auth-poster-field {
  width: min(34vw, 560px);
  pointer-events: none;
}

.auth-poster-left {
  left: 0;
}

.auth-poster-right {
  right: 0;
  left: auto;
}

.auth-poster {
  position: absolute;
  width: clamp(130px, 12vw, 220px);
  aspect-ratio: 0.78;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: #0f1520;
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.46);
  transform: translate(var(--auth-shift)) rotate(var(--auth-rotate));
  animation: authPosterFloat 14s ease-in-out infinite alternate;
}

.auth-poster:nth-child(2n) {
  animation-duration: 16s;
}

.auth-poster:nth-child(3n) {
  animation-duration: 18s;
}

.auth-poster::before,
.auth-poster::after {
  position: absolute;
  inset: 0;
  content: "";
}

.auth-poster::before {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}

.auth-poster::after {
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.78));
}

.auth-poster strong {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.auth-poster-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 16%),
    radial-gradient(circle at 82% 22%, var(--theme-b), transparent 26%),
    linear-gradient(135deg, var(--theme-a), var(--theme-c));
}

.auth-poster-art::before,
.auth-poster-art::after {
  position: absolute;
  content: "";
}

.auth-poster-art::before {
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.04),
    0 0 54px rgba(255, 255, 255, 0.18);
}

.auth-poster-art::after {
  right: -10%;
  bottom: -8%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(2px);
}

.auth-topbar,
.auth-center {
  position: relative;
  z-index: 2;
}

.auth-topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 2.8vw, 28px);
  background: linear-gradient(180deg, rgba(4, 5, 7, 0.82), rgba(4, 5, 7, 0.38));
  backdrop-filter: blur(18px);
}

.auth-top-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 900;
}

.auth-top-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.auth-switch-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #0d1118;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-switch-button:hover {
  background: #fff;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.auth-center {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  min-height: calc(100dvh - 78px);
  padding: 6px 24px 24px;
}

.auth-wordmark {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.auth-wordmark img {
  width: clamp(64px, 8vw, 88px);
  height: clamp(64px, 8vw, 88px);
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

.auth-wordmark h1 {
  margin: 0;
  font-size: clamp(2.9rem, 9vw, 4.9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.auth-card {
  width: min(100%, 470px);
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(20, 23, 31, 0.94), rgba(14, 16, 23, 0.9)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: clamp(20px, 3.2vw, 26px);
  backdrop-filter: blur(22px);
}

.auth-card-header {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-card-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.08;
}

.auth-card-header p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.auth-tab {
  min-height: 42px;
  border-radius: 13px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.is-active {
  background: linear-gradient(135deg, rgba(87, 213, 255, 0.22), rgba(141, 123, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(87, 213, 255, 0.14);
  color: var(--text);
}

.auth-error {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 95, 135, 0.38);
  border-radius: 16px;
  background: rgba(255, 95, 135, 0.12);
  color: #ffd1dc;
  padding: 13px 14px;
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-reset-notice {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(87, 213, 255, 0.36);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(87, 213, 255, 0.18), transparent 12rem),
    linear-gradient(135deg, rgba(87, 213, 255, 0.12), rgba(141, 123, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.2);
  padding: 14px 15px;
}

.auth-reset-notice strong {
  font-size: 0.98rem;
  font-weight: 950;
}

.auth-reset-notice p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-reactivate-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(87, 213, 255, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(87, 213, 255, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.auth-reactivate-card strong {
  color: var(--text);
}

.auth-reactivate-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field-group {
  display: grid;
  gap: 8px;
}

.auth-field-group label {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-field-group input,
.auth-field-group select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-field-group input::placeholder {
  color: rgba(221, 228, 240, 0.48);
}

.auth-field-group input:focus,
.auth-field-group select:focus {
  border-color: rgba(87, 213, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(87, 213, 255, 0.08);
}

.auth-birthday-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.85fr));
  gap: 10px;
}

.auth-submit {
  min-height: 46px;
  margin-top: 2px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.08);
}

.auth-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 1500px) {
  .is-home-feed .topbar {
    grid-template-columns: auto minmax(260px, 520px) auto;
    gap: 12px;
  }

  .is-home-feed .top-links {
    display: none;
  }
}

@media (max-width: 1360px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, 360px) auto;
    gap: 12px;
  }

  .is-home-feed .topbar {
    grid-template-columns: auto minmax(260px, 520px) auto;
    gap: 12px;
  }

  .top-links {
    display: none;
  }

  .profile-identity-row {
    grid-template-areas:
      "avatar name"
      "avatar actions";
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
  }

  .profile-action-row {
    justify-content: flex-start;
  }

  .profile-action-row .button {
    flex: 1 1 170px;
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) minmax(240px, 360px) auto;
  }

  .quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-command {
    grid-template-columns: 1fr;
  }

  .admin-metric-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-panel,
  .admin-panel-wide {
    grid-column: span 6;
  }

  .admin-filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-glass,
  .daily-feature,
  .game-launch,
  .home-overview {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .auth-poster-field {
    width: min(31vw, 420px);
  }

  .auth-poster {
    width: clamp(120px, 11vw, 170px);
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .top-actions [data-action="open-announcement"] {
    display: none;
  }

  .profile-chip {
    max-width: 150px;
  }
}

@media (max-width: 920px) {
  :root {
    --topbar-height: 68px;
  }

  .mobile-menu-button {
    display: inline-grid !important;
  }

  .topbar {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  body.is-home-feed {
    --topbar-height: 86px;
  }

  .is-home-feed .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 12px;
  }

  .is-home-feed .search-shell input {
    height: 36px;
  }

  .brand-copy small,
  .profile-chip span:last-child,
  .top-actions .icon-button:first-child {
    display: none;
  }

  .search-shell {
    grid-column: 1 / -1;
    order: 4;
  }

  .topbar {
    min-height: auto;
  }

  .sidebar,
  .sidebar.is-collapsed {
    width: min(320px, calc(100vw - 48px));
    transform: translateX(-105%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar.is-collapsed .side-link span,
  .sidebar.is-collapsed .sidebar-player {
    display: initial;
  }

  .sidebar.is-collapsed .side-link {
    justify-content: flex-start;
    padding: 0 13px;
  }

  .sidebar-toggle {
    display: none;
  }

  .app-main,
  .sidebar.is-collapsed ~ .app-main,
  .site-footer,
  .sidebar.is-collapsed ~ .app-main ~ .site-footer {
    margin-left: 0;
  }

  .app-main {
    padding-top: 20px;
  }

  .is-home-feed .app-main {
    padding: 24px 18px 70px;
  }

  .profile-showcase {
    min-height: auto;
    padding: 18px 18px 0;
  }

  .profile-stage {
    min-height: 230px;
  }

  .profile-view-toggle {
    min-width: 62px;
    height: 62px;
    font-size: 1.25rem;
  }

  .profile-identity-row {
    grid-template-areas:
      "avatar"
      "name"
      "actions";
    grid-template-columns: 1fr;
    justify-items: start;
    margin-top: -20px;
  }

  .profile-action-row {
    justify-content: flex-start;
    width: 100%;
  }

  .profile-action-row .button {
    flex: 1 1 190px;
    min-width: 0;
  }

  .hero {
    min-height: auto;
  }

  .home-heading {
    grid-template-columns: 1fr;
  }

  .home-summary-chips {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-glass {
    padding-bottom: 96px;
  }

  .hero-controls {
    right: auto;
    left: clamp(18px, 5vw, 34px);
  }

  .split-heading,
  .stage-topline,
  .site-footer,
  .reward-strip,
  .wallet-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .leader-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-podium {
    grid-template-columns: 1fr;
  }

  .leader-podium-card,
  .leader-podium-card.rank-1 {
    min-height: 0;
  }

  .messages-page {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    min-height: calc(100svh - var(--topbar-height) - 44px);
  }

  .admin-metric-board,
  .admin-workbench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel,
  .admin-panel-wide {
    grid-column: auto;
  }

  body.is-auth-gate {
    overflow: auto;
  }

  .auth-poster-field {
    display: none;
  }

  .auth-topbar {
    padding: 16px 18px;
  }

  .auth-center {
    min-height: auto;
    padding: 22px 18px 28px;
  }

  .auth-wordmark {
    margin-bottom: 18px;
  }

  .auth-card {
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .top-actions [data-action="open-announcement"],
  .top-actions .emergency-button,
  .top-actions a.icon-button {
    display: none;
  }

  .comment-form,
  .transaction-row,
  .notification-card,
  .presence-card,
  .admin-user-row,
  .admin-game-list article,
  .public-recent-card {
    grid-template-columns: 1fr;
  }

  .admin-wide-panel {
    grid-column: auto;
  }

  .analytics-grid,
  .analytics-metrics {
    grid-template-columns: 1fr;
  }

  .messages-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .messages-sidebar-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .message-thread-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
  }

  .message-thread {
    width: min(280px, 82vw);
    flex: 0 0 auto;
  }

  .message-conversation-panel {
    min-height: min(620px, calc(100svh - var(--topbar-height) - 260px));
  }

  .message-bubble {
    max-width: 86%;
  }

  .admin-command {
    padding: 20px;
  }

  .admin-command h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .admin-status-card {
    min-height: 190px;
  }

  .admin-metric-board,
  .admin-workbench,
  .admin-section-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel,
  .admin-panel-wide {
    grid-column: auto;
  }

  .admin-filter-row,
  .admin-health-grid,
  .admin-flag-grid,
  .admin-status-pills {
    grid-template-columns: 1fr;
  }

  .admin-live-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 210px;
  }

  .admin-online-list article,
  .admin-log-list article,
  .admin-rank-list article,
  .admin-helper-requests > div {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .admin-panel-header {
    flex-direction: column;
  }

  .admin-ticket {
    grid-template-columns: 1fr;
  }

  .presence-card,
  .admin-user-row {
    justify-items: start;
  }

  .admin-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-danger-zone .button {
    width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .cash-chip {
    min-height: 40px;
    padding-right: 10px;
  }

  .profile-chip {
    min-height: 42px;
    padding: 3px;
  }

  .hero h1,
  .collection-hero h1,
  .profile-hero h1 {
    font-size: clamp(2.25rem, 14vw, 4rem);
  }

  .hero-glass {
    padding: 22px 18px 94px;
  }

  .hero-art {
    min-height: 230px;
  }

  .hero-meta,
  .quick-stats,
  .game-stat-grid,
  .profile-grid,
  .settings-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .stage-actions {
    width: 100%;
  }

  .hero-actions .button,
  .stage-actions .icon-button {
    flex: 1 1 auto;
  }

  .friend-row {
    grid-auto-columns: minmax(94px, 104px);
  }

  .friend-empty-state {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .mini-game-link {
    grid-template-columns: 1fr;
  }

  .card-row {
    grid-auto-columns: minmax(220px, 82vw);
  }

  .game-grid,
  .category-board,
  .shop-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .home-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px 12px;
  }

  .home-leaderboard-card {
    grid-template-columns: 1fr;
  }

  .home-leaderboard-podium {
    grid-template-columns: 1fr;
  }

  .home-friend-strip {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .home-friend-add span {
    width: 74px;
    height: 74px;
    font-size: 3.1rem;
  }

  .friends-dashboard,
  .friends-grid {
    grid-template-columns: 1fr;
  }

  .friend-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .friend-search .button {
    grid-column: 1 / -1;
  }

  .global-chat {
    right: 12px;
    bottom: 12px;
  }

  .global-chat-panel {
    width: calc(100vw - 24px);
    max-height: min(560px, calc(100dvh - 92px));
    bottom: 68px;
    border-radius: 18px;
  }

  .global-chat-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .global-chat-form .button {
    grid-column: 1 / -1;
  }

  .global-chat-auth {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .account-summary,
  .leader-row {
    grid-template-columns: 1fr;
  }

  .leaderboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .daily-panel {
    min-height: 250px;
  }

  .game-frame-wrap {
    aspect-ratio: 4 / 3;
  }

  .mobile-game-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-action-bar {
    grid-template-columns: 1fr;
  }

  .game-action-controls {
    justify-content: flex-start;
  }

  .game-action-button {
    flex: 1 1 48px;
  }

  .game-rating-score {
    min-width: 64px;
    text-align: left;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-profile-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .public-profile-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .profile-picture-stack {
    width: min(170px, 46vw);
  }

  .profile-social-pills {
    gap: 10px;
  }

  .profile-social-pills span,
  .profile-social-pills a {
    min-height: 44px;
    padding: 0 16px;
  }

  .profile-tabs button {
    min-height: 54px;
  }

  .profile-avatar {
    width: 78px;
    height: 78px;
  }

  .auth-top-brand span {
    display: none;
  }

  .auth-switch-button {
    min-height: 40px;
    padding: 0 16px;
  }

  .auth-card {
    border-radius: 24px;
    padding: 20px 18px;
  }

  .auth-birthday-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-wordmark h1 {
    font-size: clamp(2.5rem, 15vw, 4.2rem);
  }
}

@media (max-width: 480px) {
  .topbar {
    gap: 8px;
    padding-inline: 14px;
  }

  .brand {
    gap: 10px;
  }

  .profile-chip {
    max-width: 118px;
  }

  .search-shell input {
    height: 44px;
  }

  .auth-topbar {
    gap: 12px;
    padding-inline: 14px;
  }

  .auth-center {
    padding-inline: 14px;
  }

  .auth-card {
    width: 100%;
  }
}

@media (max-width: 380px) {
  :root {
    --content-pad: 8px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand-copy,
  .top-links,
  .top-actions {
    display: none;
  }

  .search-shell {
    grid-column: 1 / -1;
  }

  .search-shell input {
    height: 36px;
    border-radius: 12px;
    padding: 0 10px 0 34px;
    font-size: 0.86rem;
  }

  .search-icon {
    left: 11px;
    width: 15px;
    height: 15px;
  }

  .app-main,
  .is-home-feed .app-main {
    padding: 10px 8px 42px;
  }

  .discover-section,
  .game-shelf,
  .daily-feature,
  .category-board,
  .profile-layout,
  .settings-layout,
  .error-view {
    margin-top: 12px;
  }

  .split-heading {
    display: grid;
    gap: 10px;
    align-items: start;
  }

  .section-heading {
    margin-bottom: 10px;
  }

  .section-heading h2 {
    margin: 3px 0 4px;
    font-size: 1.28rem;
  }

  .section-heading p,
  .section-heading span:not(.tag-row span) {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .toolbar select {
    width: 100%;
    min-height: 34px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .category-pills {
    gap: 6px;
    padding-bottom: 10px;
  }

  .nav-pill {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .game-grid {
    gap: 10px;
  }

  .game-card {
    grid-template-columns: minmax(72px, 38%) minmax(0, 1fr);
    min-height: 120px;
    border-radius: 12px;
  }

  .game-card .card-link,
  .game-card .game-thumb {
    height: 100%;
    min-height: 120px;
  }

  .game-card .game-thumb {
    aspect-ratio: auto;
  }

  .game-card-body {
    align-content: start;
    gap: 6px;
    padding: 9px;
  }

  .card-title-row {
    gap: 5px;
  }

  .card-title-row h3 {
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .favorite-button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .favorite-button svg,
  .play-button svg {
    width: 15px;
    height: 15px;
  }

  .game-card-body p {
    min-height: 0;
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .tag-row {
    gap: 4px;
  }

  .tag-row span {
    min-height: 20px;
    padding: 0 5px;
    font-size: 0.56rem;
  }

  .card-meta {
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 0.62rem;
  }

  .play-button {
    min-height: 30px;
    border-radius: 8px;
    font-size: 0.74rem;
  }

  .thumb-badge {
    top: 6px;
    left: 6px;
    padding: 4px 5px;
    font-size: 0.56rem;
  }

  .thumb-play {
    right: 6px;
    bottom: 6px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 260px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-menu-button,
  .brand {
    justify-self: center;
  }

  .app-main,
  .is-home-feed .app-main {
    padding-inline: 6px;
  }

  .section-heading p,
  .category-pills,
  .tag-row,
  .card-meta,
  .favorite-button,
  .thumb-badge,
  .thumb-play {
    display: none;
  }

  .game-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .game-card .card-link,
  .game-card .game-thumb {
    min-height: 62px;
  }

  .game-card-body {
    gap: 7px;
    padding: 8px;
  }
}

@media (max-height: 900px) {
  .auth-poster-field {
    display: none;
  }

  .auth-center {
    justify-content: flex-start;
    padding-top: 10px;
  }

  .auth-wordmark {
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero {
    min-height: clamp(360px, 68dvh, 560px);
  }

  .hero-glass {
    padding: clamp(20px, 3.2vh, 34px);
  }

  .hero-art {
    min-height: 260px;
  }
}

@media (max-height: 760px) {
  .auth-topbar {
    padding-block: 10px;
  }

  .auth-top-brand img {
    width: 36px;
    height: 36px;
  }

  .auth-switch-button {
    min-height: 38px;
  }

  .auth-wordmark img {
    width: clamp(52px, 8vh, 72px);
    height: clamp(52px, 8vh, 72px);
  }

  .auth-wordmark h1 {
    font-size: clamp(2.3rem, 10vw, 3.8rem);
  }

  .auth-card {
    border-radius: 24px;
    padding: 18px;
  }

  .auth-form {
    gap: 10px;
  }

  .auth-field-group input,
  .auth-field-group select,
  .auth-submit,
  .auth-tab {
    min-height: 42px;
  }

  .auth-card-header p,
  .auth-note {
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
  }
}

@media (min-width: 1600px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .app-main {
    max-width: 1840px;
  }
}

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

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

iframe[src*="doubleclick.net"],
iframe[src*="googlesyndication.com"],
iframe[src*="googleadservices.com"],
iframe[src*="adsterra"],
iframe[src*="popads"],
iframe[src*="propellerads"],
script[src*="doubleclick.net"],
script[src*="googlesyndication.com"],
script[src*="googleadservices.com"],
.adsbygoogle,
.ad-container,
.ad-banner,
.ad-overlay,
.popup-ad,
#ad-container,
#ad_overlay,
#preroll {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
