/* ========== 基础重置 & 变量 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f0e6d3;
    --bg-light: #f7f0e4;
    --clay-shadow: 6px 6px 14px rgba(163, 141, 109, 0.4), -4px -4px 10px rgba(250, 243, 230, 0.65);
    --clay-shadow-sm: 4px 4px 8px rgba(163, 141, 109, 0.3), -3px -3px 6px rgba(250, 243, 230, 0.55);
    --clay-inset: inset 3px 3px 7px rgba(163, 141, 109, 0.25), inset -3px -3px 7px rgba(250, 243, 230, 0.5);
    --clay-inset-sm: inset 2px 2px 4px rgba(163, 141, 109, 0.2), inset -2px -2px 4px rgba(250, 243, 230, 0.4);
    --green: #4ade80;
    --green-dark: #22c55e;
    --orange: #fb923c;
    --orange-dark: #f97316;
    --purple: #c084fc;
    --purple-dark: #a855f7;
    --pink: #f472b6;
    --blue: #60a5fa;
    --yellow: #fbbf24;
    --red: #f87171;
    --text: #4a3728;
    --text-light: #7a6555;
    --text-muted: #a08d7d;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 导航栏 ========== */
.clay-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(240, 230, 211, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(163, 141, 109, 0.2);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg);
    box-shadow: var(--clay-shadow-sm);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 4px 4px 12px rgba(34, 197, 94, 0.35);
}

/* ========== 英雄区域 ========== */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #22c55e, #f97316, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.clay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--bg);
    box-shadow: var(--clay-shadow-sm);
}

.badge-green { color: var(--green-dark); }
.badge-orange { color: var(--orange-dark); }
.badge-purple { color: var(--purple-dark); }

/* ========== 通用区块 ========== */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 36px;
    color: var(--text);
}

/* ========== 粘土卡片 ========== */
.clay-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--clay-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clay-card:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 18px rgba(163, 141, 109, 0.42), -5px -5px 14px rgba(250, 243, 230, 0.55);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

/* ========== 计算器布局 ========== */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* ========== 输入组件 ========== */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.input-wrapper {
    position: relative;
}

.clay-input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--clay-inset);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    transition: box-shadow 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.clay-input::-webkit-outer-spin-button,
.clay-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.clay-input:focus {
    box-shadow: var(--clay-inset), 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.clay-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding-left: 4px;
}

.clay-select {
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--clay-inset);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%237a6555'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ========== 技能开关 ========== */
.skill-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clay-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.clay-toggle input {
    display: none;
}

.toggle-slider {
    width: 52px;
    height: 28px;
    border-radius: 50px;
    background: var(--bg);
    box-shadow: var(--clay-inset-sm);
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ccc;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

.clay-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.15), inset -2px -2px 4px rgba(255,255,255,0.2);
}

.clay-toggle input:checked + .toggle-slider::after {
    left: 27px;
    background: #fff;
}

.toggle-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========== 按钮 ========== */
.clay-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    box-shadow: 5px 5px 12px rgba(34, 197, 94, 0.35), -3px -3px 8px rgba(250, 243, 230, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 16px rgba(34, 197, 94, 0.45), -4px -4px 10px rgba(250, 243, 230, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: var(--clay-inset);
}

/* ========== GitHub Corner ========== */
.github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-25deg); }
    40%, 80% { transform: rotate(10deg); }
}

@media (max-width: 500px) {
    .github-corner svg {
        width: 45px;
        height: 45px;
    }
}

/* ========== 作物图片 ========== */
.crop-img {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.catalog-emoji .crop-img {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.15));
}

.rank-name .crop-img,
.progress-label .crop-img {
    margin-right: 4px;
}

