/* Catnip homepage: one scrolling page of sections (hero, every server, the
   online crowd, setup, platforms, download). Reusable pieces keep their
   shared class names (launcher demo, desk mock, download button); the page
   layout uses the hm- prefix so the older homepage rules in redesign.css and
   style.css never reach it. */

.home {
  --hm-accent: #bff982;
  --hm-ink: #f3f3f3;
  --hm-muted: rgba(220, 220, 220, 0.72);
  --hm-faint: rgba(220, 220, 220, 0.5);
  --hm-line: rgba(255, 255, 255, 0.085);
  --hm-line-strong: rgba(255, 255, 255, 0.15);
  --hm-surface: rgba(255, 255, 255, 0.045);
  --hm-surface-strong: rgba(255, 255, 255, 0.075);
  --hm-card: #212121;
  --hm-gutter: clamp(16px, 4vw, 64px);
  --hm-wrap: 1320px;
  background: #1c1c1c;
  overflow-x: clip;
}

html:has(body.home) { scroll-behavior: smooth; }

.hm {
  position: relative;
  color: var(--hm-ink);
  isolation: isolate;
}

.hm :is(h1, h2, h3, p) { text-wrap: balance; }
.hm :is(h1, h2, h3, p, li):lang(ko) { word-break: keep-all; }
.hm :is(h1, h2, h3, p, li):lang(ja) { word-break: auto-phrase; }

.hm-wrap {
  width: min(100%, calc(var(--hm-wrap) + var(--hm-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--hm-gutter);
}

.hm-section { padding-block: clamp(72px, 9vw, 132px); }

.hm-head h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 4.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hm-head h2.is-sentence { font-size: clamp(2rem, 3.6vw, 3.8rem); letter-spacing: -0.04em; }
.hm-head p {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--hm-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.7;
}

.hm-head-split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.hm-head-center {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hm-head-center p { margin-inline: auto; }
.hm-title-line { display: block; white-space: nowrap; }

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hm-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hm-btn-primary {
  background: var(--hm-accent);
  color: #0b1206;
  box-shadow: 0 14px 40px rgba(150, 214, 96, 0.18);
}

.hm-btn-ghost {
  border-color: var(--hm-line-strong);
  background: var(--hm-surface);
  color: var(--hm-ink);
}

@media (hover: hover) {
  .hm-btn-primary:hover { background: #cdfb99; box-shadow: 0 18px 48px rgba(150, 214, 96, 0.26); }
  .hm-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: var(--hm-surface-strong); }
}

.hm-btn:active { transform: scale(0.98); }
.hm-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.hm-faces {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 6px;
}

.hm-faces img {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border: 2px solid #212121;
  border-radius: 50%;
  background: #2e2e2e;
  object-fit: cover;
  image-rendering: pixelated;
}

.hm-faces img[hidden] { display: none; }

.hm-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.hm-status i,
.hm-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hm-accent);
  box-shadow: 0 0 0 3px rgba(191, 249, 130, 0.16), 0 0 12px rgba(191, 249, 130, 0.7);
}

.hm-status.is-offline { color: var(--hm-faint); }
.hm-status.is-offline i { background: #8a8a8a; box-shadow: none; }

.hm-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 196, 92, 0.14);
  color: #ffd28a;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.hm-server-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 22%;
  background: #282828;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 900;
}

.hm-server-icon img { width: 100%; height: 100%; object-fit: cover; }

/* Hero: copy on the left, the live launcher running off the right edge. */
.hm-hero {
  display: flex;
  align-items: center;
  overflow-x: clip;
  min-height: min(100svh, 980px);
  padding-block: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) clamp(48px, 8vh, 96px);
}

.hm-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(36px, 4.4vw, 76px);
  width: 100%;
  padding-left: max(var(--hm-gutter), calc((100% - var(--hm-wrap)) / 2));
}

.hm-hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hm-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.2vw, 5.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hm-hero-copy h1 span { display: block; color: var(--hm-accent); }

.hm-lead {
  max-width: 30em;
  margin: 0;
  color: var(--hm-muted);
  font-size: clamp(0.98rem, 1.15vw, 1.14rem);
  line-height: 1.7;
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hm-hero-live {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--hm-line);
}

