/* ===== Tournament Tour — full-viewport hero carousel ===== */

body.tour-page,
body:has(.tour-hero) {
  overflow-x: hidden;
}

body.tour-page main,
body:has(.tour-hero) main {
  padding: 0 !important;
  margin-top: 56px;
  display: block;
  flex: 1;
}

body.tour-page #footer,
body.tour-page .partners-section,
body:has(.tour-hero) #footer,
body:has(.tour-hero) .partners-section {
  display: none !important;
}

.tour-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  transition: background-color 650ms cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
}

.tour-hero__viewport {
  position: relative;
  width: 100%;
  height: calc(100dvh - 56px);
  height: calc(100vh - 56px);
  min-height: 480px;
  overflow: hidden;
}

@media (max-width: 639px) {
  .tour-hero__viewport {
    min-height: 0;
    height: calc(100dvh - 56px);
    height: calc(100vh - 56px);
  }
}

@media (max-height: 700px) {
  .tour-hero__viewport {
    min-height: 0;
  }
}

/* Grain overlay */
.tour-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* Ghost text */
.tour-hero__ghost {
  position: absolute;
  inset-inline: 0;
  top: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.tour-hero__ghost span {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 12vw, 180px);
  font-weight: 400;
  color: #fff;
  opacity: 0.95;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 300ms ease;
}

/* Brand */
.tour-hero__brand {
  position: absolute;
  top: 1.25rem;
  left: 1rem;
  z-index: 60;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
  letter-spacing: 0.18em;
}

@media (min-width: 640px) {
  .tour-hero__brand {
    left: 2rem;
  }
}

/* Carousel */
.tour-carousel {
  position: absolute;
  inset: 0;
  z-index: 3;
  box-sizing: border-box;
}

.tour-slide {
  position: absolute;
  width: min(160px, 18vw);
  max-height: 100%;
  aspect-ratio: 0.62 / 1;
  height: auto;
  transition:
    transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 650ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
    left 650ms cubic-bezier(0.4, 0, 0.2, 1),
    width 650ms cubic-bezier(0.4, 0, 0.2, 1),
    bottom 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity;
}

.tour-slide.is-center {
  left: 50%;
  /* Sit above bottom copy/CTA, not under navbar */
  bottom: clamp(120px, 22vh, 200px);
  top: auto;
  width: min(280px, 34vw);
  height: auto;
  max-width: min(280px, 34vw);
  max-height: calc(100% - clamp(120px, 22vh, 200px) - clamp(56px, 8vh, 88px));
  aspect-ratio: 0.62 / 1;
  transform: translateX(-50%) scale(1);
  filter: none;
  opacity: 1;
  z-index: 20;
}

.tour-slide.is-left {
  left: 28%;
  bottom: calc(clamp(120px, 22vh, 200px) + 6%);
  width: min(160px, 18vw);
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
  z-index: 10;
}

.tour-slide.is-right {
  left: 72%;
  bottom: calc(clamp(120px, 22vh, 200px) + 6%);
  width: min(160px, 18vw);
  transform: translateX(-50%) scale(1);
  filter: blur(2px);
  opacity: 0.85;
  z-index: 10;
}

.tour-slide.is-back,
.tour-slide.is-far {
  left: 50%;
  bottom: calc(clamp(120px, 22vh, 200px) + 8%);
  width: min(130px, 14vw);
  transform: translateX(-50%) scale(1);
  filter: blur(4px);
  opacity: 0.5;
  z-index: 5;
  pointer-events: none;
}

.tour-slide.is-far {
  opacity: 0;
  z-index: 1;
  width: min(100px, 12vw);
}

@media (max-width: 899px) {
  .tour-slide.is-center {
    width: min(250px, 52vw);
    max-width: min(250px, 52vw);
  }
  .tour-slide.is-left {
    left: 16%;
    width: min(110px, 22vw);
  }
  .tour-slide.is-right {
    left: 84%;
    width: min(110px, 22vw);
  }
}

