* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #d9b15c;
    --gold-light: #ffe7a6;
    --gold-dark: #8f6328;
    --ink: #071018;
    --ink-soft: #101d2a;
    --red: #b23136;
    --blue: #2d8be8;
    --violet: #6d45ff;
    --pink: #ff4fac;
    --text: #f6f1e6;
    --muted: #b6ad9a;
    --panel: rgba(7, 16, 24, 0.76);
    --border: rgba(217, 177, 92, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--ink);
    color: var(--text);
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

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

button {
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: none;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, #20334a 0%, #061018 68%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-emblem {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(217, 177, 92, 0.45), inset 0 0 30px rgba(217, 177, 92, 0.2);
    animation: emblemPulse 1.4s ease-in-out infinite;
}

.loader-emblem img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 0 24px rgba(255, 231, 166, 0.42);
}

@keyframes emblemPulse {
    0%, 100% { transform: scale(1); opacity: 0.78; }
    50% { transform: scale(1.08); opacity: 1; }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
    height: 68px;
    background: rgba(4, 10, 16, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 231, 166, 0.28), rgba(143, 99, 40, 0.18));
    color: var(--gold-light);
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(217, 177, 92, 0.32);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.nav-link {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: rgba(246, 241, 230, 0.82);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
}

.header-actions {
    min-width: 290px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.header-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(246, 241, 230, 0.8);
    transition: transform 0.25s ease, border 0.25s ease, color 0.25s ease;
}

.header-icon:hover {
    color: var(--gold-light);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.header-download {
    padding: 10px 18px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: linear-gradient(180deg, #ffe7a6, #bd7c2a);
    color: #1c1003;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(217, 177, 92, 0.28);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--gold-light);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-section,
.section-screen {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080e16;
}

.particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.76;
}

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

.layer-one {
    background:
        linear-gradient(90deg, rgba(7, 16, 24, 0.82), rgba(7, 16, 24, 0.24) 44%, rgba(7, 16, 24, 0.74)),
        linear-gradient(0deg, rgba(7, 16, 24, 0.86), rgba(7, 16, 24, 0.04) 52%, rgba(7, 16, 24, 0.35)),
        url("../imagetu/1.jpg"),
        linear-gradient(120deg, #071018 0%, #15223a 42%, #310f24 100%);
    animation: slowZoom 13s ease-in-out infinite alternate;
}

.layer-two {
    opacity: 0.82;
    background:
        linear-gradient(90deg, rgba(2, 8, 12, 0.78), transparent 40%, rgba(2, 8, 12, 0.7)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 88px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 88px);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.82) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 45%);
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 5;
    width: min(900px, 92vw);
    padding-top: 70px;
    text-align: center;
}

.age-badge {
    position: absolute;
    top: 98px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
    opacity: 0.74;
}

.fixed-age-rating {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1100;
    width: 62px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.hero-logo {
    margin-top: 98px;
}

.hero-app-icon {
    width: 92px;
    height: 92px;
    display: block;
    margin: 0 auto 18px;
    object-fit: cover;
    border: 2px solid rgba(255, 231, 166, 0.72);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), 0 0 32px rgba(255, 231, 166, 0.34);
}

.logo-small {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 8px;
    text-shadow: 0 0 18px rgba(255, 231, 166, 0.7);
}

.hero-logo h1 {
    position: relative;
    display: inline-block;
    font-size: clamp(64px, 9vw, 132px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 12px;
    color: #fff4ca;
    -webkit-text-stroke: 2px rgba(86, 40, 10, 0.78);
    text-shadow:
        0 5px 0 #7e321b,
        0 10px 28px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 218, 113, 0.6);
}

.hero-logo h1::before,
.hero-logo h1::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-light));
}

.hero-logo h1::before {
    right: 100%;
    margin-right: 28px;
}

.hero-logo h1::after {
    left: 100%;
    margin-left: 16px;
    transform: scaleX(-1);
}

