@charset "UTF-8";
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 800;
  font-display: block;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 800;
  font-display: block;
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: light dark;
  --hm-bg: #ffffff;
  --hm-surface: #ffffff;
  --hm-ink: #0f1720;
  --hm-muted: #5b6673;
  --hm-prose: #2a3440;
  --hm-blue: #0085BE;
  --hm-blue-dark: #006b99;
  --hm-tint: #f3f7fa;
  --hm-tint-blue: #e5f3fa;
  --hm-track: #dfe7ee;
  --hm-border: #dde5ec;
  --hm-border-strong: #cfd9e2;
  --hm-card-shadow: 0 1px 2px rgba(15, 23, 32, 0.06), 0 6px 18px rgba(15, 23, 32, 0.07);
  --hm-badge-ink: #006b99;
  --hm-java-bg: #e3f6df;
  --hm-java-ink: #2f7a24;
  --hm-bedrock-bg: #efe6fb;
  --hm-bedrock-ink: #6b3fb0;
}

/* Dark mode follows the device setting */
@media (prefers-color-scheme: dark) {
  :root:not(:has(.wiki-page)) {
    --hm-bg: #0c131a;
    --hm-surface: #151f29;
    --hm-ink: #eef3f7;
    --hm-muted: #9eabb8;
    --hm-prose: #cfd8e1;
    --hm-blue: #1f9fd8;
    --hm-blue-dark: #0085BE;
    --hm-tint: #111a23;
    --hm-tint-blue: #16324a;
    --hm-track: #263442;
    --hm-border: #233140;
    --hm-border-strong: #2f3f50;
    --hm-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 22px rgba(0, 0, 0, 0.35);
    --hm-badge-ink: #8fd6f7;
    --hm-java-bg: rgba(76, 175, 63, 0.18);
    --hm-java-ink: #9ae58b;
    --hm-bedrock-bg: rgba(150, 105, 225, 0.22);
    --hm-bedrock-ink: #cdb2ff;
  }
}
body:not(:has(.wiki-page)) {
  background: var(--hm-bg);
  color: var(--hm-ink);
}

.hm-wrap {
  max-width: clamp(1200px, 78vw, 1680px);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .hm-wrap {
    padding: 0 2rem;
  }
}

.hm-section {
  padding: 3.5rem 0;
}
@media (min-width: 768px) {
  .hm-section {
    padding: 5rem 0;
  }
}

.hm-section-tint {
  background: var(--hm-tint);
  padding: 3.5rem 0;
}

.hm-section h2, .hm-spotlight h2, .hm-newsletter h2 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hm-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0;
}

.hm-kicker {
  display: block;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--hm-blue);
  margin-bottom: 0.4rem;
}

.hm-kicker-light {
  color: #7fd3f7;
}

.hm-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hm-section-head-center {
  justify-content: center;
  text-align: center;
}

.hm-link {
  font-weight: 600;
  color: var(--hm-blue);
  text-decoration: none;
  white-space: nowrap;
}
.hm-link:hover {
  color: var(--hm-blue-dark);
  text-decoration: underline;
}

/* Buttons */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, box-shadow 0.15s ease;
}
.hm-btn:hover {
  transform: translateY(-2px) scale(1.05);
}
.hm-btn:active {
  transform: scale(0.97);
}
.hm-btn:hover .fa-download {
  animation: hm-bouncy 1.3s infinite;
}

@keyframes hm-bouncy {
  from, to {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-4px) scale(0.9, 1.1);
  }
  50% {
    transform: translateY(3px) scale(1.1, 0.9);
  }
  75% {
    transform: translateY(-2px) scale(0.95, 1.05);
  }
}
.hm-btn-primary {
  background: var(--hm-blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 133, 190, 0.35);
}
.hm-btn-primary:hover {
  background: var(--hm-blue-dark);
  color: #fff;
}

.hm-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.hm-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hm-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Map grid */
.hm-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .hm-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .hm-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hm-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  box-shadow: var(--hm-card-shadow);
  color: var(--hm-ink);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.hm-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 18px 40px rgba(15, 23, 32, 0.16);
  color: var(--hm-ink);
}
.hm-card:nth-child(even):hover {
  transform: translateY(-5px) rotate(0.4deg);
}
.hm-card:hover img {
  transform: scale(1.025);
}
.hm-card h3 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0.5rem 0 0.35rem;
  color: var(--hm-ink);
}
.hm-card p {
  margin: 0;
  color: var(--hm-muted);
  font-size: 0.95rem;
}

.hm-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--hm-tint);
}
.hm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hm-card-body {
  padding: 1.1rem 1.3rem 1.4rem;
}

.hm-badges {
  display: flex;
  gap: 0.35rem;
}
.hm-badges span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--hm-tint-blue);
  color: var(--hm-badge-ink);
}
.hm-badges .hm-badge-soon {
  background: var(--hm-blue);
  color: #fff;
}

/* News */
.hm-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hm-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hm-news-card {
  display: flex;
  flex-direction: column;
  background: var(--hm-surface);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--hm-ink);
  border: 1px solid var(--hm-border);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.hm-news-card:nth-child(even):hover {
  transform: translateY(-6px) rotate(0.4deg);
}
.hm-news-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 16px 40px rgba(15, 23, 32, 0.12);
  color: var(--hm-ink);
}
.hm-news-card h3 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0.3rem 0 0.5rem;
}
.hm-news-card p {
  color: var(--hm-muted);
  margin: 0;
  font-size: 0.95rem;
}
.hm-news-card time {
  color: var(--hm-blue);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hm-news-img {
  aspect-ratio: 5/4;
  overflow: hidden;
  background: var(--hm-tint);
}
.hm-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-news-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .hm-news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hm-news-grid > .hm-news-card {
    display: grid;
    grid-template-columns: 34% 1fr;
  }
  .hm-news-grid > .hm-news-card:hover, .hm-news-grid > .hm-news-card:nth-child(even):hover {
    transform: translateY(-3px);
  }
  .hm-news-grid > .hm-news-card .hm-news-img {
    aspect-ratio: auto;
    position: relative;
    min-height: 100%;
  }
  .hm-news-grid > .hm-news-card .hm-news-img::before {
    content: "";
    display: block;
    padding-top: 80%;
  }
  .hm-news-grid > .hm-news-card .hm-news-img img {
    position: absolute;
    inset: 0;
  }
  .hm-news-grid > .hm-news-card .hm-news-body {
    padding: 1.1rem 1.4rem 1.2rem;
    justify-content: center;
  }
}
.hm-news-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Typography: one display font for headings across the site */
:where(body:not(:has(.wiki-page))) :where(h1, h2, h3, h4, h5, h6) {
  font-family: "Outfit", "Open Sans", sans-serif;
  letter-spacing: -0.01em;
}

.hm-narrow {
  max-width: 860px;
}

.hm-section-flush {
  padding-top: 2.5rem;
}

.hm-intro {
  text-align: center;
  color: var(--hm-muted);
  margin: 0 0 2rem;
}

.hm-empty {
  text-align: center;
  color: var(--hm-muted);
  margin: 2rem 0;
}

/* Extra button styles */
.hm-btn-outline {
  color: var(--hm-blue);
  border-color: var(--hm-blue);
  background: transparent;
}
.hm-btn-outline:hover {
  background: var(--hm-blue);
  color: #fff;
}

.hm-btn-sm {
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
}

.hm-btn-block {
  width: 100%;
  margin-top: 1.25rem;
}

.hm-card .hm-btn {
  margin-top: 1rem;
  align-self: flex-start;
}

.hm-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hm-badges {
  flex-wrap: wrap;
}

.hm-badges .hm-badge-java {
  background: var(--hm-java-bg);
  color: var(--hm-java-ink);
}