@media (max-width: 639px) {
  .tour-slide.is-center {
    left: 50%;
    width: min(240px, 72vw);
    max-width: min(240px, 72vw);
    /* More room for nav + dots under the phone */
    bottom: clamp(168px, 30vh, 230px);
    max-height: calc(100% - clamp(168px, 30vh, 230px) - 44px);
    /* Keep phone proportions when height is capped */
    height: auto;
    aspect-ratio: 0.62 / 1;
  }

  /* If max-height would squash, shrink width with height */
  .tour-slide.is-center .tour-phone {
    width: 100%;
    height: 100%;
  }

  .tour-slide.is-left {
    left: 4%;
    bottom: calc(clamp(168px, 30vh, 230px) + 2%);
    width: 56px;
    opacity: 0.55;
    filter: blur(1.5px);
  }

  .tour-slide.is-right {
    left: 96%;
    bottom: calc(clamp(168px, 30vh, 230px) + 2%);
    width: 56px;
    opacity: 0.55;
    filter: blur(1.5px);
  }

  .tour-slide.is-back,
  .tour-slide.is-far {
    display: none;
  }

  .tour-hero__ghost span {
    font-size: clamp(36px, 13vw, 84px);
  }

  .tour-hero__brand {
    top: 0.75rem;
    left: 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 639px) and (max-height: 700px) {
  .tour-slide.is-center {
    bottom: 150px;
    max-height: calc(100% - 150px - 36px);
    width: min(210px, 64vw);
    max-width: min(210px, 64vw);
  }

  .tour-slide.is-left,
  .tour-slide.is-right {
    display: none;
  }
}

/* Phone frame */
.tour-phone {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #1f1f24;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.12);
}

.tour-phone__chrome {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  background: #2a2a2f;
}

.tour-phone__chrome span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.tour-phone__chrome span:nth-child(1) { background: #ff5f57; }
.tour-phone__chrome span:nth-child(2) { background: #febc2e; }
.tour-phone__chrome span:nth-child(3) { background: #28c840; }

.tour-phone__screen {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f5f5f5;
  padding: 8px;
  color: #333;
  font-size: 10px;
  line-height: 1.3;
}

.tour-slide.is-center .tour-phone__screen {
  font-size: 11px;
}

/* Mock UI pieces */
.mock-card {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mock-card--tight { padding: 8px; }
.mock-card--center { text-align: center; }

.mock-card--scroll {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mock-card--scroll .mock-card__header {
  padding: 8px 8px 6px;
  margin-bottom: 0;
  background: #fff;
  flex-shrink: 0;
  z-index: 2;
}

.mock-form-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  container-type: size;
}

.mock-form-scroll {
  padding: 6px 8px 12px;
}

.tour-slide.is-center.is-playing .anim-register .mock-form-scroll {
  animation: registerFormScroll 20s ease-in-out forwards;
}

@keyframes registerFormScroll {
  0%, 10% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(calc(min(0px, -100% + 100cqh) * 0.2));
  }
  42% {
    transform: translateY(calc(min(0px, -100% + 100cqh) * 0.42));
  }
  60% {
    transform: translateY(calc(min(0px, -100% + 100cqh) * 0.65));
  }
  78% {
    transform: translateY(calc(min(0px, -100% + 100cqh) * 0.85));
  }
  90%, 100% {
    transform: translateY(min(0px, calc(-100% + 100cqh)));
  }
}

.mock-divider {
  height: 2px;
  background: #c5c5c5;
  border-radius: 1px;
  margin: 6px 0 8px;
  opacity: 0.85;
}

.mock-pwd-reqs {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  font-size: 0.72em;
  color: #28a745;
  opacity: 0;
  transform: translateY(4px);
}

.mock-pwd-reqs li {
  margin-bottom: 1px;
}

.mock-field--phone .mock-phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-phone-code {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.85em;
  font-weight: 600;
}

.mock-check-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.72em;
  color: #555;
  opacity: 0;
  transform: translateY(4px);
  margin-bottom: 4px;
  line-height: 1.25;
}

.mock-checkbox {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 1px;
  border: 1.5px solid #FF8C00;
  border-radius: 3px;
  background: #fff;
  position: relative;
}

.mock-checkbox.is-on::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  border-radius: 1px;
}

.mock-card__header {
  text-align: center;
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #FFD700, #FF8C00) 1;
  flex-shrink: 0;
}

.mock-field {
  background: #f8f9fa;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 5px 7px;
  margin-bottom: 5px;
  min-height: 0;
  flex-shrink: 0;
}

.mock-label {
  display: block;
  font-size: 0.72em;
  color: #999;
  margin-bottom: 1px;
}

.mock-typed {
  display: inline-block;
  font-weight: 600;
  color: #333;
  border-right: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  font-size: 0.95em;
}

.mock-checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 6px;
  flex-shrink: 0;
}

.mock-check {
  font-size: 0.78em;
  color: #28a745;
  opacity: 0;
  transform: translateY(4px);
}

.mock-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 7px;
  padding: 7px 10px;
  font-weight: 700;
  font-size: 0.85em;
  color: #333;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  cursor: default;
  opacity: 0;
  transform: scale(0.96);
  flex-shrink: 0;
}

.mock-btn--sm {
  width: auto;
  padding: 4px 7px;
  font-size: 0.72em;
  opacity: 1;
  transform: none;
}

.mock-btn--outline {
  background: #fff;
  border: 1px solid #E0E0E0;
  color: #666;
}

.mock-btn--disabled {
  opacity: 0.55 !important;
  transform: none !important;
  background: #ccc;
  color: #666;
}

.mock-success {
  margin-top: 6px;
  padding: 6px;
  border-radius: 6px;
  background: #d4edda;
  color: #155724;
  font-weight: 600;
  font-size: 0.8em;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  flex-shrink: 0;
}

