:root {
    --bg: #0a0a1a;
    --surface: #1e1e3f;
    --surface2: #161630;
    --text: #b8c0cc;
    --accent: #f7d51d;
    --primary: #00b4d8;
    --green: #06d6a0;
    --main-color: #00b4d8;
}

* {
    box-sizing: border-box;
}

html {
    --main-color: #00b4d8;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    line-height: 2;
    margin: 0;
    padding: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.07) 2px,
        rgba(0, 0, 0, 0.07) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Header */
header {
    text-align: center;
    padding: 24px 0 20px;
    margin-bottom: 24px;
    border-bottom: 4px solid var(--primary);
}

.site-title {
    font-size: 18px;
    color: var(--accent);
    text-shadow: 3px 3px 0 #7a6a00;
    margin: 0 0 14px;
    letter-spacing: 2px;
}

.site-subtitle {
    font-size: 10px;
    color: var(--green);
    margin: 0;
}

.blink {
    animation: blink 0.9s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Nav */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.nav-menu .nes-btn {
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    padding: 8px 12px;
}

/* NES.css dark overrides */
.nes-container {
    background-color: var(--surface) !important;
    color: var(--text) !important;
}

.nes-container.with-title > .title {
    background-color: var(--bg) !important;
    color: var(--accent) !important;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
}

.nes-btn {
    font-family: 'Press Start 2P', monospace !important;
}

.nes-btn:not(.is-primary):not(.is-success):not(.is-warning):not(.is-error):not(.is-disabled) {
    background-color: var(--surface2) !important;
    color: var(--text) !important;
}

/* Segments */
.segment {
    display: none;
    margin-bottom: 20px;
}

.segment.about {
    display: block;
}

/* About panel */
.profile-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.player-avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    filter: contrast(1.1) saturate(0.8);
    border: 4px solid var(--primary);
    image-rendering: pixelated;
}

.profile-bio {
    font-size: 10px;
    line-height: 2.2;
    flex: 1;
    min-width: 180px;
}

.profile-bio .hi {
    color: var(--accent);
    margin-bottom: 8px;
}

/* Where panel */
.where-content {
    font-size: 11px;
    line-height: 2.2;
}

.where-content a {
    color: var(--primary);
    text-decoration: none;
}

.where-content a:hover {
    color: var(--accent);
}

/* Skills panel */
.skill-block {
    margin-bottom: 20px;
}

.skill-block:last-child {
    margin-bottom: 0;
}

.skill-title {
    color: var(--accent);
    font-size: 10px;
    margin: 0 0 10px;
    font-family: 'Press Start 2P', monospace;
}

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

.tag {
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    color: var(--green);
    border: 2px solid var(--green);
    padding: 4px 8px;
    background: transparent;
}

.tag-deprecated {
    color: #555;
    border-color: #444;
    text-decoration: line-through;
}

/* Contact panel */
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 11px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 2px solid var(--surface);
    font-size: 8px;
    color: #444;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); }
