/* ========================================================================== 
   MENKI SMP v1.11.0 — Responsive visual polish
   Loaded after styles.css so the existing application logic stays untouched.
   ========================================================================== */

:root {
  --bg: #f2f7fb;
  --surface: #ffffff;
  --surface-2: #eaf5fc;
  --ink: #061526;
  --muted: #60768b;
  --line: #d6e5ef;
  --neon-blue: #18cff4;
  --purple-500: #08b6e8;
  --purple-700: #0879b0;
  --purple-800: #07385c;
  --purple-900: #05192c;
  --purple-950: #020b14;
  --shadow-sm: 0 10px 28px rgba(6, 42, 70, .07);
  --shadow-lg: 0 26px 80px rgba(2, 29, 52, .18);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1280px;
  --page-gutter: clamp(14px, 3vw, 32px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 0 -8%, rgba(24, 207, 244, .08), transparent 28rem),
    radial-gradient(circle at 100% 14%, rgba(50, 118, 255, .06), transparent 32rem),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Skeleton awal ditampilkan hanya selama bootstrap dan sinkronisasi Supabase. */
.initial-loader.data-skeleton {
  display: block;
  min-height: 100svh;
  padding: 0;
  color: #d7edf8;
  background:
    radial-gradient(circle at 82% 12%, rgba(22, 199, 239, .12), transparent 26rem),
    linear-gradient(180deg, #03111e, #071c2d 56%, #eef6fb 56%);
}

.skeleton-shell {
  width: min(100%, 1440px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 0 var(--page-gutter) 28px;
}

.skeleton-shape {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(165, 207, 226, .16);
}

.skeleton-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, .34) 45%, transparent 66%);
  transform: translateX(-115%);
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-header {
  display: grid;
  min-height: 78px;
  grid-template-columns: 130px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.skeleton-logo {
  width: 112px;
  height: 28px;
}

.skeleton-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.skeleton-nav span {
  width: 70px;
  height: 13px;
}

.skeleton-action {
  width: 118px;
  height: 40px;
  justify-self: end;
}

.skeleton-hero {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: clamp(32px, 7vw, 100px);
  padding-block: clamp(52px, 7vw, 86px);
}

.skeleton-hero-copy {
  display: grid;
  max-width: 650px;
  gap: 15px;
}

.skeleton-kicker {
  width: 145px;
  height: 13px;
  background: rgba(75, 221, 250, .24);
}

.skeleton-title {
  width: min(100%, 520px);
  height: clamp(50px, 6vw, 78px);
  border-radius: 18px;
}

.skeleton-line {
  width: 62%;
  height: 15px;
}

.skeleton-line.wide {
  width: 88%;
}

.skeleton-hero-copy > div {
  display: flex;
  gap: 12px;
  margin-top: 13px;
}

.skeleton-button {
  width: 142px;
  height: 44px;
}

.skeleton-button.secondary {
  width: 120px;
}

.skeleton-art {
  width: min(100%, 410px);
  aspect-ratio: 1.18;
  justify-self: end;
  border-radius: 34px;
  background: rgba(126, 208, 234, .11);
}

.skeleton-status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -34px;
  padding: 16px;
  border: 1px solid rgba(193, 220, 233, .8);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(4, 35, 58, .14);
}

.skeleton-status span {
  height: 64px;
  margin: 3px 16px;
  border-radius: 15px;
  background: #e6f0f5;
}

.skeleton-content {
  padding-top: 46px;
}

.skeleton-heading {
  width: min(82%, 390px);
  height: 39px;
  margin-top: 13px;
  border-radius: 12px;
  background: #dceaf1;
}

.skeleton-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.skeleton-cards > span {
  min-height: 145px;
  border-radius: 20px;
  background: #dceaf1;
}

.skeleton-status-text {
  margin: 22px 0 0;
  color: #6e8493;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}

@keyframes skeleton-shimmer {
  to { transform: translateX(115%); }
}

#app,
.page,
.page > section,
.container,
.header-inner,
.footer-grid > *,
.section-head > *,
.featured-grid > *,
.news-grid > *,
.feature-cards > *,
.status-card > *,
.form-shell > *,
.article-shell > * {
  min-width: 0;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max));
}

p,
li,
small,
code,
.server-copy,
.footer-copy {
  overflow-wrap: anywhere;
}

::selection {
  color: #00131f;
  background: #7ceaff;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #2bd7f7;
  outline-offset: 3px;
}

.btn,
.icon-btn,
.menu-btn,
.copy-btn,
.chip,
.nav-link {
  touch-action: manipulation;
}

.btn {
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 13px;
  line-height: 1.15;
  box-shadow: none;
  transition:
    transform .2s var(--ease-out),
    box-shadow .2s var(--ease-out),
    background-color .2s var(--ease-out),
    border-color .2s var(--ease-out);
}

