:root {
    color-scheme: light;
    --pink-50: #fff5fb;
    --pink-100: #ffe5f3;
    --pink-200: #ffc8e4;
    --pink-300: #ff9dd0;
    --pink-500: #ff4fa1;
    --lavender-100: #ffe8f7;
    --lavender-300: #ffc4e3;
    --cream: #fff8ef;
    --mint: #b8f0e3;
    --caramel: #d69a73;
    --text-dark: #44263f;
    --text-muted: rgba(68, 38, 63, 0.7);
    --card-shadow: 0 25px 55px rgba(255, 79, 161, 0.15);
    --week-banner-height: clamp(32px, 6vw, 48px);
    --week-banner-collapsed-height: clamp(20px, 4.5vw, 32px);
    font-family: "Bodoni Moda", "Didot", "Georgia", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, var(--pink-50), #ffffff 45%) fixed,
        linear-gradient(135deg, var(--pink-100), var(--lavender-100), var(--cream));
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: calc(var(--week-banner-height) + 24px) clamp(16px, 5vw, 48px) 96px;
    position: relative;
    overflow-x: hidden;
    transition: padding-top 220ms ease;
}

body.week-indicator-collapsed {
    padding-top: calc(var(--week-banner-collapsed-height) + 24px);
}

.week-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: clamp(8px, 2.4vw, 14px) clamp(14px, 4vw, 32px);
    min-height: var(--week-banner-height);
    border-radius: 0 0 32px 32px;
    background: linear-gradient(135deg, rgba(255, 246, 252, 0.95), rgba(255, 224, 243, 0.9));
    box-shadow: 0 16px 36px rgba(255, 79, 161, 0.16);
    backdrop-filter: blur(10px);
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: transform 200ms ease, box-shadow 200ms ease, padding 220ms ease;
}

.week-indicator:focus-visible {
    outline: 3px solid rgba(255, 79, 161, 0.45);
    outline-offset: 4px;
}

.week-indicator__label {
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    transition: transform 220ms ease;
}

.week-indicator__value {
    font-family: 'Bodoni Moda', 'Didot', 'Georgia', serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 220ms ease;
}

.week-indicator__range {
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease;
}

.week-indicator__chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(68, 38, 63, 0.28);
    border-bottom: 2px solid rgba(68, 38, 63, 0.28);
    transform: rotate(45deg);
    margin-left: 4px;
    transition: transform 220ms ease, border-color 220ms ease;
}

@media (max-width: 640px) {
    .week-indicator {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: clamp(10px, 4vw, 16px) clamp(12px, 7vw, 24px);
        border-radius: 0 0 24px 24px;
    }

    .week-indicator__label {
        font-size: 0.62rem;
    }

    .week-indicator__value {
        font-size: 0.78rem;
    }

    .week-indicator__range {
        font-size: 0.68rem;
    }

    .week-indicator__chevron {
        width: 11px;
        height: 11px;
    }
}

.week-indicator--collapsed {
    padding: clamp(6px, 2vw, 10px) clamp(12px, 4vw, 22px);
    min-height: var(--week-banner-collapsed-height);
    gap: 8px;
    box-shadow: 0 12px 28px rgba(255, 79, 161, 0.14);
}

.week-indicator--collapsed .week-indicator__range {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

.week-indicator--collapsed .week-indicator__chevron {
    transform: rotate(-135deg) translateY(-2px);
}

.week-indicator--collapsed .week-indicator__label,
.week-indicator--collapsed .week-indicator__value {
    transition: transform 220ms ease;
}

.week-indicator--collapsed .week-indicator__label,
.week-indicator--collapsed .week-indicator__value {
    transform: translateY(2px);
}

button, input {
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    color: inherit;
}

textarea, select {
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
}

body, h1, h2, h3, h4, h5, h6, p, span, label, li {
    font-family: "Bodoni Moda", "Didot", "Georgia", serif;
}

.btn, .input, .notepad-item__pin, .flashcard-form__key input, .flashcard-widget__counter {
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
}

.sparkle-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 194, 229, 0.4) 1px, transparent 3px),
        radial-gradient(rgba(255, 175, 217, 0.35) 1px, transparent 3px);
    background-size: 80px 80px, 120px 120px;
    opacity: 0.6;
    animation: shimmer 18s linear infinite;
}

.welcome-splash {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(255, 210, 230, 0.92), rgba(255, 235, 246, 0.96)) fixed,
        linear-gradient(160deg, rgba(255, 192, 222, 0.9), rgba(255, 235, 246, 0.92));
    overflow: hidden;
    pointer-events: none;
    transition: opacity 600ms ease, visibility 600ms ease;
}

.welcome-splash--hide {
    opacity: 0;
    visibility: hidden;
}

.welcome-splash__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(12px, 4vw, 24px);
    padding: 0;
    transform: none;
    color: var(--text-dark);
    font-weight: 700;
    z-index: 2;
}

