
.luman-game {
  --white: #f4f4f1;
  --muted: rgba(244,244,241,0.62);
  --accent: #b8c4c7;

  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--white);

  background:
    radial-gradient(circle at 18% 18%, rgba(184,196,199,0.12), transparent 30%),
    radial-gradient(circle at 84% 76%, rgba(255,255,255,0.045), transparent 32%),
    linear-gradient(135deg, #050505 0%, #101113 54%, #060606 100%);
}

.game-bg-lines {
  position: absolute;
  inset: -24%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255,255,255,0.06) 0px,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 46px
    );
  animation: gameLinesMove 28s linear infinite;
  will-change: transform;
}

.game-glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
}

.game-glow-one {
  width: 460px;
  height: 460px;
  left: -160px;
  top: 80px;
  background: radial-gradient(circle, rgba(184,196,199,0.13), transparent 66%);
}

.game-glow-two {
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 66%);
}

.game-shell {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 72px));
  height: 100%;
  margin: 0 auto;
  padding: 24px 0;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.game-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: rgba(244,244,241,0.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.game-brand span {
  width: 34px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(184,196,199,0.5);
}

.game-stats {
  display: flex;
  gap: 8px;
}

.game-stats div {
  min-width: 110px;
  padding: 10px 12px;

  border: 1px solid rgba(244,244,241,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(10px);
}

.game-stats small {
  display: block;
  margin-bottom: 4px;

  color: rgba(184,196,199,0.68);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.game-stats strong {
  display: block;

  color: rgba(244,244,241,0.92);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.game-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 360px;

  border: 1px solid rgba(244,244,241,0.10);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(184,196,199,0.12), transparent 30%),
    rgba(255,255,255,0.025);
  backdrop-filter: blur(12px);
  overflow: hidden;

  box-shadow: 0 32px 90px rgba(0,0,0,0.32);
  contain: layout paint;
}

#lumanRunner {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  transform: translateZ(0);
}


.fireworks-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;

  display: none;
  pointer-events: none;
}

.fireworks-canvas.is-active {
  display: block;
}

#messageScreen .game-card {
  position: relative;
  z-index: 2;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  background:
    radial-gradient(circle at 50% 36%, rgba(184,196,199,0.12), transparent 34%),
    rgba(5,5,5,0.68);
  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.game-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.game-card {
  width: min(420px, 100%);
  padding: 22px;

  border: 1px solid rgba(244,244,241,0.12);
  border-radius: 30px;
  background: rgba(8,8,8,0.68);
  backdrop-filter: blur(14px);

  text-align: center;
  box-shadow: 0 28px 80px rgba(0,0,0,0.36);
}

.game-card small {
  display: block;
  margin-bottom: 14px;

  color: rgba(184,196,199,0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

.game-card h1,
.game-card h2 {
  margin: 0;

  color: var(--white);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 0.94;
  letter-spacing: -1.5px;
  overflow-wrap: anywhere;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card p {
  max-width: 340px;
  margin: 14px auto 18px;

  color: rgba(244,244,241,0.62);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.game-card :is(button, .game-reward-link),
.game-control,
.game-link {
  height: 44px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 999px;
  background: var(--white);
  color: #080808;
  text-decoration: none;

  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;

  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}



.game-card .game-claim-btn {
  display: none;
  margin-right: 8px;

  border: 1px solid rgba(244,244,241,0.12);
  background: rgba(8,8,8,0.56);
  color: rgba(244,244,241,0.92);
}

.game-card .game-claim-btn.is-visible {
  display: inline-flex;
}

.game-card .game-claim-btn:hover {
  background: rgba(184,196,199,0.18);
  color: var(--white);
}


.game-card :is(button, .game-reward-link).promo-booking-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-width: 245px;
  background: var(--white);
  color: #080808;

  animation: promoBookingPulse 1.55s ease-in-out infinite;
}

.game-card :is(button, .game-reward-link).promo-booking-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(184,196,199,0.42), transparent 62%);
  opacity: 0.12;
  animation: promoBookingGlow 1.55s ease-in-out infinite;
}

.game-card :is(button, .game-reward-link).promo-booking-btn::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -65%;
  width: 42%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.58), transparent);
  transform: rotate(18deg);
  animation: promoBookingShine 2.55s ease-in-out infinite;
  pointer-events: none;
}

.game-card :is(button, .game-reward-link).promo-booking-btn:hover {
  background: var(--accent);
  color: #080808;
  box-shadow:
    0 24px 64px rgba(184,196,199,0.28),
    0 0 42px rgba(184,196,199,0.24);
}

