:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-soft: #f0f1f4;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-solid: #ffffff;
    --text: #08090c;
    --muted: #5d626b;
    --muted-2: #8d929b;
    --line: rgba(8, 9, 12, 0.1);
    --line-strong: rgba(8, 9, 12, 0.15);
    --accent: #1677ff;
    --telegram: #2aabee;
    --button-text: #ffffff;
    --button-bg: #050609;
    --shadow: 0 18px 44px rgba(30, 34, 44, 0.12);
    --card-shadow: 0 10px 24px rgba(28, 32, 42, 0.1);
    --hero-glow: radial-gradient(circle at 63% 18%, rgba(10, 123, 255, 0.12), transparent 28%),
        radial-gradient(circle at 44% 52%, rgba(255, 115, 35, 0.13), transparent 30%);
    --header-bg: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] {
    --bg: #050608;
    --surface: #090a0d;
    --surface-soft: #101216;
    --panel: rgba(18, 19, 24, 0.76);
    --panel-solid: #101116;
    --text: #f7f7f8;
    --muted: #b8bac1;
    --muted-2: #7f8490;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #2384ff;
    --button-text: #08090c;
    --button-bg: #ffffff;
    --shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
    --card-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    --hero-glow: radial-gradient(circle at 62% 18%, rgba(31, 119, 255, 0.2), transparent 30%),
        radial-gradient(circle at 39% 55%, rgba(255, 91, 24, 0.18), transparent 32%);
    --header-bg: rgba(5, 6, 8, 0.7);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    background:
        var(--hero-glow),
        linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

button {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    min-height: 76px;
    padding: 14px clamp(28px, 4vw, 60px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav,
.hero-actions,
.hero-stats,
.chips,
.sort-chips,
.wallpaper-meta,
.wallpaper-card-actions,
.feature-strip,
.social-links,
.footer-social,
.site-footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    width: max-content;
    font-size: 19px;
    font-weight: 820;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.04)),
        conic-gradient(from 210deg, #18c8ff, #8a5cff, #ff4d8d, #ffb33f, #18c8ff);
    box-shadow:
        0 12px 28px rgba(29, 91, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    color: #ffffff;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1;
}

.brand-mark::before {
    position: absolute;
    inset: 5px;
    border-radius: 9px;
    background: rgba(4, 5, 8, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    content: "";
}

.brand-mark span {
    position: relative;
    z-index: 1;
    transform: translateX(-1px);
}

.brand-name {
    letter-spacing: -0.02em;
}

.main-nav {
    justify-content: center;
    gap: clamp(30px, 4vw, 58px);
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

.main-nav a {
    position: relative;
    opacity: 0.92;
}

.main-nav a:hover {
    opacity: 1;
}

.nav-new::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateY(-50%);
}

.header-actions {
    justify-content: flex-end;
    gap: 12px;
}

.button,
.icon-button,
.chips a,
.chips span,
.sort-chips a,
.sort-chip,
.theme-switch {
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 750;
}

.button svg,
.hero-stats svg,
.feature-strip svg,
.icon-button svg,
.card-device-icon svg,
.theme-switch svg,
.chips svg,
.social-links svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-switch {
    width: 76px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.theme-switch-track {
    position: relative;
    display: block;
    width: 76px;
    height: 38px;
    border: 1px solid rgba(10, 14, 24, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 34px rgba(31, 40, 58, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        inset 0 -1px 0 rgba(9, 11, 16, 0.04);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.theme-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow:
        0 5px 14px rgba(18, 25, 40, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 180ms ease-out, background 160ms ease;
    will-change: transform;
}

.theme-switch-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
    transition: opacity 120ms ease;
}

.theme-switch-sun {
    color: #111318;
    opacity: 1;
}

.theme-switch-moon {
    color: #f1c232;
    opacity: 0;
}

:root[data-theme="dark"] .theme-switch-track {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .theme-switch-knob {
    transform: translateX(38px);
    background: #ffffff;
}

:root[data-theme="dark"] .theme-switch-sun {
    opacity: 0;
}

:root[data-theme="dark"] .theme-switch-moon {
    opacity: 1;
}

.theme-switch:hover .theme-switch-track {
    box-shadow:
        0 16px 38px rgba(31, 40, 58, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(9, 11, 16, 0.04);
}

.site-main {
    overflow: hidden;
}

.hero,
.wallpaper-section,
.archive-hero,
article.single-wallpaper {
    width: min(100% - 56px, 1550px);
    margin: 0 auto;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(520px, 1.18fr);
    gap: clamp(30px, 6vw, 86px);
    align-items: center;
    min-height: 350px;
    padding: clamp(34px, 5vw, 72px) 0 clamp(22px, 3vw, 42px);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 20% 0 -8%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 34% 50%, rgba(255, 101, 37, 0.2), transparent 34%),
        radial-gradient(ellipse at 57% 38%, rgba(26, 116, 255, 0.24), transparent 34%);
    filter: blur(10px);
}

.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    pointer-events: none;
    --mx: 0px;
    --my: 0px;
}

.hero-mark {
    position: absolute;
    display: grid;
    place-items: center;
    color: var(--mark-color, color-mix(in srgb, var(--accent) 56%, var(--text)));
    opacity: var(--mark-opacity, 0.4);
    transform: translate3d(calc(var(--mx) * var(--move-x, 1)), calc(var(--my) * var(--move-y, 1)), 0) rotate(var(--rotate, 0deg));
    animation: heroMarkFloat var(--duration, 13s) ease-in-out infinite;
    will-change: transform;
}

.hero-mark svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-mark path {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 12px 18px rgba(31, 70, 130, 0.14));
}

.hero-mark-cross {
    width: 28px;
    height: 28px;
}

.hero-mark-plus {
    width: 26px;
    height: 26px;
}

.hero-mark-cross::before,
.hero-mark-cross::after,
.hero-mark-plus::before,
.hero-mark-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 12px 18px rgba(31, 70, 130, 0.14);
}

.hero-mark-cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.hero-mark-cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hero-mark-plus::before {
    transform: translate(-50%, -50%);
}

.hero-mark-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.hero-mark-dash {
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 12px 18px rgba(31, 70, 130, 0.14);
}

.hero-mark-wave {
    width: 92px;
    height: 30px;
}

.hero-mark-loop {
    width: 58px;
    height: 58px;
}

.hero-mark-zigzag {
    width: 64px;
    height: 30px;
}

.hero-mark-scratch {
    width: 48px;
    height: 34px;
}

.hero-mark-spark {
    width: 18px;
    height: 18px;
}

.hero-mark-spark::before,
.hero-mark-spark::after {
    content: "";
    position: absolute;
    inset: 8px 0 auto 0;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 12px 18px rgba(31, 70, 130, 0.12);
}

.hero-mark-spark::after {
    transform: rotate(90deg);
}

.hero-tint-red {
    --mark-color: #c77a76;
}

.hero-tint-green {
    --mark-color: #72a98f;
}

.hero-tint-blue {
    --mark-color: #7f9cc6;
}

.hero-tint-yellow {
    --mark-color: #c4a75b;
}

.hero-tint-purple {
    --mark-color: #9980bd;
}

.hero-mark-1 {
    top: 58px;
    left: 5%;
    --move-x: -0.36;
    --move-y: -0.22;
    --rotate: -8deg;
}

.hero-mark-2 {
    top: 92px;
    left: 27%;
    --mark-opacity: 0.24;
    --move-x: 0.18;
    --move-y: -0.34;
    --rotate: 10deg;
    --duration: 16s;
}

.hero-mark-3 {
    top: 70px;
    right: 42%;
    --mark-opacity: 0.22;
    --move-x: -0.28;
    --move-y: 0.18;
    --rotate: -12deg;
    --duration: 14s;
}

.hero-mark-4 {
    right: 4%;
    top: 76px;
    --mark-opacity: 0.24;
    --move-x: 0.22;
    --move-y: -0.2;
    --rotate: -7deg;
    --duration: 18s;
}

.hero-mark-5 {
    left: 30%;
    bottom: 144px;
    --mark-opacity: 0.2;
    --move-x: 0.3;
    --move-y: 0.32;
    --rotate: 18deg;
    --duration: 15s;
}

.hero-mark-6 {
    left: 1%;
    bottom: 116px;
    --mark-opacity: 0.22;
    --move-x: -0.16;
    --move-y: 0.28;
    --rotate: 80deg;
    --duration: 17s;
}

.hero-mark-7 {
    left: 38%;
    bottom: 46px;
    width: 24px;
    --mark-opacity: 0.34;
    --move-x: 0.12;
    --move-y: 0.38;
    --rotate: 0deg;
    --duration: 12s;
}

.hero-mark-8 {
    top: 176px;
    left: 8%;
    --mark-opacity: 0.18;
    --move-x: 0.22;
    --move-y: -0.26;
    --rotate: 6deg;
    --duration: 19s;
}

.hero-mark-9 {
    top: 232px;
    left: 21%;
    --mark-opacity: 0.18;
    --move-x: -0.22;
    --move-y: 0.18;
    --rotate: 10deg;
    --duration: 15s;
}

.hero-mark-10 {
    top: 224px;
    right: 35%;
    --mark-opacity: 0.16;
    --move-x: 0.18;
    --move-y: -0.2;
    --rotate: -12deg;
    --duration: 17s;
}

.hero-mark-11 {
    right: 13%;
    bottom: 244px;
    --mark-opacity: 0.2;
    --move-x: -0.18;
    --move-y: 0.24;
    --rotate: -8deg;
    --duration: 16s;
}

.hero-mark-12 {
    left: 14%;
    bottom: 238px;
    --mark-opacity: 0.16;
    --move-x: 0.14;
    --move-y: 0.28;
    --rotate: -4deg;
    --duration: 18s;
}

.hero-mark-13 {
    top: 42px;
    right: 15%;
    width: 34px;
    --mark-opacity: 0.22;
    --move-x: 0.2;
    --move-y: -0.18;
    --rotate: 88deg;
    --duration: 14s;
}

.hero-mark-14 {
    left: 44%;
    top: 300px;
    --mark-opacity: 0.14;
    --move-x: -0.12;
    --move-y: 0.18;
    --rotate: 18deg;
    --duration: 20s;
}

.hero-mark-15 {
    top: 102px;
    left: 13%;
    width: 46px;
    height: 46px;
    --mark-opacity: 0.17;
    --move-x: -0.2;
    --move-y: -0.16;
    --rotate: 14deg;
    --duration: 21s;
}

.hero-mark-16 {
    top: 46px;
    left: 22%;
    width: 36px;
    height: 32px;
    --mark-opacity: 0.21;
    --move-x: 0.14;
    --move-y: -0.28;
    --rotate: -8deg;
    --duration: 16s;
}

.hero-mark-17 {
    top: 44px;
    left: 34%;
    width: 110px;
    height: 32px;
    --mark-opacity: 0.2;
    --move-x: 0.18;
    --move-y: -0.22;
    --rotate: 3deg;
    --duration: 20s;
}

.hero-mark-18 {
    top: 74px;
    left: 50%;
    width: 74px;
    height: 30px;
    --mark-opacity: 0.18;
    --move-x: -0.18;
    --move-y: 0.18;
    --rotate: -2deg;
    --duration: 19s;
}

.hero-mark-19 {
    top: 92px;
    right: 12%;
    width: 24px;
    height: 24px;
    --mark-opacity: 0.25;
    --move-x: 0.16;
    --move-y: -0.14;
    --rotate: 12deg;
    --duration: 15s;
}

.hero-mark-20 {
    top: 120px;
    right: 3%;
    width: 88px;
    --mark-opacity: 0.23;
    --move-x: -0.14;
    --move-y: 0.12;
    --rotate: 1deg;
    --duration: 18s;
}

.hero-mark-21 {
    left: 2%;
    bottom: 145px;
    width: 24px;
    height: 24px;
    --mark-opacity: 0.28;
    --move-x: -0.2;
    --move-y: 0.22;
    --rotate: 8deg;
    --duration: 16s;
}

.hero-mark-22 {
    top: 272px;
    left: 35%;
    width: 94px;
    height: 32px;
    --mark-opacity: 0.14;
    --move-x: 0.2;
    --move-y: 0.16;
    --rotate: -5deg;
    --duration: 22s;
}

.hero-mark-23 {
    top: 46px;
    left: 2%;
    --mark-opacity: 0.24;
    --move-x: 0.22;
    --move-y: -0.14;
    --rotate: 14deg;
    --duration: 14s;
}

.hero-mark-24 {
    top: 170px;
    left: 37%;
    --mark-opacity: 0.16;
    --move-x: -0.18;
    --move-y: 0.18;
    --rotate: -10deg;
    --duration: 19s;
}

.hero-mark-25 {
    left: 36%;
    bottom: 128px;
    width: 96px;
    --mark-opacity: 0.14;
    --move-x: 0.24;
    --move-y: 0.2;
    --rotate: -3deg;
    --duration: 24s;
}

.hero-mark-26 {
    right: 28%;
    bottom: 96px;
    width: 54px;
    height: 54px;
    --mark-opacity: 0.13;
    --move-x: -0.16;
    --move-y: 0.24;
    --rotate: 11deg;
    --duration: 23s;
}

.hero-mark-27 {
    top: 198px;
    right: 23%;
    width: 72px;
    --mark-opacity: 0.15;
    --move-x: 0.12;
    --move-y: -0.16;
    --rotate: 7deg;
    --duration: 18s;
}

.hero-mark-28 {
    right: 7%;
    bottom: 104px;
    width: 78px;
    --mark-opacity: 0.17;
    --move-x: -0.16;
    --move-y: 0.18;
    --rotate: -9deg;
    --duration: 20s;
}

.hero-mark-29 {
    left: 6%;
    bottom: 292px;
    --mark-opacity: 0.17;
    --move-x: 0.18;
    --move-y: -0.12;
    --rotate: 12deg;
    --duration: 17s;
}

.hero-mark-30 {
    left: 24%;
    bottom: 72px;
    width: 64px;
    --mark-opacity: 0.18;
    --move-x: -0.14;
    --move-y: 0.2;
    --rotate: -4deg;
    --duration: 21s;
}

body.dark-mode .hero-mark,
:root[data-theme="dark"] .hero-mark {
    opacity: calc(var(--mark-opacity, 0.4) + 0.04);
}

body.dark-mode .hero-mark path,
:root[data-theme="dark"] .hero-mark path,
body.dark-mode .hero-mark-cross::before,
body.dark-mode .hero-mark-cross::after,
body.dark-mode .hero-mark-plus::before,
body.dark-mode .hero-mark-plus::after,
body.dark-mode .hero-mark-dash,
:root[data-theme="dark"] .hero-mark-cross::before,
:root[data-theme="dark"] .hero-mark-cross::after,
:root[data-theme="dark"] .hero-mark-plus::before,
:root[data-theme="dark"] .hero-mark-plus::after,
:root[data-theme="dark"] .hero-mark-dash {
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 24%, transparent));
}

@keyframes heroMarkFloat {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mark {
        animation: none;
    }
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(56px, 7vw, 90px);
    line-height: 0.94;
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.15;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding-left: clamp(20px, 4vw, 64px);
}

.hero-copy p {
    max-width: 390px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: clamp(22px, 2.1vw, 28px);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.hero-stats {
    gap: 0;
    margin-bottom: 26px;
}

.hero-stats span {
    display: grid;
    min-width: 82px;
    gap: 4px;
    padding: 0 20px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.hero-stats span:first-child {
    padding-left: 0;
}

.hero-stats span:last-child {
    border-right: 0;
}

.hero-stats strong {
    font-size: 18px;
    line-height: 1;
}

.hero-stats svg {
    justify-self: center;
    width: 19px;
    height: 19px;
}

.hero-stats small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 19px;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    white-space: nowrap;
}

.button.primary {
    color: var(--button-text);
    background: var(--button-bg);
    border-color: var(--button-bg);
}

.button.primary:hover,
.app-soon-button:hover {
    transform: translateY(-1px);
}

.button.secondary {
    background: var(--panel);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.button.secondary svg {
    color: var(--telegram);
}

.app-soon-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-soon-short {
    display: none;
}

.app-soon-button::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    content: "";
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 180ms ease, transform 360ms ease;
}

.app-soon-button:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.app-soon-button:hover::after {
    opacity: 1;
    transform: translateX(100%);
}

.hero-showcase {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 330px;
}

.mobile-hero-app {
    display: none;
}

.mobile-app-home {
    display: none;
}

.hero-showcase::before {
    content: "";
    position: absolute;
    inset: 6% 2% 3%;
    z-index: -1;
    border-radius: 36px;
    background:
        radial-gradient(ellipse at 46% 52%, rgba(255, 109, 31, 0.18), transparent 32%),
        radial-gradient(ellipse at 74% 48%, rgba(18, 124, 255, 0.17), transparent 36%);
    filter: blur(12px);
}

.phone-frame {
    position: relative;
    overflow: hidden;
    width: min(23vw, 250px);
    aspect-ratio: 9 / 18.9;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 38px;
    background: #0a0b0e;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 42px rgba(0, 0, 0, 0.24);
}

.phone-frame::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 5;
    width: 72px;
    height: 18px;
    border-radius: 999px;
    background: #050609;
    transform: translateX(-50%);
}

.phone-frame::after {
    content: "9:41";
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 5;
    color: #ffffff;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.phone-frame img,
.phone-frame video,
.phone-frame .live-demo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.phone-frame video,
.phone-frame .live-demo {
    display: block;
}

.main-phone {
    z-index: 4;
    width: min(25vw, 278px);
    transform: translateY(-10px);
}

.side-phone {
    position: absolute;
    z-index: 2;
    width: min(20vw, 220px);
    opacity: 0.98;
}

.side-phone-left {
    left: 7%;
    bottom: 0;
    transform: rotate(-3deg);
}

.side-phone-right {
    right: 7%;
    bottom: 0;
    transform: rotate(4deg);
}

.wallpaper-section {
    padding: 24px 0 42px;
}

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.chips,
.sort-chips {
    flex-wrap: wrap;
    gap: 10px;
}

.chips a,
.chips span,
.sort-chips a,
.sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    font-size: 14px;
}

.chips .is-active,
.sort-chips .is-active {
    color: var(--button-text);
    background: var(--button-bg);
    border-color: var(--button-bg);
}

.sort-chips {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.sort-chip {
    appearance: none;
    position: relative;
    overflow: hidden;
    min-width: 118px;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-size: 15px;
    isolation: isolate;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.sort-chip::before,
.sort-chip::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease, transform 220ms ease;
}

.sort-chip::before {
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: color-mix(in srgb, var(--text) 4%, transparent);
}

.sort-chip::after {
    inset: auto 12px 8px;
    z-index: -1;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0.3);
}

.sort-chip:hover {
    color: var(--text);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.sort-chip:hover::before {
    opacity: 0.85;
}

.sort-chip.is-active {
    color: var(--button-text);
    background: var(--button-bg);
    border-color: var(--button-bg);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.sort-chip.is-active::before {
    opacity: 0;
}

.sort-chip.is-active::after {
    opacity: 0.32;
    transform: scaleX(1);
}

.sort-chip-icon {
    position: relative;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.sort-chip-icon-latest::before,
.sort-chip-icon-latest::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.sort-chip-icon-latest::before {
    inset: 1px;
    border: 2px solid currentColor;
}

.sort-chip-icon-latest::after {
    top: 3px;
    left: 7px;
    width: 2px;
    height: 7px;
    background: currentColor;
    box-shadow: 3px 5px 0 currentColor;
    transform-origin: bottom;
    transform: rotate(-42deg);
}

.sort-chip-icon-popular {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    filter: none;
}

.sort-chip-icon-popular::before {
    content: "🔥";
    position: static;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 15px;
    line-height: 1;
    transform: translateY(-0.5px);
}

.sort-chip-popular.is-active {
    color: var(--button-text);
    background: var(--button-bg);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.sort-chip-popular.is-active .sort-chip-icon-popular::before {
    transform: translateY(-0.5px) scale(1.02);
}

html[data-theme="dark"] .sort-chips {
    background: transparent;
    box-shadow: none;
}

.archive-filter-chips {
    max-width: 980px;
    padding-top: 4px;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 34px;
}

.desktop-category-sections {
    display: grid;
    gap: 42px;
    margin-top: 48px;
}

.desktop-category-section {
    min-width: 0;
}

.desktop-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.desktop-category-head h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(26px, 3vw, 42px);
    line-height: .95;
    letter-spacing: 0;
}

.desktop-category-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--text);
    border-radius: 999px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.desktop-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wallpaper-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wallpaper-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border: 1px solid color-mix(in srgb, var(--line-strong) 86%, transparent);
    border-radius: 8px;
    background: var(--surface-soft);
    box-shadow: var(--card-shadow);
    isolation: isolate;
    transform: translateZ(0);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, filter 220ms ease;
}

.wallpaper-image img,
.wallpaper-image video,
.wallpaper-image .live-demo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(var(--wallpaper-visual-scale, 1));
    transform-origin: center center;
    transition: transform 220ms ease, filter 220ms ease;
}

.wallpaper-card.is-live .wallpaper-image img,
.wallpaper-card.is-live .wallpaper-image video,
.wallpaper-card.is-live .wallpaper-image .live-demo {
    transform: scale(max(var(--wallpaper-visual-scale, 1), 1.2));
}

.wallpaper-image video,
.wallpaper-image .live-demo {
    display: block;
}

.wallpaper-image .live-preview-poster,
.wallpaper-image .live-preview-video,
.mobile-app-card .live-preview-poster,
.mobile-app-card .live-preview-video,
.mobile-app-tile .live-preview-poster,
.mobile-app-tile .live-preview-video {
    position: absolute;
    inset: 0;
}

.live-preview-video[data-video-src] {
    opacity: 0;
}

.live-preview-video.is-live-video-ready {
    opacity: 1;
}

.wallpaper-image::before,
.wallpaper-image::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.wallpaper-image::before {
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 28%, transparent 70%, rgba(255, 255, 255, 0.16)),
        radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 58%);
    background-size: 100% 100%, 100% 100%, 230% 100%;
    background-position: center, center, 140% 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.24),
        inset 0 -24px 42px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transition: opacity 220ms ease, background-position 520ms cubic-bezier(.2, .8, .2, 1);
}