.welcome-splash__salute,
.welcome-splash__name {
    font-size: clamp(48px, 8vw, 84px);
    line-height: 1;
    margin: 0;
    color: var(--text-dark);
    text-transform: none;
    letter-spacing: 0.01em;
}


.welcome-splash__runner {
    position: absolute;
    top: -32%;
    left: -34%;
    width: clamp(90px, 15vw, 180px);
    height: clamp(90px, 15vw, 180px);
    z-index: 3;
    pointer-events: none;
    background-image: url('assets/emilija1.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    transform: translate3d(-120%, -6%, 0) scale(0.9);
    transform-origin: bottom center;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
    animation: welcome-runner-dash 2.2s ease-out forwards, welcome-runner-frames 0.6s linear infinite;
}

.welcome-splash__runner--jump {
    animation: welcome-runner-jump 0.85s ease-in-out forwards, welcome-runner-frames 0.6s linear infinite;
}

@keyframes welcome-runner-dash {
    0% {
        opacity: 0;
        transform: translate3d(-135%, -10%, 0) scale(0.86);
    }
    18% {
        opacity: 1;
    }
    65% {
        transform: translate3d(10%, -18%, 0) scale(0.94);
    }
    100% {
        transform: translate3d(24%, -18%, 0) scale(0.94);
    }
}

@keyframes welcome-runner-jump {
    0% {
        opacity: 1;
        transform: translate3d(24%, -18%, 0) scale(0.94);
    }
    45% {
        transform: translate3d(50%, -72%, 0) scale(0.94);
    }
    100% {
        opacity: 0;
        transform: translate3d(102%, 42%, 0) scale(0.82);
    }
}

@keyframes welcome-runner-frames {
    0%, 32% { background-image: url('assets/emilija1.png'); }
    33%, 65% { background-image: url('assets/emilija2.png'); }
    66%, 100% { background-image: url('assets/emilija3.png'); }
}

@media (max-width: 640px) {
    .welcome-splash__runner {
        top: -24%;
        left: -8%;
        width: clamp(100px, 28vw, 140px);
        height: clamp(100px, 28vw, 140px);
    }

    .welcome-splash__content {
        gap: clamp(6px, 5vw, 14px);
        align-items: center;
        text-align: center;
        max-width: min(82vw, 520px);
    }

    .welcome-splash__salute,
    .welcome-splash__name {
        font-size: clamp(24px, 7vw, 38px);
        line-height: 1.05;
        display: inline-block;
    }

    .flashcard-widget__counter {
        font-size: 13px;
    }

    .footer {
        text-align: center;
        align-self: center;
    }
}

.welcome-splash__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.welcome-splash__heart,
.welcome-splash__choco,
.welcome-splash__plush {
    position: absolute;
    top: -120px;
    left: var(--x, 50%);
    width: var(--size, 44px);
    height: var(--size, 44px);
    opacity: 0.18;
    animation: splashFall var(--duration, 8s) linear infinite;
    animation-delay: var(--delay, 0s);
    transform-origin: center;
    filter: drop-shadow(0 12px 18px rgba(255, 114, 169, 0.3));
}

.welcome-splash__heart {
    background: linear-gradient(135deg, rgba(255, 168, 204, 0.9), rgba(255, 120, 176, 0.9));
    transform: rotate(45deg);
    border-radius: 12px;
}

.welcome-splash__heart::before,
.welcome-splash__heart::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
}

.welcome-splash__heart::before {
    top: -50%;
    left: 0;
}

.welcome-splash__heart::after {
    top: 0;
    left: 50%;
}

.welcome-splash__heart--small {
    opacity: 0.14;
}

.welcome-splash__heart--tiny {
    opacity: 0.1;
}

.welcome-splash__choco {
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 235, 245, 0.9));
    box-shadow: inset -6px -6px 14px rgba(200, 180, 200, 0.25), inset 6px 6px 14px rgba(255, 255, 255, 0.6);
}

.welcome-splash__choco::after {
    content: '';
    position: absolute;
    inset: 15%;
    border-radius: inherit;
    border: 1px solid rgba(240, 220, 255, 0.45);
    opacity: 0.55;
}

.welcome-splash__choco--bowtie {
    transform: rotate(20deg);
    clip-path: polygon(10% 0%, 45% 32%, 10% 65%, 10% 100%, 55% 72%, 90% 100%, 90% 0%, 55% 28%);
}

.welcome-splash__choco--heel {
    border-radius: 32% 32% 18% 50%;
    transform: rotate(-18deg);
}

.welcome-splash__choco--heel::after {
    inset: 20% 26% 15% 15%;
    border-radius: 45% 45% 35% 60%;
}

.welcome-splash__choco--tequila {
    border-radius: 18% 18% 35% 35%;
    transform: rotate(8deg);
}

.welcome-splash__choco--tequila::after {
    inset: 15% 22% 25% 22%;
    border-radius: 18% 18% 40% 40%;
    box-shadow: inset 0 -6px 12px rgba(255, 220, 240, 0.45);
}