.hero-logo strong {
    display: block;
    margin-top: 16px;
    color: var(--gold-light);
    font-size: clamp(24px, 3vw, 42px);
    letter-spacing: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.68);
}

.hero-desc {
    max-width: 760px;
    margin: 28px auto 0;
    color: rgba(246, 241, 230, 0.88);
    font-size: 20px;
    line-height: 1.85;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 38px;
}

.store-btn {
    position: relative;
    min-width: 190px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    border: 1px solid var(--gold);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.store-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: transform 0.45s ease;
}

.store-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.12);
}

.store-btn:hover::before {
    transform: translateX(110%);
}

.store-btn.primary {
    background: linear-gradient(180deg, #fff0b8 0%, #d2973f 48%, #89511e 100%);
    color: #231304;
    box-shadow: 0 0 28px rgba(217, 177, 92, 0.38);
}

.store-btn.secondary {
    background: rgba(8, 18, 28, 0.62);
    color: var(--gold-light);
    backdrop-filter: blur(10px);
}

.hero-side-card {
    position: absolute;
    right: 66px;
    bottom: 130px;
    z-index: 6;
    width: 260px;
    padding: 22px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(7, 16, 24, 0.72), rgba(62, 21, 38, 0.7));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.hero-side-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(217, 177, 92, 0.2);
    pointer-events: none;
}

.hero-side-card span {
    color: var(--gold-light);
    font-size: 14px;
    letter-spacing: 4px;
}

.hero-side-card strong {
    display: block;
    margin: 10px 0;
    font-size: 22px;
    line-height: 1.35;
}

.hero-side-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.scroll-hint {
    position: absolute;
    bottom: 84px;
    left: 50%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 4px;
    animation: scrollFloat 1.5s ease-in-out infinite;
}

@keyframes scrollFloat {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.section-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 7, 12, 0.84), rgba(4, 11, 18, 0.52), rgba(2, 7, 12, 0.86));
}

