body.marketplace-home-active {
    padding-bottom: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 43, 214, 0.07), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(24, 220, 255, 0.07), transparent 24%),
        #03050c;
}

body.marketplace-preview-open {
    overscroll-behavior: none;
}

.market-home {
    --mh-canvas: #03050c;
    --mh-canvas-soft: #070b16;
    --mh-surface: rgba(10, 16, 29, 0.9);
    --mh-surface-high: #101a2d;
    --mh-surface-solid: #0a101d;
    --mh-text: #f3f8ff;
    --mh-text-soft: #bdc9d9;
    --mh-muted: #7f8da4;
    --mh-line: rgba(163, 195, 226, 0.14);
    --mh-line-strong: rgba(182, 221, 255, 0.27);
    --mh-cyan: #35e8ff;
    --mh-mint: #68ffd0;
    --mh-pink: #ff4fce;
    --mh-coral: #ff7d73;
    --mh-amber: #ffc75a;
    --mh-blue: #568cff;
    --mh-display: 'Oxanium', sans-serif;
    --mh-body: 'Rajdhani', sans-serif;
    position: relative;
    min-height: 100vh;
    overflow: clip;
    background: var(--mh-canvas);
    color: var(--mh-text);
    font-family: var(--mh-body);
    isolation: isolate;
}

.market-home::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    content: '';
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(82, 137, 177, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82, 137, 177, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
    pointer-events: none;
}

.market-home::after {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: '';
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
    pointer-events: none;
}

.mh-shell {
    width: min(1440px, calc(100% - 64px));
    margin-inline: auto;
}

.market-home button,
.market-home input {
    font-family: var(--mh-body);
}

.market-home button:disabled {
    cursor: not-allowed;
}

.mh-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    margin: -1px;
    white-space: nowrap;
}

.mh-overline {
    display: flex;
    margin: 0 0 18px;
    color: var(--mh-cyan);
    font-family: var(--mh-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.19em;
    line-height: 1.2;
    text-transform: uppercase;
    align-items: center;
    gap: 9px;
}

.mh-overline::before {
    width: 28px;
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent, currentColor);
}

.mh-section-heading {
    position: relative;
    z-index: 2;
}

.mh-section-heading h2 {
    max-width: 850px;
    margin: 0;
    color: var(--mh-text);
    font-family: var(--mh-display);
    font-size: clamp(38px, 5.1rem, 76px);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.is-mint { --mh-accent: var(--mh-mint); --mh-accent-rgb: 104, 255, 208; }
.is-blue { --mh-accent: var(--mh-blue); --mh-accent-rgb: 86, 140, 255; }
.is-coral { --mh-accent: var(--mh-coral); --mh-accent-rgb: 255, 125, 115; }
.is-amber { --mh-accent: var(--mh-amber); --mh-accent-rgb: 255, 199, 90; }

.market-home ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.market-home ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.025);
}

.market-home ::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(118, 173, 207, 0.3);
}

.mh-header {
    position: sticky;
    z-index: 90;
    top: 0;
    color: var(--mh-text);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.mh-utility {
    min-height: 31px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: #02040a;
}

.mh-utility-inner {
    display: flex;
    min-height: 31px;
    color: #7f8da4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    align-items: center;
    justify-content: space-between;
}

.mh-utility p,
.mh-utility nav,
.mh-utility a,
.mh-utility span {
    display: flex;
    margin: 0;
    align-items: center;
}

.mh-utility p,
.mh-utility nav { gap: 18px; }
.mh-utility a,
.mh-utility span { gap: 6px; }
.mh-utility a:hover { color: var(--mh-cyan); }

.mh-utility p i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mh-mint);
    box-shadow: 0 0 13px rgba(104, 255, 208, 0.9);
}

.mh-mainbar {
    border-bottom: 1px solid var(--mh-line);
    background: rgba(5, 9, 17, 0.9);
    backdrop-filter: blur(20px) saturate(1.2);
}

.mh-mainbar-inner {
    display: grid;
    min-height: 78px;
    grid-template-columns: minmax(170px, 0.48fr) minmax(360px, 1.25fr) minmax(190px, 0.42fr);
    align-items: center;
    gap: 28px;
}

.mh-header .brand-logo {
    width: 174px;
}

.mh-search {
    position: relative;
    display: grid;
    height: 48px;
    border: 1px solid rgba(130, 174, 214, 0.18);
    background:
        linear-gradient(90deg, rgba(53, 232, 255, 0.05), transparent 35%),
        rgba(255, 255, 255, 0.028);
    grid-template-columns: 48px 1fr 54px;
    align-items: center;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mh-search.is-focused {
    border-color: rgba(53, 232, 255, 0.58);
    background: rgba(7, 15, 26, 0.98);
    box-shadow: 0 0 0 1px rgba(53, 232, 255, 0.1), 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 38px rgba(53, 232, 255, 0.08);
}

.mh-search > svg {
    margin-inline: auto;
    color: var(--mh-cyan);
}

.mh-search input {
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mh-text);
    font-size: 16px;
    font-weight: 600;
}