.welcome-splash__plush {
    border-radius: 45%;
    background: linear-gradient(145deg, rgba(255, 240, 248, 0.95), rgba(255, 180, 210, 0.92));
    box-shadow: inset -5px -8px 16px rgba(255, 150, 195, 0.25), inset 5px 6px 14px rgba(255, 255, 255, 0.65);
}

.welcome-splash__plush::before {
    content: '';
    position: absolute;
    width: 34%;
    height: 70%;
    top: -46%;
    left: 16%;
    border-radius: 60% 60% 45% 45%;
    background: linear-gradient(145deg, rgba(255, 235, 246, 0.95), rgba(255, 192, 220, 0.92));
    box-shadow: calc(var(--size, 60px) * 0.48) 0 0 0 rgba(255, 235, 246, 0.95);
}

.welcome-splash__plush::after {
    content: '';
    position: absolute;
    inset: 18% 18% 24%;
    border-radius: 55%;
    background:
        radial-gradient(circle at 30% 40%, rgba(90, 55, 70, 0.55) 0, rgba(90, 55, 70, 0.55) 14%, transparent 14%),
        radial-gradient(circle at 70% 40%, rgba(90, 55, 70, 0.55) 0, rgba(90, 55, 70, 0.55) 14%, transparent 14%),
        radial-gradient(circle at 50% 78%, rgba(255, 145, 190, 0.6) 0, rgba(255, 145, 190, 0.6) 18%, transparent 18%),
        radial-gradient(circle at 50% 60%, rgba(120, 70, 85, 0.65) 0, rgba(120, 70, 85, 0.65) 12%, transparent 12%);
    background-repeat: no-repeat;
}

.welcome-splash__plush--bear {
    background: linear-gradient(145deg, rgba(255, 225, 235, 0.96), rgba(255, 170, 205, 0.9));
    box-shadow: inset -4px -6px 14px rgba(255, 125, 180, 0.2), inset 4px 5px 12px rgba(255, 250, 252, 0.55);
}

.welcome-splash__plush--bear::before {
    height: 58%;
    top: -30%;
    background: linear-gradient(145deg, rgba(255, 210, 230, 0.94), rgba(255, 160, 200, 0.9));
    box-shadow: calc(var(--size, 56px) * 0.52) 0 0 0 rgba(255, 210, 230, 0.94);
}

.welcome-splash__plush--bear::after {
    background:
        radial-gradient(circle at 30% 40%, rgba(90, 55, 70, 0.55) 0, rgba(90, 55, 70, 0.55) 16%, transparent 16%),
        radial-gradient(circle at 70% 40%, rgba(90, 55, 70, 0.55) 0, rgba(90, 55, 70, 0.55) 16%, transparent 16%),
        radial-gradient(circle at 50% 75%, rgba(255, 160, 205, 0.58) 0, rgba(255, 160, 205, 0.58) 18%, transparent 18%),
        radial-gradient(circle at 50% 60%, rgba(110, 60, 75, 0.58) 0, rgba(110, 60, 75, 0.58) 13%, transparent 13%);
}

.welcome-splash__plush--bunny::before {
    height: 80%;
    top: -56%;
}

.welcome-splash__plush--bunny::after {
    background:
        radial-gradient(circle at 28% 48%, rgba(90, 55, 70, 0.55) 0, rgba(90, 55, 70, 0.55) 12%, transparent 12%),
        radial-gradient(circle at 72% 48%, rgba(90, 55, 70, 0.55) 0, rgba(90, 55, 70, 0.55) 12%, transparent 12%),
        radial-gradient(circle at 50% 75%, rgba(255, 160, 205, 0.6) 0, rgba(255, 160, 205, 0.6) 16%, transparent 16%),
        radial-gradient(circle at 50% 58%, rgba(110, 60, 75, 0.6) 0, rgba(110, 60, 75, 0.6) 11%, transparent 11%);
}

@keyframes splashFall {
    0% {
        transform: translate3d(0, -140px, 0) rotate3d(1, 0, 0, 18deg) rotateZ(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.22;
    }
    60% {
        opacity: 0.18;
    }
    100% {
        transform: translate3d(0, 110vh, 0) rotate3d(1, 0, 0, 18deg) rotateZ(25deg);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-20px, -30px, 0) scale(1.03);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.app {
    width: min(1024px, 100%);
    display: grid;
    gap: 32px;
    z-index: 1;
}

.hero {
    text-align: center;
    background: rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    padding: clamp(24px, 8vw, 48px);
    box-shadow: 0 18px 45px rgba(255, 157, 208, 0.24);
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 129, 183, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    top: -80px;
    filter: blur(0.5px);
}

.hero::before {
    left: -70px;
}

.hero::after {
    right: -60px;
    background: radial-gradient(circle, rgba(255, 205, 233, 0.38) 0%, transparent 70%);
}

.hero__badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 157, 208, 0.9), rgba(255, 233, 246, 0.9));
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 12px;
}