.btn-primary {
  color: #001521;
  background: linear-gradient(135deg, #53e7ff, #14bfe9);
  box-shadow: 0 12px 28px rgba(12, 190, 231, .22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7bedff, #2bd1f7);
  box-shadow: 0 16px 34px rgba(12, 190, 231, .30);
}

.btn-dark {
  background: linear-gradient(145deg, #092c49, #041626);
  box-shadow: 0 10px 24px rgba(3, 25, 43, .16);
}

.btn-outline {
  color: #0a4168;
  background: rgba(255, 255, 255, .72);
  border-color: #c9deea;
}

.btn-secondary {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
}

/* Header */
.site-header {
  top: 0;
  min-height: 76px;
  background: rgba(3, 18, 32, .88);
  border-bottom: 1px solid rgba(124, 225, 255, .12);
  box-shadow: 0 10px 32px rgba(0, 9, 18, .16);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
}

.header-inner {
  height: 76px !important;
  min-height: 76px !important;
  padding-block: 0 !important;
  gap: clamp(8px, 1.4vw, 18px);
}

.nav-crest {
  top: 50% !important;
  left: max(var(--page-gutter), calc((100vw - var(--max)) / 2)) !important;
  width: clamp(146px, 13vw, 190px) !important;
  transform: translateY(-50%) !important;
}

.nav-crest-logo {
  filter:
    drop-shadow(0 9px 18px rgba(0, 0, 0, .32))
    drop-shadow(0 0 16px rgba(28, 207, 244, .16)) !important;
}

.nav-spacer {
  width: clamp(150px, 14vw, 198px) !important;
  flex: 0 0 auto;
}

.main-nav,
.header-actions {
  padding-top: 0 !important;
}

.main-nav {
  justify-content: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  min-height: 42px;
  padding: 11px 10px;
  color: #b9cedd;
  border-radius: 11px;
  font-size: clamp(.78rem, .9vw, .9rem);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: #3fe0ff;
  opacity: 0;
  transform: scaleX(.45);
  transition: .2s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(111, 218, 255, .08);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.icon-btn,
.menu-btn,
.copy-btn {
  flex: 0 0 auto;
  border-radius: 13px;
}

.header-actions {
  gap: 7px;
}

.play-header {
  white-space: nowrap;
}

/* Hero */
.hero {
  isolation: isolate;
  min-height: clamp(640px, 78svh, 790px);
  background-position: center 50%;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 10, 20, .92) 0%, rgba(2, 18, 34, .76) 35%, rgba(3, 24, 42, .28) 68%, rgba(1, 10, 20, .32) 100%),
    linear-gradient(0deg, rgba(1, 9, 17, .66), transparent 46%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 22% 46%, rgba(40, 211, 255, .12), transparent 28rem),
    linear-gradient(180deg, transparent 72%, rgba(2, 11, 20, .54));
  pointer-events: none;
}

.hero-content {
  width: min(670px, 100%);
  padding: clamp(88px, 10vh, 126px) 0 clamp(150px, 18vh, 190px);
  text-shadow: 0 3px 24px rgba(0, 0, 0, .54);
}

.hero .eyebrow {
  padding: 8px 12px;
  color: #8cecff;
  background: rgba(2, 24, 43, .48);
  border: 1px solid rgba(123, 225, 255, .20);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero .eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(75, 223, 255, .10);
}

.hero-main-logo {
  width: min(610px, 91vw) !important;
  margin: 18px 0 8px;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, .36))
    drop-shadow(0 0 26px rgba(21, 202, 245, .12)) !important;
}

.hero-tagline {
  margin: 0 0 15px;
  color: #d7f7ff;
  font-size: clamp(.92rem, 1.7vw, 1.26rem);
  letter-spacing: clamp(.13em, .7vw, .23em);
}

.hero p {
  max-width: 55ch;
  margin: 0;
  color: #d6e9f3;
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  line-height: 1.75;
}

.hero-actions {
  gap: 10px;
  margin-top: 26px;
}

.hero-actions .btn {
  min-width: 148px;
}

/* Floating server status */
.status-float {
  margin-top: -76px;
}

.status-card {
  grid-template-columns: minmax(210px, 1.15fr) repeat(2, minmax(230px, 1fr)) auto;
  border: 1px solid rgba(38, 178, 224, .18);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(3, 35, 58, .17);
}

.status-main,
.server-copy,
.status-cta {
  min-height: 100px;
}

.status-main {
  padding: 22px 24px;
  background: linear-gradient(145deg, #fff, #f5fbff);
}

.status-dot {
  flex: 0 0 auto;
  box-shadow: 0 0 0 7px rgba(47, 185, 120, .12), 0 0 24px rgba(47, 185, 120, .26);
}

.server-copy {
  padding: 18px 20px;
  background: rgba(255, 255, 255, .92);
}

.server-copy code {
  display: block;
  margin-top: 4px;
  color: #063e65;
  line-height: 1.35;
}

.status-cta {
  padding: 16px;
  background: linear-gradient(145deg, #ebf8ff, #e4f2fa);
}

/* Shared sections and cards */
.section {
  padding: clamp(68px, 7vw, 104px) 0;
}

.section-sm {
  padding: clamp(48px, 5vw, 72px) 0;
}

.section-head {
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.section-head h2 {
  max-width: 16ch;
  color: #06182a;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  text-wrap: balance;
}

.section-head p {
  line-height: 1.75;
}

.card,
.side-card,
.panel,
.form-card,
.stat-card {
  border-color: rgba(194, 217, 231, .82);
  box-shadow: var(--shadow-sm);
}

.card {
  border-radius: var(--radius);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 181, 227, .34);
  box-shadow: 0 24px 54px rgba(5, 53, 84, .13);
}

.featured-grid {
  gap: clamp(16px, 2vw, 24px);
}

.featured-stack {
  gap: clamp(16px, 2vw, 24px);
}

.story-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(2, 16, 29, .20));
  pointer-events: none;
}

.story-body {
  padding: clamp(17px, 2vw, 24px);
}

.story-body h3 {
  color: #07192b;
  text-wrap: balance;
}

