/* Giveaway play page — arcade / jackpot feel (scoped to body.gw-play) */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Exo+2:wght@500;600;700;800&display=swap");

body.gw-play {
  --gw-bg0: #0b0520;
  --gw-bg1: #1a0a3e;
  --gw-bg2: #2d1060;
  --gw-neon: #ff2bd6;
  --gw-neon2: #00f0ff;
  --gw-gold: #ffd24a;
  --gw-gold2: #ff9f1c;
  --gw-lime: #7cff6b;
  --gw-panel: rgba(18, 8, 42, 0.82);
  --gw-line: rgba(255, 210, 74, 0.35);
  --gw-text: #fff8ff;
  --gw-muted: #c9b8e8;
  --gw-font: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --gw-display: "Orbitron", "Exo 2", system-ui, sans-serif;
  margin: 0;
  min-height: 100dvh;
  font-family: var(--gw-font);
  color: var(--gw-text) !important;
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(255, 43, 214, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(0, 240, 255, 0.28), transparent 50%),
    radial-gradient(ellipse 70% 45% at 50% 110%, rgba(255, 210, 74, 0.18), transparent 55%),
    linear-gradient(165deg, var(--gw-bg0), var(--gw-bg1) 45%, var(--gw-bg2)) !important;
  background-attachment: fixed !important;
  line-height: 1.45;
  overflow-x: hidden;
}

.preview-frame.gw-play {
  --gw-neon: #ff2bd6;
  --gw-neon2: #00f0ff;
  --gw-gold: #ffd24a;
  --gw-gold2: #ff9f1c;
  --gw-lime: #7cff6b;
  --gw-panel: rgba(18, 8, 42, 0.82);
  --gw-line: rgba(255, 210, 74, 0.35);
  --gw-text: #fff8ff;
  --gw-muted: #c9b8e8;
  --gw-font: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --gw-display: "Orbitron", "Exo 2", system-ui, sans-serif;
  font-family: var(--gw-font);
  color: var(--gw-text);
}

body.gw-play::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
  opacity: 0.5;
  z-index: 0;
}

body.gw-play .wrap {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 2.75rem;
}

body.gw-play a {
  color: var(--gw-neon2);
}

body.gw-play .back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  color: var(--gw-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

body.gw-play .back:hover {
  color: var(--gw-gold);
  text-decoration: none;
}

/* —— Progress track —— */
.gw-progress {
  margin: 0 0 1.15rem;
  padding: 1rem 0.85rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 43, 214, 0.18), rgba(0, 240, 255, 0.12));
  border: 1px solid rgba(255, 210, 74, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.15) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
  animation: gw-panel-in 0.55s ease-out both;
}

.gw-progress__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 0.15rem;
}

.gw-progress__bar {
  position: absolute;
  left: 16.5%;
  right: 16.5%;
  top: 18px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  z-index: 0;
}

.gw-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gw-neon), var(--gw-gold), var(--gw-neon2));
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.7);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gw-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.gw-step__dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--gw-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: #2a1048;
  background: #3a2460;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.gw-step__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gw-muted);
  line-height: 1.2;
}

.gw-step__reward {
  font-family: var(--gw-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 248, 255, 0.55);
}