.mh-search input::placeholder { color: #65758e; }

.mh-search > button,
.mh-search kbd {
    display: grid;
    min-width: 32px;
    min-height: 28px;
    border: 0;
    margin-inline: auto;
    color: #708099;
    background: transparent;
    font-size: 9px;
    font-weight: 700;
    place-items: center;
}

.mh-search kbd {
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 3px;
}

.mh-search-panel {
    position: absolute;
    z-index: 15;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid rgba(83, 221, 255, 0.24);
    background: rgba(6, 12, 23, 0.985);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6), 0 0 40px rgba(53, 232, 255, 0.06);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.mh-search-panel > header {
    display: flex;
    min-height: 43px;
    padding: 0 16px;
    border-bottom: 1px solid var(--mh-line);
    color: var(--mh-text-soft);
    font-size: 13px;
    align-items: center;
    justify-content: space-between;
}

.mh-search-panel > header small { color: var(--mh-muted); }

.mh-search-panel > button {
    display: grid;
    width: 100%;
    min-height: 68px;
    padding: 8px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    background: transparent;
    color: var(--mh-text);
    text-align: left;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 13px;
}

.mh-search-panel > button:hover,
.mh-search-panel > button:focus-visible { background: rgba(53, 232, 255, 0.07); }

.mh-search-panel img {
    width: 52px;
    height: 44px;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 78% 100%, 0 100%);
}

.mh-search-panel button span { display: grid; }
.mh-search-panel button strong { font-family: var(--mh-display); font-size: 13px; }
.mh-search-panel button small { color: var(--mh-muted); font-size: 12px; }
.mh-search-panel button i { color: var(--mh-mint); font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.mh-search-empty { padding: 24px; color: var(--mh-muted); text-align: center; }

.mh-account {
    display: grid;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mh-text);
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.mh-account > span:first-child {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid var(--mh-line-strong);
    background: linear-gradient(135deg, rgba(255, 79, 206, 0.13), rgba(53, 232, 255, 0.12));
    place-items: center;
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.mh-account > span:nth-child(2) { display: grid; line-height: 1.1; }
.mh-account strong { font-family: var(--mh-display); font-size: 13px; }
.mh-account small { margin-top: 5px; color: var(--mh-muted); font-size: 11px; }
.mh-account > svg { color: #65758e; }


.mh-hero {
    position: relative;
    min-height: 0;
    overflow: hidden;
    scroll-margin-top: 156px;
    background: #07111e;
}

.mh-hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: '';
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(53, 232, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 232, 255, 0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 96%);
    pointer-events: none;
}

.mh-hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: '';
    background:
        linear-gradient(90deg, rgba(3, 7, 14, 0.34), rgba(3, 7, 14, 0.05) 48%, rgba(3, 7, 14, 0.32)),
        linear-gradient(180deg, transparent, rgba(3, 7, 14, 0.28) 100%);
    pointer-events: none;
}

.mh-hero-backdrop-track {
    position: absolute;
    z-index: 0;
    inset: -96px;
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
}

.mh-hero-backdrop {
    position: absolute;
    inset: -24px;
    background-position: center;
    background-size: cover;
    filter: saturate(1.08) contrast(1.03);
    opacity: 0.9;
    transform: scale(1.01);
    pointer-events: none;
    will-change: transform;
}

.mh-hero-layout {
    position: relative;
    z-index: 2;
    padding-block: 30px;
}

.mh-hero-category-controls {
    position: absolute;
    z-index: 8;
    top: 50%;
    right: -58px;
    left: -58px;
    display: flex;
    transform: translateY(-50%);
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.mh-hero-category-controls button {
    display: grid;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(53, 232, 255, 0.42);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 232, 255, 0.14), rgba(53, 232, 255, 0.035) 62%, transparent 64%);
    box-shadow: 0 0 0 6px rgba(53, 232, 255, 0.025), 0 0 28px rgba(53, 232, 255, 0.14);
    color: var(--mh-cyan);
    pointer-events: auto;
    place-items: center;
    transition: border-color 180ms ease, box-shadow 220ms ease, color 180ms ease, transform 220ms ease;
}

.mh-hero-category-controls button:last-child {
    border-color: rgba(104, 255, 208, 0.42);
    background: radial-gradient(circle, rgba(104, 255, 208, 0.14), rgba(104, 255, 208, 0.035) 62%, transparent 64%);
    box-shadow: 0 0 0 6px rgba(104, 255, 208, 0.025), 0 0 28px rgba(104, 255, 208, 0.12);
    color: var(--mh-mint);
}