@keyframes promoBookingPulse {
  0%, 100% {
    box-shadow:
      0 18px 46px rgba(255,255,255,0.15),
      0 0 0 0 rgba(184,196,199,0.00);
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 28px 78px rgba(255,255,255,0.28),
      0 0 48px rgba(184,196,199,0.42),
      0 0 0 8px rgba(184,196,199,0.075);
    transform: translateY(-2px) scale(1.028);
    filter: brightness(1.08);
  }
}

@keyframes promoBookingGlow {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes promoBookingShine {
  0% {
    left: -65%;
    opacity: 0;
  }
  14% {
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  62% {
    left: 128%;
    opacity: 0;
  }
  100% {
    left: 128%;
    opacity: 0;
  }
}

.game-card :is(button, .game-reward-link):hover,
.game-control:hover,
.game-link:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #080808;
}



.game-start-promo {
  width: min(100%, 420px);
  margin: 0 auto 16px;
  padding: 10px 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  border: 1px solid rgba(184,196,199,0.24);
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  box-shadow: 0 0 26px rgba(184,196,199,0.10);
}

.game-start-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.game-start-badges strong {
  min-width: 64px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(184,196,199,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);

  color: var(--accent);
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.game-start-promo span {
  margin: 0;
  color: rgba(244,244,241,0.72);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: left;
}

.game-promo {
  display: none;
  margin: 16px auto 18px;
  padding: 15px 16px;

  border: 1px solid rgba(184,196,199,0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(184,196,199,0.16), transparent 48%),
    rgba(255,255,255,0.045);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.24),
    0 0 30px rgba(184,196,199,0.10);
}

.game-promo.is-visible {
  display: block;
  animation: promoPop 0.45s cubic-bezier(.16, 1, .3, 1) forwards;
}

.game-promo small {
  display: block;
  margin-bottom: 8px;

  color: rgba(184,196,199,0.74);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.game-promo strong {
  display: block;
  margin-bottom: 8px;

  color: var(--white);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.05;
  letter-spacing: 1px;
  font-weight: 900;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow: 0 0 26px rgba(184,196,199,0.24);
}

.game-promo span {
  display: block;
  margin: 0;

  color: rgba(244,244,241,0.66);
  font-size: 10.7px;
  line-height: 1.36;
  font-weight: 600;
}

@keyframes promoPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 860px) {
  .game-start-promo {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
  }

  .game-start-badges {
    justify-content: center;
  }

  .game-start-promo span {
    text-align: center;
  }
}

.game-card span {
  display: block;
  margin-top: 12px;

  color: rgba(244,244,241,0.42);
  font-size: 10px;
  font-weight: 700;
}

.game-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-control.ghost {
  background: rgba(255,255,255,0.045);
  color: var(--white);
  border: 1px solid rgba(244,244,241,0.12);
}

.game-link {
  margin-left: auto;
}

@keyframes gameLinesMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-240px, 0, 0); }
}

@media (max-width: 900px) {
  .game-shell {
    width: calc(100% - 28px);
    padding: 22px 0;
    gap: 10px;
  }

  .game-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-brand {
    font-size: 9px;
    letter-spacing: 1.6px;
  }

  .game-brand span {
    width: 28px;
  }

  .game-stats {
    width: 100%;
  }

  .game-stats div {
    flex: 1;
    min-width: 0;
  }

  .game-canvas-wrap {
    min-height: 410px;
    border-radius: 24px;
  }

  .game-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .game-link {
    grid-column: 1 / 3;
    margin-left: 0;
    width: 100%;
  }

  .game-card {
    padding: 20px;
    border-radius: 24px;
  }

  .game-card h1,
  .game-card h2 {
    font-size: 28px;
  }
}