.hero__title {
    font-size: clamp(36px, 6vw, 58px);
    margin: 0;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    text-shadow: 0 12px 25px rgba(68, 38, 63, 0.15);
}

.hero__tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-top: 16px;
    color: var(--text-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.screen {
    display: none;
    backdrop-filter: blur(6px);
}

.screen--active {
    display: block;
    animation: fadeUp 500ms ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(9px);
}

.intro-card {
    display: grid;
    gap: 20px;
    background: linear-gradient(160deg, rgba(255, 245, 251, 0.92), rgba(255, 230, 244, 0.9));
    border: 2px solid rgba(255, 157, 208, 0.18);
    max-width: 520px;
    margin: 0 auto;
}

.intro-card__helper {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

[data-screen='intro'] h2 {
    text-align: center;
    margin-top: 0;
}

.intro-card__field {
    display: grid;
    gap: 10px;
}

.intro-card__field--inline {
    gap: 12px;
}

.intro-card__key {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 2px solid rgba(255, 157, 208, 0.22);
    background: rgba(255, 255, 255, 0.88);
}

.intro-card__input {
    border: none;
    background: transparent;
    padding: 0;
    flex: 1;
    font-size: 16px;
    min-width: 0;
}

.intro-card__input:focus {
    outline: none;
}

.intro-card__remember {
    font-size: 14px;
    color: var(--text-muted);
}

.intro-card__submit {
    width: fit-content;
}

.card--soft {
    background: rgba(255, 245, 251, 0.78);
}

.card--glow {
    border: 2px solid rgba(255, 79, 161, 0.18);
    background: linear-gradient(135deg, rgba(255, 245, 251, 0.9), rgba(255, 226, 239, 0.85));
}

.card__title {
    margin-top: 0;
    font-size: 20px;
}

.form {
    display: grid;
    gap: 16px;
}

.form__label {
    font-weight: 600;
    font-size: 18px;
}

.form__hint {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: border 160ms ease, box-shadow 160ms ease;
}

.input:focus {
    border-color: var(--pink-300);
    box-shadow: 0 0 0 6px rgba(255, 157, 208, 0.25);
    outline: none;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(255, 79, 161, 0.18);
}

.btn--primary {
    background: linear-gradient(135deg, var(--pink-300), var(--pink-500));
    color: white;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    border: 1px solid rgba(68, 38, 63, 0.1);
}

.btn--pill {
    padding: 12px 20px;
    background: rgba(255, 157, 208, 0.25);
    color: var(--text-dark);
}

.layout {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .layout {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.task-entry {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

@media (min-width: 600px) {
    .task-entry {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.task-list {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.task-list li {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 157, 208, 0.2);
}

.task-list button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgba(68, 38, 63, 0.5);
    transition: color 160ms ease;
}

.task-list button:hover {
    color: var(--pink-500);
}


.task-icon {
    font-size: 18px;
    color: var(--pink-500);
    margin-right: 12px;
}

.task-label {
    flex: 1;
    font-weight: 600;
}

.task-placeholder {
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

.timetable-card {
    margin-top: 32px;
    background: linear-gradient(140deg, rgba(255, 247, 252, 0.92), rgba(255, 231, 243, 0.94));
    border: 2px solid rgba(255, 157, 208, 0.18);
}

.timetable-card__header {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.timetable-card__body {
    display: block;
}

.timetable-card__details {
    margin: 0;
    padding: 0;
    border: 0;
}

.timetable-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 18px;
    border: 2px solid rgba(255, 157, 208, 0.28);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    list-style: none;
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.timetable-card__summary::after {
    content: '';
    position: absolute;
    inset: -130%;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.85) 0deg, rgba(255, 205, 235, 0.7) 90deg, rgba(255, 146, 205, 0.7) 180deg, rgba(255, 205, 235, 0.7) 270deg, rgba(255, 255, 255, 0.85) 360deg);
    opacity: 0;
    transform: scale(0.45) rotate(0deg);
    transition: opacity 280ms ease, transform 620ms ease;
    pointer-events: none;
    mix-blend-mode: screen;
}

.timetable-card__summary:hover::after {
    opacity: 0.28;
}

.timetable-card__summary::-webkit-details-marker {
    display: none;
}


.timetable-card__summary-label {
    flex: 1;
    font-family: 'Caveat', 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    -webkit-font-smoothing: antialiased;
}

.timetable-card__summary-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 157, 208, 0.95), rgba(255, 79, 161, 0.85));
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: background 200ms ease, box-shadow 200ms ease;
}

.timetable-card__summary-icon::before {
    content: '+';
}

.timetable-card__summary:hover {
    border-color: rgba(255, 157, 208, 0.42);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 22px rgba(255, 157, 208, 0.15);
}

.timetable-card__summary:focus-visible {
    outline: 2px solid rgba(255, 79, 161, 0.5);
    outline-offset: 3px;
}

.timetable-card__panel {
    margin-top: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 157, 208, 0.16);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
    transition:
        max-height 580ms cubic-bezier(0.24, 0.8, 0.28, 1),
        opacity 260ms ease,
        transform 420ms cubic-bezier(0.24, 0.8, 0.28, 1),
        margin-top 320ms ease;
}

.timetable-card__panel-content {
    padding: 0 clamp(18px, 4vw, 24px);
    background: linear-gradient(145deg, rgba(255, 246, 252, 0.98), rgba(255, 231, 243, 0.92));
    opacity: 0;
    transform: translateY(12px);
    transition:
        padding 260ms ease,
        opacity 320ms ease 120ms,
        transform 420ms cubic-bezier(0.24, 0.8, 0.28, 1);
}

.timetable-card__iframe {
    display: block;
    width: 100%;
    min-height: clamp(320px, 45vw, 520px);
    border: 0;
}

.timetable-card__details[open] .timetable-card__summary::after {
    animation: candySwirl 700ms ease-out;
    transform: scale(1.04) rotate(540deg);
    opacity: 0.52;
}

.timetable-card__details[open] .timetable-card__panel {
    margin-top: 16px;
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
}

.timetable-card__details[open] .timetable-card__panel-content {
    padding: clamp(18px, 4vw, 24px);
    opacity: 1;
    transform: translateY(0);
}

.timetable-card__details[open] .timetable-card__summary-icon {
    background: linear-gradient(135deg, rgba(255, 137, 198, 0.95), rgba(255, 89, 169, 0.88));
    box-shadow: 0 6px 14px rgba(255, 128, 190, 0.18);
}

.timetable-card__details[open] .timetable-card__summary-icon::before {
    content: '–';
}

.timetable-card__details[open] .timetable-card__summary {
    border-color: rgba(255, 157, 208, 0.48);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 14px 28px rgba(255, 157, 208, 0.18);
}




@keyframes candySwirl {
    0% {
        opacity: 0;
        transform: scale(0.45) rotate(0deg);
    }
    65% {
        opacity: 0.65;
        transform: scale(1.02) rotate(420deg);
    }
    100% {
        opacity: 0.45;
        transform: scale(1.08) rotate(540deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .timetable-card__summary::after {
        opacity: 0;
        transform: none;
        transition: none;
    }
    .timetable-card__summary:hover::after {
        opacity: 0.15;
    }
    .timetable-card__details[open] .timetable-card__summary::after {
        animation: none;
        opacity: 0.32;
        transform: none;
    }
    .timetable-card__panel,
    .timetable-card__panel-content {
        transition: none;
        transform: none;
    }
}

.flashcard-card {
    margin-top: 32px;
    background: linear-gradient(140deg, rgba(255, 246, 250, 0.92), rgba(255, 223, 239, 0.94));
    border: 2px solid rgba(255, 157, 208, 0.18);
}

.flashcard-card__header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.flashcard-card__tagline {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.flashcard-form {
    display: grid;
    gap: 18px;
}

.flashcard-form__field {
    display: grid;
    gap: 6px;
}

.flashcard-form__file-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    overflow: visible;
}

.flashcard-form__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flashcard-form__choice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 2px rgba(255, 79, 161, 0.2);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.flashcard-form__choice:hover,
.flashcard-form__choice:focus-within {
    box-shadow: inset 0 0 0 2px rgba(255, 79, 161, 0.4), 0 10px 24px rgba(255, 79, 161, 0.16);
    transform: translateY(-2px);
}

.flashcard-form__choice input {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--pink-300);
    display: grid;
    place-items: center;
    background: #fff;
    transition: border-color 160ms ease;
}

.flashcard-form__choice input::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink-500);
    transform: scale(0);
    transition: transform 140ms ease;
}

.flashcard-form__choice input:checked {
    border-color: var(--pink-500);
}

.flashcard-form__choice input:checked::after {
    transform: scale(1);
}

.flashcard-form__choice input:focus-visible {
    outline: 3px solid rgba(255, 79, 161, 0.35);
    outline-offset: 2px;
}

.flashcard-form__choice-label {
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
}

.flashcard-form__choice input:checked + .flashcard-form__choice-label {
    color: var(--pink-500);
    font-weight: 600;
}

.flashcard-form__toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.flashcard-form__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 2px rgba(255, 79, 161, 0.18);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.flashcard-form__toggle--active {
    box-shadow: inset 0 0 0 2px rgba(255, 79, 161, 0.42), 0 12px 28px rgba(255, 79, 161, 0.16);
    background: rgba(255, 255, 255, 0.98);
}

.flashcard-form__toggle--muted {
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 2px rgba(255, 79, 161, 0.08);
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.flashcard-form__toggle:hover,
.flashcard-form__toggle:focus-within {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px rgba(255, 79, 161, 0.35), 0 10px 24px rgba(255, 79, 161, 0.14);
}

.flashcard-form__toggle.flashcard-form__toggle--muted:hover,
.flashcard-form__toggle.flashcard-form__toggle--muted:focus-within {
    opacity: 0.78;
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 2px rgba(255, 79, 161, 0.18), 0 6px 18px rgba(255, 79, 161, 0.12);
}

.flashcard-form__toggle input {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--pink-300);
    display: grid;
    place-items: center;
    background: #fff;
    transition: border-color 160ms ease, background 160ms ease;
}

.flashcard-form__toggle input::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--pink-500);
    transform: scale(0);
    transition: transform 140ms ease;
}

