.scratch-card-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.scratch-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.scratch-card-modal {
  position: relative;
  width: calc(100% - 30px);
  max-width: 380px;
  margin: 60px auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 2;
}

.scratch-card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #222;
  font-size: 26px;
  line-height: 42px;
  cursor: pointer;
  z-index: 5;
}

.scratch-card-inner {
  display: flex;
  flex-wrap: wrap;
  /*min-height: 360px;*/
}

.scratch-card-left,
.scratch-card-right,
.scratch-card-finished {
  box-sizing: border-box;
  padding: 34px;
}

.scratch-card-left {
  flex: 1 1 320px;
}

.scratch-card-right,
.scratch-card-finished {
  flex: 1 1 320px;
  background: #f7f7f7;
  text-align: center;
}

.scratch-card-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #2ea44f;
}

.scratch-card-left h3 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
}

.scratch-card-left p {
  margin: 0 0 20px;
  color: #555;
}

.scratch-card-field input {
  width: 100%;
  height: 54px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 16px;
  box-sizing: border-box;
}

.scratch-card-btn {
  display: inline-block;
  min-width: 160px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #2ea44f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
}

.scratch-card-message {
  margin-top: 14px;
  font-size: 14px;
  color: #c62828;
}

.scratch-card-prize {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 180px;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, #2ea44f, #111);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.5px;
  overflow: hidden;
}

#scratch-card-canvas {
  display: block;
  width: 320px;
  max-width: 100%;
  height: 180px;
  margin: -180px auto 0;
  position: relative;
  z-index: 2;
  border-radius: 16px;
  touch-action: none;
  cursor: pointer;
}

.scratch-card-help {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
}

.scratch-card-finished h4 {
  margin: 0 0 12px;
  font-size: 28px;
}

.scratch-card-finished p {
  margin: 0 0 10px;
  color: #444;
  font-size: 16px;
}

.scratch-card-inner.single-panel .scratch-card-right,
.scratch-card-inner.single-panel .scratch-card-finished {
  flex: 1 1 100%;
  width: 100%;
}

@media (max-width: 767px) {
  .scratch-card-modal {
    margin: 20px auto;
  }

  .scratch-card-left,
  .scratch-card-right,
  .scratch-card-finished {
    padding: 24px;
  }

  .scratch-card-left h3 {
    font-size: 26px;
  }

  .scratch-card-prize,
  #scratch-card-canvas {
    width: 100%;
    max-width: 100%;
  }
}