/* ============================================
   报名投票系统 - 全局样式
   ============================================ */

/* ---------- 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: #f7f3ee;
    color: #2d3436;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 90px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
input, button { font-family: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }
em { font-style: normal; color: #999; font-size: 12px; }

/* ---------- 顶部头图 ---------- */
.banner {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9e57 60%, #ffd93d 100%);
    padding: 36px 20px 56px;
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.25);
}

.banner-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}
.banner-decoration.d1 { width: 200px; height: 200px; top: -70px; right: -50px; }
.banner-decoration.d2 { width: 130px; height: 130px; bottom: -40px; left: -30px; background: rgba(255, 217, 61, 0.2); }
.banner-decoration.d3 { width: 50px; height: 50px; top: 30px; left: 25px; background: rgba(255, 255, 255, 0.18); }

.banner-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.banner-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.banner-times {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 12px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.banner-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
}
.banner-time-row + .banner-time-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.22);
    margin-top: 5px;
    padding-top: 10px;
}

.banner-time-icon { font-size: 16px; flex-shrink: 0; }
.banner-time-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    width: 58px;
    flex-shrink: 0;
    text-align: left;
}
.banner-time-value {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.banner-time-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    flex-shrink: 0;
}

/* ---------- 数据统计卡片 ---------- */
.stats-card {
    display: flex;
    background: #fff;
    margin: -28px 15px 0;
    border-radius: 18px;
    padding: 20px 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}
.stat-item { flex: 1; text-align: center; }
.stat-icon { font-size: 24px; }
.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #ff4d6d;
    margin-top: 4px;
}
.stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ---------- 通用标题 ---------- */
.section-title {
    display: flex;
    align-items: center;
    margin: 26px 16px 14px;
    font-size: 18px;
    font-weight: 700;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ff6b6b, #ff9e57);
    border-radius: 2px;
    margin-right: 8px;
}

/* ---------- 选手卡片网格（一行2个） ---------- */
.player-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    padding: 0 15px;
}

.player-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.player-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.player-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f2f6;
    overflow: hidden;
}
.player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.player-card:active .player-img { transform: scale(1.05); }

.img-count-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.player-info { padding: 10px 12px 14px; }
.player-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-votes {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #ff4d6d;
    margin-top: 5px;
}
.player-votes strong { font-size: 18px; margin: 0 3px; font-weight: 800; }