.hm-hero-live .hm-faces img { width: 32px; height: 32px; border-color: #1c1c1c; }
.hm-hero-live .hm-faces:empty { display: none; }

.hm-hero-live-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--hm-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.hm-hero-live-text strong {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
}

.hm-hero-os {
  display: flex;
  gap: 12px;
  margin-left: auto;
  color: var(--hm-faint);
}

.hm-hero-os svg { width: 18px; height: 18px; }

.hm .launcher-showcase {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.hm .launcher-showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% -6% 10% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 214, 96, 0.14), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.hm .launcher-window {
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 680;
  overflow: hidden;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: #1e1e1e;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: none !important;
}

/* The hairline that replaces the window's border on Windows. */
.hm .launcher-window::after {
  z-index: 100;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* The launcher preview: the real 1100×680 window, scaled as one unit by
   --launcher-scale. Sizes, colours, hovers and motion are the launcher's own
   (App.tsx, GameSidebar, TitleBar, NewsPanel, LaunchWidget, MiniSkinWalker and
   index.css); change them together. */
.launcher-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 680px;
  overflow: hidden;
  background: linear-gradient(to bottom right, #454547, #2e2e2f);
  transform: scale(var(--launcher-scale, 1));
  transform-origin: top left;
  -webkit-user-select: none;
  user-select: none;
}

/* The launcher's startup overlay: a solid surface over the whole window that
   dissolves once the data is in. The canvas itself never fades, or the glass
   inside it would turn flat for the whole fade. */
.launcher-canvas::after {
  content: "";
  position: absolute;
  z-index: 100;
  inset: 0;
  background: #2e2e2f;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease-out;
}

.launcher-canvas.is-empty { pointer-events: none; }
.launcher-canvas.is-empty::after { opacity: 1; }

.launcher-canvas.is-empty .launcher-live-backdrop,
.launcher-canvas.is-empty .launcher-screen-tint { display: none; }

.launcher-canvas.is-empty .demo-overlay-copy,
.launcher-canvas.is-empty .demo-news-panel,
.launcher-canvas.is-empty .demo-launch-widget {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.launcher-canvas.is-loading .demo-group-rail { cursor: progress; }

.launcher-live-backdrop {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: none;
  transform: translateZ(0);
  transition: opacity 600ms ease;
  will-change: opacity;
}

.launcher-live-backdrop.active,
.launcher-live-backdrop.active.is-loaded { opacity: 1; }

.launcher-screen-tint {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(24, 24, 24, 0.2), rgba(24, 24, 24, 0.05) 50%, transparent),
    linear-gradient(to top, rgba(24, 24, 24, 0.3), transparent 50%);
}

.demo-title-controls {
  position: absolute;
  z-index: 50;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-window-buttons { display: inline-flex; align-items: center; gap: 8px; }

.demo-account,
.demo-round-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(44, 44, 46, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-account:hover,
.demo-account:focus-visible,
.demo-round-control:hover,
.demo-round-control:focus-visible { background: rgba(80, 80, 80, 0.6); }

.demo-round-control.demo-close:hover,
.demo-round-control.demo-close:focus-visible { background: rgba(251, 44, 54, 0.8); }

.demo-account {
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.demo-round-control {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

.demo-account svg,
.demo-round-control svg,
.demo-customize svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-group-rail {
  position: absolute;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 24, 0.25);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.demo-group-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.demo-group-list::-webkit-scrollbar { display: none; }

.demo-group-list[data-fade="top"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 96px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 96px);
}

.demo-group-list[data-fade="bottom"] {
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 96px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 96px), transparent 100%);
}

.demo-group-list[data-fade="both"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 96px, black calc(100% - 96px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 96px, black calc(100% - 96px), transparent 100%);
}

.demo-group-button {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: none;
  opacity: 0.95;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-group-button:hover,
.demo-group-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.demo-group-button.active {
  border-color: #addb71;
  box-shadow: 0 0 12px rgba(173, 219, 113, 0.3);
  opacity: 1;
}

.demo-group-button img,
.demo-group-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  background: #1e2939;
  font-size: 18px;
  font-weight: 900;
  object-fit: cover;
}

/* Traces the tile's border over the 650 ms the description waits. */
@property --demo-rail-ring {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes demo-rail-ring {
  from { --demo-rail-ring: 0deg; }
  to { --demo-rail-ring: 360deg; }
}

.demo-group-button:not(.active)::after {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: 16px;
  background: conic-gradient(
    from -90deg,
    rgba(255, 255, 255, 0.6) var(--demo-rail-ring),
    transparent var(--demo-rail-ring)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.demo-group-button:not(.active):hover::after {
  opacity: 1;
  animation: demo-rail-ring 650ms linear forwards;
}

.demo-group-tooltip {
  position: absolute;
  z-index: 60;
  left: 88px;
  min-width: 180px;
  max-width: 280px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(38, 38, 40, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  animation: demo-tooltip-enter 250ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.demo-group-tooltip[hidden] { display: none; }

.demo-group-tooltip strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.demo-group-tooltip p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: #d1d5dc;
  font-size: 12px;
  line-height: 1.625;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.demo-group-tooltip p:empty { display: none; }

.demo-overlay-copy {
  position: absolute;
  z-index: 30;
  top: 64px;
  left: 128px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.4);
}

.demo-overlay-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.1em;
}

.demo-overlay-copy p {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.625;
  pointer-events: auto;
}

.demo-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  pointer-events: auto;
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.demo-live i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.demo-status-bar.is-online .demo-live i,
.mobile-preview-status-bar.is-online .mobile-preview-status i {
  background: #addb71;
  box-shadow: 0 0 6px rgba(173, 219, 113, 0.3);
  animation: demo-breathe 2.5s ease-in-out infinite;
}

.demo-live span,
.demo-whitelist span {
  line-height: 0.75;
  transform: translateY(-1px);
}

.demo-whitelist,
.demo-socials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.demo-whitelist[hidden],
.demo-socials:empty { display: none; }

.demo-whitelist { color: rgba(255, 185, 0, 0.9); }

.demo-whitelist::before,
.demo-socials::before {
  content: "";
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

.demo-socials a {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-socials a:hover,
.demo-socials a:focus-visible { color: #fff; }

.demo-socials svg {
  display: block;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8));
}

.demo-news-panel {
  position: absolute;
  z-index: 40;
  bottom: 40px;
  left: 128px;
  display: flex;
  width: 550px;
  height: 150px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(44, 44, 46, 0.65);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.demo-news-image {
  position: relative;
  flex: none;
  width: 180px;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

/* The placeholder stays inside the frame while an image covers it, or its
   colour would bleed through the image's rounded, anti-aliased edge. */
.demo-news-image::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  background: linear-gradient(135deg, #addb71, #88b84a);
}

.demo-news-image.fallback::before {
  inset: 0;
  border-radius: 12px;
}

.demo-news-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 150ms ease;
}

.demo-news-image img.active { opacity: 1; }
.demo-news-image.fallback img { opacity: 0; }

.demo-news-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px transparent;
  pointer-events: none;
  transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-news-image:hover::after { box-shadow: inset 0 0 0 2px #addb71; }

.demo-news-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 4px 16px 4px 24px;
}

.demo-tabs {
  position: relative;
  display: flex;
  flex: none;
  gap: 24px;
  margin-bottom: 10px;
}

.demo-tabs button {
  padding: 0 0 8px;
  color: #99a1af;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-tabs button:hover,
.demo-tabs button:focus-visible { color: #e5e7eb; }
.demo-tabs button[aria-selected="true"] { color: #addb71; }

.demo-tabs-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #addb71;
}

.demo-tabs-indicator.is-placed { transition: width 300ms ease-out, transform 300ms ease-out; }

.demo-news-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px 0;
  color: #d1d5dc;
  font-size: 14px;
  line-height: 20px;
  list-style: none;
}

.demo-news-list.is-full {
  justify-content: space-between;
  gap: 0;
}

.demo-news-list li { min-width: 0; }

.demo-news-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  color: inherit;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-news-list button:hover,
.demo-news-list button:focus-visible,
.demo-news-list button.is-active { color: #fff; }

.demo-news-list span {
  overflow: hidden;
  padding-right: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-news-list button:hover span,
.demo-news-list button:focus-visible span { color: #addb71; }

.demo-news-list time {
  flex: none;
  color: #6a7282;
  font-size: 12px;
  line-height: 16px;
}

.demo-news-list .demo-news-empty {
  padding: 16px 0;
  color: #6a7282;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.demo-launch-widget {
  position: absolute;
  z-index: 50;
  right: 48px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.demo-launch-widget.single-mode {
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 12px;
}

/* The launch slot, as the launcher's LaunchSlot: the button and the progress
   bar take turns in one place of one width and fill it, so neither a tab
   switch nor a launch resizes anything. It is as wide as the tag list
   (260 px) with or without one, wider only if a translation of the labels
   needs it: the invisible sizer holds both labels and the occupant is laid
   over it. */
.demo-launch-slot {
  position: relative;
  display: grid;
  min-width: 260px;
  height: 64px;
}

.demo-launch-sizer {
  display: grid;
  grid-area: 1 / 1;
  place-items: center;
  padding: 0 24px;
  visibility: hidden;
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
}

.demo-launch-occupant {
  position: absolute;
  inset: 0;
  display: flex;
}

/* The button: one layer per look (ready, restart). The new fill fades in
   above the old one, which stays opaque until it is covered, so the button
   never passes through transparency; a new label rolls in while the old one
   rolls out (up for the tag to the right, down otherwise). */
.demo-launch,
.mobile-preview-launch {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0;
  color: #000;
  border: 0;
  background: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms ease;
}

.demo-launch {
  border-radius: 16px;
  font-size: 24px;
  line-height: 32px;
}

.demo-launch[hidden],
.mobile-preview-launch[hidden],
.demo-launch-progress[hidden] { display: none; }

.demo-launch:not(.is-running):hover,
.demo-launch:not(.is-running):focus-visible { transform: scale(1.02); }

.demo-launch:active,
.mobile-preview-launch:active { transform: scale(0.95); }

.demo-launch:disabled,
.mobile-preview-launch:disabled {
  cursor: default;
  pointer-events: none;
}

.demo-launch-glow,
.demo-launch-glow > span,
.demo-launch-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.demo-launch-glow {
  z-index: 0;
  opacity: 0;
  transition: opacity 300ms ease;
}

.demo-launch-glow.is-current { opacity: 1; }

.demo-launch-glow > span {
  box-shadow: 0 0 26px rgba(173, 219, 113, 0.45);
  opacity: 0.45;
}

.demo-launch-glow.is-lit > span { animation: demo-glow 2s ease-in-out infinite; }

/* A fill that stops being current waits until the new one has covered it
   (300 ms), then fades out (120 ms). */
.demo-launch-fill {
  z-index: 1;
  opacity: 0;
  transition: opacity 120ms linear 300ms, background-color 150ms ease;
}

.demo-launch-fill.is-current {
  z-index: 2;
  opacity: 1;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms ease;
}

.demo-launch-fill.is-ready { background: #d4edb3; }

.demo-launch:hover .demo-launch-fill.is-ready,
.demo-launch:focus-visible .demo-launch-fill.is-ready { background: #dff2c4; }

.demo-launch-fill.is-restart::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    rgba(194, 232, 154, 0.92) 0%,
    rgba(220, 243, 190, 0.92) 15%,
    rgba(255, 255, 255, 0.96) 40%,
    rgba(255, 255, 255, 0.96) 60%,
    rgba(220, 243, 190, 0.92) 85%,
    rgba(194, 232, 154, 0.92) 100%
  );
  background-size: 200% 100%;
}

.demo-launch-fill.is-restart.is-lit::before { animation: demo-shimmer 1.5s linear infinite; }

/* A group switch shows the new group's button as it is, as the launcher
   remounts its widget. */
.is-instant .demo-launch-fill,
.is-instant .demo-launch-glow { transition: none; }

.demo-launch-content {
  position: relative;
  z-index: 3;
  display: grid;
  flex: 1;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: 0 24px;
  border-radius: inherit;
  transform: translateZ(0);
}

.demo-launch-label {
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
}

.demo-launch-label svg {
  flex: none;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-launch-label.is-restart svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.5;
}

.demo-launch-label.is-in { animation: demo-launch-swap-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both; }

.demo-launch-label.is-out {
  animation: demo-launch-swap-out 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}

@keyframes demo-launch-swap-in { from { opacity: 0; transform: translateY(calc(var(--swap-dir, 1) * 44px)); } }
@keyframes demo-launch-swap-out { to { opacity: 0; transform: translateY(calc(var(--swap-dir, 1) * -44px)); } }

.demo-launch-progress {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(54, 54, 54, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.demo-launch-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, rgba(173, 219, 113, 0.6), #addb71);
  transition: width 300ms ease-out;
}

.demo-launch-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
}

.demo-launch-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: demo-spin 1s linear infinite;
}

.demo-mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-customize {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(42, 42, 42, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-customize:hover,
.demo-customize:focus-visible {
  background: rgba(54, 54, 54, 0.6);
  transform: scale(1.03);
}

.demo-customize:active { transform: scale(0.95); }

.demo-customize svg {
  width: 18px;
  height: 18px;
}

.demo-mode-tabs {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 260px;
  height: 50px;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(44, 44, 46, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.demo-mode-tabs.is-hidden,
.demo-mode-tabs[hidden] { display: none; }

.demo-mode-tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px - (var(--mode-count, 1) - 1) * 4px) / var(--mode-count, 1));
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transform: translateX(calc(var(--mode-index, 0) * (100% + 4px)));
  transition: transform 300ms ease-out, width 300ms ease-out;
}

.demo-mode-tabs button {
  z-index: 1;
  flex: 1;
  padding: 0;
  color: #99a1af;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-mode-tabs button:not(.active):hover,
.demo-mode-tabs button:not(.active):focus-visible { color: #fff; }
.demo-mode-tabs button.active { color: #000; }

.demo-walker {
  position: absolute;
  z-index: 30;
  right: -79.2px;
  bottom: -179.2px;
  display: block;
  width: 440px;
  height: 640px;
  pointer-events: none;
}

.demo-walker-entrance,
.demo-walker-bob {
  position: absolute;
  inset: 0;
  width: 440px;
  height: 640px;
}

.demo-walker-entrance {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 250ms ease-in, transform 250ms ease-in;
}

.demo-walker.show .demo-walker-entrance {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-walker-bob {
  transform-origin: bottom;
  animation: demo-walker-bob 3.5s ease-in-out infinite;
}

.demo-walker canvas { display: block; width: 440px; height: 640px; }

/* Switching groups. The rows holding glass only move while their parts fade,
   because a fading parent would flatten the glass inside it. */
.demo-content-exit .demo-overlay-copy {
  animation: demo-info-exit 150ms ease-in both;
  pointer-events: none;
}

.demo-content-enter .demo-overlay-copy { animation: demo-info-enter 200ms cubic-bezier(0.16, 1, 0.3, 1) both; }

.demo-content-exit .demo-news-panel {
  animation: demo-panel-exit 150ms ease-in both;
  pointer-events: none;
}

.demo-content-enter .demo-news-panel { animation: demo-panel-enter 200ms ease-out both; }

.demo-content-exit .demo-launch-slot,
.demo-content-exit .demo-mode-row {
  animation: demo-row-exit 150ms ease-in both;
  pointer-events: none;
}

.demo-content-enter .demo-launch-slot,
.demo-content-enter .demo-mode-row { animation: demo-row-enter 200ms ease-out both; }

.demo-content-exit .demo-launch,
.demo-content-exit .demo-launch-progress,
.demo-content-exit .demo-customize,
.demo-content-exit .demo-mode-tabs { animation: demo-unit-exit 150ms ease-in both; }

.demo-content-enter .demo-launch,
.demo-content-enter .demo-launch-progress,
.demo-content-enter .demo-customize,
.demo-content-enter .demo-mode-tabs { animation: demo-unit-enter 200ms ease-out both; }

/* The panel's own fade carries a cover that changes with the group. */
.demo-content-exit .demo-news-image img,
.demo-content-enter .demo-news-image img { transition: none; }

@keyframes demo-info-enter {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes demo-info-exit {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-60px); }
}

@keyframes demo-panel-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes demo-panel-exit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(16px) scale(0.96); }
}

@keyframes demo-row-enter {
  from { transform: translateY(16px) scale(0.96); }
  to { transform: translateY(0) scale(1); }
}

@keyframes demo-row-exit {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(16px) scale(0.96); }
}

@keyframes demo-unit-enter { from { opacity: 0; } }
@keyframes demo-unit-exit { to { opacity: 0; } }

@keyframes demo-tooltip-enter {
  from { transform: translateX(-6px) scale(0.97); }
  to { transform: translateX(0) scale(1); }
}

@keyframes demo-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes demo-shimmer {
  0% { background-position: 100% center; }
  100% { background-position: -100% center; }
}

@keyframes demo-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

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

@keyframes demo-walker-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Phones get a touch-first server preview, not a scaled desktop app. */
.mobile-launcher-preview { display: none; }
.mobile-preview-stage { position: relative; overflow: hidden; }
.mobile-preview-stage.is-empty { background: #2c2e2d; }
.mobile-preview-stage > * { transition: opacity 360ms ease; }
.mobile-preview-stage.is-empty > * {
  visibility: hidden;
  opacity: 0 !important;
  pointer-events: none;
}

.mobile-preview-groups[hidden],
.mobile-preview-hint[hidden] { display: none !important; }
.mobile-preview-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 380ms ease;
}

.mobile-preview-backdrop.active { opacity: 1; }
.mobile-preview-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 24, 24, 0.42), rgba(24, 24, 24, 0.1) 62%, transparent),
    linear-gradient(0deg, rgba(24, 24, 24, 0.38), transparent 58%);
}

.mobile-preview-content {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 20px;
  left: 24px;
  margin: 0;
  color: #f7fbf4;
  text-align: left;
}

.mobile-preview-identity { display: block; }
.mobile-preview-status-bar { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.mobile-preview-status { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0; text-transform: none; }
.mobile-preview-status i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); box-shadow: 0 0 6px rgba(0, 0, 0, 0.8); }
.mobile-preview-content h2 {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.35rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.96), 0 0 30px rgba(0, 0, 0, 0.42);
}

.mobile-preview-content .mobile-preview-status { color: rgba(247, 251, 244, 0.82); font-size: 0.7rem; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95); }
.mobile-preview-content > p {
  display: -webkit-box;
  max-width: min(92%, 440px);
  margin: 12px 0 0;
  overflow: hidden;
  color: rgba(247, 251, 244, 0.84);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.52;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.96), 0 6px 16px rgba(0, 0, 0, 0.9);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mobile-preview-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin: 0;
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.mobile-preview-socials a {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.96));
}

.mobile-preview-socials a:active { color: var(--hm-accent); }
.mobile-preview-socials svg { display: block; width: 100%; height: 100%; }
.mobile-preview-actions {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  display: grid;
  justify-items: stretch;
  gap: 8px;
  max-width: calc(100% - 32px);
}

.mobile-preview-mode-tabs {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 3px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(44, 44, 46, 0.5);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.mobile-preview-mode-tabs::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px - (var(--mode-count, 1) - 1) * 3px) / var(--mode-count, 1));
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transform: translateX(calc(var(--mode-index, 0) * (100% + 3px)));
  transition: transform 300ms ease-out, width 300ms ease-out;
}

.mobile-preview-mode-tabs[hidden] { display: none; }
.mobile-preview-mode-tabs::-webkit-scrollbar { display: none; }
.mobile-preview-mode-tabs button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 58px;
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #99a1af;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-preview-mode-tabs button.active { background: transparent; color: #000; }
/* The phone preview's launch slot at the phone's size. Its column stretches
   the slot and the tag list to the wider of the two, so they line up. */
.mobile-preview-actions .demo-launch-slot { min-width: 128px; height: 52px; }
.mobile-preview-launch { border-radius: 16px; font-size: 0.9rem; }
.mobile-preview-actions .demo-launch-sizer {
  font-size: 0.9rem;
  line-height: inherit;
}
.mobile-preview-actions .demo-launch-sizer,
.mobile-preview-launch .demo-launch-content { padding: 0 18px; }
.mobile-preview-actions .demo-launch-label { gap: 8px; }
.mobile-preview-actions .demo-launch-label svg { width: 22px; height: 22px; }
.mobile-preview-actions .demo-launch-progress-label { font-size: 0.9rem; }

.mobile-demo-walker {
  position: absolute;
  z-index: 3;
  right: 4px;
  bottom: -145px;
  width: clamp(225px, 64vw, 255px);
  aspect-ratio: 300 / 440;
  pointer-events: none;
}

.mobile-demo-walker-entrance,
.mobile-demo-walker-bob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mobile-demo-walker-bob { transform-origin: bottom; }

.mobile-demo-walker-entrance {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 250ms ease-in, transform 250ms ease-in;
}

.mobile-demo-walker.show .mobile-demo-walker-entrance {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 350ms cubic-bezier(.16, 1, .3, 1), transform 350ms cubic-bezier(.16, 1, .3, 1);
}

.mobile-demo-walker-bob { animation: demo-walker-bob 3.5s ease-in-out infinite; }
.mobile-demo-walker canvas { display: block; width: 100% !important; height: 100% !important; }

/* A server-appearance player without a figure walks out as a silhouette, the
   same look the crowd's cutouts bake in (player-skins.ts): 0.6·gray + 0.4 at
   half opacity. */
.demo-walker canvas.is-silhouette,
.mobile-demo-walker canvas.is-silhouette {
  opacity: 0.5;
  filter: grayscale(1) contrast(0.4286) brightness(1.4);
}

.mobile-preview-groups {
  display: flex;
  width: 100%;
  gap: 9px;
  padding: 2px 1px 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mobile-preview-groups::-webkit-scrollbar { display: none; }
.mobile-preview-group {
  display: grid;
  flex: 0 0 50px;
  justify-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(233, 241, 228, 0.48);
  font: inherit;
  scroll-snap-align: start;
}

.mobile-preview-group img,
.mobile-preview-group-fallback {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: #202020;
  object-fit: cover;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mobile-preview-group.active { color: #eef7e9; }
.mobile-preview-group.active img,
.mobile-preview-group.active .mobile-preview-group-fallback { border-color: var(--hm-accent); box-shadow: 0 0 0 2px rgba(173, 219, 113, 0.15), 0 7px 20px rgba(0, 0, 0, 0.32); transform: translateY(-1px); }
.mobile-preview-hint { margin: 0; color: rgba(225, 225, 225, 0.5); font-size: 0.7rem; line-height: 1.45; text-align: center; }

.mobile-content-exit .mobile-preview-content { animation: mobile-preview-copy-exit 150ms ease-in both; }
.mobile-content-enter .mobile-preview-content { animation: mobile-preview-copy-enter 240ms cubic-bezier(.16, 1, .3, 1) both; }
.mobile-content-exit .mobile-preview-actions { animation: mobile-preview-actions-exit 130ms ease-in both; }
.mobile-content-enter .mobile-preview-actions { animation: mobile-preview-actions-enter 260ms cubic-bezier(.16, 1, .3, 1) both; }

@keyframes mobile-preview-copy-exit { to { opacity: 0; transform: translateX(-14px); } }
@keyframes mobile-preview-copy-enter { from { opacity: 0; transform: translateX(14px); } }
@keyframes mobile-preview-actions-exit { to { opacity: 0; transform: translateY(7px) scale(.97); } }
@keyframes mobile-preview-actions-enter { from { opacity: 0; transform: translateY(9px) scale(.97); } }

/* Servers: every server on one grid of equal cards. */
.hm-summary {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 1.5em;
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.hm-summary b { color: #fff; font-weight: 900; }
.hm-summary .hm-sep { width: 1px; height: 14px; background: var(--hm-line-strong); }

.hm-server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: var(--hm-card);
  transition: border-color 180ms ease;
}

@media (hover: hover) {
  .hm-server-card:not(.is-skeleton):hover {
    border-color: rgba(255, 255, 255, 0.45);
  }
}

.hm-server-card:has(.hm-server-open:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hm-server-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #282828;
}

.hm-server-cover img { width: 100%; height: 100%; object-fit: cover; }
.hm-server-card.is-offline .hm-server-cover img { filter: grayscale(0.85) brightness(0.62); }
.hm-server-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.35), transparent 30%, transparent 60%, rgba(33, 33, 33, 0.9));
}

.hm-server-tags {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
}

.hm-server-tags .hm-status {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  background: rgba(28, 28, 28, 0.68);
  backdrop-filter: blur(10px);
}

.hm-server-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 0 22px 20px;
}

.hm-server-id {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 14px;
  margin-top: -30px;
}

.hm-server-id .hm-server-icon {
  width: 64px;
  height: 64px;
  box-shadow: 0 0 0 3px var(--hm-card), 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.hm-server-id h3 {
  min-width: 0;
  margin: 0;
  padding-bottom: 4px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hm-server-open {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.hm-server-open:focus-visible { outline: none; }
.hm-server-open::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -100vmax;
}

.hm-server-card { contain: paint; }

.hm-server-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--hm-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hm-server-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hm-line);
}

.hm-server-foot .hm-faces { flex: 0 1 auto; overflow: hidden; }
.hm-faces-more {
  flex: 0 0 auto;
  margin-left: 8px;
  color: var(--hm-muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.hm-server-empty { color: var(--hm-faint); font-size: 0.8rem; font-weight: 700; }

.hm-server-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.hm-server-links a {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 150ms ease;
}

.hm-server-links a:hover,
.hm-server-links a:focus-visible { color: #fff; }
.hm-server-links svg { width: 100%; height: 100%; }

.hm-server-card.is-skeleton .hm-server-cover,
.hm-skeleton-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.085) 50%, rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: hm-shimmer 1.4s ease-in-out infinite;
}

.hm-server-card.is-skeleton .hm-server-cover::after { display: none; }
.hm-server-card.is-skeleton .hm-server-body { padding-top: 20px; }
.hm-skeleton-line { display: block; height: 14px; border-radius: 8px; }
.hm-skeleton-line.is-title { width: 40%; height: 22px; }
.hm-skeleton-line.is-short { width: 70%; }

@keyframes hm-shimmer { to { background-position-x: -200%; } }

.hm-server-status {
  margin: 0;
  padding: 40px 0;
  color: var(--hm-muted);
  text-align: center;
}

/* Server details: a drawer from the right (a bottom sheet on phones). */
.hm-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--hm-line-strong);
  background: #232323;
  color: var(--hm-ink);
  box-shadow: -40px 0 120px rgba(0, 0, 0, 0.6);
}

.hm-drawer[open] { animation: hm-drawer-in 280ms cubic-bezier(.22, 1, .36, 1) both; }
.hm-drawer[open].is-closing { animation: hm-drawer-out 200ms ease-in both; }
.hm-drawer::backdrop { background: rgba(24, 24, 24, 0.62); backdrop-filter: blur(4px); }
.hm-drawer[open]::backdrop { animation: hm-fade-in 220ms ease both; }
.hm-drawer[open].is-closing::backdrop { animation: hm-fade-out 200ms ease both; }

@keyframes hm-drawer-in { from { transform: translateX(100%); } }
@keyframes hm-drawer-out { to { transform: translateX(100%); } }
@keyframes hm-sheet-in { from { transform: translateY(100%); } }
@keyframes hm-sheet-out { to { transform: translateY(100%); } }
@keyframes hm-fade-in { from { opacity: 0; } }
@keyframes hm-fade-out { to { opacity: 0; } }

.hm-drawer-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}

.hm-drawer-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.hm-drawer-grabber { display: none; }

.hm-drawer-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(28, 28, 28, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hm-drawer-close svg { width: 18px; height: 18px; }
.hm-drawer-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hm-drawer-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #282828;
}

.hm-drawer-cover img { width: 100%; height: 100%; object-fit: cover; }
.hm-drawer-cover img:not([src]) { visibility: hidden; }
.hm-drawer-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, #232323);
}