.flashcard-form__toggle input:checked {
    border-color: var(--pink-500);
    background: rgba(255, 157, 208, 0.15);
}

.flashcard-form__toggle input:checked::after {
    transform: scale(1);
}

.flashcard-form__toggle input:focus-visible {
    outline: 3px solid rgba(255, 79, 161, 0.35);
    outline-offset: 3px;
}

.flashcard-form__toggle-label {
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.flashcard-form__toggle input:not(:checked) + .flashcard-form__toggle-label {
    font-weight: 500;
    color: var(--text-muted);
}

.flashcard-form__hint--inline {
    margin-top: 4px;
    font-size: 13px;
}

.flashcard-form__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.flashcard-form__file-button {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 157, 208, 0.95), rgba(255, 79, 161, 0.95));
    box-shadow: 0 12px 24px rgba(255, 79, 161, 0.26);
    transition: transform 180ms ease, box-shadow 180ms ease;
    animation: sparkleOrbit 3.2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.flashcard-form__file-button:hover,
.flashcard-form__file-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(255, 79, 161, 0.3);
}

.flashcard-form__file-button:focus-visible {
    outline: 3px solid rgba(184, 240, 227, 0.8);
    outline-offset: 4px;
}

.flashcard-form__file-name {
    font-size: 14px;
    color: var(--text-muted);
    min-width: 180px;
    opacity: 0.65;
}

