/* ============================================================
   Sheep Exit Puzzle — Stylesheet
   Theme: Purple sky + green meadow + checkered puzzle board
   Fonts: Fredoka (headings) + Nunito (body)
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --purple-deep: #6D28D9;
    --purple-mid: #7C3AED;
    --purple-light: #EDE9FE;
    --purple-glow: #C4B5FD;
    --green-grass: #22C55E;
    --green-dark: #15803D;
    --green-bg: #F0FDF4;
    --gold: #FBBF24;
    --gold-dark: #F59E0B;
    --orange-tile: #FB923C;
    --yellow-tile: #FDE047;
    --sky: #38BDF8;
    --sky-deep: #0EA5E9;
    --cream: #FFFBEB;
    --text-dark: #14532D;
    --text-muted: #475569;
    --white: #FFFFFF;
    --shadow-soft: 0 8px 32px rgba(109, 40, 217, 0.15);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --nav-height: 72px;
    --rail-height: 56px;
    --transition: 200ms ease;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--green-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Progress Rail (unique horizontal level nav) --- */
.progress-rail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--rail-height);
    background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    box-shadow: 0 2px 16px rgba(109, 40, 217, 0.3);
}

.rail-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(480px, 90vw);
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.rail-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 999px;
    transition: width 300ms ease;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.rail-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform var(--transition);
}

.rail-node span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
    transition: all var(--transition);
}

.rail-node em {
    font-style: normal;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: none;
}

.rail-node.active span,
.rail-node:hover span {
    background: var(--gold);
    border-color: var(--white);
    color: var(--purple-deep);
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
}

.rail-node.active em {
    color: var(--gold);
}

@media (min-width: 640px) {
    .rail-node em {
        display: block;
    }
}

/* --- Floating wool tufts --- */
.wool-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wool {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 30%, rgba(237,233,254,0.4) 100%);
    opacity: 0.5;
    animation: float-wool 8s ease-in-out infinite;
}

.wool-1 { width: 60px; height: 60px; top: 20%; left: 5%; animation-delay: 0s; }
.wool-2 { width: 40px; height: 40px; top: 60%; right: 8%; animation-delay: -2s; }
.wool-3 { width: 50px; height: 50px; top: 40%; right: 15%; animation-delay: -4s; }
.wool-4 { width: 35px; height: 35px; bottom: 25%; left: 12%; animation-delay: -6s; }

@keyframes float-wool {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: var(--rail-height);
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    transition: top var(--transition), box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
    top: calc(var(--rail-height) + 0.5rem);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(109, 40, 217, 0.12);
    box-shadow: var(--shadow-soft);
}

.navbar.scrolled .nav-inner {
    box-shadow: var(--shadow-card);
    border-color: rgba(109, 40, 217, 0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.2);
}

.nav-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--purple-deep);
    line-height: 1.2;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color var(--transition);
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--purple-mid);
}

.btn-nav-cta {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 999px;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.35);
}

.btn-nav-cta svg {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--purple-deep);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--rail-height) + var(--nav-height));
    left: 1rem;
    right: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    gap: 1rem;
    z-index: 999;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .btn-nav-cta {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }
}

/* --- Shared buttons --- */
.btn-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    border: 3px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.btn-bubble svg {
    width: 20px;
    height: 20px;
}

.btn-bubble:hover {
    transform: translateY(-3px);
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 24px rgba(109, 40, 217, 0.35);
}

.btn-purple:hover {
    box-shadow: 0 10px 32px rgba(109, 40, 217, 0.45);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--purple-deep);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
    box-shadow: 0 10px 32px rgba(245, 158, 11, 0.45);
}

.btn-white {
    background: var(--white);
    color: var(--purple-deep);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--rail-height) + var(--nav-height) + 1rem);
    overflow: hidden;
}

.hero-sky {
    position: absolute;
    inset: 0 0 40%;
    background: linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 40%, var(--purple-mid) 100%);
    z-index: 0;
}

.hero-clouds .cloud {
    position: absolute;
    background: var(--white);
    border-radius: 50px;
    opacity: 0.85;
    z-index: 1;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 50%;
}

.c1 { width: 100px; height: 36px; top: 18%; left: 10%; animation: drift 20s linear infinite; }
.c1::before { width: 44px; height: 44px; top: -22px; left: 12px; }
.c1::after { width: 56px; height: 56px; top: -28px; left: 40px; }

.c2 { width: 80px; height: 28px; top: 12%; right: 15%; animation: drift 25s linear infinite reverse; }
.c2::before { width: 36px; height: 36px; top: -18px; left: 8px; }
.c2::after { width: 44px; height: 44px; top: -22px; left: 30px; }

.c3 { width: 60px; height: 22px; top: 25%; left: 55%; animation: drift 18s linear infinite; animation-delay: -5s; }
.c3::before { width: 28px; height: 28px; top: -14px; left: 6px; }
.c3::after { width: 34px; height: 34px; top: -18px; left: 22px; }

@keyframes drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

.hill-wave {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
}

.hill-wave-top {
    margin-top: -1px;
}

.hero-meadow {
    position: relative;
    z-index: 2;
    background: var(--green-grass);
    padding: 2rem 1.25rem 4rem;
}

