@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

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

body {
    background: #fff;
    color: #0a0a0a;
    font-family: 'Special Elite', cursive;
    min-height: 100vh;
}

.checker {
    height: 16px;
    width: 100%;
    background-image:
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(-45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0a0a0a 75%),
        linear-gradient(-45deg, transparent 75%, #0a0a0a 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

/* HEADER */
.header {
    text-align: center;
    padding: 50px 20px 30px;
}

.logo {
    max-width: 500px;
    width: 90%;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* LAYOUT */
.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* SECTION */
.section {
    margin-top: 35px;
}

.section-label {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #0a0a0a;
}

/* POLL */
.poll-question {
    font-size: 1.15rem;
    margin: 12px 0;
}

.poll-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #0a0a0a;
    padding: 8px 14px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.1s;
    font-size: 0.95rem;
}

.poll-option:hover { background: #0a0a0a; color: #fff; }

.poll-option .count {
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.poll-option:nth-child(1) .count { color: #e02020; }
.poll-option:nth-child(2) .count { color: #1a5ce6; }
.poll-option:nth-child(3) .count { color: #d4a800; }
.poll-option:nth-child(4) .count { color: #e02020; }

.poll-option:hover .count { color: #ffd700; }

/* SHOUTBOX */
.shoutbox {
    background: #0a0a0a;
    height: 220px;
    overflow-y: auto;
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.shout { margin-bottom: 5px; }

.shout:hover .shout-action { opacity: 1; }

.shout-action {
    opacity: 0;
    cursor: pointer;
    margin-left: 6px;
    font-size: 0.85rem;
    transition: opacity 0.1s;
}

.shout-delete { color: #e02020; }
.shout-delete:hover { color: #ff4444; }

.shout-flag { color: #d4a800; }
.shout-flag:hover { color: #ffd700; }

.shout-name { font-weight: bold; }

.shout-msg { color: #ddd; }

.shout-input {
    display: flex;
}

.shout-input input {
    flex: 1;
    border: 2px solid #0a0a0a;
    border-top: none;
    padding: 8px 12px;
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    outline: none;
}

.shout-input input:first-child {
    max-width: 120px;
    border-right: none;
    background: #f0f0f0;
}

.shout-input button {
    background: #e02020;
    color: #fff;
    border: 2px solid #0a0a0a;
    border-top: none;
    border-left: none;
    padding: 8px 18px;
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    cursor: pointer;
}

.shout-input button:hover {
    background: #0a0a0a;
}

/* LINKS */
.links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 35px;
    justify-content: center;
}

.links a {
    color: #0a0a0a;
    text-decoration: none;
    border: 2px solid #0a0a0a;
    padding: 6px 16px;
    font-size: 0.95rem;
    transition: all 0.1s;
}

.links a:hover {
    background: #0a0a0a;
    color: #fff;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.75rem;
    color: #999;
}

/* AUTH BAR */
.auth-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
    font-size: 0.8rem;
}

.auth-bar a, .auth-bar button {
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    color: #0a0a0a;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.auth-bar .username {
    text-decoration: none;
    font-weight: bold;
}

/* AUTH MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border: 3px solid #0a0a0a;
    padding: 30px;
    max-width: 360px;
    width: 90%;
}

.modal h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal input, .modal select {
    width: 100%;
    border: 2px solid #0a0a0a;
    padding: 8px 12px;
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    margin-bottom: 10px;
    outline: none;
}

.modal button {
    background: #0a0a0a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'Special Elite', cursive;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}

.modal button:hover {
    background: #e02020;
}

.modal .error {
    color: #e02020;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.modal .switch-link {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
}

.modal .switch-link a {
    color: #0a0a0a;
    cursor: pointer;
}

.modal .note {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 10px;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 50px;
}

.toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-65%);
    font-family: 'Special Elite', cursive;
    font-size: 0.7rem;
    color: #999;
    cursor: pointer;
    user-select: none;
}

.toggle-pw:hover {
    color: #0a0a0a;
}
