/* =====================================================
   DLM — In the Community
   Fun & colorful design system (converted from the
   "Community Spark" template to plain CSS).
   ===================================================== */

:root {
    --radius: 1rem;

    --background: oklch(1 0 0);
    --foreground: oklch(0.22 0.03 280);

    --card: oklch(1 0 0);
    --card-foreground: oklch(0.22 0.03 280);

    --primary: oklch(0.68 0.16 25);
    --primary-foreground: oklch(1 0 0);

    --secondary: oklch(0.82 0.1 230);
    --secondary-foreground: oklch(0.22 0.03 280);

    --muted: oklch(0.97 0.01 80);
    --muted-foreground: oklch(0.5 0.02 280);

    --border: oklch(0.92 0.02 80);
    --input: oklch(0.95 0.02 80);
    --ring: oklch(0.68 0.16 25);

    --sun: oklch(0.94 0.12 90);
    --sun-foreground: oklch(0.3 0.06 60);
    --sky: oklch(0.88 0.1 230);
    --sky-foreground: oklch(0.25 0.05 260);
    --mint: oklch(0.92 0.1 165);
    --mint-foreground: oklch(0.28 0.06 160);
    --coral: oklch(0.74 0.15 25);
    --coral-foreground: oklch(1 0 0);

    --gradient-fun: linear-gradient(120deg, oklch(0.94 0.12 90) 0%, oklch(0.88 0.1 230) 50%, oklch(0.92 0.1 165) 100%);

    --shadow-pop: 0 8px 0 -4px oklch(0.2 0.03 280 / 0.08), 0 24px 48px -16px oklch(0.2 0.03 280 / 0.12);
    --shadow-soft: 0 16px 40px -20px oklch(0.2 0.03 280 / 0.2);

    --font-display: "Fraunces", "Georgia", serif;
    --font-sans: "Nunito", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 12% 8%, oklch(0.94 0.08 90 / 0.25), transparent 45%),
        radial-gradient(circle at 88% 12%, oklch(0.88 0.06 230 / 0.2), transparent 50%),
        radial-gradient(circle at 50% 110%, oklch(0.92 0.06 165 / 0.18), transparent 55%);
    background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.05; }

a { color: inherit; }

/* Let grid/flex children shrink so long text wraps or truncates instead of
   forcing horizontal overflow on mobile. */