.hm-badges .hm-badge-bedrock {
  background: var(--hm-bedrock-bg);
  color: var(--hm-bedrock-ink);
}

.hm-badges-light span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hm-badges-light .hm-badge-java, .hm-badges-light .hm-badge-bedrock {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hm-badges-light .hm-badge-soon {
  background: var(--hm-blue);
}

/* Page header (list pages, about, contact, ...) */
.hm-page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  overflow: hidden;
  padding: 7rem 0 2.25rem;
  background-color: #1b2733;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hm-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 12, 20, 0.85) 0%, rgba(5, 12, 20, 0.35) 60%, rgba(5, 12, 20, 0.45) 100%);
}
.hm-page-hero h1 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}
@media (min-width: 768px) {
  .hm-page-hero {
    min-height: 420px;
  }
}

@media (min-width: 1600px) {
  .hm-page-hero {
    background-color: #141c25;
    background-size: 62% auto;
    background-repeat: no-repeat;
    background-position: right 47%;
  }
  .hm-page-hero::before {
    background: linear-gradient(to right, #141c25 0%, #141c25 41%, rgba(20, 28, 37, 0.6) 52%, rgba(20, 28, 37, 0) 72%), linear-gradient(to top, rgba(5, 12, 20, 0.7) 0%, rgba(5, 12, 20, 0.15) 60%, rgba(5, 12, 20, 0.35) 100%);
  }
}
.hm-page-hero-content {
  position: relative;
  width: 100%;
}

.hm-page-hero-compact {
  min-height: 0;
  padding: 6rem 0 1.75rem;
}
.hm-page-hero-compact h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.hm-page-hero-compact .hm-page-hero-sub {
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

.hm-page-hero-sub {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
}

.hm-page-body {
  padding-top: 2.5rem;
}

.hm-page-body > .hm-section:first-child {
  padding-top: 0;
}

/* Search */
.hm-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.hm-search i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hm-muted);
}
.hm-search input {
  width: 100%;
  border: 2px solid var(--hm-border-strong);
  border-radius: 999px;
  padding: 0.8rem 1.2rem 0.8rem 3rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hm-search input:focus {
  border-color: var(--hm-blue);
  box-shadow: 0 0 0 4px rgba(0, 133, 190, 0.15);
}

/* Map / add-on detail header */
.hm-detail-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 2rem;
}
@media (min-width: 768px) {
  .hm-detail-hero {
    min-height: 440px;
    padding: 7.5rem 0 2.75rem;
  }
}
.hm-detail-hero {
  background-color: #1b2733;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hm-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 12, 20, 0.9) 0%, rgba(5, 12, 20, 0.3) 55%, rgba(5, 12, 20, 0.45) 100%), linear-gradient(to right, rgba(5, 12, 20, 0.5) 0%, rgba(5, 12, 20, 0) 60%);
}
.hm-detail-hero h1 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: #fff;
}
.hm-detail-hero .hm-cta {
  margin-top: 1.25rem;
}
@media (max-width: 575px) {
  .hm-detail-hero .hm-cta {
    gap: 0.5rem;
  }
  .hm-detail-hero .hm-btn {
    flex: 1 1 auto;
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem;
    white-space: nowrap;
  }
}

.hm-detail-hero-content {
  position: relative;
  width: 100%;
}

.hm-side-left {
  display: none;
}

@media (min-width: 1200px) {
  .hm-detail-addon:has(.hm-side-left) {
    grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) 340px;
    gap: 3rem;
  }
  .hm-side-left {
    display: block;
    align-self: start;
    position: sticky;
    top: 6rem;
  }
  .hm-side-left .hm-side-art {
    width: 100%;
  }
}
.hm-side-art {
  display: none;
  width: 70%;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 992px) {
  .hm-side-art {
    display: block;
  }
}

/* Detail body: text + sidebar */
.hm-section:has(> .hm-detail) {
  padding: 1.75rem 0 3rem;
}
@media (min-width: 768px) {
  .hm-section:has(> .hm-detail) {
    padding: 3rem 0 4rem;
  }
}

.hm-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 992px) {
  .hm-detail {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 4rem;
  }
}

.hm-detail-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .hm-detail-side {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.hm-panel {
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 30px rgba(15, 23, 32, 0.06);
}
.hm-panel h3 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--hm-ink);
}

.hm-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}
.hm-facts dt {
  color: var(--hm-muted);
  font-weight: 400;
}
.hm-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--hm-ink);
}
.hm-facts a {
  color: var(--hm-blue);
}

/* Long-form text from markdown */
.hm-prose {
  color: var(--hm-prose);
  font-size: 1.05rem;
}
.hm-prose p {
  margin: 0 0 1.2rem;
  line-height: 1.7;
}
.hm-prose p:first-child {
  font-size: 1.2rem;
  color: var(--hm-ink);
}
.hm-prose h2, .hm-prose h3, .hm-prose h4, .hm-prose h5, .hm-prose h6 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  color: var(--hm-ink);
  margin: 2rem 0 0.75rem;
}
.hm-prose h5 {
  font-size: 1.25rem;
}
.hm-prose ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 1.5rem;
}
.hm-prose ul ul {
  margin: 0.4rem 0 0 1.2rem;
}
.hm-prose li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  line-height: 1.6;
}
.hm-prose li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--hm-blue);
}
.hm-prose a:not(.btn):not(.hm-btn) {
  color: var(--hm-blue);
}
.hm-prose img {
  max-width: 100%;
  border-radius: 12px;
}

/* Rank times: one clear row per rank */
.hm-rank-title {
  margin-top: 2.5rem !important;
  margin-bottom: 0.25rem !important;
}

.hm-rank-note {
  color: var(--hm-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem !important;
}

.hm-ranks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1rem;
}
@media (min-width: 576px) {
  .hm-ranks {
    gap: 0.75rem;
  }
}

.hm-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.9rem 0.25rem 0.8rem;
  border-radius: 16px;
  background: var(--hm-surface);
  border: 2px solid var(--hm-border);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}
.hm-rank:hover {
  transform: translateY(-4px) rotate(-2deg);
  border-color: var(--rank);
}
.hm-rank .hm-rank-letter {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  color: #fff;
  background: var(--rank);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}
@media (min-width: 576px) {
  .hm-rank .hm-rank-letter {
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.7rem;
  }
}
.hm-rank .hm-rank-time {
  line-height: 1.15;
}
.hm-rank .hm-rank-time small {
  display: block;
  color: var(--hm-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hm-rank .hm-rank-time strong {
  display: block;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--hm-ink);
  white-space: nowrap;
  margin-top: 0.15rem;
}
@media (min-width: 576px) {
  .hm-rank .hm-rank-time strong {
    font-size: 1.05rem;
  }
}

@media (max-width: 575.98px) {
  .hm-ranks {
    gap: 0.35rem;
  }
  .hm-rank {
    gap: 0.4rem;
    padding: 0.55rem 0.1rem 0.5rem;
    border-radius: 12px;
  }
  .hm-rank .hm-rank-letter {
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    font-size: 1.1rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  }
  .hm-rank .hm-rank-time strong {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    margin-top: 0;
  }
}
@media (max-width: 575.98px) and (max-width: 359.98px) {
  .hm-rank .hm-rank-time strong {
    font-size: 0.72rem;
  }
}
.hm-rank-S {
  --rank: #E8A100;
}

.hm-rank-A {
  --rank: #E5484D;
}

.hm-rank-B {
  --rank: #2FA84F;
}

.hm-rank-C {
  --rank: #3E63DD;
}

.hm-rank-D {
  --rank: #A44BC7;
}

/* Fastest speedrun: a split card under the rank times; tap it to watch the run */
.hm-record {
  display: grid;
  grid-template-columns: auto 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 18px;
  background: var(--hm-surface);
  border: 2px solid var(--hm-border);
  box-shadow: var(--hm-card-shadow);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}
.hm-record:hover {
  transform: translateY(-3px);
  border-color: var(--hm-blue);
}
.hm-record:hover .hm-record-watch {
  color: #fff;
  background: var(--hm-blue);
}
.hm-record:focus-visible {
  outline: 3px solid var(--hm-blue);
  outline-offset: 3px;
}
@media (min-width: 576px) {
  .hm-record {
    grid-template-columns: auto 1fr auto;
  }
}

.hm-record-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease 0.1s;
}
.hm-record-wrap.is-in {
  grid-template-rows: 1fr;
  opacity: 1;
}

