:root {
  color-scheme: light dark;
  --bg: #f4ece0;
  --panel: #faf5ed;
  --fg: #1a1208;
  --muted: #6b5238;
  --crimson: #7a1408;
  --crimson-hover: #9e2418;
  --gold: #9a7a35;
  --rule: rgba(122,20,8,0.16);
  --on-accent: #fff9f1;
  --err: #b3261e;
  --ok: #2e7d32;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1010;
    --panel: #231716;
    --fg: #ece4de;
    --muted: #b8a8a0;
    --crimson: #c05038;
    --crimson-hover: #d6684f;
    --gold: #d4b36a;
    --rule: rgba(212,179,106,0.22);
    --on-accent: #1a1010;
    --err: #f2b8b5;
    --ok: #8fd19a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero {
  text-align: center;
  padding: 3.5rem 1rem 2.2rem;
  max-width: 40rem;
  margin: 0 auto;
}
.cross { color: var(--gold); }
h1, h2 { font-family: 'Cinzel', Georgia, serif; font-weight: 600; color: var(--crimson); letter-spacing: .04em; }
h1 { font-size: 2.4rem; margin: .4rem 0 .2rem; }
h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.tagline { margin: 0 0 1rem; color: var(--gold); font-style: italic; font-size: 1.25rem; }
.lead { margin: 0; color: var(--muted); }

main { max-width: 40rem; margin: 0 auto; padding: 0 1rem 2rem; }
section {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.6rem 1.4rem;
  margin-bottom: 1.6rem;
}
section > p { margin: 0 0 1rem; }
.sub { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .95rem 'Cinzel', Georgia, serif; letter-spacing: .05em;
  background: var(--crimson); color: var(--on-accent);
  border: 0; border-radius: 2px; padding: .8rem 1.4rem;
  cursor: pointer; text-decoration: none; min-height: 44px;
}
.btn:hover { background: var(--crimson-hover); }
.btn:focus-visible, .vote:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