.hero-grid > *, .pillar-grid > *, .kids-grid > *, .how-grid > *, .vote-grid > * { min-width: 0; }
.leaderboard, .lb-row, .lb-body { min-width: 0; }
.kids-card, .leaderboard, .vote-card { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-mid { max-width: 1024px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header / nav ─────────────────────────────────── */
.cm-header {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(12px);
    background: oklch(1 0 0 / 0.72);
    border-bottom: 1px solid var(--border);
}
.cm-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.75rem 1.25rem; max-width: 1180px; margin: 0 auto;
}
.cm-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.cm-brand img { height: 2.75rem; width: auto; max-width: 170px; object-fit: contain; }
.cm-brand .brand-text { display: none; flex-direction: column; line-height: 1.1; }
.cm-brand .brand-kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.cm-brand .brand-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
@media (min-width: 640px) { .cm-brand .brand-text { display: flex; } }

.cm-nav { display: flex; align-items: center; gap: 0.25rem; font-size: 0.9rem; font-weight: 700; }
.cm-nav a { padding: 0.5rem 1rem; border-radius: 999px; text-decoration: none; transition: background 0.2s ease; white-space: nowrap; }
.cm-nav a.sun:hover { background: oklch(0.94 0.12 90 / 0.45); }
.cm-nav a.mint:hover { background: oklch(0.92 0.1 165 / 0.45); }
.cm-nav a.sky:hover { background: oklch(0.88 0.1 230 / 0.45); }
.cm-nav .back { display: inline-flex; align-items: center; gap: 0.4rem; }
@media (max-width: 560px) { .cm-nav .hide-sm { display: none; } }

/* ── Buttons & chips ──────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
    border: none; text-decoration: none; font-weight: 800; font-family: inherit;
    padding: 0.8rem 1.5rem; border-radius: 999px; font-size: 1rem;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-pop); }
.btn-sun { background: var(--sun); color: var(--sun-foreground); box-shadow: var(--shadow-soft); }
.btn-sky { background: var(--sky); color: var(--sky-foreground); box-shadow: var(--shadow-soft); }
.btn-mint { background: var(--mint); color: var(--mint-foreground); box-shadow: var(--shadow-pop); }
.btn-coral { background: var(--coral); color: var(--coral-foreground); box-shadow: var(--shadow-pop); }
.btn-dark { background: var(--foreground); color: var(--background); box-shadow: var(--shadow-pop); }
.btn-ghost { background: oklch(1 0 0 / 0.8); color: var(--foreground); border: 1px solid var(--border); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.72rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
    box-shadow: var(--shadow-soft);
}
.chip svg { width: 1rem; height: 1rem; }
.chip-sun { background: var(--sun); color: var(--sun-foreground); }
.chip-sky { background: var(--sky); color: var(--sky-foreground); }
.chip-mint { background: var(--mint); color: var(--mint-foreground); }
.chip-coral { background: var(--coral); color: var(--coral-foreground); }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 3rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } .hero { padding: 4rem 0 6rem; } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900; }
.hero .underline-mark { position: relative; display: inline-block; }
.hero .underline-mark span { position: relative; z-index: 1; }
.hero .underline-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 0.9rem; background: var(--sun); border-radius: 0.3rem; z-index: 0; }
.hero .accent { color: var(--primary); }
.hero p.lead { font-size: 1.2rem; color: var(--muted-foreground); max-width: 34rem; margin-top: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2rem; font-weight: 700; font-size: 0.9rem; }
.hero-stats .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; display: block; }
.hero-stats .num.primary { color: var(--primary); }
.hero-stats .num.coral { color: var(--coral); }
.hero-stats .num.secondary { color: var(--secondary); }

.hero-media { position: relative; }
.hero-media .blob { position: absolute; border-radius: 999px; filter: blur(40px); opacity: 0.7; z-index: 0; }
.hero-media .blob.a { top: -1.5rem; left: -1.5rem; width: 8rem; height: 8rem; background: var(--sun); }
.hero-media .blob.b { bottom: -2rem; right: -1rem; width: 10rem; height: 10rem; background: var(--mint); }
.hero-media .frame { position: relative; z-index: 1; border-radius: 2.5rem; overflow: hidden; box-shadow: var(--shadow-pop); border: 8px solid var(--background); transform: rotate(1deg); }
.hero-media .frame img { width: 100%; display: block; object-fit: cover; }
.hero-media .winner-card {
    position: absolute; z-index: 2; bottom: -1.25rem; left: 1.5rem;
    background: var(--card); border-radius: 1.25rem; padding: 0.75rem 1.1rem;
    box-shadow: var(--shadow-pop); transform: rotate(-3deg);
    display: flex; align-items: center; gap: 0.75rem; animation: floaty 7s ease-in-out infinite;
}
.winner-card .ico { display: grid; place-items: center; height: 2.5rem; width: 2.5rem; border-radius: 999px; background: var(--sun); color: var(--sun-foreground); }
.winner-card .ico svg { width: 1.25rem; height: 1.25rem; }
.winner-card .label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.winner-card .who { font-family: var(--font-display); font-weight: 700; }

@keyframes floaty { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }

/* ── Pillar sections ──────────────────────────────── */
.pillar { padding: 3.5rem 0; }
.pillar-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .pillar { padding: 5rem 0; } .pillar-grid { grid-template-columns: 1fr 1fr; } .pillar.reverse .pillar-media { order: 2; } }
.pillar-media .frame { border-radius: 2rem; overflow: hidden; box-shadow: var(--shadow-pop); border: 8px solid; transform: rotate(2deg); }
.pillar.reverse .pillar-media .frame { transform: rotate(-2deg); }
.pillar-media .frame img { width: 100%; display: block; aspect-ratio: 5/4; object-fit: cover; }
.pillar-media.coral .frame { border-color: oklch(0.74 0.15 25 / 0.3); }
.pillar-media.mint .frame { border-color: oklch(0.92 0.1 165 / 0.4); }
.pillar h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin: 1rem 0; }
.pillar p { font-size: 1.15rem; color: var(--muted-foreground); }
.pillar ul { list-style: none; margin: 1.25rem 0; display: grid; gap: 0.6rem; }
.pillar ul li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 500; }
.pillar ul li .tick { margin-top: 0.15rem; flex-shrink: 0; display: grid; place-items: center; height: 1.5rem; width: 1.5rem; border-radius: 999px; background: var(--foreground); color: var(--background); font-size: 0.7rem; font-weight: 900; }