.hm-record-clip {
  min-height: 0;
  overflow: hidden;
  padding-top: 1.25rem;
  margin-bottom: -0.25rem;
  padding-bottom: 0.25rem;
}
.is-done .hm-record-clip {
  overflow: visible;
}

.hm-record-icon {
  display: grid;
  place-items: center;
  padding: 0 1.3rem;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(160deg, #00a3e0, #0072a8);
}
@media (min-width: 576px) {
  .hm-record-icon {
    padding: 0 1.6rem;
    font-size: 1.9rem;
  }
}

.hm-record-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.25rem;
  min-width: 0;
}

.hm-record-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-muted);
}

.hm-record-time {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--hm-ink);
}
.hm-record-time sup {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--hm-blue);
  margin-left: 0.2rem;
  top: -1.1em;
}

.hm-record #record {
  color: var(--hm-ink);
  font-size: inherit;
  font-weight: inherit;
}

.hm-record-by {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 0.45rem;
  padding: 0.3rem 0.85rem 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--hm-tint-blue);
  color: var(--hm-blue);
  font-size: 0.8rem;
}
.hm-record-by #record_author_name {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hm-ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-record-watch {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  color: var(--hm-blue);
  background: var(--hm-tint);
  border-top: 1px solid var(--hm-border);
  transition: background 0.2s ease, color 0.2s ease;
}
@media (min-width: 576px) {
  .hm-record-watch {
    grid-column: auto;
    border-top: none;
    border-left: 1px solid var(--hm-border);
    padding: 0 1.75rem;
  }
}

/* Speedrun pop-up */
.hm-modal.hm-run-modal .modal-dialog {
  max-width: 860px;
}

.hm-run-modal .hm-modal-body {
  position: relative;
}

.hm-modal.hm-run-modal .modal-dialog {
  margin-top: 4rem;
}
.hm-modal.hm-run-modal .modal-content {
  overflow: visible;
}
.hm-modal.hm-run-modal .hm-run-video {
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.hm-modal.hm-run-modal .hm-modal-close {
  top: -3rem;
  right: 0;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hm-run-actions .hm-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .hm-run-actions .hm-btn {
    flex: 1 1 0;
  }
  .hm-run-src {
    margin: 0.25rem auto 0;
  }
}
.hm-run-video {
  position: relative;
  aspect-ratio: 16/9;
  background: #0b1118;
}
.hm-run-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hm-run-novideo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 1rem;
}
.hm-run-novideo > i {
  font-size: 2rem;
  opacity: 0.6;
}
.hm-run-novideo .hm-btn-light {
  color: #0b1118;
}
.hm-run-novideo[hidden] {
  display: none;
}

.hm-run-title {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin: 0.25rem 0 0.1rem;
  color: var(--hm-ink);
}
.hm-run-title small {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hm-muted);
}
.hm-run-title #run_player {
  color: var(--hm-ink);
  font-weight: 800;
  font-size: 1.25rem;
}

.hm-run-meta {
  color: var(--hm-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.hm-run-meta a {
  color: var(--hm-blue);
}

.hm-run-subhead {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-muted);
  margin: 0 0 0.5rem;
}

.hm-run-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.hm-run-list li {
  display: grid;
  grid-template-columns: 2rem 1fr auto 1.25rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border-radius: 12px;
  background: var(--hm-tint);
  border: 2px solid var(--hm-border);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.hm-run-list li:hover {
  border-color: var(--hm-border-strong);
}
.hm-run-list li.is-active {
  border-color: var(--hm-blue);
}
.hm-run-list li > i {
  color: var(--hm-blue);
  font-size: 0.8rem;
}
.hm-run-list li[data-place="1"] .hm-run-place {
  background: var(--hm-blue);
  color: #fff;
}

.hm-run-place {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  background: var(--hm-border-strong);
  color: var(--hm-ink);
}

.hm-run-name {
  font-weight: 600;
  color: var(--hm-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-run-t {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  color: var(--hm-ink);
}

.hm-run-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.hm-run-src {
  margin-left: auto;
  color: var(--hm-muted);
  font-size: 0.9rem;
}
.hm-run-src:hover {
  color: var(--hm-blue);
}

.hm-btn-discord {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}
.hm-btn-discord i {
  margin-right: 0.25rem;
}
.hm-btn-discord:hover {
  background: #4752c4;
  color: #fff;
}

/* Media gallery */
.hm-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hm-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .hm-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hm-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--hm-track);
}
.hm-gallery-item img.img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hm-gallery-item {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hm-gallery-item:hover {
  transform: scale(1.03);
}
.hm-gallery-item:hover img.img-fluid {
  transform: scale(1.05);
}
.hm-gallery-item .playBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hm-gallery-item:hover .playBtn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

/* News list */
.hm-news-featured {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  border-radius: 24px;
  overflow: hidden;
  color: var(--hm-ink);
  text-decoration: none;
  margin-bottom: 2rem;
  box-shadow: 0 14px 40px rgba(15, 23, 32, 0.08);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.hm-news-featured:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 50px rgba(15, 23, 32, 0.14);
  color: var(--hm-ink);
}
.hm-news-featured:hover img {
  transform: scale(1.05);
}
@media (min-width: 900px) {
  .hm-news-featured {
    grid-template-columns: 1.2fr 1fr;
  }
}
.hm-news-featured h2 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
  color: var(--hm-ink);
}
.hm-news-featured time {
  color: var(--hm-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hm-news-featured p {
  color: var(--hm-muted);
  margin: 1rem 0 1.5rem;
}

.hm-news-featured-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--hm-tint);
}
.hm-news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
@media (min-width: 900px) {
  .hm-news-featured-img {
    aspect-ratio: auto;
    min-height: 340px;
  }
}

.hm-news-featured-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hm-news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hm-comment-count {
  color: var(--hm-muted);
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.hm-news-meta .hm-comment-count {
  margin-top: 0;
  padding-top: 0;
}

.hm-news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* News post */
.hm-post-hero {
  overflow: hidden;
  background: #1b2733;
}

.hm-post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hm-post-hero-blur {
  filter: blur(6px);
  transform: scale(1.08);
}

.hm-post-hero::before {
  z-index: 1;
}

.hm-post-hero .hm-page-hero-content {
  z-index: 2;
}

.hm-post-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.hm-back {
  text-decoration: none;
}
.hm-back:hover {
  color: #fff;
}

.hm-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.3;
}
.hm-author img {
  width: 44px;
  height: 44px;
}
.hm-author time {
  color: rgba(255, 255, 255, 0.7);
}

.hm-post p:first-child {
  font-size: 1.25rem;
}
.hm-post iframe, .hm-post video {
  max-width: 100%;
  border-radius: 12px;
}
.hm-post .btn {
  margin: 0.25rem 0.25rem 0.25rem 0;
}

/* Contact */
.hm-contact-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 32, 0.1);
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .hm-contact-card {
    grid-template-columns: 0.8fr 1.2fr;
  }
}
.hm-contact-card .hm-form {
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .hm-contact-card .hm-form {
    padding: 2.5rem 2.75rem;
  }
}
.hm-contact-card h2 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--hm-ink);
  margin: 0;
}

