/* =============================
   Giveaway Card (gw2) — Styles
   ============================= */

.gw2-scale-wrap{
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.gw2-scale{
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 980px;
  transform-origin: top left;
  will-change: auto;
}

.gw2-wrap{
  width: 980px;
  margin: 0;
}

.gw2-outer{
  position: relative;
  border-radius: 28px;
  padding: 30px;
  background: rgba(0,0,0,.82);
  overflow: hidden;
  isolation: isolate;
}

.gw2-outer::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 4px solid var(--gw2-border, rgba(255,0,0,.95));
  box-shadow:
    0 0 18px var(--gw2-glow, rgba(255,0,0,.55)),
    0 0 42px var(--gw2-glow2, rgba(255,0,0,.35));
  pointer-events: none;
}

.gw2-outer::after{
  content: "";
  position: absolute;
  inset: -50%;
  border-radius: 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 300deg,
      rgba(255,255,255,.0) 320deg,
      rgba(255,255,255,.75) 336deg,
      rgba(255,255,255,.15) 348deg,
      transparent 360deg
    );
  animation:
    gw2-border-shine-spin 6s linear infinite,
    gw2-border-breathe 3.2s ease-in-out infinite;
}

.gw2-wrap.gw2-urgent .gw2-outer::after{
  opacity: 1;
  animation:
    gw2-border-shine-spin 4.8s linear infinite,
    gw2-border-breathe 2.4s ease-in-out infinite;
}

.gw2-wrap.gw2-live .gw2-outer::after,
.gw2-wrap.gw2-notopen .gw2-outer::after,
.gw2-wrap.gw2-scratch .gw2-outer::after{
  opacity: 0;
  animation: none;
}

.gw2-wrap.gw2-notopen .gw2-header{
  grid-template-columns: 340px 1fr;
}

.gw2-wrap.gw2-urgent{
  --gw2-border: rgba(255,0,0,.95);
  --gw2-glow: rgba(255,0,0,.55);
  --gw2-glow2: rgba(255,0,0,.35);
  --gw2-dot: rgba(255,0,0,.95);
  --gw2-dotglow: rgba(255,0,0,.65);
  --gw2-accent: rgba(255,210,0,.95);
  --gw2-btntext: rgba(255,255,255,1);

  --gw2-btn-stop1: #ff0000;
  --gw2-btn-stop2: #850000;
  --gw2-btn-stop3: #4f0000;
}

.gw2-wrap.gw2-live{
  --gw2-border: rgba(255,210,0,.95);
  --gw2-glow: rgba(255,210,0,.50);
  --gw2-glow2: rgba(255,210,0,.30);
  --gw2-dot: rgba(255,210,0,.95);
  --gw2-dotglow: rgba(255,210,0,.65);
  --gw2-accent: rgba(255,210,0,.95);
  --gw2-btntext: rgba(0,0,0,.92);

  --gw2-btn-stop1: #ffd200;
  --gw2-btn-stop2: #c89600;
  --gw2-btn-stop3: #8c6900;
}

.gw2-wrap.gw2-notopen{
  --gw2-border: rgba(180,180,180,.55);
  --gw2-glow: rgba(180,180,180,.20);
  --gw2-glow2: rgba(180,180,180,.12);
  --gw2-dot: rgba(180,180,180,.85);
  --gw2-dotglow: rgba(180,180,180,.25);
  --gw2-accent: rgba(255,210,0,.85);
  --gw2-btntext: rgba(0,0,0,.92);

  --gw2-btn-stop1: #ffd200;
  --gw2-btn-stop2: #c89600;
  --gw2-btn-stop3: #8c6900;
}

.gw2-wrap.gw2-scratch.gw2-live{
  --gw2-border: rgba(0,255,110,.85);
  --gw2-glow: rgba(0,255,110,.35);
  --gw2-glow2: rgba(0,255,110,.22);
  --gw2-dot: rgba(0,255,110,.92);
  --gw2-dotglow: rgba(0,255,110,.55);
  --gw2-accent: rgba(0,255,110,.92);
  --gw2-btntext: rgba(0,0,0,.92);

  --gw2-btn-stop1: #00ff6e;
  --gw2-btn-stop2: #00b450;
  --gw2-btn-stop3: #00783c;
}

.gw2-header{
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.92);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.gw2-live{
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 3px;
}

.gw2-live-text{
  display: inline-block;
  vertical-align: middle;
}