/* 投票按钮 */
.btn-vote {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 9px 0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ff4d6d);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.25);
    transition: all 0.2s ease;
}
.btn-vote:active { transform: scale(0.97); box-shadow: 0 2px 6px rgba(255, 77, 109, 0.2); }
.btn-vote.disabled {
    background: #e8e7ec;
    color: #a8a7ad;
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------- 加载更多 ---------- */
.load-more-wrap { text-align: center; padding: 20px 0 10px; }
.load-more-btn {
    background: #fff;
    color: #666;
    font-size: 14px;
    padding: 10px 36px;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}
.load-more-btn:active { transform: scale(0.96); color: #ff4d6d; }

/* ---------- 报名CTA ---------- */
.register-cta {
    text-align: center;
    padding: 20px 20px 30px;
}
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff9e57, #ff6b6b);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 44px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.2s ease;
    border: none;
}
.cta-btn:active { transform: scale(0.96); box-shadow: 0 3px 10px rgba(255, 107, 107, 0.2); }

/* ---------- 我的报名卡片 ---------- */
.my-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff5f0, #fff);
    border: 1px solid #ffe0d0;
    border-radius: 16px;
    margin: 16px 15px 0;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(255, 158, 87, 0.12);
    gap: 12px;
}
.my-card-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f2f6;
}
.my-card-info { flex: 1; }
.my-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #ff6b6b;
}
.my-card-votes { font-size: 13px; color: #999; margin-top: 4px; }
.my-card-btn {
    background: #ff6b6b;
    color: #fff;
    font-size: 13px;
    padding: 6px 18px;
    border-radius: 18px;
    font-weight: 600;
}

/* ---------- 简单页头 ---------- */
.page-header {
    position: relative;
    padding: 36px 20px 50px;
    text-align: center;
    color: #fff;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.2);
}
.simple-header {
    background: linear-gradient(135deg, #ff6b6b, #ff9e57);
}
.simple-header h1 { font-size: 24px; font-weight: 800; }
.simple-header p { font-size: 13px; margin-top: 8px; opacity: 0.95; }

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 70px 30px;
}
.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: #666; }
.empty-state p { font-size: 14px; color: #999; margin-top: 8px; margin-bottom: 24px; }

/* ---------- 报名表单 ---------- */
.reg-form-wrap { padding: 20px 15px; }
.form-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px 18px 15px 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
.form-group { margin-bottom: 20px; }
.form-group:last-child{
    margin-bottom: 0px;
}
.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}
.form-input {
    width: 100%;
    background: #f6f6f9;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 15px;
    transition: all 0.2s;
}
.form-input:focus {
    border-color: #ff9e57;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 158, 87, 0.15);
}

.phone-tip { font-size: 12px; margin-top: 6px; }
.phone-tip.success { color: #27ae60; }
.phone-tip.error { color: #e74c3c; }

/* ---------- 上传区 ---------- */
/* 上传区域整体纵向排列 */
.upload-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 第一行：上传按钮（通栏虚线框） */
.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(135deg, #fff5f0, #ffece2);
    border: 1px dotted #ff9e57;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #ff6b6b;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}
.upload-btn:active {
    transform: scale(0.97);
    background: #ffe3d6;
}

/* 格式说明单独一行 */
.upload-format-tip {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

/* 第二行：图片预览列表 */
.preview-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 固定3列，一行排满 */
    gap: 10px;
    width: 100%;
}

.preview-item {
    position: relative;
    aspect-ratio: 1 / 1;          /* 宽高比1:1，高度跟随宽度 */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: cardIn 0.25s ease;
    background: #f1f2f6;
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.preview-index {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
}

@keyframes cardIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.form-agree {
    font-size: 13px;
    color: #888;
    margin: 16px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.form-agree input {
    width: 16px;
    height: 16px;
    accent-color: #ff6b6b;
}

.form-agree .agree-link{
    text-decoration: underline;
}

.submit-btn { width: 100%; text-align: center; padding: 15px; }
.submit-btn:disabled { opacity: 0.7; }

/* ---------- 报名成功 ---------- */
.reg-success {
    text-align: center;
    padding: 40px 20px;
}
.success-icon { font-size: 64px; margin-bottom: 12px; }
.reg-success h2 { font-size: 22px; color: #27ae60; margin-bottom: 20px; }
.success-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    text-align: left;
    margin-bottom: 24px;
}
.success-card img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}
.success-info p { font-size: 14px; margin-bottom: 6px; color: #555; }
.success-info strong { color: #2d3436; }

/* ---------- 排行榜 ---------- */
.rank-header { margin-bottom: 20px; }
.rank-list {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rank-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    gap: 12px;
    transition: transform 0.15s;
}
.rank-item:active { transform: scale(0.97); background: #fffaf5; }
.rank-num {
    font-size: 20px;
    font-weight: 800;
    width: 42px;
    text-align: center;
    color: #ccc;
}
.rank-num.rank-1 { color: #ffd93d; }
.rank-num.rank-2 { color: #bdc3c7; }
.rank-num.rank-3 { color: #e67e22; }
.rank-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f2f6;
}
.rank-info { flex: 1; }
.rank-name { font-size: 15px; font-weight: 600; }
.rank-votes { font-size: 13px; color: #ff4d6d; margin-top: 4px; }
.rank-votes strong { font-size: 17px; margin: 0 2px; }
.rank-arrow { font-size: 22px; color: #d0d0d5; }

/* ---------- 详情页 ---------- */
.detail-top {
    padding: 14px 16px;
    display: flex;
    align-items: center;
}
.detail-back {
    font-size: 16px;
    color: #555;
    font-weight: 600;
    padding: 6px 14px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.detail-gallery {
    position: relative;
    margin: 4px 15px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
    background: #f1f2f6;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.25s;
}
.dot.active { width: 20px; background: #fff; }

.detail-card {
    background: #fff;
    margin: 14px 15px;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
.detail-name {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-id {
    font-size: 12px;
    color: #bbb;
    background: #f5f5f8;
    padding: 3px 10px;
    border-radius: 10px;
}
.detail-votes {
    display: flex;
    align-items: center;
    margin-top: 12px;
    font-size: 18px;
    color: #2d3436;
}
.detail-votes strong { font-size: 34px; color: #ff4d6d; margin: 0 5px; font-weight: 800; }
.heart-icon { font-size: 24px; margin-right: 4px; }
.detail-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: #999;
    border-top: 1px dashed #eee;
    padding-top: 12px;
}

/* ---------- 投票面板 ---------- */
.vote-panel {
    margin: 10px 15px;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
.vote-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff4d6d);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding: 14px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.3);
    transition: all 0.2s ease;
    animation: pulse 2s infinite;
}
.vote-btn:active { transform: scale(0.96); }
.vote-btn.disabled {
    background: #e8e7ec;
    color: #a8a7ad;
    box-shadow: none;
    animation: none;
    cursor: not-allowed;
}
.vote-btn.voted {
    background: #e8f8ef;
    color: #27ae60;
    box-shadow: none;
    animation: none;
    cursor: not-allowed;
}
.vote-tip { font-size: 13px; color: #999; margin-top: 12px; }
.vote-tip strong { color: #ff4d6d; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(255, 77, 109, 0.3); }
    50%      { box-shadow: 0 6px 30px rgba(255, 77, 109, 0.5); }
}

.detail-tip {
    margin: 10px 15px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    line-height: 1.6;
    padding: 0 8px;
}

/* ---------- 底部导航 ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    display: flex;
    border-top: 1px solid #f0f0f2;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #999;
    padding: 4px 0;
    transition: color 0.2s;
}
.bottom-nav a.active { color: #ff4d6d; font-weight: 600; }
.nav-icon { display: block; font-size: 21px; line-height: 1.2; }
.nav-label { margin-top: 2px; }

/* ---------- 错误页 ---------- */
.error-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding-bottom: 0;
    min-height: 100vh;
}
.error-box {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: 44px 32px;
    text-align: center;
    width: 82%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: cardIn 0.5s ease;
}
.error-icon { font-size: 56px; }
.error-box h2 { font-size: 20px; margin: 16px 0 12px; color: #2d3436; }
.error-box p { font-size: 14px; color: #888; line-height: 1.8; }
.error-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    background: #f6f6f9;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: #555;
}

/* ---------- Toast 提示（带动画） ---------- */
.toast {
    position: fixed;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 14px 26px;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 500;
            line-height: 1.5;
            z-index: 9999;
            max-width: 85%;
            /* 限制最大宽度，防止太宽 */
            text-align: center;
            opacity: 0;
            pointer-events: none;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.35);

            /* ===== 核心修改：强制单行，溢出显示省略号 ===== */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
}
.toast.success { background: rgba(39, 174, 96, 0.8); }
.toast.error { background: rgba(231, 76, 60, 0.8); }
.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.toast.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
}
.toast.shake {
    animation: toastShake 0.45s ease;
}

/* ---------- 活动规则弹窗 ---------- */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-mask.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    max-height: 68vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(40px) scale(0.7);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.35), opacity 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.modal-mask.active .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #f0f0f2;
    flex-shrink: 0;
}
.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #2d3436;
}
.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f2f6;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-close:active {
    transform: scale(0.85);
    background: #e1e2e7;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
    -webkit-overflow-scrolling: touch;
}
.modal-body p {
    margin-bottom: 4px;
}
.modal-body strong {
    color: #ff6b6b;
}

.modal-footer {
    padding: 12px 20px 18px;
    border-top: 1px solid #f0f0f2;
    flex-shrink: 0;
}
.modal-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff9e57);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px;
    border-radius: 26px;
    cursor: pointer;
    transition: transform 0.2s;
}
.modal-btn:active {
    transform: scale(0.96);
}

@keyframes toastShake {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
    20%  { transform: translate(-50%, -50%) scale(1) translateX(-10px) rotate(-2deg); }
    40%  { transform: translate(-50%, -50%) scale(1) translateX(10px) rotate(2deg); }
    60%  { transform: translate(-50%, -50%) scale(1) translateX(-6px) rotate(-1deg); }
    80%  { transform: translate(-50%, -50%) scale(1) translateX(6px) rotate(1deg); }
}