.hm-drawer-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: -44px;
  padding: 0 28px;
}

.hm-drawer-head .hm-server-icon {
  width: 84px;
  height: 84px;
  font-size: 1.8rem;
  box-shadow: 0 0 0 4px #232323, 0 0 0 5px rgba(255, 255, 255, 0.14);
}

.hm-drawer-head h2 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hm-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
}

.hm-drawer-body {
  display: grid;
  gap: 24px;
  padding: 20px 28px 28px;
}

.hm-drawer-desc {
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.hm-drawer-group[hidden] { display: none; }
.hm-drawer-group h3 {
  margin: 0 0 10px;
  color: var(--hm-faint);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hm-drawer-modes,
.hm-drawer-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-drawer-modes li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 14px;
  background: var(--hm-surface-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.hm-drawer-modes img {
  width: 52px;
  height: 30px;
  border-radius: 9px;
  background: #2e2e2e;
  object-fit: cover;
}

.hm-drawer-players {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}

.hm-drawer-players li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--hm-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hm-drawer-players img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #2e2e2e;
  image-rendering: pixelated;
}

.hm-drawer-players span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-drawer-players .hm-drawer-empty { grid-column: 1 / -1; color: var(--hm-faint); }
.hm-drawer-more { margin: 10px 0 0; color: var(--hm-faint); font-size: 0.8rem; font-weight: 700; }

.hm-drawer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-drawer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--hm-surface-strong);
  color: var(--hm-ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.hm-drawer-links a:hover { background: rgba(255, 255, 255, 0.12); }
.hm-drawer-links svg { width: 16px; height: 16px; }

.hm-drawer-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hm-line);
  background: #232323;
}