.wallpaper-image::after {
    inset: auto 0 0;
    height: 34%;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
    opacity: 0.82;
    transition: opacity 220ms ease;
}

.wallpaper-card:hover .wallpaper-image img,
.wallpaper-card:hover .wallpaper-image video,
.wallpaper-card:hover .wallpaper-image .live-demo {
    transform: scale(var(--wallpaper-visual-hover-scale, 1.045));
    filter: saturate(1.1) contrast(1.03);
}

.wallpaper-card.is-live:hover .wallpaper-image img,
.wallpaper-card.is-live:hover .wallpaper-image video,
.wallpaper-card.is-live:hover .wallpaper-image .live-demo {
    transform: scale(max(var(--wallpaper-visual-hover-scale, 1.045), 1.245));
}

.wallpaper-card:hover .wallpaper-image,
.wallpaper-card:focus-within .wallpaper-image {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow:
        0 18px 38px rgba(13, 20, 33, 0.16),
        0 8px 22px color-mix(in srgb, var(--accent) 18%, transparent),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    transform: translateY(-4px) scale(1.01);
}

.wallpaper-card:hover .wallpaper-image::before,
.wallpaper-card:focus-within .wallpaper-image::before {
    opacity: 1;
    background-position: center, center, -80% 0;
}

.wallpaper-card:hover .wallpaper-image::after,
.wallpaper-card:focus-within .wallpaper-image::after {
    opacity: 0.62;
}

