/* Podanie o odbanowanie - grupa Anonimowi (VRChat)
   Stylistyka: film "Maska" (1994) - jadowita zieleń, złoto, art deco, papier z maszyny do pisania. */

:root {
    --zielen-glboka: #061a09;
    --zielen-ciemna: #0d3d17;
    --zielen: #1f7a2c;
    --zielen-jasna: #56d84a;
    --zielen-neon: #8dff5c;
    --zloto: #f2c14b;
    --zloto-jasne: #ffe08a;
    --papier: #f4ead3;
    --papier-cien: #d9caa6;
    --atrament: #241d10;
    --czerwien: #c8342b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Oswald', 'Segoe UI', sans-serif;
    font-weight: 300;
    color: var(--papier);
    background: radial-gradient(circle at 50% 0%, #16532a 0%, var(--zielen-glboka) 55%, #030d05 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- tło: wirujący zielony dym + promienie --- */

.tlo-wir,
.tlo-promienie {
    position: fixed;
    inset: -30vmax;
    z-index: -2;
    pointer-events: none;
}

.tlo-wir {
    background:
        radial-gradient(circle at 30% 30%, rgba(86, 216, 74, .22), transparent 45%),
        radial-gradient(circle at 72% 62%, rgba(31, 122, 44, .28), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(141, 255, 92, .12), transparent 55%);
    animation: wir 26s linear infinite;
}

.tlo-promienie {
    z-index: -1;
    background: repeating-conic-gradient(from 0deg at 50% 22%,
        rgba(242, 193, 75, .07) 0deg 6deg,
        transparent 6deg 18deg);
    animation: wir 90s linear infinite reverse;
    opacity: .8;
}

@keyframes wir {
    to { transform: rotate(360deg); }
}

/* --- nagłówek --- */

.naglowek {
    padding: clamp(24px, 6vw, 64px) 20px clamp(32px, 6vw, 72px);
    text-align: center;
}

.ramka {
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px) clamp(18px, 4vw, 48px);
    border: 3px solid var(--zloto);
    outline: 1px solid var(--zloto);
    outline-offset: 7px;
    background: linear-gradient(160deg, rgba(6, 26, 9, .82), rgba(13, 61, 23, .62));
    box-shadow: 0 0 60px rgba(86, 216, 74, .18), inset 0 0 80px rgba(0, 0, 0, .45);
    position: relative;
}

.ramka::before,
.ramka::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border: 3px solid var(--zloto);
}

.ramka::before { top: -12px; left: -12px; border-right: 0; border-bottom: 0; }
.ramka::after  { bottom: -12px; right: -12px; border-left: 0; border-top: 0; }

.nadtytul {
    margin: 0 0 18px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: clamp(.7rem, 2.4vw, .88rem);
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--zloto);
    opacity: .85;
}

.maska {
    width: clamp(120px, 26vw, 190px);
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 26px rgba(86, 216, 74, .55));
    animation: kolysanie 5.5s ease-in-out infinite;
}

.maska svg { width: 100%; height: auto; display: block; }

@keyframes kolysanie {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50%      { transform: rotate(3deg) translateY(-10px); }
}

.tytul {
    margin: 0;
    font-family: 'Limelight', 'Oswald', serif;
    line-height: .95;
    text-transform: uppercase;
}

.tytul span {
    display: block;
    font-size: clamp(2.6rem, 12vw, 6rem);
    color: var(--zielen-neon);
    text-shadow:
        0 0 12px rgba(141, 255, 92, .55),
        3px 3px 0 var(--zielen-ciemna),
        6px 6px 0 rgba(0, 0, 0, .55);
}

.tytul em {
    display: block;
    margin-top: .18em;
    font-style: normal;
    font-size: clamp(1.05rem, 4.6vw, 2.1rem);
    letter-spacing: .18em;
    color: var(--zloto);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
}

.sprawa {
    margin: 16px 0 0;
    font-family: 'Special Elite', monospace;
    font-size: clamp(.95rem, 3.2vw, 1.2rem);
    letter-spacing: .04em;
    color: var(--papier-cien);
}