.story-body p {
  line-height: 1.65;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.feature-strip {
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 8%, rgba(27, 207, 246, .13), transparent 30rem),
    radial-gradient(circle at 96% 100%, rgba(65, 97, 255, .11), transparent 30rem),
    linear-gradient(145deg, #020b14, #061c31 55%, #062941);
}

.feature-strip::before {
  z-index: -1;
  opacity: .6;
}

.feature-strip-head h2 {
  color: #fff;
}

.feature-cards {
  gap: clamp(12px, 1.5vw, 19px);
}

.feature-card {
  min-height: 310px;
  padding: 25px 22px;
  border-color: rgba(135, 225, 255, .13);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 42px rgba(0, 0, 0, .11);
}

.feature-card:hover {
  border-color: rgba(107, 225, 255, .30);
  background: linear-gradient(145deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .035));
}

.feature-icon {
  background: linear-gradient(145deg, rgba(50, 222, 255, .20), rgba(0, 144, 225, .10));
}

.community-cta {
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(2, 32, 54, .16);
}

/* Interior routes */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(66px, 8vw, 105px) 0 clamp(56px, 7vw, 86px);
  background:
    radial-gradient(circle at 85% 15%, rgba(34, 213, 250, .17), transparent 24rem),
    linear-gradient(135deg, #041526, #073653);
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -260px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(129, 225, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(128, 222, 255, .025), 0 0 0 140px rgba(128, 222, 255, .018);
}

.page-hero h1 {
  max-width: 18ch;
  color: #fff;
  text-wrap: balance;
}

.page-hero p {
  line-height: 1.75;
}

.toolbar {
  padding: 12px;
  border: 1px solid rgba(197, 219, 233, .86);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.search-field input,
.field input,
.field textarea,
.field select,
select,
textarea {
  min-height: 46px;
}

.search-field input,
.field input,
.field textarea,
.field select {
  border-radius: 12px;
}

.article-shell {
  grid-template-columns: minmax(0, 820px) minmax(250px, 310px);
  justify-content: space-between;
  gap: clamp(28px, 5vw, 58px);
}

.article-cover,
.side-card,
.form-card,
.panel {
  border-radius: 22px;
}

.article-content {
  line-height: 1.8;
}

.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
  border-radius: 16px;
}

.article-content pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 14px;
}

.guide-list {
  gap: clamp(14px, 2vw, 22px);
}

.guide-card {
  align-items: center;
  border-radius: 20px;
}

.guide-num {
  flex: 0 0 50px;
}

/* Forms, drawers, dialogs, tables */
.form-shell {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.form-grid > *,
.checkout-form-grid > *,
.checkout-layout > * {
  min-width: 0;
}

.modal-backdrop {
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.modal {
  overscroll-behavior: contain;
}

.cart-panel {
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    20px;
}

.table-wrap,
.leaderboard-table-panel,
.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

table {
  max-width: 100%;
}

.toast-root,
.toast-wrap {
  max-width: 100vw;
}

.toast {
  right: max(14px, env(safe-area-inset-right));
  max-width: min(390px, calc(100vw - 28px));
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 82px) 0 max(25px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 8% 0, rgba(26, 205, 244, .10), transparent 26rem),
    #020b14;
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(130px, .75fr));
  gap: clamp(24px, 4vw, 52px);
}

.brand-footer .brand-logo-footer {
  width: min(220px, 100%);
  height: auto;
}

.footer-copy {
  max-width: 100%;
  text-align: left;
}

/* Admin remains usable on narrow screens. */
.admin-content,
.admin-main,
.admin-grid,
.stats-grid {
  min-width: 0;
}

.admin-topbar {
  gap: 12px;
}

.admin-identity {
  min-width: 0;
}

.admin-identity > span {
  min-width: 0;
}

/* Large laptops and compact desktop windows */
@media (max-width: 1180px) {
  .play-header {
    display: none;
  }

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

  .status-main,
  .status-cta {
    grid-column: 1 / -1;
  }

  .status-main {
    min-height: 84px;
  }

  .server-copy {
    border-top: 1px solid var(--line);
  }

  .status-cta {
    min-height: auto;
    padding: 14px;
  }

  .status-cta .btn {
    width: 100%;
  }
}

@media (max-width: 1050px) {
  .header-inner {
    height: 72px !important;
    min-height: 72px !important;
  }

  .nav-crest {
    width: 146px !important;
  }

  .nav-spacer {
    width: 150px !important;
  }

  .main-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .featured-grid {
    grid-template-columns: 1.2fr .8fr;
  }

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

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

  .feature-card {
    min-height: 260px;
  }

  .footer-grid {
    grid-template-columns: 1.35fr repeat(2, 1fr);
  }

  .footer-grid > :last-child {
    grid-column: 2 / -1;
  }
}