/* ── Kids Corner block ────────────────────────────── */
.kids { padding: 3.5rem 0; }
.kids-card { border-radius: 2.5rem; padding: 2rem 1.5rem; box-shadow: var(--shadow-pop); background: var(--gradient-fun); position: relative; overflow: hidden; }
@media (min-width: 768px) { .kids-card { padding: 3.5rem; } }
.kids-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .kids-grid { grid-template-columns: 1fr 1fr; } }
.kids h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 900; margin: 1rem 0; }
.kids h2 .hl { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 8px; text-underline-offset: 4px; }
.kids p { font-size: 1.12rem; color: var(--muted-foreground); max-width: 34rem; }
.kids-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.kids-thumb { border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-soft); border: 4px solid oklch(1 0 0 / 0.6); max-width: 26rem; }
.kids-thumb img { width: 100%; height: 12rem; object-fit: cover; display: block; }

.leaderboard { background: var(--card); border-radius: 1.75rem; padding: 1.25rem; box-shadow: var(--shadow-pop); }
.leaderboard .lb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.leaderboard .lb-head h3 { font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; gap: 0.5rem; }
.leaderboard .lb-head h3 svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.leaderboard .lb-meta { font-size: 0.72rem; font-weight: 800; color: var(--muted-foreground); }
.lb-list { list-style: none; display: grid; gap: 0.6rem; }
.lb-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem; border-radius: 1rem; background: oklch(0.97 0.01 80 / 0.6); transition: background 0.2s ease; }
.lb-row:hover { background: oklch(0.94 0.12 90 / 0.4); }
.lb-rank { display: grid; place-items: center; height: 2.5rem; width: 2.5rem; border-radius: 999px; background: var(--foreground); color: var(--background); font-family: var(--font-display); font-weight: 900; flex-shrink: 0; }
.lb-body { flex: 1; min-width: 0; }
.lb-body .name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-body .deed { font-size: 0.85rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-votes { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--primary); color: var(--primary-foreground); padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 800; text-decoration: none; }
.lb-votes svg { width: 0.95rem; height: 0.95rem; }

