:root {
  --ink: #141413;
  --paper: #faf9f5;
  --accent: #0b6e4f;
  --error: #b3261e;
  --border: #dedcd3;
  font-size: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen { display: flex; flex-direction: column; gap: 14px; }
.screen[hidden] { display: none; }

.logo { max-width: 140px; margin: 0 auto 8px; display: block; }
.journey-banner { width: 100%; max-height: 180px; object-fit: cover; border-radius: 14px; margin-bottom: 4px; }

h1 { font-size: 24px; margin: 0; text-align: center; }
.tag { text-align: center; color: #5c5c5c; margin: 0 0 8px; }

form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; }
label.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.privacy { font-size: 12.5px; color: #5c5c5c; }
.privacy a, .legal a { color: var(--accent); }

button {
  font-size: 17px;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button:disabled { opacity: 0.6; }

.error { color: var(--error); font-size: 14px; margin: 0; }
.error[hidden] { display: none; }

.wheel-holder { position: relative; width: 320px; max-width: 100%; margin: 8px auto; }
#wheel { width: 100%; height: auto; touch-action: none; }
.pointer {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35));
  z-index: 2;
}
.pointer-ball {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  margin-bottom: -5px;
}
.pointer-tip {
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid var(--ink);
}

.mute-btn {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  font-size: 18px; line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  color: var(--ink);
}

#confetti-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 50;
}

.claim-code {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 4px 0 0;
}
.claim-time { text-align: center; color: #5c5c5c; margin: 0; }
.claim-note { text-align: center; font-size: 14px; margin: 0; }

#result-image { max-width: 160px; margin: 0 auto; display: block; }

.legal { gap: 12px; }
.legal-body { font-size: 14px; color: #333; }

.preview-banner {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: #fdf1d8; color: #6b4600; font-size: 13px; line-height: 1.4;
  padding-right: 56px;
}
.closed { justify-content: center; text-align: center; gap: 10px; }
.closed-note { color: #5c5c5c; margin: 0; }
