html, body { margin:0; height:100%; background:#000; overflow:hidden; }
canvas { display:block; width:100vw; height:100vh; }

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.text {
  font-size: clamp(42px, 7vw, 120px);
  letter-spacing: 0.06em;
  color: #dbe9ff;
  text-shadow:
    0 0 14px rgba(0,140,255,.55),
    0 0 36px rgba(0,140,255,.35);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  filter: blur(0.2px);
  white-space: nowrap;
}

.text.show {
  animation: in 700ms ease forwards;
}

#msg {
  pointer-events: auto;
  cursor: pointer;
}

@keyframes in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.caret::after{
  content:"";
  display:inline-block;
  width: .55em;
  height: .12em;
  margin-left: .15em;
  background: rgba(220,235,255,.95);
  box-shadow: 0 0 12px rgba(0,140,255,.6);
  transform: translateY(-0.12em);
  animation: blink 800ms step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.glitch {
  position: relative;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  opacity: .55;
  mix-blend-mode: screen;
  pointer-events:none;
  clip-path: inset(0 0 0 0);
}
.glitch::before { transform: translate(2px, -1px); color: rgba(0,180,255,.75); }
.glitch::after  { transform: translate(-2px, 1px); color: rgba(120,200,255,.65); }

.glitch.burst::before { animation: slice 900ms linear infinite; }
.glitch.burst::after  { animation: slice 700ms linear infinite reverse; }

@keyframes slice {
  0%   { clip-path: inset(0 0 90% 0); }
  25%  { clip-path: inset(20% 0 55% 0); }
  50%  { clip-path: inset(45% 0 30% 0); }
  75%  { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(0 0 90% 0); }
}

.vignette{
  position:fixed; inset:0; pointer-events:none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
}

.stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 18px;
  pointer-events:none;
}


#msg{ pointer-events:auto; }


.quiz{
  pointer-events:auto;
  text-align:center;
  max-width: min(900px, 92vw);
}

.hidden{ display:none; }

.qtext{
  font-size: clamp(18px, 2.2vw, 30px);
  color:#dbe9ff;
  text-shadow:
    0 0 10px rgba(0,140,255,.45),
    0 0 24px rgba(0,140,255,.25);
  opacity: 0;
  transform: translateY(8px);
  animation: qin 300ms ease forwards;
  padding: 8px 10px;
}

@keyframes qin {
  to { opacity:1; transform: translateY(0); }
}

.qbuttons{
  display:flex;
  gap: 14px;
  justify-content:center;
  margin-top: 12px;
}

.qbtn{
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(220,235,255,.55);

  background: #050b14;
  color: rgba(220,235,255,.98);

  box-shadow:
    inset 0 0 0 1px rgba(0,140,255,.15),
    0 0 18px rgba(0,140,255,.22);

  cursor: pointer;
}

.qbtn:hover{
  background: #071225;
  border-color: rgba(220,235,255,.85);
  box-shadow:
    inset 0 0 0 1px rgba(0,140,255,.25),
    0 0 26px rgba(0,140,255,.35);
}

.result-logo{
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-logo img{
  max-height: 42px;
  width: auto;
  display: block;

  filter:
    drop-shadow(0 0 6px rgba(0,140,255,.35))
    drop-shadow(0 0 14px rgba(0,140,255,.25));

  opacity: 1;
  transform: none;
  animation: none;
}

.result-logo.show img{
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  animation: logoIn 400ms ease forwards;
}

@keyframes logoIn{
  to { opacity:1; transform: translateY(0) scale(1); }
}

.result-logo a:hover img{
  filter:
    drop-shadow(0 0 10px rgba(0,160,255,.6))
    drop-shadow(0 0 24px rgba(0,160,255,.45));
}


.poly-box{
  margin: 18px auto 0;
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 14px 14px 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  text-align: left;
}

.poly-box{ pointer-events: auto; }


.poly-title{
  font-weight: 700;
  letter-spacing: .4px;
  font-size: 16px;
  margin-bottom: 4px;
  color: #fff;
}

.poly-sub{
  font-size: 12px;
  opacity: .8;
  margin-bottom: 10px;
}

.poly-bars{ display:flex; flex-direction:column; gap:8px; }

.poly-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.poly-name{
  flex: 0 0 160px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,.92);
}