@media (max-width: 390px) {
  .game-canvas-wrap {
    min-height: 390px;
  }

  .game-card h1,
  .game-card h2 {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  .luman-game .game-shell {
    width: calc(100% - 22px);
    padding: 14px 0 16px;
    gap: 9px;
  }

  .luman-game .game-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .luman-game .game-brand {
    font-size: 8.5px;
    letter-spacing: 1.45px;
    gap: 8px;
  }

  .luman-game .game-brand span {
    width: 28px;
  }

  .luman-game .game-stats {
    width: 100%;
    gap: 7px;
  }

  .luman-game .game-stats div {
    flex: 1;
    min-width: 0;
    padding: 8px 9px;
    border-radius: 14px;
  }

  .luman-game .game-stats small {
    margin-bottom: 4px;
    font-size: 6.8px;
    letter-spacing: 1.2px;
  }

  .luman-game .game-stats strong {
    font-size: 11px;
  }

  .luman-game .game-canvas-wrap {
    min-height: 416px;
    border-radius: 24px;
  }

  .luman-game .game-overlay {
    padding: 28px 14px 14px;
    align-items: flex-start;
  }

  .luman-game .game-card {
    width: min(326px, 100%);
    padding: 18px;
    border-radius: 24px;
  }

  .luman-game .game-card small {
    margin-bottom: 11px;
    font-size: 8px;
    letter-spacing: 1.6px;
  }

  .luman-game .game-card h1,
  .luman-game .game-card h2 {
    font-size: clamp(25px, 8.3vw, 34px);
    letter-spacing: -1px;
  }

  .luman-game .game-card p {
    max-width: 286px;
    margin: 12px auto 14px;
    font-size: 10.8px;
    line-height: 1.42;
  }

  .luman-game .game-start-promo {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    border-radius: 18px;
  }

  .luman-game .game-start-badges {
    justify-content: center;
  }

  .luman-game .game-start-badges strong {
    min-width: 74px;
    padding: 8px 10px;
    font-size: 16px;
  }

  .luman-game .game-start-promo span {
    text-align: center;
    font-size: 9px;
    line-height: 1.25;
  }

  .luman-game .game-card :is(button, .game-reward-link),
  .luman-game .game-control,
  .luman-game .game-link {
    height: 40px;
    padding: 0 14px;
    font-size: 10.5px;
  }

  .luman-game .game-card .game-claim-btn {
    margin-right: 0;
    margin-bottom: 7px;
    width: 100%;
  }

  .luman-game .game-card :is(button, .game-reward-link).promo-booking-btn {
    min-width: 0;
    width: 100%;
  }

  .luman-game .game-promo {
    margin: 13px auto 14px;
    padding: 13px 14px;
    border-radius: 18px;
  }

  .luman-game .game-promo small {
    font-size: 7px;
    letter-spacing: 1.45px;
  }

  .luman-game .game-promo strong {
    font-size: clamp(22px, 8vw, 31px);
  }

  .luman-game .game-promo span {
    font-size: 9.4px;
    line-height: 1.34;
  }

  .luman-game .game-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .luman-game .game-link {
    grid-column: 1 / 3;
    width: 100%;
    margin-left: 0;
  }

  @media (max-width: 390px) {
    .luman-game .game-shell {
      width: calc(100% - 18px);
      padding: 12px 0 14px;
    }

    .luman-game .game-canvas-wrap {
      min-height: 404px;
    }

    .luman-game .game-overlay {
      padding-top: 22px;
    }

    .luman-game .game-card {
      padding: 16px;
    }

    .luman-game .game-card h1,
    .luman-game .game-card h2 {
      font-size: 25px;
    }
  }




  /* MOBILE PERFORMANCE: визуально без изменений */
  .luman-game .game-canvas-wrap {
    contain: paint;
  }

  .luman-game #lumanRunner,
  .luman-game .fireworks-canvas {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }

  .luman-game .game-control,
  .luman-game .game-card :is(button, .game-reward-link),
  .luman-game .game-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .luman-game .game-bg-lines {
    animation-name: gameLinesMoveMobile;
  }

  @keyframes gameLinesMoveMobile {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-240px, 0, 0); }
  }
}

/* The game is rendered directly inside the WordPress page. */
.luman-play-page {
  padding-top: 108px;
}

.luman-game {
  height: auto;
  min-height: 692px;
}

.luman-game .game-shell {
  height: auto;
  min-height: inherit;
}

.luman-game .game-canvas-wrap {
  height: clamp(440px, 56vh, 560px);
  flex: 1 0 auto;
}

.luman-game .game-overlay {
  overflow-y: auto;
}

.luman-game .game-overlay .game-card {
  margin-block: auto;
}

.luman-game [hidden] {
  display: none !important;
}

.luman-game .game-start-promo > strong {
  flex: 0 0 auto;
  color: var(--white);
}

.luman-game .game-promo strong {
  overflow-wrap: anywhere;
}

.luman-game .game-start-promo span {
  overflow-wrap: anywhere;
}

.luman-game .game-noscript {
  margin: 16px auto;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .luman-play-page {
    padding-top: 64px;
  }

  .luman-game {
    min-height: 613px;
  }

  .luman-game .game-canvas-wrap {
    height: max(420px, 53vh);
    max-height: 500px;
  }

  .luman-game .game-card button,
  .luman-game .game-control,
  .luman-game .game-link,
  .luman-game .game-reward-link {
    min-height: 44px;
  }

  .luman-game .game-overlay .game-card {
    margin-block: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luman-game .game-bg-lines,
  .luman-game .game-promo,
  .luman-game .promo-booking-btn,
  .luman-game .promo-booking-btn::before,
  .luman-game .promo-booking-btn::after {
    animation: none;
  }

  .luman-game .game-overlay {
    transition: none;
  }
}

.luman-run-navigation {
  width: min(1160px, calc(100% - 28px));
  margin-inline: auto;
}
.luman-run-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #b8c4c7;
  font-size: 13px;
  font-weight: 700;
}
.luman-run-navigation a:hover { text-decoration: underline; }
