/* Scheme reduse la loto — demo Voost Vision
   Identitate: navy „studio de extragere" + auriu, bile de loto colorate pe decade. */

:root {
  --bg: #f6f3ec;
  --surface: #fffdf7;
  --surface-2: #efeadf;
  --ink: #16222e;
  --ink-soft: #3d4a58;
  --muted: #6b7684;
  --line: #ded7c6;
  --line-soft: #e9e3d5;

  --navy: #0e1c2b;
  --navy-2: #16293d;
  --navy-3: #1e344c;

  --gold: #c9a227;
  --gold-strong: #8a6a10;
  --gold-deep: #7d5c0a;
  --gold-light: #eed27f;
  --gold-soft: #f3e7c8;

  --green: #1e6f45;
  --green-soft: #e0efe5;
  --red-soft: #b3442e;

  /* bile pe decade (conventia culorilor de loto) */
  --d0: #cf4b38; --d0l: #ef8a76; --d0d: #8f2c1e;
  --d1: #2f6fb8; --d1l: #7aa8dd; --d1d: #1d4a80;
  --d2: #2e8b57; --d2l: #74bd97; --d2d: #1c5c38;
  --d3: #db8f0e; --d3l: #f2c05f; --d3d: #96600a;
  --d4: #7a4fb5; --d4l: #ab8ad4; --d4d: #533578;
  --d5: #22909c; --d5l: #6fc0c9; --d5d: #145f68;

  --shadow: 0 1px 2px rgba(22, 34, 46, .06), 0 8px 24px rgba(22, 34, 46, .08);
  --shadow-deep: 0 2px 6px rgba(9, 18, 28, .35), 0 18px 44px rgba(9, 18, 28, .28);
  --radius: 16px;
  --spring: cubic-bezier(.34, 1.56, .5, 1);
  --font-display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --font-text: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.012em; }

/* ============ BILA DE LOTO (componenta de brand) ============ */

