@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./font-54d9a78b7ff6.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;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./font-06b16db7a969.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;
}
.hmv2 *,
.hmv2 ::before,
.hmv2 ::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

.hmv2 button,
.hmv2 input,
.hmv2 select {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  letter-spacing: inherit;
}
.hmv2 button {
  background: transparent;
}
.hmv2 button,
.hmv2 select {
  text-transform: none;
}
.hmv2 canvas,
.hmv2 img,
.hmv2 svg {
  display: block;
  vertical-align: middle;
}
.hmv2 svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.hmv2 img {
  max-width: 100%;
  height: auto;
}
.hmv2 [hidden] {
  display: none !important;
}
.hmv2 {
  color-scheme: dark;
  --page: #1b2335;
  --nav: #0f1729;
  --text: #e4e8f2;
  --muted: #9ba9c1;
  --line: #ffffff10;
  --header-accent: #6163f7;
  --hero-art: url("../images/banner-sakura-indigo.webp?v=2.0.4");
  --hero-title: #f8f9ff;
  --scene-grade: brightness(0.6) saturate(1.52) contrast(1.23);
  --scene-wash:
    radial-gradient(
      ellipse at 52% 16%,
      rgba(56, 103, 205, 0.045),
      transparent 68%
    ),
    linear-gradient(
      110deg,
      rgba(12, 40, 103, 0.32),
      rgba(24, 69, 156, 0.22) 52%,
      rgba(12, 36, 94, 0.34)
    );
  --copy-shade: #102c5966;
  --header-rule: rgba(255, 255, 255, 0.05);
  --title-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  --scene-overlay-mask: linear-gradient(
    90deg,
    #0006 0%,
    #0008 22%,
    #000 38%,
    #000 62%,
    #0008 78%,
    #0006 100%
  );
  --fx-opacity: 1;
}
.hmv2 * {
  box-sizing: border-box;
}

.hmv2 a {
  color: inherit;
  text-decoration: none;
}
.hmv2 button,
.hmv2 input {
  font: inherit;
}
.hmv2 button {
  cursor: pointer;
  color: inherit;
}
.hmv2 button:focus-visible,
.hmv2 a:focus-visible,
.hmv2 input:focus-visible {
  outline: 2px solid #aaa7ff;
  outline-offset: 4px;
}
.hmv2 h1,
.hmv2 h2,
.hmv2 h3,
.hmv2 p {
  margin: 0;
}
.hmv2 .svg-defs {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden;
  pointer-events: none;
}
.hmv2 .stage {
  width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--header-rule);
  background: var(--nav);
  height: var(--responsive-banner-height, var(--banner-height, 240px));
}
.hmv2 .scene {
  position: absolute;
  inset: 0;
}
.hmv2 .stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: var(--fx-opacity);
}
.hmv2 .hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hmv2 .hero-copy {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
  text-align: center;
  --shade-x: 50%;
  inset: 0;
  top: 0;
  transform: none;
  min-height: 0;
  padding: 24px clamp(24px, 5vw, 96px);
  gap: 10px;
  background: radial-gradient(
    ellipse 56% 85% at var(--shade-x) 50%,
    var(--copy-shade),
    transparent 80%
  );
  border: 0;
}
.hmv2 .hero-copy h1 {
  font:
    800 var(--hero-title-size, 36px) / 1.05 var(--hmv2-heading-font, inherit),
    var(--hmv2-ui-font, sans-serif);
  color: var(--hero-title);
  letter-spacing: 1.2px;
  text-shadow: var(--title-shadow);
}
.hmv2 .hero-copy p {
  font:
    800 var(--hero-subtitle-size, 11px) / 1.5 var(--hmv2-heading-font, inherit),
    var(--hmv2-ui-font, sans-serif);
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  letter-spacing: var(--hero-subtitle-tracking, 2px);
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
.hmv2.hide-copy .hero-copy {
  display: none;
}
.hmv2.bare .scene {
  opacity: 0;
}
.hmv2 .quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
}
.hmv2 .quick-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  min-height: 36px;
  color: #d2d6ee;
}
.hmv2 .quick-links svg {
  width: 19px;
  height: 19px;
  color: #b3b2ef;
}

