/* Žogice za dvorano – slog gradnika. Vse je omejeno na .tkzd, da se ne tepe s temo strani. */
.tkzd {
  --tkzd-ink: #12263b;
  --tkzd-muted: #53677c;
  --tkzd-rule: #d3dde6;
  --tkzd-panel: #edf2f6;
  --tkzd-link: #1d5a8f;
  --tkzd-court: #2a5d8c;
  --tkzd-surround: #1c4366;
  --tkzd-line: #f1f5f8;
  --tkzd-ball: #dcf13d;
  --tkzd-ok: #2f7d4a;
  --tkzd-focus: #3b82c4;
  container-type: inline-size;
  font-family: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tkzd-ink);
  -webkit-font-smoothing: antialiased;
}
.tkzd *, .tkzd *::before, .tkzd *::after { box-sizing: border-box; }
.tkzd :where(p, h3, dl, dd, figure) { margin: 0; }
.tkzd button {
  -webkit-appearance: none; appearance: none;
  font-family: inherit; text-transform: none; letter-spacing: normal;
  box-shadow: none; min-height: 0; min-width: 0; line-height: 1.2; text-shadow: none;
}
.tkzd :focus-visible { outline: 3px solid var(--tkzd-focus); outline-offset: 3px; }

/* ---------- Rezultat ---------- */
.tkzd .tkzd-score {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: .75rem 2rem; margin-bottom: 1rem;
}
.tkzd .tkzd-big, .tkzd .tkzd-mid, .tkzd .tkzd-h, .tkzd .tkzd-n-num, .tkzd .tkzd-amount-val {
  font-family: "Barlow Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.tkzd .tkzd-big { display: block; font-weight: 700; font-size: clamp(3.4rem, 12cqi, 6rem); line-height: .82; letter-spacing: -.01em; }
.tkzd .tkzd-mid { display: block; font-weight: 600; font-size: clamp(2rem, 6cqi, 2.9rem); line-height: .9; }
.tkzd .tkzd-of { display: block; margin-top: .4rem; font-weight: 500; color: var(--tkzd-muted); }
.tkzd .tkzd-sum { text-align: right; }

/* ---------- Igrišče ---------- */
.tkzd .tkzd-court { width: 100%; }
.tkzd .tkzd-svg { display: block; width: 100%; height: auto; max-width: none; }
.tkzd .tkzd-sur { fill: var(--tkzd-surround); }
.tkzd .tkzd-srf { fill: var(--tkzd-court); }
.tkzd .tkzd-lines line { stroke: var(--tkzd-line); stroke-width: 9; stroke-linecap: square; }
.tkzd .tkzd-dots circle { fill: rgba(255, 255, 255, .2); }
.tkzd .tkzd-pv circle {
  fill: none; stroke: var(--tkzd-ball); stroke-width: 5.5;
  animation: tkzd-pulse 1.2s ease-in-out infinite alternate;
}
.tkzd .tkzd-net-band { stroke: rgba(8, 24, 40, .35); stroke-width: 30; }
.tkzd .tkzd-net-cord { stroke: #f4f7f9; stroke-width: 12; }
.tkzd .tkzd-net circle { fill: #0f2b44; stroke: #f4f7f9; stroke-width: 5; }
.tkzd .tkzd-ticks line { stroke: rgba(255, 255, 255, .35); stroke-width: 5; }
.tkzd .tkzd-ticks text {
  fill: rgba(255, 255, 255, .6);
  font-family: "Barlow Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600; font-size: 66px; letter-spacing: .02em;
}
.tkzd .tkzd-ticks .on { stroke: var(--tkzd-ball); fill: var(--tkzd-ball); }

.tkzd .tkzd-anim .b {
  animation: tkzd-drop .55s cubic-bezier(.3, 1.45, .55, 1) both;
  animation-delay: calc(var(--i) * 1.3s);
  transform-box: fill-box; transform-origin: 50% 50%;
}
.tkzd .tkzd-wait .b { animation-play-state: paused; }
@keyframes tkzd-drop {
  from { opacity: 0; transform: translateY(-60%) scale(.35); }
  to { opacity: 1; transform: none; }
}
@keyframes tkzd-pulse { from { opacity: .3; } to { opacity: 1; } }

.tkzd .tkzd-left { margin: 1rem 0 2.25rem; font-weight: 500; font-size: 1.05rem; }

/* ---------- Prispevek ---------- */
.tkzd .tkzd-give {
  display: grid; gap: 1.75rem 2.75rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "pick" "pay" "details";
  background: var(--tkzd-panel);
  border-radius: 20px;
  padding: clamp(1.25rem, 5cqi, 2.25rem);
}
.tkzd .tkzd-pick { grid-area: pick; }
.tkzd .tkzd-pay { grid-area: pay; }
.tkzd .tkzd-details { grid-area: details; }

.tkzd .tkzd-h { font-weight: 600; font-size: 2rem; line-height: 1.05; margin-bottom: .45rem; color: var(--tkzd-ink); letter-spacing: 0; text-transform: none; }
.tkzd .tkzd-p { color: var(--tkzd-muted); max-width: 40ch; margin-bottom: 1.4rem; }

.tkzd .tkzd-stepper { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 20rem; }
.tkzd .tkzd-step {
  flex: none; width: 3.1rem; height: 3.1rem; padding: 0; border-radius: 50%;
  border: 2px solid var(--tkzd-ink); background: transparent; color: var(--tkzd-ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tkzd .tkzd-step svg { width: 1.15rem; height: 1.15rem; }
.tkzd .tkzd-step path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tkzd .tkzd-step:hover:not(:disabled) { background: var(--tkzd-ink); color: var(--tkzd-panel); }
.tkzd .tkzd-step:disabled { opacity: .28; cursor: default; }
.tkzd .tkzd-n { display: flex; flex-direction: column; align-items: center; min-width: 7rem; }
.tkzd .tkzd-n-num { font-weight: 700; font-size: 3.6rem; line-height: .9; }
.tkzd .tkzd-n-word { font-weight: 500; color: var(--tkzd-muted); }

.tkzd .tkzd-range {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; max-width: 20rem; height: 2.4rem; margin: 1rem 0 0; padding: 0;
  background: transparent; cursor: pointer; border: 0;
}
.tkzd .tkzd-range:focus { outline: none; }
.tkzd .tkzd-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--tkzd-ink) var(--p, 0%), var(--tkzd-rule) var(--p, 0%));
}
.tkzd .tkzd-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f7ffc2, #ddf23e 42%, #a8c11b);
  box-shadow: 0 0 0 2px var(--tkzd-ink);
}
.tkzd .tkzd-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--tkzd-rule); }
.tkzd .tkzd-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--tkzd-ink); }
.tkzd .tkzd-range::-moz-range-thumb {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f7ffc2, #ddf23e 42%, #a8c11b);
  box-shadow: 0 0 0 2px var(--tkzd-ink);
}
.tkzd .tkzd-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--tkzd-ink), 0 0 0 6px var(--tkzd-focus); }
.tkzd .tkzd-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--tkzd-ink), 0 0 0 6px var(--tkzd-focus); }
.tkzd .tkzd-scale { display: flex; justify-content: space-between; max-width: 20rem; font-size: .85rem; color: var(--tkzd-muted); }

