@import url("./nioret-world-header.css");

:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
  --nw-app-bg: #09090c;
  --nw-surface: #111116;
  --nw-surface-raised: #18181f;
  --nw-surface-soft: #141319;
  --nw-text: #f5f4f8;
  --nw-text-muted: #9d9ba7;
  --nw-text-quiet: #767480;
  --nw-border: #292832;
  --nw-violet: #8b6cf6;
  --nw-violet-bright: #a992ff;
  --nw-violet-soft: rgba(139, 108, 246, .14);
  --nw-success: #62d0a0;
  --nw-warning: #e8bd75;
  --nw-error: #e47f89;
  --nw-radius-sm: 10px;
  --nw-radius: 16px;
  --nw-radius-lg: 26px;
  --nw-shadow: 0 28px 90px rgba(0, 0, 0, .42);
  --nw-max: 1240px;
  --nw-header-height: 76px;
}

.nw-theme {
  min-width: 320px;
  background: var(--nw-app-bg);
  color: var(--nw-text);
  font-family: Inter, Manrope, "Segoe UI", system-ui, sans-serif;
}

.nw-theme button,
.nw-theme input,
.nw-theme select,
.nw-theme textarea {
  color: inherit;
  font: inherit;
}

.nw-theme button,
.nw-theme a,
.nw-theme input,
.nw-theme select,
.nw-theme textarea {
  -webkit-tap-highlight-color: transparent;
}

.nw-theme :focus-visible {
  outline: 2px solid var(--nw-violet-bright);
  outline-offset: 3px;
}

.nw-skip-link {
  position: fixed;
  z-index: 200;
  top: -70px;
  left: 18px;
  padding: 11px 15px;
  border-radius: 9px;
  background: var(--nw-text);
  color: var(--nw-app-bg);
  font-weight: 750;
}

.nw-skip-link:focus {
  top: 12px;
}

.nw-button {
  min-height: 45px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  transition: background .18s, border-color .18s, color .18s, opacity .18s;
}

.nw-button-primary {
  background: var(--nw-violet);
  color: #fff;
}

.nw-button-primary:hover:not(:disabled) {
  background: var(--nw-violet-bright);
}

.nw-button-secondary {
  border-color: var(--nw-border);
  background: var(--nw-surface);
}

.nw-button-secondary:hover:not(:disabled) {
  border-color: #66538f;
  background: var(--nw-violet-soft);
}

.nw-field {
  min-height: 44px;
  border: 1px solid var(--nw-border);
  border-radius: 12px;
  background: var(--nw-surface);
  color: var(--nw-text);
  transition: background .18s, border-color .18s;
}

.nw-field:hover,
.nw-field:focus-within {
  border-color: #5d4d83;
  background: var(--nw-surface-raised);
}

.nw-card {
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  transition: background .18s, border-color .18s;
}

.nw-card-interactive:hover,
.nw-card-interactive:focus-within {
  border-color: #5f4e89;
  background: #16151d;
}

.nw-state {
  min-height: 160px;
  padding: 30px;
  border: 1px dashed #3a3843;
  border-radius: var(--nw-radius);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--nw-text-muted);
  text-align: center;
}

.nw-state-error {
  border-style: solid;
  background: rgba(228, 127, 137, .05);
}