.hm-contact-art {
  min-height: 200px;
  background-size: cover;
  background-position: center 40%;
}
@media (min-width: 900px) {
  .hm-contact-art {
    min-height: 100%;
  }
}

.hm-contact-intro {
  color: var(--hm-muted);
  margin: 0.5rem 0 0;
}

.hm-discord-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  max-width: 1000px;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.hm-discord-banner:hover {
  background: #4752c4;
  color: #fff;
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.35);
}
.hm-discord-banner:hover .hm-btn {
  transform: scale(1.05);
}
.hm-discord-banner > i {
  font-size: 2.4rem;
}
.hm-discord-banner > span:not(.hm-btn) {
  flex: 1 1 14rem;
}
.hm-discord-banner strong {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-size: 1.15rem;
}

.hm-btn-light {
  background: #fff;
  color: #5865F2;
}
.hm-btn-light:hover {
  color: #5865F2;
}

.hm-form {
  display: grid;
  gap: 1rem;
}
.hm-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hm-ink);
}
.hm-form input, .hm-form textarea {
  width: 100%;
  border: 2px solid var(--hm-border-strong);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hm-form input:focus, .hm-form textarea:focus {
  border-color: var(--hm-blue);
  box-shadow: 0 0 0 4px rgba(0, 133, 190, 0.15);
}
.hm-form textarea {
  resize: vertical;
}
.hm-form .hm-btn {
  justify-self: start;
}

.hm-form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hm-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Newsletter form (homepage and download pop-up) */
.hm-newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hm-newsletter-form input[type=email] {
  flex: 1 1 14rem;
  border: 2px solid var(--hm-border-strong);
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  outline: none;
}
.hm-newsletter-form input[type=email]:focus {
  border-color: var(--hm-blue);
}

/* Beat the old global form styles in form.scss (they use !important) */
.hm-form input:not([type=submit]), .hm-form textarea, .hm-newsletter-form input:not([type=submit]), .hm-newsletter-form textarea {
  filter: none !important;
  font-size: 1rem !important;
  border: 2px solid var(--hm-border-strong) !important;
  background: var(--hm-surface);
  outline: none;
}
.hm-form input:not([type=submit]):focus, .hm-form textarea:focus, .hm-newsletter-form input:not([type=submit]):focus, .hm-newsletter-form textarea:focus {
  border-color: var(--hm-blue) !important;
}
.hm-form label, .hm-newsletter-form label {
  color: var(--hm-ink) !important;
}

/* Java pop-up */
.hm-modal .modal-content {
  border: none;
  background: var(--hm-surface);
  color: var(--hm-ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.hm-modal .modal-dialog {
  max-width: 640px;
  padding: 0 0.5rem;
}
.hm-modal.fade .modal-dialog {
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hm-modal.show .modal-dialog {
  transform: none;
}

.hm-modal-head {
  position: relative;
  padding: 2.25rem 1.75rem 1.5rem;
  background-color: #1b2733;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hm-modal-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 12, 20, 0.92), rgba(5, 12, 20, 0.45));
}
.hm-modal-head > * {
  position: relative;
}
.hm-modal-head h2 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}

.hm-modal-close {
  position: absolute !important;
  z-index: 5;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.hm-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.hm-seg {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.hm-seg button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.hm-seg button i {
  margin-right: 0.35rem;
}
.hm-seg button:hover {
  color: #fff;
}
.hm-seg button.active {
  background: var(--hm-surface);
  color: var(--hm-ink);
}

.hm-modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.hm-pane {
  animation: hm-pane-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes hm-pane-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hm-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.hm-steps li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--hm-ink);
}
.hm-steps span {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #18a6e0, var(--hm-blue-dark));
}
.hm-steps code {
  background: var(--hm-tint);
  color: var(--hm-ink);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.hm-file {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.8rem 0.8rem 0.9rem;
  border-radius: 16px;
  background: var(--hm-tint);
  border: 1px solid var(--hm-border);
}
@media (max-width: 479px) {
  .hm-file {
    flex-wrap: wrap;
  }
  .hm-file .hm-download-btn {
    width: 100%;
  }
}

.hm-file-icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--hm-blue);
  background: var(--hm-tint-blue);
}

.hm-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.hm-file-info strong {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  color: var(--hm-ink);
}
.hm-file-info small {
  color: var(--hm-muted);
  font-size: 0.82rem;
}

.hm-download-btn {
  flex: none;
  margin: 0 !important;
}

.hm-modal .hm-btn-outline.hm-btn-block {
  margin-top: 0.75rem;
}

.hm-fineprint {
  text-align: center;
  color: var(--hm-muted);
  font-size: 0.85rem;
  margin: 1.75rem 0 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hm-border);
}

.hm-thanks {
  text-align: center;
}
.hm-thanks h3 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  color: var(--hm-ink);
  margin: 0.75rem 0 0.4rem;
}
.hm-thanks > p {
  color: var(--hm-muted);
  margin: 0 0 1.25rem;
}
.hm-thanks .hm-newsletter-form {
  justify-content: center;
}

.hm-thanks-gif {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.hm-server {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: #1e2a36;
  border-bottom: 5px solid #121a22;
  color: #fff;
}
.hm-server .hm-btn {
  flex: none;
}

.hm-server-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hm-server-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.hm-server-ip {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.hm-server-status {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.hm-server-status.is-online::before, .hm-server-status.is-offline::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  background: #55FF55;
  box-shadow: 0 0 8px #55FF55;
}
.hm-server-status.is-offline::before {
  background: #FF5555;
  box-shadow: 0 0 8px #FF5555;
}

.hm-server-text {
  color: var(--hm-muted);
  font-size: 0.95rem;
  margin: 1rem 0 1.25rem;
}

/* One-time Java server pop-up (server-popup.html) */
.hm-server-popup .modal-dialog {
  max-width: 500px;
}
.hm-server-popup .hm-modal-head {
  padding-top: 7rem;
  overflow: hidden;
}
.hm-server-popup .hm-modal-head::before {
  z-index: 1;
  background: linear-gradient(to top, rgba(5, 12, 20, 0.85), rgba(5, 12, 20, 0) 70%);
}
.hm-server-popup .hm-modal-head > * {
  z-index: 2;
}

.hm-sp-video {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-sp-intro {
  color: var(--hm-ink);
  margin: 0 0 1.25rem;
}

.hm-sp-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
  border: 2px solid #808080;
  background: #000;
  color: #fff;
}

.hm-sp-icon {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  image-rendering: pixelated;
}

.hm-sp-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hm-sp-name {
  font-size: 1rem;
}

.hm-sp-motd {
  font-size: 0.9rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-sp-ping {
  flex: none;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #aaa;
}

.hm-sp-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 10px;
}
.hm-sp-bars i {
  width: 2px;
  background: #555;
}
.hm-sp-bars i:nth-child(1) {
  height: 2px;
}
.hm-sp-bars i:nth-child(2) {
  height: 4px;
}
.hm-sp-bars i:nth-child(3) {
  height: 6px;
}
.hm-sp-bars i:nth-child(4) {
  height: 8px;
}
.hm-sp-bars i:nth-child(5) {
  height: 10px;
}
.hm-sp-bars.is-online i {
  background: #55FF55;
}
.hm-sp-bars.is-offline i {
  background: #FF5555;
}

.hm-sp-address {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.hm-sp-address code {
  flex: 1;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--hm-ink);
  background: none;
  padding: 0;
}
.hm-sp-address .hm-btn {
  flex: none;
  margin: 0 !important;
  min-width: 6.5rem;
}

.hm-sp-how {
  color: var(--hm-muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}

.hm-options {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 576px) {
  .hm-options {
    grid-template-columns: 1fr 1fr;
  }
}

.hm-option {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 2px solid var(--hm-border);
  color: var(--hm-ink);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s ease;
}
.hm-option:hover {
  transform: translateY(-4px);
  border-color: var(--hm-blue);
  color: var(--hm-ink);
}
.hm-option strong {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-size: 1.05rem;
}
.hm-option > span:not(.hm-option-icon) {
  color: var(--hm-muted);
}
.hm-option em {
  font-style: normal;
  font-weight: 700;
  color: var(--hm-blue);
  margin-top: auto;
  padding-top: 0.4rem;
}

.hm-option-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--hm-tint);
  color: var(--hm-blue);
  margin-bottom: 0.3rem;
}

/* Newest map: one wide card on top of the maps list */
.hm-newest {
  grid-column: 1/-1;
  display: grid;
  border-radius: 18px;
  overflow: hidden;
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  box-shadow: var(--hm-card-shadow);
  color: var(--hm-ink);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
@media (min-width: 768px) {
  .hm-newest {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hm-newest .hm-newest-img {
    aspect-ratio: auto;
    position: relative;
  }
  .hm-newest .hm-newest-img::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
  .hm-newest .hm-newest-img img {
    position: absolute;
    inset: 0;
  }
}
@media (min-width: 1100px) {
  .hm-newest {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .hm-newest h2 {
    font-size: 2rem;
  }
  .hm-newest p {
    font-size: 0.98rem;
  }
  .hm-newest .hm-btn {
    margin-top: 1rem;
  }
}
.hm-newest:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 32, 0.16);
  color: var(--hm-ink);
}
.hm-newest:hover img {
  transform: scale(1.02);
}
.hm-newest:hover .hm-btn {
  transform: translateY(-2px) scale(1.05);
}
.hm-newest h2 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.6rem;
  color: var(--hm-ink);
}
.hm-newest p {
  color: var(--hm-muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.hm-newest .hm-btn {
  margin-top: 1.4rem;
  align-self: flex-start;
  white-space: nowrap;
}

.hm-newest-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--hm-tint);
}
.hm-newest-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hm-newest-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.4rem 1.75rem;
}
@media (min-width: 768px) {
  .hm-newest-body {
    padding: 2rem 2.5rem;
  }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .hm-newest-body {
    padding: 1.5rem 2rem 1.75rem;
  }
}

.hm-newest-tag {
  align-self: flex-start;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #7a4b00;
  background: #ffe9a8;
}
.hm-newest-tag i {
  color: #e0a100;
}

/* With series panels spanning the full row, let later cards fill any gap
   left before a panel, so no lonely card at in-between widths */
.hm-card-grid:has(.hm-series) {
  grid-auto-flow: row dense;
}

/* Map series on the maps list: a rounded panel in the grid (same width and
   spacing as the other cards) with the series' scenery behind it and the
   parts climbing up like parkour jumps (dashed jump arcs between them) */
.hm-series {
  grid-column: 1/-1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  padding: 1.75rem 1.25rem 2rem;
  color: #fff;
  background: #101a24;
}
@media (min-width: 768px) {
  .hm-series {
    padding: 2.25rem 2rem 2.5rem;
  }
}

.hm-series-bg {
  position: absolute;
  inset: -20px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.45) saturate(1.2);
}

