
/* =========================================
   BGODGAMES — GODSTRIKE
   DARK THUNDER CORE
========================================= */

:root {
  --bg: #0b0712;
  --bgDark: #06040b;

  --thunderBlack: #0d0915;
  --thunderNavy: #170d22;
  --thunderPurple: #271235;

  --goldLight: #fff0b5;
  --goldMain: #ffda70;
  --goldMetal: #c48a2b;
  --goldDark: #795015;

  --purple: #923bfa;
  --purpleGlow: #ad4cff;

  --textGold: #fff1c7;
}


/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  margin: 0;

  background:
    radial-gradient(
      ellipse at 18% 20%,
      rgba(146, 59, 250, .13),
      transparent 55%
    ),

    radial-gradient(
      ellipse at 85% 75%,
      rgba(196, 138, 43, .10),
      transparent 55%
    ),

    var(--bg);

  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}


/* =========================================
   LANDING PAGE
========================================= */

.page {
  width: min(560px, 100%);

  min-height: 100vh;
  min-height: 100svh;

  margin: 0 auto;

  padding-bottom:
    calc(112px + env(safe-area-inset-bottom));

  background:
    linear-gradient(
      180deg,
      #110a1b,
      #07050c
    );

  box-shadow:
    0 0 80px rgba(0, 0, 0, .70);
}

.posterWrap {
  position: relative;

  width: 100%;
  overflow: hidden;

  background: var(--bgDark);
}

.posterImg {
  display: block;

  width: 100%;
  height: auto;

  user-select: none;
  -webkit-user-drag: none;
}


/* =========================================
   GODSTRIKE CTA
========================================= */

.cta {
  position: fixed;

  left: 50%;

  bottom:
    calc(14px + env(safe-area-inset-bottom));

  width: min(520px, 92vw);
  height: 76px;

  z-index: 100;

  display: block;

  color: var(--textGold);
  text-decoration: none;

  -webkit-tap-highlight-color: transparent;

  transform: translateX(-50%);

  isolation: isolate;

  animation:
    godstrikePulse
    4.5s ease-in-out infinite;
}


/* =========================================
   STORM AURA
========================================= */

.ctaGlow {
  position: absolute;

  inset: -5px;

  z-index: -1;

  pointer-events: none;

  clip-path: polygon(
    16px 0,
    100% 0,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    0 100%,
    0 16px
  );

  background:
    linear-gradient(
      105deg,
      rgba(255, 218, 112, .85),
      rgba(146, 59, 250, .85),
      rgba(173, 76, 255, .70),
      rgba(255, 218, 112, .75)
    );

  filter: blur(6px);

  opacity: .24;

  animation:
    stormAura
    4.5s ease-in-out infinite;
}


/* =========================================
   METALLIC FRAME
========================================= */

.ctaFrame {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;

  padding: 2px;

  clip-path: polygon(
    16px 0,
    100% 0,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    0 100%,
    0 16px
  );

  background:
    linear-gradient(
      110deg,
      #ffe698 0%,
      #b47c24 24%,
      #ffdf7b 43%,
      #722ab9 68%,
      #bd62ff 82%,
      #e2a83c 100%
    );

  filter:
    drop-shadow(
      0 0 8px rgba(255, 218, 112, .28)
    );

  overflow: hidden;
}


/* =========================================
   DARK INNER PANEL
========================================= */

.ctaPanel {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  height: 100%;

  padding: 7px 20px 7px 10px;

  clip-path: polygon(
    14px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );

  overflow: hidden;

  background:
    radial-gradient(
      120% 180% at 10% 0%,
      rgba(255, 218, 112, .13),
      transparent 43%
    ),

    radial-gradient(
      110% 160% at 100% 100%,
      rgba(146, 59, 250, .17),
      transparent 58%
    ),

    linear-gradient(
      110deg,
      #211329 0%,
      #0d0915 52%,
      #1b0d27 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -6px 15px rgba(0,0,0,.42);
}


/* =========================================
   INNER HUD LINES
========================================= */

.ctaPanel::after {
  content: "";

  position: absolute;

  inset: 5px;

  z-index: 1;

  pointer-events: none;

  border-top:
    1px solid rgba(255, 222, 133, .19);

  border-bottom:
    1px solid rgba(170, 72, 255, .24);

  clip-path: polygon(
    11px 0,
    100% 0,
    100% calc(100% - 11px),
    calc(100% - 11px) 100%,
    0 100%,
    0 11px
  );
}


/* =========================================
   LIGHTNING STRIKE SWEEP
========================================= */

.ctaPanel::before {
  content: "";

  position: absolute;

  top: -35%;
  bottom: -35%;

  left: -35%;

  width: 34%;

  z-index: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 210, 83, .06) 18%,
      rgba(255, 250, 218, .85) 48%,
      rgba(177, 74, 255, .22) 76%,
      transparent 100%
    );

  transform:
    skewX(-22deg)
    translateX(-150%);

  opacity: 0;

  filter: blur(1px);

  animation:
    lightningSweep
    4.2s ease-in-out infinite;
}


/* =========================================
   THUNDER CORE
========================================= */