.wallpaper-grid.is-popular-mode .wallpaper-card {
    transition: transform 260ms ease, opacity 260ms ease;
}

.wallpaper-grid.is-popular-mode .wallpaper-card.is-popular-hot .wallpaper-image {
    border-color: color-mix(in srgb, #ff9a3b 26%, var(--line-strong));
    box-shadow:
        0 16px 34px rgba(20, 20, 24, 0.1),
        0 0 0 1px rgba(255, 184, 75, 0.12);
}

.wallpaper-grid.is-popular-mode .wallpaper-card.is-popular-hot .wallpaper-image::before {
    opacity: 0.54;
    background:
        radial-gradient(circle at 86% 13%, rgba(255, 197, 92, 0.28) 0 1.5px, transparent 3px),
        radial-gradient(circle at 77% 21%, rgba(255, 120, 78, 0.24) 0 1.5px, transparent 3px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 32%, transparent 76%, rgba(255, 169, 64, 0.12));
    background-size: 100% 100%;
}

.wallpaper-grid.is-popular-mode .wallpaper-card.is-popular-hot .wallpaper-image::after {
    height: 36%;
    opacity: 0.7;
    background:
        radial-gradient(circle at 78% 0%, rgba(255, 128, 52, 0.14), transparent 30%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.wallpaper-grid.is-popular-mode .wallpaper-card.is-popular-hot .badge:first-of-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(7, 8, 12, 0.58);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.wallpaper-grid.is-popular-mode .wallpaper-card.is-popular-hot .badge:first-of-type::after {
    content: "🔥";
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 10px;
    line-height: 1;
    transform: translateY(-0.5px);
}

body.dark-mode .wallpaper-card:hover .wallpaper-image,
body.dark-mode .wallpaper-card:focus-within .wallpaper-image {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.46),
        0 0 34px color-mix(in srgb, var(--accent) 22%, transparent),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #ffffff;
    background: rgba(7, 8, 12, 0.52);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.badge-secondary {
    right: 8px;
    left: auto;
}

.badge-new {
    border-color: rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, rgba(28, 124, 255, 0.86), rgba(89, 71, 255, 0.78));
    box-shadow: 0 8px 18px rgba(22, 113, 255, 0.28);
}

.badge-live {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.82), rgba(35, 132, 255, 0.82));
}