.hm-series-head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}
.hm-series-head h2 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0.5rem;
  color: #fff;
}
.hm-series-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.hm-series-climb {
  display: grid;
  gap: 1rem;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -1.25rem;
  padding: 0.25rem 1.25rem 0.5rem;
  scroll-padding: 0 1.25rem;
  scrollbar-width: none;
}
.hm-series-climb::-webkit-scrollbar {
  display: none;
}
@media (min-width: 640px) {
  .hm-series-climb {
    grid-auto-columns: calc(50% - 0.5rem);
  }
}
@media (min-width: 768px) {
  .hm-series-climb {
    margin: 0 -2rem;
    padding: 0.25rem 2rem 0.5rem;
    scroll-padding: 0 2rem;
    gap: 1.5rem;
    grid-auto-columns: calc(50% - 0.75rem);
  }
}
@media (min-width: 1024px) {
  .hm-series-climb {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
    --jump-gap: clamp(3rem, 4.5vw, 5.5rem);
    gap: var(--jump-gap);
    align-items: end;
  }
  .hm-series-climb .hm-series-step {
    transform: translateY(calc(var(--step) * 1.75rem));
  }
  .hm-series-climb {
    padding-bottom: 3.5rem;
  }
}

.hm-series-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 1024px), (hover: hover) and (pointer: fine) {
  .hm-series-hint {
    display: none;
  }
}

.hm-series-nav {
  display: none;
  position: absolute;
  top: 1.75rem;
  right: 1.25rem;
  gap: 0.5rem;
  z-index: 2;
}
@media (min-width: 768px) {
  .hm-series-nav {
    top: 2.25rem;
    right: 2rem;
  }
}
.hm-series-nav button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.hm-series-nav button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}
.hm-series-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) and (max-width: 1023.98px) {
  .hm-series.is-scrollable .hm-series-nav {
    display: flex;
  }
  .hm-series.is-scrollable .hm-series-head {
    padding-right: 6.5rem;
  }
}
.hm-series-step {
  position: relative;
  scroll-snap-align: start;
}
.hm-series-step .hm-card {
  height: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: none;
}
.hm-series-step .hm-part {
  top: auto;
  bottom: -1.1rem;
  left: 1rem;
  min-width: 2.6rem;
  height: 2.6rem;
  font-size: 1.25rem;
  border-radius: 14px;
  background: var(--hm-blue);
  border-bottom: 4px solid var(--hm-blue-dark);
  z-index: 2;
}
.hm-series-step .hm-card-img {
  overflow: visible;
}
.hm-series-step .hm-card-img img {
  border-radius: 18px 18px 0 0;
}
.hm-series-step .hm-card-body {
  padding-top: 1rem;
}

.hm-jump {
  display: none;
  position: absolute;
  top: 14%;
  right: calc(var(--jump-gap, 3rem) * -1);
  width: var(--jump-gap, 3rem);
  height: calc(var(--jump-gap, 3rem) * 0.83);
  z-index: 3;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.hm-jump path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 3 6;
  animation: hm-dash 1.2s linear infinite;
}
@media (min-width: 1024px) {
  .hm-jump {
    display: block;
  }
}

@keyframes hm-dash {
  to {
    stroke-dashoffset: -18;
  }
}
@media (min-width: 1200px) {
  .hm-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hm-grid-head {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--hm-ink);
  margin: 3rem 0 1.25rem !important;
}

.hm-card-img {
  position: relative;
}

