:root {
    --primary: #1976d2;
    --primary-light: #e3f2fd;
    --text-main: #222;
    --text-sub: #666;
    --bg: #f5f5f5;
    --card-bg: #ffffff;
    --border-radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #e3f2fd 0, #f5f5f5 55%, #eeeeee 100%);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 24px 16px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px 20px 20px;
}

.app-title {
    margin: 0 0 16px;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    text-align: center;
    letter-spacing: 0.08em;
}

.last-fed-label {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-sub);
}

#last-fed {
    margin: 4px 0 16px;
    font-weight: 600;
}

.primary-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease,
        border-color 0.12s ease, color 0.12s ease;
    outline: none;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.45);
    background: #1565c0;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-secondary:disabled,
.btn-primary:disabled {
    cursor: default;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

.status-text {
    min-height: 1.2em;
    margin: 4px 0 16px;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.auth-area {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.auth-label {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--text-sub);
}

.auth-buttons {
    display: flex;
    gap: 8px;
}

@media (min-width: 600px) {
    .card {
        padding: 28px 28px 22px;
    }

    .primary-actions {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }

    .auth-buttons {
        justify-content: flex-end;
    }
}