/* Tablets */
@media (max-width: 860px) {
  :root {
    --page-gutter: clamp(12px, 3.3vw, 24px);
  }

  .hero {
    min-height: 680px;
    background-position: 57% center;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(1, 10, 20, .88), rgba(2, 17, 31, .66) 56%, rgba(1, 10, 20, .32)),
      linear-gradient(0deg, rgba(1, 9, 17, .68), transparent 50%);
  }

  .hero-content {
    width: min(610px, 86%);
    padding: 80px 0 160px;
  }

  .hero-main-logo {
    width: min(500px, 86vw) !important;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

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

  .story-card.compact {
    display: block;
  }

  .story-card.compact .story-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .article-shell,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .form-shell > :last-child {
    order: -1;
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > :last-child {
    grid-column: auto;
  }
}

/* Phones */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    min-height: 66px;
  }

  .header-inner {
    height: 66px !important;
    min-height: 66px !important;
  }

  .nav-crest {
    left: var(--page-gutter) !important;
    width: 126px !important;
  }

  .nav-spacer {
    width: 128px !important;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .icon-btn,
  .header-actions .menu-btn {
    width: 42px;
    height: 42px;
  }

  .mobile-nav {
    width: min(330px, 91vw);
    padding-inline: 17px;
  }

  .mobile-nav-head img {
    width: 145px;
  }

  .hero {
    min-height: 650px;
    align-items: end;
    background-position: 60% center;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(1, 10, 20, .85), rgba(2, 16, 30, .53) 70%, rgba(1, 10, 20, .34)),
      linear-gradient(0deg, rgba(1, 8, 16, .91) 0%, rgba(1, 10, 19, .58) 48%, rgba(1, 10, 19, .18) 78%);
  }

  .hero-content {
    width: 100%;
    padding: 72px 0 142px;
  }

  .hero .eyebrow {
    padding: 7px 10px;
    font-size: .68rem;
    letter-spacing: .12em;
  }

  .hero-main-logo {
    width: min(420px, 92vw) !important;
    margin-top: 15px;
  }

  .hero-tagline {
    margin-bottom: 12px;
    font-size: .86rem;
    letter-spacing: .13em;
  }

  .hero p {
    max-width: 44ch;
    font-size: .94rem;
    line-height: 1.65;
  }

  .status-float {
    margin-top: -78px;
  }

  .status-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .status-main,
  .status-cta {
    grid-column: auto;
  }

  .status-main,
  .server-copy {
    min-height: auto;
    padding: 17px;
  }

  .server-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section,
  .section-sm {
    padding-block: 58px;
  }

  .section-head {
    display: grid;
    gap: 12px;
  }

  .section-head h2 {
    max-width: 100%;
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .section-head .btn {
    width: fit-content;
  }

  .featured-stack,
  .news-grid,
  .feature-cards,
  .guide-list {
    grid-template-columns: 1fr;
  }

  .story-card.compact {
    display: grid;
    grid-template-columns: 39% minmax(0, 1fr);
  }

  .story-card.compact .story-image {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .story-card.compact .story-body {
    padding: 15px;
  }

  .story-card.compact .story-body p {
    display: none;
  }

  .feature-card {
    min-height: auto;
  }

  .community-cta {
    border-radius: 24px;
  }

  .page-hero {
    padding: 58px 0 50px;
  }

  .page-hero h1 {
    max-width: 100%;
    margin-block: 11px;
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .page-hero p {
    font-size: .96rem;
  }

  .toolbar {
    align-items: stretch;
    padding: 10px;
  }

  .toolbar .search-field,
  .search-field {
    width: 100%;
    min-width: 0;
  }

  .chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 1px 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .guide-card {
    padding: 18px;
  }

  .form-grid,
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .modal {
    width: 100%;
    max-height: calc(100dvh - 28px);
    padding: 18px;
    border-radius: 18px;
  }

  .search-overlay {
    padding: max(14px, env(safe-area-inset-top)) var(--page-gutter);
  }

  .search-box {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
  }

  .cart-panel {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-main {
    padding: 18px 12px;
  }

  .admin-topbar {
    min-height: 64px;
    height: auto;
    padding: 9px 12px;
  }

  .admin-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-title .btn {
    width: 100%;
  }

  .stats-grid,
  .qa-summary-grid,
  .qa-route-grid,
  .live-admin-stats,
  .media-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Very small phones */
@media (max-width: 420px) {
  :root {
    --page-gutter: 11px;
  }

  .nav-crest {
    width: 114px !important;
  }

  .nav-spacer {
    width: 114px !important;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .icon-btn,
  .header-actions .menu-btn {
    width: 39px;
    height: 39px;
  }

  .hero {
    min-height: 630px;
  }

  .hero-content {
    padding-bottom: 136px;
  }

  .hero-main-logo {
    width: min(360px, 94vw) !important;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .story-card.compact {
    display: block;
  }

  .story-card.compact .story-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .story-card.compact .story-body p {
    display: block;
  }

  .status-main,
  .server-copy {
    padding: 15px;
  }

  .server-copy {
    gap: 9px;
  }

  .server-copy code {
    font-size: .82rem;
  }

  .community-pill-list span {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .stats-grid,
  .qa-summary-grid,
  .qa-route-grid,
  .live-admin-stats,
  .media-stats-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 11px;
    right: 11px;
    width: auto;
  }
}

/* Short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 54px;
    padding-bottom: 130px;
  }

  .mobile-nav {
    padding-top: 12px;
  }
}

/* Wide screens keep content readable instead of stretching cards forever. */
@media (min-width: 1600px) {
  :root {
    --max: 1360px;
  }

  .hero {
    min-height: 800px;
  }

  .hero-content {
    width: 720px;
  }

  .news-grid {
    gap: 28px;
  }
}

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

/* ========================================================================== 
   v1.11.3 — Interactive Changelog Polish
   ========================================================================== */
.home-changelog-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(31, 220, 255, .17), transparent 23rem),
    radial-gradient(circle at 6% 100%, rgba(44, 101, 255, .13), transparent 27rem),
    linear-gradient(135deg, #041522, #07344e 62%, #075272);
}

.home-changelog-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, #000 32%, #000);
  pointer-events: none;
}

.home-changelog-section .container {
  position: relative;
  z-index: 1;
}

.home-changelog-head {
  align-items: end;
}

.home-changelog-head h2 {
  color: #fff;
}

.home-changelog-head .eyebrow {
  color: #66e8ff;
}

.home-changelog-head-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.5vw, 28px);
}

.home-changelog-head-side p {
  max-width: 43ch;
  margin: 0;
  color: #b8d4e2;
}

.home-changelog-head-side .btn-outline {
  flex: 0 0 auto;
  color: #eafcff;
  border-color: rgba(115, 229, 255, .4);
  background: rgba(3, 23, 38, .34);
}

.home-changelog-head-side .btn-outline:hover {
  color: #052438;
  border-color: #7feaff;
  background: #7feaff;
}

.home-changelog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.home-changelog-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 258px;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px);
  overflow: hidden;
  color: #effbff;
  border: 1px solid rgba(151, 219, 239, .20);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(5, 30, 47, .52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 48px rgba(0, 12, 22, .16);
  backdrop-filter: blur(14px);
  transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), background .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.home-changelog-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -62px;
  width: 145px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 218, 255, .16), transparent 68%);
  pointer-events: none;
}