.hm-part {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: #0f1720;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Series list in the map page sidebar */
.hm-series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.hm-series-list a, .hm-series-list .is-current {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem;
  border-radius: 12px;
  color: var(--hm-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.hm-series-list a:hover {
  background: var(--hm-tint);
  transform: translateX(4px);
  color: var(--hm-ink);
}
.hm-series-list .is-current {
  background: var(--hm-tint-blue);
}
.hm-series-list img {
  width: 72px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}
.hm-series-list small {
  display: block;
  color: var(--hm-muted);
  font-weight: 400;
  font-size: 0.78rem;
}

/* Facts row on map cards: playtime, and a badge only when a map differs */
.hm-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hm-muted);
}
.hm-card-meta i {
  color: var(--hm-blue);
  margin-right: 0.15rem;
}
.hm-card-meta .hm-badge-soon, .hm-card-meta .hm-meta-only {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.hm-card-meta .hm-badge-soon {
  background: var(--hm-blue);
  color: #fff;
}
.hm-card-meta .hm-meta-only {
  background: var(--hm-java-bg);
  color: var(--hm-java-ink);
}

.hm-card .hm-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hm-card .hm-card-meta {
  margin-top: auto;
  padding-top: 0.85rem;
}

.hm-newest .hm-card-meta {
  margin-top: 0;
}

/* Roblox link in a series panel */
.hm-roblox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.hm-roblox:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

/* Community maps: a banner at the end of the maps list */
.hm-community {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.5rem;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: var(--hm-tint);
  color: var(--hm-ink);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.hm-community span {
  flex: 1;
  color: var(--hm-muted);
}
.hm-community strong {
  color: var(--hm-ink);
  font-family: "Outfit", "Open Sans", sans-serif;
  margin-right: 0.25rem;
}
.hm-community > i {
  color: var(--hm-blue);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hm-community:hover {
  color: var(--hm-ink);
  background: var(--hm-tint-blue);
  transform: translateY(-2px);
}
.hm-community:hover > i {
  transform: translateX(4px);
}

/* "More coming soon" placeholder card in a list */
.hm-card-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  min-height: 260px;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  border: 2px dashed var(--hm-border-strong);
  color: var(--hm-muted);
}
.hm-card-soon h3 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--hm-ink);
  margin: 0.4rem 0 0;
}
.hm-card-soon p {
  margin: 0;
  max-width: 18rem;
}
.hm-card-soon a {
  color: var(--hm-blue);
  font-weight: 700;
  text-decoration: none;
}
.hm-card-soon a:hover {
  text-decoration: underline;
}

.hm-card-soon-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--hm-blue);
  background: var(--hm-tint-blue);
  animation: hm-soon-bob 2.4s ease-in-out infinite;
}

@keyframes hm-soon-bob {
  0%, 100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
  }
}
/* Small label on a card image, e.g. "New" or "Most popular" */
.hm-card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: "Outfit", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a4b00;
  background: #ffe9a8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hm-card-tag i {
  font-size: 0.85em;
  margin-right: 0.15rem;
}

.hm-card-tag-new {
  color: #fff;
  background: #1f9d55;
}

.hm-card-tag-most-popular {
  color: #fff;
  background: #e8590c;
}

/* All white cards get the same soft shadow so they lift off the page */
.hm-news-card, .hm-news-featured, .hm-newest, .hm-panel {
  box-shadow: var(--hm-card-shadow);
}

/* Jumping to a section (e.g. the scroll-down arrow) leaves room for the fixed menu bar */
.hm-section[id], .hm-newsletter[id] {
  scroll-margin-top: 4.5rem;
}

/* Phones: tighter spacing, and lists of maps and news as compact rows
   (small picture on the left, text on the right) instead of tall cards */
@media (max-width: 639.98px) {
  .hm-section, .hm-section-tint {
    padding: 2.25rem 0;
  }
  .hm-page-body {
    padding-top: 1.75rem;
  }
  .hm-section-flush {
    padding-top: 1.25rem;
  }
  .hm-prose {
    font-size: 1rem;
  }
  .hm-prose p {
    line-height: 1.6;
  }
  .hm-prose p:first-child {
    font-size: 1.08rem;
  }
  .hm-section-head {
    margin-bottom: 1.1rem;
  }
  .hm-grid-head {
    margin: 2.25rem 0 1rem !important;
  }
  .hm-card-grid, .hm-news-grid {
    gap: 0.75rem;
  }
  .hm-card-grid > .hm-card,
  .hm-news-grid > .hm-news-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    border-radius: 16px;
  }
  .hm-card-grid > .hm-card:hover, .hm-card-grid > .hm-card:nth-child(even):hover,
  .hm-news-grid > .hm-news-card:hover,
  .hm-news-grid > .hm-news-card:nth-child(even):hover {
    transform: none;
  }
  .hm-card-grid > .hm-card {
    grid-template-columns: 46% 1fr;
    align-items: center;
  }
  .hm-card-grid > .hm-card .hm-card-img {
    aspect-ratio: auto;
    align-self: stretch;
    min-width: 0;
  }
  .hm-card-grid > .hm-card .hm-card-img::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
  .hm-card-grid > .hm-card .hm-card-img img {
    position: absolute;
    inset: 0;
  }
  .hm-card-grid > .hm-card .hm-badges span {
    font-size: 0.6rem;
    padding: 0.12rem 0.45rem;
  }
  .hm-card-grid > .hm-card .hm-card-body {
    padding: 0.55rem 0.8rem;
    justify-content: center;
  }
  .hm-card-grid > .hm-card h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
  }
  .hm-card-grid > .hm-card p {
    display: none;
  }
  .hm-card-grid > .hm-card .hm-card-meta {
    font-size: 0.78rem;
    padding-top: 0.3rem;
    margin-top: 0;
  }
  .hm-card-grid > .hm-card .hm-card-tag {
    top: 0.4rem;
    left: 0.4rem;
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
  }
  .hm-news-grid > .hm-news-card .hm-news-img {
    aspect-ratio: auto;
    min-height: 100%;
    position: relative;
  }
  .hm-news-grid > .hm-news-card .hm-news-img img {
    position: absolute;
    inset: 0;
  }
  .hm-news-grid > .hm-news-card .hm-news-body {
    padding: 0.75rem 0.85rem 0.8rem;
  }
  .hm-news-grid > .hm-news-card time {
    font-size: 0.68rem;
  }
  .hm-news-grid > .hm-news-card h3 {
    font-size: 1rem;
    margin: 0.15rem 0 0.25rem;
  }
  .hm-news-grid > .hm-news-card p {
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hm-news-grid > .hm-news-card .hm-comment-count {
    font-size: 0.78rem;
    padding-top: 0.4rem;
  }
  .hm-series {
    padding: 1.4rem 1.1rem 1.5rem;
  }
  .hm-series-head {
    margin-bottom: 1rem;
  }
  .hm-series-head h2 {
    font-size: 1.75rem;
  }
  .hm-series-head p {
    font-size: 0.92rem;
  }
  .hm-series-climb {
    margin: 0 -1.1rem;
    padding: 0.25rem 1.1rem 0.5rem;
    scroll-padding: 0 1.1rem;
    gap: 0.75rem;
    grid-auto-columns: 72%;
  }
  .hm-series-step .hm-card-body {
    padding: 0.9rem 1rem 1rem;
  }
  .hm-newest-body {
    padding: 1.1rem 1.1rem 1.3rem;
  }
  .hm-newest .hm-btn {
    margin-top: 1rem;
  }
  .hm-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .hm-gallery-item:first-child {
    grid-column: 1/-1;
  }
}
/* Download buttons on phones and tablets: Bedrock is the main one there,
   Java moves into a ⋯ menu next to it */
.hm-cta-more, .hm-cta-split .hm-touch-only {
  display: none;
}

.hm-cta-more > .hm-btn {
  padding-left: 1.05rem;
  padding-right: 1.05rem;
  height: 100%;
}

.hm-menu {
  border-radius: 14px;
  border: 1px solid var(--hm-border);
  background: var(--hm-surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 0.35rem;
  min-width: 12rem;
}
.hm-menu .dropdown-item {
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  color: var(--hm-ink);
}
.hm-menu .dropdown-item i {
  color: var(--hm-blue);
  margin-right: 0.35rem;
}
.hm-menu .dropdown-item:hover, .hm-menu .dropdown-item:active {
  background: var(--hm-tint);
  color: var(--hm-ink);
}

@media (hover: none) and (pointer: coarse) {
  .hm-cta-split {
    flex-wrap: nowrap;
  }
  .hm-cta-split .hm-cta-java {
    display: none;
  }
  .hm-cta-split .hm-cta-more {
    display: block;
    flex: none;
  }
  .hm-cta-split .hm-touch-only {
    display: inline;
  }
  .hm-cta-split .hm-cta-bedrock {
    flex: 0 1 auto;
    background: var(--hm-blue);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 133, 190, 0.35);
    backdrop-filter: none;
  }
}
@media (hover: none) and (pointer: coarse) and (max-width: 575px) {
  .hm-cta-split .hm-cta-bedrock {
    flex: 1 1 auto;
  }
}
/* Pop-ups on phones: a sheet that slides up from the bottom, full width,
   scrolls on its own, with everything a bit more compact */
