/* elu.sk · Vianoce 2026 · „Štedrovečerné veštenie". Všetko pod .elx3 / .elx-*, mimo titulky sa nič nemení.
   Písmo je Roboto zo šablóny, tlačidlá v tvare a farbe elu.sk. */
.elx-on .elx-replaced { display: none !important; } /* pôvodný karusel nahrádza scéna */

.elx3 {
  --ink: #1f1a17; --ink-2: #4b423b; --paper: #f4efe7; --line: #ddd3c5; --brand: #3b7580; --brand-d: #2f5f68; --ok: #1f7a4d;
  --pad: max(16px, calc((100% - 1138px) / 2));
  color: var(--ink); margin: 0 0 36px; text-align: left; font-family: inherit; -webkit-font-smoothing: antialiased;
}
.elx3 *, .elx3 *::before, .elx3 *::after { box-sizing: border-box; }
.elx3 a { text-decoration: none; }
.elx3 img { display: block; max-width: none; }
.elx3 [hidden] { display: none !important; }
.elx3 a:focus-visible, .elx3 button:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }

/* ---------- scéna ---------- */
.elx3-hero { position: relative; background: #2a2622; }
.elx3-art { position: relative; overflow: hidden; height: clamp(440px, calc(100vw / 2.204), 720px); }
.elx3-stage { position: absolute; }
.elx3-img, .elx3-vid { position: absolute; inset: 0; width: 100%; height: 100%; }
.elx3-vid { opacity: 0; pointer-events: none; }
.elx3--vid .elx3-vid { opacity: 1; }

/* záplaty: jablko a orech sa prelínajú, tanier sa odsunie a odkryje šupinu */
.elx3-p, .elx3-plate { position: absolute; opacity: 0; pointer-events: none; }
.elx3-p { width: 100%; height: 100%; transition: opacity .45s ease; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.elx3-p--pod { -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent); mask-image: radial-gradient(closest-side, #000 86%, transparent); }
.elx3-plate { filter: drop-shadow(-6px 14px 14px rgba(20, 12, 6, .45)); transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.elx3-plate img { width: 100%; height: 100%; -webkit-mask-image: radial-gradient(closest-side, #000 98.4%, transparent 99.6%); mask-image: radial-gradient(closest-side, #000 98.4%, transparent 99.6%); }
.elx3--jablko .elx3-p--jablko, .elx3--orech .elx3-p--orech { opacity: 1; }
.elx3--tanier .elx3-p--pod, .elx3--tanier .elx3-plate { opacity: 1; }
.elx3--tanier .elx3-plate { transform: translate(-31%, 19%) rotate(-7deg); }
.elx3--intro .elx3-p, .elx3--intro .elx3-plate { opacity: 0 !important; }

/* miesta na kliknutie: celý predmet, viditeľná je len malá bodka a popis */
.elx3-spot { position: absolute; z-index: 2; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.elx3-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #f3e6cf; box-shadow: 0 0 0 1.5px rgba(31, 26, 23, .6), 0 1px 3px rgba(0, 0, 0, .35); transition: opacity .3s ease, transform .2s ease; }
.elx3-lbl { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); padding: 5px 9px; font-style: normal; border-radius: 4px; background: rgba(31, 26, 23, .82); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; transition: opacity .3s ease; }
.elx3-spot:hover .elx3-dot, .elx3-spot:focus-visible .elx3-dot { transform: scale(1.25); }
.elx3-spot[aria-pressed="true"] { cursor: default; }
.elx3-spot[aria-pressed="true"] .elx3-dot, .elx3-spot[aria-pressed="true"] .elx3-lbl { opacity: 0; }
.elx3--intro .elx3-dot, .elx3--intro .elx3-lbl { opacity: 0; }
.elx3-spot:focus-visible { outline-offset: -6px; }

.elx3-ctl { position: absolute; right: 12px; bottom: 12px; z-index: 3; min-height: 36px; padding: 0 12px; border: 0; border-radius: 4px; background: rgba(31, 26, 23, .72); color: #fff; font: 500 13px/1 inherit; cursor: pointer; }
.elx3-ctl:hover { background: rgba(31, 26, 23, .9); }

/* ---------- text: na počítači svetlé písmo priamo na tmavšom obruse (kontrast 6–8 : 1), na mobile tmavé na papieri ---------- */
.elx3-copy { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pad); width: min(470px, 36%); display: flex; flex-direction: column; justify-content: center;
  --t1: #fbf7f1; --t2: rgba(251, 247, 241, .9); color: var(--t1); text-shadow: 0 1px 2px rgba(20, 14, 10, .45); }
.elx3-kicker { margin: 0 0 10px; font-size: 16px; font-weight: 500; color: var(--t2); }
.elx3-h { margin: 0; font-family: inherit; font-size: clamp(34px, 3.4vw, 50px); font-weight: 700; line-height: 1.06; letter-spacing: -.015em; color: var(--t1); text-transform: none; }
.elx3-lead { margin: 16px 0 0; font-size: 18px; line-height: 1.45; color: var(--t2); }
.elx3-btn, .elx3-code { text-shadow: none; }
.elx3-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.elx3-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 2px solid var(--brand); border-radius: 4px; background: var(--brand); color: #fff !important; font: 700 17px/1 inherit; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.elx3-btn:hover { background: var(--brand-d); border-color: var(--brand-d); }
.elx3-btn--ghost { border-color: var(--t1); background: transparent; color: var(--t1) !important; }
.elx3-btn--ghost:hover { border-color: var(--t1); background: rgba(251, 247, 241, .14); color: var(--t1) !important; }
.elx3-status { margin: 14px 0 0; font-size: 15px; color: var(--t2); }
.elx3-skip { padding: 0; border: 0; background: none; color: var(--t2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-shadow: inherit; }
.elx3-skip:hover { color: var(--t1); }
.elx3-msg { margin: 16px 0 0; max-width: 28em; font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--t1); text-shadow: 0 1px 3px rgba(12, 8, 6, .75), 0 0 12px rgba(12, 8, 6, .45); }
.elx3-msg a { color: var(--t1) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.elx3-code { margin: 12px 0 0; padding: 14px; border-radius: 4px; background: #fbf7f1; }
.elx3-code__k { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.elx3-code__v { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 6px; }
.elx3-code__v strong { font: 700 26px/1.1 "Roboto Mono", Consolas, monospace; letter-spacing: .06em; color: var(--ink); user-select: all; }
.elx3-copybtn { min-height: 40px; padding: 0 14px; border: 2px solid var(--brand); border-radius: 4px; background: #fff; color: var(--brand-d); font: 700 15px/1 inherit; cursor: pointer; }
.elx3-copybtn:hover { background: #eef5f6; }
.elx3-code__t { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ---------- vstupy podľa záujmu a výber darčekov ---------- */
.elx-chips { display: flex; gap: 8px; padding: 18px var(--pad) 0; }
.elx-chips a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink) !important; font-size: 15px; font-weight: 500; white-space: nowrap; }
.elx-chips a:hover { border-color: var(--brand); color: var(--brand-d) !important; }
.elx-gifts { padding: 40px var(--pad) 0; scroll-margin-top: 16px; }
.elx-h2 { margin: 0; font-family: inherit; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); text-transform: none; }
.elx-sub { margin: 6px 0 24px; font-size: 15px; color: var(--ink-2); }
.elx-group { margin-bottom: 26px; scroll-margin-top: 16px; }
.elx-group__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.elx-group__h h3 { margin: 0; font-family: inherit; font-size: 20px; font-weight: 700; color: var(--ink); text-transform: none; }
.elx-group__h a { font-size: 14px; font-weight: 500; color: var(--brand-d) !important; text-decoration: underline; text-underline-offset: 3px; }
.elx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.elx-cards li { margin: 0; padding: 0; }
.elx-cards li::before { content: none; }
.elx-card { display: flex; flex-direction: column; height: 100%; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink) !important; transition: border-color .15s ease; }
.elx-card:hover { border-color: var(--brand); }
.elx-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 10px; }
.elx-card__n { flex: 1; margin-bottom: 8px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.elx-price { font-size: 19px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.elx-avail { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ok); }
.elx-avail--later { color: #7a5a12; }

/* ---------- mobil a tablet: scéna hore, text pod ňou ---------- */
@media (max-width: 1023px) {
  .elx3 { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-bottom: 28px; } /* von z odsadeného stĺpca šablóny */
  .elx3-hero { background: var(--paper); }
  .elx3-art { height: auto; aspect-ratio: 2504 / 2087; max-height: 62svh; }
  .elx3-copy { position: static; width: auto; padding: 14px 16px 0; --t1: var(--ink); --t2: var(--ink-2); text-shadow: none; }
  .elx3-kicker { color: #6a2a22; }
  .elx3-msg { font-size: 16px; font-weight: 400; text-shadow: none; }
  .elx3-btn--ghost { border-color: var(--brand); color: var(--brand-d) !important; }
  .elx3-btn--ghost:hover { background: #fff; border-color: var(--brand-d); color: var(--brand-d) !important; }
  .elx3-kicker { margin-bottom: 4px; font-size: 14px; }
  .elx3-h { font-size: clamp(26px, 7.2vw, 34px); }
  .elx3-lead { margin-top: 8px; font-size: 15px; }
  .elx3-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; }
  .elx3-btn { min-height: 48px; padding: 0 10px; font-size: 16px; }
  .elx3-lbl { display: none; }
  .elx3-dot { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
  .elx3-code { background: #fff; border: 1px solid var(--line); }
  .elx-chips { gap: 8px; padding: 16px 16px 0; }
  .elx-chips a { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 14px; }
  .elx-gifts { padding: 28px 16px 0; scroll-margin-top: 118px; } /* lepivá mobilná hlavička s hľadaním */
  .elx-group { scroll-margin-top: 122px; }
  .elx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .elx-card { padding: 10px 10px 12px; }
  .elx-card__n { font-size: 14px; }
  .elx-price { font-size: 17px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .elx-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .elx3 *, .elx3 *::before, .elx3 *::after { transition: none !important; }
}
/* živý plameň: malé video presne nad sviečkou, mäkké okraje */
.elx3-flame { position: absolute; z-index: 1; opacity: 0; pointer-events: none; object-fit: fill; transition: opacity .6s ease;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.elx3--flame .elx3-flame { opacity: 1; }
.elx3--intro .elx3-flame { opacity: 0 !important; }
