/* ===================================================================
   WADMAKER — stylesheet
   Palette:
     --navy    #1a2f6e   window chrome / headers
     --sky     #3b6bd4   links / bright blue accent
     --wood    #5c4126   dark brown / borders
     --tan     #d8c6a0   parchment background
     --cash    #2f7a3d   money green (primary CTA)
     --cashlt  #4fae5c   money green hover
     --ink     #241a10   body text
   =================================================================== */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: #093028;
    background-image:
        repeating-linear-gradient(45deg, #0c3a30 0, #0c3a30 2px, #093028 2px, #093028 40px);
    color: #241a10;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 16px;
    line-height: 1.5;
}

a { color: #1a2f6e; }
a:visited { color: #5c4126; }

/* -------------------- the whole page as a fake OS window -------------------- */

.crt-frame {
    max-width: 760px;
    margin: 28px auto;
    padding: 0 12px 40px;
}

.win {
    background: #d8c6a0;
    border: 3px solid #241a10;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.45);
}

.win-titlebar {
    background: linear-gradient(90deg, #1a2f6e, #3b6bd4 60%, #1a2f6e);
    color: #ffe9a8;
    font-family: "Arial Black", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #241a10;
    text-shadow: 1px 1px 0 #000;
}

.win-titlebar .win-dots span {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    background: #d8c6a0;
    border: 2px outset #f3e8cd;
    color: #241a10;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    line-height: 12px;
    font-size: 11px;
}

.win-body { padding: 14px 16px; }

/* -------------------- ticker -------------------- */

.ticker-bar {
    background: #241a10;
    color: #4fae5c;
    font-family: "Courier New", monospace;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid #241a10;
    padding: 6px 0;
}

.ticker-bar span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 22s linear infinite;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-bar span { animation: none; padding-left: 0; }
}

/* -------------------- panels (beveled, Win95-ish) -------------------- */

.panel {
    background: #f3e8cd;
    border: 2px outset #fff7e2;
    padding: 14px 16px;
    margin: 16px 0;
}

.panel-sunken {
    background: #ece0c2;
    border: 2px inset #fff7e2;
    padding: 14px 16px;
    margin: 16px 0;
}

.panel-title {
    font-family: "Arial Black", Arial, sans-serif;
    color: #1a2f6e;
    margin: 0 0 8px;
    font-size: 1.15rem;
}

/* -------------------- hero -------------------- */

.hero { text-align: center; padding: 18px 6px 6px; }

.hero-mascot {
    display: block;
    height: 170px;
    width: auto;
    margin: 4px auto 8px;
    filter: drop-shadow(3px 4px 0 rgba(0,0,0,0.35));
}

.version-badge {
    font-size: 0.85rem;
    padding: 10px 14px;
    text-align: center;
}

.hero-logo {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin: 0;
    color: #2f7a3d;
    -webkit-text-stroke: 2px #241a10;
    text-stroke: 2px #241a10;
    text-shadow: 3px 3px 0 #5c4126;
    letter-spacing: 1px;
}

.hero-tagline {
    font-style: italic;
    color: #5c4126;
    margin: 6px 0 18px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 6px;
}

/* -------------------- buttons -------------------- */

.btn-95 {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.95rem;
    color: #fff7e2;
    background: #1a2f6e;
    border: 3px outset #3b6bd4;
    padding: 10px 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}
.btn-95:visited { color: #fff7e2; }
.btn-95:active { border-style: inset; }

.btn-play {
    background: #2f7a3d;
    border-color: #4fae5c;
    font-size: 1.05rem;
    padding: 12px 22px;
}
.btn-play:hover { background: #4fae5c; }

.btn-discord {
    background: #4552b8;
    border-color: #7c86e0;
}
.btn-discord:hover { background: #5a67d8; }

.btn-kofi {
    background: #5c4126;
    border-color: #8b5e34;
}
.btn-kofi:hover { background: #8b5e34; }

.btn-small {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-width: 2px;
}

.copy-toast {
    display: inline-block;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    color: #2f7a3d;
    font-weight: bold;
    margin-top: 6px;
    min-height: 1.2em;
}

/* -------------------- posts -------------------- */

.post {
    background: #fff7e2;
    border: 2px solid #5c4126;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.post-title {
    font-family: "Arial Black", Arial, sans-serif;
    color: #1a2f6e;
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.post-date {
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    color: #5c4126;
    margin-bottom: 8px;
}

.post-body { white-space: pre-wrap; }

.new-flag {
    background: #2f7a3d;
    color: #fff7e2;
    font-family: "Courier New", monospace;
    font-size: 0.72rem;
    padding: 1px 5px;
    margin-left: 6px;
    border: 1px solid #241a10;
}

.empty-note {
    font-style: italic;
    color: #5c4126;
}

/* -------------------- thank you wall -------------------- */

.thanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.thanks-card {
    background: #fff7e2;
    border: 2px solid #5c4126;
    padding: 10px 12px;
}

.thanks-name {
    font-family: "Arial Black", Arial, sans-serif;
    color: #2f7a3d;
    font-size: 0.92rem;
    margin: 0 0 4px;
}

.thanks-message {
    font-style: italic;
    font-size: 0.85rem;
    color: #241a10;
    margin: 0;
}

/* -------------------- footer strip -------------------- */

.foot-strip {
    background: #241a10;
    color: #d8c6a0;
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 3px solid #1a2f6e;
}
.foot-strip a { color: #ffe9a8; }

/* -------------------- forms -------------------- */

label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #1a2f6e;
    margin: 10px 0 4px;
}

input[type=text], input[type=password], input[type=url], textarea {
    width: 100%;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    padding: 6px 8px;
    border: 2px inset #5c4126;
    background: #fff7e2;
}

textarea { resize: vertical; min-height: 90px; }

form { margin: 0; }

.error-box {
    background: #6e1a1a;
    color: #ffe0e0;
    border: 2px solid #241a10;
    padding: 8px 10px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.success-box {
    background: #2f7a3d;
    color: #eafff0;
    border: 2px solid #241a10;
    padding: 8px 10px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

/* -------------------- admin layout -------------------- */

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}

.post-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1px dashed #5c4126;
    padding: 6px 0;
    flex-wrap: wrap;
}

.post-row .actions a, .post-row .actions button {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
}

.actions form { display: inline; }

hr.rule {
    border: none;
    border-top: 2px groove #5c4126;
    margin: 16px 0;
}

.hint {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #5c4126;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .hero-logo { font-size: 2.2rem; }
    .hero-mascot { height: 90px; }
    .win-body { padding: 10px; }
}