.candle { text-align: center; }
.btn-candle svg { color: #f4c95d; }
.note { font-size: .98rem; color: var(--muted); margin: .9rem 0 0 !important; }

label { display: block; font-weight: 600; margin-bottom: .25rem; }
.opt { font-weight: 400; color: var(--muted); }
textarea, input[type="text"] {
  width: 100%; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--rule); border-radius: 2px;
  padding: .6rem .7rem;
}
textarea { resize: vertical; min-height: 6rem; }
.row { display: flex; align-items: flex-end; gap: 1rem; margin-top: .8rem; }
.field { flex: 1; max-width: 18rem; }
.count { margin-left: auto; font-size: .95rem; color: var(--muted); white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.msg { font-size: 1.05rem; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.list { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.vote {
  flex: none; width: 3.4rem; min-height: 3.4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  background: transparent; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 3px; cursor: pointer;
  font: 600 1rem 'Cormorant Garamond', serif;
}
.vote:hover { border-color: var(--gold); color: var(--fg); }
.vote[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: var(--on-accent); }
.vote svg { display: block; }
.vote:disabled { opacity: .6; cursor: progress; }
.text { flex: 1; min-width: 0; }
.text p { margin: 0 0 .35rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.meta { font-size: .95rem; color: var(--muted); }

.empty { text-align: center; color: var(--muted); font-style: italic; margin: 1.5rem 0 0 !important; }
.empty.err { color: var(--err); }

footer { text-align: center; padding: 1rem 1rem 3rem; font-size: 1rem; color: var(--muted); }
footer a { color: var(--muted); }

@media (max-width: 480px) {
  .hero { padding-top: 2.5rem; }
  h1 { font-size: 2rem; }
  section { padding: 1.3rem 1rem; }
  .row { flex-direction: column; align-items: stretch; gap: .4rem; }
  .field { max-width: none; }
  .count { margin-left: 0; text-align: right; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .vote { transition: background-color .15s, border-color .15s, color .15s; }
}

/* ── Οπτικές βελτιώσεις (1/11/2026) ───────────────────────── */
:root {
  --candle-bg: linear-gradient(160deg, #6d0f06 0%, #4a0a14 100%);
  --candle-fg: #f6ead6;
  --flame: #f4c95d;
  --shadow: 0 1px 2px rgba(26,18,8,.06), 0 8px 24px rgba(26,18,8,.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --candle-bg: linear-gradient(160deg, #3b0d0a 0%, #2a0a12 100%);
    --candle-fg: #ece4de;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

a { color: var(--crimson); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--crimson-hover); }
footer a, .note a { color: inherit; }
main { max-width: 44rem; }
.note { font-size: 1.05rem; font-weight: 500; }
.meta { font-size: 1.05rem; font-weight: 500; }
.count { font-weight: 500; }

/* Hero: φωτοστέφανο πίσω από τον σταυρό + διακοσμητικός διαχωριστής */
.hero { position: relative; padding-bottom: 2.6rem; }
.hero::before {
  content: ""; position: absolute; top: 1.4rem; left: 50%; width: 15rem; height: 15rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 28%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .lead { max-width: 33rem; margin: 0 auto; font-size: 1.25rem; }
.hero::after {
  content: ""; display: block; width: 9rem; height: 1px; margin: 1.8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
h1 { font-size: 2.8rem; letter-spacing: .08em; }

/* Πάνελ: χρυσή κορυφή + σκιά */
section { box-shadow: var(--shadow); border-top: 2px solid var(--gold); }

/* Ενότητα κεριού: σκούρο βυσσινί, με φλόγα */
.candle {
  background: var(--candle-bg); color: var(--candle-fg);
  border: 1px solid rgba(212,179,106,.35); border-top: 2px solid var(--gold);
  padding: 2.2rem 1.4rem 2rem;
}
.candle h2 { color: #f4d98a; }
.candle > p { max-width: 32rem; margin-left: auto; margin-right: auto; }
.candle .note { color: color-mix(in srgb, var(--candle-fg) 75%, transparent); }
.candle .note a { color: #f4d98a; }
.flame {
  display: block; width: 26px; height: 40px; margin: 0 auto .6rem;
  background: radial-gradient(ellipse at 50% 70%, #fff6d0 0%, var(--flame) 40%, #e58a1f 75%, transparent 78%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  filter: drop-shadow(0 0 10px rgba(244,201,93,.75)) drop-shadow(0 0 22px rgba(244,201,93,.4));
  transform-origin: 50% 100%;
}
.btn-candle { background: #f4d98a; color: #4a0a14; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.btn-candle:hover { background: #ffe9a8; }
.btn-candle svg { color: #8a3b0a; }

/* Φόρμες */
textarea, input[type="text"] { background: color-mix(in srgb, var(--bg) 70%, var(--panel)); }
textarea:focus, input[type="text"]:focus { border-color: var(--gold); }
h2::after {
  content: ""; display: block; width: 2.4rem; height: 1px; margin-top: .45rem; background: var(--gold);
}
.candle h2::after { margin-left: auto; margin-right: auto; background: #f4d98a; }

/* Λίστα προτάσεων */
.item { transition: none; }
.vote { border-radius: 4px; background: var(--bg); }
.vote span { font-size: 1.1rem; }
.empty { padding: 1.2rem 0 .4rem; }

footer { border-top: 1px solid var(--rule); max-width: 44rem; margin: 0 auto; padding-top: 1.4rem; }

@media (prefers-reduced-motion: no-preference) {
  .flame { animation: flicker 3.2s ease-in-out infinite; }
  @keyframes flicker {
    0%, 100% { transform: scale(1) rotate(0); }
    30% { transform: scale(1.04, .96) rotate(-1.5deg); }
    60% { transform: scale(.97, 1.04) rotate(1.2deg); }
  }
}
@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .candle { padding: 1.8rem 1rem 1.6rem; }
}
