@font-face {
    font-family: 'C64 Pro';
    src: url('/static/fonts/C64_Pro_Mono-STYLE.woff2') format('woff2'),
         url('/static/fonts/C64_Pro_Mono-STYLE.woff') format('woff'),
         url('/static/fonts/C64_Pro_Mono-STYLE.ttf') format('truetype');
}

@font-face {
    font-family: 'Press Start 2P';
    src: url('/static/fonts/PressStart2P-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Terminus 12p';
    src: url('/static/fonts/consoleet_ter12nr.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Terminus 14p';
    src: url('/static/fonts/consoleet_ter14br.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Terminus 16p';
    src: url('/static/fonts/consoleet_ter16br.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Terminus 18p';
    src: url('/static/fonts/consoleet_ter18br.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'Terminus 24p';
    src: url('/static/fonts/consoleet_ter24br.otf') format('opentype');
    font-weight: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    font-smooth: never;
    image-rendering: pixelated;
}

body {
    font-family: 'Terminus 14p', monospace;
    font-size: 28px;
    line-height: 1;
    background-color: #1a1a2e;
    color: #eaeaea;
    padding: 20px;
}

h1 {
    font-family: 'C64 Pro', monospace;
    font-size: 48px;
    line-height: 1;
    font-weight: unset;
    color: #ffffff;
    background-color: #e94560;
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 16px;
    text-shadow: 3px 3px 0 #0f3460;
}

h2 {
    font-size: 28px;
    line-height: 1;
    font-weight: unset;
    color: #ffde00;
    background-color: #0f3460;
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
}

h3 {
    font-size: 28px;
    line-height: 1;
    font-weight: unset;
    color: #00fff5;
    background-color: #533483;
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 14px;
}

a {
    color: #00fff5;
    text-decoration: none;
}

a:hover {
    color: #ffde00;
    text-decoration: underline;
}

nav {
    margin-bottom: 14px;
}

hr {
    border: none;
    border-top: 2px solid #3a3a5c;
    margin: 14px 0;
}

strong {
    color: #ffde00;
    font-weight: unset;
}

input[type="text"],
input[type="password"],
textarea {
    font-family: 'Terminus 14p', monospace;
    font-size: 28px;
    background-color: #16213e;
    color: #00ff41;
    border: 2px solid #6c5eb5;
    text-shadow: 2px 2px 0 #3a3a5c;
    padding: 5px;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #00fff5;
}

button {
    font-family: 'Terminus 14p', monospace;
    font-size: 28px;
    background-color: #16213e;
    color: #00fff5;
    border: 2px solid #3a3a5c;
    padding: 8px 14px;
    cursor: pointer;
}

button:hover {
    border-color: #ffde00;
    color: #ffde00;
}

.error-text {
    color: #ff6b6b;
}

.success-text {
    color: #00ff41;
}

.post-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.quote {
    display: block;
    border-left: 4px solid #6c5eb5;
    padding-left: 12px;
    margin: 8px 0;
    color: #aaaaaa;
    font-style: italic;
}

.quote-btn {
    margin-top: 8px;
}

.quote-btn:disabled {
    color: #666666;
    border-color: #333333;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    body { font-family: 'Terminus 18p', monospace; font-size: 18px; }
    h1 { font-size: 32px; }
    h2 { font-family: 'Terminus 12p', monospace; font-size: 24px; }
    h3 { font-family: 'Terminus 12p', monospace; font-size: 24px; }
}