:root {
    --bg: #f6ead7;
    --ink: #3b2414;
    --accent: #c4561b;
    --card: #fffaf1;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--bg);
    color: var(--ink);
}

/* Password gate */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 16px;
    background: radial-gradient(circle at top, #e9a25b, #6b2f1f); }
.gate-card { background: var(--card); padding: 2.5rem 2rem; border-radius: 14px;
    max-width: 380px; width: 100%; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.gate-emoji { font-size: 4rem; }
.gate h1 { margin: .5rem 0; }
.gate input { width: 100%; padding: .7rem; margin: .8rem 0; font-size: 1rem;
    border: 2px solid #d8b98f; border-radius: 8px; }
.error { color: #a1131a; font-weight: bold; }

button { background: var(--accent); color: #fff; border: 0; padding: .7rem 1.4rem;
    font-size: 1rem; border-radius: 8px; cursor: pointer; font-family: inherit; }
button:hover { filter: brightness(1.1); }

/* Main site */
.banner { text-align: center; padding: 2rem 1rem 1.5rem; position: relative;
    background: linear-gradient(135deg, #8b3a1a, #c76b1c, #b58a1c); color: #fff8ec; }
.banner h1 { margin: 0; font-size: 2.6rem; }
.banner p { margin: .4rem 0 0; font-style: italic; }
.logout { position: absolute; top: 1rem; right: 1rem; color: #fff8ec; font-size: .9rem; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 16px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }

.meme { margin: 0; aspect-ratio: 1; border-radius: 10px; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: 1rem; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.25);
    font-family: Impact, "Arial Black", sans-serif; text-transform: uppercase;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    transition: transform .15s; }
.meme:hover { transform: rotate(-1.5deg) scale(1.03); }
.meme-top, .meme-bottom { font-size: 1.25rem; line-height: 1.15; }
.meme-emoji { font-size: 5rem; text-shadow: none; }

.submit { margin-top: 3rem; background: var(--card); padding: 2rem; border-radius: 14px;
    border: 3px dashed #d8b98f; }
.submit h2 { margin-top: 0; }
.submit form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.small { font-size: .85rem; opacity: .75; }
.flash { padding: .8rem 1rem; border-radius: 8px; margin: 1rem 0; }
.flash.ok { background: #e3f1d6; border: 1px solid #7ba65a; }
.flash.err { background: #f8d9d6; border: 1px solid #c0554b; }

footer { text-align: center; padding: 2rem; opacity: .7; }