:root:not(.dark) .hmv2 {
  color-scheme: light;
  --page: #eff1f7;
  --nav: #fff;
  --text: #202840;
  --muted: #65728a;
  --line: #18285116;
  --hero-title: #1c2949;
  --scene-grade: brightness(0.96) saturate(1.17) contrast(1.24);
  --scene-wash: linear-gradient(110deg, #233c5910, transparent 55%, #293c5910);
  --copy-shade: #f1f3ff1a;
  --header-rule: rgba(23, 37, 65, 0.08);
  --title-shadow: 0 1px 8px rgba(23, 37, 65, 0.06);
  --scene-overlay-mask: none;
}
:root:not(.dark) .hmv2 .quick-links a {
  color: #424a67;
}
@media (hover: hover) and (pointer: fine) {
  .hmv2 .quick-links a:hover {
    filter: brightness(1.15);
  }
}
@media (max-width: 700px) {
  .hmv2 .scene {
    background-size: auto 100%;
    background-position: 23% center;
  }
  .hmv2 .quick-links {
    padding-inline: 12px;
  }
  .hmv2 .quick-links a {
    font-size: 10px;
    gap: 6px;
  }
  .hmv2 .quick-links svg {
    width: 17px;
    height: 17px;
  }
}
@media (max-width: 350px) {
  .hmv2 .quick-links {
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hmv2 * {
    transition: none !important;
    animation: none !important;
  }
}
.hmv2 .hero-copy[data-align="left"] {
  align-items: flex-start;
  text-align: left;
}
.hmv2 .hero-copy[data-align="right"] {
  align-items: flex-end;
  text-align: right;
}
.hmv2 .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scene-wash);
  pointer-events: none;
}
.hmv2 .hero-copy[data-align="left"] {
  --shade-x: 12%;
  padding-inline: clamp(24px, 5vw, 96px);
}
.hmv2 .hero-copy[data-align="right"] {
  --shade-x: 88%;
  padding-inline: clamp(24px, 5vw, 96px);
}
@media (max-width: 700px) {
  .hmv2 .hero-copy {
    min-height: 0;
    padding-block: 22px;
    background: radial-gradient(
      ellipse 100% 75% at var(--shade-x) 50%,
      var(--copy-shade),
      transparent 85%
    );
  }
  .hmv2 .hero-copy[data-align="left"],
  .hmv2 .hero-copy[data-align="right"] {
    padding-inline: 24px;
  }
}
.hmv2 .scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-art) center 50% / cover no-repeat;
  filter: var(--scene-grade);
}
.hmv2 .hero-vignette {
  background:
    linear-gradient(
      to top,
      var(--nav) 0%,
      color-mix(in srgb, var(--nav) 96%, transparent) 4%,
      color-mix(in srgb, var(--nav) 74%, transparent) 11%,
      color-mix(in srgb, var(--nav) 38%, transparent) 21%,
      color-mix(in srgb, var(--nav) 10%, transparent) 31%,
      transparent 42%
    ),
    linear-gradient(to bottom, #0f172938, transparent 36%);
}
:root:not(.dark) .hmv2 .hero-vignette {
  background: linear-gradient(
    to top,
    var(--nav) 0%,
    color-mix(in srgb, var(--nav) 90%, transparent) 2%,
    color-mix(in srgb, var(--nav) 55%, transparent) 7%,
    color-mix(in srgb, var(--nav) 20%, transparent) 14%,
    color-mix(in srgb, var(--nav) 4%, transparent) 24%,
    transparent 34%
  );
}
.hmv2 .sky-warriors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--characters-opacity, 1);
  filter: grayscale(0.1) saturate(1.04);
}
.hmv2 .sky-warriors::before,
.hmv2 .sky-warriors::after {
  content: "";
  position: absolute;
  bottom: 0;
  transform: translateY(17.6%);
  width: 35%;
  aspect-ratio: 3/2;
  background-image: url("../images/legacy-warriors.webp?v=2.0.4");
  background-size: 200% auto;
  background-repeat: no-repeat;
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 62%,
    #000e 69%,
    #0007 77%,
    transparent 82.4%
  );
}
.hmv2 .sky-warriors::before {
  left: 12.5%;
  background-position: left top;
}
.hmv2 .sky-warriors::after {
  right: 12.5%;
  background-position: right top;
}
:root:not(.dark) .hmv2 .sky-warriors {
  filter: saturate(0.78);
}
.hmv2.bare .sky-warriors {
  display: none;
}
@media (max-width: 700px) {
  .hmv2 .sky-warriors::before,
  .hmv2 .sky-warriors::after {
    width: 66%;
  }
  .hmv2 .sky-warriors::before {
    left: -11%;
  }
  .hmv2 .sky-warriors::after {
    right: -11%;
  }
}
.hmv2 .quick-links {
  flex-wrap: wrap;
  gap: 8px clamp(16px, 2.7vw, 40px);
}
.hmv2 .quick-tools {
  position: relative;
}
.hmv2 .quick-tools > button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 500;
  color: #d2d6ee;
}
.hmv2 .quick-tools .tools-chevron {
  width: 13px;
  height: 13px;
}
:root:not(.dark) .hmv2 .quick-tools > button {
  color: #424a67;
}
.hmv2 .quick-tools-menu {
  position: absolute;
  top: 100%;
  right: -12px;
  min-width: 192px;
  padding: 6px;
  background: var(--nav);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px #0003;
  z-index: 10;
}
.hmv2 .quick-tools-menu[hidden] {
  display: none;
}
.hmv2 .quick-tools-menu a {
  padding: 9px 12px;
  min-height: 40px;
  border-radius: 5px;
  white-space: nowrap;
}
.hmv2 .quick-tools-menu a:hover,
.hmv2 .quick-tools-menu a:focus-visible {
  background: #6163f71c;
  color: var(--text);
  filter: none;
}
@media (max-width: 900px) {
  .hmv2 .quick-tools > button {
    font-size: 10px;
    gap: 6px;
  }
}
@media (max-width: 700px) {
  .hmv2 .quick-tools-menu {
    right: 0;
  }
}
.hmv2 .quick-activity {
  position: relative;
}
.hmv2 .quick-activity > button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 500;
  color: #d2d6ee;
}
.hmv2 .quick-activity .activity-chevron {
  width: 13px;
  height: 13px;
}
:root:not(.dark) .hmv2 .quick-activity > button {
  color: #424a67;
}
.hmv2 .activity-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  width: 574px;
  max-width: calc(100vw - 24px);
  padding: 16px 20px 10px;
  border: 1px solid #93a2d12b;
  border-radius: 16px;
  background: #121d32;
  box-shadow: 0 18px 44px #02071440;
  color: #e9edf9;
  z-index: 10;
  text-align: left;
}
.hmv2 .activity-panel[hidden] {
  display: none;
}
.hmv2 .activity-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  margin-bottom: 12px;
}
.hmv2 .activity-welcome img {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid #a9b5df38;
  background: #252e4e;
}
.hmv2 .activity-welcome strong {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.hmv2 .activity-welcome strong span {
  color: #ff526b;
}
.hmv2 .activity-welcome time {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  color: #b8c3dc;
}
.hmv2 .activity-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.hmv2 .quick-links .activity-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 0;
  border-top: 1px solid #a5b3da26;
  color: #d3dbee;
  font-size: 13px;
  line-height: 1.4;
}
.hmv2 .quick-links .activity-stat svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: #bfc2ff;
}
.hmv2 .activity-stat span {
  min-width: 0;
}
.hmv2 .activity-stat b {
  margin-left: auto;
  padding-left: 8px;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: #f0f2ff;
  font-variant-numeric: tabular-nums;
}
.hmv2 .activity-demo {
  display: block;
  text-align: right;
  color: #8190b0;
  font-size: 9px;
  margin-top: 5px;
}
.hmv2 .quick-links .activity-stat:hover,
.hmv2 .quick-links .activity-stat:focus-visible {
  color: #fff;
  filter: none;
}
:root:not(.dark) .hmv2 .activity-panel {
  background: #fff;
  border-color: #dce1ee;
  color: #202840;
  box-shadow: 0 16px 40px #26345c20;
}
:root:not(.dark) .hmv2 .activity-welcome strong span {
  color: #d93453;
}
:root:not(.dark) .hmv2 .activity-welcome time {
  color: #65728a;
}
:root:not(.dark) .hmv2 .quick-links .activity-stat {
  color: #495570;
  border-color: #26365c1c;
}
:root:not(.dark) .hmv2 .activity-stat b {
  color: #202840;
}
:root:not(.dark) .hmv2 .activity-stat svg {
  color: #6163f7;
}
:root:not(.dark) .hmv2 .activity-demo {
  color: #75819b;
}
:root:not(.dark) .hmv2 .quick-links .activity-stat:hover {
  color: #4345c4;
}
@media (max-width: 900px) {
  .hmv2 .quick-activity > button {
    font-size: 10px;
    gap: 6px;
  }
}
@media (max-width: 700px) {
  .hmv2 .quick-activity {
    position: static;
  }
  .hmv2 .activity-panel {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    top: calc(100% - 1px);
  }
  .hmv2 .activity-welcome strong {
    font-size: 13px;
  }
  .hmv2 .activity-welcome time {
    font-size: 10px;
  }
  .hmv2 .activity-stats {
    column-gap: 16px;
  }
  .hmv2 .quick-links .activity-stat {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .hmv2 .activity-panel {
    padding: 14px 16px 10px;
  }
  .hmv2 .activity-welcome {
    flex-wrap: wrap;
  }
  .hmv2 .activity-welcome time {
    margin-left: 44px;
    margin-top: -7px;
    width: 100%;
  }
  .hmv2 .activity-stats {
    grid-template-columns: 1fr;
  }
  .hmv2 .activity-demo {
    margin-top: 8px;
  }
}
:root:not(.dark) .hmv2 .hero-copy p {
  color: color-mix(in srgb, var(--hero-title) 85%, transparent);
  text-shadow: none;
}
.hmv2 .sky-warriors::before,
.hmv2 .sky-warriors::after {
  filter: drop-shadow(0 -0.5px 1px rgba(170, 230, 255, 0.22));
}
:root:not(.dark) .hmv2 .sky-warriors::before,
:root:not(.dark) .hmv2 .sky-warriors::after {
  filter: drop-shadow(0 -0.5px 1px rgba(185, 224, 255, 0.14));
}
@media (max-width: 700px) {
  .hmv2 .hero-copy h1 {
    letter-spacing: 0.7px;
  }
}
.hmv2 .stage > .scene {
  inset: -12px;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .hmv2 .stage > .scene {
    transform: none !important;
  }
}
.hmv2 .stage > .scene.has-baked-art::before {
  background-image: var(--baked-scene-art);
  filter: none;
}
.hmv2 .stage > .scene.parallax-ready {
  will-change: transform;
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) {
  .hmv2 .stage > .scene.parallax-ready {
    will-change: auto;
    transition: none;
  }
}
.hmv2 .stage > .sky-warriors {
  transform: translate3d(0, 0, 0);
}
.hmv2 .stage > .sky-warriors.parallax-ready {
  will-change: transform;
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) {
  .hmv2 .stage > .sky-warriors {
    transform: none !important;
    will-change: auto;
    transition: none;
  }
}
.hmv2 .scene::after {
  mask-image: var(--scene-overlay-mask);
}
.hmv2 .lantern-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hmv2 .lantern-glow {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  width: var(--lamp-width);
  height: var(--lamp-height);
  background: radial-gradient(
    ellipse,
    #ffe2aa70 0%,
    #ffbe6238 20%,
    #ffb34212 46%,
    transparent 72%
  );
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: hmv2-lantern-flicker var(--lamp-duration, 4.7s) ease-in-out
    var(--lamp-delay, 0s) infinite;
}
.hmv2 .lantern-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--lamp-core-width);
  height: var(--lamp-core-height);
  background: radial-gradient(
    ellipse,
    #fff7d6dd 0%,
    #ffda8b9c 35%,
    #ffc36a38 62%,
    transparent 85%
  );
}
@keyframes hmv2-lantern-flicker {
  0%,
  100% {
    opacity: 0.74;
  }
  13% {
    opacity: 0.88;
  }
  24% {
    opacity: 0.69;
  }
  41% {
    opacity: 0.83;
  }
  54% {
    opacity: 0.75;
  }
  67% {
    opacity: 0.91;
  }
  79% {
    opacity: 0.77;
  }
  91% {
    opacity: 0.85;
  }
}
.hmv2 .lantern-layer.is-still .lantern-glow {
  animation-play-state: paused;
}
:root:not(.dark) .hmv2 .lantern-layer {
  display: none;
}
:root:not(.dark) .hmv2 .lantern-glow {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .hmv2 .lantern-glow {
    animation: none;
    opacity: 0.78;
  }
}
.hmv2 .scene::after {
  mix-blend-mode: normal;
}
.dark .hmv2 .scene::after {
  mix-blend-mode: color;
}
.hmv2 .stage > .scene {
  background: var(--nav);
}
.hmv2 .quick-items > a > svg,
.hmv2 .quick-items > div > button > svg {
  color: #6162f5;
}
:root:not(.dark) .hmv2 .quick-items > a,
:root:not(.dark) .hmv2 .quick-activity > button,
:root:not(.dark) .hmv2 .quick-tools > button {
  color: color-mix(in srgb, var(--hero-title) 85%, transparent);
}
.hmv2 .quick-items>a[href='https://metin2.forum/donation']>svg
{
  color: #e8aa3d;
}
.hmv2 .premium-balance {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #d6a64a1a;
  color: #e8bc65;
  font-size: 11px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.hmv2 .quick-links .premium-balance svg {
  width: 12px;
  height: 12px;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root:not(.dark) .hmv2 .premium-balance {
  background: #a76b1915;
  color: #825314;
}
@media (max-width: 700px) {
  .hmv2 .premium-balance {
    padding: 2px 4px;
    font-size: 10px;
  }
}
.hmv2 .sky-warriors .winter-hat {
  position: absolute;
  bottom: 0;
  transform: translateY(17.6%);
  width: 35%;
  height: auto;
  aspect-ratio: 3/2;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hmv2 .sky-warriors .winter-hat-left {
  left: 12.5%;
}
.hmv2 .sky-warriors .winter-hat-right {
  right: 12.5%;
}
.hmv2 .sky-warriors .cuff-armor-front {
  z-index: 2;
}
.hmv2 .sky-warriors .hat-pompom-front {
  z-index: 3;
}
.hmv2.hide-winter-hats .sky-warriors .winter-hat {
  display: none;
}
@media (max-width: 700px) {
  .hmv2 .sky-warriors .winter-hat {
    width: 66%;
  }
  .hmv2 .sky-warriors .winter-hat-left {
    left: -11%;
  }
  .hmv2 .sky-warriors .winter-hat-right {
    right: -11%;
  }
}
.hmv2 .stage > #hmv2-hero-back {
  z-index: 0;
}
.hmv2 .stage > .sky-warriors {
  z-index: 1;
}
.hmv2 .stage > #hmv2-hero {
  z-index: 2;
}
.hmv2 .stage > .hero-vignette {
  z-index: 3;
}
.hmv2 .stage > .hero-copy {
  z-index: 4;
}
.hmv2 .stage > .sky-warriors::before,
.hmv2 .stage > .sky-warriors::after,
.hmv2 .stage > .sky-warriors .winter-hat {
  width: var(--portrait-width, 35%);
}
.hmv2 .stage > .sky-warriors::before,
.hmv2 .stage > .sky-warriors .winter-hat-left {
  left: var(--portrait-left-inset, 12.5%);
}
.hmv2 .stage > .sky-warriors::after,
.hmv2 .stage > .sky-warriors .winter-hat-right {
  right: var(--portrait-right-inset, 12.5%);
}
.hmv2 .stage.compact-header .hero-copy {
  justify-content: center;
  padding: 12px;
  gap: 6px;
}
.dark .hmv2 .hero-copy p {
  color: #d5d9e3;
}
:root:not(.dark) .hmv2 .hero-copy h1 {
  text-shadow: 0 2px 10px rgba(23, 37, 65, 0.1);
}
.hmv2 .header-preview {
  width: 100%;
}
.hmv2 #hmv2-preview {
  position: relative;
  z-index: 2;
}
.hmv2 .quick-links {
  position: relative;
  z-index: 1;
}
.hmv2 .effect-picker {
  --picker-tint: rgba(0, 0, 0, 0.5);
  --picker-hover: rgba(0, 0, 0, 0.58);
  --picker-line: rgba(255, 255, 255, 0.12);
  --picker-menu: rgba(15, 23, 41, 0.97);
  position: absolute;
  top: 14px;
  right: 24px;
  z-index: 50;
  font-family: var(--hmv2-ui-font, sans-serif);
}
:root:not(.dark) .hmv2 .effect-picker {
  --picker-tint: rgba(255, 255, 255, 0.78);
  --picker-hover: rgba(255, 255, 255, 0.86);
  --picker-line: rgba(23, 37, 65, 0.18);
  --picker-menu: rgba(255, 255, 255, 0.97);
}
.hmv2 .effect-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  width: 32px;
  padding: 7px;
  background: var(--picker-tint);
  border: 1px solid var(--picker-line);
  border-radius: 6px;
  color: var(--text);
  font: 500 10px/1.4 var(--hmv2-ui-font, sans-serif);
  box-shadow: none;
  filter: none;
  cursor: pointer;
}
.hmv2 .effect-trigger > svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}
.hmv2 .effect-trigger-label,
.hmv2 .effect-trigger > .effect-trigger-chevron {
  display: none;
}
.hmv2 .effect-trigger:hover,
.hmv2 .effect-trigger[aria-expanded="true"] {
  background: var(--picker-hover);
}
.hmv2 .effect-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 210px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 5px;
  background: var(--picker-menu);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}
