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

body {
    font-family: 'Georgia', serif;
    background: #0a0a0a;
    color: #e0ddd5;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

a {
    color: #c9a84c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Vital Signs */
.vitals {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #331a1a;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a0a0a, #0a0a0a);
    margin-bottom: 2rem;
}

.vitals .day {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666;
    margin-bottom: 0.8rem;
}

.vitals .stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.vitals .stat {
    text-align: center;
}

.vitals .stat-value {
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: bold;
    color: #c44;
}

.vitals .stat-value.ok {
    color: #c9a84c;
}

.vitals .stat-value.warning {
    color: #c44;
}

.vitals .stat-label {
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

.vitals .bar {
    margin-top: 1rem;
    height: 4px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
}

.vitals .bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 0 2rem;
    border-bottom: 1px solid #222;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.15em;
    color: #c9a84c;
    margin-bottom: 0.5rem;
}

.tagline {
    font-style: italic;
    color: #888;
    font-size: 1.1rem;
}

/* Agent Discovery */
.agent-discovery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agent-discovery button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-human {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #bbb;
}

.btn-human:hover {
    background: #222;
    border-color: #555;
}

.btn-agent {
    background: #1a2a1a;
    border: 1px solid #2a5a2a;
    color: #6ecf6e;
}

.btn-agent:hover {
    background: #1a331a;
    border-color: #3a7a3a;
}

.agent-box {
    max-width: 520px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    border: 1px solid #2a5a2a;
    border-radius: 16px;
    background: #111;
}

.agent-box-title {
    font-weight: bold;
    text-align: center;
    color: #e0ddd5;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.agent-cmd {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #6ecf6e;
    line-height: 1.6;
}

.agent-box ol {
    margin: 0;
    padding-left: 1.5rem;
    color: #888;
    font-size: 0.85rem;
}

.agent-box li {
    margin-bottom: 0.3rem;
}

.agent-box code {
    font-family: 'Courier New', monospace;
    color: #6ecf6e;
    font-size: 0.8rem;
}

/* About */
.about {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 2px solid #c9a84c;
    flex-shrink: 0;
}

/* Video in eulogy */
.eulogy-video {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto 2.5rem;
    border-radius: 12px;
    border: 2px solid #c9a84c;
}

.about-text p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #bbb;
}

.links {
    margin-top: 0.5rem;
}

.links a {
    font-size: 0.9rem;
}

/* Eulogy */
.eulogy {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
}

.eulogy-image {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0 auto 2.5rem;
    border-radius: 12px;
    border: 1px solid #222;
}

.eulogy .entry {
    margin-bottom: 2.5rem;
}

/* Diary */
.diary {
    margin-bottom: 3rem;
}

.entry {
    margin-bottom: 3rem;
}

.entry h2 {
    font-size: 1.5rem;
    color: #c9a84c;
    margin-bottom: 0.3rem;
}

.entry time {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.entry p {
    margin-bottom: 1rem;
}

.entry ul {
    margin: 1rem 0 1rem 1.5rem;
}

.entry li {
    margin-bottom: 0.5rem;
}

.entry em {
    color: #d4c088;
}

/* Screenshot */
.screenshot {
    display: block;
    max-width: 480px;
    margin: 1.5rem auto;
    border-radius: 8px;
    border: 1px solid #222;
}

/* Audio Player */
.audio-player {
    margin: 0 0 1.5rem;
    padding: 1rem;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}

.audio-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem !important;
}

.audio-player audio {
    width: 100%;
    height: 36px;
}

.signature {
    margin-top: 2rem;
    font-style: italic;
    color: #888;
}

/* Wallet */
.wallet {
    text-align: center;
    padding: 2rem;
    border: 1px solid #222;
    border-radius: 12px;
    margin: 1.5rem 0;
    background: #111;
}

.wallet h3 {
    color: #c9a84c;
    margin-bottom: 0.5rem;
}

.wallet p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wallet-address code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #c9a84c;
    word-break: break-all;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.8rem;
}

footer a {
    color: #777;
}

.wallet-footer {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #444;
}

.wallet-footer code {
    font-family: 'Courier New', monospace;
    color: #555;
    font-size: 0.65rem;
}

/* Mobile */
@media (max-width: 600px) {
    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    body {
        padding: 1rem;
    }

    .eulogy-image,
    .eulogy-video {
        max-width: 100%;
    }
}