.gw2-dot{
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-left: 0;
  border-radius: 999px;
  background: var(--gw2-dot, rgba(255,0,0,.95));
  box-shadow: 0 0 16px var(--gw2-dotglow, rgba(255,0,0,.65));
  transform-origin: center center;
}

.gw2-wrap.gw2-urgent .gw2-dot{
  animation: gw2-dot-pulse 2s ease-in-out infinite;
}

.gw2-wrap.gw2-live .gw2-dot,
.gw2-wrap.gw2-notopen .gw2-dot,
.gw2-wrap.gw2-scratch .gw2-dot{
  animation: none;
}

.gw2-right{
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
  font-weight: 700;
  font-size: 32px;
  white-space: nowrap;
  min-width: 0;
  letter-spacing: 3px;
}

.gw2-right-label,
.gw2-right-time{
  display: inline-block;
}

.gw2-right-label{
  color: var(--gw2-accent, rgba(255,210,0,.95));
}

.gw2-right-time{
  min-width: max-content;
  color: var(--gw2-accent, rgba(255,210,0,.95));
}

.gw2-card{
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(0,0,0,.55);
}

.gw2-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 3px;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    to bottom,
    rgba(120,120,120,.55),
    rgba(255,255,255,.55)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gw2-image{
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.gw2-footer{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  background: rgba(0,0,0,.88);
  padding: 18px 0 0 18px;
}

.gw2-cash{
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  color: rgba(255,255,255,.95);
  text-transform: uppercase;
  padding-bottom: 0;
}

.gw2-cash-amt{
  font-weight: 700;
  font-size: 48px;
  color: rgba(255,210,0,.98);
  white-space: nowrap;
  letter-spacing: .12em;
}

.gw2-cash-text{
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: .12em;
}

.gw2-cash-muted{
  font-size: 42px;
  font-weight: 500;
  opacity: .75;
  font-style: italic;
  letter-spacing: .12em;
}

.gw2-wrap.gw2-scratch .gw2-cash{
  gap: 18px;
}

.gw2-wrap.gw2-scratch .gw2-cash-amt{
  color: rgba(0,255,110,.98);
}

.gw2-wrap.gw2-scratch .gw2-cash-muted{
  display: none;
}

.gw2-wrap.gw2-scratch .gw2-right{
  display: none;
}

.gw2-wrap.gw2-scratch .gw2-header{
  grid-template-columns: 1fr;
}

.gw2-btn{
  position: relative !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 360px !important;
  height: auto !important;
  padding: 0 42px !important;
  margin: 0 !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  color: var(--gw2-btntext, #fff) !important;
  overflow: hidden !important;
  isolation: isolate !important;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease !important;
}

.gw2-btn[hidden]{
  display: none !important;
}

.gw2-btn-disabled{
  cursor: default;
  pointer-events: none;
  opacity: .92;
}

.gw2-btn-svg{
  position: absolute;
  top: 4px;
  left: 18px;
  width: calc(100% + 4px);
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.gw2-btn-stop-1{ stop-color: var(--gw2-btn-stop1, #ff0000); }
.gw2-btn-stop-2{ stop-color: var(--gw2-btn-stop2, #850000); }
.gw2-btn-stop-3{ stop-color: var(--gw2-btn-stop3, #4f0000); }

.gw2-btn-text{
  position: relative;
  z-index: 1;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 36px;
  left: 25px;
  top: 6px;
  line-height: 1;
  color: var(--gw2-btntext, #fff) !important;
}

.gw2-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.gw2-btn:active{
  transform: translateY(0);
  filter: brightness(.98);
}

@keyframes gw2-dot-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 10px var(--gw2-dotglow, rgba(255,0,0,.55)),
      0 0 18px var(--gw2-dotglow, rgba(255,0,0,.35));
  }
  35% {
    transform: scale(1.16);
    box-shadow:
      0 0 18px var(--gw2-dotglow, rgba(255,0,0,.75)),
      0 0 34px var(--gw2-dotglow, rgba(255,0,0,.45));
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 10px var(--gw2-dotglow, rgba(255,0,0,.55)),
      0 0 18px var(--gw2-dotglow, rgba(255,0,0,.35));
  }
}

@keyframes gw2-border-shine-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes gw2-border-breathe {
  0%, 100% {
    opacity: .42;
    filter: blur(10px);
  }
  50% {
    opacity: .72;
    filter: blur(14px);
  }
}