.card-device-icon {
    position: absolute;
    left: 9px;
    bottom: 9px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #ffffff;
    background: rgba(7, 8, 12, 0.48);
    backdrop-filter: blur(10px);
}

.card-device-icon svg {
    width: 15px;
    height: 15px;
}

.wallpaper-meta {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 2px 0;
}

.wallpaper-meta > div:first-child {
    min-width: 0;
}

.wallpaper-meta h3,
.wallpaper-meta p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallpaper-meta p,
.site-footer {
    color: var(--muted);
}

.wallpaper-meta p {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
}

.wallpaper-card-actions {
    flex: 0 0 auto;
    gap: 6px;
    padding-top: 1px;
}

.icon-button {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    background: var(--panel);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
    background: var(--surface);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.icon-button svg {
    width: 16px;
    height: 16px;
}

.copy-icon-button.is-copied {
    border-color: color-mix(in srgb, #34d399 70%, var(--line));
    color: #34d399;
}

.copy-icon-button::after {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 10;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-solid);
    box-shadow: var(--shadow);
    color: var(--text);
    content: "Copied";
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.copy-icon-button.is-copied::after {
    opacity: 1;
    transform: translateY(0);
}

.is-preview-open {
    overflow: hidden;
}

.wallpaper-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.wallpaper-preview-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.wallpaper-preview-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 12%, rgba(35, 132, 255, 0.16), transparent 36%),
        rgba(5, 7, 12, 0.72);
    backdrop-filter: blur(16px);
}

.wallpaper-preview-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 390px) minmax(260px, 360px);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
    max-width: min(94vw, 910px);
    max-height: min(92svh, 820px);
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
    outline: none;
    overflow: hidden;
    transform: translateY(14px) scale(0.985);
    transition: transform 180ms ease;
}

.wallpaper-preview-modal.is-open .wallpaper-preview-dialog {
    transform: translateY(0) scale(1);
}

.preview-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-solid);
    box-shadow: var(--shadow);
    color: var(--text);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.preview-close-button:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--surface);
}

.wallpaper-preview-modal svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.preview-phone {
    display: grid;
    place-items: center;
    min-width: 0;
}

.preview-phone-shell {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 9 / 19.2;
    padding: 12px;
    border-radius: 42px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02) 18%, rgba(0, 0, 0, 0.52) 72%),
        #0a0b0f;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 0 0 4px rgba(0, 0, 0, 0.72),
        0 28px 70px rgba(0, 0, 0, 0.38);
}

.preview-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 31px;
    background: #05070c;
    isolation: isolate;
}

.preview-visual,
.preview-visual img,
.preview-visual video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.preview-visual img,
.preview-visual video {
    object-fit: cover;
}

.preview-dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 34%, rgba(0, 0, 0, 0.34)),
        radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.24), transparent 24%);
    pointer-events: none;
}