.lball {
  --lb: 34px;
  --lb-c: var(--gold); --lb-cl: var(--gold-light); --lb-cd: var(--gold-strong);
  width: var(--lb); height: var(--lb);
  border-radius: 50%;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.95) 0, rgba(255,255,255,.4) 10%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 34% 30%, var(--lb-cl) 0, var(--lb-c) 55%, var(--lb-cd) 100%);
  box-shadow:
    inset -3px -6px 9px rgba(0, 0, 0, .25),
    inset 2px 3px 5px rgba(255, 255, 255, .25),
    0 4px 10px rgba(9, 18, 28, .22);
}
.lball::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #ffffff 0 55%, #e7e1d2 100%);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .18);
}
.lball > i {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: #1c2733;
  font-size: calc(var(--lb) * .40);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.lball.sm { --lb: 28px; }
.lball.sm > i { font-size: 12px; }

/* culorile decadelor */
.d0 { --lb-c: var(--d0); --lb-cl: var(--d0l); --lb-cd: var(--d0d); }
.d1 { --lb-c: var(--d1); --lb-cl: var(--d1l); --lb-cd: var(--d1d); }
.d2 { --lb-c: var(--d2); --lb-cl: var(--d2l); --lb-cd: var(--d2d); }
.d3 { --lb-c: var(--d3); --lb-cl: var(--d3l); --lb-cd: var(--d3d); }
.d4 { --lb-c: var(--d4); --lb-cl: var(--d4l); --lb-cd: var(--d4d); }
.d5 { --lb-c: var(--d5); --lb-cl: var(--d5l); --lb-cd: var(--d5d); }

/* bila lovita la verificare */
.lball.hit { box-shadow: inset -3px -6px 9px rgba(0,0,0,.25), 0 0 0 3px var(--gold), 0 4px 12px rgba(201,162,39,.45); animation: pop .45s var(--spring); }
.lball.miss { opacity: .38; filter: saturate(.4); }

@keyframes pop {
  0% { transform: scale(.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ============ HEADER ============ */

.site-header {
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 42px; height: 42px; display: block; filter: drop-shadow(0 3px 5px rgba(9,18,28,.25)); transition: transform .4s var(--spring); }
.brand:hover svg { transform: rotate(-14deg) scale(1.06); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19.5px;
  letter-spacing: -.01em;
  display: block;
  line-height: 1.15;
}
.brand-name em { font-style: normal; color: var(--gold-deep); }
.brand-sub { display: block; font-family: var(--font-text); font-weight: 600; font-size: 11.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.site-nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--surface-2); text-decoration: none; }
.site-nav a.active { color: var(--gold-deep); background: var(--gold-soft); }

/* ============ SCENA (panoul navy de brand) ============ */

.stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 162, 39, .22), rgba(201, 162, 39, 0) 60%),
    linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 55%, #0a1522 100%);
  color: #eef2f6;
  border-radius: 22px;
  box-shadow: var(--shadow-deep);
  margin-top: 22px;
}
.stage-inner { position: relative; z-index: 2; padding: 58px 34px 54px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(238, 210, 127, .4);
  background: rgba(201, 162, 39, .12);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.stage h1 { font-size: clamp(33px, 5.6vw, 52px); margin-bottom: 16px; color: #fff; }
.stage h1 em { font-style: normal; color: var(--gold-light); position: relative; white-space: nowrap; }
.stage h1 em::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%; bottom: .04em;
  height: .14em;
  background: linear-gradient(90deg, rgba(201,162,39,.0), rgba(201,162,39,.75) 18% 82%, rgba(201,162,39,0));
  border-radius: 3px;
  z-index: -1;
}

.stage .lead {
  font-size: clamp(16.5px, 2.3vw, 19.5px);
  color: #b9c4cf;
  max-width: 620px;
  margin: 0 auto;
}

/* bile decorative plutitoare */
.stage-balls { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage-balls .lball { position: absolute; opacity: .5; animation: float 11s ease-in-out infinite alternate; }
.stage-balls .lball::before { opacity: .95; }
.stage-balls .b1 { --lb: 58px; top: 12%; left: 5%; animation-duration: 13s; }
.stage-balls .b2 { --lb: 30px; top: 64%; left: 12%; animation-duration: 9s; animation-delay: -3s; opacity: .38; }
.stage-balls .b3 { --lb: 44px; top: 16%; right: 7%; animation-duration: 12s; animation-delay: -6s; }
.stage-balls .b4 { --lb: 26px; top: 70%; right: 13%; animation-duration: 8s; animation-delay: -2s; opacity: .34; }
.stage-balls .b5 { --lb: 20px; top: 38%; right: 24%; animation-duration: 10s; animation-delay: -5s; opacity: .25; filter: blur(1px); }
.stage-balls .b6 { --lb: 22px; top: 34%; left: 20%; animation-duration: 12s; animation-delay: -8s; opacity: .25; filter: blur(1px); }

@keyframes float {
  from { transform: translateY(-10px) rotate(-6deg); }
  to { transform: translateY(12px) rotate(7deg); }
}

/* scena slim pentru subpagini */
.stage.slim .stage-inner { padding: 40px 30px 38px; }
.stage.slim h1 { font-size: clamp(26px, 4.2vw, 38px); margin-bottom: 10px; }
.stage.slim .lead { font-size: 16.5px; }

/* ============ PAGINA 1: alegerea formatului (in scena) ============ */

.picker { margin-top: 40px; }
.picker h2 { font-size: clamp(19px, 2.8vw, 23px); margin-bottom: 4px; color: #fff; }
.picker > p { color: #93a2b1; font-size: 15px; margin-bottom: 30px; }

.picker-row {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.6vw, 26px);
  flex-wrap: wrap;
}

/* cercul care devine bila de loto la hover */
.pick-ball {
  --lb: clamp(82px, 15vw, 106px);
  --lb-c: var(--gold); --lb-cl: var(--gold-light); --lb-cd: var(--gold-strong);
  width: var(--lb); height: var(--lb);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  border: 2.5px solid rgba(238, 242, 246, .35);
  color: #fff;
  cursor: pointer;
  transition: transform .45s var(--spring), border-color .25s ease, box-shadow .3s ease;
}
.pick-ball::before {
  content: "";
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.95) 0, rgba(255,255,255,.4) 10%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 34% 30%, var(--lb-cl) 0, var(--lb-c) 55%, var(--lb-cd) 100%);
  box-shadow: inset -4px -9px 14px rgba(0, 0, 0, .28), inset 3px 4px 8px rgba(255, 255, 255, .25);
  opacity: 0;
  transition: opacity .28s ease;
}
.pick-ball::after {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #ffffff 0 55%, #e7e1d2 100%);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: scale(.55);
  transition: opacity .28s ease, transform .4s var(--spring);
}
.pick-ball .face {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 40px);
  font-weight: 700;
  line-height: 1;
  transition: color .22s ease;
  text-align: center;
}
.pick-ball .face small {
  display: block;
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93a2b1;
  margin-top: 5px;
  transition: opacity .2s ease;
}
.pick-ball:hover, .pick-ball:focus-visible {
  transform: translateY(-8px) rotate(-9deg) scale(1.05);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(9, 18, 28, .45);
  text-decoration: none;
}
.pick-ball:hover::before, .pick-ball:focus-visible::before { opacity: 1; }
.pick-ball:hover::after, .pick-ball:focus-visible::after { opacity: 1; transform: scale(1); }
.pick-ball:hover .face, .pick-ball:focus-visible .face { color: #1c2733; }
.pick-ball:hover .face small, .pick-ball:focus-visible .face small { opacity: 0; height: 0; margin: 0; }

/* ============ SECTIUNI ============ */

.section { padding: 60px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(25px, 4vw, 33px); margin-bottom: 10px; }
.section-head h2 .tick { color: var(--gold); }
.section-head p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.step {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.section.alt .step { background: var(--bg); }
.step .lball { --lb: 40px; margin-bottom: 16px; }
.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ============ CARDURI PROGNOZE ============ */

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 3px 6px rgba(22,34,46,.07), 0 16px 34px rgba(22,34,46,.12); }
.card h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.card h3 .lball { --lb: 30px; }
.card h3 .lball > i { font-size: 11.5px; }
.card .meta { font-size: 13.5px; color: var(--muted); }
.card p { font-size: 15px; color: var(--ink-soft); }
.card .cta { margin-top: auto; font-weight: 700; font-size: 15px; }

.linklist { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.linklist a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.linklist a:hover { border-color: var(--gold); color: var(--gold-deep); text-decoration: none; transform: translateY(-2px); }

/* ============ BILE IN LISTE ============ */

.balls { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

/* ============ PAGINA 2: TABELUL ============ */

.k-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 34px 0 30px; }

.k-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform .25s var(--spring), border-color .2s ease, background .2s ease;
}
.k-tab .lball { --lb: 30px; }
.k-tab .lball > i { font-size: 13px; }
.k-tab small { font-family: var(--font-text); font-size: 12px; font-weight: 600; color: var(--muted); }
.k-tab:hover { transform: translateY(-2px); border-color: var(--gold); }
.k-tab.active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-deep); box-shadow: 0 4px 12px rgba(201, 162, 39, .25); }
.k-tab.active small { color: var(--gold-deep); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table.grid { border-collapse: collapse; width: 100%; min-width: 940px; }

table.grid th, table.grid td {
  text-align: center;
  padding: 8px 7px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

table.grid thead th {
  font-family: var(--font-display);
  font-size: 14px;
  background: var(--surface-2);
  color: var(--ink-soft);
}

table.grid tbody tr { transition: background .15s ease; }
table.grid tbody tr:hover { background: #faf7ef; }

table.grid tbody th {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-2);
  position: sticky;
  left: 0;
  min-width: 100px;
  color: var(--ink-soft);
}

table.grid .corner {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--muted);
  min-width: 100px;
}

/* celula live = bila de loto aurie */
a.cell-live {
  --lb: 36px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .25s ease;
}
a.cell-live > i { color: #1c2733; font-size: 13px; }
a.cell-live:hover {
  transform: translateY(-3px) rotate(-10deg) scale(1.18);
  box-shadow: inset -3px -6px 9px rgba(0,0,0,.25), 0 8px 16px rgba(201, 162, 39, .5);
}

.cell-soon {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 30px;
  border-radius: 999px;
  border: 1.5px dashed #d5cdb9;
  color: #b3aa97;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}
td.empty { color: #ddd7c7; font-size: 11px; }

.legend { display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap; margin: 20px 0 6px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 9px; }
.legend .lball { --lb: 24px; }
.legend .cell-soon { width: 24px; height: 20px; }

.footnote { text-align: center; font-size: 13.5px; color: var(--muted); max-width: 640px; margin: 10px auto 0; }

/* ============ PAGINA UNEI SCHEME ============ */

.scheme-head { padding: 34px 0 6px; }
.scheme-head .crumbs { font-size: 14px; margin-bottom: 16px; }
.scheme-head h1 { font-size: clamp(27px, 4.5vw, 38px); margin-bottom: 16px; }

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.goldb { background: var(--gold-soft); color: var(--gold-deep); }
.badge.plain { background: var(--surface-2); color: var(--ink-soft); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}
.panel h2 { font-size: 21px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.panel h2 .lball { --lb: 32px; }
.panel h2 .lball > i { font-size: 14px; }
.panel > p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; }

.tool-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }

select, input[type="text"] {
  font-family: var(--font-text);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
select:focus, input[type="text"]:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

.btn {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .2s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--navy-2); color: #fff; box-shadow: 0 6px 14px rgba(14, 28, 43, .3); }
.btn-gold { background: linear-gradient(160deg, var(--gold-light) -30%, var(--gold) 45%, #a8841a 100%); color: #241c04; box-shadow: 0 6px 16px rgba(201, 162, 39, .4); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

.pick-count { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.pick-count.ok { color: var(--green); }

/* grila de numere: cerc simplu -> bila decadei la hover/selectie */
.numgrid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }

.numgrid button {
  --lb: 44px;
  --lb-c: var(--gold); --lb-cl: var(--gold-light); --lb-cd: var(--gold-strong);
  width: var(--lb); height: var(--lb);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform .3s var(--spring), border-color .2s ease;
}
.numgrid button::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.95) 0, rgba(255,255,255,.4) 10%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 34% 30%, var(--lb-cl) 0, var(--lb-c) 55%, var(--lb-cd) 100%);
  box-shadow: inset -2px -5px 8px rgba(0, 0, 0, .26);
  opacity: 0;
  transition: opacity .22s ease;
}
.numgrid button::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fff 0 55%, #e7e1d2 100%);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .16);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .22s ease, transform .3s var(--spring);
}
.numgrid button span { position: relative; z-index: 1; }
.numgrid button:hover:not(:disabled) { transform: translateY(-3px) scale(1.08); border-color: transparent; }
.numgrid button:hover:not(:disabled)::before,
.numgrid button:hover:not(:disabled)::after { opacity: 1; }
.numgrid button:hover:not(:disabled)::after { transform: scale(1); }
.numgrid button.sel { border-color: transparent; animation: pop .4s var(--spring); }
.numgrid button.sel::before { opacity: 1; }
.numgrid button.sel::after { opacity: 1; transform: scale(1); }
.numgrid button:disabled { opacity: .32; cursor: not-allowed; }

/* variantele generate */
.variants { border-collapse: collapse; width: 100%; }
.variants th, .variants td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.variants th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.variants td.idx { font-family: var(--font-mono); color: var(--muted); width: 44px; font-variant-numeric: tabular-nums; }
.variants tbody tr { animation: dropin .5s var(--spring) both; }
.variants tr.best td { background: var(--green-soft); }
.variants td.hits { font-weight: 700; white-space: nowrap; }
.variants td.hits.good { color: var(--green); }

@keyframes dropin {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

.result-note { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--green); }

.demo-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-soft);
  background: #f7e5df;
  border-radius: 6px;
  padding: 3px 9px;
  vertical-align: middle;
}

