/* Shared site styles + mobile-first polish */
html { color-scheme: dark; scroll-padding-top: 5.5rem; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-tap-highlight-color: rgba(163, 230, 53, 0.15); }

/* Visually hidden until keyboard focus (a11y) */
.skip-link {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus, .skip-link:focus-visible {
    position: fixed; left: 0; top: 0; z-index: 10001;
    width: auto; height: auto; margin: 0; padding: 1rem 1.5rem;
    overflow: visible; clip: auto; white-space: normal;
    background: #A3E635; color: #000; font-weight: bold;
    border-radius: 0 0 12px 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    outline: 2px solid #fff; outline-offset: 2px;
}

#scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: linear-gradient(90deg, #A3E635, #84cc16); z-index: 10000;
}

#back-to-top {
    position: fixed; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); right: 1rem; z-index: 9990;
    width: 2.75rem; height: 2.75rem; min-width: 44px; min-height: 44px; border-radius: 9999px;
    background: rgba(163, 230, 53, .12); border: 1px solid rgba(163, 230, 53, .35);
    color: #A3E635; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s, background .25s, transform .25s;
    cursor: pointer; touch-action: manipulation;
}
#back-to-top:hover, #back-to-top:active { background: rgba(163, 230, 53, .25); transform: translateY(-2px); }

#mobile-menu {
    display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%; height: 100dvh; background: rgba(5, 5, 5, .98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    z-index: 9996; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: max(1.25rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; overflow-y: auto;
}
#mobile-menu.open { display: flex; }
#mobile-menu #menu-close {
    align-self: flex-end; position: sticky; top: 0; z-index: 2;
    min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center;
    padding: .75rem 1rem; margin-bottom: 1rem;
    color: #a1a1aa !important; font-size: 11px; letter-spacing: .3em;
}
#mobile-menu .mobile-menu-links {
    display: flex; flex-direction: column; align-items: stretch; gap: .25rem;
    flex: 1; justify-content: center; padding-bottom: 2rem;
}
#mobile-menu a.mobile-nav-item {
    position: relative; z-index: 1; color: #fafafa !important;
    display: flex; align-items: center; min-height: 52px;
    padding: .85rem 1rem; border-radius: 14px;
    font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase;
    transition: background .2s, color .2s;
}
#mobile-menu a.mobile-nav-item:active { background: rgba(163, 230, 53, .1); color: #A3E635 !important; }
#mobile-menu a.line-link,
#mobile-menu a.mobile-nav-item.line-link { color: #06C755 !important; }
#mobile-menu .mobile-menu-footer {
    display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
    padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.06);
}
body.menu-open { overflow: hidden; touch-action: none; }
body.menu-open #menu-btn { opacity: 0; pointer-events: none; }
body.menu-open #mobile-dock { opacity: 0; pointer-events: none; }

.line-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .875rem 1.5rem; min-height: 44px; border-radius: 9999px; background: #06C755; color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
    transition: background .25s, transform .25s; touch-action: manipulation;
}
.line-btn:hover { background: #05b04c; transform: translateY(-1px); }
.line-btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .875rem 1.25rem; min-height: 44px; border-radius: 9999px;
    border: 1px solid rgba(6, 199, 85, .45); color: #06C755;
    font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    transition: border-color .25s, background .25s; touch-action: manipulation;
}
.line-btn-outline:hover { border-color: rgba(6, 199, 85, .7); background: rgba(6, 199, 85, .08); }

#line-float {
    position: fixed; bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); right: 1rem; z-index: 9988;
    width: 3.25rem; height: 3.25rem; min-width: 48px; min-height: 48px; border-radius: 9999px;
    background: #06C755; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(6, 199, 85, .35);
    transition: transform .25s, box-shadow .25s; touch-action: manipulation;
}
#line-float:hover, #line-float:active { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 28px rgba(6, 199, 85, .45); }
#line-float svg { width: 1.35rem; height: 1.35rem; }

/* Mobile bottom dock */
#mobile-dock {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9985;
    padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 5, 5, .92);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .35);
}
#mobile-dock nav {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: .15rem;
    max-width: 32rem; margin: 0 auto;
}
#mobile-dock a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .2rem; min-height: 48px; padding: .35rem .2rem; border-radius: 12px;
    color: #a1a1aa; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; touch-action: manipulation; transition: color .2s, background .2s;
}
#mobile-dock a:active, #mobile-dock a.active { color: #A3E635; background: rgba(163, 230, 53, .08); }
#mobile-dock a.dock-line { color: #06C755; }
#mobile-dock a.dock-line:active { background: rgba(6, 199, 85, .1); }
#mobile-dock svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.form-input {
    width: 100%; padding: .875rem 1rem; border-radius: 12px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
    color: #fafafa; font-size: 16px; font-family: inherit; /* 16px prevents iOS zoom */
    box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: rgba(163, 230, 53, .5); }