.thunderCore {
  position: relative;

  z-index: 2;

  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  display: grid;
  place-items: center;

  margin-right: 13px;

  padding: 2px;

  clip-path: polygon(
    11px 0,
    100% 0,
    100% calc(100% - 11px),
    calc(100% - 11px) 100%,
    0 100%,
    0 11px
  );

  background:
    linear-gradient(
      135deg,
      #ffeb9a 0%,
      #b47a22 38%,
      #903ae6 77%,
      #e9b95e 100%
    );

  animation:
    thunderCorePower
    4.5s ease-in-out infinite;
}


/* =========================================
   INNER CORE
========================================= */

.coreInner {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  clip-path: polygon(
    9px 0,
    100% 0,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    0 100%,
    0 9px
  );

  background:
    radial-gradient(
      circle at 50% 40%,
      #2c1645 0%,
      #170b25 48%,
      #080611 100%
    );
}


/* =========================================
   SVG LIGHTNING
========================================= */

.boltIcon {
  width: 27px;
  height: 27px;

  color: #ffe06d;

  filter:
    drop-shadow(
      0 0 4px rgba(255, 225, 105, .95)
    )
    drop-shadow(
      0 0 9px rgba(177, 71, 255, .55)
    );

  animation:
    lightningFlash
    4.2s ease-in-out infinite;
}


/* =========================================
   CTA TEXT
========================================= */

.ctaCopy {
  position: relative;

  z-index: 2;

  display: flex;
  flex-direction: column;

  min-width: 0;

  line-height: 1.07;
}

.ctaCopy small {
  margin-bottom: 4px;

  color: #c9a8da;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.2px;

  white-space: nowrap;
}

.ctaCopy strong {
  color: #fff1c7;

  font-size: 23px;
  font-weight: 950;

  letter-spacing: -.3px;

  white-space: nowrap;

  text-shadow:
    0 2px 0 rgba(0, 0, 0, .58),
    0 0 12px rgba(255, 218, 112, .30);
}


/* =========================================
   THUNDER ARROW
========================================= */

.ctaArrow {
  position: relative;

  z-index: 2;

  margin-left: auto;

  color: #ffdc79;

  font-size: 32px;
  font-weight: 800;

  line-height: 1;

  text-shadow:
    0 0 8px rgba(255, 218, 112, .70),
    0 0 16px rgba(146, 59, 250, .38);

  animation:
    strikeArrow
    2.6s ease-in-out infinite;
}


/* =========================================
   LIGHTNING SWEEP ANIMATION
========================================= */

@keyframes lightningSweep {

  0%,
  22% {
    transform:
      skewX(-22deg)
      translateX(-150%);

    opacity: 0;
  }

  29% {
    opacity: .65;
  }

  41% {
    transform:
      skewX(-22deg)
      translateX(560%);

    opacity: .95;
  }

  47%,
  100% {
    transform:
      skewX(-22deg)
      translateX(560%);

    opacity: 0;
  }
}


/* =========================================
   LIGHTNING FLASH
========================================= */

@keyframes lightningFlash {

  0%,
  23%,
  39%,
  100% {
    transform: scale(1) rotate(-4deg);
    opacity: 1;
  }

  28% {
    transform: scale(1.17) rotate(4deg);
    opacity: 1;
  }

  32% {
    transform: scale(1.03) rotate(-3deg);
    opacity: .78;
  }

  35% {
    transform: scale(1.12) rotate(2deg);
    opacity: 1;
  }
}


/* =========================================
   THUNDER CORE POWER
========================================= */

@keyframes thunderCorePower {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  32% {
    transform: scale(1.07);
    filter: brightness(1.3);
  }

  46% {
    transform: scale(1);
    filter: brightness(1.02);
  }
}


/* =========================================
   STORM AURA
========================================= */

@keyframes stormAura {

  0%,
  22%,
  100% {
    opacity: .17;
  }

  33% {
    opacity: .56;
  }

  48% {
    opacity: .25;
  }
}


/* =========================================
   POWER PULSE
========================================= */

@keyframes godstrikePulse {

  0%,
  24%,
  100% {
    transform:
      translateX(-50%) scale(1);

    filter: brightness(1);
  }

  35% {
    transform:
      translateX(-50%) scale(1.015);

    filter: brightness(1.10);
  }

  48% {
    transform:
      translateX(-50%) scale(1);

    filter: brightness(1);
  }
}


/* =========================================
   ARROW ANIMATION
========================================= */

@keyframes strikeArrow {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}


/* =========================================
   INTERACTION
========================================= */

.cta:active {
  animation: none;

  transform:
    translateX(-50%) scale(.985);

  filter: brightness(1.16);
}

.cta:focus-visible {
  outline: 3px solid #ffe698;
  outline-offset: 5px;
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 390px) {

  .cta {
    width: 94vw;
    height: 70px;
  }

  .ctaPanel {
    padding: 6px 14px 6px 9px;
  }

  .thunderCore {
    width: 47px;
    height: 47px;

    flex-basis: 47px;

    margin-right: 10px;
  }

  .boltIcon {
    width: 24px;
    height: 24px;
  }

  .ctaCopy small {
    font-size: 8px;
    letter-spacing: .7px;
  }

  .ctaCopy strong {
    font-size: 21px;
  }

  .ctaArrow {
    font-size: 28px;
  }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  .cta,
  .ctaGlow,
  .ctaPanel::before,
  .thunderCore,
  .boltIcon,
  .ctaArrow {
    animation: none;
  }

  .cta {
    transform: translateX(-50%);
  }
}