.nw-skeleton {
  border-radius: 15px;
  background: linear-gradient(100deg, #131319 20%, #1e1d25 40%, #131319 60%);
  background-size: 220% 100%;
  animation: nw-shimmer 1.5s ease-in-out infinite;
}

@keyframes nw-shimmer {
  to { background-position: -120% 0; }
}

/* Home adapter: retains the existing composition and behavior. */
.nw-home {
  --bg: var(--nw-app-bg);
  --panel: var(--nw-surface);
  --panel2: var(--nw-surface-raised);
  --panel3: var(--nw-surface-soft);
  --text: var(--nw-text);
  --muted: var(--nw-text-muted);
  --line: var(--nw-border);
  --accent: var(--nw-violet);
  --accent2: var(--nw-violet-bright);
  --good: var(--nw-success);
  --warn: var(--nw-warning);
  --danger: var(--nw-error);
  --shadow: var(--nw-shadow);
  --navh: 76px;
  background: var(--nw-app-bg);
}

.nw-home .app {
  background: var(--nw-app-bg);
}

.nw-home .topbar {
  min-height: var(--nw-header-height);
  padding: 0 max(20px, calc((100vw - var(--nw-max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(9, 9, 12, .88);
  backdrop-filter: blur(22px);
}

.nw-home .brand {
  gap: 10px;
  color: var(--nw-text);
}

.nw-home .brandmark {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: var(--nw-violet-soft);
  color: var(--nw-violet-bright);
  box-shadow: none;
}

.nw-home .brandmark svg {
  width: 20px;
  height: 20px;
}

.nw-home .brandtext strong {
  font-size: .93rem;
  letter-spacing: -.01em;
  font-weight: 800;
}

.nw-home .brandtext span {
  margin-top: 4px;
  color: var(--nw-text-quiet);
  font-size: .61rem;
  letter-spacing: .12em;
}

.nw-home .desktop-nav {
  gap: 2px;
  margin-left: 22px;
}

.nw-home .desktop-nav a {
  min-height: 42px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--nw-radius-sm);
  color: var(--nw-text-muted);
  font-size: .84rem;
  font-weight: 650;
  transition: background .18s, color .18s;
}

.nw-home .desktop-nav svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.nw-home .desktop-nav a:hover,
.nw-home .desktop-nav a.active {
  color: var(--nw-text);
  background: var(--nw-violet-soft);
}

.nw-home .desktop-nav a.active {
  box-shadow: inset 0 -2px var(--nw-violet);
}

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

.nw-home .icon-btn,
.nw-home .nw-notif-link {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--nw-text-muted);
  transition: color .18s, background .18s;
}

.nw-home .icon-btn:hover,
.nw-home .nw-notif-link:hover {
  color: var(--nw-violet-bright);
  background: var(--nw-violet-soft);
}

.nw-home .profile-pill {
  min-height: 44px;
  padding: 4px 10px 4px 5px;
  border-color: var(--nw-border);
  background: var(--nw-surface);
  transition: background .18s, border-color .18s;
}

.nw-home .profile-pill:hover {
  border-color: #5d4d83;
  background: var(--nw-surface-raised);
}

.nw-home .avatar {
  width: 32px;
  height: 32px;
  background: var(--nw-violet);
  font-size: .75rem;
}

.nw-home .profile-copy b {
  font-size: .78rem;
}

.nw-home .profile-copy span {
  color: var(--nw-text-quiet);
  font-size: .68rem;
}

.nw-home .shell {
  width: min(100% - 48px, var(--nw-max));
  padding: 0 0 70px;
}

.nw-home .hero {
  padding: 68px 0 46px;
  border-bottom: 1px solid var(--nw-border);
}

.nw-home .eyebrow {
  margin: 0 0 14px;
  color: var(--nw-violet-bright);
  font-size: .7rem;
  letter-spacing: .17em;
  font-weight: 850;
}

.nw-home .hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(3.15rem, 6vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.nw-home .hero p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--nw-text-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.nw-home .search-launch {
  max-width: 760px;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 14px;
  border-color: var(--nw-border);
  border-radius: 12px;
  background: var(--nw-surface);
  color: var(--nw-text-muted);
  transition: background .18s, border-color .18s;
}

.nw-home .search-launch:hover {
  border-color: #5d4d83;
  background: var(--nw-surface-raised);
}

.nw-home .search-launch span {
  font-size: .92rem;
}

.nw-home .search-launch kbd {
  padding: 4px 7px;
  border-color: var(--nw-border);
  background: var(--nw-surface-soft);
  color: var(--nw-text-quiet);
  font-size: .7rem;
}

.nw-home .layout {
  gap: 28px;
  margin-top: 38px;
}

.nw-home .section {
  margin-top: 38px;
}

.nw-home .section-head {
  margin: 0 0 16px;
}

.nw-home .section-head h2 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  letter-spacing: -.04em;
}

.nw-home .section-head p {
  margin-top: 6px;
  color: var(--nw-text-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.nw-home .section-head a,
.nw-home .section-head button {
  min-height: 36px;
  padding: 0 9px;
  border-radius: 9px;
  color: var(--nw-text-muted);
  font-size: .79rem;
}

.nw-home .section-head a:hover,
.nw-home .section-head button:hover {
  color: var(--nw-violet-bright);
  background: var(--nw-violet-soft);
}

.nw-home .daily-card {
  padding: 20px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  box-shadow: none;
}

.nw-home .daily-top {
  gap: 16px;
}

.nw-home .daily-ring {
  width: 58px;
  height: 58px;
}

.nw-home .daily-ring::after {
  width: 44px;
  height: 44px;
  background: var(--nw-surface-raised);
}

.nw-home .daily-ring b {
  font-size: .78rem;
}

.nw-home .daily-copy b {
  font-size: 1.02rem;
}

.nw-home .daily-copy span {
  margin-top: 5px;
  color: var(--nw-text-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.nw-home .streak-pill b {
  color: var(--nw-warning);
  font-size: .88rem;
}

.nw-home .streak-pill span,
.nw-home .bonus-strip,
.nw-home .profile-foot {
  color: var(--nw-text-quiet);
  font-size: .75rem;
}

.nw-home .activities {
  gap: 10px;
  margin-top: 18px;
}

.nw-home .activity {
  min-height: 104px;
  padding: 15px;
  border-color: var(--nw-border);
  border-radius: 13px;
  background: var(--nw-surface-soft);
  transition: background .18s, border-color .18s;
}

.nw-home .activity:hover {
  border-color: #5f4e89;
  background: #17151e;
}

.nw-home .activity-icon,
.nw-home .row-icon,
.nw-home .inline-card .icon {
  background: var(--nw-violet-soft);
}

.nw-home .activity-copy b {
  font-size: .9rem;
}

.nw-home .activity-copy span {
  margin-top: 5px;
  color: var(--nw-text-muted);
  font-size: .76rem;
}

.nw-home .activity-state {
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-color: var(--nw-border);
  color: var(--nw-text-muted);
  font-size: .69rem;
}

.nw-home .bonus-strip {
  margin-top: 16px;
  padding-top: 14px;
  border-color: var(--nw-border);
}

.nw-home .feed-tabs {
  gap: 7px;
  margin-bottom: 14px;
}

.nw-home .feed-tab {
  min-height: 36px;
  padding: 0 13px;
  border-color: var(--nw-border);
  background: var(--nw-surface);
  color: var(--nw-text-muted);
  font-size: .79rem;
  transition: background .18s, border-color .18s, color .18s;
}

.nw-home .feed-tab:hover,
.nw-home .feed-tab.active {
  color: var(--nw-text);
  border-color: #66538f;
  background: var(--nw-violet-soft);
}

.nw-home .feed {
  gap: 12px;
}

.nw-home .post {
  padding: 20px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  box-shadow: none;
  transition: background .18s, border-color .18s;
}

.nw-home .post:hover,
.nw-home .post:focus-within {
  border-color: #5f4e89;
  background: #16151d;
}

.nw-home .mini-avatar {
  width: 42px;
  height: 42px;
  background: #332a55;
  font-size: .78rem;
}

.nw-home .post-who b,
.nw-home .row-copy b,
.nw-home .profile-summary b {
  font-size: .86rem;
}

.nw-home .post-who span,
.nw-home .row-copy span,
.nw-home .profile-summary span,
.nw-home .side-card .sub {
  color: var(--nw-text-muted);
  font-size: .75rem;
  line-height: 1.45;
}

.nw-home .post-source {
  padding: 6px 9px;
  color: var(--nw-text-muted);
  font-size: .7rem;
}

.nw-home .post-body {
  margin-top: 15px;
}

.nw-home .post-body h3 {
  margin-bottom: 9px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.nw-home .post-body p {
  color: #cbc9d1;
  font-size: .9rem;
  line-height: 1.65;
}

.nw-home .post-body .original {
  margin-top: 12px;
  padding: 12px;
  border-color: var(--nw-border);
  background: var(--nw-surface-soft);
  color: var(--nw-text-muted);
}

.nw-home .post-context {
  margin-top: 13px;
  padding: 10px 12px;
  border-left-color: var(--nw-violet);
  background: var(--nw-violet-soft);
}

.nw-home .post-context b {
  font-size: .8rem;
}

.nw-home .post-context span {
  font-size: .74rem;
}

.nw-home .post-actions {
  gap: 7px;
  margin-top: 15px;
  padding-top: 12px;
  border-color: var(--nw-border);
}

.nw-home .post-actions button,
.nw-home .post-actions a {
  min-height: 34px;
  padding: 0 9px;
  color: var(--nw-text-muted);
  font-size: .75rem;
}

.nw-home .post-actions button:hover,
.nw-home .post-actions a:hover {
  color: var(--nw-violet-bright);
  background: var(--nw-violet-soft);
}

.nw-home .inline-card {
  margin-top: 14px;
  padding: 13px;
  border-color: var(--nw-border);
  border-radius: 12px;
  background: var(--nw-surface-soft);
}

.nw-home .inline-card b {
  font-size: .82rem;
}

.nw-home .inline-card span {
  color: var(--nw-text-muted);
  font-size: .74rem;
}

.nw-home .inline-card a,
.nw-home .row-action,
.nw-home .side-link {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius-sm);
  background: var(--nw-surface);
  color: var(--nw-text-muted);
  font-size: .74rem;
  transition: background .18s, border-color .18s, color .18s;
}

.nw-home .inline-card a:hover,
.nw-home .row-action:hover,
.nw-home .side-link:hover {
  border-color: #66538f;
  background: var(--nw-violet-soft);
  color: var(--nw-text);
}

.nw-home .side-card {
  margin-bottom: 13px;
  padding: 18px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
}

.nw-home .side-card h3 {
  font-size: 1rem;
  letter-spacing: -.02em;
}

.nw-home .live-list,
.nw-home .discover-list,
.nw-home .discussion-list {
  margin-top: 14px;
}

.nw-home .live-row,
.nw-home .discover-row,
.nw-home .discussion-row {
  gap: 11px;
  padding: 12px 0;
  border-color: var(--nw-border);
}

.nw-home .live-dot {
  box-shadow: none;
}

.nw-home .profile-summary {
  margin-top: 14px;
}

.nw-home .profile-track {
  height: 6px;
  background: var(--nw-border);
}

.nw-home .profile-track i {
  background: var(--nw-violet);
}

.nw-home .search-sheet {
  background: rgba(5, 5, 8, .84);
  backdrop-filter: blur(18px);
}

.nw-home .search-panel {
  background: var(--nw-app-bg);
  border-color: var(--nw-border);
}

.nw-home .search-head {
  min-height: 72px;
  padding: 14px;
  border-color: var(--nw-border);
}

.nw-home .search-field {
  min-height: 46px;
  border-color: var(--nw-border);
  border-radius: 12px;
  background: var(--nw-surface);
}

.nw-home .search-field:focus-within {
  border-color: #5d4d83;
  background: var(--nw-surface-raised);
}

.nw-home .search-field input {
  font-size: .95rem;
}

.nw-home .close-search {
  width: 42px;
  height: 42px;
  border-color: var(--nw-border);
  background: transparent;
  color: var(--nw-text-muted);
}

.nw-home .close-search:hover {
  color: var(--nw-violet-bright);
  background: var(--nw-violet-soft);
}

.nw-home .search-body {
  padding: 18px;
}

.nw-home .search-note,
.nw-home .no-results {
  color: var(--nw-text-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.nw-home .result-title {
  color: var(--nw-violet-bright);
  font-size: .7rem;
}

.nw-home .search-result {
  min-height: 70px;
  margin-top: 9px;
  padding: 12px;
  border-color: var(--nw-border);
  border-radius: 13px;
  background: var(--nw-surface);
}

.nw-home .search-result:hover {
  border-color: #5f4e89;
  background: #16151d;
}

.nw-home .no-results {
  padding: 30px;
  border-color: #3a3843;
  border-radius: var(--nw-radius);
}

.nw-home .toast {
  background: var(--nw-surface-raised);
  border-color: #5d4d83;
  color: var(--nw-text);
  font-size: .82rem;
}

.nw-home .bottom-nav {
  height: calc(var(--navh) + env(safe-area-inset-bottom));
  padding: 7px 5px env(safe-area-inset-bottom);
  border-color: var(--nw-border);
  background: rgba(9, 9, 12, .96);
  backdrop-filter: blur(22px);
}

.nw-home .bottom-nav a {
  min-width: 0;
  min-height: 56px;
  gap: 5px;
  border-radius: 10px;
  color: var(--nw-text-quiet);
  font-size: .66rem;
  transition: background .18s, color .18s;
}

.nw-home .bottom-nav svg {
  width: 21px;
  height: 21px;
}

.nw-home .bottom-nav a:hover,
.nw-home .bottom-nav a.active {
  color: var(--nw-text);
  background: var(--nw-violet-soft);
}

.nw-home .bottom-nav a.active {
  box-shadow: inset 0 -2px var(--nw-violet);
}

@media (min-width: 900px) {
  .nw-home .app { padding-bottom: 0; }
  .nw-home .layout { grid-template-columns: minmax(0, 1.62fr) minmax(320px, .72fr); }
  .nw-home .sidecol { top: 98px; }
}

@media (max-width: 899px) {
  .nw-home .topbar {
    min-height: 72px;
    padding: 10px 15px;
  }

  .nw-home .shell {
    width: min(100% - 30px, var(--nw-max));
    padding-bottom: 42px;
  }

  .nw-home .hero {
    padding: 38px 0 34px;
  }

  .nw-home .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.6rem);
  }

  .nw-home .hero p {
    margin-top: 14px;
    font-size: .96rem;
  }

  .nw-home .layout {
    margin-top: 30px;
  }
}

@media (max-width: 620px) {
  .nw-home .brandtext span { display: none; }

  .nw-home .profile-pill {
    width: 42px;
    padding: 4px;
    justify-content: center;
    border-radius: 11px;
  }

  .nw-home .profile-copy { display: none; }

  .nw-home .hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }

  .nw-home .search-launch {
    min-height: 52px;
  }

  .nw-home .search-launch kbd { display: none; }

  .nw-home .section {
    margin-top: 34px;
  }

  .nw-home .section-head {
    align-items: flex-end;
    flex-direction: row;
  }

  .nw-home .section-head h2 {
    font-size: 1.45rem;
  }

  .nw-home .daily-card,
  .nw-home .post,
  .nw-home .side-card {
    padding: 16px;
  }

  .nw-home .daily-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nw-home .daily-copy {
    flex: 1 1 calc(100% - 76px);
  }

  .nw-home .streak-pill {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--nw-border);
    text-align: left;
  }

  .nw-home .activities {
    grid-template-columns: 1fr;
  }

  .nw-home .activity {
    min-height: 78px;
    display: flex;
  }

  .nw-home .activity-icon {
    margin-bottom: 0;
  }

  .nw-home .activity-state {
    margin-top: 0;
  }

  .nw-home .post-source { display: none; }

  .nw-home .post-actions {
    flex-wrap: wrap;
  }

  .nw-home .inline-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nw-home .inline-card a {
    margin-left: 44px;
  }
}

@media (max-width: 410px) {
  .nw-home .top-actions { gap: 3px; }
  .nw-home .icon-btn,
  .nw-home .nw-notif-link,
  .nw-home .profile-pill { width: 44px; height: 44px; }
  .nw-home .brandmark { width: 32px; height: 32px; }
  .nw-home .brandtext strong { font-size: .82rem; }
  .nw-home .section-head { align-items: flex-start; }
  .nw-home .section-head p { max-width: 215px; }
  .nw-home .bottom-nav a { font-size: .6rem; }
}

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

/* Shared suite shell: adopted by authorized pages one gate at a time. */
.nw-suite-page {
  --bg: var(--nw-app-bg);
  --bg2: var(--nw-app-bg);
  --panel: var(--nw-surface);
  --panel2: var(--nw-surface-raised);
  --panel3: var(--nw-surface-soft);
  --text: var(--nw-text);
  --muted: var(--nw-text-muted);
  --muted2: var(--nw-text-quiet);
  --line: var(--nw-border);
  --accent: var(--nw-violet);
  --accent2: var(--nw-violet-bright);
  --accent3: var(--nw-violet);
  --good: var(--nw-success);
  --warn: var(--nw-warning);
  --warm: var(--nw-warning);
  --danger: var(--nw-error);
  --shadow: var(--nw-shadow);
  --radius: var(--nw-radius);
  --navh: 76px;
  overflow-x: clip;
  background: var(--nw-app-bg);
  color: var(--nw-text);
}

.nw-suite-page .app {
  min-height: 100vh;
  background: var(--nw-app-bg);
}

.nw-suite-page .topbar {
  min-height: var(--nw-header-height);
  padding: 0 max(20px, calc((100vw - var(--nw-max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(9, 9, 12, .88);
  backdrop-filter: blur(22px);
}

.nw-suite-page .brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nw-text);
}

.nw-suite-page .brandmark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--nw-violet-soft);
  color: var(--nw-violet-bright);
  box-shadow: none;
  font-size: .8rem;
  font-weight: 850;
}

.nw-suite-page .brandmark svg {
  width: 20px;
  height: 20px;
}

.nw-suite-page .brandmark svg * {
  stroke: currentColor !important;
}

.nw-suite-page .brandtext,
.nw-suite-page .brandcopy {
  min-width: 0;
  line-height: 1;
}

.nw-suite-page .brandtext strong,
.nw-suite-page .brandcopy strong {
  display: block;
  color: var(--nw-text);
  font-size: .93rem;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.nw-suite-page .brandtext span,
.nw-suite-page .brandcopy span {
  display: block;
  margin-top: 4px;
  color: var(--nw-text-quiet);
  font-size: .61rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.nw-suite-page .desktop-nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: 22px;
}

.nw-suite-page .desktop-nav a {
  min-height: 42px;
  padding: 0 9px;
  border-radius: var(--nw-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nw-text-muted);
  background: transparent;
  font-size: .79rem;
  font-weight: 650;
  transition: color .18s, background .18s;
}

.nw-suite-page .desktop-nav svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nw-suite-page .desktop-nav a:hover,
.nw-suite-page .desktop-nav a.active {
  color: var(--nw-text);
  background: var(--nw-violet-soft);
}

.nw-suite-page .desktop-nav a.active {
  box-shadow: inset 0 -2px var(--nw-violet);
}

.nw-suite-page .top-actions,
.nw-suite-page .nw-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nw-suite-page .icon-btn,
.nw-suite-page .iconbtn,
.nw-suite-page .nw-notif-link {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--nw-text-muted);
  transition: color .18s, background .18s;
}

.nw-suite-page .icon-btn:hover,
.nw-suite-page .iconbtn:hover,
.nw-suite-page .nw-notif-link:hover {
  color: var(--nw-violet-bright);
  background: var(--nw-violet-soft);
}

.nw-suite-page .top-profile,
.nw-suite-page .avatar-btn,
.nw-suite-page .top-action {
  min-height: 44px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--nw-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nw-surface);
  color: var(--nw-text);
  font-size: .76rem;
  font-weight: 750;
  transition: background .18s, border-color .18s;
}

.nw-suite-page .top-profile:hover,
.nw-suite-page .avatar-btn:hover,
.nw-suite-page .top-action:hover {
  border-color: #5d4d83;
  background: var(--nw-surface-raised);
}

.nw-suite-page .top-avatar,
.nw-suite-page .avatar-btn .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nw-violet);
  color: #fff;
  font-size: .75rem;
  font-weight: 850;
}

.nw-suite-page .shell,
.nw-forum main {
  width: min(100% - 48px, var(--nw-max));
  margin: 0 auto;
  padding: 0 0 70px;
}

.nw-suite-page .hero {
  min-height: 0;
  padding: 58px 0 38px;
  background: transparent;
  border: 0;
}

.nw-suite-page .eyebrow {
  margin: 0 0 14px;
  color: var(--nw-violet-bright);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.nw-suite-page .hero h1,
.nw-suite-page h1 {
  color: var(--nw-text);
}

.nw-suite-page .hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5.3rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.nw-suite-page .hero > p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--nw-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.nw-suite-page input,
.nw-suite-page select,
.nw-suite-page textarea {
  border-color: var(--nw-border);
  background: var(--nw-surface);
  color: var(--nw-text);
}

.nw-suite-page input::placeholder,
.nw-suite-page textarea::placeholder {
  color: var(--nw-text-quiet);
}

.nw-suite-page input:hover,
.nw-suite-page select:hover,
.nw-suite-page textarea:hover,
.nw-suite-page input:focus,
.nw-suite-page select:focus,
.nw-suite-page textarea:focus {
  border-color: #5d4d83;
  background: var(--nw-surface-raised);
}

.nw-suite-page .bottom-nav {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(76px + env(safe-area-inset-bottom));
  padding: 7px 5px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--nw-border);
  background: rgba(9, 9, 12, .96);
  backdrop-filter: blur(22px);
}

.nw-suite-page .bottom-nav a {
  min-width: 0;
  min-height: 56px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--nw-text-quiet);
  font-size: .66rem;
  font-weight: 750;
  transition: color .18s, background .18s;
}

.nw-suite-page .bottom-nav svg {
  width: 21px;
  height: 21px;
}

.nw-suite-page .bottom-nav a:hover,
.nw-suite-page .bottom-nav a.active {
  color: var(--nw-text);
  background: var(--nw-violet-soft);
}

.nw-suite-page .bottom-nav a.active {
  box-shadow: inset 0 -2px var(--nw-violet);
}

/* Communities */
.nw-communities .hero-note,
.nw-messages .privacy-note,
.nw-forum .preview-note {
  min-height: 34px;
  padding: 0 11px;
  border-color: var(--nw-border);
  background: var(--nw-surface-soft);
  color: var(--nw-text-muted);
  font-size: .75rem;
}

.nw-communities .world-card {
  padding: 26px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius-lg);
  background: var(--nw-surface);
  box-shadow: none;
}