.hero-fence {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: repeating-linear-gradient(
        90deg,
        var(--white) 0px,
        var(--white) 8px,
        transparent 8px,
        transparent 16px
    );
    border-bottom: 4px solid #E2E8F0;
    opacity: 0.7;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.hero-copy {
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.hero-tag svg {
    width: 16px;
    height: 16px;
}

.hero-brand {
    margin-bottom: 0.5rem;
}

.hero-banner {
    width: min(380px, 92vw);
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gold);
    text-shadow: 2px 2px 0 var(--purple-deep);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.checkered-board {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: min(280px, 70vw);
    aspect-ratio: 1;
    padding: 8px;
    background: var(--purple-deep);
    border-radius: var(--radius-md);
    border: 4px solid var(--gold);
    box-shadow: var(--shadow-card);
    transform: rotate(-3deg);
    z-index: 1;
}

.board-tile {
    border-radius: 6px;
}

.t-orange { background: var(--orange-tile); }
.t-yellow { background: var(--yellow-tile); }

.phone-frame {
    position: relative;
    z-index: 3;
    width: min(220px, 55vw);
    padding: 10px;
    background: linear-gradient(145deg, #1E1B4B, #312E81);
    border-radius: 32px;
    border: 3px solid var(--gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
}

.phone-screen {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.sheep-cluster {
    position: absolute;
    bottom: 0;
    right: 5%;
    z-index: 4;
}

.mini-sheep {
    width: 48px;
    height: 40px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.s1 { transform: translateX(-20px); }
.s2 { transform: translateX(10px) scale(0.85); }
.s3 { transform: translateX(40px) scale(0.7); }

.hill-wave-bottom {
    margin-top: -1px;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-banner {
        margin: 0;
    }

    .hero-slogan {
        text-align: left;
    }

    .hero-desc {
        margin: 0 0 1.5rem;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .phone-frame {
        width: 260px;
    }

    .checkered-board {
        width: 320px;
    }
}

/* --- Section shared --- */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    padding: 0 1.25rem;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-head.light h2 {
    color: var(--purple-deep);
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--green-grass);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-purple {
    background: var(--purple-mid);
}

/* --- Features: winding exit path --- */
.features {
    position: relative;
    padding: 4rem 1.25rem 5rem;
    background: var(--green-bg);
}

.exit-path {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.path-connector {
    display: none;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 200px;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.path-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(109, 40, 217, 0.08);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: default;
    max-width: 520px;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card-left {
    align-self: flex-start;
}

.card-right {
    align-self: flex-end;
}

.card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.card-icon.purple { background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep)); }
.card-icon.green { background: linear-gradient(135deg, var(--green-grass), var(--green-dark)); }
.card-icon.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.card-icon.blue { background: linear-gradient(135deg, var(--sky), var(--sky-deep)); }

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (min-width: 768px) {
    .path-connector {
        display: block;
    }

    .exit-path {
        gap: 3rem;
    }
}

/* --- Showcase gallery --- */
.showcase {
    position: relative;
    background: var(--purple-light);
    padding-bottom: 0;
}

.showcase-wave-top,
.showcase-wave-bottom {
    display: block;
    width: 100%;
}

.showcase-inner {
    padding: 3rem 1.25rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-deck {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    perspective: 800px;
}

.deck-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 3px solid var(--white);
    transition: transform var(--transition);
    cursor: pointer;
}

.deck-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.deck-left,
.deck-right {
    width: 140px;
    opacity: 0.75;
}

.deck-left {
    transform: rotateY(15deg) scale(0.85);
}

.deck-right {
    transform: rotateY(-15deg) scale(0.85);
}

.deck-center {
    width: 180px;
    z-index: 2;
    border-color: var(--gold);
}

.deck-card:hover {
    opacity: 1;
}

.deck-left:hover { transform: rotateY(8deg) scale(0.92); }
.deck-right:hover { transform: rotateY(-8deg) scale(0.92); }
.deck-center:hover { transform: scale(1.08); }

.showcase-extra {
    margin: 2.5rem auto 0;
    max-width: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 4px solid var(--white);
}

.showcase-extra img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9/16;
    object-fit: cover;
    object-position: top center;
}

@media (min-width: 640px) {
    .deck-left, .deck-right { width: 200px; }
    .deck-center { width: 240px; }
}

@media (min-width: 1024px) {
    .deck-left, .deck-right { width: 240px; }
    .deck-center { width: 280px; }
}

/* --- Download section --- */
.download {
    background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple-mid) 50%, #5B21B6 100%);
    padding: 5rem 1.25rem;
    text-align: center;
}

.download-inner {
    max-width: 600px;
    margin: 0 auto;
}

.download-shield {
    position: relative;
    margin-bottom: 2rem;
}

.download-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    border: 3px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.download-shield h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--white);
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

.download-shield p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    background: #1E1B4B;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 1.25rem 2rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 0.4rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
    cursor: pointer;
}

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

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 3px solid var(--purple-glow);
    box-shadow: 0 24px 64px rgba(109, 40, 217, 0.3);
    transform: scale(0.9);
    transition: transform 250ms ease;
}

.modal-overlay.visible .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.modal-close:hover {
    background: var(--purple-glow);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--purple-deep);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--purple-light), var(--purple-glow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: var(--purple-deep);
}

.modal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--purple-deep);
    margin-bottom: 0.75rem;
}

.modal-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.modal-ok {
    width: 100%;
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .wool,
    .cloud {
        animation: none;
    }
}

/* --- Focus states --- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
