.ptg-card {
  --ptg-ink: #12131a;
  --ptg-ink-soft: #6c7380;
  --ptg-yellow: #ffc400;
  --ptg-yellow-deep: #efb700;
  --ptg-dark: #16131d;
  --ptg-dark-soft: #241d2b;
  --ptg-line: rgba(18, 19, 26, 0.08);
  color: var(--ptg-ink);
  margin: 2.75rem auto;
  max-width: 1240px;
  position: relative;
  background: #fff;
  border: 1px solid rgba(16, 16, 24, 0.06);
  border-radius: 38px;
  box-shadow: 0 18px 50px rgba(20, 20, 30, 0.06);
  overflow: hidden;
}

.ptg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 196, 0, 0.05), transparent 18%);
  pointer-events: none;
}

.ptg-card__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 2.6rem;
  padding: 3.35rem 3.4rem;
  align-items: stretch;
}

.ptg-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ptg-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: #ffc800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 800;
}

.ptg-title {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.6rem, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
  font-weight: 700;
  margin-bottom: 20px;
}

.ptg-description {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: #535862;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.9;
}

.ptg-form {
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid var(--ptg-line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(20, 20, 30, 0.05);
}

.ptg-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.ptg-form__row:last-child {
  margin-bottom: 0;
}

.ptg-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.ptg-consent__checkbox {
  margin: 0.2rem 0 0;
}

.ptg-consent__text {
  color: #535862;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.95;
}

.ptg-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ptg-ink-soft);
}

.ptg-input {
  min-width: 0;
  border: 1px solid rgba(16, 16, 24, 0.12);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  background: #f8f9fb;
  color: var(--ptg-ink);
  font-size: 1rem;
}

.ptg-input::placeholder {
  color: rgba(99, 107, 118, 0.85);
}

.ptg-input:focus {
  outline: 2px solid rgba(255, 196, 0, 0.34);
  outline-offset: 1px;
  background: #fffefa;
}

.ptg-button {
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.45rem;
  background: linear-gradient(180deg, #ffca14 0%, #ffc400 100%);
  color: #101018;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(255, 196, 0, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.ptg-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(255, 196, 0, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.ptg-feedback {
  min-height: 1.75rem;
  margin-top: 1rem;
  padding-left: 0.2rem;
  font-weight: 700;
}

.ptg-feedback.is-error {
  color: #c12a18;
}

.ptg-feedback.is-success {
  color: #2e6d2a;
}

.ptg-stage {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.ptg-stage::before {
  content: "";
  position: absolute;
  inset: 12% 0 12% auto;
  width: 92%;
  border-radius: 34px;
  background: var(--ptg-yellow);
}

.ptg-scratch {
  position: relative;
  width: 100%;
  min-height: 560px;
  margin-left: auto;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 196, 0, 0.16), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(255, 140, 0, 0.12), transparent 18%),
    linear-gradient(135deg, #19161f 0%, #211c28 48%, #2a221a 100%);
  border-radius: 30px;
  border: 1px solid rgba(23, 20, 31, 0.08);
  box-shadow: 0 26px 50px rgba(17, 16, 24, 0.16);
  overflow: hidden;
  z-index: 1;
}

.ptg-scratch::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  pointer-events: none;
  z-index: 1;
}

.ptg-scratch.is-disabled {
  filter: saturate(0.7);
  opacity: 0.72;
}

.ptg-prize {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 2.5rem;
  color: #ffffff;
  background:
    radial-gradient(circle at top, rgba(255, 196, 0, 0.18), transparent 30%);
}

.ptg-prize__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
}

.ptg-prize__code {
  margin: 0.9rem 0;
  padding: 0.55rem 1rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ptg-prize__meta {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
  font-size: 1rem;
}

.ptg-scratch__canvas,
.ptg-scratch__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ptg-scratch__canvas {
  z-index: 3;
  touch-action: none;
}

.ptg-scratch__overlay {
  z-index: 2;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.ptg-scratch__overlay span {
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.18);
  backdrop-filter: blur(8px);
}

@media (max-width: 680px) {
  .ptg-card {
    margin: 1.5rem auto;
    border-radius: 26px;
  }

  .ptg-card__inner {
    grid-template-columns: 1fr;
    padding: 1.2rem;
    gap: 1.25rem;
  }

  .ptg-form__row {
    grid-template-columns: 1fr;
  }

  .ptg-button {
    width: 100%;
  }

  .ptg-stage::before {
    inset: auto 0 0 0;
    width: 100%;
    height: 86%;
    border-radius: 24px;
  }

  .ptg-scratch {
    min-height: 360px;
  }

  .ptg-prize__code {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }
}
