/* ==========================================================================
   Știai că? — stiluri publice (mobile-first, fără fonturi web, fără framework)
   Culorile categoriilor vin din /cat.css ca variabile --c1 / --c2.
   ========================================================================== */
/* Lora (SIL Open Font License, vezi assets/fonts/OFL-Lora.txt) — variabil 400–700,
   redus la literele folosite în română (~37 KB în total), găzduit local. */
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-v5-ro-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013, U+2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122, U+2032, U+2033;
}
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/lora-v5-ro-ext.woff2") format("woff2");
  unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B;
}

:root {
  --bg: #060914;
  --bg2: #0b1124;
  --panel: rgba(16, 22, 46, .62);
  --panel-solid: #10162e;
  --line: rgba(168, 186, 255, .16);
  --line-strong: rgba(168, 186, 255, .32);
  --text: #eef1fb;
  --muted: #a7b0ca;
  --gold: #f6c76c;
  --gold-2: #e8a23a;
  --blue: #5b8cff;
  --c1: #1e3a8a;
  --c2: #6d28d9;
  --tb: 112px;                       /* înălțimea barei de sus (mobil) */
  --radius: 24px;
  --serif: "Lora", Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --tb: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 600px at 80% -10%, #142046 0%, transparent 60%),
                    radial-gradient(900px 500px at -10% 110%, #1a1236 0%, transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1a1205; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Bara de sus ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--tb);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 56px 1fr; align-items: center;
  column-gap: 12px; padding: 6px 16px 0; padding-top: max(6px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(6, 9, 20, .94), rgba(6, 9, 20, .78));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}
.has-hero .topbar { background: linear-gradient(180deg, rgba(6, 9, 20, .82), rgba(6, 9, 20, 0)); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .topbar.is-solid { background: rgba(6, 9, 20, .9); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  color: var(--gold); border: 1.5px solid rgba(246, 199, 108, .7);
  background: radial-gradient(circle at 50% 35%, rgba(246, 199, 108, .22), rgba(246, 199, 108, .04));
  box-shadow: 0 0 18px rgba(246, 199, 108, .25);
}
.brand__mark .ic { width: 22px; height: 22px; }
.brand__name {
  font: 600 1.45rem/1 var(--serif); letter-spacing: .04em; white-space: nowrap;
  background: linear-gradient(180deg, #fff3d6 10%, var(--gold) 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(246, 199, 108, .18);
}
.topbar__actions { display: flex; gap: 8px; grid-row: 1; grid-column: 2; }
.iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.iconbtn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
.badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: #1a1205; font: 700 .7rem/18px var(--sans); text-align: center;
}

.chips {
  grid-column: 1 / -1; grid-row: 2; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; margin: 0 -16px; padding-inline: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent);
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 999px; scroll-snap-align: start;
  border: 1px solid var(--line-strong); background: rgba(10, 14, 32, .45); color: #d6dcef; text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.chip .ic { color: color-mix(in srgb, var(--c2) 55%, #fff); width: 1.15em; height: 1.15em; }
.chip:hover { background: rgba(255, 255, 255, .08); }
.chip.is-active {
  color: #fff; border-color: rgba(110, 150, 255, .9); background: rgba(50, 90, 230, .28);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, .45) inset, 0 0 20px rgba(91, 140, 255, .4);
}
.chip.is-active .ic { color: #fff; }

@media (min-width: 900px) {
  .topbar { grid-template-columns: auto 1fr auto; grid-template-rows: 1fr; padding: 0 24px; column-gap: 24px; }
  .topbar__actions { grid-column: 3; }
  .chips { grid-column: 2; grid-row: 1; margin: 0; padding: 4px 8px; min-width: 0; }
  .chip { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 500; }
  .brand__name { font-size: 1.7rem; }
  .brand__mark { width: 46px; height: 46px; }
  .has-hero .topbar { background: rgba(6, 9, 20, .9); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

/* ── Structură + meniu lateral (desktop mare) ─────────────────────────────── */
.shell { display: block; }
.side { display: none; }
.main { min-width: 0; }
@media (min-width: 1200px) {
  .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .side {
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: var(--tb); height: calc(100vh - var(--tb)); overflow-y: auto;
    padding: 20px 16px; border-right: 1px solid var(--line); background: rgba(6, 9, 20, .55); scrollbar-width: thin;
  }
}
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__link {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none;
  color: #d3d9ec; border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.side__link:hover { background: rgba(255, 255, 255, .06); }
.side__link.is-active { color: #fff; border-color: rgba(110, 150, 255, .85); background: rgba(50, 90, 230, .2); box-shadow: 0 0 18px rgba(91, 140, 255, .25); }
.side__ico { color: color-mix(in srgb, var(--c2) 55%, #fff); display: inline-flex; }
.side__title { margin: 18px 14px 6px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side__promo {
  margin-top: auto; padding: 18px; border-radius: 18px; border: 1px solid rgba(246, 199, 108, .55); color: var(--gold);
  background: linear-gradient(160deg, rgba(246, 199, 108, .12), rgba(246, 199, 108, .02)); box-shadow: 0 0 22px rgba(246, 199, 108, .12) inset;
}
.side__promo .ic { width: 26px; height: 26px; margin-bottom: 8px; }
.side__promo p { font: 500 1.05rem/1.35 var(--serif); }

/* ── Hero (faptul curent) ─────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--tb)); min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--tb) + 24px) 16px calc(20px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--bg2); }
.hero__fx {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 70% 22%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 70%),
    radial-gradient(70% 55% at 15% 75%, color-mix(in srgb, var(--c1) 85%, transparent), transparent 72%),
    linear-gradient(160deg, color-mix(in srgb, var(--c1) 60%, #060914), #060914 75%);
  transition: background .6s ease;
}
.hero__fx::before {                    /* stele / particule */
  content: ""; position: absolute; inset: -50%; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent 60%),
    radial-gradient(1px 1px at 90px 120px, #fff, transparent 60%),
    radial-gradient(1.4px 1.4px at 160px 60px, #ffe9b8, transparent 60%),
    radial-gradient(1px 1px at 230px 180px, #fff, transparent 60%),
    radial-gradient(1px 1px at 60px 210px, #cfe0ff, transparent 60%);
  background-size: 260px 260px;
  animation: drift 120s linear infinite;
}
.hero__fx::after {                     /* aură care respiră */
  content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -18vmax; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c2) 45%, transparent), transparent 65%);
  filter: blur(10px); animation: breathe 14s ease-in-out infinite alternate;
}
.hero__fx > .ic {                      /* pictograma categoriei, desen fin, mare */
  position: absolute; left: 50%; top: 34%; width: min(78vw, 420px); height: min(78vw, 420px); transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .16); stroke-width: .45; z-index: 1;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c2) 80%, transparent));
}
.hero__img {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover;
  will-change: transform; backface-visibility: hidden;
  /* apariție + efect Ken Burns (zoom lent înainte–înapoi, la nesfârșit) */
  animation: fadeIn .6s ease both, kenburns var(--kb-d, 22s) ease-in-out .3s infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(var(--kb-s, 1.12)) translate3d(var(--kb-tx, 0), var(--kb-ty, 0), 0); }
}
.hero__shade { z-index: 3;
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 9, 20, .96) 0%, rgba(6, 9, 20, .72) 30%, rgba(6, 9, 20, .12) 62%, rgba(6, 9, 20, .45) 100%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 640px; margin: 0 auto; }

.glass {
  background: var(--panel); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.fact { padding: 18px 20px 22px; transition: opacity .18s ease, transform .18s ease; }
.fact__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fact__cat {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--c2) 45%, #fff);
}
.fact__cat:hover { color: #fff; }
.fact__num { font-size: .74rem; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.fact__tools { margin-left: auto; display: flex; gap: 8px; }
.tool {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); transition: background .2s, border-color .2s, transform .15s;
}
.tool:hover { background: rgba(255, 255, 255, .12); }
.tool:active { transform: scale(.94); }
.tool__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool[aria-pressed="true"] { border-color: rgba(246, 199, 108, .8); color: var(--gold); }
.tool[aria-pressed="true"] .ic { fill: var(--gold); }
.fact__kicker { font: 500 .95rem/1.2 var(--serif); letter-spacing: .02em; color: var(--gold); opacity: .9; margin-bottom: 6px; }
.fact__text { font: 500 clamp(1.55rem, 6.6vw, 2.15rem)/1.2 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.hl { font-weight: 600; color: var(--gold); text-shadow: 0 0 22px rgba(246, 199, 108, .25); }
.fact__extra { margin-top: 12px; font-size: 1.02rem; line-height: 1.55; color: #cdd5ea; text-wrap: pretty; }
.fact__source { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.fact__source a { color: #c7d4ff; }

.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-next {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 440px; min-height: 60px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid rgba(246, 199, 108, .9); color: #ffe2a6; text-decoration: none; cursor: pointer;
  font: 600 1.12rem/1 var(--sans); letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(60, 40, 10, .55), rgba(20, 14, 4, .55));
  box-shadow: 0 0 0 1px rgba(246, 199, 108, .15) inset, 0 0 28px rgba(246, 199, 108, .35), 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-next:hover { box-shadow: 0 0 0 1px rgba(246, 199, 108, .3) inset, 0 0 38px rgba(246, 199, 108, .5), 0 10px 30px rgba(0, 0, 0, .35); }
.btn-next:active { transform: scale(.97); }
.btn-next .ic:first-child { width: 1.45em; height: 1.45em; }
.btn-next .ic:last-child { margin-left: auto; opacity: .8; }
.btn-next span { flex: 0 1 auto; }
.btn-next .ic:first-child + span { margin-right: auto; }
.is-loading .btn-next .ic:first-child { animation: spin .8s linear infinite; }
.hero__hint { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .hero__hint { display: none; } }

/* tranziții la schimbarea faptului */
.is-leave-next .fact { opacity: 0; transform: translateX(-28px); }
.is-leave-prev .fact { opacity: 0; transform: translateX(28px); }
.is-enter-next .fact { opacity: 0; transform: translateX(28px); transition: none; }
.is-enter-prev .fact { opacity: 0; transform: translateX(-28px); transition: none; }

@media (min-width: 900px) {
  .hero {
    margin: 20px 20px 0; border-radius: 28px; border: 1px solid var(--line);
    min-height: min(76vh, 720px); justify-content: center; padding: 56px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  }
  .hero__shade { background: linear-gradient(90deg, rgba(6, 9, 20, .88) 0%, rgba(6, 9, 20, .55) 42%, rgba(6, 9, 20, .05) 75%), linear-gradient(0deg, rgba(6, 9, 20, .55), transparent 35%); }
  .hero__fx > .ic { left: 72%; top: 46%; width: min(42vw, 520px); height: min(42vw, 520px); }
  .hero__inner { margin: 0; max-width: 620px; gap: 22px; }
  .fact { padding: 28px 32px 30px; }
  .fact__text { font-size: clamp(2rem, 3.3vw, 2.9rem); }
  .fact__extra { font-size: 1.12rem; }
  .hero__cta { flex-direction: row; justify-content: flex-start; }
  .btn-next { width: auto; min-width: 300px; }
}

/* ── Carduri ─────────────────────────────────────────────────────────────── */
.more, .list { padding: 26px 16px 8px; }
.more__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.more__head h2 { font: 500 1.35rem/1.2 var(--serif); }
.more__head a { font-size: .88rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.more__head a:hover { color: #fff; }
.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.cards--grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); overflow: visible; margin: 0; padding: 0; }
.card {
  scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; border-radius: 18px;
  background: var(--panel-solid); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s;
  content-visibility: auto; contain-intrinsic-size: 240px 260px;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, var(--c1), #070b18 85%); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 22, 46, .95), transparent 60%); }
.card__fx { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(70% 70% at 70% 30%, color-mix(in srgb, var(--c2) 65%, transparent), transparent 70%); }
.card__fx .ic { width: 46%; height: 46%; color: rgba(255, 255, 255, .28); stroke-width: .8; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 16px; margin-top: -18px; position: relative; }
.card__meta { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c2) 45%, #fff); }
.card__meta .ic { width: 1.1em; height: 1.1em; }
.card__title { font: 500 1.02rem/1.3 var(--serif); color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__remove { margin: 0 14px 14px; align-self: flex-start; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; }
.card__remove:hover { color: #fff; border-color: #fff; }
.card-wrap { display: flex; flex-direction: column; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); overflow: hidden; }
.card-wrap .card { border: 0; border-radius: 0; flex: 1; }

@media (min-width: 900px) {
  .more, .list { padding: 30px 20px 8px; }
  .cards { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .cards--grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ── Pagini listă / gol / subsol ─────────────────────────────────────────── */
.list__head { margin-bottom: 18px; }
.list__head h1 { font: 500 1.8rem/1.2 var(--serif); display: flex; align-items: center; gap: 10px; }
.list__head h1 .ic { color: var(--gold); }
.list__head p, .list__empty { color: var(--muted); margin-top: 6px; }
.empty { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 16px; }
.empty--inline { min-height: 0; padding: 40px 0; }
.empty h1 { font: 500 1.7rem/1.2 var(--serif); }
.empty p { color: var(--muted); max-width: 30rem; }
.empty__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1.5px solid rgba(246, 199, 108, .6); }
.empty__icon .ic { width: 34px; height: 34px; }
.empty .btn-next { max-width: 340px; }
.foot { padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: rgba(20, 26, 52, .96); border: 1px solid var(--line-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: .92rem; animation: fadeUp .25s ease both;
}

/* ── Ecran fără scroll pe paginile cu informație ────────────────────────── */
body.has-hero { height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.has-hero .foot { display: none; }
.has-hero .hero {
  height: 100vh; height: 100dvh; min-height: 0;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.fact { display: flex; flex-direction: column; }
.fact > * { flex-shrink: 0; }
.fact__extra { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--clamp, 6); overflow: hidden; }
.fact.is-open .fact__extra { display: block; -webkit-line-clamp: unset; overflow-y: auto; overscroll-behavior: contain; -webkit-user-select: text; user-select: text; }
.fact__more {
  align-self: flex-start; min-height: 34px; margin-top: 4px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--gold); font: 600 .9rem var(--sans); text-decoration: underline; text-underline-offset: 3px;
}
.topbar__actions { gap: 6px; }
.iconbtn { width: 42px; height: 42px; }
@media (max-width: 380px) { .brand__name { font-size: 1.2rem; } .brand__mark { width: 36px; height: 36px; } }
@media (max-height: 720px) {
  .hero__hint, .fact__kicker { display: none; }
  .btn-next { min-height: 54px; }
  .fact { padding: 14px 16px 16px; }
  .hero__inner { gap: 12px; }
}
@media (min-width: 900px) {
  .has-hero .shell { height: calc(100vh - var(--tb)); height: calc(100dvh - var(--tb)); }
  .has-hero .main { height: 100%; display: flex; flex-direction: column; min-height: 0; }
  .has-hero .hero { flex: 1 1 auto; height: auto; min-height: 0; margin: 20px; }
  .side { padding-block: 14px; gap: 2px; }
  .side__link { min-height: 40px; }
}
@media (min-width: 900px) and (max-height: 820px) { .side__promo { display: none; } }

/* ── Imaginea: pe telefon zona de sus (cu fundal estompat din aceeași poză), pe desktop tot fundalul ── */
.hero__blur { display: none; }
@media (max-width: 899px) {
  .hero.has-img .hero__blur {
    display: block; position: absolute; top: -40px; left: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
    object-fit: cover; filter: blur(28px) brightness(.45) saturate(1.3); z-index: 1;
  }
  .hero.has-img .hero__img {
    height: var(--media-h, 60%);
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
  .hero.has-img .hero__shade { background: linear-gradient(180deg, rgba(6, 9, 20, .6) 0, rgba(6, 9, 20, 0) 24%, rgba(6, 9, 20, 0) 50%, rgba(6, 9, 20, .5) 100%); }
  .hero.has-img .hero__fx > .ic, .hero.has-img .fact__kicker { display: none; }
}

/* ── „Uimitor!” — butonul creier + explozia la dublu-tap ──────────────────── */
.tool--like { position: relative; }
.tool--like[aria-pressed="true"] { border-color: rgba(255, 122, 182, .85); color: #ff9cc9; box-shadow: 0 0 16px rgba(255, 122, 182, .35); }
.tool--like[aria-pressed="true"] .ic { fill: rgba(255, 122, 182, .35); }
.tool--like.is-pop { animation: likePop .45s ease; }
.tool__count {
  position: absolute; right: -6px; bottom: -6px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #ff7ab6; color: #2a0716; font: 700 .68rem/18px var(--sans); text-align: center;
}
.burst { position: absolute; z-index: 20; width: 140px; height: 140px; margin: -70px 0 0 -70px; pointer-events: none; }
.burst svg {
  width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 16px rgba(255, 122, 182, .8)) drop-shadow(0 0 36px rgba(246, 199, 108, .45));
  animation: brainPop 1s cubic-bezier(.2, 1.3, .4, 1) both;
}
.burst .spark { transform-origin: 50px 50px; animation: spark .7s ease-out .15s both; }
.burst .neurons circle { animation: neuron .8s ease-in-out both; }
.burst .neurons circle:nth-child(2) { animation-delay: .12s; }
.burst .neurons circle:nth-child(3) { animation-delay: .22s; }
.burst .neurons circle:nth-child(4) { animation-delay: .3s; }
.burst .neurons circle:nth-child(5) { animation-delay: .38s; }
.burst .neurons circle:nth-child(6) { animation-delay: .46s; }
.burst__label {
  position: absolute; left: 50%; top: 96%; white-space: nowrap; font: 800 1.05rem var(--sans); letter-spacing: .02em; color: #ffd6ea;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7), 0 0 18px rgba(255, 122, 182, .6); animation: labelUp 1.1s ease-out .08s both;
}
@keyframes brainPop {
  0% { transform: scale(0) rotate(-14deg); opacity: 0; }
  15% { opacity: 1; }
  35% { transform: scale(1.2) rotate(5deg); }
  52% { transform: scale(.94) rotate(-2deg); }
  68% { transform: scale(1.04) rotate(0); }
  82% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.12) translateY(-34px); opacity: 0; }
}
@keyframes spark { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes neuron { 0%, 100% { opacity: .15; } 35%, 65% { opacity: 1; } }
@keyframes labelUp { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -28px); } }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate3d(260px, 130px, 0); } }
@keyframes breathe { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