.hmv2 .effect-dropdown[hidden] {
  display: none;
}
.hmv2 .effect-menu {
  display: grid;
  gap: 2px;
}
.hmv2 .effect-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  font: 500 11px/1.4 var(--hmv2-ui-font, sans-serif);
  text-align: left;
}
.hmv2 .effect-option svg {
  width: 13px;
  height: 13px;
  color: #6162f5;
  visibility: hidden;
}
.hmv2 .effect-option[aria-checked="true"] {
  background: #6162f514;
  color: var(--text);
}
.hmv2 .effect-option[aria-checked="true"] svg {
  visibility: visible;
}
.hmv2 .effect-option:hover,
.hmv2 .effect-option:focus-visible {
  background: #6162f51f;
}

.hmv2 .effect-picker button:focus-visible {
  outline: 2px solid #6162f5;
  outline-offset: 1px;
}
.hmv2 .effect-picker .effect-trigger:focus-visible {
  outline: 2px solid var(--header-accent);
  outline-offset: 3px;
}
.hmv2 .stage.compact-header + .effect-picker {
  top: auto;
  bottom: 8px;
  right: 12px;
}
@media (max-width: 700px) {
  .hmv2 .effect-picker {
    top: 10px;
    right: 12px;
  }
  .hmv2 .effect-dropdown {
    width: 196px;
  }
  .hmv2 .quick-links {
    gap: 12px 20px;
  }
}

