:root {
  --paper: #f2ede2;
  --ink: #141414;
  --muted: #6b665c;
  --red: #d7261e;
  --green: #1f8a3b;
  --line: #d8d0bf;
  --headline: Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Black", sans-serif;
  --body: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
html { overflow-x: hidden; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  transition: transform .9s cubic-bezier(.6,-.3,.3,1.3), filter .4s;
}

a { color: inherit; }

/* ---------- ticker ---------- */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .85rem;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-label {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: .45rem .8rem;
  letter-spacing: .08em;
  z-index: 1;
}
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-move {
  display: inline-block;
  padding: .45rem 0 .45rem 100%;
  animation: ticker 60s linear infinite;
}
.ticker-move span + span::before { content: "  ✶  "; color: var(--red); white-space: pre; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: inherit; text-decoration: underline dotted rgba(255,255,255,.45); text-underline-offset: 3px; }
.ticker-move a:hover { color: #fff; text-decoration-color: var(--red); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- hero ---------- */
main {
  flex: 1;
  width: min(880px, 100% - 2rem);
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-family: var(--headline);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  border-bottom: 6px solid var(--ink);
  padding-bottom: .9rem;
  cursor: default;
  user-select: none;
}
.qmark { color: var(--red); display: inline-block; margin-left: .06em; transition: transform .3s; }
.qmark:hover { transform: rotate(14deg) scale(1.15); }

/* ---------- answers ---------- */
.answers { display: grid; gap: 0; }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.q {
  font-size: clamp(1.4rem, 4.4vw, 2.6rem);
  font-style: italic;
}
.q::before { content: "… "; color: var(--muted); }

.stamp {
  font-family: var(--headline);
  font-size: clamp(2rem, 7vw, 4.2rem);
  text-transform: uppercase;
  line-height: 1;
  padding: .15em .45em .1em;
  border: .09em solid currentColor;
  outline: .04em solid currentColor;
  outline-offset: .08em;
  border-radius: .12em;
  color: var(--red);
  transform: rotate(-7deg);
  cursor: pointer;
  user-select: none;
  background: none;
  mix-blend-mode: multiply;
  animation: stamp .5s cubic-bezier(.2,1.6,.4,1) both;
}
.row:nth-child(2) .stamp { animation-delay: .15s; transform: rotate(4deg); }
.row:nth-child(3) .stamp { animation-delay: .3s;  transform: rotate(-3deg); }
.stamp.nie { color: var(--green); }
.stamp:active { transform: rotate(0) scale(.94); }
@keyframes stamp {
  from { opacity: 0; scale: 2.4; }
  to   { opacity: 1; scale: 1; }
}

.src {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  margin-top: -.3rem;
}
.src a { color: var(--muted); }

.meta, .countdown {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  margin: 1rem 0 0;
}
.countdown { color: var(--ink); font-size: .95rem; }
.countdown b { color: var(--red); font-size: 1.3em; }
.countdown small { color: var(--muted); font-size: .8em; }
.countdown b.kedy { color: var(--ink); font-size: 1em; }

/* ---------- kauzy ---------- */
.kauzy { margin-top: 3.5rem; }
.kauzy h2 {
  font-family: var(--headline);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2rem;
  margin: 0 0 .6rem;
  border-bottom: 3px solid var(--ink);
  padding-bottom: .3rem;
}
.kauzy h2 small {
  font-family: var(--mono);
  text-transform: none;
  font-size: .75rem;
  color: var(--muted);
  margin-left: .5rem;
}
.kauzy ol { list-style: none; margin: 0; padding: 0; }
.kauzy li { border-bottom: 1px solid var(--line); }
.kauzy li a {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: .3rem 1rem;
  padding: .8rem 0;
  text-decoration: none;
}
.kauzy li a:hover .t { text-decoration: underline; text-decoration-color: var(--red); }
.kauzy .d { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: .2rem; }
.kauzy .t { font-size: 1.1rem; line-height: 1.35; }
.kauzy .w { grid-column: 2; font-family: var(--mono); font-size: .75rem; color: var(--red); }

/* ---------- footer ---------- */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  padding: 1.2rem 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .85rem;
}
footer a { text-decoration: none; }
footer .disclaimer {
  flex-basis: 100%;
  margin: .3rem 0 0;
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
}
footer a:hover { color: var(--red); }

.dropup { position: relative; }
.dropup-content {
  display: none;
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 10rem;
  z-index: 10;
}
.dropup-content.open { display: block; }
.dropup-content a { display: block; padding: .6rem .9rem; }
.dropup-content a:hover { background: var(--ink); color: var(--paper); }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: grid; place-items: center;
  z-index: 100;
}
.modal[hidden] { display: none; }
.modal-content {
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1rem;
  width: min(500px, 90vw);
}
.modal-content img { width: 100%; height: auto; display: block; }
.close {
  position: absolute; top: -1rem; right: -1rem;
  width: 2.2rem; height: 2.2rem;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}