.preview-dynamic-island {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 3;
    width: 92px;
    height: 27px;
    border-radius: 999px;
    background: #050505;
    transform: translateX(-50%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preview-lock-top {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 2px;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.48);
}

.preview-date {
    font-size: 12px;
    font-weight: 750;
}

.preview-lock-top strong {
    font-size: clamp(54px, 7vw, 74px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.preview-lock-bottom {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
}

.preview-lock-bottom span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(18, 20, 26, 0.46);
    backdrop-filter: blur(14px);
}

.preview-lock-bottom svg {
    width: 19px;
    height: 19px;
}

.preview-panel {
    min-width: 0;
    padding-right: 34px;
}

.preview-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.preview-panel h2 {
    margin-bottom: 10px;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 0.94;
    overflow-wrap: anywhere;
}

.preview-panel p {
    max-width: 320px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}

.preview-actions {
    display: grid;
    gap: 10px;
    align-items: stretch;
}

.preview-actions .button {
    width: 100%;
    justify-content: center;
}

.preview-copy.is-copied {
    border-color: color-mix(in srgb, #34d399 64%, var(--line));
    color: #22c55e;
}

.feature-strip {
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 18px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.feature-strip span {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 2px;
    min-width: 0;
}

.feature-strip svg {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--muted);
}

.feature-strip strong {
    font-size: 14px;
    line-height: 1.1;
}

.feature-strip small {
    color: var(--muted);
    font-size: 13px;
}

.share-button {
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.share-button-label,
.share-button-status,
.share-button svg {
    transition: transform 180ms ease, opacity 180ms ease;
}

.share-button-status {
    position: absolute;
    opacity: 0;
    transform: translateY(18px);
}

.share-button.is-copied {
    border-color: color-mix(in srgb, #34d399 70%, var(--line));
    color: #34d399;
}

.share-button.is-copied .share-button-label,
.share-button.is-copied svg {
    opacity: 0;
    transform: translateY(-18px);
}

.share-button.is-copied .share-button-status {
    opacity: 1;
    transform: translateY(0);
}

.live-demo {
    position: relative;
    overflow: hidden;
    background: #05050a;
}

.live-demo::before,
.live-demo::after {
    position: absolute;
    inset: -22%;
    content: "";
    opacity: 0.9;
    will-change: transform, filter;
}

.live-demo-aurora {
    background:
        radial-gradient(circle at 50% 75%, rgba(255, 189, 85, 0.22), transparent 30%),
        linear-gradient(180deg, #070914 0%, #111e46 54%, #101016 100%);
}

.live-demo-aurora::before {
    background:
        radial-gradient(ellipse at 24% 54%, rgba(0, 215, 255, 0.72), transparent 38%),
        radial-gradient(ellipse at 78% 42%, rgba(255, 77, 141, 0.68), transparent 34%),
        radial-gradient(ellipse at 48% 72%, rgba(112, 255, 183, 0.52), transparent 30%);
    filter: blur(18px) saturate(1.35);
    animation: wallspaceAurora 6s ease-in-out infinite alternate;
}

.live-demo-aurora::after {
    background:
        linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.32) 22%, transparent 28%),
        linear-gradient(68deg, transparent 36%, rgba(255, 255, 255, 0.18) 41%, transparent 48%);
    mix-blend-mode: screen;
    animation: wallspaceSweep 4.8s ease-in-out infinite;
}

.live-demo-liquid {
    background:
        radial-gradient(circle at 20% 18%, #ff4d8d, transparent 32%),
        radial-gradient(circle at 74% 32%, #00d7ff, transparent 34%),
        radial-gradient(circle at 45% 75%, #ffb33f, transparent 38%),
        #120719;
}

.live-demo-liquid::before {
    background:
        conic-gradient(from 90deg at 52% 46%, #00d7ff, #ff4d8d, #ffb33f, #6c5cff, #00d7ff);
    filter: blur(20px) saturate(1.4);
    animation: wallspaceLiquid 7s linear infinite;
}

.live-demo-liquid::after {
    background:
        radial-gradient(circle at 50% 50%, transparent 0 32%, rgba(255, 255, 255, 0.22) 34%, transparent 39%),
        radial-gradient(circle at 34% 58%, transparent 0 18%, rgba(255, 255, 255, 0.18) 19%, transparent 24%);
    mix-blend-mode: screen;
    animation: wallspaceFloat 5.5s ease-in-out infinite alternate;
}

.live-demo-pulse {
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 173, 66, 0.42), transparent 22%),
        #020203;
}

.live-demo-pulse::before {
    background:
        repeating-radial-gradient(circle at 50% 50%, transparent 0 52px, rgba(255, 153, 77, 0.74) 56px, transparent 62px);
    filter: blur(1px);
    animation: wallspacePulse 3.6s ease-in-out infinite;
}

.live-demo-pulse::after {
    background: linear-gradient(180deg, transparent 0 30%, rgba(255, 255, 255, 0.16), transparent 62%);
    mix-blend-mode: screen;
    animation: wallspaceSweep 4.4s ease-in-out infinite;
}

.archive-hero {
    display: grid;
    gap: 14px;
    padding: 48px 0 28px;
}

.archive-hero h1 {
    margin-bottom: 0;
    font-size: clamp(42px, 6vw, 74px);
}

.archive-description,
.single-text {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

article.single-wallpaper {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 420px);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - 76px);
    padding: clamp(28px, 5vw, 58px) 0 clamp(34px, 5vw, 64px);
    overflow: hidden;
}

.single-download-view {
    width: min(980px, calc(100% - 40px));
    margin-inline: auto;
}

.single-back-link {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: var(--shadow);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.single-back-link:hover {
    color: var(--text);
    border-color: var(--line-strong);
    transform: translateX(-2px);
}

.single-back-link svg,
.single-lock-bottom svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.single-phone-preview {
    display: grid;
    justify-items: center;
}

.single-phone-shell {
    position: relative;
    width: min(100%, 320px);
    aspect-ratio: 9 / 19.2;
    padding: 12px;
    border-radius: 44px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03) 18%, rgba(0, 0, 0, 0.58) 72%),
        #0a0b0f;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 0 0 4px rgba(0, 0, 0, 0.72),
        0 28px 80px rgba(0, 0, 0, 0.34);
}

.single-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 32px;
    background: #05070c;
    isolation: isolate;
}

.single-phone-visual,
.single-phone-visual img,
.single-phone-visual video,
.single-phone-visual .live-demo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.single-phone-visual img,
.single-phone-visual video,
.single-phone-visual .live-demo {
    display: block;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.single-phone-dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 34%, rgba(0, 0, 0, 0.36)),
        radial-gradient(circle at 50% 5%, rgba(255, 255, 255, 0.24), transparent 24%);
    pointer-events: none;
}

.single-dynamic-island {
    position: absolute;
    top: 15px;
    left: 50%;
    z-index: 3;
    width: 94px;
    height: 28px;
    border-radius: 999px;
    background: #050505;
    transform: translateX(-50%);
}

.single-lock-top {
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 2px;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.48);
}

.single-lock-top span {
    font-size: 12px;
    font-weight: 750;
}

.single-lock-top strong {
    font-size: clamp(58px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.single-lock-bottom {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
}

.single-lock-bottom span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(18, 20, 26, 0.46);
    backdrop-filter: blur(14px);
}

.single-detail-panel {
    width: 100%;
    min-width: 0;
    max-width: 420px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--panel) 78%, transparent);
    box-shadow: var(--shadow);
}

.single-detail-panel h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.single-detail-panel .eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-detail-panel .single-text {
    max-width: 380px;
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.55;
}

