/* Promotions: sign-up form, top bar, campaign page, share buttons (Shturko_Promo_Front). */
.shturko-waitlist {
  margin: 1rem 0 0;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f1dfb1;
  box-shadow: 0 6px 18px rgba(138, 90, 0, 0.06);
}
.shturko-waitlist__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #173a5e;
}
.shturko-waitlist__badge {
  padding: 0.12em 0.55em;
  border-radius: 999px;
  background: #e4572e;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.shturko-waitlist__lead {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #4a5561;
}
.shturko-waitlist__wish {
  margin: 0 0 0.7rem;
}
.shturko-waitlist .shturko-deck-picker--promo {
  display: block;
  max-width: none;
  margin: 0;
  z-index: 6;
}
.shturko-waitlist .shturko-deck-picker--promo.is-open { z-index: 40; }
.shturko-waitlist .shturko-deck-picker--promo .shturko-deck-picker__label {
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shturko-waitlist .shturko-deck-picker--promo .shturko-deck-picker__opt.is-active {
  background: #fff3e2 !important;
}
.shturko-waitlist .shturko-deck-picker--promo .shturko-deck-picker__check {
  color: #f04d23;
}
.shturko-waitlist .shturko-deck-picker--promo.is-open .shturko-deck-picker__list {
  position: relative;
  top: 8px;
  max-height: min(46vh, 360px);
}
.shturko-waitlist .shturko-deck-picker--promo.is-invalid .shturko-deck-picker__trigger {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.28);
}
.shturko-waitlist__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.shturko-waitlist__email {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d9dee5;
  border-radius: 999px;
  font-size: 1rem;
  background: #fff;
}
.shturko-waitlist__email:focus {
  outline: none;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}