/* ========== 引导占位卡片 ========== */
.card-placeholder {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(145deg, var(--bg-light), #efe5d2);
}

.placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.placeholder-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.placeholder-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.placeholder-tips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tip-item {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    box-shadow: var(--clay-inset-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== 结果卡片 ========== */
.card-result {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-no-fert {
    background: linear-gradient(145deg, #e8f5e9, #f1f8e9);
}

.card-fert {
    background: linear-gradient(145deg, #fff3e0, #fce4ec);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.result-name {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text);
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: var(--clay-inset-sm);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.stat-value.highlight {
    color: var(--green-dark);
}

/* ========== 进度条 ========== */
.card-progress {
    margin-top: 0;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-label {
    min-width: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: right;
    color: var(--text);
    white-space: nowrap;
}

.progress-track {
    flex: 1;
    height: 28px;
    border-radius: 50px;
    background: var(--bg);
    box-shadow: var(--clay-inset-sm);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    min-width: 60px;
}

.fill-green { background: linear-gradient(90deg, var(--green), var(--green-dark)); }
.fill-orange { background: linear-gradient(90deg, var(--orange), var(--orange-dark)); }
.fill-purple { background: linear-gradient(90deg, var(--purple), var(--purple-dark)); }
.fill-blue { background: linear-gradient(90deg, var(--blue), #3b82f6); }
.fill-pink { background: linear-gradient(90deg, var(--pink), #ec4899); }
.fill-yellow { background: linear-gradient(90deg, var(--yellow), #f59e0b); }
.fill-red { background: linear-gradient(90deg, var(--red), #ef4444); }

.progress-value {
    min-width: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text);
}

/* ========== 排行榜 ========== */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.clay-tab {
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--clay-shadow-sm);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.clay-tab.active {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    box-shadow: 4px 4px 12px rgba(249, 115, 22, 0.35);
}

.clay-tab:hover:not(.active) {
    transform: translateY(-2px);
}

.card-ranking {
    overflow: hidden;
    padding: 0;
}

.ranking-header {
    display: grid;
    grid-template-columns: 60px 1fr 70px 100px 120px 1fr;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.ranking-body {
    max-height: 500px;
    overflow-y: auto;
}

.ranking-row {
    display: grid;
    grid-template-columns: 60px 1fr 70px 100px 120px 1fr;
    padding: 14px 24px;
    align-items: center;
    border-bottom: 1px solid rgba(163, 141, 109, 0.12);
    transition: background 0.2s ease;
}

.ranking-row:hover {
    background: rgba(74, 222, 128, 0.08);
}

.rank-num {
    font-weight: 800;
    font-size: 1.1rem;
}

.rank-1 { color: #f59e0b; }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #cd7f32; }

.rank-name {
    font-weight: 700;
    color: var(--text);
}

.rank-level {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.rank-grow {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rank-exp {
    font-weight: 800;
    color: var(--green-dark);
    font-size: 0.95rem;
}

.rank-bar-wrap {
    height: 12px;
    border-radius: 50px;
    background: var(--bg);
    box-shadow: var(--clay-inset-sm);
    overflow: hidden;
}

.rank-bar-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    transition: width 0.6s ease;
}

/* ========== 作物图鉴 ========== */
.catalog-filter {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-filter .clay-input {
    flex: 1;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.catalog-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--clay-shadow-sm);
    transition: all 0.3s ease;
    cursor: default;
}

.catalog-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--clay-shadow);
}

.catalog-emoji {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.catalog-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
}

.catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.catalog-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(74, 222, 128, 0.15);
    color: var(--green-dark);
}

.catalog-tag.tag-season {
    background: rgba(168, 85, 247, 0.12);
    color: var(--purple-dark);
}

.catalog-tag.tag-price {
    background: rgba(251, 191, 36, 0.15);
    color: #b45309;
}

.catalog-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.catalog-detail strong {
    color: var(--text-light);
}

/* ========== 页脚 ========== */
.clay-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========== 滚动条 ========== */
.ranking-body::-webkit-scrollbar {
    width: 8px;
}

.ranking-body::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 50px;
}

.ranking-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--orange), var(--orange-dark));
    border-radius: 50px;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    :root {
        --radius: 14px;
        --radius-sm: 8px;
        --radius-lg: 18px;
        --clay-shadow: 4px 4px 10px rgba(163, 141, 109, 0.28), -3px -3px 8px rgba(250, 243, 230, 0.45);
        --clay-shadow-sm: 3px 3px 6px rgba(163, 141, 109, 0.22), -2px -2px 5px rgba(250, 243, 230, 0.38);
        --clay-inset: inset 3px 3px 6px rgba(163, 141, 109, 0.18), inset -3px -3px 6px rgba(250, 243, 230, 0.32);
        --clay-inset-sm: inset 2px 2px 3px rgba(163, 141, 109, 0.15), inset -2px -2px 3px rgba(250, 243, 230, 0.28);
    }

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

    .hero-title {
        font-size: 2rem;
    }

    .ranking-header,
    .ranking-row {
        grid-template-columns: 40px 1fr 50px 80px 90px 80px;
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    .clay-nav {
        flex-direction: column;
        gap: 12px;
        padding: 12px 20px;
    }

    .catalog-filter {
        flex-direction: column;
    }

    .clay-card {
        padding: 22px;
    }

    .clay-card:hover {
        transform: translateY(-2px);
        box-shadow: 4px 4px 10px rgba(163, 141, 109, 0.3), -3px -3px 8px rgba(250, 243, 230, 0.4);
    }

    .catalog-item {
        padding: 16px;
    }

    .clay-badge {
        padding: 8px 16px;
    }

    .nav-link {
        padding: 6px 14px;
    }
}

@media (max-width: 600px) {
    :root {
        --radius: 12px;
        --radius-sm: 6px;
        --radius-lg: 14px;
        --clay-shadow: 3px 3px 8px rgba(163, 141, 109, 0.22), -2px -2px 6px rgba(250, 243, 230, 0.35);
        --clay-shadow-sm: 2px 2px 5px rgba(163, 141, 109, 0.18), -2px -2px 4px rgba(250, 243, 230, 0.3);
        --clay-inset: inset 2px 2px 5px rgba(163, 141, 109, 0.15), inset -2px -2px 5px rgba(250, 243, 230, 0.25);
        --clay-inset-sm: inset 1px 1px 3px rgba(163, 141, 109, 0.12), inset -1px -1px 3px rgba(250, 243, 230, 0.2);
    }

    .ranking-header,
    .ranking-row {
        grid-template-columns: 36px 1fr 50px 90px;
    }

    .rh-grow, .rank-grow,
    .rh-bar, .rank-bar-wrap {
        display: none;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

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

    .clay-card {
        padding: 18px;
    }

    .section {
        padding: 40px 16px;
    }

    .clay-toast {
        padding: 28px 24px;
        border-radius: var(--radius-lg);
    }
}

/* ========== Toast 提示框 ========== */
.clay-toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 55, 40, 0.35);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayIn 0.3s ease;
}

.clay-toast-overlay.overlay-out {
    animation: overlayOut 0.3s ease forwards;
}

.clay-toast {
    background: linear-gradient(145deg, #fdf8ef, #f5ecda);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    box-shadow:
        8px 8px 20px rgba(163, 141, 109, 0.4),
        -6px -6px 16px rgba(250, 243, 230, 0.5),
        inset 0 1px 0 rgba(250, 243, 230, 0.4);
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clay-toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: bounce 0.6s ease 0.3s;
}

.toast-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--green-dark), var(--orange-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toast-message {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 28px;
    font-weight: 600;
}

.toast-btn {
    padding: 14px 40px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 1px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        5px 5px 12px rgba(34, 197, 94, 0.35),
        -3px -3px 8px rgba(250, 243, 230, 0.3);
    transition: all 0.3s ease;
}

.toast-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        6px 6px 14px rgba(34, 197, 94, 0.4),
        -4px -4px 10px rgba(250, 243, 230, 0.35);
}

.toast-btn:active {
    transform: translateY(1px);
    box-shadow: var(--clay-inset);
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes overlayOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