.hm-drawer-foot p {
  margin: 0;
  color: var(--hm-faint);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hm-drawer-foot .hm-btn { flex: 0 0 auto; margin-left: auto; }
html.hm-drawer-open { overflow: hidden; }

/* Community: the crowd runs edge to edge; the count sits at its foot. */
.hm-community {
  position: relative;
  height: clamp(560px, 82svh, 820px);
  overflow: hidden;
  isolation: isolate;
}

.hm-crowd {
  position: absolute;
  inset: 0 0 64px;
  margin: 0;
}

.hm-crowd-stage {
  position: absolute;
  inset: 0;
  perspective: 1000px;
}

.hm-community::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  background:
    linear-gradient(0deg, #1c1c1c 0%, rgba(28, 28, 28, 0.86) 17%, transparent 46%),
    linear-gradient(180deg, #1c1c1c 0%, transparent 14%);
  pointer-events: none;
}

.hm-crowd .player-figure {
  --player-visible-y: -56%;
  position: absolute;
  z-index: var(--player-z);
  top: var(--player-y);
  left: var(--player-x);
  width: var(--player-width);
  height: auto;
  aspect-ratio: 1 / 2;
  margin: 0;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.86);
  transform-origin: 50% 100%;
  transition: opacity 260ms ease, transform 460ms cubic-bezier(.22, 1, .36, 1), filter 180ms ease;
  pointer-events: none;
  contain: layout paint;
}

.hm-crowd .player-figure.is-scroll-visible {
  opacity: 1;
  transform: translate3d(-50%, var(--player-visible-y), 0) scale(1);
  transition-delay: calc(var(--player-reveal-order) * 900ms), calc(var(--player-reveal-order) * 900ms), 0s;
  pointer-events: auto;
}

.hm-crowd .player-figure.is-scroll-visible:hover {
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(187, 246, 133, 0.58)) drop-shadow(0 13px 11px rgba(0, 0, 0, 0.46));
  transition-delay: 0s;
}

