:root {
  color-scheme: light;
  font-family: "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  color: #32252a;
  background: #fff9fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(255, 224, 232, 0.95), transparent 38%),
    linear-gradient(180deg, #fff9fb 0%, #fff 55%, #fff5f8 100%);
}

button,
video {
  font: inherit;
}

.app-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.hero {
  padding: 22px 4px 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #b44f70;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 10vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.lead,
.check-content p,
.camera-message,
.privacy-note {
  line-height: 1.7;
}

.lead {
  margin-bottom: 0;
  color: #6f5a62;
}

.status-card,
.check-card,
.camera-panel {
  margin-top: 14px;
  border: 1px solid rgba(180, 79, 112, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(91, 39, 57, 0.08);
}

.status-card {
  padding: 16px 18px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d5c9cd;
}

.status-dot.is-ready {
  background: #46aa70;
  box-shadow: 0 0 0 5px rgba(70, 170, 112, 0.12);
}

.status-dot.is-warning {
  background: #d8953c;
  box-shadow: 0 0 0 5px rgba(216, 149, 60, 0.12);
}

.status-label {
  margin-bottom: 2px;
  color: #8b767e;
  font-size: 0.78rem;
  font-weight: 700;
}

#line-status {
  margin-bottom: 0;
  font-weight: 700;
}

.check-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 20px;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: #f8cbd7;
  color: #733047;
  font-weight: 900;
}

.check-content p {
  margin-bottom: 14px;
  color: #735f67;
  font-size: 0.92rem;
}

.primary-button,
.secondary-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: #b44f70;
}

.secondary-button {
  color: #66384a;
  background: #f6e8ed;
}

.secondary-button:disabled {
  color: #9e9196;
  cursor: not-allowed;
  opacity: 0.72;
}

.camera-panel {
  overflow: hidden;
  padding: 12px;
}

#camera-preview {
  display: block;
  width: 100%;
  max-height: 58vh;
  border-radius: 16px;
  background: #241d20;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-message {
  margin: 10px 4px 2px;
  color: #735f67;
  font-size: 0.86rem;
}

.privacy-note {
  margin: 22px 0 0;
  color: #8b767e;
  font-size: 0.76rem;
  text-align: center;
}

@media (min-width: 480px) {
  .check-card {
    grid-template-columns: 42px 1fr auto;
    align-items: center;
  }

  .primary-button,
  .secondary-button {
    grid-column: 2 / -1;
  }
}