.poly-barwrap{
  flex: 1 1 auto;
  height: 14px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  position: relative;
}

.poly-bar{
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0,242,234,.90), rgba(255,0,80,.90));
}

.poly-pct{
  flex: 0 0 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: #fff;
}









.poly-links{
  margin-top: 10px;
  font-size: 12px;
  opacity: .9;
  display: flex;
  gap: 8px;
  align-items: center;
}

.poly-link{
  color: rgba(220,235,255,.95);
  text-decoration: none;
  border-bottom: 1px dashed rgba(220,235,255,.35);
  padding-bottom: 1px;
}

.poly-link:hover{
  color: #fff;
  border-bottom-color: rgba(220,235,255,.8);
}

.poly-sep{
  opacity: .6;
}

/* ====== KÖZVÉLEMÉNY OLDAL KIEGÉSZÍTÉSEK (style.css végére) ====== */

.poll-panel{
  pointer-events: auto;
  max-width: min(980px, 94vw);
  width: min(980px, 94vw);
}

.panel{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(0,140,255,.10),
    0 0 28px rgba(0,140,255,.18);
  overflow: hidden;
}

.panel-head{
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.panel-title{
  font-size: clamp(22px, 3.2vw, 40px);
  letter-spacing: .06em;
  color: #dbe9ff;
  text-shadow:
    0 0 14px rgba(0,140,255,.40),
    0 0 30px rgba(0,140,255,.22);
}

.panel-sub{
  margin-top: 8px;
  font-size: 13px;
  opacity: .85;
  color: rgba(220,235,255,.92);
}

.panel-body{
  padding: 16px 18px 18px;
}

.panel-h2{
  margin: 18px 0 10px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(220,235,255,.92);
}

.panel-note{
  font-size: 13px;
  color: rgba(220,235,255,.88);
  opacity: .92;
  border: 1px dashed rgba(220,235,255,.22);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(5,11,20,.35);
  box-shadow: inset 0 0 0 1px rgba(0,140,255,.08);
}

.poll-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 760px){
  .poll-grid{ grid-template-columns: 1fr; }
}

.poll-item{
  display:block;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 12px 10px;
  background: rgba(5,11,20,.35);
  box-shadow:
    inset 0 0 0 1px rgba(0,140,255,.08),
    0 0 18px rgba(0,140,255,.10);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.poll-item:hover{
  transform: translateY(-1px);
  border-color: rgba(220,235,255,.28);
  box-shadow:
    inset 0 0 0 1px rgba(0,140,255,.14),
    0 0 24px rgba(0,140,255,.20);
}

.poll-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.poll-name{
  color: rgba(255,255,255,.96);
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 14px;
}

.poll-desc{
  color: rgba(220,235,255,.88);
  font-size: 12.5px;
  line-height: 1.35;
  opacity: .92;
  margin-bottom: 8px;
}

.poll-link{
  font-size: 12px;
  color: rgba(220,235,255,.92);
  opacity: .9;
  border-bottom: 1px dashed rgba(220,235,255,.28);
  display: inline-block;
  padding-bottom: 1px;
}

.badge{
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
  white-space: nowrap;
}

.badge-indep{
  border-color: rgba(0,242,234,.35);
  box-shadow: 0 0 16px rgba(0,242,234,.18);
}

.badge-gov{
  border-color: rgba(255,140,0,.35);
  box-shadow: 0 0 16px rgba(255,140,0,.14);
}

.badge-neutral{
  border-color: rgba(140,180,255,.35);
  box-shadow: 0 0 16px rgba(140,180,255,.14);
}

.panel-actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
}

.scroll-page, .scroll-page body { overflow:auto !important; }
.scroll-page body { height:auto; min-height:100%; }
.scroll-page .overlay { position: relative; inset:auto; padding: 26px 0; }