.hm-crowd .player-skin-view,
.hm-crowd .player-skin-cutout {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

.hm-crowd .player-skin-view {
  transform: perspective(760px) rotateX(0deg) rotateY(0deg);
  transform-origin: 50% 82%;
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.hm-crowd .player-figure:hover .player-skin-view { transform: perspective(760px) rotateX(-2deg) rotateY(3deg); }
.hm-crowd .player-figure:nth-child(even):hover .player-skin-view { transform: perspective(760px) rotateX(-2deg) rotateY(-3deg); }
.hm-crowd .player-skin-cutout {
  opacity: 0;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.32));
  transition: opacity 220ms ease;
}

.hm-crowd .player-figure.is-texture-ready .player-skin-cutout { opacity: 0.78; }
.hm-crowd .player-figure.is-ready .player-skin-cutout { opacity: 1; }
.hm-crowd .player-figure figcaption { display: none; }
.hm-crowd .player-stage-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: var(--hm-muted);
  translate: -50% -50%;
}

.hm-community-copy {
  position: absolute;
  z-index: 32;
  right: 0;
  bottom: clamp(28px, 5vh, 56px);
  left: 0;
  padding-inline: var(--hm-gutter);
  text-align: center;
  pointer-events: none;
}

.hm-community-copy h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.12em;
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.24), 0 14px 34px rgba(0, 0, 0, 0.74);
}

.hm-community-copy strong { color: var(--hm-accent); }
.hm-community-copy p {
  max-width: 720px;
  margin: 12px auto 0;
  color: rgba(242, 242, 242, 0.76);
  font-size: clamp(0.86rem, 1vw, 1.04rem);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.92);
}

.home > .player-hover-nameplate {
  position: fixed;
  z-index: 99;
  max-width: min(260px, calc(100vw - 20px));
  padding: 4px 9px 5px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(27, 27, 27, 0.66);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 12px rgba(0, 0, 0, 0.48);
  color: #fff;
  font-family: inherit;
  font-size: clamp(0.68rem, 0.9vw, 0.92rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.015em;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.88);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, calc(-100% - 5px), 0) scale(0.96);
  transform-origin: 50% 100%;
  transition: opacity 120ms ease, transform 150ms cubic-bezier(.22, 1, .36, 1);
}

/* The player's face before the name, pixel for pixel. */
.home > .player-hover-nameplate img {
  width: 1.15em;
  height: 1.15em;
  margin: -0.2em 0.4em -0.2em 0;
  border-radius: 1px;
  image-rendering: pixelated;
  vertical-align: middle;
}

.home > .player-hover-nameplate.is-visible { opacity: 1; transform: translate3d(-50%, calc(-100% - 8px), 0) scale(1); }
.home > .player-hover-nameplate.is-below { transform: translate3d(-50%, 5px, 0) scale(0.96); transform-origin: 50% 0; }
.home > .player-hover-nameplate.is-below.is-visible { transform: translate3d(-50%, 8px, 0) scale(1); }
.home > .player-hover-nameplate .player-platform-mark {
  position: relative;
  top: -0.14em;
  display: inline-block;
  /* Negative block margins keep the pill out of the line box, so a Bedrock
     nameplate is exactly as tall as a Java one. */
  margin: -0.3em 0 -0.3em 0.45em;
  padding: 0.12em 0.38em 0.1em;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.74em;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-shadow: none;
  vertical-align: middle;
}

/* Setup: what installs with a setup, then three in-game scenes side by side. */
.hm-ready-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hm-ready-list li {
  --chip-delay: 0s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 13px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.075);
  color: #f3f3f3;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.hm-ready-list li:nth-child(2) { --chip-delay: 0.12s; }
.hm-ready-list li:nth-child(3) { --chip-delay: 0.24s; }

.hm-ready-check {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 4px;
  border-radius: 50%;
  background: var(--hm-accent);
  color: #0a1006;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scale(0);
  transition: transform 0s linear 0.3s;
}

.hm-setup.is-inview .hm-ready-check {
  transform: scale(1);
  transition: transform 0.42s cubic-bezier(.34, 1.56, .64, 1) calc(0.3s + var(--chip-delay) * 2.5);
}

.hm-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 4vw, 52px);
}

.hm-scene {
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #252525;
  box-shadow: 0 0 0 1px var(--hm-line);
}

.hm-scene img { width: 100%; height: 100%; object-fit: cover; }

/* Platforms: one switch above one large desktop. */
.hm-os-switch {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: clamp(26px, 3vw, 34px) auto clamp(26px, 3vw, 36px);
  padding: 5px;
  border: 1px solid var(--hm-line-strong);
  border-radius: 12px;
  background: var(--hm-surface);
}

