.screen--scratch {
  flex-direction: column;
  gap: 20px;
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 0;
}

.flip-card__hint {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
  color: #f1f1f1;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.flip-card {
  width: min(90vw, 420px);
  height: 340px;
  perspective: 1200px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card__inner--flipped {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  border: 2px solid #8b0000;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.6);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flip-card__front {
  background: url('../assets/roblox-front.jpg') center/cover;
  padding: 0;
  overflow: hidden;
}

.flip-card__flip-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #8b0000;
  background: rgba(20, 0, 0, 0.75);
  color: #f1f1f1;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.15s ease;
}

.flip-card__flip-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.flip-card__flip-btn:hover {
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.6);
}

.flip-card__flip-btn:active {
  transform: scale(0.95);
}

.flip-card__back {
  background: linear-gradient(160deg, #1a1a1a 0%, #2a0000 60%, #120000 100%);
  transform: rotateY(180deg);
  gap: 12px;
  overflow-y: auto;
}

.flip-card__dedication {
  margin: 0;
  color: #d6d6d6;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

.gift-card__code-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  background: #000;
  padding: 8px;
}

.gift-card__code-label {
  display: block;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.65rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin-bottom: 4px;
}

.gift-card__code-label--neon {
  color: #ff6b6b;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

.gift-card__code {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: #f1f1f1;
}

.gift-card__code--neon {
  color: #ff9e9e;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.9), 0 0 4px #fff;
}

.gift-card__code-wrap--neon {
  border: 1px solid rgba(255, 0, 0, 0.5);
}

.redeem-steps {
  margin: 0;
  padding-left: 20px;
  text-align: left;
  color: #b8b8b8;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  line-height: 1.5;
}

.redeem-steps strong {
  color: #f1f1f1;
}

#scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.scratch-canvas--revealed {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