/* ============ PROGNOZE ============ */

.post { margin-bottom: 48px; }
.post-head { margin-bottom: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.post-head .lball { --lb: 44px; }
.post-head .lball > i { font-size: 15px; }
.post-head h2 { font-size: clamp(23px, 3.6vw, 29px); }
.post-head .meta { flex-basis: 100%; color: var(--muted); font-size: 14.5px; margin-top: -6px; }
.post-note {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 14px 0 20px;
}

.remize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.remize {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.remize h3 { font-size: 16px; margin-bottom: 14px; }
.remize h3 .chip {
  background: var(--navy-2);
  color: #fff;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 13.5px;
  letter-spacing: .02em;
}
.remize table { border-collapse: collapse; width: 100%; }
.remize th, .remize td { padding: 8px 8px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.remize tbody tr:last-child td { border-bottom: none; }
.remize th { text-align: right; font-family: var(--font-mono); font-weight: 600; color: var(--muted); font-size: 12.5px; }
.remize th:first-child { text-align: left; font-family: var(--font-text); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.remize td.stat { text-align: right; font-family: var(--font-mono); color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.remize .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; }

.explain {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

/* ============ DESPRE ============ */

.about { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; max-width: 780px; margin: 0 auto; }
.about .lball { --lb: 88px; }
.about .lball > i { font-size: 26px; }
.about h2 { font-size: 26px; margin-bottom: 10px; }
.about p { color: var(--ink-soft); margin-bottom: 10px; }

/* ============ FOOTER ============ */

.site-footer {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #c6cdd6;
  padding: 44px 0 30px;
  margin-top: 68px;
  font-size: 14.5px;
}
.site-footer a { color: var(--gold-light); }
.site-footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.site-footer .fbrand { display: flex; align-items: center; gap: 10px; }
.site-footer .fbrand svg { width: 34px; height: 34px; }
.site-footer .fbrand b { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; display: block; line-height: 1.2; }
.site-footer .fbrand span { font-size: 12.5px; color: #8b98a6; }
.site-footer .legal { border-top: 1px solid #24384d; padding-top: 18px; font-size: 13px; color: #93a0ae; }
.site-footer .legal p { margin-bottom: 6px; }

/* ============ POPUP DEMO ============ */

.demo-note {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  max-width: 580px;
  margin: 0 auto;
  background: linear-gradient(165deg, var(--navy-3), var(--navy));
  color: #e9edf2;
  border: 1px solid rgba(238, 210, 127, .25);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-deep);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  animation: dropin .6s var(--spring);
}
.demo-note p { font-size: 14.5px; flex: 1 1 280px; }
.demo-note strong { color: var(--gold-light); }
.demo-note button {
  background: linear-gradient(160deg, var(--gold-light) -30%, var(--gold) 45%, #a8841a 100%);
  border: none;
  color: #241c04;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: transform .25s var(--spring);
}
.demo-note button:hover { transform: translateY(-2px); }

/* ============ RESPONSIVE ============ */

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .remize-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .stage { margin-top: 12px; border-radius: 18px; }
  .stage-inner { padding: 42px 20px 40px; }
  .stage-balls .b1 { --lb: 38px; }
  .stage-balls .b3 { --lb: 30px; }
  .stage-balls .b5, .stage-balls .b6 { display: none; }
  .site-header .wrap { justify-content: center; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about .lball { margin: 0 auto; }
  .numgrid button { --lb: 40px; font-size: 14px; }
  .panel { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .demo-note, .tool-controls, .numgrid, .btn, .k-tabs, .stage-balls { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
  .stage { background: #fff; color: #000; box-shadow: none; }
}