.hm-os-switch button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(236, 236, 236, 0.66);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease;
}

.hm-os-switch button svg { width: 16px; height: 16px; }
.hm-os-switch button:hover { color: #fff; }
.hm-os-switch button.active { background: #f2f2f2; color: #0a0a0a; }
.hm-os-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The fill of the active switch is the autoplay clock: servers.js advances
   when it ends, so pausing it (section off screen, switch hovered or
   keyboard-focused) pauses the desktops too. */
.hm .story-cycle-bar {
  position: absolute;
  right: 16px;
  bottom: 5px;
  left: 16px;
  display: block;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
}

.hm .story-cycle-bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(32, 32, 32, 0.5);
  transform: scaleX(0);
  transform-origin: left center;
}

.hm [role="tab"].active .story-cycle-bar { opacity: 1; }
.hm [role="tab"].active .story-cycle-bar i { animation: hm-story-cycle var(--story-cycle, 6s) linear forwards; }
.hm [role="tablist"]:has(:focus-visible) .story-cycle-bar i,
.hm-platforms:not(.is-inview) .story-cycle-bar i { animation-play-state: paused; }
@media (hover: hover) {
  .hm [role="tablist"]:hover .story-cycle-bar i { animation-play-state: paused; }
}

@keyframes hm-story-cycle { to { transform: scaleX(1); } }

/* The launcher draws its own frameless chrome on every system, so one
   unchanged window sits on Windows, macOS, or Linux. Everything inside the
   screen scales with it through container units. */
.desk-stage { width: min(100%, 1000px); margin: 0 auto; }
.desk-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: clamp(10px, 1.2vw, 18px);
  background: #212121;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 36px 100px rgba(0, 0, 0, 0.56);
  container-type: inline-size;
  isolation: isolate;
}

.desk-os {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  transition: opacity 0s linear 0.9s;
}

.desk-os.active {
  z-index: 1;
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(.4, 0, .2, 1);
}

.desk-wallpaper { position: absolute; inset: 0; }
.desk-os-windows .desk-wallpaper {
  background:
    radial-gradient(64% 86% at 50% 112%, rgba(150, 208, 255, 0.92) 0%, rgba(58, 132, 240, 0.62) 30%, transparent 66%),
    radial-gradient(34% 64% at 14% 78%, rgba(84, 150, 255, 0.5), transparent 72%),
    radial-gradient(34% 64% at 86% 78%, rgba(84, 150, 255, 0.5), transparent 72%),
    radial-gradient(46% 40% at 50% 0%, rgba(110, 170, 255, 0.28), transparent 76%),
    linear-gradient(180deg, #091327 0%, #0f2452 56%, #173d80 100%);
}

.desk-os-macos .desk-wallpaper {
  background:
    radial-gradient(64% 62% at 14% 12%, rgba(255, 146, 92, 0.5), transparent 62%),
    radial-gradient(62% 70% at 88% 26%, rgba(166, 92, 255, 0.46), transparent 62%),
    radial-gradient(90% 70% at 50% 112%, rgba(68, 46, 150, 0.85), transparent 70%),
    linear-gradient(160deg, #331a3a 0%, #21143f 50%, #100b24 100%);
}

.desk-os-linux .desk-wallpaper {
  background:
    radial-gradient(52% 70% at 80% 26%, rgba(233, 84, 32, 0.5), transparent 64%),
    radial-gradient(60% 80% at 22% 92%, rgba(119, 33, 111, 0.58), transparent 66%),
    linear-gradient(135deg, #1b0a19 0%, #2a0f26 50%, #281e25 100%);
}

.desk-icon {
  display: block;
  flex: 0 0 auto;
  width: 2.9cqw;
  height: 2.9cqw;
  border-radius: 0.72cqw;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.desk-icon:nth-child(3n + 2) { background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)); }
.desk-icon:nth-child(3n) { background: linear-gradient(145deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.16)); }
.desk-icon-app { position: relative; background: none !important; box-shadow: none; }
.desk-icon-app img { display: block; width: 100%; height: 100%; object-fit: contain; }
.desk-icon-app::after {
  content: "";
  position: absolute;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.88);
}

.desk-tray { display: flex; align-items: center; gap: 0.7cqw; }
.desk-tray i { display: block; width: 1.1cqw; height: 1.1cqw; border-radius: 0.3cqw; background: rgba(255, 255, 255, 0.62); }
.desk-tray i:last-child { width: 3.4cqw; height: 0.8cqw; border-radius: 0.4cqw; background: rgba(255, 255, 255, 0.82); }

/* Windows: centred taskbar with the running app underlined. */
.desk-taskbar {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.6cqw;
  background: rgba(40, 41, 46, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.desk-apps { display: flex; align-items: center; gap: 0.75cqw; }
.desk-taskbar .desk-tray { position: absolute; right: 1.6cqw; }
.desk-os-windows .desk-icon-app::after { bottom: -0.68cqw; left: 50%; width: 1.3cqw; height: 0.26cqw; translate: -50% 0; }

/* macOS: menu bar and a floating dock with a running-app dot. */
.desk-menubar {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.5cqw;
  padding: 0 1.4cqw;
  background: rgba(35, 32, 41, 0.34);
  backdrop-filter: blur(16px);
}

.desk-menus { display: flex; align-items: center; gap: 1.1cqw; }
.desk-menus i { display: block; width: 2.3cqw; height: 0.6cqw; border-radius: 0.4cqw; background: rgba(255, 255, 255, 0.52); }
.desk-menus i:first-child { width: 1.05cqw; height: 1.05cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.86); }
.desk-menus i:nth-child(2) { width: 3.1cqw; background: rgba(255, 255, 255, 0.86); }
.desk-dock {
  position: absolute;
  z-index: 2;
  bottom: 1cqw;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.7cqw 0.85cqw;
  border-radius: 1.7cqw;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 1cqw 3cqw rgba(0, 0, 0, 0.28);
  translate: -50% 0;
  backdrop-filter: blur(20px) saturate(140%);
}

.desk-dock .desk-icon { width: 3.6cqw; height: 3.6cqw; border-radius: 0.95cqw; }
.desk-os-macos .desk-icon-app { padding: 0.45cqw; border-radius: 0.95cqw; background: #252525 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.desk-os-macos .desk-icon-app::after { bottom: -0.62cqw; left: 50%; width: 0.38cqw; height: 0.38cqw; translate: -50% 0; }

/* Linux (GNOME): black top bar with workspace dots and a side dock. */
.desk-topbar {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.5cqw;
  padding: 0 1.2cqw;
  background: #202020;
}

.desk-workspaces { display: flex; align-items: center; gap: 0.45cqw; }
.desk-workspaces i { display: block; width: 0.55cqw; height: 0.55cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.48); }
.desk-workspaces i:first-child { width: 2cqw; background: rgba(255, 255, 255, 0.92); }
.desk-clock { position: absolute; left: 50%; width: 5.4cqw; height: 0.72cqw; border-radius: 0.4cqw; background: rgba(255, 255, 255, 0.84); translate: -50% 0; }
.desk-sidedock {
  position: absolute;
  z-index: 2;
  top: 2.5cqw;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85cqw;
  width: 5.4cqw;
  padding-top: 1.2cqw;
  background: rgba(30, 30, 30, 0.58);
  backdrop-filter: blur(16px);
}

.desk-sidedock .desk-icon { width: 3.3cqw; height: 3.3cqw; border-radius: 0.8cqw; }
.desk-os-linux .desk-icon-app::after { top: 50%; left: -0.9cqw; width: 0.38cqw; height: 0.38cqw; translate: 0 -50%; }

.desk-window {
  position: absolute;
  z-index: 3;
  top: 48%;
  left: 50%;
  width: 66%;
  height: auto;
  aspect-ratio: 1102 / 682;
  border-radius: 1.1cqw;
  object-fit: cover;
  translate: -50% -50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 2.2cqw 6cqw rgba(0, 0, 0, 0.55);
}

/* Download finale. */
.hm-download {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 168px) clamp(110px, 13vw, 180px);
  background: radial-gradient(50% 45% at 50% 52%, rgba(150, 214, 96, 0.1), transparent 70%);
  text-align: center;
}

