:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    color: #faf7fa;
    background: #09090c;
    font-synthesis: none;
    --pink: #ff3b9a;
    --character-size: 80px;
    --bar-height: 22px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-width: 280px;
    min-height: 100svh;
    background: radial-gradient(ellipse at 50% 0%, #25122180, transparent 65%);
    text-shadow: 0 2px 8px rgb(0 0 0 / 50%);
}
button, input { font: inherit; }
button { touch-action: manipulation; }
button:focus-visible, input:focus-visible {
    outline: 2px solid #ff8bc4;
    outline-offset: 4px;
}
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mote {
    position: absolute;
    width: var(--size);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mote-color), transparent 70%);
    filter: blur(22px);
    opacity: 0;
    animation: drift var(--duration) ease-out both;
    will-change: transform, opacity;
}
@keyframes drift {
    0% { opacity: 0; transform: translate(-50%, -40%) scale(.65); }
    24% { opacity: var(--opacity); }
    100% { opacity: 0; transform: translate(-45%, -65%) scale(1.2); }
}
main { position: relative; z-index: 1; width: min(100% - 40px, 1000px); margin: auto; }
.login-screen { min-height: 100svh; display: grid; place-items: center; padding: 56px 0; }
.login-content { width: min(100%, 480px); text-align: center; }
.login-form { display: flex; align-items: center; gap: 12px; }
.password-field { position: relative; flex: 1; min-width: 0; }
.password-field input {
    width: 100%; min-height: 64px; padding: 18px 56px 18px 20px;
    border: 1px solid #ffffff23; border-radius: 19px;
    background: #1b181fe8; color: #fff; font-size: 16px;
    box-shadow: 0 8px 32px #0003, inset 0 1px 0 #ffffff05;
    transition: border-color .2s, box-shadow .2s;
}
.password-field input:focus { border-color: #ff63ac8c; box-shadow: 0 0 0 4px #ff3b9a0c; outline: none; }
.password-field input::placeholder { color: #9c909e; }
.password-field input::-ms-reveal { display: none; }
.password-toggle, .submit-button {
    display: grid; place-items: center; width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 12px; cursor: pointer;
}
.password-toggle { position: absolute; top: 50%; transform: translateY(-50%); right: 8px; color: #c1b4c1; background: transparent; }
.password-toggle svg, .submit-button svg { width: 21px; height: 21px; pointer-events: none; }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.submit-button { flex-shrink: 0; width: 54px; height: 54px; border-radius: 17px; background: var(--pink); color: #1a0711; box-shadow: 0 3px 16px #ff3b9a22; transition: background .2s; }
.submit-button:disabled { opacity: .5; cursor: wait; }
.password-toggle:active { background: #ffffff12; }
.submit-button:active { background: #ec2587; }
.error-toast {
    position: fixed; top: max(20px, env(safe-area-inset-top)); left: 50%; z-index: 10;
    width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 16px 22px;
    border: 1px solid #ff7eb940; border-radius: 16px; background: #261720f5;
    color: #ffc4df; font-size: 1rem; line-height: 1.6; text-align: center;
    box-shadow: 0 12px 40px #0005; pointer-events: none;
    visibility: hidden; opacity: 0; transform: translate(-50%, calc(-100% - 32px));
    transition: transform .35s ease-out, opacity .35s ease-out, visibility .35s;
}
.error-toast.is-visible { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.dashboard { max-width: 800px; margin: auto; padding: 64px 0 48px; text-align: center; }
.dashboard-header { margin-bottom: 56px; }
.live-time { color: #b2a4b2; font-size: 1rem; font-variant-numeric: tabular-nums; line-height: 1.7; }
.live-time::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #ff69af; box-shadow: 0 0 10px #ff69af66; }
.timeline-card {
    padding: 16px 12px 56px; margin-bottom: 32px;
}
h2 { margin: 0 0 24px; color: #eadce5; font-size: 2rem; font-weight: 700; letter-spacing: -.025em; }
.dates { display: flex; justify-content: center; gap: 32px; color: #b7a9b7; line-height: 1.8; font-size: 1rem; margin: 0 0 18px; }
.dates > span { flex: 1; max-width: 310px; }
.date-label { display: block; color: #e2c7d6; font-size: .9375rem; font-weight: 700; margin-bottom: 4px; }
.duration { color: #9c8f9d; font-size: 1rem; line-height: 1.8; }
.percentage { margin: 28px 0 6px; color: #ff9bca; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.progress-track {
    isolation: isolate;
    position: relative; height: var(--bar-height); margin: 0 12px 28px;
    background: rgb(115 108 121 / 50%); border-radius: 999px;
    box-shadow: inset 0 2px 4px #0009, inset 0 0 0 1px #0003;
}
.progress-fill {
    z-index: 0;
    position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(90deg, #3c1029, #b92870 55%, #ff52ab);
    clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0 round 999px);
    box-shadow: inset 0 1px 1px #ffffff66, inset 1px 0 1px #ffffff30;
}
#work-bar {
    margin-top: 28px;
}
.progress-dot {
    z-index: 2;
    position: absolute; top: 50%; left: var(--progress, 0%);
    transform: translate(-50%, -50%); width: 24px; height: 24px;
    border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 4px #ff8fca15, 0 2px 8px #0006, 0 0 16px #ff8fca38;
}
.character-progress {
    display: flex;
    align-items: center;
    width: calc(100% - 32px);
    gap: 6px;
    min-height: var(--character-size);
    margin: 0 auto 6px;
}
.character-progress .progress-track {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.progress-character {
    width: var(--character-size);
    height: var(--character-size);
    flex-shrink: 0;
    background: var(--portrait) center / var(--character-size) var(--character-size) no-repeat;
    filter: drop-shadow(0 3px 3px rgb(0 0 0 / 50%));
    pointer-events: none;
    animation: character-blink 3s steps(1, end) infinite;
    transform: rotate(var(--wiggle-angle, 0deg));
    transform-origin: center;
    transition: transform var(--wiggle-duration, 1400ms) ease-in-out;
}
.progress-character--mar {
    --portrait: url("./assets/mar_wide_open.png");
    --portrait-blink-1: url("./assets/mar_blink_1.png");
    --portrait-blink-2: url("./assets/mar_blink_2.png");
    animation-name: character-double-blink;
}
.progress-character--mundo {
    z-index: 2;
    --portrait: url("./assets/mundo_wide_open.png");
    --portrait-blink-1: url("./assets/mundo_blink_1.png");
    --portrait-blink-2: url("./assets/mundo_blink_2.png");
    position: absolute;
    top: 50%;
    left: var(--progress, 0%);
    transform: translate(-50%, -50%) rotate(var(--wiggle-angle, 0deg));
}
@keyframes character-blink {
    0%, 80% { background-image: var(--portrait); }
    81% { background-image: var(--portrait-blink-1); }
    83% { background-image: var(--portrait-blink-2); }
    86% { background-image: var(--portrait-blink-1); }
    88%, 100% { background-image: var(--portrait); }
}
@keyframes character-double-blink {
    0%, 80% { background-image: var(--portrait); }
    81% { background-image: var(--portrait-blink-1); }
    83% { background-image: var(--portrait-blink-2); }
    86% { background-image: var(--portrait-blink-1); }
    89% { background-image: var(--portrait-blink-2); }
    92% { background-image: var(--portrait-blink-1); }
    95%, 100% { background-image: var(--portrait); }
}
.progress-energy {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: screen;
}
.progress-spark {
    position: absolute;
    top: 50%;
    height: 400%;
    border-radius: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
    opacity: 0;
}
.remaining { margin: 0; font-variant-numeric: tabular-nums; }
.remaining-caption { display: block; margin-bottom: 18px; color: #ae9ba9; font-size: .9375rem; }
.countdown { display: flex; justify-content: center; gap: clamp(12px, 4vw, 38px); }
.count-unit { display: flex; flex-direction: column; align-items: center; min-width: 2ch; }
.count-viewport { display: block; overflow: hidden; height: 1.15em; font-size: clamp(32px, 6vw, 56px); line-height: 1.15; }
.count-value { display: block; color: #e9d4e0; font-weight: 350; letter-spacing: -.04em; }
.count-label { margin-top: 8px; color: #aa96a5; font-size: .875rem; }
@media (hover: hover) {
    .password-toggle:hover { color: #fff; background: #ffffff0a; }
    .submit-button:hover { background: #ff72b7; }
}
@media (max-width: 540px) {
    main { width: calc(100% - 32px); }
    .timeline-card { padding: 12px 4px 40px; }
    .dashboard { padding-top: 36px; }
    .dashboard-header { margin-bottom: 40px; }
    .dates { flex-direction: column; align-items: center; gap: 14px; }
    .login-form { gap: 8px; }
    .password-field input { padding-left: 14px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ambient { display: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
/*hola test*/