/*
 * Header Manager V2
 * Every rule is scoped to .hmv2. Animations only touch transform and opacity.
 */

@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;
}

/* ---------- Tokens (dark is the default, light follows the style switch) ---------- */

.hmv2 {
	--nav: #0f1729;
	--text: #e4e8f2;
	--link: #d2d6ee;
	--line: #ffffff10;
	--accent: #6163f7;
	--icon: #6162f5;
	--gold: #e8aa3d;
	--hero-title: #f8f9ff;
	--hero-subtitle: #d5d9e3;
	--title-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
	--subtitle-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
	--copy-shade: #102c5966;
	--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));
	--scene-wash-blend: color;
	--scene-wash-mask: linear-gradient(90deg, #0006 0%, #0008 22%, #000 38%, #000 62%, #0008 78%, #0006 100%);
	--characters-filter: saturate(1.04) drop-shadow(0 -0.5px 1px rgba(170, 230, 255, 0.22));
	--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);
	--ui-font: system-ui, sans-serif;
	--heading-font: var(--ui-font);

	position: relative;
	z-index: 8; /* Above page content, below the style's sticky navbar (9) and its dropdowns and dialogs. */
	color: var(--text);
	font-family: inherit;
	line-height: 1.5;
	color-scheme: dark;
}

:root:not(.dark) .hmv2 {
	--nav: #fff;
	--text: #202840;
	--link: #424a67;
	--line: #18285116;
	--hero-title: #1c2949;
	--hero-subtitle: color-mix(in srgb, #1c2949 85%, transparent);
	--title-shadow: 0 2px 10px rgba(23, 37, 65, 0.1);
	--subtitle-shadow: none;
	--copy-shade: #f1f3ff1a;
	--scene-grade: brightness(0.96) saturate(1.17) contrast(1.24);
	--scene-wash: linear-gradient(110deg, #233c5910, transparent 55%, #293c5910);
	--scene-wash-blend: normal;
	--scene-wash-mask: none;
	--characters-filter: saturate(0.78) drop-shadow(0 -0.5px 1px rgba(185, 224, 255, 0.14));
	--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);

	color-scheme: light;
}

.hmv2.hmv2-heading-font {
	--heading-font: "Montserrat", var(--ui-font);
}

/* ---------- Local reset ---------- */

.hmv2 *,
.hmv2 ::before,
.hmv2 ::after {
	box-sizing: border-box;
}

.hmv2 h1,
.hmv2 p {
	margin: 0;
}

.hmv2 a {
	color: inherit;
	text-decoration: none;
}

.hmv2 button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	cursor: pointer;
}

.hmv2 :is(a, button):focus-visible {
	outline: 2px solid #aaa7ff;
	outline-offset: 4px;
}

.hmv2 [hidden] {
	display: none !important;
}

.hmv2 svg {
	display: block;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* Built-in icons are line drawings. Icons added in the ACP keep the fill and stroke they declare. */
.hmv2 svg:not(.hmv2-svg-custom) {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* A custom icon that declares no colour takes the text colour, as the built-in ones do. */
.hmv2 svg.hmv2-svg-custom:not([fill]) {
	fill: currentColor;
}

.hmv2 .hmv2-sprites {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}

.hmv2 .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* The style's own banner is replaced by this header. */
#page-header > .hmv2 ~ .header-section,
#page-header > .hmv2 ~ .header-title {
	display: none !important;
}

#page-header .headerbar:has(> .hmv2) {
	padding: 0;
	background: none;
}

#page-header .headerbar > .hmv2 ~ .inner {
	display: none;
}

/* ---------- Hero ---------- */

.hmv2 .hmv2-hero {
	position: relative;
	z-index: 3; /* Effect menu above the quick links. */
	container-type: inline-size;
}

.hmv2 .stage {
	--banner-height: max(calc(var(--hmv2-height) * 0.65px), calc(var(--hmv2-height) * 100cqw / 1440));
	--portrait-width: max(327.6px, min(35cqw, calc(var(--banner-height) * 2.1)));

	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	height: var(--banner-height);
	background: var(--nav);
}

