/* Mobile visitor layout. Desktop presentation keeps its existing styles. */
.hero-description-short,
.mobile-dock,
.mobile-menu-backdrop {
  display: none;
}

.chat-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-heading-actions .chat-connection { padding-bottom: 0; }

.chat-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #75567e;
  border-radius: 4px;
  background: #2c2039;
  color: #f7bbcf;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.chat-expand .ui-icon { width: 17px; height: 17px; }
.chat-expand[aria-expanded="true"] { background: #46304d; }
.chat-section.chat-expanded .chat-messages { height: 60dvh; min-height: 300px; max-height: 640px; }
.portal-video-meta .portal-video-provider { margin-top: 9px; font-size: 11px; color: #baa8c7; line-height: 1.6; }
.mobile-menu-backdrop[hidden],
.mobile-nav[hidden] { display: none !important; }

/* Discord stays a small community link, without a pretend invite or member count. */
.chat-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  padding: 9px 2px;
  color: #f7bbcf;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.chat-discord-link .ui-icon { width: 18px; height: 18px; }
.chat-discord-link .ui-icon:last-child { width: 14px; height: 14px; }
.chat-discord-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.community-discord {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: calc(100% - 52px);
  max-width: 1398px;
  margin: 30px auto 48px;
  padding: 22px 24px;
  border: 1px solid #705078;
  border-radius: 5px;
  background: #211a30;
  scroll-margin-top: 16px;
}
.discord-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #946d9c;
  border-radius: 8px;
  color: #f7bbcf;
  background: #35243f;
}
.discord-symbol .ui-icon { width: 26px; height: 26px; stroke-width: 1.6; }
.discord-copy { min-width: 0; }
.discord-copy h2 { margin: 0 0 7px; font: 700 30px/1.15 var(--display); color: #fff4f8; }
.discord-copy p { margin: 0; font-size: 13px; line-height: 1.65; color: #d2bfdc; }
.discord-copy .discord-status { margin-top: 7px; font-size: 12px; color: #bda8c9; }
.discord-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.discord-actions .btn {
  min-height: 44px;
  max-width: 100%;
  padding: 12px 17px;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
.discord-actions .btn .ui-icon { flex-shrink: 0; width: 17px; height: 17px; }
.discord-fallback { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 13px; border: 1px solid #75547f; border-radius: 4px; color: #f7bbcf; font-size: 12px; line-height: 1.5; }
.discord-fallback .ui-icon { flex-shrink: 0; width: 17px; height: 17px; }
.community-discord [hidden] { display: none !important; }

@media (max-width: 900px) {
  :root {
    --mobile-dock-height: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  html {
    scroll-padding-top: 16px;
    scroll-padding-bottom: calc(var(--mobile-dock-height) + 20px);
  }

  /* The existing release strip stays first; do not add a second countdown. */
  .announcement.release-announcement {
    gap: 4px 14px;
    padding-block: 7px;
  }

  .header {
    position: relative;
    z-index: 140;
    height: 64px;
    gap: 8px;
    padding-inline: 16px;
  }

  .header .brand {
    min-width: 0;
    gap: 8px;
  }

  .header .brand-image {
    width: clamp(112px, 32vw, 138px);
    height: auto;
    max-height: 48px;
  }

  .header .brand-domain {
    margin-left: -6px;
    margin-bottom: 10px;
    font-size: 9px;
  }

  .nav-actions {
    min-width: 0;
    gap: 4px;
  }

  .header .user-btn {
    min-height: 44px;
    max-width: min(132px, calc(100vw - 228px));
    padding: 10px 11px;
    font-size: 10px;
    letter-spacing: .02em;
  }

  .header .user-btn .person-dot { display: none; }

  #accountLabel {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header .menu-btn {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    padding: 9px;
    border-radius: 4px;
  }

  .header .menu-btn[aria-expanded="true"] {
    color: #f7bbcf;
    background: #3e2b46;
  }

  /* A recognisable brand intro, not a second full-screen splash. */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
    gap: 18px;
    min-height: 0;
    max-height: none;
    padding: 20px clamp(16px, 4vw, 30px);
    overflow: visible;
    background: linear-gradient(115deg, #201a32, #141326);
  }

  .hero .hero-copy {
    display: block;
    grid-column: 1;
    grid-row: 1;
    order: 0;
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: none;
  }

  .hero .hero-copy h1 {
    margin: 0 0 9px;
    font-size: clamp(30px, 9vw, 36px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
    white-space: normal;
  }

  .hero .hero-copy p {
    margin: 0;
    max-width: 270px;
    color: #d3c5da;
    font-size: 12px;
    line-height: 1.55;
  }

  .hero-description-short { display: inline; }
  .hero-description-full { display: none; }

  .hero .hero-art {
    display: block;
    grid-column: 2;
    grid-row: 1;
    order: 1;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 0;
    background: none;
  }

  .hero .poster-frame {
    width: 100%;
    max-width: 112px;
    margin: 0 auto;
    aspect-ratio: 1;
    border: 2px solid #6d4a73;
    border-radius: 3px;
    box-shadow: 0 7px 22px #0706145c;
  }

  .hero .eyebrow,
  .hero .hero-actions,
  .hero .hero-bottom,
  .hero .hero-mobile-coming,
  .hero .hero-art-mast,
  .hero .hero-mobile-join,
  .portal-shortcuts,
  .section-intro,
  .side-panel,
  .last-cta {
    display: none;
  }

  /* One real chat sits directly after the hero. Empty and signed-out states
     must not look like a large disabled form. */
  .chat-section {
    padding: 24px 16px 30px;
    scroll-margin-top: 14px;
  }

  .community-discord {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: calc(100% - 32px);
    margin-block: 0 30px;
    padding: 18px;
  }
  .discord-symbol { width: 36px; height: 36px; border-radius: 6px; }
  .discord-symbol .ui-icon { width: 22px; height: 22px; }
  .discord-copy h2 { font-size: 26px; }
  .discord-copy p { font-size: 12px; }
  .discord-copy .discord-status { font-size: 11px; line-height: 1.65; }
  .discord-actions { grid-column: 1 / -1; }
  .discord-actions .btn,
  .discord-fallback { width: 100%; }

  .chat-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 0;
    margin-bottom: 14px;
  }

  .chat-heading > div:first-child { min-width: 0; }
  .chat-heading > div:first-child > .section-kicker { display: none; }

  .chat-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .chat-heading-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    max-width: 126px;
  }

  .chat-connection {
    gap: 5px;
    max-width: 126px;
    padding: 0;
    margin: 0;
    font-size: 8px;
    line-height: 1.45;
    letter-spacing: .025em;
    white-space: normal;
    text-align: right;
  }

  .chat-connection .live-dot { flex-shrink: 0; }

  .chat-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #75567e;
    border-radius: 4px;
    color: #f7bbcf;
    background: #2c2039;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
  }

  .chat-expand .ui-icon { width: 17px; height: 17px; }
  .chat-expand[aria-expanded="true"] { background: #46304d; }
  .chat-welcome { display: none; }
  .chat-shell { overflow: hidden; border-radius: 5px; box-shadow: none; }

  .chat-messages {
    height: clamp(140px, 28svh, 240px);
    min-height: 140px;
    max-height: 240px;
    padding: 8px 12px;
    scrollbar-gutter: auto;
  }

  .chat-messages:has(.chat-empty) {
    height: auto;
    min-height: 128px;
    max-height: none;
  }

  .chat-section.chat-expanded .chat-messages {
    height: 60dvh;
    min-height: 0;
    max-height: 600px;
  }

  .chat-empty {
    min-height: 112px;
    margin: 0;
    padding: 16px 8px;
  }

  .chat-empty > .ui-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
  }

  .chat-empty strong { font-size: 22px; line-height: 1.2; }
  .chat-empty p { margin-top: 7px; font-size: 12px; line-height: 1.55; }
  .chat-empty .btn { min-height: 44px; margin-top: 12px; }
  .chat-message { gap: 9px; padding: 11px 0; }
  .chat-message .topic-avatar { width: 28px; height: 28px; font-size: 18px; }
  .chat-message-meta { flex-wrap: wrap; gap: 4px 9px; }
  .chat-message-meta strong { font-size: 12px; }
  .chat-message-copy p { margin-top: 5px; font-size: 14px; line-height: 1.55; }

  .chat-report {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .chat-compose { padding: 13px 12px; }
  .chat-identity { gap: 6px; margin-bottom: 9px; font-size: 11px; }
  .chat-form { gap: 8px; align-items: stretch; }

  .chat-form textarea {
    min-height: 56px;
    max-height: 160px;
    padding: 10px 11px;
    font-size: 16px;
    line-height: 1.45;
    scroll-margin-bottom: 24px;
  }

  .chat-form .btn {
    min-width: 62px;
    min-height: 56px;
    padding: 10px 13px;
    gap: 6px;
    font-size: 11px;
  }

  .chat-form .btn .ui-icon { width: 17px; height: 17px; }
  .chat-help { margin-top: 8px; font-size: 10px; line-height: 1.5; }

  .chat-section:is([data-chat-auth="guest"], [data-chat-auth="verify"]) .chat-form,
  .chat-section:is([data-chat-auth="guest"], [data-chat-auth="verify"]) .chat-help {
    display: none;
  }

  .chat-section:is([data-chat-auth="guest"], [data-chat-auth="verify"]) .chat-identity {
    display: block;
    margin: 0;
    text-align: center;
    line-height: 1.6;
  }

  .chat-section:is([data-chat-auth="guest"], [data-chat-auth="verify"]) .chat-identity > .ui-icon {
    display: none;
  }

  .chat-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 9px;
    padding: 11px 14px;
    border: 1px solid #f7bbcf;
    border-radius: 4px;
    background: #f7bbcf;
    color: #281c33;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 800;
    text-decoration: none;
  }

  /* Persistent destinations, with native safe-area clearance. */
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    z-index: 150;
    inset: auto 0 0;
    min-height: var(--mobile-dock-height);
    padding: 5px max(8px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #79567e;
    background: #191529f7;
    box-shadow: 0 -7px 24px #09061540;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-dock > a,
  .mobile-dock > button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 52px;
    padding: 6px 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #c8b7d2;
    font-family: var(--body);
    font-size: 10px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  .mobile-dock .ui-icon { width: 21px; height: 21px; stroke-width: 1.7; }
  .mobile-dock [aria-current="location"],
  .mobile-dock [aria-expanded="true"] { background: #f7bbcf16; color: #f7bbcf; }
  .mobile-dock > :focus-visible { outline-color: #f7bbcf; outline-offset: -3px; }
  .is-keyboard-open .mobile-dock { display: none; }
  body:has(dialog[open]) .mobile-dock { visibility: hidden; pointer-events: none; }

  .mobile-nav {
    position: fixed;
    z-index: 135;
    inset: max(12px, var(--mobile-menu-top, 116px)) 12px calc(var(--mobile-dock-height) + 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 14px;
    border: 1px solid #8a648f;
    border-radius: 9px;
    background: #201a30;
    box-shadow: 0 20px 70px #06030bd9;
    scrollbar-width: thin;
  }

  .mobile-nav-heading {
    position: sticky;
    top: -12px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0 12px;
    border-bottom: 1px solid #79547f;
    background: #201a30;
  }

  .mobile-nav-heading strong {
    padding-left: 10px;
    color: #cbb5d7;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .09em;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 13px 11px;
    border-bottom: 1px solid #70507680;
    color: #f0e4f2;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .03em;
  }

  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a:focus-visible { outline-color: #f7bbcf; outline-offset: -2px; }
  .mobile-nav a:hover { color: #f7bbcf; background: #3a2843; }
  .mobile-menu-open { overflow: hidden; }

  .mobile-menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 130;
    inset: 0;
    background: #090613b8;
  }

  .mobile-nav .mobile-menu-close,
  #mobileMenuClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 13px;
    border: 1px solid #84608c;
    border-radius: 4px;
    background: #3b2844;
    color: #f7bbcf;
    font-size: 12px;
  }

  #mobileMenuClose .ui-icon { width: 21px; height: 21px; }

  footer { padding-bottom: calc(var(--mobile-dock-height) + 22px); }
  .toast { bottom: calc(var(--mobile-dock-height) + 14px); max-width: calc(100vw - 28px); }
  .is-keyboard-open .toast { bottom: 16px; }

  /* Scan first, open an article for long-form reading. */
  .portal-section { padding: 38px 16px; scroll-margin-top: 14px; }
  .portal-section h2,
  .portal-faq h2 { font-size: clamp(30px, 8vw, 38px); line-height: 1.16; }
  .portal-section-head { display: block; margin-bottom: 20px; }
  .portal-section-head > p { max-width: 600px; margin-top: 11px; font-size: 12px; }
  .portal-section .section-kicker { font-size: 9px; letter-spacing: .12em; }
  .portal-section-head h2 { margin-top: 8px; }
  .portal-news-tools { gap: 12px; padding-bottom: 14px; }

  .portal-filters {
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-block: 2px 4px;
    scrollbar-width: thin;
  }

  .portal-filters button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .portal-news-tools > .portal-search { width: 100%; max-width: none; }
  .portal-result-meta { margin: 13px 0; font-size: 10px; }
  .portal-news-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .portal-story {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .portal-story-cover {
    width: 80px;
    height: 80px;
    aspect-ratio: 1;
    border: 1px solid #6d4c76;
    border-radius: 3px;
  }

  /* The complete artwork caption remains in the article reader. */
  .portal-story-label { display: none; }
  .portal-story-body { padding: 0; }
  .portal-story-meta { flex-wrap: wrap; gap: 4px 10px; font-size: 9px; }
  .portal-story-meta strong { font-size: 9px; }
  .portal-story h3 { margin: 4px 0 2px; font-size: 22px; line-height: 1.2; }
  .portal-story h3 a { display: inline-block; min-height: 44px; padding-block: 3px; }
  .portal-story-body > p { display: none; }
  .portal-story-actions { gap: 10px; padding-top: 0; border-top: 0; }
  .portal-story-actions .portal-text-link { min-height: 44px; font-size: 11px; }
  .portal-icon-button { min-width: 44px; min-height: 44px; }
  .portal-more { min-height: 44px; margin-top: 18px; padding: 12px 22px; }
  .portal-empty { padding: 22px 16px; font-size: 13px; }

  .portal-video-layout { gap: 18px; }
  .portal-video-screen { aspect-ratio: 16 / 9; min-height: 215px; }
  .portal-video-screen:has(iframe) { min-height: 202px; }
  .portal-video-consent { padding: 16px; gap: 10px; }
  .portal-video-play { display: none; }
  .portal-video-consent .btn { min-height: 44px; font-size: 10px; line-height: 1.5; }
  .portal-video-consent p { font-size: 11px; line-height: 1.5; }
  .portal-video-stop { min-height: 44px; }
  .portal-video-meta h3 { margin-top: 6px; font-size: 28px; }
  .portal-video-meta p { font-size: 12px; }
  .portal-video-meta .portal-text-link { min-height: 44px; }
  .portal-video-playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 290px; }
  .portal-video-item { min-height: 76px; padding: 12px 10px; }

  .portal-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 26px; }
  .portal-facts .portal-fact:nth-child(n) { padding: 17px 13px; border-right: 1px solid #5d4966; border-bottom: 1px solid #5d4966; }
  .portal-facts .portal-fact:nth-child(2n) { border-right: 0; }
  .portal-facts .portal-fact:nth-last-child(-n+2) { border-bottom: 0; }
  .portal-fact strong { font-size: 24px; line-height: 1.2; }
  .portal-fact p { font-size: 11px; line-height: 1.6; }
  .portal-location-tabs button { min-height: 44px; padding: 10px 12px; font-size: 11px; }
  .portal-world-layout { gap: 22px; }
  .portal-location-feature { min-height: 270px; }
  .portal-characters { padding: 20px; }
  .portal-characters > h3 { font-size: 29px; }
  .portal-timeline { margin-top: 20px; }
  .portal-timeline > summary { min-height: 48px; padding-block: 14px; }

  .portal-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .portal-guide { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 18px; }
  .portal-guide > .ui-icon { grid-column: 1; grid-row: 1 / 3; width: 28px; height: 28px; margin: 3px 0 0; }
  .portal-guide > .section-kicker { grid-column: 2; grid-row: 1; }
  .portal-guide h3 { grid-column: 2; grid-row: 2; margin: 6px 0 8px; font-size: 26px; }
  .portal-guide h3 a { display: inline-block; min-height: 44px; }
  .portal-guide > p { display: none; }
  .portal-guide .portal-story-actions { grid-column: 1 / -1; padding-top: 4px; }
  .portal-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portal-gallery-item > span { min-height: 44px; padding: 11px; line-height: 1.5; }
  .portal-faq { display: block; }
  .portal-faq-intro { margin-bottom: 22px; }
  .portal-faq-intro > p { margin-block: 12px; }
  .portal-faq-intro > .portal-text-link { min-height: 44px; }
  .portal-faq-list summary { min-height: 48px; padding-block: 16px; font-size: 13px; }
  .portal-faq-list summary::after { top: 12px; }
  .portal-community-links { gap: 18px; margin-top: 12px; }
  .portal-community-links a { min-height: 44px; }
  .portal-members,
  .portal-poll { padding: 20px; }
  .portal-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-member-tools { flex-wrap: wrap; }
  .portal-member-tools > .portal-search { width: 100%; }
  .portal-member-tools > label:last-of-type { max-width: none; width: 100%; }
  .portal-member-tools select { width: 100%; }
  .portal-poll-options { grid-template-columns: minmax(0, 1fr); }
  .portal-poll-option { min-height: 48px; }

  /* Touch targets and iOS typography apply to account, forum and portal forms. */
  .portal-search input,
  .portal-member-tools select,
  .search input,
  .search-row select,
  .dialog-form input:not([type="checkbox"]):not([type="radio"]),
  .dialog-form select,
  .dialog-form textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .search { height: 46px; min-width: 0; }
  .portal-search { min-height: 46px; }
  .portal-search input { padding-block: 11px; }
  .account-tabs button,
  .password-input button,
  .account-links a,
  .account-links button { min-height: 44px; }
  .account-consent { min-height: 44px; align-items: center; }
  .dialog-header .close-dialog { min-width: 44px; min-height: 44px; }

  .statbar { min-height: 76px; padding-inline: 16px; }
  .stat-item { margin-block: 16px; }
  .stat-item strong { font-size: 28px; }
  .stat-item small { font-size: 8px; }
  .forum-layout { padding: 0 16px 36px; grid-template-columns: minmax(0, 1fr); }
  .forum-topline { padding: 18px 14px; align-items: center; }
  .forum-topline h3 { margin-top: 6px; font-size: 29px; line-height: 1.16; }
  .forum-topline .btn { min-height: 44px; padding-inline: 12px; }
  .forum-controls { padding-inline: 12px; }
  .category-tabs { gap: 18px; }
  .category-tabs .tab { min-height: 44px; padding: 14px 2px 12px; font-size: 10px; }
  .search-row { flex-wrap: wrap; gap: 10px; padding-block: 13px; }
  .search-row > .search { flex-basis: 100%; }
  .search-row select { width: 100%; max-width: none; min-height: 44px; padding: 10px 12px; letter-spacing: 0; }
  .topic-list { min-height: 0; }
  .topic-row { min-height: 64px; padding: 14px 12px; }
  .topic-title { font-size: 14px; line-height: 1.5; white-space: normal; }
  .pagination button { width: 44px; height: 44px; }
  .forum-footer { padding: 12px; letter-spacing: .03em; }
  .empty-state { padding: 28px 16px; }
  .empty-state .empty-illustration img { width: 56px; height: 56px; }
  .empty-state h4 { font-size: 26px; }
  .empty-state p { margin-bottom: 16px; font-size: 12px; line-height: 1.65; }

  .categories-section { padding: 36px 16px; }
  .categories-section h2 { font-size: 36px; line-height: 1.15; }
  .categories-section .section-header p { font-size: 12px; }
  .category-card { min-height: 0; padding: 16px; }
  .category-card h3 { font-size: 26px; }
  .category-card p { font-size: 12px; }
  .category-icon-art { width: 48px; height: 48px; margin-bottom: 12px; }
  .forum-topic-index { border: 1px solid #674c73; border-radius: 4px; background: #1b172d; }
  .forum-topic-index > summary { min-height: 48px; padding: 15px; color: #f7bbcf; font-size: 13px; font-weight: 700; cursor: pointer; }
  .forum-topic-index[open] > summary { border-bottom: 1px solid #674c73; }
  .forum-topic-index > .category-grid { padding: 14px; }

  .server-section { margin-inline: 16px; }
  .server-visual { min-height: 210px; }
  .server-copy { padding: 30px 20px; }
  .server-copy h2 { font-size: 38px; line-height: 1.15; }
  .server-copy > p { font-size: 13px; line-height: 1.75; }
  .server-copy .btn { min-height: 48px; }
  .footer-upper { padding-block: 27px; gap: 16px; }
  .footer-upper > div { gap: 5px 20px; }
  .footer-upper a:not(.brand),
  .footer-upper button { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom { padding-block: 18px; }
}

@media (max-width: 360px) {
  .hero { grid-template-columns: minmax(0, 1fr) 98px; gap: 13px; padding-inline: 16px; }
  .hero .hero-copy h1 { font-size: 30px; }
  .hero .hero-copy p { font-size: 11px; }
  .chat-heading { gap: 10px; }
  .chat-heading h2 { font-size: 30px; }
  .chat-heading-actions,
  .chat-connection { max-width: 110px; }
  .chat-form .btn { min-width: 58px; padding-inline: 10px; }
  .portal-story { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .portal-story-cover { width: 72px; height: 72px; }
  .portal-story h3 { font-size: 21px; }
  .portal-video-playlist { grid-template-columns: minmax(0, 1fr); }
  .portal-video-screen { min-height: 240px; }
  .portal-fact strong { font-size: 22px; }
  .portal-members,
  .portal-poll { padding: 16px; }
  .forum-topline { gap: 10px; }
  .forum-topline h3 { font-size: 27px; }
  .forum-topline .btn { font-size: 9px; padding-inline: 10px; }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-dock,
  .mobile-nav,
  .hero .poster-frame { transition: none; animation: none; }
}