.shturko-waitlist__btn {
  flex: 0 0 auto;
}
.shturko-waitlist__btn:disabled { opacity: 0.6;
}
.shturko-waitlist__consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #52606d;
  cursor: pointer;
}
.shturko-waitlist__consent input { margin-top: 0.2em; flex: 0 0 auto; }
.shturko-waitlist__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.shturko-waitlist__msg { margin: 0.6rem 0 0; font-weight: 400; font-size: 0.95rem; }
.shturko-waitlist__msg:empty { display: none; }
.shturko-waitlist__msg.is-ok { color: #2f7d32; }
.shturko-waitlist__msg.is-error { color: #c62828; }
.shturko-waitlist.is-done .shturko-waitlist__row,
.shturko-waitlist.is-done .shturko-waitlist__wish,
.shturko-waitlist.is-done .shturko-waitlist__consent { display: none; }

.shturko-waitlist__profile { margin-top: 0.45rem; }
.shturko-waitlist__after { display: none; margin: 0.5rem 0 0; font-size: 0.92rem; }
.shturko-waitlist.is-done .shturko-waitlist__after { display: block; }
.shturko-waitlist__after a { color: #173a5e; font-weight: 400; }

/* Top bar on every page while a campaign has «banner» on.
   It is fixed above the fixed site header (#masthead, Customizer CSS from
   bin/setup-homepage-nav.php). The inline script after the bar sets html.has-promo-bar
   and --promo-bar-h; --header-h then includes the bar, so the header, the page padding
   and every sticky toolbar that uses --header-h move down together. */
:root { --shturko-header-base: 82px; }
@media (max-width: 1024px) { :root { --shturko-header-base: 71px; } }
@media (max-width: 782px) { :root { --shturko-header-base: 65px; } }
html.has-promo-bar,
html.has-promo-bar body { --header-h: calc(var(--shturko-header-base) + var(--promo-bar-h, 0px)); }
/* The homepage owns a base header variable, so reserve the bar outside its hero. */
html.has-promo-bar .homepage--v2 { padding-top: var(--promo-bar-h, 0px) !important; }
/* :root body outranks the Customizer's body.admin-bar.home #masthead { top: 46px !important }. */
html.has-promo-bar:root body #masthead,
html.has-promo-bar:root body header.site-header {
  --header-h: var(--shturko-header-base);
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--promo-bar-h, 0px)) !important;
  min-height: var(--shturko-header-base);
}
.shturko-promo-bar {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  --promo-walk-height: 60px;
  height: 56px;
  box-sizing: border-box;
  padding: 0 5rem 0 1rem;
  isolation: isolate;
  background: #ffd7b0;
  color: #1f4568;
  border-bottom: 2px solid #e4572e;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.2;
  z-index: 101; /* above the header (100) */
}
.shturko-promo-bar__link {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px #ffd7b0, 0 -1px 2px #ffd7b0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
  color: #1f4568 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.shturko-promo-bar__text,
.shturko-promo-bar__short { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shturko-promo-bar__short { display: none; }
.shturko-promo-bar__badge {
  flex: 0 0 auto;
  position: relative;
  padding: 0.14em 0.48em;
  margin-block: -10px;
  transform: translateY(12px);
  border-radius: 999px;
  box-shadow: 0 3px 7px rgba(135, 51, 20, 0.2);
  text-shadow: none;
  background: #e4572e;
  color: #fff;
  font-size: 2.3rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.shturko-promo-bar__cta { flex: 0 0 auto; font-weight: 400; color: #d4461f; }
@media (max-width: 900px) {
  .shturko-promo-bar__text { display: none; }
  .shturko-promo-bar__short { display: inline; }
}
@media (max-width: 520px) {
  .shturko-promo-bar__link { gap: 0.45rem; }
}
@media (max-width: 420px) {
  .shturko-promo-bar__link { gap: 0.2rem; }
  .shturko-promo-bar__cta { display: none; }
  .shturko-promo-bar__badge { font-size: 2rem; }
}
/* Owner-requested promotion emphasis overrides the site's regular-only type layer. */
@layer shturko-regular-type {
  .shturko-promo-bar,
  .shturko-promo-bar .shturko-promo-bar__link,
  .shturko-promo-bar .shturko-promo-bar__link span { font-weight: 400 !important; }
  .shturko-promo-bar .shturko-promo-bar__link .shturko-promo-bar__event { font-weight: 900 !important; }
  .shturko-promo-bar .shturko-promo-bar__link .shturko-promo-bar__badge { font-weight: 800 !important; }
}
.shturko-promo-bar__event,
.shturko-promo-bar__date { font-size: 1.55rem; line-height: 1.1; }
.shturko-promo-bar[data-promo-bar="start"] .shturko-promo-bar__text { display: block; }
.shturko-promo-bar[data-promo-bar="start"] .shturko-promo-bar__short { display: none; }
@media (max-width: 600px) {
  .shturko-promo-bar[data-promo-bar="start"] .shturko-promo-bar__text { line-height: 1.2; }
  .shturko-promo-bar__intro { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; }
  .shturko-promo-bar__event { font-size: 1.15rem; letter-spacing: -0.025em; }
  .shturko-promo-bar__date { font-size: 1.15rem; letter-spacing: -0.025em; }
}
.shturko-promo-bar__link:hover .shturko-promo-bar__cta { text-decoration: underline; }
.shturko-promo-bar .shturko-promo-bar__close {
  position: absolute;
  z-index: 2;
  right: 0.4rem;
  top: calc(50% - 1rem);
  bottom: auto;
  margin-block: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  width: 2rem;
  height: 2rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f4568;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.shturko-promo-bar .shturko-promo-bar__close:hover,
.shturko-promo-bar .shturko-promo-bar__close:focus-visible { background: rgba(31, 69, 104, 0.08); }
@media (max-width: 600px) {
  .shturko-promo-bar { font-size: 1rem; padding-left: 0.65rem; }
}

/* Campaign page /promo/<slug>/ */
.shturko-promo-page {
  max-width: 1040px;
  margin: 0 auto;
  /* The site header is fixed (bin/setup-homepage-nav.php), so the page clears it itself. */
  padding: calc(var(--header-h, 82px) + 2rem) 16px 3rem;
}
.shturko-promo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.shturko-promo-hero__img { width: 100%; height: auto; border-radius: 22px; }
.shturko-promo-hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: #8a5a00;
}
.shturko-promo-hero__title { margin: 0 0 0.6rem; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; color: #173a5e; }
.shturko-promo-hero__lead { margin: 0; font-size: 1.05rem; color: #3e4c59; }
.shturko-promo-ended { padding: 1rem; border-radius: 14px; background: #fff4d6; font-weight: 400; }
.shturko-promo-steps { margin: 2.5rem 0 0; }
.shturko-promo-steps h2,
.shturko-share__title { font-size: 1.35rem; color: #173a5e; margin: 0 0 0.8rem; }
.shturko-promo-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.shturko-promo-steps li {
  counter-increment: step;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f1dfb1;
}
.shturko-promo-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: #f5a623;
  color: #fff;
  font-weight: 400;
}
@media (max-width: 760px) {
  .shturko-promo-hero,
  .shturko-promo-steps ol { grid-template-columns: minmax(0, 1fr); }
  .shturko-promo-page { padding-top: calc(var(--header-h, 65px) + 1.2rem); }
}

/* Share buttons */
.shturko-share { margin: 2.5rem 0 0; padding: 1.3rem; border-radius: 22px; background: #fff8e6; }
.shturko-share__lead { margin: -0.4rem 0 0.9rem; color: #52606d; }
.shturko-share__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Share buttons — design-system §8: same size and weight for all; networks keep
 * their own colour; «Сподели…» (the phone/computer share sheet) and «Копирай
 * линка» are the white secondary with an icon. Hover: lift + shadow only. */
.shturko-share__btn,
html body button.shturko-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  background: #52606d;
  box-shadow: 0 5px 14px rgba(31, 51, 67, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.shturko-share__btn[hidden] { display: none; }
.shturko-share__btn--facebook { background: #1877f2 !important; }
.shturko-share__btn--messenger { background: #0a7cff !important; }
.shturko-share__btn--viber { background: #7360f2 !important; }
.shturko-share__btn--whatsapp { background: #1f8f4e !important; }
.shturko-share__btn--telegram { background: #2a9fd6 !important; }
.shturko-share__btn--email { background: #173a5e !important; }
/* Both are <button>s, so they need the "html body button" weight to beat the white label above. */
.shturko-share__btn--native,
.shturko-share__btn--copy,
html body button.shturko-share__btn--native,
html body button.shturko-share__btn--copy {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #123b64 !important;
}
.shturko-share__btn--native::before,
.shturko-share__btn--copy::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--share-ico) center / contain no-repeat;
  mask: var(--share-ico) center / contain no-repeat;
}
.shturko-share__btn--native { --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M5 13v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3C/svg%3E"); }
.shturko-share__btn--copy { --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E"); }
.shturko-share__btn:is(:hover, :focus-visible),
html body button.shturko-share__btn:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 51, 67, 0.16);
  filter: none;
}
.shturko-share__btn--native:is(:hover, :focus-visible),
.shturko-share__btn--copy:is(:hover, :focus-visible),
html body button.shturko-share__btn--native:is(:hover, :focus-visible),
html body button.shturko-share__btn--copy:is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #123b64 !important;
}
.shturko-share__status { margin: 0.6rem 0 0; font-weight: 400; color: #2f7d32; }
.shturko-share__status:empty { display: none; }

/* Shop page: the form under the slider */
.shturko-waitlist-band {
  scroll-margin-top: calc(var(--header-h, 82px) + var(--promo-bar-h, 0px) + 16px);
  max-width: 640px;
  margin: 1.5rem auto 2rem;
  padding: 0 16px;
}

/* Sign-up pop-up (Shturko_Promo_Front::dialog) — opened from the bar and the product page.
 * It carries the whole campaign page, so it is nearly page-sized; the page stays visible
 * (blurred) around it and the × stays pinned while the content scrolls. */
/* The campaign pop-up is the shared wide .sh-dialog__panel (shturko-soft-ui.css); its content keeps its own inner padding. */
dialog.shturko-promo-dialog {
  padding: 0;
}
/* Thin, quiet scrollbar that stays inside the rounded corners. */
.shturko-promo-dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 69, 104, 0.28) transparent;
}
.shturko-promo-dialog::-webkit-scrollbar { width: 8px; }
.shturko-promo-dialog::-webkit-scrollbar-track { margin: 24px 0; background: transparent; }
.shturko-promo-dialog::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(31, 69, 104, 0.28) padding-box;
}
.shturko-promo-dialog::-webkit-scrollbar-thumb:hover { background: rgba(31, 69, 104, 0.45) padding-box; }
.shturko-promo-dialog::-webkit-scrollbar-button { display: none; height: 0; }
.shturko-promo-dialog__box {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
}
/* Zero-height sticky row: the × floats over the content and never scrolls away. */
.shturko-promo-dialog__top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  height: 0;
}
.shturko-promo-dialog__top .sh-dialog__close {
  position: static;
  margin: 14px 14px 0 0;
}
.shturko-promo-dialog .shturko-promo-hero { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.shturko-promo-dialog .shturko-promo-hero__copy { padding-right: 2.5rem; }
.shturko-promo-dialog .shturko-promo-hero__lead { margin: 0 0 1rem; color: #34506a; line-height: 1.55; }
.shturko-promo-dialog .shturko-promo-steps,
.shturko-promo-dialog .shturko-share { margin-top: 1.75rem; }
.shturko-promo-dialog__contact { margin: 1.25rem 0 0; font-size: 0.9rem; color: #5a7088; }
@media (max-width: 760px) {
  .shturko-promo-dialog .shturko-promo-hero__copy { padding-right: 0; }
  .shturko-promo-dialog .shturko-promo-hero__img { max-width: calc(100% - 3rem); }
}
/* Phone sheet: the × floats half outside (shturko-soft-ui.css); a white strip keeps the
 * scrolling text a little away from the sheet's top edge. */
@media (max-width: 600px) {
  .shturko-promo-dialog__top {
    height: 20px;
    margin-bottom: -20px;
    background: linear-gradient(#fff 60%, rgba(255, 255, 255, 0));
    pointer-events: none;
  }
  .shturko-promo-dialog__top .sh-dialog__close { pointer-events: auto; }
}
html.shturko-promo-dialog-open { overflow: hidden; }

/* Only the character lane clips at the edges; the discount badge can protrude. */
.shturko-cat-walk {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.shturko-cat-walk__traveller {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: calc(var(--promo-walk-height) * -0.57);
  width: calc(var(--promo-walk-height) * 16 / 9);
  height: var(--promo-walk-height);
  transform: translateX(100vw);
  will-change: transform;
}
.shturko-cat-walk__clip {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(calc(var(--promo-facing, -1) * var(--promo-squash, 1)));
  transition: transform 0.12s ease-in-out;
}
.shturko-promo-bar .shturko-promo-bar__sound {
  position: absolute;
  z-index: 2;
  right: 2.7rem;
  top: calc(50% - 1rem);
  bottom: auto;
  transform: none;
  width: 2rem;
  height: 2rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f4568;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.shturko-promo-bar__sound[hidden] { display: none; }
.shturko-promo-bar__sound:hover,
.shturko-promo-bar__sound:focus-visible { background: rgba(31, 69, 104, 0.08); }
.shturko-promo-bar__sound:focus-visible,
.shturko-promo-bar__close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .shturko-cat-walk__traveller { transform: translateX(calc(50vw - 50%)); }
}
body:has(.shturko-games-hub--playing) .shturko-cat-walk { display: none; }
