.wishka-prediction-page {
  margin: 0;
  min-height: 100vh;
  background: #140546;
}

.wishka-prediction-game,
.wishka-prediction-game * {
  box-sizing: border-box;
}

.wishka-prediction-game {
  --wpg-purple: #652AD4;
  --wpg-purple-dark: #402074;
  --wpg-night: #320972;
  --wpg-deep: #140546;
  --wpg-gold: #F2D46B;
  --wpg-white: #FFFFFF;
  --wpg-milk: #F5F4FF;
  --wpg-lilac: #B68CFF;
  --wpg-pink: #FF9BD2;
  --wpg-text: #1F1642;
  --wpg-muted: #70658F;
  --wpg-shadow: 0 18px 48px rgba(20, 5, 70, 0.24);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  padding: max(18px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom));
  color: var(--wpg-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(242, 212, 107, 0.25), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(182, 140, 255, 0.24), transparent 28%),
    linear-gradient(160deg, var(--wpg-night) 0%, var(--wpg-deep) 100%);
}

.wishka-prediction-game button {
  font: inherit;
}

.wpg-stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.82) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(242,212,107,0.75) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(182,140,255,0.8) 0 1.2px, transparent 2px);
  background-position: 14px 24px, 48px 68px, 88px 18px;
  background-size: 96px 110px, 132px 146px, 170px 140px;
  opacity: 0.55;
}

.wpg-orbit {
  position: fixed;
  z-index: -2;
  border: 1px solid rgba(245, 244, 255, 0.18);
  border-radius: 999px;
  pointer-events: none;
  transform: rotate(-18deg);
}

.wpg-orbit-one {
  top: 62px;
  right: -98px;
  width: 240px;
  height: 86px;
}

.wpg-orbit-two {
  bottom: 68px;
  left: -118px;
  width: 280px;
  height: 98px;
}

.wpg-shell {
  width: min(100%, 520px);
  min-height: calc(100vh - 40px);
  min-height: calc(100svh - 40px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.wpg-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: rgba(245, 244, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wpg-brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wpg-gold);
  box-shadow: 0 0 18px rgba(242, 212, 107, 0.9);
}

.wpg-screen {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 14px 0;
}

.wpg-screen.wpg-active {
  display: flex;
  animation: wpg-appear 0.34s ease both;
}

.wpg-hero,
.wpg-mini-hero {
  position: relative;
  display: grid;
  place-items: center;
}

.wpg-hero {
  width: min(70vw, 270px);
  aspect-ratio: 1;
  margin-top: 4px;
}

.wpg-hero-glow {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,212,107,0.38), rgba(101,42,212,0.1) 55%, transparent 72%);
  filter: blur(2px);
  animation: wpg-soft-pulse 2.4s ease-in-out infinite;
}

.wpg-hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(8, 0, 33, 0.32));
  animation: wpg-bounce 3.2s ease-in-out infinite;
}

.wpg-mini-hero {
  width: 148px;
  height: 148px;
  margin-top: 4px;
}

.wpg-mini-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(8, 0, 33, 0.26));
}

.wpg-kicker,
.wpg-note {
  margin: 0;
  color: rgba(245, 244, 255, 0.78);
  text-align: center;
}

