:root { color-scheme: dark; }

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100svh;
    margin: 0;
    display: grid;
    place-items: center;
    background: #111;
    color: #f2f2f2;
    font-family: Arial, Helvetica, sans-serif;
}

main {
    width: min(calc(100% - 2rem), 540px);
    padding: 2rem 0;
}

.profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    position: relative;
    flex: none;
    width: 68px;
    height: 68px;
}

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#presence-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    border: 3px solid #111;
    border-radius: 50%;
    background: #747f8d;
}

h1 {
    margin: 0;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.06em;
}

.activity {
    margin-top: 2rem;
    padding-top: 1.15rem;
    border-top: 1px solid #2a2a2a;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    color: #939393;
    font-size: 0.8rem;
}

#status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #747f8d;
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.activity-row + .activity-row {
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.art {
    position: relative;
    display: grid;
    flex: none;
    width: 76px;
    height: 76px;
    overflow: hidden;
    place-items: center;
    border-radius: 9px;
    background: #202020;
    color: #b8b8b8;
}

.art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art svg { width: 25px; height: 25px; }
.art.has-image .art-icon { display: none; }

.activity-copy {
    min-width: 0;
    flex: 1;
}

.activity-kind {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.25rem;
    color: #929292;
    font-size: 0.74rem;
}

.activity-kind svg { width: 13px; height: 13px; }

.activity-title,
.activity-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.activity-subtitle {
    margin: 0.2rem 0 0;
    color: #a0a0a0;
    font-size: 0.84rem;
}

.progress { margin-top: 0.75rem; }

.track {
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: #333;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ddd;
    transition: width 900ms linear;
}

.time {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.35rem;
    color: #777;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
    .activity-row { align-items: flex-start; }
    .art { width: 64px; height: 64px; }
    .progress { margin-top: 0.6rem; }
}
