:root {
    --bg: #1a1a18;
    --bg-soft: #1d1d1b;
    --panel: #22221f;
    --panel-2: #262623;
    --line: #363630;
    --line-soft: #2f2f2a;
    --text: #e8e8e8;
    --muted: #b5b5aa;
    --accent: #e3e16d;
    --accent-soft: rgba(227, 225, 109, 0.13);
    --accent-border: #6b6a45;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(227, 225, 109, 0.3);
    color: var(--text);
}

html,
body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "JetBrains Mono", "Roboto Mono", monospace;
    font-synthesis: none;
}

.shell {
    min-height: 100vh;
    padding-bottom: 70px;
    background: linear-gradient( 90deg, rgba(227, 225, 109, 0.05) 0%, rgba(227, 225, 109, 0) 22%), var(--bg);
    border-top: 1px solid #23262c;
}

.profile-card {
    border-bottom: 1px solid #3e3e37;
    background: var(--panel-2);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.avatar {
    width: 88px;
    height: 88px;
    border: 2px solid var(--accent-border);
    background: #2b2b24;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

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

.avatar::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #3ba55c;
    border: 2px solid var(--bg);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.profile-name span {
    color: var(--accent);
}

.profile-handle {
    font-size: 0.8rem;
    color: var(--muted);
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 3px 10px;
    width: fit-content;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.profile-meta {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
    line-height: 2;
}

.profile-meta span {
    color: var(--accent);
}

.content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.headline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.headline h2 {
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.gh-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 3px 10px;
    background: var(--panel);
    letter-spacing: 0.04em;
    transition: border-color 0.15s;
}

.gh-link:hover {
    border-color: var(--accent-border);
}

.card {
    border: 1px solid #3e3e37;
    background: var(--panel-2);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 8px;
}

.rust-block {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    padding: 14px 16px;
    font-size: 0.82rem;
    line-height: 1.75;
    overflow-x: auto;
    white-space: pre;
}

.rust-kw {
    color: #c792ea;
}

.rust-ty {
    color: #82aaff;
}

.rust-str {
    color: #c3e88d;
}

.rust-fn {
    color: var(--accent);
}

.rust-mac {
    color: #89ddff;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    letter-spacing: 0.04em;
    transition: border-color 0.15s, background 0.15s;
    cursor: default;
}

.stack-badge:hover {
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.stack-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    padding: 8px 12px;
    border: 1px solid var(--line-soft);
    background: var(--panel);
}

.focus-item-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    flex-shrink: 0;
}

.focus-item-label {
    color: var(--muted);
    font-size: 0.73rem;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.connect-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.connect-btn {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.15s;
}

.connect-btn:hover {
    opacity: 0.75;
}

.connect-btn img {
    height: 46px;
    display: block;
}

.footer-note {
    margin-top: 4px;
    border-top: 1px solid var(--line-soft);
    padding-top: 12px;
    color: #8f98a7;
    font-size: 0.76rem;
}

.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #16181c;
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    height: 70px;
}

.player-cover {
    width: 46px;
    height: 46px;
    border: 1px solid var(--accent-border);
    flex-shrink: 0;
    overflow: hidden;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.player-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.player-artist {
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

.player-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    font-size: 1rem;
    font-family: inherit;
}

.player-btn:hover {
    background: rgba(227, 225, 109, 0.25);
    border-color: var(--accent);
}

.player-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.player-bar-wrap {
    height: 3px;
    background: var(--line);
    cursor: pointer;
}

.player-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--muted);
}

@media (max-width: 760px) {
    .profile-card {
        padding: 18px 16px;
    }
    .content {
        padding: 16px 12px;
    }
    .player {
        padding: 10px 14px;
        gap: 10px;
    }
}