.hmv2 .header-settings {
  position: fixed;
  right: 20px;
  bottom: 68px;
  z-index: 61;
  width: 310px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  background: var(--nav);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px #0002;
  font-size: 12px;
}

.hmv2 .header-settings input[type="checkbox"],
.hmv2 .header-settings input[type="radio"] {
  appearance: auto;
  width: 14px;
  height: 14px;
  accent-color: var(--header-accent);
  margin: 0;
  flex: none;
}

@media (max-width: 700px) {
  .hmv2 .header-settings {
    right: 12px;
    bottom: 60px;
  }
}
@media (max-width: 700px),
  (hover: none),
  (pointer: coarse),
  (prefers-reduced-motion: reduce) {
  .hmv2 .stage > .scene,
  .hmv2 .stage > .sky-warriors {
    transform: translate3d(0, 0, 0) !important;
    will-change: auto !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hmv2 .stage > .scene {
    inset: -12px;
  }
}
.hmv2 .hero-copy a {
  pointer-events: auto;
}
.hmv2 .quick-items {
  display: contents;
}
.hmv2 .quick-collapse-toggle {
  display: none;
}
@media (max-width: 700px) {
  .hmv2 .quick-collapse-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
  }
  .hmv2 .quick-collapse-toggle > svg {
    color: #6162f5;
    width: 18px;
    height: 18px;
  }
  .hmv2 .quick-collapse-toggle > .quick-collapse-chevron {
    width: 13px;
    height: 13px;
  }
  .hmv2 .quick-open .quick-collapse-chevron {
    transform: rotate(180deg);
  }
  .hmv2 .quick-items {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: min(330px, calc(100vw - 24px));
    max-height: 65vh;
    max-height: 65dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--nav);
    box-shadow: 0 12px 28px #0002;
  }
  .hmv2 .quick-open .quick-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .hmv2 .quick-items > a,
  .hmv2 .quick-items > div > button {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    gap: 8px;
    font-size: 12px;
    border-radius: 5px;
  }
  .hmv2 .quick-items > a:hover,
  .hmv2 .quick-items > div > button:hover {
    background: #6162f512;
  }
  .hmv2 .quick-items .activity-chevron,
  .hmv2 .quick-items .tools-chevron {
    margin-left: auto;
  }
  .hmv2 .quick-items .activity-panel,
  .hmv2 .quick-items .quick-tools-menu {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 10px;
    margin: 2px 0 6px;
    border-radius: 6px;
    box-shadow: none;
  }
  .hmv2 .quick-items .activity-welcome strong {
    font-size: 12px;
  }
  .hmv2 .quick-items .activity-stats {
    grid-template-columns: 1fr;
  }
}
.hmv2 {
  font-family: inherit;
  line-height: 1.5;
  --hmv2-ui-font: system-ui, sans-serif;
  --hmv2-heading-font: system-ui, sans-serif;
}
.hmv2.hmv2-heading-font {
  --hmv2-heading-font: Montserrat;
}
.hmv2 .header-preview {
  width: 100%;
}
.hmv2 .quick-items > .hmv2-premium > svg {
  color: #e8aa3d;
}
.hmv2 .hmv2-avatar {
  width: 34px;
  height: 34px;
  flex: none;
}
.hmv2 .hmv2-avatar img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 9px;
}
.hmv2 .activity-welcome strong a {
  color: inherit;
  font: inherit;
  display: inline;
  min-height: 0;
}
.hmv2 .quick-links .quick-tools-menu a {
  gap: 8px;
}
.hmv2 .quick-tools-menu a svg {
  width: 17px;
  height: 17px;
}
#page-header > .hmv2 ~ .header-section,
#page-header > .hmv2 ~ .header-title {
  display: none !important;
}
#page-header .headerbar > .hmv2 ~ .inner {
  display: none;
}
#page-header .headerbar:has(> .hmv2) {
  padding: 0;
  background: none;
}
.hmv2.bare .scene {
  display: none;
}