.nw-communities .world-card::after { display: none; }
.nw-communities .world-top { gap: 16px; }

.nw-communities .world-icon {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-violet-soft);
  font-size: 1.65rem;
}

.nw-communities .world-copy .live-label {
  color: var(--nw-success);
  font-size: .7rem;
}

.nw-communities .world-copy h2 {
  margin: 7px 0;
  font-size: 1.8rem;
  letter-spacing: -.035em;
}

.nw-communities .world-copy p {
  max-width: 760px;
  color: var(--nw-text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.nw-communities .world-actions { margin-top: 20px; }

.nw-communities .primary,
.nw-communities .secondary,
.nw-profile .primary,
.nw-profile .ghost {
  min-height: 45px;
  padding: 0 17px;
  border-radius: 12px;
  font-size: .84rem;
  font-weight: 750;
  box-shadow: none;
}

.nw-communities .primary,
.nw-profile .primary {
  background: var(--nw-violet);
  color: #fff;
}

.nw-communities .primary:hover,
.nw-profile .primary:hover { background: var(--nw-violet-bright); }

.nw-communities .secondary,
.nw-profile .ghost {
  border-color: var(--nw-border);
  background: var(--nw-surface);
  color: var(--nw-text);
}

.nw-communities .secondary:hover,
.nw-profile .ghost:hover {
  border-color: #66538f;
  background: var(--nw-violet-soft);
}

.nw-communities .world-foot { margin-top: 18px; }

.nw-communities .mini-pill,
.nw-communities .tag {
  padding: 5px 8px;
  border-color: var(--nw-border);
  background: transparent;
  color: var(--nw-text-quiet);
  font-size: .68rem;
}

.nw-communities .toolbar {
  margin: 28px 0 24px;
  gap: 10px;
}

.nw-communities .search {
  min-height: 46px;
  border-color: var(--nw-border);
  border-radius: 12px;
  background: var(--nw-surface);
}

.nw-communities .search:focus-within {
  border-color: #5d4d83;
  background: var(--nw-surface-raised);
}

.nw-communities .search input { font-size: .9rem; }

.nw-communities .chips { gap: 7px; }

.nw-communities .chip {
  min-height: 36px;
  padding: 0 13px;
  border-color: var(--nw-border);
  background: var(--nw-surface);
  color: var(--nw-text-muted);
  font-size: .75rem;
}

.nw-communities .chip:hover,
.nw-communities .chip.active {
  border-color: #66538f;
  background: var(--nw-violet-soft);
  color: var(--nw-text);
}

.nw-communities .main-grid { gap: 22px; }

.nw-communities .section-head { margin-bottom: 16px; }
.nw-communities .section-head h2 { font-size: 1.65rem; letter-spacing: -.035em; }
.nw-communities .section-head span { color: var(--nw-text-quiet); font-size: .75rem; }
.nw-communities .community-list { gap: 12px; }

.nw-communities .community-card {
  padding: 18px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  transition: background .18s, border-color .18s;
}

.nw-communities .community-card:hover,
.nw-communities .community-card:focus-within {
  border-color: #5f4e89;
  background: #16151d;
}

.nw-communities .community-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-color: var(--nw-border);
  background: var(--nw-surface-raised);
}

.nw-communities .community-copy h3 { font-size: 1rem; }
.nw-communities .community-copy p { color: var(--nw-text-muted); font-size: .8rem; line-height: 1.5; }

.nw-communities .join,
.nw-communities .room-row button,
.nw-communities .community-actions button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-sm);
  background: var(--nw-surface);
  color: var(--nw-text-muted);
  font-size: .75rem;
  font-weight: 750;
}

.nw-communities .join:hover,
.nw-communities .room-row button:hover,
.nw-communities .community-actions button:hover,
.nw-communities .community-actions button.accent {
  border-color: #66538f;
  background: var(--nw-violet-soft);
  color: var(--nw-text);
}

.nw-communities .community-live { margin-top: 16px; padding-top: 14px; border-color: var(--nw-border); }
.nw-communities .live-title b { font-size: .82rem; }
.nw-communities .live-title span { color: var(--nw-text-quiet); font-size: .7rem; }

.nw-communities .room-row {
  min-height: 58px;
  padding: 10px 11px;
  border-color: var(--nw-border);
  background: var(--nw-surface-soft);
}

.nw-communities .room-copy b { font-size: .82rem; }
.nw-communities .room-copy span { color: var(--nw-text-muted); font-size: .7rem; }
.nw-communities .empty-live { padding: 14px; color: var(--nw-text-muted); font-size: .76rem; }

.nw-communities .aside-card {
  padding: 18px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
}

.nw-communities .aside-card h3 { font-size: 1rem; }
.nw-communities .identity b { font-size: .84rem; }
.nw-communities .identity span,
.nw-communities .unlock,
.nw-communities .rule { color: var(--nw-text-muted); font-size: .75rem; line-height: 1.5; }

.nw-communities .chat-panel,
.nw-communities .create-panel {
  border-color: var(--nw-border);
  background: var(--nw-app-bg);
}

.nw-communities .chat-head,
.nw-communities .composer-wrap,
.nw-communities .replying { background: var(--nw-surface); border-color: var(--nw-border); }
.nw-communities .chat-title b { font-size: .95rem; }
.nw-communities .chat-title span,
.nw-communities .chat-tools span,
.nw-communities .day-sep,
.nw-communities .translation-note,
.nw-communities .composer-meta { font-size: .7rem; color: var(--nw-text-quiet); }
.nw-communities .msg-top b { font-size: .84rem; }
.nw-communities .msg-top span,
.nw-communities .msg-actions button { font-size: .7rem; }
.nw-communities .msg-text { color: var(--nw-text); font-size: .88rem; line-height: 1.6; }
.nw-communities .composer textarea { min-height: 45px; font-size: .88rem; background: var(--nw-surface-soft); }
.nw-communities .send { width: 45px; height: 45px; background: var(--nw-violet); }

/* Forum */
.nw-forum .toolbar { margin: 10px 0 14px; }

.nw-forum .search {
  min-width: 0;
  height: 46px;
}

.nw-forum .search input {
  height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--nw-border);
  border-radius: 12px;
  background: var(--nw-surface);
  font-size: .9rem;
}