@media (max-width: 575.98px) {
  .hm-modal .modal-dialog,
  .hm-modal .modal-dialog.modal-dialog-centered {
    margin: 0;
    padding: 0;
    max-width: none;
    min-height: 100%;
    align-items: flex-end;
  }
  .hm-modal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  .hm-modal.show .modal-dialog {
    transform: none;
  }
  .hm-modal .modal-content {
    position: relative;
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .hm-modal .modal-content::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 50%;
    width: 2.5rem;
    height: 0.3rem;
    margin-left: -1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 3;
  }
  .hm-modal-head {
    padding: 1.6rem 1.25rem 1.1rem;
  }
  .hm-modal-head .hm-kicker {
    font-size: 0.7rem;
    padding-right: 2.5rem;
  }
  .hm-modal-head h2 {
    font-size: 1.55rem;
    padding-right: 2.5rem;
  }
  .hm-run-modal .modal-content {
    display: flex;
    flex-direction: column;
    overflow: visible;
    max-height: calc(100vh - 3.75rem);
    max-height: calc(100dvh - 3.75rem);
  }
  .hm-run-modal .modal-content::before {
    display: none;
  }
  .hm-run-modal .hm-run-video {
    flex: none;
    border-radius: 22px 22px 0 0;
  }
  .hm-run-modal .hm-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .hm-run-modal .hm-modal-close {
    top: -2.75rem;
    right: 0.75rem;
  }
  .hm-modal-close {
    top: 1.1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  .hm-seg {
    display: flex;
    width: 100%;
    margin-top: 1rem;
  }
  .hm-seg button {
    flex: 1 1 0;
    white-space: nowrap;
    font-size: 0.92rem;
    padding: 0.55rem 0.5rem;
  }
  .hm-modal-body {
    padding: 1.2rem 1.25rem 1.4rem;
  }
  .hm-steps {
    gap: 0.65rem;
    margin-bottom: 1.15rem;
  }
  .hm-steps li {
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.45;
    gap: 0.75rem;
  }
  .hm-steps span {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
  }
  .hm-steps code {
    font-size: 0.82em;
    white-space: nowrap;
  }
  .hm-file {
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.6rem 0.75rem;
  }
  .hm-file .hm-download-btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  .hm-file-icon {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
  }
  .hm-fineprint {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    font-size: 0.8rem;
  }
  .hm-server {
    padding: 0.95rem 1rem 1rem;
    gap: 0.8rem;
  }
  .hm-server .hm-btn {
    width: 100%;
    padding: 0.7rem 1rem;
  }
  .hm-server-ip {
    font-size: 1.2rem;
  }
  .hm-server-text {
    font-size: 0.9rem;
    margin: 0.85rem 0 1rem;
  }
  .hm-options {
    gap: 0.6rem;
  }
  .hm-option {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.85rem;
    row-gap: 0.1rem;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
  .hm-option > * {
    grid-column: 2;
  }
  .hm-option > .hm-option-icon {
    grid-column: 1;
    grid-row: 1/span 3;
    align-self: start;
  }
  .hm-option strong {
    font-size: 1rem;
  }
  .hm-option em {
    padding-top: 0.25rem;
  }
  .hm-option:hover {
    transform: none;
  }
}
/* Fastest time card as one slim row (trophy, time and runner, round play button):
   on phones, and in the map page sidebar on wide screens */
@media (max-width: 575.98px) {
  .hm-record {
    grid-template-columns: auto 1fr auto;
    border-radius: 16px;
  }
  .hm-record-icon {
    padding: 0 0.95rem;
    font-size: 1.25rem;
  }
  .hm-record-info {
    padding: 0.65rem 0.5rem 0.7rem 0.9rem;
  }
  .hm-record-label {
    font-size: 0.68rem;
  }
  .hm-record-time {
    font-size: 1.6rem;
  }
  .hm-record-time sup {
    font-size: 0.7rem;
  }
  .hm-record-by {
    margin-top: 0.15rem;
    padding: 0;
    background: none;
    font-size: 0.75rem;
  }
  .hm-record-by #record_author_name {
    font-size: 0.95rem;
  }
  .hm-record-watch {
    grid-column: auto;
    border-top: none;
    border-left: none;
    background: none;
    padding: 0 0.9rem 0 0.25rem;
  }
  .hm-record-watch i {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    padding-left: 0.15rem;
    color: #fff;
    background: var(--hm-blue);
  }
  .hm-record-watch #record_cta {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .hm-record:hover .hm-record-watch {
    background: none;
  }
}
.hm-detail-side .hm-record {
  grid-template-columns: auto 1fr auto;
  border-radius: 16px;
}
.hm-detail-side .hm-record-icon {
  padding: 0 0.95rem;
  font-size: 1.25rem;
}
.hm-detail-side .hm-record-info {
  padding: 0.65rem 0.5rem 0.7rem 0.9rem;
}
.hm-detail-side .hm-record-label {
  font-size: 0.68rem;
}
.hm-detail-side .hm-record-time {
  font-size: 1.6rem;
}
.hm-detail-side .hm-record-time sup {
  font-size: 0.7rem;
}
.hm-detail-side .hm-record-by {
  margin-top: 0.15rem;
  padding: 0;
  background: none;
  font-size: 0.75rem;
}
.hm-detail-side .hm-record-by #record_author_name {
  font-size: 0.95rem;
}
.hm-detail-side .hm-record-watch {
  grid-column: auto;
  border-top: none;
  border-left: none;
  background: none;
  padding: 0 0.9rem 0 0.25rem;
}
.hm-detail-side .hm-record-watch i {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  padding-left: 0.15rem;
  color: #fff;
  background: var(--hm-blue);
}
.hm-detail-side .hm-record-watch #record_cta {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hm-detail-side .hm-record:hover .hm-record-watch {
  background: none;
}
.hm-detail-side .hm-record-wrap {
  margin-top: -1.5rem;
}
.hm-detail-side .hm-record-clip {
  padding-top: 1.5rem;
}

.hm-record-side, .hm-record-home {
  display: none;
}

/* Map page: once the sidebar drops under the text, skip the Map info card
   (it repeats what the page already shows) so the screenshots come sooner */
