/* ==========================================================
   LIME JellyBlock — official site
   ========================================================== */

:root {
    --header-h: 76px;
    --c-title: #324158;
    --c-text: #20303c;
    --c-desc: #99a4b2;
    --c-lime: #3ef6ff;
    --c-juju: #fff578;
    --c-jmb-yellow: #f0b425;
    --c-jmb-black: #1d1d1f;
    --c-frame: #8fd3f4;
    --font-round: "Fredoka", "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    /* gentle snap: only pulls in when a section edge is close; long sections still scroll freely */
    scroll-snap-type: y proximity;
}
.hero, .trailer, .feature { scroll-snap-align: start; }
.site-footer { scroll-snap-align: end; }

body {
    font-family: var(--font-round);
    color: var(--c-text);
    background: #eaf8fd;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Header (fixed, frosted glass, wavy bottom) ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    /* wavy bottom edge */
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 76' preserveAspectRatio='none'><path d='M0 0H1440V62C1300 76 1180 52 1010 60C840 68 720 76 540 64C360 52 220 72 0 62Z'/></svg>") 0 0 / 100% 100% no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 76' preserveAspectRatio='none'><path d='M0 0H1440V62C1300 76 1180 52 1010 60C840 68 720 76 540 64C360 52 220 72 0 62Z'/></svg>") 0 0 / 100% 100% no-repeat;
    transition: background-color .3s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.85); }

.header-inner {
    max-width: 1280px;
    height: calc(var(--header-h) - 12px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo img { height: 40px; width: auto; }

.header-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
    font-weight: 600;
    font-size: 17px;
    color: var(--c-title);
    transition: color .2s;
}
.nav-link:hover { color: var(--c-jmb-yellow); }

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    border-radius: 21px;
    background: var(--c-jmb-black);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    transition: background-color .2s, transform .2s;
}
.btn-shop img { width: 22px; height: 22px; }
.btn-shop:hover { background: var(--c-jmb-yellow); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 760px;
    padding-top: var(--header-h);
    background: url("../images/hero_bg.png") center top / cover no-repeat;
    overflow: hidden;
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: flex;
    align-items: center;
}
.hero-text { flex: 0 0 52%; position: relative; z-index: 2; }
.hero-logo { width: 300px; margin-bottom: 10px; }
.hero-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 3px 0 rgba(32, 48, 60, .35);
}
.c-lime { color: var(--c-lime); }
.c-juju { color: var(--c-juju); }
.hero-sub {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 0 rgba(32, 48, 60, .3);
}
.store-badges { display: flex; gap: 14px; margin-top: 28px; }
.store-badges img { height: 52px; width: auto; transition: transform .2s; }
.store-badges a:hover img { transform: translateY(-3px); }

.hero-visual { flex: 1; margin-left: -40px; }
.hero-visual img { width: 100%; max-width: 820px; margin-left: auto; }

/* ---------- Common section title ---------- */
.section-title {
    text-align: center;
    font-size: 52px;
    font-weight: 700;
    color: var(--c-title);
    letter-spacing: 1px;
}

/* ---------- Trailer ---------- */
.trailer {
    position: relative;
    z-index: 3;
    margin-top: -90px;
    padding: 70px 24px 140px;
    background: url("../images/video_bg.png") center bottom / 100% 100% no-repeat;
}
.video-frame {
    position: relative;
    max-width: 880px;
    margin: 36px auto 0;
    aspect-ratio: 16 / 9;
    border: 4px solid var(--c-frame);
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 14px 30px rgba(50, 65, 88, .25);
    cursor: pointer;
}
.video-poster, .video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
    position: absolute;
    left: 50%; top: 50%;
    width: 84px; height: 84px;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 50%;
    background: rgba(32, 48, 60, .85);
    cursor: pointer;
    transition: transform .2s, background-color .2s;
}
.video-play::after {
    content: "";
    position: absolute;
    left: 34px; top: 26px;
    border-style: solid;
    border-width: 16px 0 16px 26px;
    border-color: transparent transparent transparent #fff;
}
.video-frame:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--c-jmb-yellow); }