.nw-forum .compose,
.nw-forum .submit {
  min-height: 45px;
  border-radius: 12px;
  background: var(--nw-violet);
  box-shadow: none;
  color: #fff;
  font-size: .84rem;
  font-weight: 750;
}

.nw-forum .compose:hover,
.nw-forum .submit:hover { background: var(--nw-violet-bright); }

.nw-forum .category-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.nw-forum .cat {
  min-height: 36px;
  padding: 0 13px;
  border-color: var(--nw-border);
  background: var(--nw-surface);
  color: var(--nw-text-muted);
  font-size: .75rem;
}

.nw-forum .cat:hover,
.nw-forum .cat.active {
  border-color: #66538f;
  background: var(--nw-violet-soft);
  color: var(--nw-text);
}

.nw-forum .layout { gap: 22px; }
.nw-forum .section-head { margin-bottom: 14px; }
.nw-forum .section-head h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.nw-forum .section-head button { min-height: 34px; color: var(--nw-text-muted); font-size: .75rem; }

.nw-forum .live-card,
.nw-forum .thread,
.nw-forum .side-card {
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  box-shadow: none;
}

.nw-forum .thread:hover,
.nw-forum .thread:focus-within,
.nw-forum .live-card:hover {
  border-color: #5f4e89;
  background: #16151d;
}

