:root {
    --bg-overlay: rgba(6, 10, 22, 0.55);
    --card-bg: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
    --accent-1: #6b5bff;
    --accent-2: #00c2a8;
    --muted: #55607a;
    --card-radius: 14px;
    --card-padding: 18px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.motivation_screen {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-overlay);
    z-index: 12000;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
    transition: opacity .18s ease, transform .18s ease;
}

.mot-close-toggle:checked+.motivation_screen {
    display: none !important;
}

.motivation_card {
    width: min(420px, 94%);
    background: var(--card-bg);
    color: #0b1320;
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 0 10px 30px rgba(3, 8, 23, 0.45);
    position: relative;
    border: 1px solid rgba(12, 16, 40, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.motivation_close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.motivation_close:hover {
    background: rgba(10, 14, 30, 0.04);
    color: #22324a;
}

.mot-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.mot-illus {
    width: 120px;
    height: 120px;
    flex: 0 0 150px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(16, 24, 48, 0.06);

    background-image: url(../icons/croco_animated.jpg);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.mot-text-wrap {
    flex: 1;
    min-width: 0;
}

.mot-title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: #14233a;
    font-weight: 700;
}

.mot-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-line;
}

.mot-author {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #9aa4bf;
  font-style: italic;
}

.mot-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
}

@keyframes motPop {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width:420px) {
    .mot-illus {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }

    .mot-title {
        font-size: 1rem;
    }

    .mot-text {
        font-size: 0.95rem;
    }
}