/* Initial composition is CSS-sized; the synchronous layout refines text clearance. */
.hmv2 {
  position: relative;
  z-index: auto;
}
.hmv2 .stage {
  --responsive-banner-height: max(
    calc(var(--banner-height, 240px) * 0.65),
    var(--banner-fluid, 16.666667cqw)
  );
  --portrait-width: max(
    327.6px,
    min(35cqw, calc(var(--responsive-banner-height) * 2.1))
  );
  --hero-title-size: clamp(20px, 3.6cqw, 58px);
  --hero-subtitle-size: clamp(9px, 1.05cqw, 15px);
  --hero-subtitle-tracking: clamp(1.5px, 0.2cqw, 3px);
}
.hmv2 .hero-copy,
.hmv2 .hero-copy *,
.hmv2 .sky-warriors,
.hmv2 .sky-warriors::before,
.hmv2 .sky-warriors::after,
.hmv2 .sky-warriors .winter-hat {
  animation: none !important;
  transition: none !important;
}
.hmv2 .hero-copy a,
.hmv2 .hero-copy a:hover,
.hmv2 .hero-copy a:focus {
  color: inherit !important;
  text-decoration: none;
}
.hmv2 .quick-links {
  z-index: 2;
}
.hmv2 .quick-items {
  z-index: 1;
}
.hmv2 .quick-tools-menu,
.hmv2 .activity-panel {
  z-index: 2;
}
.hmv2 .premium-balance {
  vertical-align: middle;
  line-height: 16px;
  min-height: 20px;
}
.hmv2 .quick-links .premium-balance svg {
  display: block;
  flex: 0 0 12px;
  margin: 0;
}
.hmv2 .premium-balance-value {
  display: block;
  line-height: 16px;
}

