.polarized-scratch-card {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: var(--polarized-aspect, 3 / 2);
  border-radius: 12px;
  padding: 8px;
  background: #d4d4d4;
  overflow: hidden;
}

.polarized-scratch-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  background: #ffffff;
  border-radius: 8px;
  z-index: 1;
}

.polarized-scratch-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  z-index: 2;
}

.polarized-scratch-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: transparent;
  touch-action: none;
}

.polarized-scratch-reset {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.polarized-scratch-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.polarized-scratch-reset:active {
  transform: translateY(0);
}