.form-input::placeholder { color: #71717a; }
.form-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .875rem 1.75rem; min-height: 48px; border-radius: 9999px; background: #A3E635; color: #000;
    font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    transition: background .25s; cursor: pointer; border: none; touch-action: manipulation;
}
.form-btn:hover { background: #b8f048; }

/* Shared page chrome */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.bg-mesh {
    background-image:
        radial-gradient(at 0% 0%, rgba(163, 230, 53, 0.08) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(163, 230, 53, 0.08) 0, transparent 50%);
}
.photo-frame {
    position: relative; overflow: hidden; border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.live-cta-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .875rem 1.5rem; min-height: 44px; border-radius: 9999px; background: #A3E635; color: #000;
    font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    transition: background .25s; touch-action: manipulation; text-align: center;
}
.live-cta-primary:hover { background: #b8f048; }
.live-cta-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .875rem 1.25rem; min-height: 44px; border-radius: 9999px;
    border: 1px solid rgba(163, 230, 53, 0.35); color: #A3E635;
    font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
    transition: background .25s, border-color .25s; touch-action: manipulation; text-align: center;
}
.live-cta-secondary:hover { background: rgba(163, 230, 53, 0.08); }

.countdown-wrap { margin-bottom: 1.25rem; }
.countdown-label { display: block; font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: #71717a; margin-bottom: .75rem; }
[data-countdown] { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem; font-variant-numeric: tabular-nums; }
.countdown-num { font-size: 1.75rem; font-weight: 700; color: #A3E635; line-height: 1; }
.countdown-unit { font-size: 10px; letter-spacing: .15em; color: #71717a; margin-right: .5rem; text-transform: uppercase; }
[data-countdown].countdown-today { font-size: 1rem; font-weight: 700; color: #A3E635; letter-spacing: .1em; }

.spotify-embed { border-radius: 12px; overflow: hidden; width: 100%; }
.spotify-embed iframe { max-width: 100%; }

#gallery-lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 10002;
    background: rgba(0, 0, 0, .92); align-items: center; justify-content: center;
    padding: 1rem; box-sizing: border-box;
}
#gallery-lightbox-overlay.open { display: flex; }
#gallery-lightbox-overlay figure { max-width: min(920px, 100%); margin: 0; text-align: center; }
#gallery-lightbox-overlay img { max-width: 100%; max-height: 75vh; border-radius: 12px; object-fit: contain; }
#gallery-lightbox-caption { margin-top: 1rem; font-size: 12px; color: #a1a1aa; letter-spacing: .05em; padding: 0 .5rem; }
#gallery-lightbox-close {
    position: absolute; top: max(1rem, env(safe-area-inset-top)); right: 1rem;
    background: rgba(0,0,0,.5); border: none; color: #fafafa;
    width: 44px; height: 44px; border-radius: 9999px;
    font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .9;
    display: flex; align-items: center; justify-content: center;
}
#gallery-lightbox-close:hover { opacity: 1; color: #A3E635; }

#loader {
    position: fixed; inset: 0; z-index: 99999; background: #050505;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease, visibility .6s ease;
}
#loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text { font-size: 2rem; font-weight: 700; letter-spacing: -.05em; color: #fafafa; }
.loader-text span { color: #A3E635; }

/* —— Mobile (phones) —— */
@media (max-width: 767px) {
    html { scroll-padding-top: 4.5rem; scroll-padding-bottom: 5.5rem; }

    body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }

    #mobile-dock { display: block; }
    #line-float { display: none; } /* dock has LINE */

    #back-to-top {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
        right: .75rem;
        width: 2.5rem; height: 2.5rem;
    }

    /* Touch-friendly buttons: full width stacks */
    .live-cta-primary,
    .live-cta-secondary,
    .line-btn,
    .line-btn-outline,
    .form-btn,
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        letter-spacing: .12em;
        font-size: 11px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .photo-frame { border-radius: 16px; }

    .countdown-num { font-size: 1.5rem; }
    .countdown-unit { margin-right: .35rem; }

    /* Subpage main padding */
    main#main-content,
    main.max-w-5xl,
    main.max-w-3xl,
    main.max-w-6xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Fixed navs on subpages */
    nav.fixed {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: .85rem !important;
        padding-bottom: .85rem !important;
    }
    nav.fixed .text-2xl { font-size: 1.25rem; }

    /* Footer SNS: smaller, wrap */
    footer .w-16.h-16 { width: 3rem; height: 3rem; }
    footer .flex.justify-center.gap-10,
    footer .flex.justify-center.gap-10.md\:gap-16 {
        gap: 1rem !important;
        flex-wrap: wrap;
    }

    /* Footer link rows: wrap cleanly */
    footer .flex.justify-center.items-center.gap-6 {
        flex-wrap: wrap;
        gap: .5rem .75rem !important;
        padding: 0 .5rem;
        line-height: 1.8;
    }

    /* Glass cards: less padding on small screens */
    .glass.p-10,
    .glass.p-8.md\:p-10,
    .glass.p-8.md\:p-12,
    .glass.p-10.md\:p-12 {
        padding: 1.25rem !important;
        border-radius: 1.25rem !important;
    }

    /* Forms: comfortable tap */
    .form-input { font-size: 16px; padding: 1rem; min-height: 48px; }
    textarea.form-input { min-height: 6rem; }

    /* Prevent horizontal scroll from long words */
    h1, h2, h3, p, a { overflow-wrap: anywhere; word-break: break-word; }
    h1, h2, h3 { word-break: normal; overflow-wrap: break-word; }

    /* Menu button larger hit area */
    #menu-btn {
        min-width: 44px; min-height: 44px;
        align-items: center; justify-content: center;
        margin-right: -.25rem;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    #mobile-dock a { font-size: 8px; letter-spacing: .04em; }
    #mobile-dock svg { width: 1.1rem; height: 1.1rem; }
    .countdown-num { font-size: 1.25rem; }
}

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

/* Desktop: hide dock */
@media (min-width: 768px) {
    #mobile-dock { display: none !important; }
    body { padding-bottom: 0; }
}