.mock-banner {
  background: linear-gradient(90deg, #FFD700 0%, #FF8C00 100%);
  color: #333;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-align: center;
}

.tour-phone__screen.anim-tickets,
.tour-phone__screen.anim-play,
.tour-phone__screen.anim-results,
.tour-phone__screen.anim-shop {
  padding: 0;
  background: #f5f5f5;
}


/* Idle preview before .is-playing starts — avoid blank flash */
.tour-slide.is-center:not(.is-playing) .ticket-scene--profile {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.tour-slide.is-center:not(.is-playing) .ticket-scene--buy,
.tour-slide.is-center:not(.is-playing) .ticket-scene--pay,
.tour-slide.is-center:not(.is-playing) .ticket-scene--gateway,
.tour-slide.is-center:not(.is-playing) .ticket-scene--done {
  opacity: 0;
  visibility: hidden;
}

/* ===== Ticket purchase multi-scene (realistic profile + buy_tickets) ===== */
.ticket-scenes {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.ticket-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
}

.tour-slide.is-center.is-playing .ticket-scene--profile {
  animation: ticketSceneProfile 22s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .ticket-scene--buy {
  animation: ticketSceneBuy 22s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .ticket-scene--pay {
  animation: ticketScenePay 22s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .ticket-scene--gateway {
  animation: ticketSceneGateway 22s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .ticket-scene--done {
  animation: ticketSceneDone 22s ease-in-out forwards;
}

@keyframes ticketSceneProfile {
  0%, 14% { opacity: 1; visibility: visible; transform: translateX(0); }
  17%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes ticketSceneBuy {
  0%, 16% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  19%, 40% { opacity: 1; visibility: visible; transform: translateX(0); }
  43%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes ticketScenePay {
  0%, 42% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  45%, 52% { opacity: 1; visibility: visible; transform: translateX(0); }
  55%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes ticketSceneGateway {
  0%, 54% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  57%, 80% { opacity: 1; visibility: visible; transform: translateX(0); }
  83%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes ticketSceneDone {
  0%, 82% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  85%, 100% { opacity: 1; visibility: visible; transform: translateX(0); }
}

.tk-page {
  height: 100%;
  padding: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.tk-page--scroll {
  overflow: hidden;
}

.tk-info-banner--compact {
  padding: 6px 8px;
  font-size: 0.65em;
}

.tk-info-banner--compact .tk-info-banner__title {
  margin-bottom: 2px;
}

.tk-page__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.tk-page__title-row h3 {
  font-size: 0.95em;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.tk-back {
  font-size: 0.65em;
  color: #666;
  background: #e9ecef;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}

.tk-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.tk-card__head {
  background: #f8f9fa;
  border-bottom: 1px solid #E0E0E0;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 0.85em;
  color: #333;
}

.tk-card__title {
  font-weight: 700;
  font-size: 0.85em;
  padding: 8px 8px 4px;
  color: #333;
}

.tk-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}

.tk-stat {
  position: relative;
  text-align: center;
  border-radius: 8px;
  padding: 14px 4px 8px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.22);
  background: #fff;
}

.tk-stat--wallet {
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.25);
  border: 2px solid #dc3545;
}

.tk-stat--ok {
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.25);
}

.tk-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.58em;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 5px;
  color: #333;
}

.tk-badge--gold { background: #FFD700; }
.tk-badge--orange { background: #FF8C00; }

.tk-stat__title {
  font-size: 0.75em;
  font-weight: 600;
  color: #333;
}

.tk-stat__value {
  font-size: 1.35em;
  font-weight: 800;
  color: #333;
  line-height: 1.1;
}

.tk-stat__sub {
  font-size: 0.65em;
  color: #666;
  margin-top: 2px;
}

.tk-alert-danger {
  margin-top: 4px;
  font-size: 0.58em;
  color: #721c24;
  background: #f8d7da;
  border-radius: 4px;
  padding: 3px 4px;
  line-height: 1.2;
}

.tk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 8px;
}

.tk-action-btn {
  border: none;
  border-radius: 6px;
  padding: 7px 4px;
  font-size: 0.65em;
  font-weight: 700;
  color: #333;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  line-height: 1.2;
}

.tour-slide.is-center.is-playing .anim-wallet-tap {
  animation: walletPulse 1.1s ease-in-out 0.7s 2;
}

.tour-slide.is-center.is-playing .anim-buy-tap {
  animation: buyBtnPulse 0.85s ease-in-out 2.2s 2;
}

@keyframes walletPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.35); }
}

@keyframes buyBtnPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.08); box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.45); }
}

.tk-info-banner {
  background: linear-gradient(90deg, #FFD700 0%, #FF8C00 100%);
  color: #333;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.7em;
  line-height: 1.3;
  flex-shrink: 0;
}

.tk-info-banner__title {
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.tk-info-banner__line {
  font-weight: 700;
  margin: 4px 0 2px;
}

.tk-info-banner__check {
  margin-left: 2px;
  margin-bottom: 1px;
}

.tk-info-banner__check .fa-check {
  color: #28a745;
}

.tk-label {
  display: block;
  font-size: 0.7em;
  color: #666;
  padding: 0 8px;
  margin-bottom: 2px;
}

.tk-input {
  margin: 0 8px 8px;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 1em;
  color: #333;
  min-height: 28px;
}

.tour-slide.is-center.is-playing .anim-qty-wrap {
  animation: inputPulse 1.2s ease-in-out 4.2s 2;
}

.tour-slide.is-center.is-playing .anim-qty {
  border-right: 2px solid transparent;
  animation: caretPulse 1.2s steps(1) 4.2s 3;
}

@keyframes inputPulse {
  0%, 100% { border-color: #ced4da; box-shadow: none; }
  50% { border-color: #28a745; box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25); }
}

.tk-order-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  font-size: 0.72em;
  color: #333;
}

.tk-order-row .tk-label {
  padding: 0;
  flex-shrink: 0;
}

.tk-order-row small {
  color: #666;
  font-weight: 400;
}

.tk-order-row strong {
  text-align: right;
  font-size: 0.95em;
}

.tk-purchase-btn {
  display: block;
  width: calc(100% - 16px);
  margin: 8px;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8em;
  background: #6c757d;
  color: #fff;
  opacity: 0.7;
}

.tour-slide.is-center.is-playing .anim-purchase-btn {
  animation: purchaseReady 0.45s ease 7.2s forwards, buyBtnPulse 0.8s ease-in-out 7.8s 2;
}

@keyframes purchaseReady {
  to {
    opacity: 1;
    background: #28a745;
    color: #fff;
  }
}

.tk-pay-overlay {
  height: 100%;
  background: rgba(33, 37, 41, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.tk-pay-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tk-pay-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.8em;
  color: #333;
  margin-bottom: 2px;
}

.tk-pay-close {
  font-size: 1.2em;
  color: #999;
  line-height: 1;
}

.tk-pay-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid #0d6efd;
  border-radius: 8px;
  padding: 8px;
  color: #000;
}

.tk-pay-btn strong {
  display: block;
  font-size: 0.8em;
}

.tk-pay-btn small {
  display: block;
  color: #6c757d;
  font-size: 0.65em;
}

.tk-pay-cancel {
  align-self: flex-end;
  border: 1px solid #6c757d;
  background: #fff;
  color: #6c757d;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.7em;
}

.tour-slide.is-center.is-playing .anim-pay-by {
  animation: paySelect 0.7s ease-in-out 10.2s 2;
}

@keyframes paySelect {
  0%, 100% { transform: scale(1); background: #fff; }
  50% { transform: scale(1.03); background: #e7f1ff; box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25); }
}

/* ===== Express Pay gateway mock ===== */
.ep-page {
  height: 100%;
  background: linear-gradient(180deg, #0b5cab 0%, #0b5cab 56px, #eef3f8 56px, #eef3f8 100%);
  color: #1f2933;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  position: relative;
}

.ep-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 0.68em;
  padding: 2px 2px 6px;
}

.ep-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.ep-brand__mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
  color: #0b5cab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  font-weight: 800;
}

.ep-secure {
  opacity: 0.9;
  font-size: 0.9em;
}

.ep-order {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(11, 92, 171, 0.12);
}

.ep-order__merchant {
  font-size: 0.7em;
  color: #666;
}

.ep-order__sum {
  font-size: 1.35em;
  font-weight: 800;
  color: #0b5cab;
  line-height: 1.1;
}

.ep-order__sum small {
  font-size: 0.55em;
  font-weight: 700;
}

.ep-order__desc {
  font-size: 0.65em;
  color: #666;
  margin-top: 2px;
}

.ep-methods {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.ep-method {
  border: 1px solid #c5d4e4;
  background: #fff;
  border-radius: 6px;
  padding: 5px 2px;
  font-size: 0.65em;
  font-weight: 700;
  color: #445;
}

.tour-slide.is-center.is-playing .anim-ep-card {
  animation: epMethodOn 0.4s ease 12.4s forwards;
}

.tour-slide.is-center.is-playing .anim-ep-epos {
  opacity: 0.85;
}

@keyframes epMethodOn {
  to {
    background: #0b5cab;
    color: #fff;
    border-color: #0b5cab;
    box-shadow: 0 0 0 2px rgba(11, 92, 171, 0.2);
  }
}

.ep-card-form {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex: 1;
  min-height: 0;
}

.ep-label {
  display: block;
  font-size: 0.62em;
  color: #667;
  margin-bottom: 2px;
}

.ep-field {
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  padding: 6px 7px;
  margin-bottom: 6px;
  font-size: 0.78em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  background: #fafbfc;
}

.ep-field--sm {
  margin-bottom: 0;
}

.ep-typed {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
}

.ep-schemes {
  font-size: 0.7em;
  color: #0b5cab;
  font-weight: 800;
  opacity: 0.7;
}

.ep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.tour-slide.is-center.is-playing .anim-ep-fill .ep-typed {
  animation: typeIn 1.1s steps(14) forwards, caretPulse 1.1s steps(1) forwards;
  animation-delay: var(--d, 0s), var(--d, 0s);
}

.ep-pay-btn {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-weight: 800;
  font-size: 0.78em;
  color: #fff;
  background: #0b5cab;
  opacity: 0.45;
}

.tour-slide.is-center.is-playing .anim-ep-pay {
  animation: epPayReady 0.4s ease 15.4s forwards, buyBtnPulse 0.75s ease-in-out 15.9s 2;
}

@keyframes epPayReady {
  to { opacity: 1; }
}

.ep-processing,
.ep-ok {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 0.75em;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(8px);
}

.ep-processing {
  color: #0b5cab;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ep-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #c5d4e4;
  border-top-color: #0b5cab;
  border-radius: 50%;
}

.tour-slide.is-center.is-playing .anim-ep-wait {
  animation: epWaitShow 2s ease 16.5s forwards;
}

.tour-slide.is-center.is-playing .anim-ep-wait .ep-spinner {
  animation: epSpin 0.7s linear 16.5s 3;
}

.tour-slide.is-center.is-playing .anim-ep-ok {
  animation: fadeUp 0.45s ease 17.6s forwards;
  color: #155724;
  background: #d4edda;
}

@keyframes epWaitShow {
  0% { opacity: 0; transform: translateY(8px); }
  10%, 85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes epSpin {
  to { transform: rotate(360deg); }
}

.tour-slide.is-center.is-playing .anim-wallet-done {
  animation: walletPulse 0.9s ease-in-out 19s 2;
}

.tk-success-banner {
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8em;
  opacity: 0;
}

.tour-slide.is-center.is-playing .anim-success-show {
  animation: fadeUp 0.5s ease 15.2s forwards;
}

.mock-flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}

.mock-flag--by {
  background: linear-gradient(to bottom, #d52b1e 0%, #d52b1e 70%, #009739 70%, #009739 100%);
}

.mock-flag--ru {
  background: linear-gradient(to bottom, #fff 0%, #fff 33%, #0039a6 33%, #0039a6 66%, #d52b1e 66%, #d52b1e 100%);
}

.mock-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}

.mock-qty__btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #E0E0E0;
  background: #fff;
  font-weight: 700;
}

.mock-qty__val {
  font-size: 1.4em;
  font-weight: 800;
  min-width: 1.5em;
  text-align: center;
}

.mock-discount {
  background: #d1ecf1;
  color: #0c5460;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.8em;
  margin-bottom: 8px;
  opacity: 0;
}

.mock-order {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.mock-order__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mock-pay {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  opacity: 0;
}

.mock-pay__chip {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #E0E0E0;
  font-size: 0.75em;
  font-weight: 600;
}

.mock-tour-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1.05em;
}

.mock-muted {
  color: #666;
  margin-bottom: 8px;
  font-size: 0.85em;
}

.mock-countdown {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  border-radius: 10px;
  padding: 10px 6px;
  margin-bottom: 12px;
}

.mock-cd-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 6px 2px;
  color: #000;
}

.mock-cd-num {
  display: block;
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1.1;
}

.mock-cd-lbl {
  display: block;
  font-size: 0.65em;
  opacity: 0.8;
}

.mock-alert-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

/* ===== Tournament play multi-scene ===== */
.play-scenes {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.play-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
}

.tour-slide.is-center:not(.is-playing) .play-scene--home {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tour-slide.is-center:not(.is-playing) .play-scene--rules,
.tour-slide.is-center:not(.is-playing) .play-scene--task1,
.tour-slide.is-center:not(.is-playing) .play-scene--task2 {
  opacity: 0;
  visibility: hidden;
}

.tour-slide.is-center.is-playing .play-scene--home {
  animation: playSceneHome 20s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .play-scene--rules {
  animation: playSceneRules 20s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .play-scene--task1 {
  animation: playSceneTask1 20s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .play-scene--task2 {
  animation: playSceneTask2 20s ease-in-out forwards;
}

@keyframes playSceneHome {
  0%, 26% { opacity: 1; visibility: visible; transform: translateX(0); }
  30%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes playSceneRules {
  0%, 28% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  32%, 48% { opacity: 1; visibility: visible; transform: translateX(0); }
  52%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes playSceneTask1 {
  0%, 50% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  54%, 72% { opacity: 1; visibility: visible; transform: translateX(0); }
  76%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes playSceneTask2 {
  0%, 74% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  78%, 100% { opacity: 1; visibility: visible; transform: translateX(0); }
}

.anim-play-join {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  margin-top: 4px;
}

.tour-slide.is-center.is-playing .anim-play-join {
  animation: playShowJoin 0.45s ease 4.2s forwards, buyBtnPulse 0.8s ease-in-out 4.8s 2;
}

@keyframes playShowJoin {
  to {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
}

.play-menu-card {
  padding: 8px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.play-menu-title {
  text-align: center;
  font-size: 0.95em;
  font-weight: 700;
  margin: 0 0 2px;
  color: #333;
}

.play-menu-block h5 {
  font-size: 0.78em;
  font-weight: 700;
  margin: 0 0 3px;
  color: #333;
}

.play-menu-block p,
.play-menu-block ul {
  font-size: 0.68em;
  color: #333;
  line-height: 1.35;
  margin: 0;
}

.play-menu-block ul {
  padding-left: 1rem;
  margin-top: 2px;
}

.play-menu-block li {
  margin-bottom: 2px;
}

.play-pdf-btn {
  align-self: flex-start;
  border: 1px solid #333;
  background: #fff;
  color: #333;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 0.62em;
  font-weight: 600;
}

.play-form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.68em;
  color: #495057;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
}

.play-form-check__box {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border: 2.5px solid #000;
  border-radius: 3px;
  background: #fff;
  position: relative;
}

.tour-slide.is-center.is-playing .anim-play-check {
  animation: fadeUp 0.4s ease 7s forwards;
}

.tour-slide.is-center.is-playing .anim-play-box {
  animation: playBoxCheck 0.35s ease 7.3s forwards;
}

@keyframes playBoxCheck {
  to {
    background: #0d6efd;
    border-color: #0d6efd;
  }
}

.tour-slide.is-center.is-playing .anim-play-box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  animation: playBoxTick 0.25s ease 7.45s forwards;
}

@keyframes playBoxTick {
  to { transform: rotate(45deg) scale(1); }
}

.play-start-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8em;
  background: #6c757d;
  color: #fff;
  opacity: 0.6;
}

.tour-slide.is-center.is-playing .anim-play-start {
  animation: playStartReady 0.4s ease 7.7s forwards, buyBtnPulse 0.8s ease-in-out 8.3s 2;
}

@keyframes playStartReady {
  to {
    opacity: 1;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #333;
  }
}

.play-toast {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-10px);
  font-size: 0.75em;
}

.play-toast i {
  font-size: 1.1em;
}

.play-toast strong {
  display: block;
}

.play-toast span {
  opacity: 0.9;
}

.tour-slide.is-center.is-playing .anim-play-toast {
  animation: playToastIn 20s ease-in-out forwards;
}

@keyframes playToastIn {
  0%, 78% { opacity: 0; transform: translateY(-10px); }
  82%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.95; transform: translateY(0); }
}

/* ===== Results + rating table ===== */
.results-scenes {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.results-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
}

.tour-slide.is-center:not(.is-playing) .results-scene--personal {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tour-slide.is-center:not(.is-playing) .results-scene--rating {
  opacity: 0;
  visibility: hidden;
}

.tour-slide.is-center.is-playing .results-scene--personal {
  animation: resultsPersonal 14s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .results-scene--rating {
  animation: resultsRating 14s ease-in-out forwards;
}

@keyframes resultsPersonal {
  0%, 42% { opacity: 1; visibility: visible; transform: translateX(0); }
  48%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes resultsRating {
  0%, 45% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  50%, 100% { opacity: 1; visibility: visible; transform: translateX(0); }
}

.rating-page {
  gap: 0;
  padding: 6px;
  background: #fff;
}

.rating-card {
  padding: 8px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
}

.rating-title {
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 8px;
  color: #333;
}

.rating-info {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #6c757d;
  color: #fff;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 0.58em;
  line-height: 1.3;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.rating-info i {
  margin-top: 1px;
  flex-shrink: 0;
  opacity: 0.95;
}

.rating-search {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.rating-search__input {
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.68em;
  color: #adb5bd;
  margin-bottom: 3px;
}

.rating-search__hint {
  font-size: 0.52em;
  color: #6c757d;
  line-height: 1.25;
}

.rating-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

.rating-tab {
  border: 1px solid #ced4da;
  color: #495057;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.55em;
  font-weight: 600;
  background: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.rating-tab.is-active {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tour-slide.is-center.is-playing .anim-rating-tab {
  animation: ratingTabPulse 0.7s ease-in-out 8.2s 2;
}

@keyframes ratingTabPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.35); }
}

.rating-table-wrap {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.55em;
  color: #333;
}

.rating-table th {
  background: #f8f9fa;
  font-weight: 700;
  text-align: left;
  padding: 5px 4px;
  white-space: nowrap;
  border-bottom: 2px solid #FF8C00;
}

.rating-table td {
  padding: 5px 4px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  vertical-align: middle;
}

.rating-table tr.is-you {
  background: #fff3cd;
}

.rating-flag {
  margin-right: 3px;
  font-size: 0.95em;
}

.rating-you {
  display: inline-block;
  background: #ffc107;
  color: #000;
  border-radius: 3px;
  padding: 0 3px;
  font-size: 0.9em;
  font-weight: 700;
  margin-left: 3px;
}

.tour-slide.is-center.is-playing .anim-rating-you {
  animation: ratingYouFlash 0.8s ease 9s 2;
}

@keyframes ratingYouFlash {
  0%, 100% { background: #fff3cd; }
  50% { background: #ffe08a; }
}

/* ===== Shop multi-scene ===== */
.shop-scenes {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.shop-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
}

.tour-slide.is-center:not(.is-playing) .shop-scene--profile {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tour-slide.is-center:not(.is-playing) .shop-scene--store,
.tour-slide.is-center:not(.is-playing) .shop-scene--checkout {
  opacity: 0;
  visibility: hidden;
}

.tour-slide.is-center.is-playing .shop-scene--profile {
  animation: shopSceneProfile 20s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .shop-scene--store {
  animation: shopSceneStore 20s ease-in-out forwards;
}

.tour-slide.is-center.is-playing .shop-scene--checkout {
  animation: shopSceneCheckout 20s ease-in-out forwards;
}

@keyframes shopSceneProfile {
  0%, 16% { opacity: 1; visibility: visible; transform: translateX(0); }
  20%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes shopSceneStore {
  0%, 18% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  22%, 55% { opacity: 1; visibility: visible; transform: translateX(0); }
  59%, 100% { opacity: 0; visibility: hidden; transform: translateX(-8px); }
}

@keyframes shopSceneCheckout {
  0%, 57% { opacity: 0; visibility: hidden; transform: translateX(8px); }
  61%, 100% { opacity: 1; visibility: visible; transform: translateX(0); }
}

.tour-slide.is-center.is-playing .anim-shop-tap {
  animation: buyBtnPulse 0.85s ease-in-out 1.2s 2;
}

.shop-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.shop-balance {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.75em;
  color: #333;
  font-weight: 600;
}

.shop-balance i {
  color: #FF8C00;
}

.shop-cart-btn {
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.75em;
  color: #333;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.7;
}

.shop-cart-badge {
  background: #dc3545;
  color: #fff;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  opacity: 0;
  transform: scale(0.5);
}

.tour-slide.is-center.is-playing .anim-shop-badge {
  animation: popIn 0.35s ease 8.6s forwards;
}

.tour-slide.is-center.is-playing .anim-shop-cart {
  animation: buyBtnPulse 0.8s ease-in-out 9.2s 2;
  opacity: 1;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.shop-prize {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
}

.shop-prize__img {
  height: 48px;
  background: #f8f9fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.3em;
}

.shop-prize__name {
  font-size: 0.72em;
  font-weight: 700;
  color: #333;
}

.shop-prize__cost {
  font-size: 0.65em;
  color: #666;
}

.shop-prize__cost strong {
  color: #0d6efd;
}

.shop-prize__btn {
  margin-top: auto;
  border: none;
  border-radius: 6px;
  padding: 5px;
  font-size: 0.62em;
  font-weight: 700;
  color: #333;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
}

.tour-slide.is-center.is-playing .anim-shop-p1 {
  animation: fadeUp 0.4s ease 5s forwards;
}

.tour-slide.is-center.is-playing .anim-shop-p2 {
  animation: fadeUp 0.4s ease 5.4s forwards;
}

.tour-slide.is-center.is-playing .anim-shop-pick {
  animation: buyBtnPulse 0.8s ease-in-out 7.8s 2;
}

.shop-checkout {
  padding: 6px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  gap: 0;
}

.shop-checkout .tk-label {
  margin-top: 3px;
  margin-bottom: 1px;
  padding: 0 2px;
  font-size: 0.62em;
}

.shop-checkout .tk-input {
  margin: 0 0 2px;
  padding: 4px 6px;
  min-height: 0;
  font-size: 0.72em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-checkout__title {
  font-weight: 700;
  font-size: 0.78em;
  margin-bottom: 4px;
  color: #333;
}

.shop-summary {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 5px 7px;
  margin-bottom: 4px;
  font-size: 0.65em;
}

.shop-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.shop-summary__row--total {
  font-weight: 700;
  border-top: 1px solid #dee2e6;
  padding-top: 3px;
  margin-top: 3px;
}

.shop-summary__item {
  color: #666;
  margin-top: 3px;
}

.shop-delivery {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7em;
  color: #333;
  margin: 0 0 6px;
  padding: 0 2px;
  opacity: 0;
}

.shop-radio {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0d6efd;
  position: relative;
}

.shop-radio.is-on::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #0d6efd;
}

.tour-slide.is-center.is-playing .anim-shop-delivery {
  animation: fadeUp 0.35s ease 15s forwards;
}

.tour-slide.is-center.is-playing .anim-shop-fill .mock-typed {
  animation: typeIn 1.1s steps(14) forwards, caretPulse 1.1s steps(1) forwards;
  animation-delay: var(--d, 0s), var(--d, 0s);
}

.shop-submit {
  display: block;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8em;
  color: #333;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  opacity: 0.45;
  margin-top: 4px;
}

.tour-slide.is-center.is-playing .anim-shop-submit {
  animation: epPayReady 0.4s ease 16.4s forwards, buyBtnPulse 0.8s ease-in-out 16.9s 2;
}

.shop-ok {
  margin-top: 6px;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  padding: 7px;
  text-align: center;
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
}

.tour-slide.is-center.is-playing .anim-shop-ok {
  animation: fadeUp 0.45s ease 17.8s forwards;
}

.mock-play-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E0E0E0;
}

.mock-timer-compact {
  font-weight: 800;
  font-size: 1.15em;
  font-variant-numeric: tabular-nums;
  color: #E67E00;
}

.mock-progress {
  min-width: 70px;
}

.mock-progress__bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 3px;
}

.mock-progress__bar--lg {
  height: 16px;
  margin-top: 6px;
}

.mock-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  border-radius: 99px;
  transition: width 1s ease;
  font-size: 0.7em;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-task__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mock-badge {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: #333;
  font-weight: 700;
  font-size: 0.75em;
  padding: 3px 7px;
  border-radius: 99px;
}

.mock-task__q {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.mock-results-title {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1em;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.mock-stat {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
}

.mock-stat span {
  display: block;
  font-size: 0.7em;
  color: #666;
}

.mock-stat strong {
  font-size: 1.25em;
}

.text-ok { color: #28a745; }
.text-gold { color: #E67E00; }

.mock-rate {
  margin-bottom: 10px;
}

.mock-rank {
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.25));
  opacity: 0;
  transform: scale(0.95);
}

.mock-balance {
  background: #1f1f24;
  color: #FFD700;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0;
}

.mock-prizes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-prize {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 8px;
  opacity: 0;
  transform: translateX(-8px);
}

.mock-prize--selected {
  border-color: #FF8C00;
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.mock-prize__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  flex-shrink: 0;
}

.mock-prize__info {
  flex: 1;
  min-width: 0;
}

.mock-prize__info strong {
  display: block;
  font-size: 0.9em;
}

.mock-prize__info span {
  font-size: 0.75em;
  color: #666;
}

.mock-cart-bar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 0.75em;
  opacity: 0;
}

/* ===== Active-slide animations ===== */

.tour-slide.is-center.is-playing .anim-fill .mock-typed {
  animation:
    typeIn 1.6s steps(16) forwards,
    caretPulse 1.6s steps(1) forwards;
  animation-delay: var(--d, 0s), var(--d, 0s);
}

.tour-slide.is-center.is-playing .anim-check,
.tour-slide.is-center.is-playing .mock-pwd-reqs.anim-check,
.tour-slide.is-center.is-playing .mock-check-row.anim-check {
  animation: fadeUp 0.4s ease forwards;
  animation-delay: var(--d, 0s);
}

.tour-slide.is-center.is-playing .anim-btn {
  animation: popIn 0.45s ease forwards;
  animation-delay: var(--d, 0s);
}

.tour-slide.is-center.is-playing .anim-success {
  animation: fadeUp 0.45s ease forwards;
  animation-delay: var(--d, 0s);
}

.tour-slide.is-center.is-playing .anim-discount {
  animation: fadeUp 0.4s ease forwards;
  animation-delay: 1.4s;
}

.tour-slide.is-center.is-playing .anim-pay {
  animation: fadeUp 0.4s ease forwards;
  animation-delay: 2.8s;
}

.tour-slide.is-center.is-playing .anim-stat {
  animation: fadeUp 0.45s ease forwards;
  animation-delay: var(--d, 0s);
}

.tour-slide.is-center.is-playing .anim-rate-fill {
  animation: rateFill 1.2s ease forwards;
  animation-delay: 1.5s;
}

.tour-slide.is-center.is-playing .anim-rank {
  animation: popIn 0.5s ease forwards;
  animation-delay: 2.2s;
}

.tour-slide.is-center.is-playing .anim-balance {
  animation: fadeUp 0.4s ease forwards;
  animation-delay: 0.15s;
}

.tour-slide.is-center.is-playing .anim-prize {
  animation: slideInLeft 0.45s ease forwards;
  animation-delay: var(--d, 0s);
}

.tour-slide.is-center.is-playing .anim-cart {
  animation: fadeUp 0.45s ease forwards;
  animation-delay: 2.2s;
}

.tour-slide.is-center.is-playing .anim-progress-fill {
  animation: progressFill 1s ease forwards;
  animation-delay: 0.4s;
}

@keyframes typeIn {
  from { max-width: 0; }
  to { max-width: 220px; }
}

@keyframes caretPulse {
  0%, 9% { border-right-color: #FF8C00; }
  10%, 19% { border-right-color: transparent; }
  20%, 29% { border-right-color: #FF8C00; }
  30%, 39% { border-right-color: transparent; }
  40%, 49% { border-right-color: #FF8C00; }
  50%, 59% { border-right-color: transparent; }
  60%, 69% { border-right-color: #FF8C00; }
  70%, 79% { border-right-color: transparent; }
  80%, 96% { border-right-color: #FF8C00; }
  100% { border-right-color: transparent; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes qtyBump {
  0%, 40% { content: '1'; }
  50%, 100% { transform: scale(1.08); }
}

@keyframes rateFill {
  from { width: 0; }
  to { width: 78%; }
}

@keyframes progressFill {
  from { width: 0; }
  to { width: 30%; }
}

/* Copy + nav */
.tour-hero__copy {
  position: absolute;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  left: 1rem;
  z-index: 60;
  max-width: min(320px, calc(50vw - 180px));
}

@media (min-width: 640px) {
  .tour-hero__copy {
    bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    left: 2.5rem;
  }
}

@media (min-width: 1100px) {
  .tour-hero__copy {
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    left: 4rem;
    max-width: 300px;
  }
}

.tour-hero__kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.95;
}

@media (min-width: 640px) {
  .tour-hero__kicker {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
  }
}

.tour-hero__desc {
  display: none;
  font-size: 0.8rem;
  color: #fff;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

@media (min-width: 900px) {
  .tour-hero__desc {
    display: block;
  }
}

.tour-hero__nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tour-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tour-nav-btn:hover {
  transform: translateY(-2px) scale(1.06);
  background: #FFF8E7;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.tour-nav-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.22);
}

#tourNext {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  border-color: #fff;
  color: #1a1a1a;
}

#tourNext:hover {
  background: linear-gradient(135deg, #FFE44D 0%, #FF9E1A 100%);
}

@media (min-width: 640px) {
  .tour-nav-btn {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
}

.tour-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tour-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.28);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease, background-color 150ms ease, width 150ms ease, border-radius 150ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Larger tap target without growing the visible dot */
  position: relative;
}

.tour-dots button::before {
  content: '';
  position: absolute;
  inset: -12px;
}

.tour-dots button:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: scale(1.1);
}

.tour-dots button.is-active {
  width: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  border-color: #fff;
  transform: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.tour-hero[data-theme="dark"] .tour-nav-btn {
  background: #fff;
  color: #1a1a1a;
}

.tour-hero[data-theme="dark"] #tourNext {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
}

.tour-hero[data-theme="dark"] .tour-dots button {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.tour-hero__cta {
  position: absolute;
  bottom: 1.25rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Anton', sans-serif;
  font-size: clamp(18px, 3.2vw, 42px);
  font-weight: 400;
  color: #fff;
  opacity: 0.95;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 200ms ease;
  max-width: min(280px, calc(50vw - 180px));
  justify-content: flex-end;
}

.tour-hero__cta:hover {
  opacity: 1;
  color: #fff;
}

.tour-hero__cta i {
  font-size: 1rem;
}

@media (min-width: 640px) {
  .tour-hero__cta {
    bottom: 2.5rem;
    right: 2rem;
  }
  .tour-hero__cta i {
    font-size: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .tour-hero__cta {
    bottom: 3.5rem;
    right: 2.5rem;
  }
}

/* On narrow screens, keep controls readable and clear of the phone */
@media (max-width: 759px) {
  .tour-hero__copy {
    max-width: calc(100% - 1.5rem);
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .tour-hero__kicker {
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  }

  .tour-hero__nav {
    gap: 10px;
  }

  .tour-nav-btn {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }

  .tour-dots {
    margin-top: 12px;
    gap: 10px;
  }

  .tour-hero__cta {
    max-width: none;
    font-size: clamp(16px, 5vw, 22px);
  }
}

@media (max-width: 759px) and (max-height: 700px) {
  .tour-hero__copy {
    bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }

  .tour-hero__kicker {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .tour-nav-btn {
    width: 44px;
    height: 44px;
  }

  .tour-dots {
    margin-top: 8px;
  }
}

/* Dark slides: keep phone readable */
.tour-hero[data-theme="dark"] .tour-hero__ghost span {
  opacity: 0.92;
}
