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

body {
    background: linear-gradient(145deg, #ff9a9e 0%, #fad0c4 50%, #fad0c4 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass card - 鲜艳底色 + 半透明毛玻璃 */
.glass-card {
    max-width: 780px;
    width: 100%;
    background: rgba(255, 255, 245, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 2rem 1.8rem 2rem;
    transition: all 0.2s ease;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 1.8rem;
}
.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #f9ca24);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}
.header h2 {
    color: #ff8c5a;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.3rem;
}

/* Streak area - 荧光黄 */
.streak-area {
    text-align: center;
    background: rgba(255, 235, 140, 0.5);
    border-radius: 2rem;
    padding: 1rem 1rem 1.2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.streak-number {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(145deg, #ff6b6b, #ff8e53);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -2px;
}
.streak-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #ff6b6b;
    margin-top: 0.2rem;
}
.max-streak {
    display: inline-block;
    background: rgba(255, 107, 107, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-top: 0.8rem;
}

/* Button groups */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.share-group {
    margin-bottom: 0;
}
.btn-primary {
    background: linear-gradient(105deg, #ff6b6b, #ff8e53);
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
    flex: 1;
    min-width: 180px;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.3);
    background: linear-gradient(105deg, #ff5252, #ff7a2e);
}
.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}
.btn-primary:disabled {
    background: #ffb3b3;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}
.btn-share {
    background: #fff0b5;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 60px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    color: #ff6b6b;
    cursor: pointer;
    transition: 0.1s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 100px;
}
.btn-share:hover {
    background: #ffe3a0;
    transform: translateY(-1px);
}

/* Message card */
.message-card {
    background: rgba(255, 245, 210, 0.9);
    border-radius: 1.2rem;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #d64b2a;
    border-left: 4px solid #ff8e53;
    transition: border 0.2s;
    backdrop-filter: blur(2px);
}

/* Task module */
.task-module {
    margin-top: 1.8rem;
    background: rgba(255, 240, 200, 0.7);
    border-radius: 1.4rem;
    padding: 1rem 1.2rem;
}
.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #ff8e53;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.task-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.task-text {
    font-size: 1rem;
    font-weight: 500;
    color: #b34e1a;
    background: rgba(255, 220, 150, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 60px;
    flex: 1;
}
.task-btn {
    background: #ffc48a;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.85rem;
    color: #b34e1a;
    cursor: pointer;
    transition: 0.1s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.task-btn:hover {
    background: #ffb56e;
}
.task-feedback {
    font-size: 0.7rem;
    color: #ff8e53;
    margin-top: 0.6rem;
    text-align: right;
}

/* Achievements grid */
.achievements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.6rem;
}
.badge {
    background: #ffeac5;
    padding: 0.4rem 1rem 0.4rem 0.8rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c25a2a;
    transition: all 0.15s;
    backdrop-filter: blur(2px);
}
.badge.unlocked {
    background: #ffd700;
    color: #b34e1a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.badge-icon {
    font-size: 1rem;
}

/* Countdown & footer */
.countdown {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ff8e53;
    margin-top: 1.8rem;
    border-top: 1px solid rgba(255, 140, 80, 0.3);
    padding-top: 1.2rem;
}
footer {
    text-align: center;
    font-size: 0.65rem;
    color: #ffa56e;
    margin-top: 1.2rem;
}

/* Total users counter */
.total-users {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ff8e53;
    background: rgba(255, 240, 200, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}
.total-users strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b6b;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: #fff0b5;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

@media (max-width: 550px) {
    .glass-card { padding: 1.5rem; }
    .streak-number { font-size: 4rem; }
    .btn-primary, .btn-share { font-size: 0.9rem; padding: 0.7rem 0.8rem; min-width: auto; }
    .share-group { gap: 0.6rem; }
    .task-content { flex-direction: column; align-items: stretch; }
    .task-text { text-align: center; }
    .task-btn { width: 100%; text-align: center; }
    .toast { font-size: 0.75rem; white-space: normal; max-width: 80%; text-align: center; }
}