.flashcard-form__file-name--has-file {
    opacity: 1;
    color: var(--text-dark);
}

@keyframes sparkleOrbit {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 245, 251, 0.35), 0 12px 24px rgba(255, 79, 161, 0.25);
    }
    40% {
        box-shadow: 0 0 0 6px rgba(255, 200, 230, 0.35), 0 12px 24px rgba(255, 79, 161, 0.25);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 228, 243, 0.4), 0 12px 24px rgba(255, 79, 161, 0.18);
    }
}

.studio-grid {
    display: grid;
    gap: 28px;
}

.studio-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.studio-actions__note {
    margin: 0;
    flex: 1;
}

@media (min-width: 960px) {
    .studio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
    }

    .flashcard-card {
        grid-column: 1 / -1;
    }
}

.notepad-card {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 249, 0.95));
    border: 1px solid rgba(255, 79, 161, 0.14);
    box-shadow: 0 26px 48px rgba(255, 79, 161, 0.12);
    overflow: hidden;
}

.notepad-card::after {
    content: '';
    position: absolute;
    inset: 16px 18px auto;
    height: 6px;
    background: repeating-linear-gradient(90deg, rgba(255, 79, 161, 0.25), rgba(255, 79, 161, 0.25) 18px, transparent 18px, transparent 36px);
    border-radius: 6px;
}

.notepad-card__header {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.notepad-card__tagline {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(68, 38, 63, 0.78);
    max-width: 34ch;
}

.notepad-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.notepad-input {
    flex: 1;
    border: 1px solid rgba(255, 79, 161, 0.3);
    border-radius: 18px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 238, 247, 0.95));
    box-shadow: inset 0 2px 6px rgba(255, 79, 161, 0.08), 0 14px 26px rgba(255, 79, 161, 0.12);
    font-size: 16px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.notepad-input:focus {
    border-color: rgba(255, 79, 161, 0.6);
    box-shadow: inset 0 3px 8px rgba(255, 79, 161, 0.12), 0 18px 32px rgba(255, 79, 161, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.notepad-input:hover {
    border-color: rgba(255, 79, 161, 0.45);
}

.notepad-input::placeholder {
    color: rgba(68, 38, 63, 0.55);
    opacity: 0.75;
    transition: opacity 160ms ease;
}

.notepad-input:focus::placeholder {
    opacity: 0.45;
}

@keyframes placeholderGlow {
    0% {
        opacity: 0;
    }
    40% {
        opacity: 0.35;
    }
    70% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.35;
    }
}

.notepad-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.notepad-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 157, 208, 0.25);
    box-shadow: 0 10px 24px rgba(255, 79, 161, 0.12);
}

.notepad-item__checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--pink-500);
    cursor: pointer;
}

.notepad-item__label {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.notepad-item__label.notepad-item__label--done {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.notepad-item__pin {
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255, 157, 208, 0.25);
    color: var(--pink-500);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.notepad-item__pin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 79, 161, 0.2);
}

