:root {
    --bg: #f7f4ef;
    --bg-accent: #f0ede6;
    --card: #ffffff;
    --ink: #1f2933;
    --muted: #4b5563;
    --accent: #ecb465;
    --accent-strong: #e39b46;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
    --radius: 16px;
    --radius-lg: 22px;
    --max-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: radial-gradient(1200px 800px at 20% 10%, #fff8ee, transparent 55%), linear-gradient(180deg, var(--bg), #ffffff);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.6rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
}

.brand img {
    width: 42px;
    height: auto;
    border-radius: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.nav-links select {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.35rem 0.65rem;
    background: #fff;
    font-weight: 700;
}

.nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #1f1308;
    box-shadow: 0 12px 30px rgba(227, 155, 70, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(227, 155, 70, 0.4);
}

.btn-ghost {
    background: rgba(31, 41, 51, 0.08);
    color: var(--ink);
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 41, 51, 0.12);
}

.floating-ig {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    align-items: center;
    padding: 2rem;
    margin-top: 1.2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.eyebrow {
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
}

h1 {
    margin: 0.4rem 0 0.6rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
}

h2 {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
}

h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

p {
    margin: 0 0 0.8rem;
    color: var(--muted);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.6rem 0 1rem;
}

.pill {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 41, 51, 0.08);
    font-weight: 700;
    font-size: 0.95rem;
}

.section {
    margin-top: 2.2rem;
}

.section-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.06);
}

.card strong {
    color: var(--ink);
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.age-card h3 {
    margin: 0 0 0.35rem;
}

.how-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 12px 32px rgba(31, 41, 51, 0.08);
}

.how-card h3 {
    margin: 0.4rem 0 0.35rem;
}

.how-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5decd, #dbe7f9);
    color: var(--ink);
    font-weight: 800;
}

.list-inline {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0;
    margin: 0.6rem 0 0;
    list-style: none;
}

.about-list {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.35rem;
    color: var(--ink);
}

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

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.story-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0.8rem 0 0.6rem;
}

.stories-grid .story-card {
    position: relative;
    border-radius: 20px;
    min-height: 320px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #0e1724;
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

.stories-grid .story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(31, 41, 51, 0.18);
}

.stories-grid .story-card[data-coming-soon="true"] {
    cursor: not-allowed;
}

.stories-grid .story-card[data-coming-soon="true"]:hover {
    transform: none;
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.12);
}

.story-picker-grid .story-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 320px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.12);
    border: 1px solid var(--border);
    cursor: pointer;
}
.story-picker-grid .story-card[data-coming-soon="true"],
.story-picker-grid .story-card.is-coming {
    cursor: not-allowed;
    filter: grayscale(0.08) opacity(0.92);
}

.story-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.story-card[data-coming-soon="true"] .story-bg,
.story-card.is-coming .story-bg {
    background: linear-gradient(150deg, #dbe7f9, #f5decd);
}

.story-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}
.story-picker-grid .story-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 41, 51, 0.08);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.badge.example {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.85);
}

.badge.coming-soon {
    background: rgba(255, 255, 255, 0.95);
}

.story-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: inherit;
    padding: 0;
}

.story-play:disabled {
    opacity: 0.9;
}

.story-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    z-index: 3;
    background: linear-gradient(180deg, rgba(6, 12, 20, 0) 0%, rgba(6, 12, 20, 0.82) 100%);
}

.story-title {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
}

.story-subtitle {
    margin: 0.3rem 0 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-tile {
    position: relative;
    border-radius: 20px;
    min-height: 320px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    display: block;
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.12);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: #0e1724;
}

.preview-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(31, 41, 51, 0.18);
}

.preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) brightness(0.96);
    transition: filter 0.2s ease;
}

.preview-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 12, 20, 0.12) 0%, rgba(6, 12, 20, 0.75) 100%);
    z-index: 1;
}

.preview-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 1.2rem;
    position: absolute;
    inset: 0;
}

.preview-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 100%;
}

.preview-title {
    margin: 0;
    color: #fff;
    font-size: 1.22rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.preview-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.preview-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.preview-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.play-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(31, 41, 51, 0.18);
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.play-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.2);
}

.play-pill svg {
    margin-left: 2px;
}

.notify-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.15);
    border: 1px solid rgba(31, 41, 51, 0.08);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.notify-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 41, 51, 0.18);
}

.preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-weight: 800;
    border: 1px solid var(--border);
}

.preview-badge--soon {
    background: rgba(255, 255, 255, 0.9);
    color: #5b6170;
}

.preview-tile.is-placeholder {
    cursor: default;
}

.play-pill.is-disabled:hover {
    transform: none;
}

.preview-tile.is-placeholder:hover {
    transform: none;
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.12);
}