/* ── How it works ─────────────────────────────────── */
.how { padding: 3rem 0; }
.how .head { text-align: center; margin-bottom: 2.5rem; }
.how .head h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
.how .head p { color: var(--muted-foreground); max-width: 32rem; margin: 0.75rem auto 0; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-card { background: var(--card); border-radius: 1.5rem; padding: 1.75rem; box-shadow: var(--shadow-soft); border-top: 8px solid var(--sun); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.how-card.mint { border-top-color: var(--mint); }
.how-card.primary { border-top-color: var(--primary); }
.how-card .row { display: flex; align-items: flex-start; justify-content: space-between; }
.how-card .n { font-family: var(--font-display); font-size: 3.5rem; font-weight: 900; color: oklch(0.22 0.03 280 / 0.1); line-height: 1; }
.how-card .row svg { width: 2rem; height: 2rem; color: oklch(0.22 0.03 280 / 0.7); }
.how-card h3 { font-size: 1.4rem; font-weight: 800; margin: 0.5rem 0; }
.how-card p { color: var(--muted-foreground); }

/* ── Vote grid ────────────────────────────────────── */
.vote-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; list-style: none; }
@media (min-width: 700px) { .vote-grid { grid-template-columns: 1fr 1fr; } }
.vote-card { background: var(--card); border-radius: 1.75rem; overflow: hidden; box-shadow: var(--shadow-soft); transition: box-shadow 0.2s ease; }
.vote-card:hover { box-shadow: var(--shadow-pop); }
.vote-thumb { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; }
.vote-thumb.sun { background: oklch(0.94 0.12 90 / 0.6); }
.vote-thumb.mint { background: oklch(0.92 0.1 165 / 0.6); }
.vote-thumb.sky { background: oklch(0.88 0.1 230 / 0.6); }
.vote-thumb.coral { background: oklch(0.74 0.15 25 / 0.4); }
.vote-play { position: absolute; inset: 0; display: grid; place-items: center; border: none; background: transparent; cursor: pointer; }
.vote-play .circle { display: grid; place-items: center; height: 4rem; width: 4rem; border-radius: 999px; background: oklch(1 0 0 / 0.9); box-shadow: var(--shadow-pop); transition: transform 0.15s ease; }
.vote-play:hover .circle { transform: scale(1.1); }
.vote-play svg { width: 1.7rem; height: 1.7rem; margin-left: 0.2rem; }
.vote-rank { position: absolute; top: 0.75rem; left: 0.75rem; display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border-radius: 999px; background: var(--foreground); color: var(--background); font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; }
.vote-body { padding: 1.25rem; display: grid; gap: 0.75rem; }
.vote-body .title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; }
.vote-body .who { font-size: 0.85rem; color: var(--muted-foreground); }
.vote-body .deed { font-size: 0.9rem; }
.vote-foot { display: flex; align-items: center; justify-content: space-between; }
.vote-foot .count { font-size: 0.85rem; font-weight: 800; color: var(--muted-foreground); }

/* ── Forms ────────────────────────────────────────── */
.page-intro { display: grid; gap: 0.75rem; margin: 2rem 0; }
.page-intro h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 900; }
.page-intro p { color: var(--muted-foreground); }

.form-card { background: var(--card); border-radius: 1.75rem; padding: 1.5rem; box-shadow: var(--shadow-soft); display: grid; gap: 2rem; }
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }
.form-section { display: grid; gap: 1rem; }
.form-section > h2 { font-size: 1.25rem; font-weight: 900; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.field { display: grid; gap: 0.4rem; }
.field > label { font-size: 0.88rem; font-weight: 700; }
.field .req { color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 560px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], textarea, select {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--foreground);
    background: var(--background); border: 1px solid var(--input); border-radius: 0.75rem;
    padding: 0.7rem 0.9rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px oklch(0.68 0.16 25 / 0.15); }
textarea { resize: vertical; min-height: 6rem; }

.radio-cards { display: grid; gap: 0.6rem; }
.radio-card { display: flex; align-items: center; gap: 0.75rem; border: 1px solid var(--border); background: var(--background); padding: 0.75rem 0.9rem; border-radius: 1rem; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; font-weight: 600; font-size: 0.9rem; }
.radio-card:hover { background: oklch(0.94 0.12 90 / 0.3); }
.radio-card input { accent-color: var(--primary); width: 1.1rem; height: 1.1rem; }
.radio-card:has(input:checked) { background: oklch(0.94 0.12 90 / 0.45); border-color: var(--foreground); }
.radio-card.mint:hover { background: oklch(0.92 0.1 165 / 0.3); }
.radio-card.mint:has(input:checked) { background: oklch(0.92 0.1 165 / 0.45); }