.home-changelog-card:hover,
.home-changelog-card:focus-visible {
  transform: translateY(-5px);
  color: #fff;
  border-color: rgba(93, 229, 255, .52);
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(7, 48, 70, .64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 25px 58px rgba(0, 10, 20, .25);
}

.home-changelog-card.is-latest {
  border-color: rgba(80, 228, 255, .38);
  box-shadow: inset 0 3px 0 #35d9f8, 0 22px 54px rgba(0, 12, 22, .23);
}

.home-changelog-latest {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  padding: 7px 10px;
  color: #032235;
  border-radius: 999px;
  background: linear-gradient(135deg, #8ff2ff, #32d6f5);
  box-shadow: 0 8px 20px rgba(38, 215, 248, .2);
  font-size: .64rem;
  font-weight: 1000;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home-changelog-latest i,
.changelog-latest-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(4, 49, 71, .12);
  animation: changelog-live-pulse 1.8s ease-in-out infinite;
}

.home-changelog-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-changelog-top time {
  color: #9ebdcd;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.home-changelog-version {
  margin-top: 14px;
}

.home-changelog-version > span {
  display: inline-flex;
  padding: 5px 9px;
  color: #a8d6e8;
  border: 1px solid rgba(147, 215, 237, .17);
  border-radius: 8px;
  background: rgba(2, 20, 33, .24);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .66rem;
  font-weight: 850;
}

.home-changelog-card h3 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.26;
  text-wrap: balance;
}

.changelog-type {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #126782;
  border: 1px solid #c8e8f3;
  border-radius: 999px;
  background: #eaf9fd;
  font-size: .67rem;
  font-weight: 950;
  letter-spacing: .035em;
  white-space: nowrap;
}

.changelog-type > span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
}

.changelog-type svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.changelog-type.type-bugfix {
  color: #a03c49;
  border-color: #f4ccd2;
  background: #fff0f2;
}

.changelog-type.type-balancing {
  color: #7658b4;
  border-color: #ddd0f5;
  background: #f6f0ff;
}

.changelog-type.type-maintenance {
  color: #9a6418;
  border-color: #f0dcba;
  background: #fff7e6;
}

.home-changelog-card .changelog-type {
  color: #b6f4ff;
  border-color: rgba(112, 226, 250, .22);
  background: rgba(24, 190, 225, .11);
}

.home-changelog-card .changelog-type.type-bugfix {
  color: #ffc1c9;
  border-color: rgba(255, 148, 162, .23);
  background: rgba(218, 59, 81, .12);
}

.home-changelog-card .changelog-type.type-balancing {
  color: #dac8ff;
  border-color: rgba(187, 155, 255, .24);
  background: rgba(128, 86, 218, .12);
}

.home-changelog-card .changelog-type.type-maintenance {
  color: #ffe0a8;
  border-color: rgba(244, 190, 92, .24);
  background: rgba(204, 135, 25, .12);
}

.home-changelog-card p {
  margin: 0 0 20px;
  color: #b8d0dd;
  font-size: .88rem;
  line-height: 1.66;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-changelog-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #62e6ff;
  font-size: .8rem;
  font-weight: 900;
}

.home-changelog-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .2s var(--ease-out);
}

.home-changelog-card:hover .home-changelog-link svg {
  transform: translateX(4px);
}

.home-changelog-empty {
  grid-column: 1 / -1;
  color: #b8d4e2;
  border-color: rgba(151, 219, 239, .2);
  background: rgba(255, 255, 255, .07);
}

.changelog-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(31, 221, 255, .22), transparent 22rem),
    radial-gradient(circle at 10% 100%, rgba(62, 96, 255, .12), transparent 26rem),
    linear-gradient(135deg, #031321, #073b59 58%, #075779);
}

.changelog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}

.changelog-hero h1 {
  max-width: 12ch;
}

.changelog-hero-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(131, 229, 255, .22);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, rgba(2, 24, 42, .72), rgba(5, 52, 75, .50));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 26px 60px rgba(0, 10, 20, .20);
  backdrop-filter: blur(16px);
}

.changelog-hero-card::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -75px;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 220, 255, .22), transparent 68%);
  pointer-events: none;
}

.changelog-hero-card small {
  display: block;
  color: #72e8ff;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .14em;
}

.changelog-hero-card strong {
  display: block;
  margin: 12px 0 16px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.28;
  text-wrap: balance;
}

.changelog-hero-card span {
  color: #bcd9e8;
  font-size: .86rem;
}

.changelog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(50px, 7vw, 82px);
}

.changelog-stats article {
  position: relative;
  overflow: hidden;
  padding: 21px 22px;
  border: 1px solid rgba(195, 220, 234, .90);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f4faff);
  box-shadow: var(--shadow-sm);
}