.notepad-item__pin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.notepad-empty {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.sticky-card {
    position: relative;
    background: linear-gradient(150deg, rgba(255, 241, 249, 0.92), rgba(255, 248, 253, 0.88));
    border: 1px solid rgba(255, 79, 161, 0.12);
    box-shadow: 0 26px 46px rgba(255, 79, 161, 0.12);
    overflow: hidden;
}

.sticky-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 6px 20px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 79, 161, 0.18);
}

.sticky-card__tagline {
    grid-column: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(68, 38, 63, 0.78);
    max-width: 32ch;
}

#clear-stickies {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 20px rgba(255, 79, 161, 0.18);
}

#clear-stickies:hover {
    box-shadow: 0 16px 28px rgba(255, 79, 161, 0.22);
}

.sticky-card__header .card__title {
    margin: 0;
}

.sticky-board {
    position: relative;
    min-height: 240px;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 236, 247, 0.92));
    border: 1px solid rgba(255, 79, 161, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 24px 48px rgba(255, 79, 161, 0.12);
    overflow: hidden;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.sticky-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 210, 232, 0.32) 0px, rgba(255, 210, 232, 0.32) 28px, rgba(255, 242, 249, 0.42) 28px, rgba(255, 242, 249, 0.42) 56px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.sticky-board > * {
    position: relative;
    z-index: 1;
}




.sticky-empty {
    margin: 18px 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.sticky-note {
    position: relative;
    padding: 26px 18px 24px;
    border-radius: 18px 18px 26px 18px;
    background: linear-gradient(160deg, var(--note-bg1, rgba(255, 250, 230, 0.95)), var(--note-bg2, rgba(255, 220, 250, 0.92)));
    box-shadow: 0 18px 35px rgba(68, 38, 63, 0.18);
    transform-origin: top center;
    transition: transform 220ms ease, box-shadow 220ms ease;
    cursor: pointer;
    transform: translateY(var(--note-lift, 0)) rotate(var(--note-tilt, 0deg));
}

.sticky-note:hover {
    --note-lift: -6px;
    box-shadow: 0 24px 42px rgba(68, 38, 63, 0.22);
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at center, var(--pin-color-strong, rgba(255, 79, 161, 0.9)) 0%, var(--pin-color-soft, rgba(255, 79, 161, 0.4)) 60%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(255, 79, 161, 0.4);
}

.sticky-note__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: inherit;
    white-space: pre-wrap;
}

.sticky-note__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(68, 38, 63, 0.6);
    cursor: pointer;
    transition: background 160ms ease;
}

.sticky-note__close:hover {
    background: rgba(255, 79, 161, 0.18);
    color: var(--text-dark);
}

.sticky-note--tilt-left {
    --note-tilt: -2.8deg;
}

.sticky-note--tilt-right {
    --note-tilt: 3.2deg;
}

.sticky-note--enter {
    animation: pinPop 480ms ease forwards;
}

.sticky-note--leaving {
    pointer-events: none;
    animation: noteFall 520ms ease forwards;
}

@keyframes pinPop {
    0% {
        transform: scale(0.7) rotate(-6deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.05) rotate(2deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(var(--note-tilt, 0deg));
        opacity: 1;
    }
}

@keyframes noteFall {
    0% {
        transform: translateY(0) rotate(var(--fall-tilt, var(--note-tilt, 0deg)));
        opacity: 1;
    }
    70% {
        transform: translateY(40px) rotate(calc(var(--fall-tilt, var(--note-tilt, 0deg)) + 10deg));
        opacity: 0.8;
    }
    100% {
        transform: translateY(110px) rotate(calc(var(--fall-tilt, var(--note-tilt, 0deg)) + 20deg));
        opacity: 0;
    }
}

.flashcard-form__field--inline {
    gap: 10px;
}

.flashcard-form__label {
    font-weight: 600;
    font-size: 15px;
}

.flashcard-form__key {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 10px 14px;
    border: 2px solid rgba(255, 157, 208, 0.18);
}

.flashcard-form__key input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 0;
}

.flashcard-form__key input:focus {
    outline: none;
}

.btn--tiny {
    padding: 8px 14px;
    font-size: 13px;
}

.flashcard-form__hint {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.flashcard-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.flashcard-status {
    min-height: 18px;
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.flashcard-status--pending {
    color: var(--text-muted);
}

.flashcard-status--success {
    color: var(--pink-500);
}

.flashcard-status--error {
    color: #d64382;
}

.flashcard-widget {
    margin-top: 24px;
    display: grid;
    gap: 18px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    padding: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 157, 208, 0.2);
}

.flashcard-widget__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.flashcard-widget__counter {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
    white-space: nowrap;
}


.flashcard-widget__stage {
    perspective: 1200px;
    display: flex;
    justify-content: center;
}

.flashcard-widget__card {
    position: relative;
    width: min(420px, 100%);
    height: 260px;
    border-radius: 24px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
    transform-style: preserve-3d;
    transition: transform 480ms ease;
}

.flashcard-widget__card:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 157, 208, 0.4);
}