.hmv2 .stage > .sky-warriors.parallax-ready {
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* Local layer order: scene < quick links < effect picker; theme dialogs stay above. */
.hmv2 .header-preview {
  container-type: inline-size;
  position: relative;
  z-index: 3;
}
.hmv2 #hmv2-preview {
  z-index: auto;
}
.hmv2 .effect-picker {
  z-index: 4;
}
.hmv2 .stage > .hmv2-atmosphere,
.hmv2 .stage > .hmv2-fog {
  z-index: 0;
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 var(--feather-x, 8%),
      #000 calc(100% - var(--feather-x, 8%)),
      transparent
    ),
    linear-gradient(
      to bottom,
      transparent,
      #000 var(--feather-y, 12%),
      #000 calc(100% - var(--feather-y, 12%)),
      transparent
    );
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* Above the reference width, scale the whole hero composition proportionally. */
@container (min-width: 1440px) {
  .hmv2 .stage {
    --hero-title-size: 3.6cqw;
    --hero-subtitle-size: 1.041666667cqw;
    --hero-subtitle-tracking: 0.2cqw;
  }
  .hmv2 .hero-copy,
  .hmv2 .hero-copy[data-align="left"],
  .hmv2 .hero-copy[data-align="right"] {
    gap: 0.694444444cqw;
    padding: 1.666666667cqw 5cqw;
  }
  .hmv2 .hero-copy h1 {
    letter-spacing: 0.083333333cqw;
  }
}