/* ---------- napíš nám ---------- */
.napis { display: grid; gap: .8rem; padding: 1.4rem; font-family: var(--mono); font-size: .9rem; }
.napis h2 { font-family: var(--headline); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin: 0; }
.napis .hint { margin: 0; color: var(--muted); font-size: .8rem; }
.napis label { display: grid; gap: .3rem; }
.napis small { color: var(--muted); }
.napis input, .napis textarea {
  font: 1rem var(--body);
  padding: .55rem .6rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  resize: vertical;
}
.napis input:focus, .napis textarea:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.napis .hp { position: absolute; left: -9999px; }
.napis .send {
  justify-self: start;
  font-family: var(--headline); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .03em;
  padding: .35rem 1.2rem;
  background: var(--red); color: #fff;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}
.napis .send:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.napis .send:disabled { opacity: .5; }
.napis-status { margin: 0; min-height: 1.2em; }

/* ---------- easter egg modaly (hlasovanie, trestné oznámenie) ---------- */
.egg-modal { position: relative; }
.napis select {
  font: 1rem var(--body); padding: .5rem; border: 2px solid var(--ink); background: var(--paper);
}
.napis input[readonly] { color: var(--red); font-weight: 700; }
.vote { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; text-align: center; }
.vote div { border: 2px solid var(--ink); padding: .4rem .2rem; background: var(--paper); }
.vote span { display: block; font-size: .65rem; color: var(--muted); }
.vote b { font: 400 2rem var(--headline); }
.vote div:nth-child(2) b { color: var(--red); }
.odchod-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.napis .send.alt { background: #fff; color: var(--ink); z-index: 300; transition: left .15s, top .15s; }
.verdict { margin: 0; min-height: 1.2em; line-height: 1.45; }
.verdict small { display: block; margin-top: .4rem; }
.odlozene {
  position: absolute; top: 42%; left: 50%;
  font: 400 clamp(2.6rem, 10vw, 4rem) var(--headline);
  color: var(--red); border: .08em solid var(--red); outline: .03em solid var(--red); outline-offset: .07em;
  padding: .05em .35em; letter-spacing: .04em; background: rgba(255,255,255,.75);
  transform: translate(-50%, -50%) rotate(-14deg);
  animation: stamp .45s cubic-bezier(.2,1.6,.4,1) both;
  pointer-events: none;
}
.odlozene[hidden] { display: none; }

/* ---------- easter eggs ---------- */
.egg {
  position: fixed;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  padding: .8rem 1.2rem;
  border-left: 6px solid var(--red);
  max-width: min(90vw, 34rem);
  z-index: 200;
  animation: egg-in .3s ease-out;
}
.egg[hidden] { display: none; }
@keyframes egg-in { from { opacity: 0; translate: 0 1rem; } }

.fall {
  position: fixed;
  top: -3rem;
  font-size: 2rem;
  pointer-events: none;
  z-index: 150;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

body.flip { transform: rotate(180deg); }

/* klikanie na ÁNO → reflektor na voľby */
body.dim main > *:not(.countdown) { opacity: .25; transition: opacity .5s; }
.countdown { position: relative; transition: transform .4s; }
.countdown.spotlight {
  z-index: 120;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--red);
  padding: .9rem 1.1rem;
  font-size: 1.15rem;
  animation: spot 1s ease-in-out 3;
}
@keyframes spot {
  50% { transform: scale(1.03) rotate(-1deg); box-shadow: 9px 9px 0 var(--red); }
}
body.shred main { animation: shred .6s steps(6) 3; }
@keyframes shred {
  50% { filter: blur(2px) contrast(3); transform: skewX(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-move { animation-duration: 180s; }
  .stamp { animation: none; }
  body { transition: none; }
}

@media (max-width: 560px) {
  main { padding-top: 2rem; }
  .row { gap: .5rem; }
  .kauzy li a { grid-template-columns: 1fr; }
  .kauzy .w { grid-column: 1; }
}
