:root {
  /* Tamsi turkio-zalia paletė (pagal dizainą) */
  --bg: #0a2321;
  --mint: #3bc0af;
  --mint-soft: #7fd8cc;
  --mint-deep: #159a8e;
  --teal: #2fb3a4;
  --cream: #f2efe7;
  --text: #e8f1ee;
  --muted: #93aaa4;
  --muted-2: #6f8681;
  --sand: #ffd21a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(127, 216, 204, 0.16);
  --line-strong: rgba(127, 216, 204, 0.30);
  --radius: 16px;
  --font-body: Georgia, 'Times New Roman', Times, serif;
  --font-display: Georgia, 'Times New Roman', Times, serif;
}

* { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Tamsus fonas su svelniu turkio svytejimu */
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 720px at 50% 6%, rgba(31, 96, 87, 0.55) 0%, transparent 60%),
    radial-gradient(900px 900px at 50% 44%, rgba(19, 62, 56, 0.55) 0%, transparent 65%),
    radial-gradient(1200px 800px at 100% 100%, rgba(8, 33, 31, 0.6) 0%, transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 22px 40px;
  position: relative;
  z-index: 1;
}

/* ---------- Sniego sluoksnis (tik pirmame puslapyje) ---------- */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  display: none;
}
body.show-snow #snow-canvas { display: block; }

/* ---------- Viršutinė juosta ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 44px 8px 28px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(127, 216, 204, 0.85);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.15;
  min-width: 0;
}
.brand-logo {
  flex: 0 0 auto;
  height: 100px;
  width: auto;
  display: block;
}
.lang-switch { flex: 0 0 auto; }
@media (max-width: 820px) {
  .topbar { padding: 6px 18px 6px 14px; }
  .brand { font-size: 1.05rem; gap: 14px; }
  .brand-logo { height: 70px; }
}
@media (max-width: 520px) {
  .brand { font-size: 0.78rem; letter-spacing: 0.4px; gap: 10px; }
  .brand-logo { height: 50px; }
}
.lang-switch {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}
.lang-switch button.active {
  background: var(--mint);
  color: #06231f;
}

/* ---------- Landing / hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100dvh - var(--topbar-h, 170px));
  position: relative;
}
.hero-inner { position: relative; width: 100%; }
.hero-enneagram {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(600px, 92vw);
  height: min(600px, 92vw);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero-enneagram * {
  fill: none;
  stroke: rgba(127, 216, 204, 0.12);
  stroke-width: 4;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(720px, 94vw);
  margin: 0 auto;
  padding: 0 10px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  color: var(--mint-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.kicker::before,
.kicker::after {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.kicker::before { margin-right: 14px; }
.kicker::after { margin-left: 14px; }
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
  color: var(--cream);
}
.hero-sub {
  max-width: min(960px, 94vw);
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  white-space: pre-line;
}
.hero-meta {
  color: var(--muted-2);
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  margin-bottom: 30px;
}
.hero-meta:empty { display: none; }
.hero-note {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.86rem;
}
.hero-note:empty { display: none; }
.resume-note {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--mint-soft);
  border-radius: 12px;
  padding: 11px 18px;
  margin: 0 auto 22px;
  max-width: 520px;
  font-size: 0.94rem;
}

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 15px 36px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--cream);
  color: #0a2321;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover { background: #fffdf7; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--panel); border-color: var(--mint); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Klausimai ---------- */
.panel {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 4px 0;
}
.progress-wrap { margin-bottom: 26px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 9px;
  letter-spacing: 0.3px;
}
.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint-soft), var(--mint));
  width: 0%;
  transition: width 0.25s ease;
}
.q-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.choices { display: grid; gap: 15px; }
.choice {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  font-size: 1.12rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.14s ease;
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: inherit;
  line-height: 1.45;
}
.choice:hover {
  border-color: var(--mint);
  background: rgba(59, 192, 175, 0.10);
  transform: translateY(-1px);
}
.choice.selected {
  border-color: var(--mint);
  background: rgba(59, 192, 175, 0.15);
  box-shadow: inset 0 0 0 1px var(--mint);
}
.choice .tag {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint);
  color: #06231f;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.nav-row { margin-top: 24px; display: flex; justify-content: flex-start; }
.link-btn {
  background: none;
  border: 0;
  color: var(--mint-soft);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  padding: 8px 4px;
  font-family: inherit;
}
.link-btn:hover { color: var(--mint); text-decoration: underline; }
.link-btn[disabled] { color: var(--muted-2); cursor: default; text-decoration: none; opacity: 0.5; }

/* ---------- Rezultatai ---------- */
.results-wrap { width: 100%; max-width: 980px; margin: 0 auto; padding-top: 30px; }
.results-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}
@media (max-width: 820px) {
  .results-grid { grid-template-columns: 1fr; }
}
.result-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--mint-soft);
  text-transform: uppercase;
}
.result-side h2 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 10px 0 6px;
  line-height: 1.05;
}
.result-side .type-num {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.result-desc { color: var(--muted); line-height: 1.7; }
.result-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tie-note { font-size: 0.88rem; color: var(--sand); margin-top: 10px; }
.divider { height: 1px; background: rgba(255, 255, 255, 0.1); border: 0; margin: 34px 0 26px; }

/* ---------- Eneagramos ratas ---------- */
.wheel-box { width: 100%; }
.wheel-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.wheel-box svg text { font-family: var(--font-body); }
.wheel-line { stroke: var(--line-strong); stroke-width: 2; }
.wheel-ring { fill: none; stroke: var(--line-strong); stroke-width: 2.5; }
.node-circle { fill: var(--teal); }
.node-circle.dominant { fill: var(--sand); }
.node-pct { fill: #06231f; font-weight: 800; font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.node-pct.dominant { fill: #3a2a10; }
.node-label { fill: var(--text); font-weight: 600; font-size: 14px; }
.node-num { fill: var(--mint-soft); font-weight: 800; font-size: 17px; }

/* ---------- Reitingas ---------- */
.ranking { margin-top: 8px; }
.ranking h3 { color: var(--mint-soft); font-size: 1.02rem; margin: 0 0 6px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.rank-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.rank-name { flex: 0 0 210px; font-weight: 600; font-size: 0.95rem; color: var(--text); letter-spacing: 0.3px; }
.rank-name small { color: var(--muted-2); font-weight: 500; }
.rank-bar-track { flex: 1; height: 11px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.rank-bar { height: 100%; background: linear-gradient(90deg, var(--mint-deep), var(--mint)); border-radius: 999px; }
.rank-bar.top { background: var(--sand); }
.rank-pct { flex: 0 0 52px; text-align: right; font-weight: 700; font-size: 0.9rem; color: var(--text); }
@media (max-width: 520px) {
  .rank-name { flex-basis: 148px; font-size: 0.78rem; letter-spacing: 0; }
}

.disclaimer {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  margin-top: 28px;
}
.footer {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  margin-top: 30px;
  padding-top: 10px;
}
/* Apacios uzrasas slepiamas TIK pirmame (landing) puslapyje */
#screen-landing:not(.hidden) ~ .footer { display: none; }
.hidden { display: none !important; }