.play-pill[disabled],
.play-pill[aria-disabled="true"] {
    pointer-events: none;
}

.preview-actions .play-pill {
    align-self: flex-start;
}

.preview-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, #dbe7f9, #f5decd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0e1724;
    font-weight: 800;
    letter-spacing: 0.02em;
    z-index: 0;
}

.preview-label {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(14, 23, 36, 0.08);
    color: #0e1724;
    font-weight: 700;
    z-index: 3;
}

.story-placeholder-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #dbe7f9, #f5decd);
    color: #0e1724;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.story-card[data-coming-soon="true"] .story-play,
.story-card.is-coming .story-play {
    opacity: 0.6;
    cursor: not-allowed;
}

.preview-tile.is-coming-soon {
    cursor: not-allowed;
    opacity: 0.9;
}

.preview-tile.is-coming-soon:hover {
    transform: none;
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.12);
}

.preview-tile.is-coming-soon .play-pill {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

@media (max-width: 640px) {
    .preview-tile {
        min-height: 220px;
    }
}

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

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

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

    .story-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery-preview,
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stories-grid .story-card {
        min-height: 220px;
    }

    .story-title {
        font-size: 1.05rem;
    }

    .story-subtitle {
        font-size: 0.95rem;
    }

    .section-card {
        padding: 1.25rem;
    }

    .page {
        padding: 1.2rem 1rem 2rem;
    }

    .story-card {
        min-height: 220px;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .story-picker-grid {
        grid-template-columns: 1fr;
    }
}

.legenio-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.legenio-modal[hidden] {
    display: none;
}

.legenio-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.legenio-modal__dialog {
    position: relative;
    background: #000;
    border-radius: 14px;
    max-width: min(900px, 90vw);
    width: 100%;
    padding: 0.5rem;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.legenio-modal__body iframe,
.legenio-modal__body img {
    width: 100%;
    height: min(70vh, 540px);
    border: none;
    border-radius: 10px;
}

.legenio-modal__close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
}

.modal-open {
    overflow: hidden;
}

.faq-grid {
    display: grid;
    gap: 0.8rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem;
    background: var(--card);
    box-shadow: 0 10px 22px rgba(31, 41, 51, 0.06);
}

.footer {
    margin-top: 2.5rem;
    padding: 1.4rem 0 0.8rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.4rem 0;
}

.form-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
}

.form-modal.is-open {
    display: flex;
}

.form-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.form-modal__dialog {
    position: relative;
    background: #fff;
    width: min(720px, 92vw);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

.form-steps {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.form-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(31, 41, 51, 0.12);
}

.form-step-dot.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.dropzone {
    border: 2px dashed rgba(31, 41, 51, 0.25);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    margin-top: 0.6rem;
}

.form-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.12);
.story-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0.8rem 0 0.6rem;
}

.story-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    padding-top: 2.2rem;
    background: #fff;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: border 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.story-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 41, 51, 0.12);
}

.story-card.is-selected {
    border-color: rgba(236, 180, 101, 0.9);
    box-shadow: 0 12px 28px rgba(227, 155, 70, 0.22);
    background: #fff9f4;
}

.story-card.is-coming {
    background: #f8fafc;
}

.story-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 41, 51, 0.08);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
}

.story-card-title {
    font-weight: 800;
    margin: 0 0 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.line-clamp-1 {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-coming-note {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.inline-alert {
    border: 1px solid rgba(227, 155, 70, 0.45);
    background: rgba(236, 180, 101, 0.12);
    color: #8a5a1d;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    margin: 0.4rem 0 0.8rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.7rem;
    margin: 0.8rem 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 700;
    color: var(--ink);
}

input,
textarea,
select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.field-error {
    color: #b42318;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.submit-error {
    color: #b42318;
    margin-top: 0.8rem;
    font-weight: 700;
}

.file-list {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.gallery-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem;
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: #f4f5f7;
}

.gallery-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-card__title {
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.gallery-card__desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.gallery-card__note {
    margin: 0 0 0.3rem;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
}

.gallery-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    font-weight: 700;
    pointer-events: none;
}

.gallery-card.is-placeholder {
    cursor: default;
    opacity: 0.82;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(31, 41, 51, 0.14);
}

.gallery-card.is-video .gallery-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
    border-radius: 12px;
    opacity: 0.35;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.gallery-card.is-video:hover .gallery-card__play {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-card__play svg {
    width: 46px;
    height: 46px;
    color: #fff;
}

.filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.filter-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.filter-btn.is-active {
    background: rgba(236, 180, 101, 0.18);
    border-color: rgba(236, 180, 101, 0.4);
}

@media (max-width: 840px) {
    .nav-links {
        position: absolute;
        inset: calc(100% + 8px) 1.25rem auto 1.25rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0.8rem;
        flex-direction: column;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }
}