/* ---------- Game Feature ---------- */
.feature {
    position: relative;
    margin-top: -120px;
    padding: 190px 24px 260px;
    background: url("../images/feature_bg.png") center top / cover no-repeat;
}
.feature .section-title { margin-bottom: 40px; }

.feature-carousel {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 70px;
}
.feature-card {
    height: 100%;
    padding: 18px 18px 26px;
    border-radius: 26px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 20px rgba(50, 65, 88, .12);
}
.feature-card img {
    width: 100%;
    aspect-ratio: 239 / 424;
    object-fit: cover;
    border-radius: 16px;
}
.feature-card h3 {
    margin-top: 18px;
    font-size: 26px;
    font-weight: 700;
    color: var(--c-title);
}
.feature-card p {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--c-desc);
}

/* arrows (尖咀) — swap background-image for designer's art when ready */
.feature-carousel .splide__arrow {
    width: 52px; height: 52px;
    background: #fff;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(50, 65, 88, .2);
    transition: background-color .2s, transform .2s;
}
.feature-carousel .splide__arrow svg { width: 22px; height: 22px; fill: var(--c-title); }
.feature-carousel .splide__arrow--prev { left: 0; }
.feature-carousel .splide__arrow--next { right: 0; }
.feature-carousel .splide__arrow:hover:not(:disabled) { background: var(--c-jmb-yellow); }
.feature-carousel .splide__arrow:hover:not(:disabled) svg { fill: #fff; }
.feature-carousel .splide__arrow:disabled { opacity: .35; }

.feature-carousel .splide__pagination { bottom: -44px; }
.feature-carousel .splide__pagination__page {
    width: 12px; height: 12px;
    margin: 4px 6px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 0 0 2px rgba(50, 65, 88, .25);
    opacity: 1;
}
.feature-carousel .splide__pagination__page.is-active {
    background: var(--c-jmb-yellow);
    transform: scale(1.2);
}

.feature-deco {
    position: absolute;
    right: 4%;
    bottom: 30px;
    width: 220px;
    pointer-events: none;
}

/* ---------- Footer (JMB: black / white / yellow) ---------- */
.site-footer { background: var(--c-jmb-black); color: #fff; }
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.footer-logo img { height: 56px; width: auto; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 16px; font-weight: 500; letter-spacing: .5px; transition: color .2s; }
.footer-links a:hover { color: var(--c-jmb-yellow); }
.footer-badges { margin-top: 0; }
.footer-badges img { height: 46px; }
.copyright {
    padding: 14px 24px;
    border-top: 3px solid var(--c-jmb-yellow);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner { flex-direction: column; text-align: center; padding-bottom: 120px; }
    .hero-text { flex: none; }
    .hero-logo { margin: 0 auto 10px; }
    .store-badges { justify-content: center; }
    .hero-visual { margin: 20px 0 0; }
    .hero-visual img { margin: 0 auto; }
    .section-title { font-size: 42px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { align-items: center; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    .header-inner { padding: 0 16px; }
    .header-logo img { height: 30px; }
    .nav-link { display: none; }
    .btn-shop { height: 36px; padding: 0 16px; font-size: 15px; }
    .btn-shop img { width: 18px; height: 18px; }
    .hero { min-height: 0; }
    .hero-inner { padding: 24px 16px 110px; }
    .hero-logo { width: 220px; }
    .hero-title { font-size: 28px; }
    .hero-sub { font-size: 16px; }
    .store-badges img { height: 44px; }
    .section-title { font-size: 32px; }
    .trailer { padding: 60px 16px 110px; }
    .video-frame { border-width: 3px; border-radius: 12px; }
    .video-play { width: 64px; height: 64px; }
    .video-play::after { left: 26px; top: 20px; border-width: 12px 0 12px 20px; }
    .feature { padding: 160px 16px 220px; }
    .feature-carousel { padding: 0 44px; }
    .feature-carousel .splide__arrow { width: 40px; height: 40px; }
    .feature-deco { width: 150px; }
    .footer-badges img { height: 40px; }
}
