/* Campoff ievads. Tas pats palete un tas pats kustibas valoda ka parejai
   lietotnei: mainigie no styles.css, .3s parejas, viegla scale .98 uz
   pieskariena, un pilna apstasanas, ja cilveks kustibu nevelas. */

#ob-tour {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--night, #0B0F0E);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  opacity: 1;
  transition: opacity .26s ease;
}

#ob-tour.ob-hidden { display: none; }
#ob-tour.ob-fade { opacity: 0; }

.ob-card {
  width: 100%;
  max-width: 340px;
  text-align: center;
  color: var(--bone, #EDE7DC);
  position: relative;
}

.ob-art {
  width: 100%;
  max-width: 210px;
  margin: 0 auto 24px;
}

.ob-art svg { width: 100%; height: auto; display: block; }

.ob-title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 10px;
}

.ob-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ash, #8B948F);
  margin: 0 0 26px;
  min-height: 92px;
}

.ob-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 22px; }

.ob-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bone, #EDE7DC);
  opacity: .22;
  transition: opacity .3s ease, background .3s ease, box-shadow .3s ease;
}

/* Aktivais punkts deg tapat ka klatbutnes punkts tablo. */
.ob-dot-on {
  opacity: 1;
  background: var(--ember, #FF7A3D);
  box-shadow: 0 0 8px var(--ember, #FF7A3D);
}

.ob-next {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--ember, #FF7A3D);
  border-radius: var(--radius, 14px);
  background: var(--ember, #FF7A3D);
  color: #1A0E06;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, background .2s;
}

.ob-next:active { transform: scale(.98); }

/* Piesprausts pie parkla juma, nevis pie kartites: uz zema ekrana kartite
   aug uz augsu un poga, kas kariitos pie tas, aizietu aiz ekrana malas. */
.ob-skip {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px);
  right: 14px;
  background: none;
  border: 0;
  color: var(--bone, #EDE7DC);
  opacity: .5;
  font-size: 14px;
  padding: 8px 10px;
  cursor: pointer;
  transition: opacity .2s ease, transform .06s ease;
}

.ob-skip:active { transform: scale(.98); }
.ob-skip:hover { opacity: .8; }

.ob-next:focus-visible,
.ob-skip:focus-visible { outline: 2px solid var(--ember, #FF7A3D); outline-offset: 3px; }

body.ob-open { overflow: hidden; }

/* Katra ekrana saturs ienak ar isu nobidi uz augsu. Tas pats ritms, kas
   jau ir mera josla un gredzena parejas. */
@keyframes ob-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.ob-rise { animation: ob-rise .34s ease both; }

.ob-trust {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ash, #8B948F);
  text-align: left;
}

.ob-trust li { margin-bottom: 8px; }

#ob-reopen {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ash, #8B948F);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .2s ease;
}

#ob-reopen:hover { color: var(--bone, #EDE7DC); }
#ob-reopen:focus-visible { outline: 2px solid var(--ember, #FF7A3D); outline-offset: 3px; border-radius: 6px; }

/* Tapat ka liesmas elpa styles.css: ja cilveks kustibu nevelas, tas nav. */
@media (prefers-reduced-motion: reduce) {
  #ob-tour { transition: none; }
  .ob-rise { animation: none; }
  .ob-dot { transition: none; }
  .ob-next, .ob-skip, #ob-reopen { transition: none; }
  .ob-next:active, .ob-skip:active { transform: none; }
}
