/* Scale / Slovakia — Damito hub-spoke, Návštevio brand */

.slide.cine.scale { overflow: hidden; }

.scale-layout {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: var(--content-top) var(--pad) calc(24px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.scale-head { max-width: 36em; }
.scale-head .kicker {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.scale-head h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.scale-head .lede {
  margin: 0;
  color: rgba(230,236,232,.78);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  font-weight: 550;
}

.scale-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(520px 280px at 50% 45%, rgba(47,138,78,.14), transparent 65%),
    linear-gradient(165deg, rgba(10, 24, 16, .55), rgba(4, 12, 8, .35));
  box-shadow: 0 28px 60px rgba(0,0,0,.35);
  overflow: hidden;
}

.scale-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.scale-wires path {
  fill: none;
  stroke: rgba(240,195,93,.55);
  stroke-width: 1.8;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
  animation: scaleDash 14s linear infinite;
  filter: drop-shadow(0 0 5px rgba(240,195,93,.35));
}
.scale-wires path.dim {
  stroke: rgba(255,255,255,.2);
  stroke-width: 1.4;
  filter: none;
  animation: none;
}
@keyframes scaleDash { to { stroke-dashoffset: -200; } }

.scale-packets {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.scale-packet {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #7dcea0;
  box-shadow: 0 0 12px rgba(125,206,160,.8);
  opacity: 0;
  will-change: transform, opacity;
}
.scale-packet.gold {
  background: #f0c35d;
  box-shadow: 0 0 12px rgba(240,195,93,.85);
  border-radius: 3px;
}

.scale-card {
  position: absolute;
  z-index: 2;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(165deg, rgba(22, 44, 32, .92), rgba(8, 18, 12, .88));
  box-shadow: 0 22px 44px rgba(0,0,0,.4);
  backdrop-filter: blur(12px);
  padding: 14px 16px;
  transition: border-color .45s ease, box-shadow .45s ease, background .45s ease;
}
.scale-card.is-lit {
  border-color: rgba(125,206,160,.35);
  box-shadow: 0 0 22px rgba(47,138,78,.18);
  background: linear-gradient(165deg, rgba(28, 56, 40, .94), rgba(8, 18, 12, .9));
}
.scale-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.scale-card .tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
}
.scale-card .tag.live i { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.6); }
.scale-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}
.scale-card p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.35;
  font-weight: 650;
}

/* hub center */
.sc-hub {
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(280px, 34%);
  text-align: center;
  border-color: rgba(240,195,93,.35);
  background:
    radial-gradient(180px 120px at 50% 0%, rgba(240,195,93,.18), transparent 60%),
    linear-gradient(180deg, rgba(28, 52, 38, .95), rgba(8, 20, 14, .92));
  padding: 22px 18px 18px;
  z-index: 4;
}
.sc-hub.is-lit {
  border-color: rgba(240,195,93,.5);
  box-shadow: 0 0 36px rgba(232,162,58,.2);
}
.sc-hub .hub-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff1c2, #e8a23a 55%, #c96f12);
  color: #1a1408;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(232,162,58,.35);
}
.sc-hub strong {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.sc-hub .hub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
}
.sc-hub .hub-stats div {
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}
.sc-hub .hub-stats b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -.03em;
}
.sc-hub .hub-stats span {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  font-weight: 650;
}

/* map card */
.sc-map {
  right: 4%;
  top: 10%;
  width: min(300px, 28%);
}
.sk-map {
  position: relative;
  height: 158px;
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 48%, rgba(47,138,78,.16), transparent 58%),
    rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}