.gw-step.is-done .gw-step__dot {
  background: linear-gradient(145deg, var(--gw-lime), #2ecc71);
  border-color: #b8ffae;
  color: #06210c;
  box-shadow: 0 0 18px rgba(124, 255, 107, 0.55);
}

.gw-step.is-done .gw-step__label,
.gw-step.is-done .gw-step__reward {
  color: var(--gw-lime);
}

.gw-step.is-current .gw-step__dot {
  background: linear-gradient(145deg, var(--gw-gold), var(--gw-gold2));
  border-color: #fff3b0;
  color: #3a1f00;
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(255, 210, 74, 0.75);
  animation: gw-pulse 1.6s ease-in-out infinite;
}

.gw-step.is-current .gw-step__label {
  color: var(--gw-gold);
}

.gw-step.is-current .gw-step__reward {
  color: #ffe9a0;
}

.gw-step.is-locked .gw-step__dot {
  background: #24143f;
  border-color: rgba(255, 255, 255, 0.12);
  color: #8a79a8;
}

/* —— Hero —— */
body.gw-play .hero, .preview-frame.gw-play .preview-hero {
  text-align: center;
  animation: gw-panel-in 0.65s 0.08s ease-out both;
}

body.gw-play .hero h1, .preview-frame.gw-play .preview-hero h1 {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--gw-display);
  font-size: clamp(1.45rem, 5.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 0 24px rgba(255, 43, 214, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.35);
}

body.gw-play .hero-desc {
  margin: 0.85rem 0 0;
  color: var(--gw-muted);
  font-size: 0.92rem;
}

body.gw-play .hero-media,
.preview-frame.gw-play .hero-media {
  margin: 0 auto 0.85rem;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(#16082f, #16082f) padding-box,
    linear-gradient(135deg, var(--gw-neon), var(--gw-gold), var(--gw-neon2)) border-box;
  box-shadow:
    0 0 28px rgba(255, 43, 214, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.45);
  animation: gw-float 4.5s ease-in-out infinite;
}

body.gw-play .hero-media img,
.preview-frame.gw-play .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gw-play .countdown,
.preview-frame.gw-play .countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}

body.gw-play .countdown__cell,
.preview-frame.gw-play .countdown__cell {
  background: linear-gradient(180deg, rgba(255, 43, 214, 0.22), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 0.5rem 0.2rem;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12) inset;
}

body.gw-play .countdown__value,
.preview-frame.gw-play .countdown__value {
  display: block;
  font-family: var(--gw-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gw-gold);
  line-height: 1.15;
  text-shadow: 0 0 12px rgba(255, 210, 74, 0.45);
}

body.gw-play .countdown__label,
.preview-frame.gw-play .countdown__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gw-muted);
}

body.gw-play .countdown--ended .countdown__value,
.preview-frame.gw-play .countdown--ended .countdown__value {
  color: #ff6b8a;
}

/* —— Panels / form —— */
body.gw-play .panel {
  margin-top: 1.1rem;
  padding: 1.2rem 1.1rem 1.25rem;
  border-radius: 20px;
  background: var(--gw-panel);
  border: 1px solid var(--gw-line);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.12) inset,
    0 18px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  animation: gw-panel-in 0.7s 0.12s ease-out both;
}

body.gw-play .panel h2 {
  margin: 0 0 0.4rem;
  font-family: var(--gw-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gw-gold);
}

body.gw-play .panel p {
  margin: 0 0 1rem;
  color: var(--gw-muted);
  font-size: 0.92rem;
}

body.gw-play label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gw-neon2);
}

body.gw-play input[type="email"] {
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(8, 4, 24, 0.75);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

body.gw-play input[type="email"]:focus {
  outline: none;
  border-color: var(--gw-gold);
  box-shadow: 0 0 0 3px rgba(255, 210, 74, 0.25);
}

body.gw-play .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 14px;
  font-family: var(--gw-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: #2a0a00;
  background: linear-gradient(135deg, var(--gw-gold), var(--gw-gold2) 55%, #ff6b2d);
  box-shadow:
    0 0 24px rgba(255, 159, 28, 0.45),
    0 8px 0 #a34a00;
  transform: translateY(0);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

body.gw-play .btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

body.gw-play .btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 0 16px rgba(255, 159, 28, 0.35),
    0 3px 0 #a34a00;
}

body.gw-play .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

body.gw-play .btn--warn {
  color: #061428;
  background: linear-gradient(135deg, var(--gw-neon2), #6d5cff 50%, var(--gw-neon));
  box-shadow:
    0 0 24px rgba(0, 240, 255, 0.4),
    0 8px 0 #3a2a9a;
}

body.gw-play .btn--warn:active:not(:disabled) {
  box-shadow:
    0 0 14px rgba(0, 240, 255, 0.3),
    0 3px 0 #3a2a9a;
}

body.gw-play .btn--ghost {
  color: var(--gw-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  font-family: var(--gw-font);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 650;
}

body.gw-play .btn--ghost:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 210, 74, 0.5);
  filter: none;
}

body.gw-play .stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.gw-play .entries {
  font-family: var(--gw-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gw-gold);
  text-shadow: 0 0 16px rgba(255, 210, 74, 0.5);
}

body.gw-play .entries-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 210, 74, 0.12);
  border: 1px solid rgba(255, 210, 74, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gw-muted);
}

