:root {
  --bg: #fff7f1;
  --card: #ffffff;
  --text: #2d1f1a;
  --muted: #7a5e52;
  --accent: #b86b5b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: linear-gradient(140deg, #fff7f1, #fdeee6);
  color: var(--text);
  min-height: 100vh;
  padding: 24px 14px;
}
.card {
  width: min(92vw, 720px);
  background: var(--card);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
}
h1 span {
  color: var(--accent);
}
.lead {
  margin: 10px 0 18px;
  color: var(--muted);
}

.scratch-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.scratch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.details-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.scratch-tile {
  position: relative;
  min-height: 130px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff2eb;
  border: 1px solid #efd3c6;
}

.tile-content {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 14px;
}

.tile-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--muted);
}

.tile-content h2 {
  margin: 8px 0 0;
  font-size: 1.45rem;
}

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

.section {
  margin-top: 20px;
}
.sub {
  color: var(--muted);
  margin: 6px 0 12px;
}
form {
  display: grid;
  gap: 10px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}
input,
textarea,
button {
  border: 1px solid #e6d2c8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  opacity: 0.95;
}
#status {
  margin-top: 8px;
  font-weight: 600;
  min-height: 1.2em;
}

@media (max-width: 520px) {
  .card {
    padding: 20px;
  }
}