.hmv2 .scene {
	position: absolute;
	inset: -12px;
	isolation: isolate;
	background: var(--nav);
}

.hmv2 .scene::before,
.hmv2 .scene::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* A static filter is rasterised once; nothing on this layer ever animates. */
.hmv2 .scene::before {
	background: url("../images/banner-sakura-indigo.webp?v=3.0.0") center / cover no-repeat;
	filter: var(--scene-grade);
}

.hmv2 .scene::after {
	background: var(--scene-wash);
	mix-blend-mode: var(--scene-wash-blend);
	mask-image: var(--scene-wash-mask);
}

.hmv2.bare .scene {
	display: none;
}

/*
 * Effect layers: back (behind the characters) and front. Their edges are faded while drawing:
 * a CSS mask here would make the browser composite every animated frame through an extra
 * full-size surface, which grows with pinch zoom.
 */
.hmv2 .hmv2-fx,
.hmv2 .hmv2-fog,
.hmv2 .hmv2-atmosphere {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: var(--fx-opacity);
	pointer-events: none;
}

.hmv2 .hmv2-fx-front {
	z-index: 2;
}

.hmv2 .sky-warriors {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: var(--characters-opacity);
	pointer-events: none;
	transform: translate3d(0, 0, 0);
}

.hmv2 .sky-warriors.is-parallax {
	transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

.hmv2 .sky-warriors::before,
.hmv2 .sky-warriors::after,
.hmv2 .winter-hat {
	position: absolute;
	bottom: 0;
	width: var(--portrait-width);
	aspect-ratio: 3 / 2;
	transform: translateY(17.6%);
}

.hmv2 .sky-warriors::before,
.hmv2 .sky-warriors::after {
	content: "";
	background: url("../images/legacy-warriors.webp?v=3.0.0") no-repeat;
	background-size: 200% auto;
	filter: var(--characters-filter);
	mask-image: linear-gradient(to bottom, #000 0%, #000 62%, #000e 69%, #0007 77%, transparent 82.4%);
}

.hmv2 .sky-warriors::before,
.hmv2 .winter-hat-left {
	left: var(--portrait-left, 12.5%);
}

.hmv2 .sky-warriors::after,
.hmv2 .winter-hat-right {
	right: var(--portrait-right, 12.5%);
}

.hmv2 .sky-warriors::before {
	background-position: left top;
}

.hmv2 .sky-warriors::after {
	background-position: right top;
}

.hmv2 .winter-hat {
	z-index: 1;
	height: auto;
	overflow: hidden;
	pointer-events: none;
}

.hmv2 .cuff-armor-front {
	z-index: 2;
}

.hmv2 .hat-pompom-front {
	z-index: 3;
}

.hmv2 .hero-vignette {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	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%);
}

/* ---------- Title ---------- */

.hmv2 .hero-copy {
	--shade-x: 50%;

	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px clamp(24px, 5vw, 96px);
	text-align: center;
	pointer-events: none;
	background: radial-gradient(ellipse 56% 85% at var(--shade-x) 50%, var(--copy-shade), transparent 80%);
}

.hmv2 .hero-copy[data-align="left"] {
	--shade-x: 12%;

	align-items: flex-start;
	text-align: left;
}

.hmv2 .hero-copy[data-align="right"] {
	--shade-x: 88%;

	align-items: flex-end;
	text-align: right;
}

.hmv2 .hero-copy a {
	color: inherit !important;
	text-decoration: none !important;
	pointer-events: auto;
}

.hmv2 .hero-copy h1 {
	color: var(--hero-title);
	font: 800 max(20px, 3.6cqw) / 1.05 var(--heading-font);
	letter-spacing: max(1.2px, 0.083cqw);
	text-shadow: var(--title-shadow);
}

.hmv2 .hero-copy p {
	color: var(--hero-subtitle);
	font: 800 max(9px, 1.0417cqw) / 1.5 var(--heading-font);
	letter-spacing: max(1.5px, 0.2cqw);
	text-shadow: var(--subtitle-shadow);
}

.hmv2 .stage.is-compact .hero-copy {
	gap: 6px;
	padding: 12px;
}

@container (min-width: 1440px) {
	.hmv2 .hero-copy {
		gap: 0.694cqw;
		padding: 1.667cqw 5cqw;
	}
}

/* ---------- Lanterns (opacity only, positioned once per resize) ---------- */

.hmv2 .lantern-layer {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.hmv2 .lantern-glow {
	position: absolute;
	width: calc(70px * var(--lamp-scale, 1));
	height: calc(82px * var(--lamp-scale, 1));
	translate: -50% -50%;
	background: radial-gradient(ellipse, #ffe2aa70 0%, #ffbe6238 20%, #ffb34212 46%, transparent 72%);
	opacity: 0.8;
	animation: hmv2-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%;
	width: 13%;
	height: 18%;
	translate: -50% -50%;
	background: radial-gradient(ellipse, #fff7d6dd 0%, #ffda8b9c 35%, #ffc36a38 62%, transparent 85%);
}

.hmv2 .is-paused .lantern-glow,
.hmv2 .is-paused .hmv2-bulb {
	animation-play-state: paused;
}

:root:not(.dark) .hmv2 .lantern-layer {
	display: none;
}

@keyframes hmv2-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; }
}

/* ---------- Christmas lights (static images, only opacity animates) ---------- */

.hmv2 .hmv2-xmas-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.55;
	background:
		radial-gradient(28% 70% at 8% 18%, #ff4d6d2e, transparent 70%),
		radial-gradient(24% 60% at 30% 8%, #ffd27a24, transparent 70%),
		radial-gradient(26% 66% at 70% 10%, #5cf2b522, transparent 70%),
		radial-gradient(28% 70% at 93% 20%, #ff9f4a2a, transparent 70%);
	animation: hmv2-breathe 9s ease-in-out infinite alternate;
}

:root:not(.dark) .hmv2 .hmv2-xmas-glow {
	opacity: 0.35;
}

.hmv2 .hmv2-xmas {
	position: absolute;
	inset: 0 0 auto;
	z-index: 3;
	height: 44px;
	pointer-events: none;
}

.hmv2 .hmv2-xmas > i {
	position: absolute;
	inset: 0;
	background-repeat: repeat-x;
	background-position: center top;
	background-size: 200px 44px;
}

.hmv2 .hmv2-xmas-wire {
	opacity: 0.7;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 44'%3E%3Cpath d='M0 6Q100 34 200 6' fill='none' stroke='%230b1220' stroke-opacity='.55' stroke-width='1.4'/%3E%3C/svg%3E");
}

.hmv2 .hmv2-bulb {
	position: absolute;
	width: 22px;
	height: 22px;
	translate: -50% -50%;
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0 9%, var(--bulb) 20%, color-mix(in srgb, var(--bulb) 40%, transparent) 38%, transparent 70%);
	animation: var(--blink, hmv2-glow) var(--blink-duration, 4s) ease-in-out var(--blink-delay, 0s) infinite;
}

/* Most bulbs glow steadily with a slight shimmer. */
@keyframes hmv2-glow {
	0%, 100% { opacity: 0.86; }
	50% { opacity: 1; }
}

/* Some dip for a moment, like a loose contact. */
@keyframes hmv2-flicker-bulb {
	0%, 84%, 100% { opacity: 1; }
	86% { opacity: 0.3; }
	89% { opacity: 0.95; }
	92% { opacity: 0.45; }
	95% { opacity: 1; }
}

/* A few fade slowly in and out. */
@keyframes hmv2-fade {
	0%, 100% { opacity: 0.35; }
	45%, 60% { opacity: 1; }
}

@keyframes hmv2-breathe {
	from { opacity: 0.4; }
	to { opacity: 0.6; }
}

/* ---------- Effect picker ---------- */

.hmv2 .effect-picker {
	position: absolute;
	top: 14px;
	right: 24px;
	z-index: 5;
	font-family: var(--ui-font);
}

.hmv2 .stage.is-compact + .effect-picker {
	top: auto;
	right: 12px;
	bottom: 8px;
}

.hmv2 .effect-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--picker-line);
	border-radius: 6px;
	background: var(--picker-tint);
	color: var(--text);
}

.hmv2 .effect-trigger svg {
	width: 16px;
	height: 16px;
}

.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;
	display: grid;
	gap: 2px;
	width: 210px;
	max-height: 70vh;
	overflow-y: auto;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--picker-menu);
	color: var(--text);
}