.tkzd .tkzd-amount {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  max-width: 20rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--tkzd-rule);
}
.tkzd .tkzd-amount-label { color: var(--tkzd-muted); font-weight: 500; }
.tkzd .tkzd-amount-val { font-weight: 600; font-size: 2.1rem; line-height: 1; }
.tkzd .tkzd-legend { margin-top: 1.1rem; font-size: .92rem; color: var(--tkzd-muted); }
.tkzd .tkzd-ring {
  display: inline-block; width: 1.15rem; height: 1.15rem; margin-right: .5rem; vertical-align: -.22em;
  border-radius: 50%; background: var(--tkzd-court);
  box-shadow: inset 0 0 0 3px var(--tkzd-court), inset 0 0 0 5.5px var(--tkzd-ball);
}

.tkzd .tkzd-qr { background: #fff; border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 0 0 1px var(--tkzd-rule); max-width: 290px; margin: 0 auto; }
.tkzd .tkzd-qr-img svg { display: block; width: 100%; height: auto; }
.tkzd .tkzd-qr figcaption { margin-top: .35rem; font-size: .9rem; line-height: 1.35; color: #33475b; text-align: center; }
.tkzd .tkzd-mobile { display: none; margin: 1rem auto 0; max-width: 290px; font-size: .92rem; color: var(--tkzd-muted); }
.tkzd .tkzd-btn {
  display: flex; justify-content: center; max-width: 290px; margin: .9rem auto 0; padding: .75rem 1rem;
  border: 2px solid var(--tkzd-ink); border-radius: 999px; background: transparent;
  color: var(--tkzd-ink) !important; font-weight: 600; text-decoration: none !important; cursor: pointer;
}
.tkzd .tkzd-btn:hover { background: var(--tkzd-ink); color: var(--tkzd-panel) !important; }
.tkzd .tkzd-missing { background: #fff; color: #12263b; border-radius: 16px; padding: 1.1rem 1.2rem; max-width: 290px; margin: 0 auto; }

.tkzd .tkzd-details { border-top: 1px solid var(--tkzd-rule); }
.tkzd .tkzd-details > div {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .25rem 1rem; align-items: baseline;
  padding: .65rem 0; border-bottom: 1px solid var(--tkzd-rule);
}
.tkzd .tkzd-details dt { font-size: .9rem; font-weight: 500; color: var(--tkzd-muted); }
.tkzd .tkzd-details dd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; font-weight: 500; overflow-wrap: anywhere; }
.tkzd .tkzd-mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.tkzd .tkzd-copy {
  padding: .15rem 0; border: 0; background: none; color: var(--tkzd-link);
  font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.tkzd .tkzd-copy.is-done { color: var(--tkzd-ok); text-decoration: none; }

.tkzd .tkzd-note { margin-top: 1rem; font-size: .9rem; color: var(--tkzd-muted); max-width: 68ch; }

@container (max-width: 460px) {
  .tkzd .tkzd-sum { text-align: left; }
  .tkzd .tkzd-details > div { grid-template-columns: minmax(0, 1fr); }
}
@container (min-width: 720px) {
  .tkzd .tkzd-give { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); grid-template-areas: "pick pay" "details pay"; }
  .tkzd .tkzd-pay { align-self: start; }
}
@media (hover: none) and (pointer: coarse) {
  .tkzd .tkzd-mobile { display: block; }
  .tkzd .tkzd-btn { background: var(--tkzd-ink); color: var(--tkzd-panel) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tkzd .tkzd-anim .b, .tkzd .tkzd-pv circle { animation: none; }
  .tkzd .tkzd-step { transition: none; }
}
