:root {
  --bg: #08080a;
  --surface: #141418;
  --card: #1c1c22;
  --border: #2e2e36;
  --text: #f0eeeb;
  --dim: #ACAAB5;
  --acc: #04C4D9;
  --acc2: #5cc8f4;
  --yes: #04C4D9;
  --rej: #f45c6a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Rethink Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }
input { font-family: inherit; }

/* Logó */
.voov-logo { display: inline-block; }
.logo-white { color: #ffffff; }
.logo-acc { color: var(--acc); }
.logo-dim { color: var(--dim); }

/* Elrendezés */
.center-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.stack-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Segéd */
.muted { font-size: 13px; color: var(--dim); }
.mb { margin-bottom: 16px; }
.mt { margin-top: 16px; }
.error {
  background: rgba(244,92,106,0.1); border: 1px solid rgba(244,92,106,0.25);
  color: var(--rej); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px;
}
.link { color: var(--acc); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Űrlap elemek */
.label {
  display: block; font-size: 12px; font-weight: 600; color: var(--dim);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em;
}
.input {
  width: 100%; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-size: 15px; outline: none;
}
.input:focus { border-color: var(--acc); }

.btn {
  padding: 11px 20px; background: var(--acc); color: var(--bg);
  border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-block { display: block; width: 100%; }
.btn-ghost {
  padding: 9px 16px; background: transparent; color: var(--dim);
  border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-danger {
  padding: 9px 16px; background: transparent; color: var(--rej);
  border: 1px solid rgba(244,92,106,0.35); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
}
.badge { font-size: 12px; font-weight: 600; color: var(--acc); background: rgba(4,196,217,0.1); padding: 3px 10px; border-radius: 20px; }
.badge-gray { font-size: 12px; font-weight: 600; color: var(--dim); background: var(--surface); padding: 3px 10px; border-radius: 20px; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 10px; text-decoration: none; color: var(--text);
}
.list-item.col { flex-direction: column; align-items: stretch; gap: 10px; }

/* Login */
.login-box { width: 100%; max-width: 360px; text-align: center; }
.login-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }

/* Admin fejléc */
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.admin-header-left { display: flex; align-items: center; gap: 12px; }
.admin-header-title { font-size: 15px; font-weight: 700; }
.admin-content { max-width: 820px; margin: 0 auto; padding: 32px 24px 64px; }
.h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.sub { font-size: 14px; color: var(--dim); margin: 0 0 28px; }
.h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }

/* ---------- Játék ---------- */
.game-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
}
.intro-box { text-align: center; max-width: 480px; display: flex; flex-direction: column; align-items: center; }
.intro-title { font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.intro-company { font-size: 18px; font-weight: 700; color: var(--acc); margin: 0 0 16px; }
.intro-desc { font-size: 15px; color: var(--dim); line-height: 1.6; margin: 0 0 8px; }
.intro-meta { font-size: 13px; color: var(--dim); margin: 0 0 32px; opacity: 0.6; }
.start-btn {
  display: block; width: 100%; max-width: 320px; margin: 0 auto;
  padding: 14px; background: var(--acc); color: var(--bg);
  border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer;
}

.topbar { width: 100%; max-width: 520px; margin-bottom: 24px; }
.progress-track { width: 100%; height: 4px; background: var(--surface); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.progress-fill { height: 100%; background: var(--acc); border-radius: 2px; transition: width 0.3s ease; }
.top-meta { display: flex; justify-content: space-between; align-items: center; }
.cat-badge { font-size: 13px; font-weight: 600; color: var(--acc); background: rgba(4,196,217,0.1); padding: 4px 12px; border-radius: 20px; }
.counter { font-size: 13px; color: var(--dim); }

.catintro-card {
  background: var(--card); border-radius: 20px; border: 1px solid var(--border);
  padding: 36px 32px 28px; max-width: 520px; width: 100%; text-align: center;
}
.catintro-icon { font-size: 36px; margin-bottom: 8px; opacity: 0.6; }
.catintro-number { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 8px; }
.catintro-title { font-size: 24px; font-weight: 800; margin: 0 0 16px; color: var(--acc); }
.catintro-question { font-size: 18px; font-weight: 600; margin: 0 0 12px; line-height: 1.4; color: var(--text); }
.catintro-desc { font-size: 14px; color: var(--dim); line-height: 1.7; margin: 0 0 20px; text-align: left; }
.catintro-example { background: rgba(4,196,217,0.06); border: 1px solid rgba(4,196,217,0.15); border-radius: 12px; padding: 14px 18px; text-align: left; margin-bottom: 20px; }
.catintro-exlabel { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--acc); margin-bottom: 6px; }
.catintro-extext { font-size: 13px; color: var(--dim); line-height: 1.6; margin: 0; }
.catintro-paircount { font-size: 12px; color: var(--dim); margin-bottom: 20px; opacity: 0.5; }
.catintro-btn { display: inline-block; padding: 14px 48px; background: var(--acc); color: var(--bg); border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; }

.card-area { width: 100%; max-width: 520px; min-height: 340px; position: relative; }
.play-card { background: var(--card); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; transition: transform 0.3s ease, opacity 0.3s ease; }
.card-inner { padding: 32px 28px 20px; }
.option {
  display: block; width: 100%; padding: 20px; background: transparent;
  border: 2px solid transparent; border-radius: 14px; cursor: pointer;
  text-align: left; transition: all 0.15s; color: var(--text);
}
.option:hover { border-color: var(--border); background: rgba(255,255,255,0.02); }
.option-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 6px; }
.option-word { display: block; font-size: 24px; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; padding: 4px 0; margin: 4px 0; }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.vs { font-size: 12px; color: var(--dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.bottom-btns { display: flex; border-top: 1px solid var(--border); }
.both-btn { flex: 1; padding: 14px; background: transparent; border: none; border-right: 1px solid var(--border); color: var(--acc2); font-size: 14px; font-weight: 600; cursor: pointer; }
.neither-btn { flex: 1; padding: 14px; background: transparent; border: none; color: var(--dim); font-size: 14px; font-weight: 600; cursor: pointer; }
.back-btn { margin-top: 16px; padding: 10px 24px; background: transparent; border: 1px solid var(--border); border-radius: 10px; color: var(--dim); font-size: 13px; font-weight: 500; cursor: pointer; }

/* Eredmény */
.results-box { width: 100%; max-width: 640px; padding-bottom: 40px; margin: 0 auto; }
.results-title { font-size: 32px; font-weight: 800; margin: 0 0 4px; }
.results-subtitle { font-size: 14px; color: var(--dim); margin: 0 0 32px; }
.result-section { margin-bottom: 32px; }
.result-label { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--yes); }
.result-label.no { color: var(--rej); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-yes { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; background: rgba(4,196,217,0.12); color: var(--yes); border: 1px solid rgba(4,196,217,0.25); }
.tag-no { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; background: rgba(244,92,106,0.1); color: var(--rej); border: 1px solid rgba(244,92,106,0.2); }
.cat-result { margin-bottom: 16px; padding-left: 16px; border-left: 2px solid var(--border); }
.cat-result-title { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.cat-result-line { font-size: 13px; color: var(--dim); margin: 0 0 4px; line-height: 1.5; }
.yes-tx { color: var(--yes); }
.no-tx { color: var(--rej); }
.download-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.dl-btn { padding: 12px 24px; background: var(--acc); color: var(--bg); border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.dl-btn.csv { background: var(--acc2); }
.dl-btn.dim { background: var(--dim); }
.dl-btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.dl-btn.retry { background: var(--rej); color: #fff; }
.save-status { display: inline-block; margin-bottom: 24px; padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.save-status.saved { color: var(--yes); }
.save-status.saving { color: var(--dim); }
.save-status.err { color: var(--rej); }
.game-footer { display: flex; align-items: center; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); opacity: 0.6; }
.game-footer-text { font-size: 13px; color: var(--dim); font-weight: 500; }

/* Alpine: rejtsük a nem inicializált elemeket */
[x-cloak] { display: none !important; }