.file-drop { display: flex; align-items: center; gap: 0.75rem; border: 2px dashed var(--border); background: var(--background); padding: 1rem; border-radius: 1rem; cursor: pointer; transition: background 0.15s ease; font-weight: 500; font-size: 0.9rem; }
.file-drop:hover { background: oklch(0.94 0.12 90 / 0.2); }
.file-drop svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.consent { display: flex; align-items: flex-start; gap: 0.75rem; border: 1px solid var(--border); background: var(--background); padding: 1rem; border-radius: 1rem; cursor: pointer; font-size: 0.9rem; }
.consent:has(input:checked) { background: oklch(0.92 0.1 165 / 0.3); }
.consent input { margin-top: 0.2rem; accent-color: var(--primary); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

.form-foot { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }
@media (min-width: 560px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.form-foot .fine { font-size: 0.75rem; color: var(--muted-foreground); }

.success-card { background: var(--card); border-radius: 1.75rem; padding: 2.5rem; box-shadow: var(--shadow-pop); text-align: center; display: grid; gap: 1rem; justify-items: center; }
.success-card svg { width: 4rem; height: 4rem; color: var(--primary); }
.success-card h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; }
.success-card p { color: var(--muted-foreground); max-width: 28rem; }

/* ── Footer ───────────────────────────────────────── */
.cm-footer { margin-top: 3rem; border-top: 1px solid var(--border); }
.cm-footer-inner { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; justify-content: space-between; padding: 2.5rem 1.25rem; max-width: 1180px; margin: 0 auto; text-align: center; }
@media (min-width: 640px) { .cm-footer-inner { flex-direction: row; text-align: left; } }
.cm-footer .f-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.cm-footer .f-brand img { height: 2.75rem; width: auto; max-width: 170px; object-fit: contain; }
.cm-footer .f-kicker { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-foreground); }
.cm-footer .f-title { font-family: var(--font-display); font-weight: 700; }
.cm-footer .f-meta { font-size: 0.85rem; color: var(--muted-foreground); }
.cm-footer .f-meta a { text-decoration: underline; }

.section-head { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.section-head h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 900; }
.section-head p { color: var(--muted-foreground); max-width: 42rem; }

.search-box { max-width: 26rem; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted-foreground); padding: 3rem 0; }

/* ── Toast ────────────────────────────────────────── */
#toast-wrap { position: fixed; top: 1rem; right: 1rem; z-index: 100; display: grid; gap: 0.5rem; max-width: calc(100vw - 2rem); }
.toast { background: var(--foreground); color: var(--background); padding: 0.8rem 1.1rem; border-radius: 0.9rem; box-shadow: var(--shadow-pop); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; animation: toastIn 0.25s ease; }
.toast.success { background: oklch(0.55 0.13 160); }
.toast.error { background: var(--primary); color: var(--primary-foreground); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Pre-launch modal ---------- */
.prelaunch-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; background: oklch(0.22 0.03 280 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: prelaunchFade 0.25s ease; }
.prelaunch-modal { position: relative; width: 100%; max-width: 26rem; background: var(--card); border-radius: 1.75rem; padding: 2.5rem 2rem 2rem; text-align: center; box-shadow: var(--shadow-pop); overflow: hidden; animation: prelaunchPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.prelaunch-modal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 0.5rem; background: var(--gradient-fun); }
.prelaunch-ico { display: grid; place-items: center; height: 4rem; width: 4rem; margin: 0 auto 1rem; border-radius: 999px; background: var(--sun); color: var(--sun-foreground); box-shadow: var(--shadow-soft); }
.prelaunch-ico svg { width: 2rem; height: 2rem; }
.prelaunch-ico.photo { height: 5.5rem; width: 5.5rem; padding: 0; background: var(--card); border: 4px solid var(--sun); overflow: hidden; }
.prelaunch-ico.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; border-radius: 999px; }
.prelaunch-ico.photo svg, .prelaunch-ico.photo i { display: none; }
.prelaunch-modal h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1.2; margin: 0.85rem 0 0.6rem; }
.prelaunch-modal p { color: var(--muted-foreground); font-size: 0.98rem; margin-bottom: 1.5rem; }
.prelaunch-modal p strong { color: var(--foreground); }
.prelaunch-modal .btn { width: 100%; justify-content: center; }
.prelaunch-close { position: absolute; top: 0.9rem; right: 0.9rem; display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border: none; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.prelaunch-close:hover { background: var(--border); color: var(--foreground); }
.prelaunch-close svg { width: 1.1rem; height: 1.1rem; }
@keyframes prelaunchFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes prelaunchPop { from { opacity: 0; transform: translateY(16px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