.sk-map .sk-outline {
  position: absolute;
  inset: 10% 4% 12% 4%;
  width: 92%;
  height: 78%;
}
.sk-map .sk-outline path {
  fill: rgba(47,138,78,.18);
  stroke: rgba(125,206,160,.85);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(74,222,128,.25));
}
.sk-pin {
  position: absolute;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,.65);
  transform: translate(-50%, -50%);
  animation: pinSoft 2.8s ease-in-out infinite;
}
.sk-pin.xs {
  width: 2.5px;
  height: 2.5px;
  opacity: .45;
  box-shadow: 0 0 4px rgba(125,206,160,.45);
  animation-duration: 3.6s;
}
.sk-pin.sm { width: 5px; height: 5px; opacity: .7; }
.sk-pin.md { width: 8px; height: 8px; }
.sk-pin.lg {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px rgba(74,222,128,.8);
}
.sk-pin.gold {
  background: #f0c35d;
  box-shadow: 0 0 10px rgba(240,195,93,.75);
}
.sk-pin.gold.xs { box-shadow: 0 0 4px rgba(240,195,93,.4); opacity: .4; }
.sk-pin.gold.lg { box-shadow: 0 0 14px rgba(240,195,93,.9); }
.sk-pin:nth-child(3n) { animation-delay: .35s; }
.sk-pin:nth-child(3n+1) { animation-delay: .7s; }
.sk-pin:nth-child(3n+2) { animation-delay: 1.1s; }
.sk-pin:nth-child(5n) { animation-delay: 1.5s; }
@keyframes pinSoft {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .55; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.sk-pin.xs {
  animation-name: pinTiny;
}
@keyframes pinTiny {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .28; }
  50% { transform: translate(-50%, -50%) scale(1.35); opacity: .7; }
}
.map-langs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.map-langs span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
}
.map-langs span.on {
  background: rgba(47,138,78,.25);
  border-color: rgba(47,138,78,.4);
  color: #dff5e7;
}

/* city satellites */
.sc-city {
  width: min(168px, 18%);
  padding: 12px 14px;
}
.sc-city b {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -.03em;
  margin: 4px 0 2px;
}
.sc-c1 { left: 5%; top: 14%; }
.sc-c2 { left: 8%; top: 42%; }
.sc-c3 { left: 6%; bottom: 14%; }
.sc-c4 { left: 28%; top: 8%; }

/* report + chart */
.sc-report {
  right: 5%;
  bottom: 10%;
  width: min(280px, 28%);
}
.report-rows {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.report-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
}
.report-rows em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-weight: 800;
}
.report-rows .ok { color: #7dcea0; }
.report-rows .soon { color: #f0c35d; }

.sc-chart {
  right: 32%;
  bottom: 8%;
  width: min(220px, 22%);
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin-top: 10px;
  overflow: hidden;
  padding-top: 4px;
}
.mini-bars i {
  flex: 1;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, #f0c35d 0%, #7dcea0 42%, #2f8a4e 100%);
  height: var(--h, 40%);
  transform: translateY(110%) scale(.55);
  transform-origin: bottom center;
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(.34, 1.45, .64, 1),
    opacity 0.35s ease,
    height 0.7s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 0 14px rgba(240,195,93,.28);
  will-change: transform, height, opacity;
}
.mini-bars.is-grown i {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mini-bars i:nth-child(1) { transition-delay: .02s, .02s, 0s; }
.mini-bars i:nth-child(2) { transition-delay: .1s, .1s, 0s; }
.mini-bars i:nth-child(3) { transition-delay: .18s, .18s, 0s; }
.mini-bars i:nth-child(4) { transition-delay: .26s, .26s, 0s; }
.mini-bars i:nth-child(5) { transition-delay: .34s, .34s, 0s; }
.mini-bars i:nth-child(6) { transition-delay: .42s, .42s, 0s; }
.mini-bars i:nth-child(7) { transition-delay: .5s, .5s, 0s; }
.chart-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255,255,255,.45);
  font-weight: 700;
}

.scale-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.scale-foot article {
  padding: 8px 14px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.scale-foot article:last-child { border-right: 0; }
.scale-foot b {
  display: block;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -.03em;
}
.scale-foot span {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 650;
}

@media (max-width: 900px) {
  .slide.cine.scale { overflow: visible; }
  .scale-layout {
    overflow: visible;
    height: auto;
    min-height: 0;
    padding-top: var(--content-top);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    gap: 12px;
    align-content: start;
  }
  .scale-head h2 { font-size: clamp(28px, 7vw, 36px); }
  .scale-head .lede { font-size: 14px; }

  .scale-wires,
  .scale-packets { display: none !important; }

  .scale-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding: 12px;
    overflow: visible;
  }

  .scale-card {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    inset: auto !important;
  }

  .sc-hub {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    padding: 16px;
  }
  .sc-hub strong { font-size: 22px; }
  .sc-map,
  .sc-report,
  .sc-chart {
    grid-column: 1 / -1;
  }
  .sk-map { height: 140px; }
  .sc-city b { font-size: 18px; }

  .scale-foot {
    grid-template-columns: 1fr 1fr;
  }
  .scale-foot article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 6px;
  }
}

@media (max-width: 560px) {
  .scale-stage { grid-template-columns: 1fr; }
  .scale-foot { grid-template-columns: 1fr; }
  .sc-hub .hub-stats { grid-template-columns: 1fr 1fr 1fr; }
  .nav-controls .nav-label { display: none; }
}