.mh-hero-category-controls button:hover {
    border-color: currentColor;
    box-shadow: 0 0 0 8px rgba(53, 232, 255, 0.045), 0 0 34px rgba(53, 232, 255, 0.28);
    transform: scale(1.08);
}

.mh-hero-category-controls button:last-child:hover {
    box-shadow: 0 0 0 8px rgba(104, 255, 208, 0.045), 0 0 34px rgba(104, 255, 208, 0.25);
}

@media (hover: hover) and (pointer: fine) {
    .mh-product-stage:hover .mh-hero-category-controls,
    .mh-product-stage:focus-within .mh-hero-category-controls { opacity: 1; }
}

.mh-product-stage {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.mh-product-slide {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 420px;
    padding: 12px 10px 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.mh-product-card {
    position: relative;
    min-width: 0;
    min-height: 390px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #08111e;
    color: var(--mh-text);
    text-align: left;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
    transform: translateY(10px) scale(0.97);
    transform-origin: center bottom;
    transition: border-color 320ms ease, box-shadow 320ms ease, filter 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-product-card:nth-child(even) {
    clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 18px);
}

.mh-product-card::after {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    width: 58px;
    height: 3px;
    content: '';
    background: var(--mh-accent);
    box-shadow: 0 0 16px var(--mh-accent);
    opacity: 0.45;
}

.mh-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.82);
    transform: scale(1.02);
    transition: filter 420ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-product-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(2, 5, 10, 0.1) 75%, #02050a 84%, #02050a 100%); }
.mh-product-card-top { position: absolute; z-index: 3; top: 16px; right: 16px; left: 16px; display: flex; align-items: center; }
.mh-product-card-top small { padding: 6px 8px; background: rgba(3, 7, 13, 0.82); color: var(--mh-accent); font-family: var(--mh-display); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }
.mh-product-card-copy { position: absolute; z-index: 3; right: 20px; bottom: 24px; left: 22px; display: grid; }
.mh-product-card-copy > small { color: var(--mh-accent); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mh-product-card-copy strong { display: block; width: 100%; margin-top: 5px; overflow: hidden; font-family: var(--mh-display); font-size: clamp(22px, 2.2vw, 36px); letter-spacing: -0.045em; line-height: 1; text-overflow: clip; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.86); white-space: nowrap; }
.mh-product-card:hover,
.mh-product-card.is-focused {
    z-index: 3;
    border-color: rgba(var(--mh-accent-rgb), 0.74);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.5), 0 0 48px rgba(var(--mh-accent-rgb), 0.12);
    filter: brightness(1.05);
    transform: translateY(-8px) scale(1.025);
}

.mh-product-card:hover img,
.mh-product-card.is-focused img { filter: saturate(1.08) brightness(0.94); transform: scale(1.075); }
.mh-product-card.is-focused::after { opacity: 1; }