.changelog-stats article::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 105px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(24, 207, 244, .07);
}

.changelog-stats small {
  display: block;
  color: #668196;
  font-size: .67rem;
  font-weight: 950;
  letter-spacing: .12em;
}

.changelog-stats b {
  display: block;
  margin: 7px 0 3px;
  color: #08253d;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.1;
}

.changelog-stats span {
  color: #71879a;
  font-size: .78rem;
}

.changelog-section-head {
  margin-bottom: 40px;
}

.changelog-timeline {
  position: relative;
  width: min(100%, 1020px);
  margin-inline: auto;
}

.changelog-search-panel {
  display: flex;
  width: min(100%, 1020px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 24px;
  padding: 13px 15px;
  border: 1px solid rgba(194, 218, 232, .92);
  border-radius: 19px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 36px rgba(5, 45, 72, .06);
}

.changelog-search-panel .search-field {
  width: min(100%, 580px);
  margin: 0;
}

.changelog-search-panel small {
  flex: 0 0 auto;
  color: #60798c;
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}

[data-changelog-entry][hidden] {
  display: none;
}

.changelog-no-results {
  display: grid;
  width: min(100%, 1020px);
  gap: 8px;
  margin-inline: auto;
}

.changelog-no-results[hidden] {
  display: none;
}

.changelog-no-results strong {
  color: #17364d;
}

.changelog-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(#1ad1f5, #a8cfdf 48%, rgba(168, 207, 223, .20));
}

.changelog-entry {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: clamp(17px, 3vw, 28px);
  padding-bottom: 25px;
}

.changelog-marker {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: start center;
  padding-top: 24px;
}

.changelog-marker span {
  width: 13px;
  height: 13px;
  border: 3px solid #f3f8fc;
  border-radius: 50%;
  background: #8cb1c5;
  box-shadow: 0 0 0 2px #8cb1c5;
}

.changelog-entry.is-latest .changelog-marker span {
  background: #1bcff2;
  box-shadow: 0 0 0 2px #1bcff2, 0 0 0 8px rgba(27, 207, 242, .12), 0 0 25px rgba(27, 207, 242, .35);
}

.changelog-card {
  position: relative;
  overflow: hidden;
  padding: clamp(21px, 3vw, 30px);
  border: 1px solid rgba(194, 218, 232, .92);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 15px 42px rgba(5, 45, 72, .08);
  transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.changelog-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(#20d4f5, #1888c6);
  opacity: .35;
}

.changelog-entry.is-latest .changelog-card {
  border-color: rgba(31, 194, 233, .34);
  box-shadow: 0 22px 56px rgba(4, 76, 111, .12);
}

.changelog-entry.is-latest .changelog-card::after {
  opacity: 1;
}

.changelog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 184, 226, .36);
  box-shadow: 0 22px 54px rgba(5, 55, 86, .12);
}

.changelog-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.changelog-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.changelog-latest-badge,
.changelog-focus-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.changelog-latest-badge {
  color: #053d50;
  border: 1px solid #7de4f6;
  background: linear-gradient(135deg, #c8f8ff, #86e8f8);
  box-shadow: 0 8px 18px rgba(24, 190, 226, .16);
}

.changelog-focus-badge {
  color: #fff;
  border: 1px solid #087cab;
  background: #087cab;
}

.changelog-entry.is-focused .changelog-marker span {
  background: #06acd6;
  box-shadow: 0 0 0 2px #06acd6, 0 0 0 9px rgba(6, 172, 214, .16), 0 0 30px rgba(6, 172, 214, .38);
}

.changelog-entry.is-focused .changelog-card {
  border-color: rgba(6, 157, 201, .68);
  box-shadow: 0 0 0 4px rgba(13, 187, 225, .12), 0 25px 65px rgba(4, 76, 111, .18);
  animation: changelog-focus-pulse 1.35s var(--ease-out) 1;
}

.changelog-entry.is-focused .changelog-card::after {
  width: 5px;
  opacity: 1;
}

.changelog-card:focus {
  outline: none;
}

.changelog-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease-out) var(--reveal-delay, 0ms), transform .55s var(--ease-out) var(--reveal-delay, 0ms);
}

.changelog-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes changelog-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.76); }
}

@keyframes changelog-focus-pulse {
  0% { transform: scale(.985); box-shadow: 0 0 0 0 rgba(17, 203, 238, .30), 0 18px 44px rgba(4, 76, 111, .12); }
  55% { transform: scale(1.008); box-shadow: 0 0 0 9px rgba(17, 203, 238, .10), 0 28px 70px rgba(4, 76, 111, .20); }
  100% { transform: none; }
}

.changelog-version {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #086e9e;
  background: #e4f7ff;
  font-size: .69rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.changelog-card h2 {
  margin: 11px 0 0;
  color: #071d31;
  font-size: clamp(1.28rem, 2.7vw, 1.72rem);
  line-height: 1.2;
  text-wrap: balance;
}

.changelog-card time {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #6e8497;
  font-size: .79rem;
  font-weight: 800;
  white-space: nowrap;
}

.changelog-card > p {
  max-width: 72ch;
  margin: 15px 0;
  color: #536c80;
  line-height: 1.72;
}

.changelog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.changelog-tags span {
  padding: 6px 9px;
  border: 1px solid #d9e8f0;
  border-radius: 9px;
  color: #567386;
  background: #f6fafc;
  font-size: .69rem;
  font-weight: 800;
}

.changelog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #0878aa;
  font-size: .84rem;
  font-weight: 900;
}