.hmv2 .effect-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 34px;
	padding: 7px 10px;
	border-radius: 4px;
	font: 500 11px / 1.4 var(--ui-font);
	text-align: left;
}

.hmv2 .effect-option svg {
	width: 13px;
	height: 13px;
	color: var(--icon);
	visibility: hidden;
}

.hmv2 .effect-option[aria-checked="true"] {
	background: #6162f514;
}

.hmv2 .effect-option[aria-checked="true"] svg {
	visibility: visible;
}

.hmv2 .effect-option:hover,
.hmv2 .effect-option:focus-visible {
	background: #6162f51f;
}

.hmv2 .effect-picker :focus-visible {
	outline-color: var(--accent);
	outline-offset: 2px;
}

/* ---------- Quick links ---------- */

.hmv2 .quick-links {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px clamp(16px, 2.7vw, 40px);
	padding: 8px 16px;
	background: var(--nav);
}

.hmv2 .quick-items {
	display: contents;
}

.hmv2 .quick-items > a,
.hmv2 .quick-menu > button {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	color: var(--link);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

:root:not(.dark) .hmv2 .quick-items > a,
:root:not(.dark) .hmv2 .quick-menu > button {
	color: color-mix(in srgb, var(--hero-title) 85%, transparent);
}

.hmv2 .quick-items > a > svg,
.hmv2 .quick-menu > button > svg:first-child {
	width: 19px;
	height: 19px;
	color: var(--icon);
}

.hmv2 .quick-items > .hmv2-premium > svg,
.hmv2 .hmv2-premium > button > svg:first-child {
	color: var(--gold);
}

.hmv2 .quick-chevron {
	width: 13px !important;
	height: 13px !important;
	transition: transform 160ms ease-out;
}

.hmv2 [aria-expanded="true"] > .quick-chevron {
	transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
	.hmv2 .quick-items > a:hover,
	.hmv2 .quick-menu > button:hover {
		filter: brightness(1.15);
	}
}

.hmv2 .quick-menu {
	position: relative;
}

.hmv2 .quick-panel {
	position: absolute;
	top: 100%;
	z-index: 1;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--nav);
	box-shadow: 0 12px 32px #0003;
	text-align: left;
}