.feature-bg {
    background:
        radial-gradient(circle at 72% 42%, rgba(45, 139, 232, 0.28), transparent 34%),
        radial-gradient(circle at 24% 68%, rgba(217, 177, 92, 0.18), transparent 32%),
        linear-gradient(135deg, #0b1623, #151f2f 48%, #090d15);
}

.machines-bg {
    background:
        radial-gradient(circle at 50% 42%, rgba(178, 49, 54, 0.32), transparent 30%),
        radial-gradient(circle at 75% 28%, rgba(217, 177, 92, 0.18), transparent 28%),
        linear-gradient(135deg, #09121c, #231018 52%, #070d14);
}

.story-bg {
    background:
        radial-gradient(circle at 26% 42%, rgba(255, 79, 172, 0.28), transparent 32%),
        radial-gradient(circle at 72% 58%, rgba(45, 139, 232, 0.28), transparent 32%),
        linear-gradient(135deg, #070d14, #171d33, #0c1017);
}

.section-inner {
    position: relative;
    z-index: 5;
    width: min(1320px, calc(100% - 80px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 120px 0 100px;
}

.section-title span {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 6px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    color: var(--text);
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 900;
    letter-spacing: 6px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 92px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title.center {
    text-align: center;
}

.section-title.center h2::after {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title p {
    max-width: 700px;
    margin: 26px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.feature-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    grid-template-rows: auto 1fr;
    column-gap: 70px;
    align-items: center;
}

.feature-copy {
    align-self: end;
    padding-top: 30px;
}

.feature-copy p {
    color: rgba(246, 241, 230, 0.82);
    font-size: 21px;
    line-height: 1.9;
}

.more-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    height: 46px;
    margin-top: 26px;
    border: 1px solid var(--gold);
    background: rgba(7, 16, 24, 0.58);
    color: var(--gold-light);
    font-weight: 900;
    letter-spacing: 2px;
    overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.more-link::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(255, 231, 166, 0.28), transparent);
    transition: transform 0.35s ease;
}

.more-link:hover::after {
    transform: translateX(110%);
}

.feature-showcase {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.feature-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.feature-art {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    max-height: 520px;
    object-fit: contain;
    border: 1px solid rgba(217, 177, 92, 0.32);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.42), 0 0 46px rgba(109, 69, 255, 0.22);
    animation: machineFloat 4s ease-in-out infinite;
}

.arc-frame {
    position: absolute;
    width: min(620px, 90vw);
    height: 420px;
    border: 1px solid rgba(217, 177, 92, 0.32);
    border-radius: 50%;
    transform: rotate(-8deg);
    box-shadow: inset 0 0 60px rgba(217, 177, 92, 0.08), 0 0 60px rgba(45, 139, 232, 0.16);
}

.arc-frame::before,
.arc-frame::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.arc-frame::before {
    inset: 26px;
}

.arc-frame::after {
    inset: 54px;
}

.machine-illustration {
    position: relative;
    width: 320px;
    height: 460px;
    filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
    animation: machineFloat 4s ease-in-out infinite;
}

@keyframes machineFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

.machine-top {
    position: absolute;
    top: 0;
    left: 42px;
    width: 236px;
    height: 72px;
    border: 2px solid var(--gold);
    border-radius: 24px 24px 8px 8px;
    background: linear-gradient(180deg, #ffeed1, #b23136 58%, #551822);
}

.machine-top::after {
    content: "LUCKY CLAW";
    position: absolute;
    inset: 16px 26px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
}

.machine-glass {
    position: absolute;
    top: 66px;
    left: 22px;
    width: 276px;
    height: 292px;
    overflow: hidden;
    border: 3px solid #d5a146;
    border-radius: 12px;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.26), transparent 20%, transparent 60%, rgba(255,255,255,0.14)),
        linear-gradient(180deg, rgba(45, 139, 232, 0.3), rgba(255, 79, 172, 0.15));
    box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.12);
}

.machine-glass::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 50%;
    width: 70px;
    height: 90px;
    transform: translateX(-50%);
    border-left: 6px solid var(--gold-light);
    border-right: 6px solid var(--gold-light);
    border-bottom: 6px solid var(--gold-light);
    clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
    opacity: 0.78;
}

.machine-glass span {
    position: absolute;
    bottom: 38px;
    width: 62px;
    height: 52px;
    border-radius: 50% 50% 45% 45%;
    background: radial-gradient(circle at 35% 28%, #fff, var(--pink));
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.machine-glass span:nth-child(1) { left: 42px; }
.machine-glass span:nth-child(2) { left: 112px; bottom: 62px; background: radial-gradient(circle at 35% 28%, #fff, #ffd052); }
.machine-glass span:nth-child(3) { right: 44px; background: radial-gradient(circle at 35% 28%, #fff, #60d7ff); }

.machine-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 320px;
    height: 116px;
    border: 3px solid #d5a146;
    border-radius: 14px 14px 32px 32px;
    background: linear-gradient(180deg, #9d2531, #4e1118);
}

.machine-base::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 28px;
    width: 84px;
    height: 36px;
    border-radius: 20px;
    background: #0b121b;
    box-shadow: 0 0 18px rgba(45, 139, 232, 0.4);
}

.machine-base::after {
    content: "";
    position: absolute;
    right: 44px;
    top: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, #ff4fac 55%, #8c1d4a);
    box-shadow: 0 0 20px rgba(255, 79, 172, 0.72);
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-item {
    position: relative;
    padding: 26px 30px 26px 82px;
    border: 1px solid rgba(217, 177, 92, 0.18);
    background: rgba(7, 16, 24, 0.52);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.feature-item.active,
.feature-item:hover {
    transform: translateX(-10px);
    border-color: rgba(217, 177, 92, 0.62);
    background: linear-gradient(90deg, rgba(217, 177, 92, 0.18), rgba(7, 16, 24, 0.68));
}

.feature-item b {
    position: absolute;
    left: 24px;
    top: 26px;
    color: var(--gold-light);
    font-size: 22px;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: 2px;
}

.feature-item p {
    color: var(--muted);
    line-height: 1.7;
}

.machines-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.machine-stage {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(380px, 1.1fr) minmax(360px, 0.9fr) 120px;
    align-items: center;
    gap: 20px;
    min-height: 520px;
    margin-top: 58px;
}

.stage-arrow {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    justify-self: center;
    border: 1px solid rgba(217, 177, 92, 0.42);
    border-radius: 50%;
    background: rgba(7, 16, 24, 0.52);
    color: var(--gold-light);
    transition: transform 0.25s ease, background 0.25s ease;
}

.stage-arrow:hover {
    transform: scale(1.08);
    background: rgba(217, 177, 92, 0.18);
}

.machine-character {
    position: relative;
    height: 510px;
    display: grid;
    place-items: center;
}

.machine-aura {
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 177, 92, 0.28), rgba(178, 49, 54, 0.18) 44%, transparent 72%);
    filter: blur(4px);
    animation: auraPulse 3.5s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.72; }
    50% { transform: scale(1.08); opacity: 1; }
}

.hero-machine-body {
    position: relative;
    width: 310px;
    height: 438px;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.hero-machine-body.switching {
    transform: scale(0.9) rotateY(18deg);
    filter: blur(3px);
}

.hero-machine-body.hidden {
    opacity: 0;
    pointer-events: none;
}

.machine-real-image {
    position: absolute;
    z-index: 2;
    width: min(390px, 92%);
    max-height: 520px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.55));
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.machine-real-image.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.machine-real-image.show.zooming {
    animation: machineImageZoom 0.58s cubic-bezier(0.2, 0.95, 0.24, 1.2);
}

@keyframes machineImageZoom {
    0% {
        opacity: 0.35;
        transform: translateY(24px) scale(0.84);
    }
    62% {
        opacity: 1;
        transform: translateY(-8px) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-machine-head {
    position: absolute;
    top: 0;
    left: 32px;
    width: 246px;
    height: 78px;
    border: 3px solid var(--gold);
    border-radius: 22px 22px 8px 8px;
    background: var(--machine-primary, linear-gradient(180deg, #fff0bd, #bd3038));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.hero-machine-head::after {
    content: var(--machine-label, "CLAW");
    position: absolute;
    inset: 18px 32px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.32);
    color: var(--gold-light);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 3px;
}

.hero-machine-screen {
    position: absolute;
    top: 72px;
    left: 14px;
    width: 282px;
    height: 258px;
    border: 3px solid var(--gold);
    border-radius: 12px;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.24), transparent 22%, transparent 65%, rgba(255,255,255,0.12)),
        var(--machine-glass, linear-gradient(180deg, rgba(45,139,232,0.32), rgba(255,79,172,0.2)));
    overflow: hidden;
}

.hero-machine-screen::before {
    content: "";
    position: absolute;
    inset: auto 22px 28px;
    height: 70px;
    border-radius: 50% 50% 22px 22px;
    background:
        radial-gradient(circle at 22% 40%, #fff, #ff66bb 18%, transparent 19%),
        radial-gradient(circle at 52% 45%, #fff, #ffd45a 18%, transparent 19%),
        radial-gradient(circle at 78% 42%, #fff, #56d6ff 18%, transparent 19%);
}

.hero-machine-claw {
    position: absolute;
    top: 105px;
    left: 50%;
    width: 86px;
    height: 86px;
    transform: translateX(-50%);
    border-left: 6px solid var(--gold-light);
    border-right: 6px solid var(--gold-light);
    border-bottom: 6px solid var(--gold-light);
    clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
    opacity: 0.85;
}

.hero-machine-pedestal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 310px;
    height: 126px;
    border: 3px solid var(--gold);
    border-radius: 14px 14px 34px 34px;
    background: var(--machine-base, linear-gradient(180deg, #a42134, #4b1118));
}

.hero-machine-pedestal::before {
    content: "";
    position: absolute;
    left: 42px;
    top: 35px;
    width: 88px;
    height: 34px;
    border-radius: 18px;
    background: #071018;
    box-shadow: inset 0 0 14px rgba(45, 139, 232, 0.42);
}

.hero-machine-pedestal::after {
    content: "";
    position: absolute;
    right: 54px;
    top: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, var(--machine-accent, #ff4fac) 58%, #4d1730);
    box-shadow: 0 0 22px var(--machine-accent, #ff4fac);
}

.machine-info {
    position: relative;
    padding: 42px;
    border: 1px solid rgba(217, 177, 92, 0.3);
    background: linear-gradient(135deg, rgba(7, 16, 24, 0.76), rgba(39, 20, 28, 0.62));
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.machine-info::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(217, 177, 92, 0.18);
    pointer-events: none;
}

.machine-info .machine-type {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 5px;
}

.machine-info h3 {
    margin-top: 12px;
    font-size: clamp(38px, 4vw, 66px);
    font-weight: 900;
    letter-spacing: 5px;
}

.machine-info p {
    margin-top: 18px;
    color: rgba(246, 241, 230, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.machine-info ul {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    list-style: none;
}

.machine-info li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.machine-info li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
}

.machine-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.machine-tab {
    position: relative;
    min-height: 82px;
    padding: 16px 12px;
    border: 1px solid rgba(217, 177, 92, 0.2);
    background: rgba(7, 16, 24, 0.58);
    text-align: left;
    overflow: hidden;
    transition: border 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.machine-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateY(100%);
    background: linear-gradient(180deg, rgba(217, 177, 92, 0.22), rgba(178, 49, 54, 0.18));
    transition: transform 0.25s ease;
}

.machine-tab span,
.machine-tab strong {
    position: relative;
    z-index: 1;
    display: block;
}

.machine-tab span {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 900;
}

.machine-tab strong {
    margin-top: 8px;
    font-size: 18px;
    letter-spacing: 2px;
}

.machine-tab.active,
.machine-tab:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 177, 92, 0.7);
}

.machine-tab.active::before,
.machine-tab:hover::before {
    transform: translateY(0);
}

.story-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.story-card {
    padding: 46px;
    border: 1px solid rgba(217, 177, 92, 0.28);
    background: rgba(7, 16, 24, 0.68);
    backdrop-filter: blur(14px);
}

.story-card p {
    margin-top: 26px;
    color: rgba(246, 241, 230, 0.84);
    font-size: 18px;
    line-height: 1.95;
}

.story-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 18px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217, 177, 92, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 79, 172, 0.3), rgba(45, 139, 232, 0.26)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 18px);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.gallery-one {
    background-image:
        linear-gradient(180deg, transparent 30%, rgba(7, 16, 24, 0.84)),
        url("../imagetu/iamge2.png");
}

.gallery-two {
    background-image:
        linear-gradient(180deg, transparent 30%, rgba(7, 16, 24, 0.84)),
        url("../imagetu/iamge3.png");
}

.gallery-three {
    background-image:
        linear-gradient(180deg, transparent 30%, rgba(7, 16, 24, 0.84)),
        url("../imagetu/2.jpg");
}

.gallery-card.tall {
    grid-row: span 2;
}

.gallery-card::before {
    content: "";
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.gallery-card span {
    position: absolute;
    left: 24px;
    bottom: 22px;
    color: var(--gold-light);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
}

.download-channel-section {
    position: relative;
    padding: 110px 40px 120px;
    background:
        radial-gradient(circle at 24% 20%, rgba(255, 79, 172, 0.16), transparent 30%),
        radial-gradient(circle at 78% 28%, rgba(45, 139, 232, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(8, 12, 20, 1), rgba(7, 16, 24, 0.96));
}

.download-channel-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.download-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 58px;
}

.download-channel-card {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(217, 177, 92, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(7, 16, 24, 0.7));
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.download-channel-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.download-channel-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 231, 166, 0.72);
    background: linear-gradient(180deg, rgba(217, 177, 92, 0.14), rgba(7, 16, 24, 0.74));
}

.download-channel-card.unavailable {
    cursor: default;
    opacity: 0.82;
}

.download-channel-card.unavailable:hover {
    transform: none;
    border-color: rgba(217, 177, 92, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(7, 16, 24, 0.7));
}

.download-channel-card.unavailable span {
    color: var(--gold-light);
}

.download-channel-card img {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.download-channel-card strong,
.download-channel-card span {
    position: relative;
    z-index: 1;
}

.download-channel-card strong {
    font-size: 23px;
    letter-spacing: 1px;
}

.download-channel-card span {
    color: var(--muted);
    font-size: 14px;
}

.community-section {
    position: relative;
    padding: 110px 40px 140px;
    background:
        linear-gradient(180deg, rgba(7, 16, 24, 0.96), rgba(8, 11, 18, 1)),
        radial-gradient(circle at 50% 0%, rgba(217, 177, 92, 0.18), transparent 38%);
}

.community-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 58px;
}

.community-card {
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(217, 177, 92, 0.22);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.community-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 177, 92, 0.64);
    background: rgba(217, 177, 92, 0.08);
}

.community-card i {
    color: var(--gold-light);
    font-size: 38px;
}

.community-card strong {
    font-size: 24px;
    letter-spacing: 2px;
}

.community-card span {
    color: var(--muted);
}

.floating-social {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 900;
    width: min(460px, calc(100% - 30px));
    height: 74px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    transform: translateX(-50%);
    border: 1px solid rgba(217, 177, 92, 0.32);
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(15, 25, 36, 0.94), rgba(4, 9, 15, 0.96));
    box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
}

.float-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(246, 241, 230, 0.78);
    transition: color 0.25s ease, background 0.25s ease;
}

.float-item + .float-item {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.float-item::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.float-item:hover {
    color: var(--gold-light);
    background: rgba(217, 177, 92, 0.08);
}

.float-item:hover::before {
    transform: scaleX(1);
}

.float-item i {
    font-size: 20px;
}

.float-item span {
    font-size: 13px;
    font-weight: 700;
}

.social-popover {
    position: fixed;
    left: 50%;
    bottom: 92px;
    z-index: 1001;
    width: 280px;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    padding: 24px;
    text-align: center;
    transform: translate(-50%, 20px) scale(0.92);
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(217, 177, 92, 0.4);
    background: rgba(7, 16, 24, 0.94);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.social-popover.show {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
    visibility: visible;
}

.popover-close {
    position: absolute;
    top: 8px;
    right: 10px;
    color: rgba(255, 255, 255, 0.64);
}

.qr-box {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    padding: 10px;
    background: #f8f2dd;
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-popover.portrait-qr {
    width: min(340px, calc(100% - 28px));
}

.social-popover.portrait-qr .qr-box {
    width: min(260px, 100%);
    height: auto;
    max-height: 58vh;
    padding: 8px;
}

.social-popover.portrait-qr .qr-box img {
    height: auto;
    max-height: 56vh;
}

.social-popover h3 {
    color: var(--gold-light);
    font-size: 22px;
}

.social-popover p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 70px 28px 28px;
    background: rgba(2, 7, 12, 0.86);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-modal.show {
    opacity: 1;
    visibility: visible;
}

.video-modal video {
    width: min(960px, 100%);
    max-height: min(72vh, 720px);
    border: 1px solid rgba(217, 177, 92, 0.46);
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.video-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217, 177, 92, 0.42);
    border-radius: 50%;
    background: rgba(7, 16, 24, 0.88);
    color: var(--gold-light);
}

.site-footer {
    padding: 48px 40px 116px;
    background: #05080d;
    color: rgba(246, 241, 230, 0.66);
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
}

.footer-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
}

.footer-link {
    color: rgba(246, 241, 230, 0.92);
}

a.footer-link:hover {
    color: var(--gold-light);
}

.age-panel {
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.age-toggle {
    color: var(--gold-light);
    font-weight: 900;
}

.age-toggle i {
    margin-left: 6px;
    transition: transform 0.25s ease;
}

.age-toggle.open i {
    transform: rotate(180deg);
}

.age-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}

.age-content.open {
    max-height: 260px;
    margin-top: 14px;
    opacity: 1;
}

[data-reveal] {
    transform: translateY(38px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

[data-reveal].revealed {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 1180px) {
    .site-header {
        padding: 0 24px;
    }

    .header-actions {
        min-width: 210px;
    }

    .header-icon:nth-child(1),
    .header-icon:nth-child(2) {
        display: none;
    }

    .machine-stage {
        grid-template-columns: 70px 1fr 1fr 70px;
    }

    .hero-side-card {
        right: 28px;
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: flex;
    }

    .site-header {
        height: 72px;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        height: auto;
        display: grid;
        padding: 18px 24px;
        transform: translateY(-120%);
        background: rgba(4, 10, 16, 0.96);
        border-bottom: 1px solid rgba(217, 177, 92, 0.22);
        transition: transform 0.28s ease;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .nav-link {
        height: 46px;
        padding: 0;
    }

    .header-actions {
        display: none;
    }

    .hero-logo h1::before,
    .hero-logo h1::after {
        display: none;
    }

    .hero-side-card {
        display: none;
    }

    .section-inner {
        width: min(100% - 36px, 760px);
        padding: 100px 0 90px;
    }

    .feature-layout,
    .feature-showcase,
    .story-layout {
        display: block;
    }

    .feature-showcase,
    .story-gallery {
        margin-top: 42px;
    }

    .machine-stage {
        grid-template-columns: 52px 1fr 52px;
        gap: 10px;
    }

    .machine-character {
        grid-column: 2;
        height: 440px;
    }

    .machine-info {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .stage-arrow.next {
        grid-column: 3;
    }

    .machine-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-cards {
        grid-template-columns: 1fr;
    }

    .download-channel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .brand-text {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .hero-content {
        padding-top: 36px;
    }

    .age-badge {
        top: 74px;
    }

    .hero-logo {
        margin-top: 84px;
    }

    .logo-small {
        font-size: 13px;
        letter-spacing: 4px;
    }

    .hero-logo h1 {
        letter-spacing: 4px;
    }

    .hero-logo strong {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 220px;
    }

    .section-title h2 {
        letter-spacing: 3px;
    }

    .feature-visual {
        min-height: 420px;
        transform: scale(0.82);
    }

    .machine-stage {
        margin-top: 34px;
    }

    .machine-character {
        height: 390px;
        transform: scale(0.8);
    }

    .machine-info {
        padding: 30px 24px;
    }

    .machine-info h3 {
        letter-spacing: 2px;
    }

    .machine-tabs {
        grid-template-columns: 1fr;
    }

    .story-card {
        padding: 30px 24px;
    }

    .story-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 190px);
    }

    .gallery-card.tall {
        grid-row: auto;
    }

    .download-channel-section {
        padding: 84px 18px 96px;
    }

    .download-channel-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .download-channel-card {
        min-height: 160px;
    }

    .floating-social {
        height: 66px;
        width: 100%;
    }

    .fixed-age-rating {
        left: 12px;
        bottom: 76px;
        width: 50px;
    }

    .float-item span {
        font-size: 11px;
    }

    .site-footer {
        padding-bottom: 104px;
    }
}