body.gw-play .status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--gw-muted);
}

body.gw-play .status--ok {
  color: var(--gw-lime);
}

body.gw-play .status--err {
  color: #ff6b8a;
}

body.gw-play .foot {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(201, 184, 232, 0.65);
}

body.gw-play .foot a {
  color: rgba(201, 184, 232, 0.85);
  margin: 0 0.35rem;
}

/* —— Ad overlay —— */
body.gw-play .ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 2, 18, 0.78);
  backdrop-filter: blur(6px);
}

body.gw-play .ad-overlay.is-open {
  display: flex;
}

body.gw-play .ad-dialog {
  width: min(420px, 100%);
  padding: 1.25rem;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(160deg, #1c0a3e, #0d0622);
  border: 1px solid rgba(255, 210, 74, 0.45);
  box-shadow: 0 0 40px rgba(255, 43, 214, 0.35);
  color: var(--gw-text);
}

body.gw-play .ad-dialog h3 {
  margin: 0 0 0.4rem;
  font-family: var(--gw-display);
  color: var(--gw-gold);
}

body.gw-play .ad-dialog p {
  margin: 0 0 1rem;
  color: var(--gw-muted);
  font-size: 0.9rem;
}

body.gw-play .ad-screen {
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(0, 240, 255, 0.4);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 43, 214, 0.25), transparent 50%),
    #120828;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gw-neon2);
  font-family: var(--gw-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

body.gw-play .ad-note {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: rgba(201, 184, 232, 0.7);
  line-height: 1.45;
}

body.gw-play .ad-slot {
  margin: 1.25rem 0;
  text-align: center;
}

body.gw-play .ad-slot[hidden] {
  display: none !important;
}

@keyframes gw-pulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(255, 210, 74, 0.55);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 210, 74, 0.95);
  }
}

@keyframes gw-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes gw-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gw-play .hero-media, .preview-frame.gw-play .hero-media,
  .gw-step.is-current .gw-step__dot {
    animation: none;
  }
}

/* —— Home list —— */
body.gw-play .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

body.gw-play .brand {
  font-family: var(--gw-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 43, 214, 0.45);
}

body.gw-play .brand span {
  color: var(--gw-gold);
}

body.gw-play .brand:hover {
  text-decoration: none;
  color: #fff;
}

body.gw-play .list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.35rem;
}

body.gw-play .card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  color: var(--gw-text);
  text-decoration: none;
  background: var(--gw-panel);
  border: 1px solid var(--gw-line);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.12) inset,
    0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  animation: gw-panel-in 0.55s ease-out both;
}

body.gw-play .card:hover {
  text-decoration: none;
  color: var(--gw-text);
  transform: translateY(-3px);
  border-color: rgba(255, 210, 74, 0.65);
  box-shadow:
    0 0 28px rgba(255, 43, 214, 0.28),
    0 18px 44px rgba(0, 0, 0, 0.45);
}

body.gw-play .card__media {
  aspect-ratio: 1;
  max-height: 200px;
  max-width: 200px;
  margin: 1.1rem auto 0;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid transparent;
  background:
    linear-gradient(#16082f, #16082f) padding-box,
    linear-gradient(135deg, var(--gw-neon), var(--gw-gold), var(--gw-neon2)) border-box;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.2);
}

body.gw-play .card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gw-play .card__body {
  padding: 1rem 1.15rem 1.2rem;
  text-align: center;
}

body.gw-play .card__title {
  margin: 0 0 0.65rem;
  font-family: var(--gw-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 43, 214, 0.4);
}

body.gw-play .badge {
  display: inline-block;
  width: fit-content;
  margin: 0.85rem auto 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-family: var(--gw-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(124, 255, 107, 0.15);
  color: var(--gw-lime);
  border: 1px solid rgba(124, 255, 107, 0.45);
}

body.gw-play .badge--closed {
  background: rgba(255, 107, 138, 0.15);
  color: #ff6b8a;
  border-color: rgba(255, 107, 138, 0.45);
}

body.gw-play .hero--home {
  text-align: center;
  margin-bottom: 1.25rem;
  animation: gw-panel-in 0.5s ease-out both;
}

body.gw-play .hero--home h1 {
  margin: 0;
  font-family: var(--gw-display);
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    0 0 24px rgba(255, 43, 214, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.35);
}