.hmv2 .quick-tools-menu {
	right: -12px;
	min-width: 192px;
}

.hmv2 .quick-tools-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 9px 12px;
	border-radius: 5px;
	color: var(--link);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
}

.hmv2 .quick-tools-menu a svg {
	width: 17px;
	height: 17px;
	color: var(--icon);
}

.hmv2 .quick-tools-menu a:hover,
.hmv2 .quick-tools-menu a:focus-visible {
	background: #6163f71c;
	color: var(--text);
}

/* ---------- Coin balance ---------- */

.hmv2 .premium-balance {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-height: 20px;
	padding: 2px 6px;
	border-radius: 6px;
	background: #d6a64a1a;
	color: #e8bc65;
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
	font-variant-numeric: tabular-nums;
}

.hmv2 .premium-balance svg {
	width: 12px;
	height: 12px;
	stroke-width: 1.5;
}

:root:not(.dark) .hmv2 .premium-balance {
	background: #a76b1915;
	color: #825314;
}

/* ---------- Activity panel ---------- */

.hmv2 .activity-panel {
	left: -12px;
	width: 480px;
	max-width: calc(100vw - 24px);
}

.hmv2 .activity-welcome {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 10px;
}

.hmv2 .hmv2-avatar,
.hmv2 .hmv2-avatar img,
.hmv2 .hmv2-avatar svg {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	object-fit: cover;
}