.flashcard-widget__card[data-flipped='true'] {
    transform: rotateY(180deg);
}

.flashcard-widget__side {
    position: absolute;
    inset: 0;
    padding: 28px;
    display: grid;
    gap: 12px;
    align-content: center;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(255, 245, 249, 0.95), rgba(255, 226, 239, 0.9));
    box-shadow: 0 28px 45px rgba(255, 157, 208, 0.2);
    backface-visibility: hidden;
}

.flashcard-widget__side--back {
    transform: rotateY(180deg);
}

.flashcard-widget__heading {
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pink-500);
    font-size: 13px;
}

.flashcard-widget__text {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    color: var(--text-dark);
    white-space: pre-line;
}

.flashcard-widget__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.flashcard-widget__tag {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(184, 240, 227, 0.45);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
}

.flashcard-widget__hint {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.flashcard-widget__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.quiz-card__header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.quiz-card__tagline {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.quiz-empty {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

.quiz-widget {
    display: grid;
    gap: 18px;
}

.quiz-widget__question {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
}

.quiz-widget__options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(255, 79, 161, 0.16);
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.quiz-option:hover:not(.quiz-option--disabled),
.quiz-option:focus-visible:not(.quiz-option--disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 79, 161, 0.22);
}

.quiz-option:focus-visible {
    outline: 3px solid rgba(255, 79, 161, 0.35);
    outline-offset: 3px;
}

.quiz-option__letter {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(255, 200, 230, 0.7);
}

.quiz-option__text {
    line-height: 1.45;
}

.quiz-option--disabled {
    cursor: default;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(68, 38, 63, 0.08);
    transform: none;
}

.quiz-option--correct {
    background: rgba(184, 240, 227, 0.55);
    box-shadow: inset 0 0 0 2px rgba(184, 240, 227, 0.9);
    cursor: default;
}

.quiz-option--wrong {
    background: rgba(255, 200, 230, 0.45);
    box-shadow: inset 0 0 0 2px rgba(255, 79, 161, 0.45);
    cursor: default;
}

.quiz-option--correct .quiz-option__letter {
    background: rgba(184, 240, 227, 0.9);
}

.quiz-option--wrong .quiz-option__letter {
    background: rgba(255, 157, 208, 0.7);
}

.quiz-widget__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quiz-widget__progress {
    font-family: 'Quicksand', 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
}

.quiz-widget__feedback {
    margin: 0;
    font-size: 15px;
    color: var(--text-dark);
}

.quiz-widget__actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 480px) {
    .flashcard-widget__card {
        height: 220px;
    }

    .flashcard-widget__text {
        font-size: 16px;
    }
}

.task-placeholder .task-icon {
    margin-right: 8px;
}
.task-list--recap li {
    justify-content: flex-start;
    gap: 12px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--text-muted);
}

.scene__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 4vw, 32px);
}

.scene__narrative {
    margin: 0 0 24px;
    line-height: 1.6;
}

.option-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 880px) {
    .option-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.option-card {
    background: linear-gradient(160deg, rgba(255, 245, 251, 0.95), rgba(255, 228, 240, 0.9));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(68, 38, 63, 0.12);
    border: 1px solid transparent;
    display: grid;
    gap: 12px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
    position: relative;
}

.option-card__label {
    font-weight: 700;
}

.option-card__description {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 15px;
}

.option-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(255, 79, 161, 0.2);
}

.option-card:focus-visible {
    outline: 3px solid var(--lavender-300);
}

.option-card.selected {
    border: 2px solid var(--pink-500);
    box-shadow: 0 22px 40px rgba(255, 79, 161, 0.25);
}

.option-card.disabled {
    pointer-events: none;
    opacity: 0.6;
    transform: none;
}

.option-card__badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(135deg, rgba(255, 157, 208, 0.85), rgba(255, 238, 247, 0.85));
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.result {
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 20px 22px 24px;
    border: 1px solid rgba(255, 157, 208, 0.25);
    display: grid;
    gap: 12px;
    animation: fadeUp 360ms ease;
}

.result__title {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pink-500);
}

.result__affirm {
    font-weight: 600;
    color: var(--text-dark);
}

.result__treat {
    color: var(--caramel);
    font-weight: 600;
}

.recap__vibe {
    margin: 24px 0;
    font-size: 20px;
    font-weight: 600;
}

.recap__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer {
    margin-top: 48px;
    font-size: 14px;
    color: rgba(68, 38, 63, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    width: 100%;
}

@media (max-width: 520px) {
    body {
        padding: 24px 16px 72px;
    }

    .status-bar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    body {
        /* Avoid background-attachment issues that create a white strip on mobile browsers */
        background-attachment: scroll, scroll;
    }
}