.changelog-link:hover {
  color: #04557d;
}

.changelog-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .2s var(--ease-out);
}

.changelog-link:hover svg {
  transform: translateX(4px);
}

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

.changelog-empty strong {
  color: #17364d;
}

@media (max-width: 860px) {
  .skeleton-header {
    grid-template-columns: 110px 1fr 96px;
  }

  .skeleton-nav span:nth-child(n+3) {
    display: none;
  }

  .skeleton-hero {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  }

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

  .skeleton-cards > span:last-child {
    grid-column: 1 / -1;
  }

  .home-changelog-head {
    align-items: start;
  }

  .home-changelog-head-side {
    align-items: flex-end;
    flex-direction: column;
  }

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

  .home-changelog-card:first-child {
    grid-column: 1 / -1;
    min-height: 230px;
  }

  .changelog-hero-grid {
    grid-template-columns: 1fr;
  }

  .changelog-hero-card {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .initial-loader.data-skeleton {
    background: linear-gradient(180deg, #03111e, #071c2d 52%, #eef6fb 52%);
  }

  .skeleton-shell {
    padding-inline: 14px;
  }

  .skeleton-header {
    min-height: 68px;
    grid-template-columns: 92px 1fr 42px;
    gap: 14px;
  }

  .skeleton-logo {
    width: 86px;
    height: 24px;
  }

  .skeleton-nav {
    justify-content: flex-end;
  }

  .skeleton-nav span {
    display: none;
  }

  .skeleton-action {
    width: 42px;
    height: 38px;
  }

  .skeleton-hero {
    min-height: 410px;
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 44px 72px;
  }

  .skeleton-title {
    width: 92%;
    height: 55px;
  }

  .skeleton-art {
    display: none;
  }

  .skeleton-status {
    grid-template-columns: 1fr;
    margin-top: -38px;
  }

  .skeleton-status span {
    height: 49px;
    margin: 3px;
  }

  .skeleton-status span:nth-child(n+3) {
    display: none;
  }

  .skeleton-content {
    padding-top: 38px;
  }

  .skeleton-cards {
    grid-template-columns: 1fr;
  }

  .skeleton-cards > span,
  .skeleton-cards > span:last-child {
    grid-column: auto;
    min-height: 118px;
  }

  .skeleton-cards > span:nth-child(n+3) {
    display: none;
  }

  .home-changelog-head-side {
    width: 100%;
    align-items: flex-start;
  }

  .home-changelog-head-side .btn-outline {
    width: 100%;
  }

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

  .home-changelog-card,
  .home-changelog-card:first-child {
    grid-column: auto;
    min-height: 230px;
    border-radius: 19px;
  }

  .changelog-search-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .changelog-search-panel .search-field {
    width: 100%;
  }

  .changelog-search-panel small {
    padding-inline: 4px;
    white-space: normal;
  }

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

  .changelog-stats article:last-child {
    grid-column: 1 / -1;
  }

  .changelog-timeline::before {
    left: 10px;
  }

  .changelog-entry {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
  }

  .changelog-marker {
    padding-top: 23px;
  }

  .changelog-marker span {
    width: 11px;
    height: 11px;
  }

  .changelog-card {
    padding: 19px 17px;
    border-radius: 19px;
  }

  .changelog-card-head {
    flex-direction: column;
    gap: 10px;
  }

  .changelog-card time {
    order: -1;
  }
}

@media (max-width: 420px) {
  .changelog-stats {
    grid-template-columns: 1fr;
  }

  .changelog-stats article:last-child {
    grid-column: auto;
  }

  .changelog-hero-card {
    border-radius: 20px;
  }

  .changelog-entry {
    padding-bottom: 18px;
  }
}

/* ========================================================================== 
   v1.11.4 — Real-device mobile QA
   ========================================================================== */
.mobile-qa-page {
  background:
    radial-gradient(circle at 8% 22%, rgba(24, 207, 244, .09), transparent 24rem),
    linear-gradient(180deg, #eef8fc, #f7fbfd 36rem);
}

.mobile-qa-hero {
  background:
    linear-gradient(105deg, rgba(2, 15, 27, .97), rgba(4, 49, 74, .92)),
    url('assets/hero-menki.webp?v=1.11.5') center 48% / cover;
}

.mobile-qa-hero .container {
  max-width: 980px;
}

.mobile-qa-device {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.mobile-qa-device article {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(7, 75, 111, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(4, 47, 73, .11);
}

.mobile-qa-device small,
.mobile-qa-result small {
  display: block;
  color: #0879b0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.mobile-qa-device b {
  display: block;
  margin-block: 7px 3px;
  overflow-wrap: anywhere;
  color: #061526;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
}

.mobile-qa-device span {
  color: var(--muted);
  font-size: .88rem;
  overflow-wrap: anywhere;
}

.mobile-qa-heading {
  margin-top: clamp(42px, 7vw, 72px);
}

.mobile-qa-heading p {
  max-width: 42ch;
}

.mobile-qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mobile-qa-result {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #d5e6ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mobile-qa-result-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #557082;
  background: #edf4f7;
  font-size: 1.3rem;
}

.mobile-qa-result h3 {
  margin: 5px 0 4px;
  color: #0a2031;
  font-size: 1.02rem;
}

.mobile-qa-result p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.mobile-qa-result.is-pass {
  border-color: rgba(19, 158, 103, .28);
  background: linear-gradient(135deg, #fff, #f2fcf7);
}

.mobile-qa-result.is-pass .mobile-qa-result-icon {
  color: #087a51;
  background: #dff8ec;
}

.mobile-qa-result.is-warn {
  border-color: rgba(221, 145, 8, .34);
  background: linear-gradient(135deg, #fff, #fff9ec);
}

.mobile-qa-result.is-warn .mobile-qa-result-icon {
  color: #9a6200;
  background: #fff0c9;
}

.mobile-qa-lab,
.mobile-qa-manual {
  margin-top: clamp(28px, 5vw, 48px);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(7, 75, 111, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mobile-qa-lab {
  overflow: hidden;
}

.mobile-qa-lab h2,
.mobile-qa-manual h2 {
  margin: 6px 0 8px;
}

.mobile-qa-lab > div:first-child p {
  max-width: 68ch;
  margin-top: 0;
  color: var(--muted);
}

.mobile-qa-tapzones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.mobile-qa-tapzones .btn {
  min-width: 160px;
  min-height: 48px;
}

.mobile-qa-safe-area {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px calc(-1 * clamp(22px, 4vw, 38px)) calc(-1 * clamp(22px, 4vw, 38px));
  padding: 16px max(clamp(22px, 4vw, 38px), env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)) max(clamp(22px, 4vw, 38px), env(safe-area-inset-right));
  color: #dff8ff;
  background: linear-gradient(100deg, #052238, #0879b0);
  text-align: center;
}

.mobile-qa-safe-area span {
  color: #83dff4;
  font-size: .75rem;
  font-weight: 700;
}

.mobile-qa-safe-area b {
  font-size: .92rem;
}

.mobile-qa-manual ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: mobile-qa;
}

.mobile-qa-manual li {
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  background: #edf7fb;
  counter-increment: mobile-qa;
}

.mobile-qa-manual li::before {
  content: counter(mobile-qa, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: #08a8d7;
  font-size: 1.4rem;
  font-weight: 900;
}

.mobile-qa-manual li b,
.mobile-qa-manual li span {
  display: block;
}

.mobile-qa-manual li span {
  margin-top: 7px;
  color: var(--muted);
  font-size: .9rem;
}

.mobile-qa-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid #18cff4;
  border-radius: 0 12px 12px 0;
  color: #24475c;
  background: #e8f9fd;
}

@media (max-width: 760px) {
  .mobile-qa-device {
    grid-template-columns: 1fr;
    margin-top: -22px;
  }

  .mobile-qa-grid,
  .mobile-qa-manual ol {
    grid-template-columns: 1fr;
  }

  .mobile-qa-heading {
    align-items: start;
    flex-direction: column;
  }

  .mobile-qa-safe-area {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-qa-safe-area span {
    display: none;
  }
}

@media (max-width: 420px) {
  .mobile-qa-result {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .mobile-qa-result-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .mobile-qa-tapzones .btn {
    width: 100%;
  }
}

/* ========================================================================== 
   v1.11.5 — Community top bar
   ========================================================================== */
.community-topbar {
  position: relative;
  z-index: 90;
  color: #eafaff;
  background:
    radial-gradient(circle at 18% 0, rgba(38, 215, 255, .16), transparent 18rem),
    linear-gradient(100deg, #020c16, #052942 58%, #063b50);
  border-bottom: 1px solid rgba(112, 229, 255, .17);
  padding-top: env(safe-area-inset-top);
}

.community-topbar-inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 5px;
}

.community-topbar-copy,
.community-topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
}

.community-topbar-copy {
  gap: 9px;
}

.community-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #52f3a5;
  box-shadow: 0 0 0 5px rgba(82, 243, 165, .10), 0 0 18px rgba(82, 243, 165, .72);
  animation: community-dot-pulse 2.2s ease-in-out infinite;
}

.community-topbar-copy b {
  color: #fff;
  font-size: .84rem;
  letter-spacing: .01em;
  white-space: nowrap;
}

.community-topbar-copy > span:last-child {
  overflow: hidden;
  color: #a9cbdc;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-topbar-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.community-topbar-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s var(--ease-out), border-color .18s var(--ease-out);
}

.community-topbar-link:hover {
  transform: translateY(-1px);
}

.community-topbar-link.discord {
  color: #ddfaff;
  background: rgba(24, 190, 238, .13);
  border-color: rgba(79, 220, 255, .30);
}

.community-topbar-link.discord:hover {
  background: rgba(24, 190, 238, .25);
  border-color: rgba(94, 229, 255, .62);
}

.community-topbar-link.whatsapp {
  color: #e8fff3;
  background: rgba(37, 211, 102, .13);
  border-color: rgba(72, 228, 130, .30);
}

.community-topbar-link.whatsapp:hover {
  background: rgba(37, 211, 102, .25);
  border-color: rgba(94, 239, 147, .62);
}

.community-topbar-link.whatsapp span {
  font-size: .64rem;
  letter-spacing: -.02em;
}

@keyframes community-dot-pulse {
  50% { opacity: .62; transform: scale(.86); }
}

@media (max-width: 760px) {
  .community-topbar-inner {
    min-height: 54px;
    gap: 10px;
  }

  .community-topbar-copy > span:last-child {
    display: none;
  }

  .community-topbar-copy b {
    font-size: .78rem;
    white-space: normal;
  }

  .community-topbar-link {
    min-height: 40px;
    padding-inline: 10px;
  }
}

@media (max-width: 480px) {
  .community-topbar-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding-block: 8px;
  }

  .community-topbar-copy {
    justify-content: center;
    text-align: center;
  }

  .community-topbar-actions {
    width: 100%;
  }

  .community-topbar-link {
    min-width: 0;
    flex: 1 1 0;
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-live-dot {
    animation: none;
  }
}