.hm-download-floor {
  position: absolute;
  right: -20%;
  bottom: 0;
  left: -20%;
  height: 240px;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(173, 219, 113, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 219, 113, 0.16) 1px, transparent 1px);
  background-size: 70px 44px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(transparent, #000);
  pointer-events: none;
}

.hm-download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(980px, calc(100% - var(--hm-gutter) * 2));
  margin: 0 auto;
}

.hm-download .download-logo {
  width: clamp(64px, 6vw, 86px);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 30px rgba(173, 219, 113, 0.3));
}

.hm-download h2 {
  margin: 0;
  color: var(--hm-accent);
  font-size: clamp(3rem, 6.4vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hm-download .download-lead {
  max-width: 640px;
  margin: 18px auto 30px;
  color: var(--hm-muted);
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  line-height: 1.7;
}

.download-mobile-copy { display: none; }
html.download-device-mobile .hm-download .download-desktop-copy,
html.download-device-mobile .hm-download .download-area { display: none !important; }
html.download-device-mobile .hm-download .download-mobile-copy { display: block; }
html.download-device-mobile .hm-download h2 .download-mobile-copy { display: inline; }

.hm-download .download-area { width: min(600px, 100%); margin: 0; }
.hm-download .dl-primary {
  position: relative;
  isolation: isolate;
  min-height: 84px;
  padding: 18px 24px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--hm-accent);
  box-shadow: 0 20px 70px rgba(126, 194, 82, 0.2);
  color: #080b05;
}

.hm-download .dl-primary:not(:disabled):hover {
  background: #cdfb99;
  box-shadow: 0 26px 80px rgba(126, 194, 82, 0.28);
  transform: translateY(-2px);
}

.hm-download .dl-primary:disabled { opacity: 0.55; }
.hm-download .dl-primary .dl-platform { color: #080b05; font-size: 1.04rem; font-weight: 800; }
.hm-download .dl-primary .dl-meta { color: rgba(8, 11, 5, 0.6); font-size: 0.8rem; font-weight: 600; }
.hm-download .dl-primary .dl-arrow { color: #080b05; stroke-width: 2.35; }
.hm-download .dl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 20px;
  padding-block: 0;
  border-color: rgba(30, 34, 28, 0.32);
  background: rgba(30, 34, 28, 0.1);
  color: #0a0f06;
  font-weight: 750;
  line-height: 1;
}

/* A download in progress fills the button itself. The unfilled part stays
   pale so the dark label reads on both halves. */
.dl-progress-fill,
.dl-progress-copy,
.dl-percent { display: none; }

.hm-download .dl-primary.is-progress {
  background: #e7f3d9;
  box-shadow: 0 16px 50px rgba(126, 194, 82, 0.14);
  cursor: default;
  opacity: 1;
  transform: none;
}

.hm-download .dl-primary.is-progress .dl-progress-fill {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  display: block;
  width: var(--dl-progress, 0%);
  background: var(--hm-accent);
  transition: width 240ms linear;
}

.hm-download .dl-primary.is-progress :is(.dl-info, .dl-arrow) { display: none; }
.hm-download .dl-primary.is-progress .dl-progress-copy {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
  color: #080b05;
  text-align: left;
}

.dl-progress-copy span:first-child { font-size: 1.04rem; font-weight: 800; }
.dl-progress-copy span:last-child {
  overflow: hidden;
  color: rgba(8, 11, 5, 0.66);
  font-size: 0.8rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-download .dl-primary.is-progress .dl-percent {
  display: block;
  flex: 0 0 auto;
  color: #080b05;
  font-size: 1.08rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hm-download .dl-primary.is-complete .dl-progress-fill { width: 100%; }
.hm-download .dl-primary.is-error { background: #f6ddd7; }
.hm-download .dl-primary.is-error .dl-progress-fill { display: none; }

.dl-progress-track {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.dl-progress-hint {
  margin: 4px 0 0;
  color: var(--hm-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.dl-progress-hint.is-error { color: #ffb4a6; }
.hm-download .dl-others { border-color: var(--hm-line); }
.hm-download .dl-others-toggle { justify-content: center; }

.hm-download .dl-mobile-notice {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.hm-download .dl-mobile-notice[hidden] { display: none; }
.dl-share-actions { display: flex; gap: 10px; }
.hm-download .dl-share-actions svg { width: 20px; height: 20px; color: currentColor; }
.dl-share-actions .hm-btn { flex: 1 1 0; padding-inline: 12px; }
.dl-link-status { min-height: 1.4em; margin: 0; color: var(--hm-muted); font-size: 0.84rem; }
.hm-download .version-label { margin: 16px 0 0; color: var(--hm-faint); font-weight: 700; }
.hm-download .download-warning { justify-content: center; margin: 22px 0 0; color: rgba(233, 233, 233, 0.5); font-size: 0.78rem; }
/* The notice: its mark and its words on one line when they fit; when they do not, the words move
   under the mark (centred above them) and break only between words, never inside 正版 or Edition,
   in lines of even length. */
.hm-download .download-warning { flex-wrap: wrap; row-gap: 6px; text-align: center; word-break: keep-all; text-wrap: balance; }

/* The complete package matrix opens in the top layer. */
.download-versions-dialog {
  inset: 0;
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: min(76svh, 720px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hm-line-strong);
  border-radius: 14px;
  background: rgba(32, 32, 32, 0.97);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.72);
  color: var(--hm-ink);
}

.download-versions-dialog[open] { animation: download-versions-in 180ms ease-out both; }
.download-versions-dialog[open].is-closing { pointer-events: none; animation: download-versions-out 160ms ease-in both; }
.download-versions-dialog::backdrop { background: rgba(24, 24, 24, 0.74); backdrop-filter: blur(8px); }
.download-versions-dialog[open]::backdrop { animation: hm-fade-in 180ms ease-out both; }
.download-versions-dialog[open].is-closing::backdrop { animation: hm-fade-out 160ms ease-in both; }

.download-versions-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: inherit; }
.download-versions-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; }
.download-versions-header h2 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.2; letter-spacing: -0.025em; }
.download-versions-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--hm-line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(238, 238, 238, 0.72);
  cursor: pointer;
}

.download-versions-close:hover,
.download-versions-close:focus-visible { border-color: rgba(191, 249, 130, 0.46); color: var(--hm-accent); outline: none; }
.download-versions-close svg { width: 18px; height: 18px; }

.download-versions-dialog .dl-others-list {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 22px 28px;
  min-height: 0;
  max-height: none;
  padding: 8px 26px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  scrollbar-gutter: stable both-edges;
}

.download-versions-dialog .dl-platform-group { min-width: 0; padding: 0; border: 0; background: transparent; }
.download-versions-dialog .dl-platform-group-linux { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--hm-line); }
.download-versions-dialog .dl-platform-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.download-versions-dialog .dl-platform-icon { display: grid; flex: 0 0 auto; place-items: center; width: 26px; height: 26px; color: rgba(238, 238, 238, 0.88); }
.download-versions-dialog .dl-platform-icon svg { width: 18px; height: 18px; }
.download-versions-dialog .dl-platform-head h3 { margin: 0; font-size: 1rem; line-height: 1.2; letter-spacing: -0.015em; }
.download-versions-dialog .dl-platform-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; }
.download-versions-dialog .dl-variant {
  min-width: 0;
  min-height: 68px;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--hm-accent);
  box-shadow: 0 12px 30px rgba(126, 194, 82, 0.1);
  color: #080b05;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.download-versions-dialog .dl-variant .dl-info { min-width: 0; }
.download-versions-dialog .dl-variant .dl-platform { overflow: hidden; padding-bottom: 1px; color: #080b05; font-size: 0.84rem; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.download-versions-dialog .dl-variant .dl-meta { color: rgba(8, 11, 5, 0.58); font-size: 0.71rem; white-space: nowrap; }
.download-versions-dialog .dl-variant .dl-arrow { color: #080b05; opacity: 0.9; }
.download-versions-dialog .dl-variant.is-recommended { box-shadow: inset 0 0 0 1px rgba(8, 11, 5, 0.24), 0 12px 30px rgba(126, 194, 82, 0.14); }
.download-versions-dialog .dl-variant:hover,
.download-versions-dialog .dl-variant:focus-visible {
  background: #cdfb99;
  box-shadow: inset 0 0 0 1px rgba(8, 11, 5, 0.3), 0 0 0 3px rgba(191, 249, 130, 0.12), 0 14px 34px rgba(126, 194, 82, 0.18);
  outline: none;
}

@keyframes download-versions-in { from { opacity: 0; transform: scale(0.975); } }
@keyframes download-versions-out { to { opacity: 0; transform: scale(0.982); } }
@keyframes download-versions-sheet-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes download-versions-sheet-out { to { opacity: 0; transform: translateY(18px); } }

/* Tablet: the hero stacks; the launcher spans the column. */
@media (max-width: 1099px) {
  .hm-hero { min-height: 0; }
  .hm-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-right: var(--hm-gutter);
  }

  .hm-hero-copy { max-width: 720px; }
  .hm .launcher-window { border-radius: 8px; }
  .hm-server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .download-versions-dialog {
    inset: auto 0 0;
    width: 100%;
    max-height: min(82svh, 700px);
    margin: 0;
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
  }

  .download-versions-dialog[open] { animation-name: download-versions-sheet-in; }
  .download-versions-dialog[open].is-closing { animation-name: download-versions-sheet-out; }
  .download-versions-header { padding: 18px 18px 14px; }
  .download-versions-dialog .dl-others-list { grid-template-columns: 1fr; gap: 0; padding: 4px 18px max(22px, env(safe-area-inset-bottom)); }
  .download-versions-dialog .dl-platform-group-linux { grid-column: auto; }
  .download-versions-dialog .dl-platform-group { padding: 12px 0 16px; }
  .download-versions-dialog .dl-platform-group + .dl-platform-group { padding-top: 16px; border-top: 1px solid var(--hm-line); }
  .download-versions-dialog .dl-platform-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-versions-dialog .dl-platform-group-macos .dl-platform-options { grid-template-columns: 1fr; }
  .download-versions-dialog .dl-variant { min-height: 62px; padding: 10px 12px; }
}

/* Phones. */
@media (max-width: 767px) {
  .hm a[href],
  .hm button:not(:disabled),
  .hm [role="tab"]:not([aria-disabled="true"]) { cursor: pointer; }

  .hm-hero { padding-block: calc(var(--nav-h) + 28px) 56px; }
  .hm-hero-inner { gap: 26px; }
  .hm-hero-copy { gap: 16px; }
  .hm-hero-copy h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .hm-lead { font-size: 0.94rem; }
  .hm-actions .hm-btn { flex: 1 1 0; padding-inline: 12px; font-size: 0.92rem; }
  .hm-hero-live { min-height: 0; margin-top: 2px; padding-top: 16px; }
  .hm-hero-os { display: none; }

  .hm .launcher-showcase { display: none !important; }
  .mobile-launcher-preview {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 9px;
    margin: 0;
  }

  .mobile-preview-stage {
    width: 100%;
    height: clamp(320px, 52svh, 440px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: clamp(21px, 6vw, 28px);
    background: #1e1e1e;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  }

  .hm-head-split { display: grid; gap: 18px; }
  .hm-head h2.is-sentence { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hm-server-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hm-server-cover { aspect-ratio: 2 / 1; }
  .hm-server-body { gap: 10px; padding: 0 18px 16px; }
  .hm-server-id h3 { font-size: 1.25rem; }
  .hm-server-desc { font-size: 0.88rem; }
  .hm-server-links { gap: 14px; }
  .hm-server-links a { width: 22px; height: 22px; }

  .hm-drawer {
    inset: auto 0 0;
    width: 100%;
    height: min(88dvh, 820px);
    margin: auto 0 0;
    border-top: 1px solid var(--hm-line-strong);
    border-left: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -30px 100px rgba(0, 0, 0, 0.6);
  }

  .hm-drawer[open] { animation-name: hm-sheet-in; }
  .hm-drawer[open].is-closing { animation-name: hm-sheet-out; }
  .hm-drawer.is-dragging { animation: none; transition: none; }
  .hm-drawer-grabber {
    position: absolute;
    z-index: 4;
    top: 8px;
    left: 50%;
    display: block;
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.45);
    translate: -50% 0;
  }

  .hm-drawer-cover { aspect-ratio: 2 / 1; }
  .hm-drawer-head { margin-top: -36px; padding: 0 20px; }
  .hm-drawer-head .hm-server-icon { width: 64px; height: 64px; }
  .hm-drawer-head h2 { font-size: 1.5rem; }
  .hm-drawer-body { gap: 20px; padding: 18px 20px 24px; }
  .hm-drawer-desc { font-size: 0.9rem; }
  .hm-drawer-players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-drawer-foot { padding: 14px 20px max(18px, env(safe-area-inset-bottom)); }
  .hm-drawer-foot p { display: none; }
  .hm-drawer-foot .hm-btn { width: 100%; }

  .hm-community { height: clamp(520px, 78svh, 640px); }
  .hm-crowd {
    inset: 0 auto 92px 50%;
    width: 144vw;
    transform: translateX(-50%);
  }

  .hm-crowd .player-figure { --player-visible-y: -52%; }
  .hm-community-copy h2 { font-size: clamp(2.2rem, 11vw, 3.2rem); line-height: 0.98; }
  .hm-community-copy p { padding-inline: 8px; font-size: 0.82rem; }

  .hm-ready-list { gap: 8px; }
  .hm-ready-list li { gap: 8px; height: 38px; padding: 0 11px 0 15px; font-size: 0.78rem; }
  .hm-ready-check { width: 16px; height: 16px; padding: 3.5px; }
  .hm-scenes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hm-scene { aspect-ratio: 16 / 10; border-radius: 14px; }

  .hm-os-switch button { gap: 6px; height: 40px; padding: 0 13px; font-size: 0.8rem; }
  .hm-os-switch button svg { width: 14px; height: 14px; }
  .desk-window { width: 72%; }

  .hm-download h2 { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .hm-download .download-lead { margin: 14px auto 24px; font-size: 0.92rem; }
  .hm-download .download-logo { width: 64px; margin-bottom: 14px; }
}

@media (max-width: 767px) and (max-height: 650px) {
  .mobile-preview-stage { height: clamp(270px, 46svh, 320px); }
  .mobile-preview-content { top: 20px; right: 16px; left: 20px; }
  .mobile-preview-content h2 { font-size: 1.55rem; }
  .mobile-preview-content > p { margin-top: 8px; font-size: 0.8rem; -webkit-line-clamp: 2; }
  .mobile-preview-actions { right: 12px; bottom: 12px; }
  .mobile-preview-actions .demo-launch-slot { min-width: 112px; height: 44px; }
  .mobile-preview-launch,
  .mobile-preview-actions .demo-launch-progress { border-radius: 14px; }
  .mobile-preview-launch,
  .mobile-preview-actions .demo-launch-sizer,
  .mobile-preview-actions .demo-launch-progress-label { font-size: 0.8rem; }
  .mobile-demo-walker { right: 4px; bottom: -125px; width: 225px; }
  .mobile-preview-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.home) { scroll-behavior: auto; }
  .hm-drawer[open],
  .hm-drawer[open]::backdrop,
  .download-versions-dialog[open],
  .download-versions-dialog[open]::backdrop,
  .hm-server-card.is-skeleton .hm-server-cover,
  .hm-skeleton-line { animation: none !important; }
  .hm-crowd .player-figure,
  .hm-server-card,
  .hm-ready-check,
  .desk-os,
  .mobile-preview-backdrop,
  .mobile-preview-mode-tabs::before,
  .mobile-preview-content,
  .mobile-preview-actions {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }

  /* The launch label swaps in place. */
  .demo-launch-label.is-in,
  .demo-launch-label.is-out { animation: none; }
  .demo-launch-label.is-out { visibility: hidden; }

  /* No autoplay: the active switch keeps a full bar as its selection mark. */
  .hm [role="tab"].active .story-cycle-bar i { animation: none; transform: scaleX(1); }
}