.single-live-note {
    max-width: 380px;
    margin: -10px 0 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.single-detail-panel .hero-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.single-detail-panel .button {
    width: 100%;
    justify-content: center;
}

.single-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.single-meta-row strong {
    color: var(--text);
}

.single-term-chips {
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 42px;
    padding-bottom: 14px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 42px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 820;
    line-height: 1;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pagination a.page-numbers:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
    transform: translateY(-1px);
}

.pagination .page-numbers.current {
    color: var(--button-text);
    background: var(--button-bg);
    border-color: var(--button-bg);
}

.pagination .page-numbers.dots {
    min-width: 28px;
    padding: 0 6px;
    color: var(--muted-2);
}

.site-footer {
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(24px, 4vw, 56px);
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.site-footer > div:first-child {
    display: grid;
    gap: 4px;
}

.site-footer strong {
    color: var(--text);
    font-size: 15px;
}

.footer-social {
    gap: 12px;
}

.footer-social > span {
    color: var(--muted);
    font-weight: 700;
}

.social-links {
    gap: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.social-links a[aria-label="Threads"] svg {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    color: var(--text);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.social-links span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.text-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
}

@keyframes wallspaceAurora {
    0% {
        transform: translate3d(-5%, 4%, 0) scale(1.05) rotate(-5deg);
    }

    100% {
        transform: translate3d(5%, -4%, 0) scale(1.16) rotate(7deg);
    }
}

@keyframes wallspaceSweep {
    0% {
        transform: translate3d(-22%, -8%, 0) rotate(-8deg);
        opacity: 0.25;
    }

    55% {
        opacity: 0.8;
    }

    100% {
        transform: translate3d(22%, 8%, 0) rotate(8deg);
        opacity: 0.25;
    }
}

@keyframes wallspaceLiquid {
    0% {
        transform: rotate(0deg) scale(1.05);
    }

    100% {
        transform: rotate(360deg) scale(1.05);
    }
}

@keyframes wallspaceFloat {
    0% {
        transform: translate3d(-6%, 4%, 0) scale(1.05);
    }

    100% {
        transform: translate3d(6%, -4%, 0) scale(1.18);
    }
}

@keyframes wallspacePulse {
    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.92;
    }
}

@media (max-width: 1260px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
    }

    .main-nav {
        gap: 24px;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .hero,
    .wallpaper-section,
    .archive-hero,
    article.single-wallpaper {
        width: min(100% - 36px, 980px);
    }

    .hero {
        grid-template-columns: minmax(290px, 0.8fr) minmax(390px, 1fr);
    }

    .hero-copy {
        padding-left: 0;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .desktop-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .side-phone {
        width: min(20vw, 185px);
    }

    .feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
    }

    .wallpaper-preview-dialog {
        grid-template-columns: minmax(230px, 320px) minmax(230px, 1fr);
        gap: 26px;
        max-width: min(94vw, 760px);
    }

    .preview-panel {
        padding-right: 30px;
    }
}

@media (max-width: 860px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .desktop-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero,
    article.single-wallpaper {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 24px;
        min-height: auto;
        padding-top: 34px;
    }

    .hero-mark-1,
    .hero-mark-4,
    .hero-mark-6,
    .hero-mark-7,
    .hero-mark-8,
    .hero-mark-9,
    .hero-mark-10,
    .hero-mark-12,
    .hero-mark-13,
    .hero-mark-14,
    .hero-mark-15,
    .hero-mark-16,
    .hero-mark-17,
    .hero-mark-18,
    .hero-mark-19,
    .hero-mark-20,
    .hero-mark-21,
    .hero-mark-22,
    .hero-mark-23,
    .hero-mark-24,
    .hero-mark-25,
    .hero-mark-26,
    .hero-mark-27,
    .hero-mark-28,
    .hero-mark-29,
    .hero-mark-30 {
        display: none;
    }

    .hero-mark-2 {
        top: 22px;
        right: 7%;
        left: auto;
        width: 22px;
        height: 22px;
    }

    .hero-mark-3 {
        top: 290px;
        right: auto;
        left: 5%;
        width: 48px;
        height: 48px;
    }

    .hero-mark-5 {
        right: 4%;
        bottom: 260px;
        left: auto;
        width: 22px;
        height: 22px;
        opacity: 0.32;
    }

    .hero-mark-11 {
        right: 8%;
        bottom: 210px;
        width: 22px;
        height: 22px;
    }

    .hero-showcase {
        min-height: 440px;
    }

    .main-phone {
        width: min(48vw, 260px);
    }

    .side-phone {
        width: min(34vw, 180px);
    }

    .side-phone-left {
        left: 10%;
    }

    .side-phone-right {
        right: 10%;
    }

    .gallery-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sort-chips {
        width: 100%;
        max-width: 360px;
    }

    .sort-chip {
        flex: 1 1 0;
        min-width: 0;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 30px;
    }

    article.single-wallpaper {
        min-height: auto;
        padding-top: 34px;
    }

    .single-detail-panel {
        width: 100%;
        max-width: 560px;
        justify-self: center;
        text-align: center;
    }

    .single-detail-panel .single-text {
        max-width: none;
    }

    .single-phone-shell {
        width: min(66vw, 300px);
    }

    .wallpaper-preview-modal {
        align-items: start;
        overflow-y: auto;
        padding: 16px;
    }

    .wallpaper-preview-dialog {
        grid-template-columns: 1fr;
        justify-items: center;
        width: min(100%, 460px);
        max-height: none;
        padding: 18px;
        border-radius: 22px;
    }

    .preview-phone-shell {
        width: min(76vw, 280px);
    }

    .preview-panel {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .preview-panel p {
        max-width: none;
    }

    .preview-actions {
        grid-template-columns: 1fr 1fr;
    }

    .preview-download {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    body.home {
        background: #f3f7ff;
        color: #ffffff;
    }

    :root[data-theme="dark"] body.home {
        background: #061527;
    }

    body.home .site-header,
    body.home .hero,
    body.home .wallpaper-section,
    body.home .site-footer {
        display: none;
    }

    body.home .site-main {
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        background: var(--mobile-bg, #f3f7ff);
    }

    body.home .mobile-app-home {
        display: block;
    }

    .site-header {
        min-height: 64px;
        padding: 11px 14px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        font-size: 21px;
    }

    .header-actions {
        gap: 8px;
    }

    .theme-switch {
        width: 70px;
        height: 36px;
    }

    .theme-switch-track {
        width: 70px;
        height: 36px;
    }

    .theme-switch-knob {
        width: 30px;
        height: 30px;
    }

    :root[data-theme="dark"] .theme-switch-knob {
        transform: translateX(34px);
    }

    .hero,
    .wallpaper-section,
    .archive-hero,
    article.single-wallpaper {
        width: calc(100% - 24px);
    }

    .hero {
        gap: 16px;
        padding-top: 18px;
        padding-bottom: 14px;
    }

    .hero-decor {
        display: none;
    }

    h1 {
        margin-bottom: 8px;
        font-size: 52px;
        line-height: 0.98;
        letter-spacing: 0;
    }

    .hero-copy {
        display: grid;
        gap: 14px;
    }

    .hero-copy p {
        max-width: 320px;
        margin-bottom: 0;
        font-size: 22px;
        line-height: 1.12;
        letter-spacing: 0;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        margin-bottom: 0;
        gap: 7px;
    }

    .hero-stats span {
        min-width: 0;
        min-height: 58px;
        padding: 9px 4px;
        border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
        border-radius: 14px;
        background: color-mix(in srgb, var(--panel) 72%, transparent);
        box-shadow: 0 8px 22px rgba(24, 37, 56, 0.06);
    }

    .hero-stats span:first-child {
        padding-left: 4px;
    }

    .hero-stats strong {
        font-size: 17px;
    }

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

    .hero-stats small {
        font-size: 11px;
        line-height: 1;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1.08fr 0.92fr;
        gap: 8px;
        margin-top: 0;
    }

    .button {
        width: 100%;
        min-height: 46px;
        padding: 0 10px;
        border-radius: 14px;
        font-size: 13px;
        gap: 7px;
    }

    .button svg {
        width: 17px;
        height: 17px;
        flex: 0 0 auto;
    }

    .app-soon-button {
        box-shadow: none;
    }

    .app-soon-full {
        display: none;
    }

    .app-soon-short {
        display: inline;
    }

    .hero-showcase {
        display: grid;
        grid-template-columns: 0.82fr 1.22fr 0.82fr;
        align-items: end;
        gap: 8px;
        width: 100%;
        min-height: 0;
        height: auto;
        justify-self: stretch;
        margin-top: 2px;
        padding: 16px 10px 18px;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
        border-radius: 24px;
        background:
            linear-gradient(180deg, color-mix(in srgb, var(--panel) 76%, transparent), color-mix(in srgb, var(--bg) 86%, transparent)),
            radial-gradient(ellipse at 50% 78%, rgba(35, 132, 255, 0.14), transparent 62%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.68),
            0 18px 36px rgba(28, 42, 66, 0.08);
    }

    .hero-showcase::before {
        inset: auto 8% 8%;
        height: 45%;
        border-radius: 999px;
        background: radial-gradient(ellipse at 50% 52%, rgba(12, 86, 170, 0.18), transparent 72%);
        filter: blur(10px);
    }

    .phone-frame,
    .main-phone,
    .side-phone {
        position: relative;
        inset: auto;
        width: 100%;
        aspect-ratio: 9 / 14.6;
        padding: 0;
        border: 1px solid rgba(11, 15, 24, 0.22);
        border-radius: 18px;
        opacity: 1;
        transform: none;
        background: transparent;
        box-shadow:
            0 12px 26px rgba(25, 31, 45, 0.12),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    .main-phone {
        aspect-ratio: 9 / 15.9;
        border-radius: 21px;
        transform: translateY(-2px);
        box-shadow:
            0 18px 34px rgba(25, 31, 45, 0.18),
            inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .side-phone {
        margin-bottom: 9px;
    }

    .phone-frame::before,
    .phone-frame::after {
        display: none;
    }

    .phone-frame img,
    .phone-frame video,
    .phone-frame .live-demo {
        border-radius: 17px;
    }

    .main-phone img,
    .main-phone video,
    .main-phone .live-demo {
        border-radius: 20px;
    }

    .hero > .hero-copy,
    .hero > .hero-showcase {
        display: none;
    }

    .hero {
        display: block;
        padding-top: 14px;
        padding-bottom: 16px;
    }

    .mobile-hero-app {
        position: relative;
        display: grid;
        gap: 14px;
        overflow: hidden;
        padding: 16px;
        border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
        border-radius: 28px;
        background:
            radial-gradient(ellipse at 78% 8%, rgba(35, 132, 255, 0.2), transparent 36%),
            linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, transparent), color-mix(in srgb, var(--bg) 92%, transparent));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.68),
            0 22px 48px rgba(24, 37, 56, 0.12);
        isolation: isolate;
    }

    .mobile-hero-app::before {
        position: absolute;
        inset: 46% -18% -26%;
        z-index: -1;
        border-radius: 999px;
        background: radial-gradient(ellipse at 50% 50%, rgba(22, 119, 255, 0.16), transparent 68%);
        content: "";
        filter: blur(6px);
    }

    .mobile-hero-topline,
    .mobile-hero-chips {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-hero-topline {
        justify-content: space-between;
    }

    .mobile-hero-topline span,
    .mobile-hero-chips span {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 0 11px;
        border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
        border-radius: 999px;
        background: color-mix(in srgb, var(--surface) 78%, transparent);
        color: var(--muted);
        font-size: 12px;
        font-weight: 850;
    }

    .mobile-hero-topline span:first-child {
        color: var(--text);
    }

    .mobile-hero-head {
        display: grid;
        gap: 8px;
    }

    .mobile-hero-head h1 {
        max-width: 330px;
        margin: 0;
        font-size: 34px;
        line-height: 1.02;
        letter-spacing: 0;
    }

    .mobile-hero-head p {
        max-width: 286px;
        margin: 0;
        color: var(--muted);
        font-size: 15px;
        font-weight: 720;
        line-height: 1.35;
    }

    .mobile-hero-stage {
        position: relative;
        display: grid;
        grid-template-columns: 0.72fr 1.08fr 0.72fr;
        align-items: end;
        gap: 8px;
        min-height: 248px;
        padding: 8px 2px 0;
    }

    .mobile-hero-stage::before {
        position: absolute;
        right: 6%;
        bottom: 8px;
        left: 6%;
        height: 42%;
        border-radius: 999px;
        background: radial-gradient(ellipse at 50% 50%, rgba(9, 22, 42, 0.16), transparent 70%);
        content: "";
        filter: blur(12px);
    }

    .mobile-hero-phone,
    .mobile-hero-cardlet {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(11, 15, 24, 0.2);
        background: #08090c;
    }

    .mobile-hero-phone {
        aspect-ratio: 9 / 16.2;
        border-radius: 25px;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
        transform: translateY(-4px);
    }

    .mobile-hero-cardlet {
        aspect-ratio: 9 / 14.4;
        margin-bottom: 8px;
        border-radius: 18px;
        opacity: 0.96;
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    }

    .mobile-hero-cardlet-left {
        transform: translateX(-2px) rotate(-1deg);
    }

    .mobile-hero-cardlet-right {
        transform: translateX(2px) rotate(1deg);
    }

    .mobile-hero-phone img,
    .mobile-hero-cardlet img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-hero-chips {
        flex-wrap: wrap;
        margin-top: -2px;
    }

    .mobile-hero-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 50px;
        border-radius: 16px;
        background: var(--button-bg);
        color: var(--button-text);
        font-size: 15px;
        font-weight: 850;
        box-shadow: 0 16px 32px rgba(5, 6, 9, 0.16);
    }

    .mobile-hero-cta svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-app-home {
        --mobile-safe-top: max(18px, env(safe-area-inset-top, 0px));
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: calc(var(--mobile-safe-top) + 10px) 14px calc(104px + env(safe-area-inset-bottom, 0px));
        overflow: hidden;
        background:
            radial-gradient(circle at 78% 0%, rgba(23, 126, 255, 0.16), transparent 28%),
            linear-gradient(#061527, #020913 44%, #000000);
        color: #ffffff;
    }

    .mobile-app-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        margin-bottom: 18px;
    }

    .mobile-app-search,
    .mobile-app-pro {
        display: inline-flex;
        align-items: center;
        min-height: 48px;
        border-radius: 14px;
        font-weight: 820;
    }

    .mobile-app-search {
        gap: 10px;
        min-width: 0;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: #101013;
        color: rgba(255, 255, 255, 0.56);
        font-size: 16px;
    }

    .mobile-app-search svg,
    .mobile-app-pro svg,
    .mobile-app-categories svg,
    .mobile-app-bottom-nav svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex: 0 0 auto;
    }

    .mobile-app-pro {
        gap: 6px;
        justify-content: center;
        padding: 0 14px;
        background: #1688ff;
        color: #ffffff;
        font-size: 17px;
        box-shadow: 0 12px 30px rgba(22, 136, 255, 0.32);
    }

    .mobile-app-banner {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 45%;
        align-items: stretch;
        min-height: 112px;
        margin-bottom: 18px;
        overflow: hidden;
        border-radius: 0;
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.46) 46%, transparent 72%),
            linear-gradient(135deg, #202638, #0f1420);
    }

    .mobile-app-banner > div:first-child {
        position: relative;
        z-index: 2;
        display: grid;
        align-content: center;
        gap: 5px;
        padding: 18px 15px;
    }

    .mobile-app-banner span {
        color: rgba(255, 255, 255, 0.58);
        font-size: 12px;
        font-weight: 820;
        text-transform: uppercase;
    }

    .mobile-app-banner strong {
        max-width: 190px;
        color: #ffffff;
        font-size: 28px;
        line-height: 0.95;
        letter-spacing: 0;
    }

    .mobile-app-banner-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(40px, 1fr));
        height: 100%;
    }

    .mobile-app-banner-strip img {
        width: 100%;
        height: 100%;
        min-height: 112px;
        object-fit: cover;
    }

    .mobile-app-categories {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 70px;
        gap: 11px;
        margin: 0 -14px 18px;
        padding: 0 14px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mobile-app-categories::-webkit-scrollbar,
    .mobile-app-tabs::-webkit-scrollbar,
    .mobile-app-rail::-webkit-scrollbar {
        display: none;
    }

    .mobile-app-categories a {
        display: grid;
        justify-items: center;
        gap: 7px;
        color: #ffffff;
        font-size: 11px;
        font-weight: 760;
        text-align: center;
    }

    .mobile-app-categories a svg {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .mobile-app-tabs {
        display: flex;
        gap: 21px;
        margin: 0 -14px 24px;
        padding: 0 14px 2px;
        overflow-x: auto;
        color: rgba(255, 255, 255, 0.44);
        font-size: 16px;
        font-weight: 840;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .mobile-app-tabs a {
        position: relative;
        padding-bottom: 12px;
    }

    .mobile-app-tabs a.is-active {
        color: #ffffff;
    }

    .mobile-app-tabs a.is-active::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 3px;
        border-radius: 999px;
        background: #ffffff;
        content: "";
    }

    .mobile-app-section {
        margin-bottom: 26px;
    }

    .mobile-app-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 14px;
    }

    .mobile-app-section-head h2 {
        margin: 0;
        color: #ffffff;
        font-size: 25px;
        line-height: 1;
        letter-spacing: 0;
    }

    .mobile-app-section-head a {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 0 10px;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 999px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 760;
    }

    .mobile-app-rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 43%;
        gap: 10px;
        margin: 0 -14px;
        padding: 0 14px 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mobile-app-card,
    .mobile-app-tile {
        min-width: 0;
    }

    .mobile-app-card > a,
    .mobile-app-tile > a {
        position: relative;
        display: block;
        overflow: hidden;
        background: #101013;
    }

    .mobile-app-card > a {
        aspect-ratio: 9 / 15.8;
        border-radius: 8px;
    }

    .mobile-app-tile > a {
        aspect-ratio: 1.6 / 1;
        border-radius: 10px;
    }

    .mobile-app-card img,
    .mobile-app-card video,
    .mobile-app-card .live-demo,
    .mobile-app-tile img,
    .mobile-app-tile video,
    .mobile-app-tile .live-demo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transform: scale(var(--wallpaper-visual-scale, 1));
        transform-origin: center center;
    }

    .mobile-app-card-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 8px;
        border-radius: 999px;
        background: rgba(10, 10, 12, 0.72);
        color: #ffffff;
        font-size: 11px;
        font-weight: 820;
        backdrop-filter: blur(10px);
    }

    .mobile-app-card h3,
    .mobile-app-tile h3 {
        margin: 8px 0 2px;
        overflow: hidden;
        color: #ffffff;
        font-size: 13px;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-app-card p,
    .mobile-app-tile p {
        margin: 0;
        color: rgba(255, 255, 255, 0.48);
        font-size: 12px;
        font-weight: 700;
    }

    .mobile-app-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-app-bottom-nav {
        position: fixed;
        right: 14px;
        bottom: 16px;
        left: 14px;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 28px;
        background: rgba(28, 28, 30, 0.82);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
        backdrop-filter: blur(18px);
    }

    .mobile-app-bottom-nav a {
        display: grid;
        justify-items: center;
        gap: 3px;
        min-width: 0;
        padding: 8px 3px 6px;
        border-radius: 22px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 11px;
        font-weight: 760;
    }

    .mobile-app-bottom-nav a.is-active {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }

    .mobile-app-bottom-nav svg {
        width: 22px;
        height: 22px;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 28px;
    }

    .wallpaper-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
        min-height: 52px;
        padding-top: 9px;
    }

    .wallpaper-meta > div:first-child {
        flex: 1 1 auto;
        min-width: 0;
    }

    .wallpaper-card-actions {
        flex: 0 0 auto;
        width: auto;
        gap: 5px;
        padding-top: 0;
    }

    .icon-button {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: color-mix(in srgb, var(--panel-solid) 90%, transparent);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .icon-button svg {
        width: 15px;
        height: 15px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .site-footer,
    .footer-social {
        align-items: flex-start;
        flex-direction: column;
    }

    .single-detail-panel .hero-actions {
        grid-template-columns: 1fr;
    }

    article.single-wallpaper {
        width: calc(100% - 24px);
        gap: 18px;
        padding-top: 24px;
    }

    .single-back-link {
        justify-self: stretch;
        justify-content: center;
    }

    .single-phone-shell {
        width: min(70vw, 230px);
        padding: 9px;
        border-radius: 34px;
    }

    .single-phone-screen {
        border-radius: 25px;
    }

    .single-dynamic-island {
        top: 12px;
        width: 76px;
        height: 23px;
    }

    .single-lock-top {
        top: 46px;
    }

    .single-lock-top strong {
        font-size: 48px;
    }

    .single-lock-bottom {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .single-lock-bottom span {
        width: 36px;
        height: 36px;
    }

    .single-detail-panel {
        padding: 18px;
        border-radius: 18px;
    }

    .single-detail-panel h1 {
        font-size: 34px;
    }

    .wallpaper-preview-modal {
        padding: 10px;
    }

    .wallpaper-preview-dialog {
        gap: 16px;
        padding: 14px;
        border-radius: 18px;
    }

    .preview-close-button {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .preview-phone-shell {
        width: min(78vw, 248px);
        padding: 9px;
        border-radius: 34px;
    }

    .preview-phone-screen {
        border-radius: 25px;
    }

    .preview-dynamic-island {
        top: 12px;
        width: 76px;
        height: 23px;
    }

    .preview-lock-top {
        top: 46px;
    }

    .preview-lock-top strong {
        font-size: 48px;
    }

    .preview-lock-bottom {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .preview-lock-bottom span {
        width: 36px;
        height: 36px;
    }

    .preview-panel h2 {
        font-size: 30px;
    }

    .preview-actions {
        grid-template-columns: 1fr;
    }

    .preview-download {
        grid-column: auto;
    }
}

@media (max-width: 360px) {
    .wallpaper-grid {
        grid-template-columns: 1fr;
    }
}