.sprawa strong {
    display: inline-block;
    margin-left: 6px;
    padding: 4px 16px;
    font-family: 'Limelight', serif;
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--zielen-glboka);
    background: linear-gradient(180deg, var(--zloto-jasne), var(--zloto));
    border: 2px solid #8a6a12;
    transform: rotate(-1.5deg);
}

.nick-sprawy {
    font-family: 'Special Elite', monospace;
    padding: 1px 8px;
    background: rgba(242, 193, 75, .35);
    box-shadow: 0 1px 0 var(--zielen);
}

.podtytul {
    margin: 22px 0 6px;
    font-size: clamp(1rem, 3vw, 1.25rem);
    letter-spacing: .06em;
}

.podtytul strong { color: var(--zielen-jasna); }

.haslo {
    margin: 0 0 26px;
    font-family: 'Special Elite', monospace;
    font-size: clamp(.85rem, 2.6vw, 1rem);
    color: var(--papier-cien);
}

.cta {
    display: inline-block;
    padding: 14px 34px;
    font-family: 'Limelight', serif;
    font-size: clamp(.95rem, 3vw, 1.15rem);
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--zielen-glboka);
    background: linear-gradient(180deg, var(--zloto-jasne), var(--zloto));
    border: 2px solid #8a6a12;
    box-shadow: 0 6px 0 #8a6a12, 0 12px 26px rgba(0, 0, 0, .5);
    transition: transform .12s ease, box-shadow .12s ease;
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #8a6a12, 0 16px 32px rgba(0, 0, 0, .55);
}

.cta:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #8a6a12;
}

/* --- treść --- */

main {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    gap: clamp(20px, 4vw, 34px);
}

.karta {
    background: var(--papier);
    color: var(--atrament);
    padding: clamp(22px, 5vw, 46px);
    border: 1px solid var(--papier-cien);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
    position: relative;
    background-image:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 4px);
}

.karta h2 {
    margin: 0 0 6px;
    font-family: 'Limelight', serif;
    font-size: clamp(1.15rem, 4vw, 1.75rem);
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--zielen-ciemna);
}

.karta h2 em {
    font-style: normal;
    color: var(--zielen);
}

.karta p { line-height: 1.7; }

.data-miejsce {
    margin: 0 0 22px;
    font-family: 'Special Elite', monospace;
    font-size: .85rem;
    color: #6d6046;
    text-align: right;
}

.lead {
    font-size: clamp(1rem, 2.8vw, 1.1rem);
    font-weight: 500;
}

/* --- licznik --- */

.licznik-sekcja { text-align: center; }