.nw-forum .thread-main { padding: 18px; }
.nw-forum .thread-avatar { width: 40px; height: 40px; background: var(--nw-surface-raised); font-size: .75rem; }
.nw-forum .thread-author strong { font-size: .88rem; }
.nw-forum .thread-author span,
.nw-forum .lang { color: var(--nw-text-muted); font-size: .72rem; }
.nw-forum .badge { border-color: #514170; background: var(--nw-violet-soft); font-size: .68rem; }
.nw-forum .thread-title { margin-top: 14px; font-size: 1.18rem; line-height: 1.35; }
.nw-forum .thread-excerpt { color: #cbc9d1; font-size: .88rem; line-height: 1.6; }
.nw-forum .translated { color: var(--nw-violet-bright); font-size: .7rem; }
.nw-forum .thread-foot { padding: 11px 18px; color: var(--nw-text-muted); font-size: .74rem; }
.nw-forum .thread-foot button { min-height: 32px; font-size: .74rem; }

.nw-forum .side-card { padding: 18px; }
.nw-forum .side-card h3 { font-size: 1rem; }
.nw-forum .today-item,
.nw-forum .community { min-height: 58px; }
.nw-forum .today-item b,
.nw-forum .community b { font-size: .82rem; }
.nw-forum .today-item span,
.nw-forum .community span { font-size: .7rem; color: var(--nw-text-muted); }

.nw-forum .overlay { background: rgba(5, 5, 8, .82); backdrop-filter: blur(18px); }
.nw-forum .sheet { border-color: var(--nw-border); background: var(--nw-app-bg); }
.nw-forum .sheet-head { border-color: var(--nw-border); background: var(--nw-surface); }
.nw-forum .sheet-head h2 { font-size: 1.3rem; }
.nw-forum .field-label { color: var(--nw-text-muted); font-size: .76rem; }
.nw-forum .text-input,
.nw-forum .text-area,
.nw-forum .select { min-height: 45px; border-color: var(--nw-border); background: var(--nw-surface); font-size: .9rem; }
.nw-forum .detail-title { font-size: 1.8rem; }
.nw-forum .detail-copy,
.nw-forum .reply p { color: #cbc9d1; font-size: .9rem; line-height: 1.65; }
.nw-forum .reply-author { font-size: .84rem; }
.nw-forum .reply-meta { font-size: .7rem; }

/* Messages */
.nw-messages .message-layout { gap: 16px; }

.nw-messages .inbox-panel,
.nw-messages .conversation,
.nw-messages .conversation-empty {
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
}

.nw-messages .inbox-head,
.nw-messages .chat-head,
.nw-messages .composer-wrap {
  border-color: var(--nw-border);
  background: var(--nw-surface);
}

.nw-messages .tabs {
  border-color: var(--nw-border);
  background: var(--nw-surface-soft);
}

.nw-messages .tab {
  min-height: 45px;
  color: var(--nw-text-muted);
  font-size: .76rem;
}

.nw-messages .tab.active {
  color: var(--nw-text);
  background: var(--nw-violet-soft);
  box-shadow: inset 0 -2px var(--nw-violet);
}

.nw-messages .search {
  min-height: 44px;
  border-color: var(--nw-border);
  background: var(--nw-surface-soft);
}

.nw-messages .search input { font-size: .84rem; }

.nw-messages .thread {
  min-height: 76px;
  padding: 14px;
  border-color: var(--nw-border);
}

.nw-messages .thread:hover,
.nw-messages .thread.active { background: var(--nw-violet-soft); }
.nw-messages .thread-avatar { background: var(--nw-surface-raised); }
.nw-messages .thread-top b { font-size: .86rem; }
.nw-messages .thread-top span { color: var(--nw-text-quiet); font-size: .7rem; }
.nw-messages .thread-badge { font-size: .65rem !important; }
.nw-messages .thread-preview { color: var(--nw-text-muted); font-size: .76rem; }

.nw-messages .chat-head { min-height: 68px; padding: 11px 14px; }
.nw-messages .chat-avatar { width: 42px; height: 42px; background: var(--nw-surface-raised); }
.nw-messages .chat-id b { font-size: .92rem; }
.nw-messages .chat-id span { color: var(--nw-text-muted); font-size: .7rem; }
.nw-messages .translate-strip { min-height: 42px; border-color: var(--nw-border); background: var(--nw-violet-soft); }
.nw-messages .translate-strip span,
.nw-messages .translate-strip button { font-size: .7rem; }

.nw-messages .timeline { padding: 18px 14px; }
.nw-messages .day { color: var(--nw-text-quiet); font-size: .7rem; }
.nw-messages .mini-avatar { width: 30px; height: 30px; background: var(--nw-surface-raised); }
.nw-messages .bubble { padding: 11px 13px; border-color: var(--nw-border); background: var(--nw-surface-raised); }
.nw-messages .mine .bubble { border-color: #5a4384; background: #39245e; }
.nw-messages .bubble p { font-size: .86rem; line-height: 1.55; }
.nw-messages .bubble-meta,
.nw-messages .bubble-tools button,
.nw-messages .reply-preview { color: var(--nw-text-quiet); font-size: .68rem; }

.nw-messages .composer textarea {
  min-height: 45px;
  padding: 11px 13px;
  border-color: var(--nw-border);
  background: var(--nw-surface-soft);
  font-size: .86rem;
}

.nw-messages .send {
  width: 45px;
  height: 45px;
  flex-basis: 45px;
  background: var(--nw-violet);
}

.nw-messages .send:hover { background: var(--nw-violet-bright); }
.nw-messages .composer-foot,
.nw-messages .replying span { color: var(--nw-text-quiet); font-size: .68rem; }
.nw-messages .conversation-empty b { font-size: 1rem; }
.nw-messages .conversation-empty p { color: var(--nw-text-muted); font-size: .82rem; }

.nw-messages .details-sheet { background: rgba(5, 5, 8, .82); backdrop-filter: blur(18px); }
.nw-messages .details { border-color: var(--nw-border); background: var(--nw-surface); }
.nw-messages .details-profile h3 { font-size: 1rem; }
.nw-messages .details-profile p { color: var(--nw-text-muted); font-size: .75rem; }
.nw-messages .detail-actions button { min-height: 42px; border-color: var(--nw-border); background: var(--nw-surface-soft); font-size: .8rem; }

/* Profile */
.nw-profile .shell { padding-top: 44px; }

.nw-profile .hero {
  padding: 28px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-lg);
  background: var(--nw-surface);
  box-shadow: none;
}

.nw-profile .hero::after { display: none; }
.nw-profile .identity { gap: 18px; }

.nw-profile .avatar-lg {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
  background: var(--nw-violet);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .035);
}

.nw-profile .identity-copy h1 { font-size: 2.4rem; }
.nw-profile .handle { color: var(--nw-text-muted); font-size: .82rem; }
.nw-profile .chip { border-color: var(--nw-border); background: transparent; color: var(--nw-text-muted); font-size: .7rem; }
.nw-profile .bio { color: #cbc9d1; font-size: .92rem; line-height: 1.6; }
.nw-profile .hero-actions { margin-top: 20px; }
.nw-profile .layout { gap: 24px; margin-top: 28px; }

.nw-profile .section-title { margin-bottom: 14px; }
.nw-profile .section-title h2 { font-size: 1.35rem; letter-spacing: -.035em; }
.nw-profile .section-title span { color: var(--nw-text-quiet); font-size: .72rem; }

.nw-profile .stats { gap: 10px; }
.nw-profile .stat,
.nw-profile .badge-card,
.nw-profile .card {
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  box-shadow: none;
}

.nw-profile .stat { min-height: 118px; padding: 16px; }
.nw-profile .stat .k { color: var(--nw-violet-bright); font-size: .7rem; }
.nw-profile .stat b { font-size: 1.55rem; }
.nw-profile .stat span { color: var(--nw-text-muted); font-size: .72rem; }

.nw-profile .badge-card {
  min-height: 94px;
  padding: 15px;
  transition: background .18s, border-color .18s;
}

.nw-profile .badge-card:hover { border-color: #5f4e89; background: #16151d; }

.nw-profile .badge-icon,
.nw-profile .badge-card:nth-child(n) .badge-icon {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 14px;
  background: var(--nw-violet-soft);
  color: var(--nw-violet-bright);
  box-shadow: inset 0 0 0 1px #493b68;
}

.nw-profile .badge-copy b { font-size: .9rem; }
.nw-profile .badge-copy span { color: var(--nw-text-muted); font-size: .72rem; }
.nw-profile .badge-copy .tiny-progress,
.nw-profile .progress,
.nw-profile .mini-track { background: var(--nw-border); }
.nw-profile .badge-copy .tiny-progress i,
.nw-profile .progress i,
.nw-profile .mini-fill { background: var(--nw-violet); }
.nw-profile .badge-xp { color: var(--nw-text-quiet); font-size: .7rem; }

.nw-profile .card { padding: 18px; }
.nw-profile .activity-row { min-height: 60px; border-color: var(--nw-border); }
.nw-profile .activity-copy b { font-size: .84rem; }
.nw-profile .activity-copy span { color: var(--nw-text-muted); font-size: .72rem; }
.nw-profile .activity-xp { font-size: .72rem; }

.nw-profile .quick-links a {
  min-height: 62px;
  border-color: var(--nw-border);
  background: var(--nw-surface-soft);
  font-size: .82rem;
}

.nw-profile .quick-links a:hover { border-color: #66538f; background: var(--nw-violet-soft); }
.nw-profile .quick-links a span { color: var(--nw-text-muted); font-size: .7rem; }
.nw-profile .modal-wrap { background: rgba(5, 5, 8, .82); backdrop-filter: blur(18px); }
.nw-profile .modal { border-color: var(--nw-border); background: var(--nw-surface); }
.nw-profile .field label { color: var(--nw-text-muted); font-size: .75rem; }
.nw-profile .field input,
.nw-profile .field select,
.nw-profile .field textarea { min-height: 45px; font-size: .9rem; }

/* World Pulse */
.nw-pulse .earth { display: none; }
.nw-pulse .hero-note { display: none; }
.nw-pulse .hero { padding-bottom: 42px; }
.nw-pulse .main-grid { gap: 22px; }

.nw-pulse .card,
.nw-pulse .action-card {
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  box-shadow: none;
}

.nw-pulse .pulse-card { padding: 24px; }
.nw-pulse .pulse-card::before { background: var(--nw-violet); }
.nw-pulse .card-kicker { color: var(--nw-violet-bright); font-size: .72rem; }
.nw-pulse .date { color: var(--nw-text-muted); font-size: .72rem; }
.nw-pulse .question { margin-top: 20px; font-size: clamp(1.9rem, 4vw, 3.15rem); line-height: 1.08; }
.nw-pulse .question-sub { color: var(--nw-text-muted); font-size: .92rem; line-height: 1.55; }

.nw-pulse .vote-grid { gap: 10px; }
.nw-pulse .vote-option {
  min-height: 70px;
  border-color: var(--nw-border);
  border-radius: 13px;
  background: var(--nw-surface-soft);
  transition: background .18s, border-color .18s;
}

.nw-pulse .vote-option:hover,
.nw-pulse .vote-option.selected {
  border-color: #66538f;
  background: var(--nw-violet-soft);
  box-shadow: none;
}

.nw-pulse .vote-label { font-size: 1.15rem; }
.nw-pulse .vote-track { background: var(--nw-border); }
.nw-pulse .vote-fill,
.nw-pulse .vote-option:not(.selected) .vote-fill { background: var(--nw-violet); }
.nw-pulse .choice-dot { border-color: #555360; }
.nw-pulse .selected .choice-dot { border-color: var(--nw-violet-bright); background: var(--nw-violet); box-shadow: none; }

.nw-pulse .participation { padding: 18px; }
.nw-pulse .participation-head b,
.nw-pulse .section-title { font-size: 1rem; }
.nw-pulse .participation-head span,
.nw-pulse .meta,
.nw-pulse .xpmeta { color: var(--nw-text-muted); font-size: .72rem; }
.nw-pulse .stat b { font-size: 1.55rem; }
.nw-pulse .stat span { color: var(--nw-text-muted); font-size: .7rem; }
.nw-pulse .badge-medal { background: var(--nw-violet-soft); color: var(--nw-violet-bright); box-shadow: none; }

.nw-pulse .action-card {
  min-height: 76px;
  padding: 15px 18px;
  transition: background .18s, border-color .18s;
}

.nw-pulse .action-card:hover { border-color: #66538f; background: var(--nw-violet-soft); }
.nw-pulse .action-icon { background: var(--nw-violet-soft); color: var(--nw-violet-bright); }
.nw-pulse .action-copy b { font-size: .92rem; }
.nw-pulse .action-copy span { color: var(--nw-text-muted); font-size: .75rem; }

.nw-pulse .two-up { gap: 12px; }
.nw-pulse .teaser { min-height: 150px; padding: 18px; }
.nw-pulse .teaser-title { font-size: 1rem; }
.nw-pulse .teaser p,
.nw-pulse .archive-result { color: var(--nw-text-muted); font-size: .78rem; line-height: 1.5; }
.nw-pulse .archive-orb { display: none; }
.nw-pulse .modal-wrap { background: rgba(5, 5, 8, .82); backdrop-filter: blur(18px); }
.nw-pulse .modal { border-color: var(--nw-border); background: var(--nw-surface); }
.nw-pulse .secondary { min-height: 42px; border-color: var(--nw-border); background: var(--nw-surface-soft); font-size: .8rem; }

.nw-truth-empty {
  padding: 22px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  color: var(--nw-text-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.nw-truth-empty b,
.nw-truth-empty span { display: block; }
.nw-truth-empty b { color: var(--nw-text); font-size: .9rem; }
.nw-truth-empty span { margin-top: 5px; }
.nw-truth-empty a { display: inline-block; margin-top: 10px; color: var(--nw-violet-bright); font-weight: 780; }
.nw-truth-empty-compact { padding: 14px; border-radius: 12px; }
.nw-truth-empty-compact b { font-size: .78rem; }

.nw-pulse .vote-option { grid-template-columns: minmax(70px, 1fr) 28px; }

@media (min-width: 900px) and (max-width: 1100px) {
  .nw-pulse .stats { grid-template-columns: 1fr 1fr; }
  .nw-pulse .stat:nth-child(2) { border-right: 0; }
  .nw-pulse .badge-wrap {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 12px;
    padding: 13px 0 0;
    border-top: 1px solid var(--nw-border);
  }
  .nw-pulse .badge-copy { min-width: 0; flex: 1; }
}

@media (min-width: 900px) {
  .nw-suite-page .desktop-nav { display: flex; }
  .nw-suite-page .bottom-nav { display: none; }
  .nw-suite-page .app { padding-bottom: 0; }
  .nw-communities .main-grid { grid-template-columns: minmax(0, 1fr) 310px; }
  .nw-messages .message-layout { grid-template-columns: 370px minmax(0, 1fr); }
  .nw-profile .layout { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); }
  .nw-pulse .main-grid { grid-template-columns: minmax(0, 1.6fr) minmax(320px, .75fr); }
}

@media (max-width: 899px) {
  .nw-suite-page .topbar {
    min-height: 72px;
    padding: 10px 15px;
  }

  .nw-suite-page .top-name,
  .nw-suite-page .avatar-btn > span:last-child { display: none; }

  .nw-suite-page .top-profile,
  .nw-suite-page .avatar-btn {
    width: 44px;
    padding: 4px;
    justify-content: center;
    border-radius: 11px;
  }

  .nw-suite-page .shell,
  .nw-forum main {
    width: min(100% - 30px, var(--nw-max));
    padding-bottom: 42px;
  }

  .nw-suite-page .hero { padding: 38px 0 30px; }
  .nw-suite-page .hero h1 { font-size: clamp(2.75rem, 13vw, 4.6rem); }
  .nw-suite-page .hero > p { margin-top: 14px; font-size: .96rem; }

  .nw-forum .top-actions { min-width: 0; gap: 3px; }
  .nw-forum .toolbar { align-items: stretch; }
  .nw-forum .category-scroll { padding-bottom: 12px; }

  .nw-profile .shell { padding-top: 24px; }
  .nw-profile .layout { margin-top: 22px; }
}

@media (max-width: 779px) {
  .nw-messages.chat-open .hero { display: none; }
  .nw-messages.chat-open .shell {
    padding-top: 12px;
    padding-bottom: calc(var(--navh) + 12px);
  }
  .nw-messages.chat-open .message-layout { min-height: 0; }
  .nw-messages.chat-open .conversation.show {
    height: calc(100dvh - var(--nw-header-height) - var(--navh) - 24px);
    min-height: 0;
    max-height: calc(100dvh - var(--nw-header-height) - var(--navh) - 24px);
  }
}

@media (max-width: 620px) {
  .nw-suite-page .brandtext span,
  .nw-suite-page .brandcopy span { display: none; }

  .nw-suite-page .brandmark { width: 32px; height: 32px; flex-basis: 32px; }
  .nw-suite-page .brandtext strong,
  .nw-suite-page .brandcopy strong { font-size: .82rem; }

  .nw-communities .world-card,
  .nw-pulse .pulse-card { padding: 18px; }

  .nw-communities .world-top { align-items: flex-start; }
  .nw-communities .world-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .nw-communities .world-copy h2 { font-size: 1.55rem; }
  .nw-communities .world-actions > * { flex: 1 1 145px; }
  .nw-communities .community-head { flex-wrap: wrap; }
  .nw-communities .community-copy { flex: 1 1 calc(100% - 64px); }
  .nw-communities .community-head > .join { margin-left: 64px; }

  .nw-forum .toolbar { flex-wrap: nowrap; }
  .nw-forum .compose { flex: 0 0 auto; padding: 0 14px; }
  .nw-forum .thread-head { align-items: flex-start; flex-wrap: wrap; }
  .nw-forum .thread-author { flex: 1 1 calc(100% - 52px); }
  .nw-forum .lang { margin-left: 48px; }
  .nw-forum .thread-main { padding: 16px; }
  .nw-forum .thread-foot { padding: 10px 16px; }

  .nw-messages .inbox-head { padding: 12px; }
  .nw-messages .thread { padding: 13px 12px; }
  .nw-messages .conversation,
  .nw-messages .conversation-empty { min-height: calc(100vh - 164px); }

  .nw-profile .hero { padding: 22px; }
  .nw-profile .identity { align-items: flex-start; }
  .nw-profile .avatar-lg { width: 68px; height: 68px; flex-basis: 68px; }
  .nw-profile .identity-copy h1 { font-size: 2rem; }
  .nw-profile .hero-actions { flex-wrap: wrap; }
  .nw-profile .stats { grid-template-columns: 1fr 1fr; }
  .nw-profile .badges { grid-template-columns: 1fr; }
  .nw-profile .badge-card { min-width: 0; }

  .nw-pulse .question { font-size: 2rem; }
  .nw-pulse .vote-grid { grid-template-columns: 1fr; }
  .nw-pulse .vote-option { grid-template-columns: minmax(70px, 1fr) 34px; }
  .nw-pulse .vote-track,
  .nw-pulse .vote-pct { display: none; }
  .nw-pulse .choice-dot { grid-column: 2; }
}

@media (max-width: 410px) {
  .nw-suite-page .icon-btn,
  .nw-suite-page .iconbtn,
  .nw-suite-page .nw-notif-link,
  .nw-suite-page .top-profile,
  .nw-suite-page .avatar-btn { width: 44px; height: 44px; flex-basis: 44px; }
  .nw-suite-page .bottom-nav a { font-size: .6rem; }
  .nw-profile .top-action { min-width: 72px; padding: 0 10px; }
}

/* Challenge: focused daily game inside the accepted suite shell. */
.nw-challenge a { text-decoration: none; }

.nw-challenge .shell {
  width: min(calc(100% - 48px), var(--nw-max));
  min-height: 0;
  padding: 0 0 52px;
}

.nw-challenge .hero {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 46px 0 30px;
}

.nw-challenge .eyebrow { margin-top: 0; }
.nw-challenge .hero h1 { margin: 14px 0 12px; }
.nw-challenge .subhead {
  max-width: 720px;
  color: var(--nw-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.nw-challenge .today-card {
  width: min(100%, 840px);
  margin: 0 auto;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius-lg);
  background: var(--nw-surface);
  box-shadow: none;
}

.nw-challenge .today-card::before {
  height: 2px;
  background: linear-gradient(90deg, transparent 6%, var(--nw-violet) 50%, transparent 94%);
  opacity: .8;
}

.nw-challenge .card-pad { padding: 26px; }
.nw-challenge .meta-row { margin-bottom: 22px; }
.nw-challenge .chip {
  border-color: var(--nw-border);
  border-radius: 999px;
  background: transparent;
  color: var(--nw-text-muted);
  font-size: .7rem;
  letter-spacing: .04em;
}

.nw-challenge .chip.accent {
  border-color: #4d3c75;
  background: var(--nw-violet-soft);
  color: var(--nw-violet-bright);
}

.nw-challenge .challenge-title { align-items: center; }
.nw-challenge .challenge-title h2 { color: var(--nw-text); font-size: 2rem; }
.nw-challenge .challenge-title p { color: var(--nw-text-muted); font-size: .86rem; line-height: 1.55; }
.nw-challenge .badge-mini { min-width: 76px; }
.nw-challenge .badge-orb {
  width: 56px;
  height: 56px;
  background: var(--nw-violet-soft);
  border: 1px solid #5b448c;
  box-shadow: none;
  color: var(--nw-violet-bright);
}
.nw-challenge .badge-mini small { color: var(--nw-text-quiet); font-size: .65rem; }
.nw-challenge .divider { background: var(--nw-border); }

.nw-challenge .stats-row { gap: 10px; }
.nw-challenge .stat {
  min-height: 86px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface-soft);
  padding: 15px;
}
.nw-challenge .stat b { color: var(--nw-text); font-size: 1.25rem; }
.nw-challenge .stat span { color: var(--nw-text-muted); font-size: .68rem; }

.nw-challenge .progress-head { color: var(--nw-text-muted); font-size: .72rem; }
.nw-challenge .progress-track { height: 7px; border-color: var(--nw-border); background: #24232c; }
.nw-challenge .progress-fill { background: var(--nw-violet); }
.nw-challenge .game-zone { border-color: var(--nw-border); }
.nw-challenge .game-top .status { color: #d8d6de; font-size: .86rem; }
.nw-challenge .timer { color: var(--nw-violet-bright); font-size: .82rem; }

.nw-challenge .memory-grid { width: min(100%, 360px); gap: 10px; }
.nw-challenge .tile {
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface-raised);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.nw-challenge .tile:hover { border-color: #4b4756; background: #1d1c24; }
.nw-challenge .tile.lit {
  border-color: var(--nw-violet-bright);
  background: var(--nw-violet);
  box-shadow: 0 0 18px rgba(139, 108, 246, .24);
}
.nw-challenge .tile.selected { border-color: var(--nw-violet-bright); background: #58408f; box-shadow: none; }
.nw-challenge .instructions { color: var(--nw-text-muted); font-size: .8rem; }

.nw-challenge .primary,
.nw-challenge .secondary {
  min-height: 45px;
  padding: 0 18px;
  border-radius: var(--nw-radius-sm);
  font-size: .82rem;
  box-shadow: none;
}
.nw-challenge .primary { background: var(--nw-violet); }
.nw-challenge .primary:hover { background: var(--nw-violet-bright); filter: none; }
.nw-challenge .secondary { border-color: var(--nw-border); background: transparent; }
.nw-challenge .secondary:hover { border-color: #4b4756; background: var(--nw-surface-soft); }

.nw-challenge .result { border-color: #4d3c75; border-radius: var(--nw-radius); background: var(--nw-violet-soft); }
.nw-challenge .section {
  width: min(100%, 840px);
  margin: 34px auto 0;
}
.nw-challenge .section h3 { color: var(--nw-text); font-size: 1.25rem; }
.nw-challenge .section-head span { color: var(--nw-text-quiet); font-size: .72rem; }
.nw-challenge .activity-card {
  min-height: 84px;
  border-color: var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  transition: background .18s, border-color .18s, transform .18s;
}
.nw-challenge .activity-card:hover { border-color: #4b4756; background: var(--nw-surface-raised); transform: translateY(-1px); }
.nw-challenge .activity-icon { border-color: var(--nw-border); background: var(--nw-violet-soft); }
.nw-challenge .activity-card b { color: var(--nw-text); font-size: .9rem; }
.nw-challenge .activity-card p { color: var(--nw-text-muted); font-size: .76rem; line-height: 1.5; }
.nw-challenge .coming { color: var(--nw-violet-bright); font-size: .68rem; }
.nw-challenge footer { padding: 0 24px 32px; color: var(--nw-text-quiet); font-size: .68rem; }
.nw-challenge .toast { bottom: 92px; border-color: var(--nw-border); background: var(--nw-surface-raised); }

@media (min-width: 900px) {
  .nw-challenge .card-pad {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
    column-gap: 28px;
  }
  .nw-challenge .meta-row { grid-column: 1 / -1; }
  .nw-challenge .challenge-title,
  .nw-challenge .divider,
  .nw-challenge .stats-row,
  .nw-challenge .progress-wrap { grid-column: 1; }
  .nw-challenge .challenge-title { align-self: start; }
  .nw-challenge .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nw-challenge .stat { min-width: 0; padding: 13px 9px; }
  .nw-challenge .stat span { letter-spacing: .045em; }
  .nw-challenge .game-zone {
    grid-column: 2;
    grid-row: 2 / 6;
    margin: 0;
    padding: 0 0 0 28px;
    border-top: 0;
    border-left: 1px solid var(--nw-border);
  }
  .nw-challenge .memory-grid { width: min(100%, 330px); }
  .nw-challenge .toast { bottom: 24px; }
}

@media (max-width: 620px) {
  .nw-challenge .shell { width: min(calc(100% - 30px), var(--nw-max)); padding-bottom: 38px; }
  .nw-challenge .hero { padding: 30px 0 24px; }
  .nw-challenge .hero h1 { margin: 12px 0 10px; font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .nw-challenge .subhead { font-size: .86rem; line-height: 1.55; }
  .nw-challenge .card-pad { padding: 16px; }
  .nw-challenge .meta-row { margin-bottom: 16px; }
  .nw-challenge .challenge-title { align-items: flex-start; }
  .nw-challenge .challenge-title h2 { font-size: 1.65rem; }
  .nw-challenge .challenge-title p { margin-top: 5px; font-size: .8rem; }
  .nw-challenge .badge-mini { min-width: 62px; }
  .nw-challenge .badge-orb { width: 50px; height: 50px; }
  .nw-challenge .divider { margin: 16px 0; }
  .nw-challenge .stats-row { gap: 7px; }
  .nw-challenge .stat { min-height: 74px; padding: 10px 8px; }
  .nw-challenge .stat b { font-size: 1.05rem; }
  .nw-challenge .stat span { font-size: .62rem; }
  .nw-challenge .progress-wrap { margin-top: 12px; }
  .nw-challenge .game-zone { margin-top: 16px; padding-top: 16px; }
  .nw-challenge .game-top { margin-bottom: 10px; }
  .nw-challenge .memory-grid { width: min(100%, 280px); gap: 8px; }
  .nw-challenge .tile { border-radius: 13px; }
  .nw-challenge .instructions { min-height: 30px; margin-top: 10px; }
  .nw-challenge .primary { margin-top: 14px; }
  .nw-challenge .section-head { align-items: flex-start; }
  .nw-challenge .activity-card { padding: 14px; }
  .nw-challenge .activity-card p { font-size: .72rem; }
  .nw-challenge footer { padding-bottom: 98px; }
}

/* Canonical global header lock: exact accepted Home contract for static pages. */
.nw-global-header {
  position: sticky;
  top: 0;
  z-index: 70;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: var(--nw-header-height);
  min-height: var(--nw-header-height);
  padding: 0 max(20px, calc((100vw - var(--nw-max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(9, 9, 12, .88);
  backdrop-filter: blur(22px);
}

.nw-global-header a { text-decoration: none; }
.nw-global-header .nw-header-left {
  min-width: 0;
  display: flex;
  align-items: center;
}

.nw-global-header .brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nw-text);
}

.nw-global-header .brandmark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--nw-violet-soft);
  color: var(--nw-violet-bright);
  box-shadow: none;
}

.nw-global-header .brandmark svg { width: 20px; height: 20px; }
.nw-global-header .brandmark svg * { stroke: currentColor !important; }
.nw-global-header .brandtext { min-width: 0; line-height: 1; }
.nw-global-header .brandtext strong {
  display: block;
  color: var(--nw-text);
  font-size: .93rem;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.nw-global-header .brandtext span {
  display: block;
  margin-top: 4px;
  color: var(--nw-text-quiet);
  font-size: .61rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nw-global-header .desktop-nav {
  margin-left: 22px;
  display: none;
  align-items: center;
  gap: 2px;
}

.nw-global-header .desktop-nav a {
  min-height: 42px;
  padding: 0 11px;
  border-radius: var(--nw-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nw-text-muted);
  background: transparent;
  font-size: .84rem;
  font-weight: 650;
  transition: background .18s, color .18s;
}

.nw-global-header .desktop-nav svg { width: 17px; height: 17px; flex: 0 0 auto; }
.nw-global-header .desktop-nav a:hover,
.nw-global-header .desktop-nav a.active { color: var(--nw-text); background: var(--nw-violet-soft); }
.nw-global-header .desktop-nav a.active { box-shadow: inset 0 -2px var(--nw-violet); }

.nw-global-header .top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nw-global-header .icon-btn,
.nw-global-header .nw-notif-link {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--nw-text-muted);
  cursor: pointer;
  transition: color .18s, background .18s;
}

.nw-global-header .nw-notif-link { flex-basis: 36px; }

.nw-global-header .icon-btn:hover,
.nw-global-header .nw-notif-link:hover { color: var(--nw-violet-bright); background: var(--nw-violet-soft); }
.nw-global-header .icon-btn svg,
.nw-global-header .nw-notif-link svg { width: 17px; height: 17px; }
.nw-global-header .nw-notif-link .nw-dot {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nw-violet-bright);
  box-shadow: 0 0 0 2px var(--nw-app-bg), 0 0 10px rgba(169, 146, 255, .55);
}
.nw-global-header .nw-notif-link.seen .nw-dot { display: none; }

.nw-global-header .profile-pill {
  min-height: 44px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--nw-border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--nw-surface);
  color: var(--nw-text);
  transition: background .18s, border-color .18s;
}

.nw-global-header .profile-pill:hover { border-color: #5d4d83; background: var(--nw-surface-raised); }
.nw-global-header .profile-pill[aria-current="page"] {
  border-color: #5d4d83;
  background: var(--nw-violet-soft);
  box-shadow: inset 0 -2px var(--nw-violet);
}

.nw-global-header .avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nw-violet);
  color: var(--nw-text);
  font-size: .75rem;
  font-weight: 900;
}

.nw-global-header .profile-copy { display: block; min-width: 0; text-align: left; line-height: 1; }
.nw-global-header .profile-copy b { display: block; color: var(--nw-text); font-size: .78rem; white-space: nowrap; }
.nw-global-header .profile-copy span { display: block; margin-top: 4px; color: var(--nw-text-quiet); font-size: .68rem; white-space: nowrap; }

@media (min-width: 900px) {
  .nw-global-header .desktop-nav { display: flex; }
}

@media (max-width: 899px) {
  .nw-global-header {
    height: 72px;
    min-height: 72px;
    padding: 10px 15px;
  }
}

@media (max-width: 620px) {
  .nw-global-header .brandtext span { display: none; }
  .nw-global-header .profile-pill {
    width: 42px;
    padding: 4px;
    justify-content: center;
    border-radius: 11px;
  }
  .nw-global-header .profile-copy { display: none; }
}

@media (max-width: 410px) {
  .nw-global-header .top-actions { gap: 3px; }
  .nw-global-header .icon-btn,
  .nw-global-header .profile-pill { width: 44px; height: 44px; flex-basis: 44px; }
  .nw-global-header .nw-notif-link { width: 44px; height: 44px; flex-basis: 36px; }
  .nw-global-header .brandmark { width: 32px; height: 32px; flex-basis: 32px; }
  .nw-global-header .brandtext strong { font-size: .82rem; }
}

/* Profile production controls: ISO country selection and optional user photo. */
.nw-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nw-profile .modal {
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nw-profile .profile-photo-field {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius);
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--nw-surface-soft);
}

.nw-profile .profile-photo-preview {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--nw-violet);
  color: var(--nw-text);
  font-size: 1.4rem;
  font-weight: 850;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .04);
}

.nw-profile .photo-copy { min-width: 0; flex: 1; }
.nw-profile .photo-copy > b { display: block; font-size: .84rem; }
.nw-profile .photo-copy > p { margin: 4px 0 0; color: var(--nw-text-muted); font-size: .7rem; line-height: 1.45; }
.nw-profile .photo-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.nw-profile .photo-change,
.nw-profile .photo-remove {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nw-surface-raised);
  color: var(--nw-text);
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}
.nw-profile .photo-change:hover,
.nw-profile .photo-remove:hover { border-color: #5d4d83; background: var(--nw-violet-soft); }
.nw-profile .photo-remove { color: #d8cfdc; }
.nw-profile .photo-remove[hidden] { display: none; }
.nw-profile .photo-status { min-height: 1em; margin-top: 6px; color: var(--nw-text-quiet); font-size: .66rem; }
.nw-profile .photo-status.error { color: #ef9ca5; }

.nw-profile .country-control { position: relative; }
.nw-profile .country-trigger {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--nw-border);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--nw-surface-soft);
  color: var(--nw-text);
  text-align: left;
  cursor: pointer;
}
.nw-profile .country-trigger:hover,
.nw-profile .country-trigger[aria-expanded="true"] { border-color: #5d4d83; background: var(--nw-surface-raised); }
.nw-profile .country-value { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.nw-profile .country-chevron { flex: 0 0 auto; color: var(--nw-text-muted); font-size: .72rem; }
.nw-profile .country-trigger[aria-expanded="true"] .country-chevron { transform: rotate(180deg); }
.nw-profile .country-popover {
  margin-top: 7px;
  border: 1px solid var(--nw-border);
  border-radius: 13px;
  overflow: hidden;
  background: #111116;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.nw-profile .country-popover[hidden] { display: none; }
.nw-profile .country-search-wrap {
  padding: 8px;
  border-bottom: 1px solid var(--nw-border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111116;
}
.nw-profile .country-search-wrap svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--nw-text-muted); }
.nw-profile .country-search-wrap input {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--nw-surface-raised);
}
.nw-profile .country-list {
  max-height: min(242px, 35dvh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #4e455f #17171d;
}
.nw-profile .country-option {
  min-height: 44px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nw-text-muted);
  font-size: .78rem;
  cursor: pointer;
}
.nw-profile .country-option:hover,
.nw-profile .country-option.active { background: var(--nw-violet-soft); color: var(--nw-text); }
.nw-profile .country-option[aria-selected="true"] { color: var(--nw-violet-bright); font-weight: 750; }
.nw-profile .country-empty { margin: 0; padding: 18px 12px; color: var(--nw-text-muted); font-size: .75rem; text-align: center; }
.nw-profile .country-hint { margin: 6px 0 0; color: var(--nw-text-quiet); font-size: .66rem; line-height: 1.4; }
.nw-profile .country-flag {
  width: 30px;
  height: 20px;
  flex: 0 0 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 3px;
  display: block;
  object-fit: cover;
}
.nw-profile .country-globe {
  width: 30px;
  height: 20px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: var(--nw-violet-bright);
}
.nw-profile .country-globe svg { width: 20px; height: 20px; }
.nw-profile .country-name-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.nw-profile .country-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; text-align: left; }
.nw-profile .country-chip .country-flag { width: 24px; height: 16px; flex-basis: 24px; }
.nw-profile .country-chip .country-globe { width: 24px; height: 16px; flex-basis: 24px; }

.nw-profile .avatar-lg.has-photo,
.nw-profile .profile-photo-preview.has-photo,
.nw-home .avatar.has-photo,
.nw-global-header .avatar.has-photo,
[data-nw-user-avatar].has-photo {
  background-color: var(--nw-surface-raised);
  background-repeat: no-repeat;
  color: transparent;
}

@media (max-width: 620px) {
  .nw-profile .modal-wrap { padding: 8px; }
  .nw-profile .modal { max-height: calc(100dvh - 16px); padding: 14px; }
  .nw-profile .profile-photo-field { align-items: flex-start; }
  .nw-profile .profile-photo-preview { width: 58px; height: 58px; flex-basis: 58px; }
  .nw-profile .country-list { max-height: min(220px, 31dvh); }
  .nw-profile .country-option { min-height: 46px; }
}

/* Shared device-local attachment capability: Messages and Forum Gate 1. */
.nw-attachment-composer {
  min-width: 0;
}

.nw-attachment-drop-target {
  position: relative;
  isolation: isolate;
}

.nw-attachment-drop-hint {
  position: absolute;
  inset: 6px;
  z-index: 20;
  border: 1px solid rgba(139, 108, 246, .72);
  border-radius: var(--nw-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 15, 21, .96);
  box-shadow: inset 0 0 0 1px rgba(169, 146, 255, .1);
  color: var(--nw-violet-bright);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .015em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.nw-attachment-drop-target.is-file-drag-active .nw-attachment-drop-hint {
  opacity: 1;
  visibility: visible;
}

.nw-attachment-picker {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-sm);
  display: grid;
  place-items: center;
  background: var(--nw-surface-raised);
  color: var(--nw-text-muted);
}

.nw-attachment-picker:hover {
  border-color: #5d4d83;
  background: var(--nw-violet-soft);
  color: var(--nw-text);
}

.nw-attachment-picker:disabled {
  opacity: .5;
  cursor: wait;
}

.nw-attachment-picker svg {
  width: 18px;
  height: 18px;
}

.nw-attachment-staged,
.nw-attachment-display {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.nw-attachment-staged[hidden],
.nw-attachment-display[hidden],
.nw-attachment-progress[hidden] {
  display: none;
}

.nw-attachment-staged {
  margin-bottom: 8px;
  max-height: 218px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nw-attachment-display {
  margin-top: 10px;
}

.nw-attachment-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-sm);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: var(--nw-surface-soft);
}

.nw-attachment-thumbnail {
  width: 66px;
  height: 50px;
  border-radius: 7px;
  overflow: hidden;
  display: block;
  background: #09090c;
}

.nw-attachment-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nw-attachment-file-icon {
  width: 42px;
  height: 48px;
  border: 1px solid #454250;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #18181f;
  color: var(--nw-violet-bright);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.nw-attachment-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.nw-attachment-copy strong {
  overflow: hidden;
  color: var(--nw-text);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nw-attachment-copy span {
  color: var(--nw-text-muted);
  font-size: .62rem;
  line-height: 1.3;
}

.nw-attachment-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nw-attachment-action,
.nw-attachment-remove {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--nw-border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18181f;
  color: var(--nw-text-muted);
  font-size: .62rem;
  font-weight: 750;
  text-decoration: none;
}

.nw-attachment-action:hover,
.nw-attachment-remove:hover {
  border-color: #5d4d83;
  color: var(--nw-text);
}

.nw-attachment-remove {
  color: #d9a7ad;
}

.nw-attachment-status {
  min-height: 17px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nw-text-quiet);
  font-size: .62rem;
  line-height: 1.35;
}

.nw-attachment-status.is-error {
  color: #ef9ca5;
}

.nw-attachment-progress {
  width: 76px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--nw-violet);
}

.nw-messages .composer .nw-attachment-picker {
  width: 39px;
  height: 39px;
  flex-basis: 39px;
}

.nw-messages .bubble .nw-attachment-display {
  width: 100%;
  min-width: 0;
}

.nw-messages .bubble-wrap:has(.nw-attachment-display:not([hidden])) {
  width: min(88%, 560px);
  max-width: min(88%, 560px);
}

.nw-messages .bubble p:empty {
  display: none;
}

.nw-forum .nw-forum-attachment-composer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.nw-forum .nw-forum-attachment-drop-strip {
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--nw-radius-sm);
}

.nw-forum .nw-forum-attachment-drop-strip > .nw-attachment-drop-hint {
  inset: 0;
}

.nw-forum .nw-forum-attachment-composer .nw-attachment-staged {
  width: 100%;
  margin: 0;
}

.nw-forum .nw-forum-attachment-composer .nw-attachment-status:empty {
  display: none;
}

.nw-forum .nw-attachment-add {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--nw-surface-raised);
  color: var(--nw-text-muted);
  font-size: .68rem;
  font-weight: 750;
}

.nw-forum .nw-attachment-add:hover {
  border-color: #5d4d83;
  background: var(--nw-violet-soft);
  color: var(--nw-text);
}

.nw-forum .nw-attachment-add:disabled {
  opacity: .5;
  cursor: wait;
}

.nw-forum .nw-forum-attachment-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nw-forum .nw-forum-attachment-toolbar .nw-attachment-picker {
  width: auto;
  min-width: 42px;
  padding: 0 11px;
  display: inline-flex;
  gap: 7px;
  font-size: .68rem;
  font-weight: 750;
}

.nw-forum .thread-main > .nw-attachment-display {
  margin-top: 11px;
}

.nw-forum .thread-main > .nw-attachment-display .nw-attachment-card {
  background: #141319;
}

.nw-forum .reply > .nw-attachment-display {
  margin-left: 37px;
}

@media (max-width: 620px) {
  .nw-attachment-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .nw-attachment-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .nw-attachment-action,
  .nw-attachment-remove {
    min-height: 38px;
    padding-inline: 11px;
  }
  .nw-attachment-thumbnail {
    width: 72px;
    height: 54px;
  }
  .nw-messages .bubble-wrap:has(.nw-attachment-display:not([hidden])) {
    width: 88%;
    max-width: 88%;
  }
  .nw-forum .reply > .nw-attachment-display {
    margin-left: 0;
  }
}

/* Games-01: sixth canonical destination and the Nioret World play layer. */
.nw-home .bottom-nav,
.nw-suite-page .bottom-nav {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.nw-home .bottom-nav a,
.nw-suite-page .bottom-nav a {
  overflow: hidden;
  font-size: clamp(.51rem, 2.1vw, .62rem);
  white-space: nowrap;
}

.nw-home .bottom-nav a span,
.nw-suite-page .bottom-nav a span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}

@media (min-width: 900px) and (max-width: 1180px) {
  .nw-home .topbar,
  .nw-global-header {
    padding-inline: 16px;
    gap: 8px;
  }

  .nw-home .desktop-nav,
  .nw-global-header .desktop-nav {
    margin-left: 12px;
    gap: 0;
  }

  .nw-home .desktop-nav a,
  .nw-global-header .desktop-nav a {
    min-height: 40px;
    padding-inline: 7px;
    gap: 5px;
    font-size: .72rem;
  }

  .nw-home .desktop-nav svg,
  .nw-global-header .desktop-nav svg {
    width: 15px;
    height: 15px;
  }

  .nw-home .top-actions,
  .nw-global-header .top-actions { gap: 4px; }

}

@media (min-width: 900px) and (max-width: 1000px) {
  .nw-home .profile-pill,
  .nw-global-header .profile-pill {
    width: 44px;
    min-width: 44px;
    padding: 4px;
    justify-content: center;
    border-radius: 11px;
  }

  .nw-home .profile-copy,
  .nw-global-header .profile-copy { display: none; }
}

.nw-games .shell {
  width: min(calc(100% - 48px), var(--nw-max));
  padding-bottom: 82px;
}

.nw-games .games-hero {
  max-width: 1040px;
  padding: 72px 0 60px;
}

.nw-games .games-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--nw-text);
  font-size: clamp(3.5rem, 7.2vw, 6.6rem);
  line-height: .9;
  letter-spacing: -.072em;
}

.nw-games .games-hero > p {
  max-width: 790px;
  margin: 24px 0 0;
  color: var(--nw-text-muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.nw-games .games-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.nw-games .games-section {
  padding: 44px 0;
  border-top: 1px solid var(--nw-border);
}

.nw-games .games-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.nw-games .games-section h2 {
  margin: 0;
  color: var(--nw-text);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.nw-games .games-section-head p,
.nw-games .reward-copy > p,
.nw-games .developer-section > div > p {
  margin: 9px 0 0;
  color: var(--nw-text-muted);
  font-size: .87rem;
  line-height: 1.62;
}

.nw-games .game-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nw-games .game-filters::-webkit-scrollbar { display: none; }
.nw-games .game-filter {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--nw-border);
  border-radius: 999px;
  background: transparent;
  color: var(--nw-text-muted);
  font-size: .72rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}

.nw-games .game-filter:hover,
.nw-games .game-filter.active {
  border-color: #5d4d83;
  background: var(--nw-violet-soft);
  color: var(--nw-text);
}

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

.nw-games .game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius);
  background: var(--nw-surface);
  transition: background .18s, border-color .18s, transform .18s;
}

.nw-games .game-card:hover {
  border-color: #4b4856;
  background: var(--nw-surface-raised);
  transform: translateY(-1px);
}

.nw-games .game-card.featured { border-color: #4d3c75; }
.nw-games .game-art {
  height: 150px;
  border-bottom: 1px solid var(--nw-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #141319;
  color: var(--nw-violet-bright);
}

.nw-games .memory-motif {
  width: 92px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  transform: rotate(4deg);
}

.nw-games .memory-motif i {
  aspect-ratio: 1;
  border: 1px solid #51406e;
  border-radius: 9px;
  background: var(--nw-violet-soft);
}

.nw-games .memory-motif i:nth-child(2),
.nw-games .memory-motif i:nth-child(3) { background: var(--nw-violet); }
.nw-games .game-art.orbit span {
  width: 82px;
  height: 82px;
  border: 1px solid #5d4d83;
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px #18171e, inset 0 0 0 20px #393444;
  position: relative;
}

.nw-games .game-art.orbit span::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 34px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nw-violet-bright);
}

.nw-games .game-art.words {
  grid-auto-flow: column;
  gap: 8px;
}

.nw-games .game-art.words span {
  width: 44px;
  height: 44px;
  border: 1px solid #45424d;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--nw-surface-raised);
  font-size: 1.1rem;
  font-weight: 800;
}

.nw-games .game-art.signal {
  grid-auto-flow: column;
  align-items: end;
  gap: 7px;
}

.nw-games .game-art.signal span {
  width: 10px;
  height: 34px;
  border-radius: 8px;
  background: #454050;
}

.nw-games .game-art.signal span:nth-child(2) { height: 60px; background: #625086; }
.nw-games .game-art.signal span:nth-child(3) { height: 82px; background: var(--nw-violet); }
.nw-games .game-art.signal span:nth-child(4) { height: 50px; background: #625086; }
.nw-games .game-art.blocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nw-games .game-art.blocks span {
  width: 31px;
  height: 31px;
  border: 1px solid #514d5b;
  border-radius: 7px;
  background: var(--nw-surface-raised);
}

.nw-games .game-art.blocks span:nth-child(2),
.nw-games .game-art.blocks span:nth-child(4) { transform: translateY(20px); background: var(--nw-violet-soft); }
.nw-games .game-art.question span {
  width: 72px;
  height: 72px;
  border: 1px solid #5d4d83;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nw-violet-soft);
  font-size: 2rem;
  font-weight: 800;
}

.nw-games .game-card-body { padding: 18px; }
.nw-games .game-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--nw-text-quiet);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nw-games .game-meta span:last-child { color: #9787c8; text-align: right; }
.nw-games .game-card h3 {
  margin: 13px 0 7px;
  color: var(--nw-text);
  font-size: 1.2rem;
  letter-spacing: -.025em;
}

.nw-games .game-card p {
  min-height: 3.7em;
  margin: 0;
  color: var(--nw-text-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.nw-games .game-card-action {
  min-height: 46px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--nw-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nw-games .game-card-action > span { color: var(--nw-text-quiet); font-size: .69rem; }
.nw-games .game-play {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #534177;
  border-radius: var(--nw-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nw-violet-soft);
  color: var(--nw-text);
  font-size: .74rem;
  font-weight: 800;
  transition: background .18s, border-color .18s, color .18s;
}

.nw-games .game-play:hover { border-color: var(--nw-violet); background: rgba(139, 108, 246, .22); color: #fff; }
.nw-games .games-status {
  min-height: 1.25em;
  margin: 14px 0 0;
  color: var(--nw-text-muted);
  font-size: .72rem;
}

.nw-games .reward-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 54px;
}

.nw-games .reward-rule {
  margin-top: 18px !important;
  padding-left: 13px;
  border-left: 2px solid var(--nw-violet);
  color: #cbc7d3 !important;
}

.nw-games .reward-cabinet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nw-games .reward-cabinet > div {
  min-height: 174px;
  padding: 18px;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius);
  display: flex;
  flex-direction: column;
  background: var(--nw-surface);
}

.nw-games .reward-icon {
  width: 48px;
  height: 48px;
  margin-bottom: auto;
  border: 1px solid #50416f;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--nw-violet-soft);
  color: var(--nw-violet-bright);
  font-size: 1.35rem;
}

.nw-games .reward-icon.ring { border-radius: 50%; box-shadow: inset 0 0 0 11px var(--nw-surface); }
.nw-games .reward-icon.banner { height: 38px; margin-top: 5px; border-radius: 8px; box-shadow: inset 0 -10px rgba(139, 108, 246, .18); }
.nw-games .reward-cabinet b { margin-top: 18px; color: var(--nw-text); font-size: .86rem; }
.nw-games .reward-cabinet small { margin-top: 6px; color: var(--nw-text-muted); font-size: .68rem; line-height: 1.45; }
.nw-games .developer-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
}

.nw-games .developer-section > div:first-child { max-width: 760px; }
.nw-games .developer-action { min-width: 220px; text-align: right; }
.nw-games .developer-action p {
  min-height: 1.25em;
  margin: 9px 0 0;
  color: var(--nw-text-muted);
  font-size: .71rem;
}

@media (max-width: 900px) {
  .nw-games .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-games .games-section-head { align-items: flex-start; flex-direction: column; }
  .nw-games .game-filters { width: 100%; }
  .nw-games .reward-section { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .nw-games .shell { width: min(calc(100% - 30px), var(--nw-max)); padding-bottom: 36px; }
  .nw-games .games-hero { padding: 42px 0 38px; }
  .nw-games .games-hero h1 { font-size: clamp(3rem, 15.2vw, 4.25rem); line-height: .91; }
  .nw-games .games-hero > p { margin-top: 19px; font-size: .88rem; line-height: 1.62; }
  .nw-games .games-hero-actions { margin-top: 24px; }
  .nw-games .games-hero-actions .nw-button { flex: 1 1 150px; }
  .nw-games .games-section { padding: 34px 0; }
  .nw-games .games-section-head { gap: 18px; margin-bottom: 18px; }
  .nw-games .games-section-head p,
  .nw-games .reward-copy > p,
  .nw-games .developer-section > div > p { font-size: .79rem; }
  .nw-games .game-filters { margin-inline: -2px; padding: 2px; }
  .nw-games .games-grid { grid-template-columns: 1fr; gap: 11px; }
  .nw-games .game-art { height: 128px; }
  .nw-games .game-card-body { padding: 16px; }
  .nw-games .game-card p { min-height: 0; }
  .nw-games .reward-cabinet { grid-template-columns: 1fr; }
  .nw-games .reward-cabinet > div { min-height: 118px; }
  .nw-games .reward-icon { margin-bottom: 0; }
  .nw-games .reward-cabinet b { margin-top: 14px; }
  .nw-games .developer-section { grid-template-columns: 1fr; gap: 20px; }
  .nw-games .developer-action { min-width: 0; text-align: left; }
}

/* Launch polish: keep focus on the visible rounded composite, never its borderless child input. */
.nw-home .search-field:focus-within,
.nw-communities .search:focus-within,
.nw-messages .search:focus-within {
  outline: 2px solid var(--nw-violet-bright);
  outline-offset: 3px;
}

.nw-home .search-field > input:focus-visible,
.nw-communities .search > input:focus-visible,
.nw-messages .search > input:focus-visible {
  outline: none;
}

/* No unread marker is shown until notifications are backed by real events. */
.nw-notif-link.seen .nw-dot {
  display: none !important;
}