.wpg-kicker {
  padding: 6px 12px;
  border: 1px solid rgba(242, 212, 107, 0.32);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wishka-prediction-game h1,
.wishka-prediction-game h2,
.wishka-prediction-game p {
  margin: 0;
}

.wishka-prediction-game h1 {
  max-width: 430px;
  color: var(--wpg-white);
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.04;
  text-align: center;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(20, 5, 70, 0.38);
}

.wpg-subtitle {
  max-width: 360px;
  color: var(--wpg-milk);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
  font-weight: 750;
}

.wpg-intro,
.wpg-note {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.wpg-intro {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  color: rgba(245, 244, 255, 0.88);
  background: rgba(255,255,255,0.09);
}

.wpg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.wpg-btn:focus-visible {
  outline: 3px solid rgba(242, 212, 107, 0.95);
  outline-offset: 3px;
}

.wpg-btn:active {
  transform: scale(0.97);
}

.wpg-btn-primary {
  max-width: 390px;
  color: var(--wpg-white);
  background: linear-gradient(135deg, #7B44E5 0%, var(--wpg-purple) 48%, #4E1EAC 100%);
  box-shadow: 0 14px 28px rgba(10, 1, 42, 0.28), 0 0 22px rgba(182, 140, 255, 0.22);
  animation: wpg-button-pulse 2.8s ease-in-out infinite;
}

.wpg-btn-gold {
  color: #2C195B;
  background: linear-gradient(135deg, #FFE79A, var(--wpg-gold));
  box-shadow: 0 12px 24px rgba(242, 212, 107, 0.24);
}

.wpg-btn-secondary {
  color: var(--wpg-white);
  border: 1px solid rgba(245, 244, 255, 0.24);
  background: rgba(255,255,255,0.1);
}

.wpg-loading-text {
  color: var(--wpg-white);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.wpg-loader {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,212,107,0.32), rgba(101,42,212,0.22) 55%, rgba(255,255,255,0.06));
}

.wpg-loader::before {
  content: "✨";
  font-size: 52px;
  animation: wpg-spin 1s ease-in-out infinite;
}

.wpg-loader span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wpg-gold);
  box-shadow: 0 0 18px rgba(242,212,107,0.9);
}

.wpg-loader span:nth-child(1) { top: 18px; left: 74px; }
.wpg-loader span:nth-child(2) { right: 28px; bottom: 42px; background: var(--wpg-lilac); }
.wpg-loader span:nth-child(3) { left: 30px; bottom: 48px; background: var(--wpg-pink); }

.wpg-card {
  position: relative;
  width: 100%;
  padding: 22px 18px 18px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--wpg-text);
  background: linear-gradient(180deg, var(--wpg-white), var(--wpg-milk));
  box-shadow: var(--wpg-shadow);
}

.wpg-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--category-color, var(--wpg-gold));
  opacity: 0.24;
}

.wpg-category-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--wpg-purple-dark);
  background: color-mix(in srgb, var(--category-color, var(--wpg-gold)) 34%, white);
  font-size: 13px;
  font-weight: 900;
}

.wpg-category-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.72);
}

.wishka-prediction-game h2 {
  position: relative;
  margin-top: 14px;
  color: var(--wpg-purple-dark);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.wpg-prediction-text {
  position: relative;
  margin-top: 12px;
  color: var(--wpg-text);
  font-size: 19px;
  line-height: 1.48;
  font-weight: 750;
}

.wpg-task {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(242, 212, 107, 0.48);
  border-radius: 18px;
  background: rgba(242, 212, 107, 0.18);
}

.wpg-task p {
  color: #4B3A12;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

.wpg-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.wpg-actions .wpg-btn {
  max-width: none;
}

.wpg-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 8;
  max-width: 430px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--wpg-white);
  background: rgba(31, 13, 87, 0.94);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wpg-toast.wpg-show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 700px) {
  .wishka-prediction-game {
    padding-block: 26px;
  }

  .wpg-shell {
    min-height: calc(100vh - 52px);
  }

  .wpg-card {
    padding: 28px;
  }

  .wpg-actions {
    grid-template-columns: 1fr 1fr;
  }

  .wpg-actions .wpg-btn-secondary {
    grid-column: 1 / -1;
  }
}

@keyframes wpg-appear {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wpg-bounce {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

@keyframes wpg-soft-pulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes wpg-button-pulse {
  0%, 100% { box-shadow: 0 14px 28px rgba(10,1,42,0.28), 0 0 18px rgba(182,140,255,0.18); }
  50% { box-shadow: 0 16px 34px rgba(10,1,42,0.32), 0 0 30px rgba(242,212,107,0.24); }
}

@keyframes wpg-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.12); }
  100% { transform: rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .wpg-screen.wpg-active,
  .wpg-hero-img,
  .wpg-hero-glow,
  .wpg-btn-primary,
  .wpg-loader::before {
    animation: none;
  }

  .wpg-btn,
  .wpg-toast {
    transition: none;
  }
}