/* Same text size as the style's navbar items and the quick links. */
.hmv2 .activity-welcome strong {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

/* The username keeps its group colour but not a different size or weight from the style. */
.hmv2 .activity-welcome strong a {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.hmv2 .activity-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
}

/* Same rows as the other dropdowns, with the unread count on the right. */
.hmv2 .activity-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 9px 12px;
	border-radius: 5px;
	color: var(--link);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.hmv2 .activity-stat svg {
	width: 17px;
	height: 17px;
	color: var(--icon);
}

.hmv2 .activity-stat b {
	margin-left: auto;
	padding-left: 8px;
	color: var(--text);
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.hmv2 .activity-stat:hover,
.hmv2 .activity-stat:focus-visible {
	background: #6163f71c;
	color: var(--text);
}

/* ---------- Narrow screens ---------- */

.hmv2 .quick-collapse-toggle {
	display: none;
}

@media (max-width: 900px) {
	.hmv2 .quick-items > a,
	.hmv2 .quick-menu > button {
		gap: 6px;
	}
}

@media (max-width: 700px) {
	.hmv2 .hero-copy {
		padding: 22px 24px;
		background: radial-gradient(ellipse 100% 75% at var(--shade-x) 50%, var(--copy-shade), transparent 85%);
	}

	.hmv2 .hero-copy h1 {
		letter-spacing: 0.7px;
	}

	.hmv2 .effect-picker {
		top: 10px;
		right: 12px;
	}

	.hmv2 .effect-dropdown {
		width: 196px;
	}

	.hmv2 .hmv2-xmas,
	.hmv2 .hmv2-xmas > i {
		height: 31px;
		background-size: 140px 31px;
	}

	.hmv2 .quick-links {
		padding-inline: 12px;
	}

	/* One "Useful" button opens every link in a panel that spans 95% of the screen. */
	.hmv2 .quick-collapse-toggle {
		display: flex;
		align-items: center;
		gap: 8px;
		min-height: 36px;
		padding: 0 10px;
		font-size: 14px;
		font-weight: 500;
	}

	.hmv2 .quick-collapse-toggle > svg:first-child {
		width: 18px;
		height: 18px;
		color: var(--icon);
	}

	.hmv2 .quick-items {
		position: absolute;
		top: calc(100% + 6px);
		left: 2.5vw;
		display: none;
		flex-direction: column;
		gap: 2px;
		width: 95vw;
		max-height: 70dvh;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 6px;
		border: 1px solid var(--line);
		border-radius: 10px;
		background: var(--nav);
		box-shadow: 0 12px 28px #0003;
	}

	.hmv2 .quick-links.is-open .quick-items {
		display: flex;
	}

	.hmv2 .quick-items > a,
	.hmv2 .quick-menu > button {
		width: 100%;
		min-height: 44px;
		padding: 8px 12px;
		border-radius: 6px;
		font-size: 14px;
	}

	.hmv2 .quick-items > a:hover,
	.hmv2 .quick-menu > button:hover {
		background: #6162f512;
	}

	.hmv2 .quick-menu > button > .quick-chevron {
		margin-left: auto;
	}

	.hmv2 .quick-panel {
		position: static;
		width: 100%;
		max-width: none;
		min-width: 0;
		margin: 2px 0 6px;
		padding: 10px;
		border-radius: 8px;
		box-shadow: none;
	}
}

@media (max-width: 480px) {
	.hmv2 .activity-stats {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmv2 *,
	.hmv2 ::before,
	.hmv2 ::after {
		animation: none !important;
		transition: none !important;
	}
}
