/*
    site.css
    Lucky Goldfish website

    Copyright © 2026 JiangWenyou. All rights reserved.

    A night of blue-and-white porcelain: deep cobalt, goldfish red and lantern gold. Every colour pair used for text
    keeps a contrast of at least 4.5 : 1.
*/

:root
{
    --ink: #0b1220;
    --ink-raised: #0f182a;
    --panel: #142035;
    --line: rgba(236, 240, 246, 0.1);
    --text: #eef1f6;
    --muted: #aeb9cb;
    --faint: #8893a8;
    --fish: #c9412b;
    --fish-hover: #a93623;
    --gold: #e6bd6c;
    --gold-hover: #f3d697;
    --radius: 22px;
    --radius-small: 14px;
    --content: 1180px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

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

html
{
    background: var(--ink);
    color: var(--text);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

html:lang(zh-Hans)
{
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html:lang(zh-Hant)
{
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

html:lang(ja)
{
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

body
{
    margin: 0;
}

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

img
{
    height: auto;
}

a
{
    color: var(--gold);
    text-underline-offset: 3px;
}

a:hover
{
    color: var(--gold-hover);
}

:focus-visible
{
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

p
{
    margin: 0 0 14px;
}

h2
{
    margin: 0;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.015em;
    font-weight: 700;
}

h3
{
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 650;
}

:lang(zh-Hans) h2,
:lang(zh-Hant) h2,
:lang(ja) h2
{
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.skip
{
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--gold);
    color: #1a1408;
    font-weight: 600;
    text-decoration: none;
}

.skip:focus
{
    top: 12px;
}

/* The bar at the top */

.bar
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
    padding: 0 max(20px, calc((100vw - var(--content)) / 2));
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.bar.is-scrolled
{
    background: rgba(10, 20, 22, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 1px 0 var(--line);
}

.brand
{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover
{
    color: var(--text);
}

.brand img
{
    width: 30px;
    height: 30px;
}

.sections
{
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.sections a
{
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
}

.sections a:hover
{
    color: var(--text);
}

.bar-end
{
    display: flex;
    align-items: center;
    gap: 14px;
}

.languages
{
    position: relative;
}

.languages summary
{
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 15px;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
}

.languages summary::-webkit-details-marker
{
    display: none;
}

.languages summary::after
{
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

.languages summary:hover,
.languages[open] summary
{
    color: var(--text);
}

.languages ul
{
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
    list-style: none;
}

.languages a,
.footer-languages a
{
    display: block;
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    text-decoration: none;
}

.languages a:hover,
.languages a[aria-current="page"]
{
    background: rgba(236, 241, 236, 0.08);
}

.bar-store
{
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--fish);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.bar-store:hover
{
    background: var(--fish-hover);
    color: #fff;
}

@media (max-width: 920px)
{
    .sections
    {
        display: none;
    }

    .bar-end
    {
        margin-left: auto;
    }
}

@media (max-width: 420px)
{
    .brand span
    {
        display: none;
    }
}

/* The top of the page */

.hero
{
    position: relative;
    display: grid;
    place-items: center;
    min-height: max(660px, 100vh);
    padding: 120px 24px 104px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background: var(--ink);
}

@supports (min-height: 100svh)
{
    .hero
    {
        min-height: max(660px, 100svh);
    }
}

.hero-video
{
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade
{
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(10, 20, 22, 0.3) 0%, rgba(10, 20, 22, 0.72) 75%),
        linear-gradient(180deg, rgba(10, 20, 22, 0.6) 0%, rgba(10, 20, 22, 0.1) 30%, rgba(10, 20, 22, 0.25) 70%, var(--ink) 100%);
}

.hero-content
{
    max-width: 860px;
}

.hero-icon
{
    width: 112px;
    height: 112px;
    margin: 0 auto 22px;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}

.hero h1
{
    margin: 0;
    font-size: clamp(48px, 7.4vw, 100px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    font-weight: 750;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}

:lang(zh-Hans) .hero h1,
:lang(zh-Hant) .hero h1,
:lang(ja) .hero h1
{
    letter-spacing: 0.06em;
}

.hero-tagline
{
    margin: 16px 0 0;
    color: #f6f1e6;
    font-size: clamp(20px, 2.5vw, 29px);
    font-weight: 500;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-lead
{
    max-width: 660px;
    margin: 22px auto 0;
    color: rgba(236, 241, 236, 0.9);
    font-size: 18px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero-actions
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

.badge
{
    display: inline-block;
    border-radius: 12px;
}

.badge img
{
    width: auto;
    height: 54px;
}

.button-film
{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 26px;
    border: 1px solid rgba(236, 241, 236, 0.45);
    border-radius: 999px;
    background: rgba(10, 20, 22, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.button-film::before
{
    content: "";
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
}

.button-film:hover
{
    border-color: var(--text);
    color: var(--text);
}

.hero-meta
{
    margin: 20px 0 0;
    color: rgba(236, 241, 236, 0.75);
    font-size: 14px;
}

.hero-pause
{
    position: absolute;
    right: 20px;
    bottom: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(236, 241, 236, 0.3);
    border-radius: 999px;
    background: rgba(10, 20, 22, 0.5);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.hero-pause:hover
{
    border-color: rgba(236, 241, 236, 0.7);
}

.hero-pause[hidden]
{
    display: none;
}

/* Sections */

.section
{
    max-width: var(--content);
    margin: 0 auto;
    padding: clamp(84px, 11vw, 150px) 24px 0;
}

.section-head
{
    max-width: 780px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.eyebrow
{
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

:lang(zh-Hans) .eyebrow,
:lang(zh-Hant) .eyebrow,
:lang(ja) .eyebrow
{
    letter-spacing: 0.22em;
    text-transform: none;
}

.lead
{
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 19px;
}

.shot
{
    width: 100%;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow);
    background: var(--ink-raised);
}

/* Three ways */

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

.way h3
{
    margin-top: 26px;
}

.way p
{
    color: var(--muted);
}

@media (max-width: 960px)
{
    .ways
    {
        grid-template-columns: minmax(0, 1fr);
        gap: 52px;
        max-width: 660px;
        margin: 0 auto;
    }
}

/* iPhone and iPad */
.phones
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
.phone
{
    text-align: center;
}
.phone h3
{
    margin-top: 30px;
}
.phone p
{
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
}
/* A screenshot of iPhone, with the rounded corners of its screen. */
.screen
{
    width: min(100%, 270px);
    margin: 0 auto;
    border-radius: 12.5% / 5.75%;
    box-shadow: var(--shadow);
    background: var(--ink-raised);
}
.split.tablet
{
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    margin-top: clamp(64px, 9vw, 110px);
}
.split.tablet .split-media
{
    width: 100%;
    max-width: 400px;
    justify-self: center;
}
@media (max-width: 760px)
{
    .phones
    {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }
    .screen
    {
        width: min(66%, 270px);
    }
}
@media (max-width: 960px)
{
    .split.tablet
    {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* Text beside a picture */

.split
{
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.split.reverse .split-text
{
    order: 2;
}

.split-text h2
{
    margin-bottom: 22px;
}

.split-text h3
{
    margin-bottom: 18px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.01em;
    font-weight: 700;
}

:lang(zh-Hans) .split-text h3,
:lang(zh-Hant) .split-text h3,
:lang(ja) .split-text h3
{
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.split-text p:not(.eyebrow)
{
    color: var(--muted);
    font-size: 18px;
}

.split-media
{
    margin: 0;
}

@media (max-width: 960px)
{
    .split
    {
        grid-template-columns: minmax(0, 1fr);
    }

    .split.reverse .split-text
    {
        order: 0;
    }
}

/* The varieties */

.fish-wall
{
    margin-top: clamp(56px, 8vw, 96px);
}

.fish-wall h3
{
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
}

/* Rows of six (four, three, two on narrower screens); a last row that is not full stays in
   the middle. */
.fish-grid
{
    --per-row: 6;
    --gap: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.fish-grid li
{
    width: calc((100% - (var(--per-row) - 1) * var(--gap)) / var(--per-row));
    text-align: center;
}

.fish-grid img
{
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    border-radius: 10px;
    background: #203b72;
}

@media (max-width: 960px)
{
    .fish-grid
    {
        --per-row: 4;
    }
}

@media (max-width: 700px)
{
    .fish-grid
    {
        --per-row: 3;
    }
}

@media (max-width: 460px)
{
    .fish-grid
    {
        --per-row: 2;
    }
}

.fish-grid span
{
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

/* The vessels */

.vessel-grid
{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 18px;
    margin: 0 0 clamp(56px, 8vw, 96px);
    padding: 0;
    list-style: none;
}

.vessel-grid figure
{
    margin: 0;
}

.vessel-grid img
{
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.vessel-grid figcaption
{
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 960px)
{
    .vessel-grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Water and sound */

.band
{
    position: relative;
    margin-top: clamp(84px, 11vw, 150px);
    padding: clamp(100px, 13vw, 180px) 24px;
    isolation: isolate;
    background-color: var(--ink);
    background-position: center;
    background-size: cover;
}

.band::before
{
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 20, 22, 0.9) 0%, rgba(10, 20, 22, 0.62) 55%, rgba(10, 20, 22, 0.35) 100%),
        linear-gradient(180deg, var(--ink) 0%, rgba(10, 20, 22, 0) 18%, rgba(10, 20, 22, 0) 82%, var(--ink) 100%);
}

.band-inner
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    max-width: var(--content);
    margin: 0 auto;
}

.band h2
{
    margin-bottom: 16px;
    font-size: clamp(28px, 3.4vw, 40px);
}

.band p
{
    max-width: 480px;
    color: rgba(236, 241, 236, 0.88);
    font-size: 18px;
}

@media (max-width: 800px)
{
    .band-inner
    {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The film */

.film-frame
{
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.film-frame video
{
    width: 100%;
    height: 100%;
}

/* Quiet, efficient and private */

.tiles
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tile
{
    padding: 34px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.tile svg
{
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    color: var(--gold);
}

.tile p
{
    margin: 0;
    color: var(--muted);
}

@media (max-width: 900px)
{
    .tiles
    {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The gallery */

.gallery-grid
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-grid figure
{
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: var(--ink-raised);
}

.gallery-grid img
{
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-grid figure:hover img
{
    transform: scale(1.04);
}

.gallery-grid figcaption
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 18px 14px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 900px)
{
    .gallery-grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px)
{
    .gallery-grid
    {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Download */

.cta-wrap
{
    padding: 0 24px;
}

.cta
{
    max-width: 880px;
    margin: clamp(84px, 11vw, 150px) auto 0;
    padding: clamp(48px, 7vw, 76px) 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: radial-gradient(ellipse at 50% 0%, rgba(196, 64, 42, 0.26), rgba(196, 64, 42, 0) 62%), var(--panel);
    text-align: center;
}

.cta-icon
{
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
}

.cta h2
{
    margin-bottom: 14px;
    font-size: clamp(28px, 3.6vw, 42px);
}

.cta p
{
    color: var(--muted);
}

.cta .badge
{
    margin-top: 14px;
}

.cta-meta
{
    margin: 16px 0 0;
    font-size: 14px;
}

/* Support */

.support-layout
{
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.faq details
{
    border-bottom: 1px solid var(--line);
}

.faq details:first-child
{
    border-top: 1px solid var(--line);
}

.faq summary
{
    position: relative;
    padding: 20px 44px 20px 0;
    font-size: 18px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker
{
    display: none;
}

.faq summary::after
{
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    color: var(--gold);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.faq details[open] summary::after
{
    content: "\2212";
}

.faq details p
{
    margin: 0 0 22px;
    color: var(--muted);
}

.contact
{
    margin-top: 28px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--panel);
}

.contact h3
{
    font-size: 19px;
}

.contact p
{
    margin: 0;
    color: var(--muted);
}

@media (max-width: 960px)
{
    .support-layout
    {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Privacy */

.privacy-body
{
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink-raised);
}

.privacy-body p,
.privacy-body li
{
    color: #d2dcd9;
}

.privacy-body ul
{
    margin: 0 0 18px;
    padding-left: 1.2em;
}

.privacy-body li
{
    margin-bottom: 10px;
}

.privacy-body .privacy-date
{
    color: var(--faint);
    font-size: 15px;
}

/* Footer */

.site-footer
{
    margin-top: clamp(84px, 11vw, 150px);
    padding: 48px 24px 60px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 14px;
}

.footer-inner
{
    display: grid;
    gap: 22px;
    max-width: var(--content);
    margin: 0 auto;
}

.footer-top
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
}

.footer-brand img
{
    width: 36px;
    height: 36px;
}

.footer-tagline
{
    color: var(--faint);
    font-weight: 400;
}

.footer-links,
.footer-languages
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a
{
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover
{
    color: var(--text);
}

.footer-languages a
{
    padding: 4px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-languages a[aria-current="page"]
{
    color: var(--text);
    font-weight: 600;
}

.footer-legal p
{
    margin: 0 0 6px;
    font-size: 13px;
}

/* Sections come in gently as they scroll into view */

.js .reveal
{
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.is-visible
{
    opacity: 1;
    transform: none;
}

@media print
{
    .js .reveal
    {
        opacity: 1;
        transform: none;
    }

    .bar,
    .hero-video,
    .hero-pause
    {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce)
{
    html
    {
        scroll-behavior: auto;
    }

    .js .reveal
    {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .gallery-grid img,
    .gallery-grid figure:hover img
    {
        transform: none;
        transition: none;
    }
}
