@import url('https://fonts.googleapis.com/css2?family=Cause:wght@100..900&family=Slackey&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Cause', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
    background:
        radial-gradient(circle at 15% 20%, rgba(167, 139, 250, 0.26), transparent 42%),
        radial-gradient(circle at 82% 16%, rgba(250, 204, 21, 0.22), transparent 35%),
        linear-gradient(140deg, #fdfaf6 0%, #eef2ff 52%, #ecfeff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 1000;
    background: #111827;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 10px;
}

.landing {
    width: min(920px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    gap: 18px;
}

.hero,
.about,
.donate {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(2px);
}

.hero {
    text-align: center;
    padding: 34px 22px 30px;
}

.hero-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.hero-icon {
    width: 78px;
    height: 78px;
}

.hero h1 {
    margin: 0;
    font-family: 'Slackey', cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #4338ca;
    letter-spacing: 0.02em;
}

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

.hero-sub {
    margin: 12px auto 0;
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #1f2937;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: #ffffff;
    font-family: 'Slackey', cursive;
    font-size: 1rem;
    letter-spacing: 0.03em;
    min-height: 50px;
    min-width: 180px;
    border-radius: 999px;
    padding: 10px 22px;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.3);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.view-cats-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    color: #4c1d95;
    font-family: 'Slackey', cursive;
    font-size: 0.93rem;
    letter-spacing: 0.02em;
    min-height: 50px;
    min-width: 180px;
    border-radius: 999px;
    padding: 10px 20px;
    border: 2px solid rgba(124, 58, 237, 0.35);
    box-shadow: 0 6px 14px rgba(76, 29, 149, 0.16);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.view-cats-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(76, 29, 149, 0.24);
    border-color: rgba(124, 58, 237, 0.55);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.4);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
}

.about,
.donate {
    padding: 18px 18px 20px;
}

.rescued {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(2px);
    padding: 18px 18px 20px;
}

.rescued-header h2 {
    margin: 0;
    font-family: 'Slackey', cursive;
    font-size: 1.25rem;
    color: #4c1d95;
}

.rescued-search-label {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4b5563;
}

.rescued-search {
    width: min(420px, 100%);
    margin-top: 6px;
    display: block;
    border: 1.5px solid rgba(139, 92, 246, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.rescued-search::placeholder {
    color: #6b7280;
}

.rescued-search:focus-visible {
    outline: none;
    border-color: rgba(124, 58, 237, 0.65);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.rescued-count {
    margin: 8px 0 0;
    color: #374151;
    font-weight: 600;
}

.rescued-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
}

.rescued-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 178px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.rescued-art-wrap {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rescued-art {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.rescued-emoji {
    font-size: 56px;
    line-height: 1;
}

.rescued-name {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.25;
    text-align: center;
    color: #1f2937;
}

.rescued-tier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #5b21b6;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.rescued-empty {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
}

.about h2,
.donate h2 {
    margin: 0;
    font-family: 'Slackey', cursive;
    font-size: 1.25rem;
    color: #4c1d95;
}

.about p,
.donate p {
    margin: 10px 0 0;
    color: #1f2937;
    line-height: 1.5;
}

.shelter-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.shelter-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1.5px solid rgba(139, 92, 246, 0.22);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.shelter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 60, 220, 0.14);
    border-color: rgba(139, 92, 246, 0.52);
}

.shelter-card:focus-visible {
    outline: 3px solid #4c1d95;
    outline-offset: 3px;
}

.shelter-logo {
    flex-shrink: 0;
    width: 90px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.shelter-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.shelter-name {
    font-family: 'Slackey', cursive;
    font-size: 0.85rem;
    color: #4c1d95;
    line-height: 1.2;
}

.shelter-desc {
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.4;
}

.shelter-cta {
    flex-shrink: 0;
    font-family: 'Slackey', cursive;
    font-size: 0.8rem;
    color: #7c3aed;
    white-space: nowrap;
}

.site-footer {
    margin-top: 20px;
    padding: 16px 10px 24px;
    text-align: center;
    color: #1f2937;
}

.site-footer a {
    color: #1e40af;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .landing {
        width: calc(100% - 16px);
        margin-top: 12px;
        gap: 12px;
    }

    .hero {
        padding: 24px 14px 20px;
    }

    .hero-icon {
        width: 62px;
        height: 62px;
    }

    .hero-sub {
        font-size: 1rem;
        line-height: 1.5;
    }

    .play-button {
        min-height: 44px;
        min-width: 160px;
        font-size: 0.9rem;
    }

    .view-cats-button {
        min-height: 44px;
        min-width: 160px;
        font-size: 0.86rem;
    }

    .rescued-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .rescued-card {
        min-height: 160px;
    }

    .rescued-art-wrap,
    .rescued-art {
        width: 72px;
        height: 72px;
    }

    .rescued-emoji {
        font-size: 46px;
    }
}