:root {
    color-scheme: light;
    --green: #183e30;
    --paper: #fff8e9;
    --ink: #233f33;
    --muted: #516256;
    --line: #d9cbb0;
    --red: #983c3f;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: #f4ead6;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #aa583d; outline-offset: 4px; }
.participant {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 26px 16px;
    background-color: #e9ddc4;
    background-image: radial-gradient(ellipse at 50% 0%, #fff4d9, transparent 65%),
        repeating-linear-gradient(135deg, transparent, transparent 11px, #87603b0b 11px, #87603b0b 12px);
}
.ticket {
    width: min(100%, 550px);
    border: 1px solid #cdbb96;
    border-radius: 20px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 22px 55px #3d321b28, 0 2px 6px #3d321b13;
}
.ticket-top {
    padding: 19px clamp(17px, 5vw, 27px);
    background: var(--green);
    color: #fff3d8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .11em;
}
.ticket-top span:last-child { text-align: right; color: #d7e1c8; }
.lake-banner {
    min-height: clamp(126px, 31vw, 155px);
    display: grid;
    align-items: center;
    padding: 16px clamp(17px, 5vw, 27px);
    border-bottom: 2px solid #c2a36f;
    background: #101d2a
        linear-gradient(90deg, #07101deb 0%, #07101dc9 28%, #07101d00 78%);
    background-image: linear-gradient(90deg, #07101deb 0%, #07101dc9 28%, #07101d00 78%),
        url('/jezioro.webp');
    background-size: cover;
    background-position: center 44%;
}
.meeting {
    display: grid;
    justify-items: start;
    gap: 3px;
    color: #fff3d8;
    font-variant-numeric: tabular-nums;
}
.meeting-label {
    color: #f1cb90;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .66rem;
    font-weight: 750;
}
.meeting strong {
    font: 700 clamp(1.8rem, 6vw, 2.4rem)/1.1 Georgia, 'Times New Roman', serif;
}
.ticket-body { padding: 22px clamp(20px, 6vw, 48px) 26px; text-align: center; }
.illustration { position: relative; margin: 0 auto 12px; width: min(100%, 214px); }
.illustration img { display: block; width: 184px; max-width: 100%; height: auto; margin: 0 auto; }
.star { position: absolute; color: var(--red); font-size: 1.5rem; }
.star.one { left: 0; top: 19%; }
.star.two { right: 0; top: 12%; font-size: 1.05rem; }
.star.three { right: 1%; bottom: 15%; font-size: 1.15rem; }
.drawing .illustration, .drawn .illustration { display: none; }
.draw-reel {
    --tile: 50px;
    --step: calc(var(--tile) + 8px);
    position: relative;
    width: min(100%, 316px);
    height: 126px;
    margin: 0 auto 12px;
    display: grid;
    align-items: center;
}
.reel-window {
    position: relative;
    height: 82px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.reel-track {
    position: absolute;
    top: 16px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(calc(-0.5 * var(--tile) - 12 * var(--step)));
}
.reel-track span {
    display: grid;
    place-items: center;
    width: var(--tile);
    height: var(--tile);
    border: 1px solid #bda776;
    border-radius: 9px;
    background: #f4ebd6;
    color: var(--green);
    font-size: 1.35rem;
}
.draw-reel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--tile) + 6px);
    height: calc(var(--tile) + 6px);
    border: 2px solid #a16d29;
    border-radius: 12px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.drawn .draw-reel::after { border-color: var(--green); }
.drawing .reel-track { animation: spin-reel 4s cubic-bezier(.18, .73, .26, 1) both; }
@keyframes spin-reel {
    from { transform: translateX(calc(-0.5 * var(--tile) - 1 * var(--step))); }
    to { transform: translateX(calc(-0.5 * var(--tile) - 12 * var(--step))); }
}
.eyebrow {
    margin: 0 0 9px;
    color: var(--red);
    font-weight: 750;
    letter-spacing: .14em;
    font-size: .7rem;
}
h1, h2 { font-family: Georgia, 'Times New Roman', serif; color: var(--green); }
h1 { margin: 0; font-size: clamp(2.3rem, 9vw, 3.45rem); line-height: 1.05; overflow-wrap: anywhere; }
.intro { max-width: 34ch; min-height: 2.9em; margin: 14px auto 19px; line-height: 1.48; color: var(--muted); }
.budget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    margin: auto;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f4ebd6;
}
.budget span { font-size: .66rem; font-weight: 750; letter-spacing: .07em; }
.budget strong { font-size: 1.2rem; white-space: nowrap; }
.primary {
    background: var(--green);
    border: 1px solid var(--green);
    color: white;
    padding: 11px 17px;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.primary:hover { background: #2a5945; }
.primary:disabled { opacity: .72; cursor: wait; }
.draw-button { width: min(100%, 260px); margin-top: 20px; }
.draw-button span { margin-left: .5em; color: #f7d59d; }
.ticket-bottom { padding: 13px 20px; text-align: center; border-top: 1px dashed #cdbb96; color: var(--muted); font-size: .81rem; }
.revealed .illustration { animation: opened .52s ease-out; }
@keyframes opened {
    from { transform: scale(.88) rotate(-5deg); opacity: .6; }
    55% { transform: scale(1.08) rotate(2deg); }
    to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .revealed .illustration, .drawing .reel-track { animation: none; }
}
.admin { min-height: 100svh; padding: 24px 16px 54px; }
.dashboard { max-width: 920px; margin: auto; }
.login { max-width: 440px; margin: 7vh auto 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.admin-head h1 { font-size: clamp(2rem, 7vw, 3rem); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: clamp(16px, 4vw, 28px); margin-bottom: 16px; }
.card h2 { margin: 0 0 9px; font-size: 1.55rem; }
.card p { color: var(--muted); line-height: 1.55; }
label { display: block; margin: 13px 0 6px; font-weight: 650; }
input, textarea {
    display: block; width: 100%; background: #fffdf6; color: var(--ink);
    border: 1px solid #ac9f85; border-radius: 7px; padding: 11px;
}
textarea { resize: vertical; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 15px; }
.secondary { display: inline-block; border: 1px solid #bfb298; border-radius: 7px; background: transparent; color: var(--green); padding: 9px 12px; cursor: pointer; min-height: 42px; }
.notice { padding: 11px 13px; border: 1px solid #cfb28a; background: #fff1d6; color: #54391c; border-radius: 8px; line-height: 1.5; }
.status-list { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td small { display: block; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
details summary { cursor: pointer; font-weight: 650; }