@media (max-width: 991.98px) {
  .hm-panel-info {
    display: none;
  }
}
/* Speedrun sheet on phones: everything a size smaller, so it fits without scrolling */
@media (max-width: 575.98px) {
  .hm-run-modal .hm-modal-body {
    padding: 0.85rem 1rem 1rem;
  }
  .hm-run-modal .hm-kicker {
    font-size: 0.68rem;
  }
  .hm-run-modal .hm-run-title {
    font-size: 1.55rem;
    margin: 0.1rem 0 0;
  }
  .hm-run-modal .hm-run-title small {
    font-size: 0.85rem;
  }
  .hm-run-modal .hm-run-title #run_player {
    font-size: 1rem;
  }
  .hm-run-modal .hm-run-meta {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  .hm-run-modal .hm-run-subhead {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
  }
  .hm-run-modal .hm-run-list {
    gap: 0.3rem;
    margin-bottom: 0.85rem;
  }
  .hm-run-modal .hm-run-list li {
    grid-template-columns: 1.6rem 1fr auto 1rem;
    gap: 0.6rem;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    border-radius: 10px;
    font-size: 0.92rem;
  }
  .hm-run-modal .hm-run-place {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 7px;
    font-size: 0.85rem;
  }
  .hm-run-modal .hm-run-actions {
    gap: 0.4rem;
  }
  .hm-run-modal .hm-run-actions .hm-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  .hm-run-modal .hm-run-src {
    font-size: 0.78rem;
    margin-top: 0.1rem;
  }
}
@media (max-width: 575.98px) and (max-height: 660px) {
  .hm-run-modal .hm-kicker {
    display: none;
  }
  .hm-run-modal .hm-run-meta {
    margin-bottom: 0.5rem;
  }
  .hm-run-modal .hm-run-list {
    margin-bottom: 0.65rem;
  }
  .hm-run-modal .hm-run-list li {
    padding-top: 0.22rem;
    padding-bottom: 0.22rem;
  }
}
/* Java sheet on phones: tighter, so both tabs fit on one screen */
@media (max-width: 575.98px) {
  #javaModal .hm-modal-head {
    padding: 1.35rem 1rem 0.85rem;
  }
  #javaModal .hm-modal-head h2 {
    font-size: 1.35rem;
  }
  #javaModal .hm-kicker {
    font-size: 0.65rem;
  }
  #javaModal .hm-seg {
    margin-top: 0.75rem;
    padding: 0.25rem;
  }
  #javaModal .hm-seg button {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }
  #javaModal .hm-modal-body {
    padding: 0.9rem 1rem 1rem;
  }
  #javaModal .hm-steps {
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }
  #javaModal .hm-steps li {
    font-size: 0.88rem;
    gap: 0.6rem;
  }
  #javaModal .hm-steps span {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.78rem;
    border-radius: 7px;
  }
  #javaModal .hm-file {
    padding: 0.6rem;
    gap: 0.5rem 0.65rem;
    border-radius: 14px;
  }
  #javaModal .hm-file .hm-download-btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  #javaModal .hm-file-icon {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
    border-radius: 10px;
  }
  #javaModal .hm-file-info strong {
    font-size: 0.95rem;
  }
  #javaModal .hm-file-info small {
    font-size: 0.75rem;
  }
  #javaModal .hm-fineprint {
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    font-size: 0.75rem;
  }
  #javaModal .hm-server {
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding: 0.7rem 0.7rem 0.75rem 0.9rem;
    border-radius: 14px;
    border-bottom-width: 4px;
  }
  #javaModal .hm-server .hm-btn {
    width: auto;
    flex: none;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
  }
  #javaModal .hm-server-info {
    min-width: 0;
  }
  #javaModal .hm-server-label {
    font-size: 0.62rem;
    white-space: nowrap;
  }
  #javaModal .hm-wide-only {
    display: none;
  }
  #javaModal .hm-server-ip {
    font-size: 1.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #javaModal .hm-server-status {
    font-size: 0.75rem;
  }
  #javaModal .hm-server-text {
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0.6rem 0 0.75rem;
  }
  #javaModal .hm-options {
    gap: 0.45rem;
  }
  #javaModal .hm-option {
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    column-gap: 0.7rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }
  #javaModal .hm-option strong {
    font-size: 0.92rem;
  }
  #javaModal .hm-option em {
    padding-top: 0.15rem;
    font-size: 0.82rem;
  }
  #javaModal .hm-option-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin: 0.1rem 0 0;
  }
}
/* iPhone SE pass: phones get everything a size smaller where it was simply too big */
@media (max-width: 575.98px) {
  .hm-panel-info {
    display: none;
  }
  .hm-rank-title {
    margin-top: 1.75rem !important;
  }
  .hm-post p:first-child {
    font-size: 1.02rem;
  }
  .hm-prose {
    font-size: 0.95rem;
  }
  .hm-prose p:first-child {
    font-size: 1rem;
  }
  .hm-prose li {
    margin-bottom: 0.35rem;
  }
  .hm-prose h2, .hm-prose h3, .hm-prose h4, .hm-prose h5, .hm-prose h6 {
    margin: 1.5rem 0 0.5rem;
  }
  .hm-prose h5 {
    font-size: 1.1rem;
  }
  .hm-detail-hero h1 {
    font-size: 2rem;
  }
  .hm-page-hero {
    padding: 5.5rem 0 1.5rem;
  }
  .hm-page-hero-sub {
    font-size: 1rem;
  }
  .hm-section h2, .hm-newsletter h2 {
    font-size: 1.6rem;
  }
  .hm-grid-head {
    font-size: 1.5rem;
  }
  .hm-newest h2 {
    font-size: 1.55rem;
    margin: 0.45rem 0 0.35rem;
  }
  .hm-newest p {
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
  }
  .hm-newest .hm-btn {
    margin-top: 0.85rem;
    font-size: 0.92rem;
    padding: 0.6rem 1.15rem;
  }
  .hm-newest-tag {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }
  .hm-series-head h2 {
    font-size: 1.5rem;
  }
  .hm-series-head p {
    font-size: 0.85rem;
  }
  .hm-series-hint {
    font-size: 0.78rem;
  }
  .hm-series-step .hm-card-body {
    padding: 0.75rem 0.85rem 0.85rem;
  }
  .hm-series-step h3 {
    font-size: 1rem;
  }
  .hm-series-step p {
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .hm-series-step .hm-card-meta {
    font-size: 0.78rem;
  }
  .hm-series-step .hm-part {
    min-width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
    border-radius: 11px;
    bottom: -0.9rem;
  }
  .hm-contact-card .hm-form {
    padding: 1.25rem 1.1rem 1.4rem;
  }
  .hm-contact-card h2 {
    font-size: 1.45rem;
  }
  .hm-contact-intro {
    font-size: 0.92rem;
  }
  .hm-form input, .hm-form textarea {
    padding: 0.5rem 0.8rem;
    font-size: 16px !important;
  }
  .hm-form textarea {
    min-height: 7.5rem !important;
    height: 7.5rem;
  }
  .hm-form label {
    font-size: 0.92rem;
  }
  .hm-contact-art {
    min-height: 160px;
  }
  .hm-discord-banner {
    padding: 1rem 1.1rem;
  }
  .hm-discord-banner .fa-discord {
    font-size: 1.6rem;
  }
  .hm-btn {
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
  }
}
/* Tablets: the speedrun pop-up is nearly screen-sized there, so it is a bottom sheet too
   (same as on phones; the Java pop-up stays a centred card) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hm-modal.hm-run-modal .modal-dialog,
  .hm-modal.hm-run-modal .modal-dialog.modal-dialog-centered {
    margin: 0;
    padding: 0;
    max-width: none;
    min-height: 100%;
    align-items: flex-end;
  }
  .hm-modal.hm-run-modal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  .hm-modal.hm-run-modal.show .modal-dialog {
    transform: none;
  }
  .hm-modal.hm-run-modal .modal-content {
    display: flex;
    flex-direction: column;
    border-radius: 24px 24px 0 0;
    max-height: calc(100vh - 3.75rem);
    max-height: calc(100dvh - 3.75rem);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .hm-modal.hm-run-modal .hm-run-video {
    flex: none;
  }
  .hm-modal.hm-run-modal .hm-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .hm-modal.hm-run-modal .hm-modal-close {
    top: -2.85rem;
    right: 1rem;
  }
}
/* Hidden line in a news post: invisible until you select the text */
.hm-secret {
  color: transparent;
  user-select: text;
  margin-top: 2rem;
}

.hm-secret::selection {
  color: #fff;
  background: var(--hm-blue);
}