.licznik {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.licznik strong {
    font-family: 'Limelight', serif;
    font-size: clamp(3rem, 14vw, 5.5rem);
    line-height: 1;
    color: var(--zielen);
    text-shadow: 3px 3px 0 rgba(31, 122, 44, .22);
}

.licznik span {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .8rem;
    color: #6d6046;
}

.pasek {
    margin: 20px auto 8px;
    max-width: 520px;
    height: 16px;
    background: #e0d3b3;
    border: 2px solid var(--zielen-ciemna);
    overflow: hidden;
}

.pasek-wypelnienie {
    height: 100%;
    min-width: 3px;
    background: repeating-linear-gradient(45deg,
        var(--zielen) 0 10px, var(--zielen-jasna) 10px 20px);
    transition: width .6s ease;
}

.pasek-opis {
    margin: 0;
    font-family: 'Special Elite', monospace;
    font-size: .8rem;
    color: #6d6046;
}

/* --- argumenty --- */

.argumenty {
    list-style: none;
    counter-reset: arg;
    margin: 26px 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.argumenty li {
    counter-increment: arg;
    position: relative;
    padding-left: 64px;
}

.argumenty li::before {
    content: counter(arg, upper-roman);
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-family: 'Limelight', serif;
    font-size: 1.05rem;
    color: var(--papier);
    background: var(--zielen-ciemna);
    border: 2px solid var(--zloto);
}

.argumenty h3 {
    margin: 0 0 4px;
    font-size: clamp(1rem, 3vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--zielen-ciemna);
}

.argumenty p { margin: 0; }

.konkluzja {
    margin-top: 26px;
    padding: 18px 20px;
    border-left: 5px solid var(--zielen);
    background: rgba(31, 122, 44, .09);
    font-size: 1.02rem;
}

.podpis-formalny {
    margin: 26px 0 0;
    text-align: right;
    font-family: 'Special Elite', monospace;
}

.podpis-formalny span {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.5rem;
    transform: rotate(-4deg);
    color: var(--zielen-ciemna);
}

/* --- formularz --- */

.wstep-formularza {
    margin: 0 0 20px;
    color: #6d6046;
}

.formularz {
    display: grid;
    gap: 16px;
}

.formularz label {
    display: grid;
    gap: 6px;
}

.formularz label > span {
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--zielen-ciemna);
    font-weight: 500;
}

.formularz label b { color: var(--czerwien); }

.formularz input[type="text"],
.formularz textarea {
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    color: var(--atrament);
    padding: 12px 14px;
    background: #fffaf0;
    border: 2px solid var(--papier-cien);
    border-radius: 0;
    width: 100%;
    resize: vertical;
}

.formularz input[type="text"]:focus,
.formularz textarea:focus {
    outline: none;
    border-color: var(--zielen);
    box-shadow: 0 0 0 3px rgba(86, 216, 74, .28);
}

.formularz button {
    justify-self: start;
    padding: 14px 32px;
    font-family: 'Limelight', serif;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--papier);
    background: linear-gradient(180deg, var(--zielen-jasna), var(--zielen));
    border: 2px solid var(--zielen-ciemna);
    box-shadow: 0 5px 0 var(--zielen-ciemna);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}

.formularz button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--zielen-ciemna);
}

.formularz button:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--zielen-ciemna);
}

.nota {
    margin: 0;
    font-size: .78rem;
    color: #7d715a;
}

.pulapka {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.komunikat {
    margin: 0 0 18px;
    padding: 13px 16px;
    font-weight: 500;
    border-left: 5px solid;
}

.komunikat.ok {
    color: #10450f;
    background: rgba(86, 216, 74, .18);
    border-color: var(--zielen);
}

.komunikat.blad {
    color: #7a1c16;
    background: rgba(200, 52, 43, .12);
    border-color: var(--czerwien);
}

/* --- lista podpisów --- */

.licznik-maly {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 12px;
    font-family: 'Oswald', sans-serif;
    font-size: .85rem;
    vertical-align: middle;
    color: var(--papier);
    background: var(--zielen);
}

.pusto {
    font-family: 'Special Elite', monospace;
    color: #6d6046;
}

.podpisy {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.podpisy li {
    display: flex;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(31, 122, 44, .06);
    border-left: 4px solid var(--zielen);
}

.podpisy .numer {
    flex: 0 0 auto;
    font-family: 'Limelight', serif;
    font-size: .95rem;
    color: var(--zielen);
    min-width: 2.2em;
}

.podpisy strong {
    font-family: 'Special Elite', monospace;
    font-size: 1.12rem;
    color: var(--zielen-ciemna);
    margin-right: 10px;
}

.podpisy time {
    font-size: .76rem;
    color: #7d715a;
    white-space: nowrap;
}

.podpisy p {
    margin: 6px 0 0;
    font-size: .95rem;
    line-height: 1.55;
}

/* --- stopka --- */

.stopka {
    padding: 30px 20px 48px;
    text-align: center;
    color: var(--papier-cien);
    font-size: .85rem;
}

.stopka p { margin: 4px 0; }

.stopka .drobne {
    font-size: .74rem;
    opacity: .6;
}

@media (max-width: 520px) {
    .argumenty li { padding-left: 0; padding-top: 56px; }
    .argumenty li::before { width: 40px; height: 40px; }
    .podpisy li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .tlo-wir, .tlo-promienie, .maska { animation: none; }
    html { scroll-behavior: auto; }
}