.mh-product-progress {
    position: relative;
    z-index: 1;
    display: grid;
    height: 3px;
    margin: 8px 8px 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.mh-product-progress i { background: rgba(255, 255, 255, 0.09); }
.mh-product-progress i.is-done { background: rgba(53, 232, 255, 0.38); }
.mh-product-progress i.is-active { background: linear-gradient(90deg, var(--mh-pink), var(--mh-cyan)); box-shadow: 0 0 10px rgba(53, 232, 255, 0.42); }

.mh-family-section,
.mh-flash-sale,
.mh-explorer {
    position: relative;
    padding: 96px 0 108px;
}

.mh-family-section { padding-block: 64px 76px; background: #070b15; }
.mh-flash-sale { background: linear-gradient(135deg, #050912, #09101d 62%, #080b15); }
.mh-explorer { background: #03060c; }

.mh-section-heading--compact h2,
.mh-sale-heading h2 {
    margin: 0;
    font-family: var(--mh-display);
    font-size: clamp(38px, 4.5vw, 66px);
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.mh-family-track {
    display: grid;
    margin-top: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.mh-family-node {
    position: relative;
    display: grid;
    width: clamp(82px, 8vw, 112px);
    min-width: 0;
    min-height: 138px;
    padding: 0;
    border: 0;
    margin-inline: auto;
    background: transparent;
    color: var(--mh-accent);
    grid-template-rows: auto auto;
    place-items: center;
    align-content: center;
    gap: 11px;
    isolation: isolate;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-family-node::after {
    position: absolute;
    z-index: -1;
    top: 42%;
    left: 50%;
    width: 92%;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-top-color: rgba(var(--mh-accent-rgb), 0.54);
    border-right-color: rgba(var(--mh-accent-rgb), 0.16);
    border-radius: 50%;
    content: '';
    opacity: 0.62;
    transform: translate(-50%, -50%) rotate(28deg) scale(0.92);
    transition: border-color 260ms ease, opacity 260ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-family-icon {
    position: relative;
    display: grid;
    width: 74%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, rgba(var(--mh-accent-rgb), 0.42), rgba(var(--mh-accent-rgb), 0.08));
    clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.38));
    place-items: center;
    transition: filter 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-family-icon::before {
    position: absolute;
    inset: 2px;
    content: '';
    background:
        radial-gradient(circle at 50% 38%, rgba(var(--mh-accent-rgb), 0.14), transparent 58%),
        #08111e;
    clip-path: inherit;
}

.mh-family-icon::after {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(var(--mh-accent-rgb), 0.16);
    content: '';
    clip-path: inherit;
}

.mh-family-glyph {
    position: relative;
    z-index: 2;
    width: 56%;
    height: 56%;
    filter: drop-shadow(0 0 9px rgba(var(--mh-accent-rgb), 0.38));
    transition: filter 260ms ease, transform 320ms ease;
}

.mh-family-label {
    max-width: 100%;
    overflow: hidden;
    color: rgba(224, 236, 250, 0.7);
    font-family: var(--mh-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1;
    text-align: center;
    text-overflow: clip;
    text-shadow: 0 0 12px rgba(var(--mh-accent-rgb), 0.18);
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 220ms ease, letter-spacing 280ms ease, text-shadow 220ms ease, transform 280ms ease;
}

.mh-family-node:hover::after {
    border-top-color: rgba(var(--mh-accent-rgb), 1);
    border-right-color: rgba(var(--mh-accent-rgb), 0.72);
    border-bottom-color: rgba(var(--mh-accent-rgb), 0.36);
    opacity: 1;
    transform: translate(-50%, -50%) rotate(176deg) scale(1.08);
}

.mh-family-node:hover .mh-family-icon {
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 24px rgba(var(--mh-accent-rgb), 0.46));
    transform: rotate(-3deg) scale(1.12);
}

.mh-family-node:hover .mh-family-icon::after {
    border-color: rgba(var(--mh-accent-rgb), 0.42);
}

.mh-family-node:hover .mh-family-glyph {
    filter: drop-shadow(0 0 18px rgba(var(--mh-accent-rgb), 0.92));
    transform: translateY(-2px) scale(1.12);
}

.mh-family-node:hover .mh-family-label {
    color: var(--mh-accent);
    text-shadow: 0 0 14px rgba(var(--mh-accent-rgb), 0.5);
}

.mh-family-node:hover .mh-family-label {
    letter-spacing: 0.17em;
    transform: translateY(2px);
}

.mh-family-node:focus-visible {
    outline: 2px solid rgba(var(--mh-accent-rgb), 0.92);
    outline-offset: 5px;
    border-radius: 50%;
}

.mh-family-node--all {
    --mh-accent: var(--mh-cyan);
    --mh-accent-rgb: 53, 232, 255;
}

.mh-sale-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.mh-sale-heading > span { display: inline-flex; min-height: 34px; padding: 0 11px; border: 1px solid rgba(255, 199, 90, 0.25); background: rgba(255, 199, 90, 0.07); color: var(--mh-amber); font-family: var(--mh-display); font-size: 10px; font-weight: 700; align-items: center; gap: 7px; }
.mh-sale-grid { display: grid; margin-top: 42px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.mh-sale-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 148px;
    padding: 13px 15px 13px 126px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(10, 17, 30, 0.9);
    color: var(--mh-text);
    text-align: left;
    grid-template-columns: 1fr auto;
    align-items: end;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    transition: border-color 220ms ease, box-shadow 260ms ease, transform 260ms ease;
}
.mh-sale-media { position: absolute; top: 0; bottom: 0; left: 0; width: 112px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.mh-sale-media::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, transparent, rgba(10, 17, 30, 0.88)); }
.mh-sale-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 380ms ease; }
.mh-sale-copy { display: grid; min-width: 0; }
.mh-sale-copy small { color: var(--mh-accent); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mh-sale-copy strong { margin-top: 4px; overflow: hidden; font-family: var(--mh-display); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.mh-sale-copy em { margin-top: 9px; color: var(--mh-amber); font-size: 11px; font-style: normal; font-weight: 700; }
.mh-sale-slot { position: absolute; top: 12px; right: 13px; color: rgba(255, 255, 255, 0.32); font-family: var(--mh-display); font-size: 9px; letter-spacing: 0.12em; }
.mh-sale-card > svg { color: var(--mh-accent); }
.mh-sale-card:hover { border-color: rgba(var(--mh-accent-rgb), 0.55); box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35); transform: translateY(-5px); }
.mh-sale-card:hover img { transform: scale(1.07); }

.mh-section-heading--explorer { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.mh-explorer-count { display: flex; align-items: end; gap: 11px; }
.mh-explorer-count > span { color: var(--mh-cyan); font-family: var(--mh-display); font-size: 60px; font-weight: 650; line-height: 0.8; }
.mh-explorer-count small { color: var(--mh-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; }

.mh-filter-rail {
    position: sticky;
    z-index: 10;
    top: 78px;
    display: flex;
    min-height: 48px;
    margin: 48px 0 24px;
    overflow-x: auto;
    border: 1px solid var(--mh-line);
    background: rgba(5, 10, 18, 0.9);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
}
.mh-filter-rail::-webkit-scrollbar { display: none; }
.mh-filter-rail > span,
.mh-filter-rail button,
.mh-filter-rail em { display: flex; min-width: max-content; padding: 0 17px; border: 0; border-right: 1px solid var(--mh-line); background: transparent; color: var(--mh-muted); font-size: 11px; font-style: normal; font-weight: 700; align-items: center; gap: 7px; }
.mh-filter-rail > span { color: var(--mh-text-soft); font-family: var(--mh-display); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.mh-filter-rail button:hover { color: var(--mh-text); background: rgba(255, 255, 255, 0.035); }
.mh-filter-rail button.is-active { color: #031116; background: var(--mh-cyan); }
.mh-filter-rail em { margin-left: auto; border-right: 0; }

.mh-game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; perspective: 1200px; }
.mh-game-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: #09111e;
    color: var(--mh-text);
    text-align: left;
    clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 21px 100%, 0 calc(100% - 21px));
    transform-style: preserve-3d;
    transition: border-color 220ms ease, box-shadow 260ms ease;
}
.mh-game-card:hover { z-index: 3; border-color: rgba(var(--mh-accent-rgb), 0.62); box-shadow: 0 30px 78px rgba(0, 0, 0, 0.44), 0 0 42px rgba(var(--mh-accent-rgb), 0.08); }
.mh-game-card::after { position: absolute; z-index: 6; right: 0; bottom: 0; width: 46px; height: 2px; content: ''; background: var(--mh-accent); box-shadow: 0 0 14px var(--mh-accent); }
.mh-game-card-index { position: absolute; z-index: 8; top: 12px; right: 13px; color: rgba(255, 255, 255, 0.58); font-family: var(--mh-display); font-size: 8px; letter-spacing: 0.14em; }
.mh-game-media { position: absolute; inset: 0; overflow: hidden; background: #08111d; }
.mh-game-media::after { position: absolute; z-index: 3; inset: 0; content: ''; background: linear-gradient(180deg, rgba(4, 8, 15, 0.02) 40%, rgba(4, 8, 15, 0.18) 57%, rgba(5, 10, 18, 0.96) 79%, #050a12 100%); }
.mh-game-media img { width: 100%; height: 100%; object-fit: cover; }
.mh-game-media-grid { position: absolute; z-index: 2; inset: 0; opacity: 0.18; background-image: linear-gradient(rgba(var(--mh-accent-rgb), 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--mh-accent-rgb), 0.2) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(180deg, transparent, #000); }
.mh-game-status { position: absolute; z-index: 4; top: 11px; left: 11px; display: flex; min-height: 23px; padding: 0 8px; background: rgba(3, 7, 13, 0.82); color: var(--mh-accent); font-size: 7px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; align-items: center; gap: 5px; }
.mh-game-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.mh-game-card-body { position: absolute; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; min-height: 104px; padding: 14px 14px 15px; align-content: end; }
.mh-game-card-meta { color: var(--mh-accent); font-size: 8px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.mh-game-card-body > strong { display: block; width: 100%; margin-top: 5px; overflow: hidden; font-family: var(--mh-display); font-size: clamp(17px, 1.55vw, 23px); letter-spacing: -0.045em; line-height: 1.05; text-overflow: clip; white-space: nowrap; }
.mh-game-card-footer { display: flex; margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.065); color: #7c8a9e; font-size: 8px; font-weight: 700; align-items: center; justify-content: space-between; }
.mh-game-card-footer span { display: flex; align-items: center; gap: 5px; }
.mh-game-card-footer span:last-child { color: var(--mh-text-soft); font-family: var(--mh-display); font-size: 8px; text-transform: uppercase; }

.mh-empty-state { display: grid; min-height: 330px; border: 1px dashed rgba(53, 232, 255, 0.24); background: rgba(53, 232, 255, 0.025); text-align: center; place-items: center; align-content: center; }
.mh-empty-state > span { display: grid; width: 58px; height: 58px; border: 1px solid var(--mh-line-strong); color: var(--mh-cyan); place-items: center; transform: rotate(45deg); }
.mh-empty-state > span svg { transform: rotate(-45deg); }
.mh-empty-state h3 { margin: 22px 0 0; font-family: var(--mh-display); font-size: 23px; }
.mh-empty-state button { min-height: 42px; padding: 0 17px; border: 1px solid rgba(53, 232, 255, 0.36); margin-top: 20px; background: rgba(53, 232, 255, 0.08); color: var(--mh-cyan); font-weight: 700; }

.mh-preview-backdrop {
    position: fixed;
    z-index: 150;
    inset: 0;
    display: flex;
    background: rgba(1, 3, 8, 0.78);
    backdrop-filter: blur(10px);
    justify-content: flex-end;
}

.mh-preview {
    position: relative;
    width: min(720px, 54vw);
    height: 100dvh;
    overflow-y: auto;
    border-left: 1px solid rgba(var(--mh-accent-rgb), 0.45);
    background: #070d17;
    color: var(--mh-text);
    box-shadow: -38px 0 120px rgba(0, 0, 0, 0.58);
    overscroll-behavior: contain;
}

.mh-preview-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: grid;
    min-height: 58px;
    padding: 0 16px;
    border-bottom: 1px solid var(--mh-line);
    background: rgba(5, 10, 18, 0.9);
    backdrop-filter: blur(18px);
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.mh-preview-header > span { color: var(--mh-accent); font-family: var(--mh-display); font-size: 9px; font-weight: 700; letter-spacing: 0.13em; }
.mh-preview-back,
.mh-preview-close { display: flex; min-height: 38px; padding: 0 10px; border: 0; background: transparent; color: var(--mh-text-soft); font-size: 12px; font-weight: 700; align-items: center; gap: 8px; }
.mh-preview-back { justify-self: start; }
.mh-preview-close { width: 38px; padding: 0; justify-self: end; justify-content: center; }
.mh-preview-back:hover,
.mh-preview-close:hover { color: var(--mh-accent); }

.mh-preview-hero { position: relative; height: min(47vh, 470px); min-height: 360px; overflow: hidden; background: #08111d; }
.mh-preview-hero > img { width: 100%; height: 100%; object-fit: cover; }
.mh-preview-hero::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, rgba(2, 5, 10, 0.08), rgba(2, 5, 10, 0.18) 38%, #070d17 100%); }
.mh-preview-hero-grid { position: absolute; z-index: 2; inset: 0; opacity: 0.18; background-image: linear-gradient(rgba(var(--mh-accent-rgb), 0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--mh-accent-rgb), 0.28) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(180deg, transparent, #000); }
.mh-preview-title { position: absolute; z-index: 3; right: 34px; bottom: 34px; left: 34px; }
.mh-preview-title small { color: var(--mh-accent); font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.mh-preview-title h2 { margin: 7px 0 0; font-family: var(--mh-display); font-size: clamp(40px, 4.2rem, 70px); letter-spacing: -0.06em; line-height: 0.95; }
.mh-preview-title p { max-width: 590px; margin: 13px 0 0; color: #aab8ca; font-size: 16px; line-height: 1.48; }
.mh-preview-body { padding: 20px 34px 44px; }
.mh-preview-signal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mh-preview-signal-row span { display: flex; min-height: 45px; padding: 0 13px; border: 1px solid var(--mh-line); background: rgba(255, 255, 255, 0.026); color: #8290a5; font-size: 11px; align-items: center; gap: 7px; }
.mh-preview-signal-row svg { color: var(--mh-accent); }
.mh-preview-signal-row b { color: var(--mh-text-soft); font-family: var(--mh-display); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.mh-preview-family-list { margin-top: 32px; }
.mh-preview-family-list > header { display: flex; margin-bottom: 12px; align-items: center; justify-content: space-between; }
.mh-preview-family-list header p { margin: 0; font-family: var(--mh-display); font-size: 16px; font-weight: 650; }
.mh-preview-family-list header small { color: var(--mh-muted); }
.mh-preview-family-list article { display: grid; min-height: 68px; padding: 10px 12px; border-top: 1px solid var(--mh-line); grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; }
.mh-preview-family-list article > span { color: var(--mh-accent); font-family: var(--mh-display); font-size: 11px; }
.mh-preview-family-list article > div { display: grid; }
.mh-preview-family-list article strong { font-family: var(--mh-display); font-size: 13px; }
.mh-preview-family-list article small { color: var(--mh-muted); font-size: 11px; }
.mh-preview-family-list article em { display: flex; min-height: 24px; padding: 0 8px; background: rgba(86, 140, 255, 0.09); color: #87a9ff; font-size: 9px; font-style: normal; font-weight: 700; text-transform: uppercase; align-items: center; gap: 5px; }
.mh-preview-family-list article em.is-locked { background: rgba(255, 199, 90, 0.08); color: var(--mh-amber); }
.mh-preview-notice { display: grid; margin-top: 26px; padding: 17px; border: 1px solid rgba(255, 199, 90, 0.18); background: linear-gradient(100deg, rgba(255, 199, 90, 0.08), transparent); grid-template-columns: 28px 1fr; gap: 12px; }
.mh-preview-notice > svg { color: var(--mh-amber); }
.mh-preview-notice strong { font-family: var(--mh-display); font-size: 12px; }
.mh-preview-notice p { margin: 5px 0 0; color: #8896aa; font-size: 13px; line-height: 1.4; }
.mh-preview-cta { display: flex; width: 100%; min-height: 49px; margin-top: 18px; border: 1px solid var(--mh-line); background: rgba(255, 255, 255, 0.025); color: #66748a; font-family: var(--mh-display); font-size: 11px; font-weight: 700; justify-content: center; align-items: center; gap: 9px; }

.mh-footer { position: relative; border-top: 1px solid var(--mh-line); background: #02040a; }
.mh-footer-main { display: grid; min-height: 240px; padding-block: 50px; grid-template-columns: 1.2fr 0.75fr 0.55fr; align-items: start; gap: 70px; }
.mh-footer .brand-logo { width: 180px; }
.mh-footer-main > div > p { max-width: 430px; margin: 18px 0 0; color: #7d8b9f; font-size: 14px; line-height: 1.5; }
.mh-footer-main nav { display: grid; gap: 8px; }
.mh-footer-main nav a { min-height: 32px; color: #8d9aaf; font-family: var(--mh-display); font-size: 11px; font-weight: 650; }
.mh-footer-main nav a:hover { color: var(--mh-cyan); }
.mh-footer-top { display: inline-flex; min-height: 44px; padding: 0 15px; border: 1px solid var(--mh-line); color: var(--mh-text-soft); font-size: 12px; font-weight: 700; align-items: center; gap: 8px; justify-self: end; }
.mh-footer-top:hover { border-color: rgba(53, 232, 255, 0.4); color: var(--mh-cyan); }
.mh-footer-status { display: flex; min-height: 50px; border-top: 1px solid rgba(255, 255, 255, 0.055); color: #66748a; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; align-items: center; gap: 22px; }
.mh-footer-status span { display: flex; align-items: center; gap: 6px; }
.mh-footer-status span:last-child { margin-left: auto; }
.mh-footer-status svg { color: var(--mh-cyan); }
.mh-footer-status span:nth-child(2) svg { color: var(--mh-amber); }

@media (min-width: 901px) {
    .market-home { padding-left: 106px; }
}

@media (max-width: 1240px) {
    .mh-shell { width: min(100% - 42px, 1120px); }
    .mh-mainbar-inner { grid-template-columns: 160px minmax(290px, 1fr) 164px; gap: 18px; }
    .mh-family-track { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .mh-product-card { min-height: 350px; }
    .mh-sale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
}

@media (max-width: 980px) {
    .mh-shell { width: min(100% - 34px, 900px); }
    .mh-utility { display: none; }
    .mh-mainbar-inner { min-height: 68px; grid-template-columns: 138px minmax(250px, 1fr) 44px; gap: 14px; }
    .mh-header .brand-logo { width: 138px; }
    .mh-account { grid-template-columns: 42px; }
    .mh-account > span:nth-child(2),
    .mh-account > svg { display: none; }
    .mh-filter-rail { top: 68px; }
    .mh-hero { min-height: auto; }
    .mh-hero-layout { padding-block: 28px; }
    .mh-product-slide { min-height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-hero-category-controls { right: 8px; left: 8px; }
    .mh-product-card { min-height: 320px; }
    .mh-family-section,
    .mh-flash-sale,
    .mh-explorer { padding-block: 82px 92px; }
    .mh-family-section { padding-block: 56px 68px; }
    .mh-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .mh-footer-main { grid-template-columns: 1.2fr 0.8fr; }
    .mh-footer-top { grid-column: 2; justify-self: start; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .market-home { padding-top: 88px; }
    .mh-header { top: 78px; }
    .mh-mainbar-inner { grid-template-columns: 1fr; }
    .mh-header .brand-mark,
    .mh-account { display: none; }
    .mh-search { width: min(680px, 100%); margin-inline: auto; }
    .mh-filter-rail { top: 146px; }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 69px; }
    body.marketplace-home-active { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    body.marketplace-home-active .top-navigation { display: none; }
    .mh-shell { width: min(100% - 26px, 660px); }
    .mh-header { top: 0; }
    .mh-mainbar-inner { min-height: 64px; grid-template-columns: 120px 1fr 40px; gap: 9px; }
    .mh-header .brand-logo { width: 120px; }
    .mh-search { height: 42px; grid-template-columns: 38px 1fr 35px; }
    .mh-search input { font-size: 14px; }
    .mh-search kbd { display: none; }
    .mh-search-panel { position: fixed; top: 70px; right: 13px; left: 13px; }
    .mh-account > span:first-child { width: 40px; height: 40px; }
    .mh-hero { scroll-margin-top: 64px; }
    .mh-hero-layout { padding-block: 20px; }
    .mh-product-slide { padding-inline: 0; gap: 9px; }
    .mh-product-card { min-height: 248px; transform: none; }
    .mh-product-card:hover,
    .mh-product-card.is-focused { transform: translateY(-4px) scale(1.012); }
    .mh-product-card-copy { right: 13px; bottom: 16px; left: 14px; }
    .mh-product-card-copy strong { font-size: 22px; }
    .mh-product-card-top { top: 11px; right: 11px; left: 11px; }
    .mh-section-heading h2,
    .mh-section-heading--compact h2,
    .mh-sale-heading h2 { font-size: clamp(36px, 10vw, 54px); }
    .mh-family-track {
        margin-inline: -13px;
        padding: 12px 13px 20px;
        overflow-x: auto;
        grid-template-columns: none;
        grid-auto-columns: 76px;
        grid-auto-flow: column;
        gap: 9px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .mh-family-track::-webkit-scrollbar { display: none; }
    .mh-family-node { width: 76px; min-height: 104px; gap: 8px; scroll-snap-align: start; }
    .mh-family-label { font-size: 8px; letter-spacing: 0.08em; }
    .mh-sale-heading { align-items: start; flex-direction: column; }
    .mh-sale-grid { grid-template-columns: 1fr; }
    .mh-section-heading--explorer { align-items: start; }
    .mh-explorer-count > span { font-size: 46px; }
    .mh-filter-rail { top: 64px; margin-top: 34px; }
    .mh-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .mh-game-card-body { min-height: 92px; padding: 11px 11px 12px; }
    .mh-game-card-body > strong { font-size: 18px; }
    .mh-game-card-footer { margin-top: 8px; padding-top: 7px; }
    .mh-preview { width: 100%; border-left: 0; }
    .mh-preview-header { grid-template-columns: 1fr auto; }
    .mh-preview-header > span { display: none; }
    .mh-footer-main { grid-template-columns: 1fr; gap: 30px; }
    .mh-footer-top { grid-column: auto; }
    .mh-footer-status { flex-wrap: wrap; padding-block: 14px; gap: 8px 16px; }
    .mh-footer-status span:last-child { width: 100%; margin-left: 0; }
}

@media (max-width: 520px) {
    .mh-shell { width: calc(100% - 22px); }
    .mh-mainbar-inner { grid-template-columns: 43px 1fr 40px; }
    .mh-header .brand-logo { width: 43px; height: 43px; object-fit: cover; object-position: left; }
    .mh-search { grid-template-columns: 35px 1fr 33px; }
    .mh-search input::placeholder { color: transparent; }
    .mh-hero-layout { padding-block: 16px 20px; }
    .mh-overline { font-size: 9px; letter-spacing: 0.13em; }
    .mh-product-card { min-height: 222px; }
    .mh-product-card-copy strong { font-size: 19px; }
    .mh-product-card-top small { padding: 5px 6px; font-size: 8px; }
    .mh-family-section,
    .mh-flash-sale,
    .mh-explorer { padding-block: 68px 76px; }
    .mh-family-section { padding-block: 46px 58px; }
    .mh-family-node { min-height: 104px; }
    .mh-sale-card { min-height: 140px; padding-left: 116px; }
    .mh-sale-media { width: 104px; }
    .mh-section-heading--explorer { display: block; }
    .mh-explorer-count { margin-top: 22px; }
    .mh-filter-rail > span { display: none; }
    .mh-preview-hero { min-height: 315px; }
    .mh-preview-title { right: 20px; bottom: 24px; left: 20px; }
    .mh-preview-title h2 { font-size: 39px; }
    .mh-preview-title p { font-size: 14px; }
    .mh-preview-body { padding: 18px 18px 38px; }
    .mh-preview-signal-row { grid-template-columns: 1fr; }
    .mh-preview-family-list > header { display: grid; gap: 4px; }
    .mh-preview-family-list article { grid-template-columns: 34px 1fr; }
    .mh-preview-family-list article em { grid-column: 2; width: max-content; margin-top: 5px; }
    .mh-footer-main { min-height: auto; padding-block: 40px; }
}

@media (pointer: coarse) {
    .mh-hero-category-controls { display: none; }
    .mh-family-node:hover,
    .mh-sale-card:hover,
    .mh-game-card:hover { transform: none; }
    .mh-mainbar,
    .mh-filter-rail,
    .mh-preview-header { backdrop-filter: blur(12px); }
}

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

body{margin:0;font-family:system-ui,sans-serif}*{box-sizing:border-box}