* { box-sizing: border-box; }

body {
    background: #000;
    color: #fff;
    font-family: 'VT323', monospace;
    margin: 0;
    -webkit-font-smoothing: none;
    font-smooth: never;
    image-rendering: pixelated;
}

body.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
}

h1 { font-size: 40px; letter-spacing: 3px; margin: 0 0 16px; }
h2 { font-size: 32px; letter-spacing: 2px; margin: 0 0 24px; }
h3 { font-size: 24px; color: #888; margin: 24px 0 8px; }

.wrap { width: 640px; max-width: 95vw; }

#siteLogo { position: fixed; top: 16px; left: 16px; z-index: 100; }
#siteLogo img { height: 60px; width: auto; display: block; image-rendering: pixelated; }

#siteLogoBig {
    position: fixed;
    top: 16px;
    left: 50%;                
    transform: translateX(-50%); 
    z-index: 100;
}
#siteLogoBig img {
    height: 200px;  
    width: auto;
    display: block;
    image-rendering: pixelated;
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 22px;
    padding: 10px;
    outline: none;
}
input::placeholder, textarea::placeholder { color: #888; }
input:focus, textarea:focus { border-color: #ff0; }  
textarea { resize: vertical; min-height: 80px; font-size: 20px; }

button {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 22px;
    letter-spacing: 1px;
    padding: 10px 18px;
    cursor: pointer;
    transition: none;
}
button:hover { color: #ff0; border-color: #ff0; }

.msg {
    padding: 10px;
    border: 2px solid #fff;
    border-radius: 0;
    margin-bottom: 16px;
    font-size: 22px;
    display: none;
}
.error   { border-color: #ff2a2a; color: #ff5a5a; }
.success { border-color: #ff0;    color: #ff0; }

.hint  { color: #888; font-size: 20px; margin-top: 10px; }
.hint a { color: #ff0; }
.empty { color: #888; text-align: center; padding: 20px; }

a.link {
    color: #888;
    font-size: 20px;
    text-decoration: none;
    display: inline-block;  
    margin-top: 24px;      
}
a.link:hover { color: #ff0; }
a.link::before { content: "* "; }

.login-box, .box {
    background: #000;
    border: 4px solid #fff;
    padding: 32px;
    width: 360px;
    text-align: center;
}
.login-box input, .box input { margin: 8px 0; }
.login-box button, .box button { width: 100%; font-size: 24px; padding: 12px 20px; margin-top: 16px; }

#registerForm button:hover { color: #ffa040; border-color: #ffa040; }

.toggle-link { color: #888; font-size: 20px; margin-top: 20px; cursor: pointer; }
.toggle-link:hover { color: #ff0; }
.toggle-link::before { content: "* "; }

.topbar { display: flex; justify-content: space-between; align-items: center;
          margin-bottom: 16px; font-size: 20px; width: 640px; max-width: 95vw; }
.topbar a, .topbar span { color: #888; text-decoration: none; }
.topbar a:hover { color: #ff0; }

.new { border: 4px solid #fff; padding: 16px; margin-bottom: 24px; }
.new input, .new textarea { margin: 6px 0; font-size: 20px; }

.post { border: 2px solid #555; padding: 14px; margin-bottom: 12px; cursor: pointer; }
.post:hover { border-color: #ff0; }
.post .title { font-size: 26px; }
.post .meta  { color: #888; font-size: 18px; margin-top: 6px; }

.post-head { display: flex; justify-content: space-between; align-items: flex-start; }
.delx { color: #ff5a5a; border: 2px solid #ff5a5a; background: #000;
        font-family: 'VT323', monospace; font-size: 18px; line-height: 1;
        padding: 2px 8px; cursor: pointer; flex-shrink: 0; margin-left: 10px; }
.delx:hover { background: #ff2a2a; color: #000; border-color: #ff2a2a; }

.back { color: #888; text-decoration: none; font-size: 20px; }
.back:hover { color: #ff0; }

.post-detail { border: 4px solid #fff; padding: 20px; margin: 14px 0; }
.post-detail .title { font-size: 32px; }
.post-detail .meta  { color: #888; font-size: 18px; margin: 8px 0 14px; }
.post-detail .body  { font-size: 22px; white-space: pre-wrap; line-height: 1.4; }

.likebtn { margin-top: 16px; }
.likebtn.liked { background: #ff0; color: #000; border-color: #ff0; }

.delbtn { color: #ff5a5a; border-color: #ff5a5a; margin-top: 16px; }
.delbtn:hover { background: #ff2a2a; color: #000; border-color: #ff2a2a; }

.comment { border: 2px solid #555; padding: 12px; margin-bottom: 10px; }
.comment .who { color: #ff0; font-size: 18px; }
.comment .txt { font-size: 21px; white-space: pre-wrap; margin-top: 4px; }

.cbox textarea { min-height: 60px; }

.tabs { display: flex; gap: 12px; margin-bottom: 20px; }
.tab { background: #000; color: #fff; border: 2px solid #fff;
       font-family: 'VT323', monospace; font-size: 22px; padding: 8px 18px; cursor: pointer; }
.tab:hover { color: #ff0; border-color: #ff0; }
.tab.active { color: #000; background: #ff0; border-color: #ff0; }

.board { border: 4px solid #fff; width: 560px; max-width: 95vw; padding: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 24px; }
th, td { text-align: left; padding: 8px 6px; }
th { color: #888; border-bottom: 2px solid #555; font-weight: normal; }
tr td:first-child { width: 60px; }
tr td:last-child  { text-align: right; }
.rank1 { color: #ff0; }