* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: #f7f4ee;
  color: #22211f;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: 100%;
  max-width: 620px;

  margin: 0 auto;

  padding:
    max(22px, env(safe-area-inset-top))
    18px
    max(30px, env(safe-area-inset-bottom));
}


.brand-header {
  text-align: center;

  margin:
    12px 0
    26px;
}

.brand {
  font-size: 20px;
  font-weight: 800;

  letter-spacing: 2.5px;
}

.brand-subtitle {
  margin-top: 5px;

  color: #706d67;

  font-size: 13px;
}


.card {
  background: #ffffff;

  border: 1px solid #e8e4dc;
  border-radius: 22px;

  padding: 26px 22px;

  box-shadow:
    0 8px 30px
    rgba(27, 25, 20, 0.06);
}


.step-label {
  color: #8a6a3d;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 1.3px;

  margin-bottom: 10px;
}


h1 {
  margin:
    0 0 10px;

  line-height: 1.18;

  font-size: 29px;

  letter-spacing: -0.6px;
}


.lead {
  margin:
    0 0 22px;

  color: #66635e;

  font-size: 16px;
  line-height: 1.55;
}


.reward-box {
  display: flex;
  flex-direction: column;
  gap: 4px;

  background: #f4eee3;

  border-radius: 15px;

  padding: 16px;

  margin-bottom: 24px;
}

.reward-box strong {
  font-size: 17px;
}

.reward-box span {
  font-size: 14px;
}

.reward-box small {
  margin-top: 5px;

  color: #706b63;

  line-height: 1.4;
}


.field {
  display: block;

  margin-bottom: 18px;
}

.field > span {
  display: flex;
  justify-content: space-between;

  margin-bottom: 7px;

  font-weight: 700;

  font-size: 14px;
}

.field em {
  color: #89857d;

  font-style: normal;
  font-weight: 400;
}

.field input {
  width: 100%;

  padding: 14px 14px;

  border: 1px solid #d8d3ca;
  border-radius: 12px;

  background: #ffffff;
  color: #22211f;

  font-size: 16px;

  outline: none;
}

.field input:focus {
  border-color: #9d7949;

  box-shadow:
    0 0 0 3px
    rgba(157, 121, 73, 0.12);
}


.checkbox-row {
  display: grid;

  grid-template-columns:
    22px 1fr;

  gap: 10px;

  align-items: start;

  margin:
    18px 0;

  color: #55524d;

  line-height: 1.45;

  font-size: 13px;
}

.checkbox-row input {
  width: 20px;
  height: 20px;

  margin: 1px 0 0;

  accent-color: #282722;
}


.button {
  width: 100%;

  min-height: 54px;

  border: 0;
  border-radius: 14px;

  padding: 13px 18px;

  cursor: pointer;

  font-weight: 800;
  font-size: 16px;

  transition:
    transform 0.08s ease,
    opacity 0.15s ease;
}

.button:active {
  transform: scale(0.99);
}

.button:disabled {
  cursor: default;

  opacity: 0.55;
}


.primary-button {
  background: #24231f;
  color: #ffffff;

  margin-top: 8px;
}


.secondary-button {
  background: #efede8;
  color: #282722;
}


.stop-button {
  background: #a6382d;
  color: #ffffff;
}


.button-stack {
  display: grid;

  gap: 10px;

  margin-top: 16px;
}


.prompt-box {
  background: #f7f4ee;

  border-radius: 16px;

  padding: 17px;

  margin:
    18px 0;
}

.prompt-box strong {
  font-size: 16px;
}

.prompt-box p {
  margin:
    10px 0 5px;

  color: #65615b;
}

.prompt-box ul {
  margin:
    8px 0 10px;

  padding-left: 21px;

  color: #4f4c47;

  line-height: 1.5;
}

.prompt-box li {
  margin-bottom: 6px;
}

.prompt-box small {
  color: #77736c;
}


.camera-card {
  position: relative;

  width: 100%;

  aspect-ratio: 9 / 14;

  overflow: hidden;

  border-radius: 18px;

  background: #1d1d1b;
}


.camera-placeholder {
  height: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 28px;

  color: #ffffff;
}

.camera-placeholder strong {
  margin:
    12px 0 7px;

  font-size: 18px;
}

.camera-placeholder span {
  max-width: 280px;

  color: #bcbab4;

  font-size: 13px;
  line-height: 1.45;
}

.camera-icon {
  width: 58px;
  height: 58px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background: #34332f;

  color: #d85b50;

  font-size: 24px;
}


.video-window {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  background: #000000;
}


.timer {
  position: absolute;

  top: 14px;
  left: 50%;

  transform: translateX(-50%);

  padding:
    7px 11px;

  border-radius: 999px;

  background:
    rgba(0, 0, 0, 0.68);

  color: #ffffff;

  font-size: 14px;
  font-weight: 800;

  font-variant-numeric:
    tabular-nums;
}


.preview-title {
  margin:
    24px 0 11px;

  text-align: center;

  font-weight: 800;

  font-size: 18px;
}

.preview-video {
  height: auto;

  max-height: 600px;

  border-radius: 18px;
}

.video-size {
  margin-top: 8px;

  text-align: center;

  color: #77736d;

  font-size: 12px;
}


.upload-panel {
  margin-top: 22px;

  padding: 20px;

  text-align: center;

  border-radius: 16px;

  background: #f7f4ee;
}

.progress-track {
  height: 10px;

  overflow: hidden;

  margin:
    14px 0 8px;

  border-radius: 999px;

  background: #dedad2;
}

.progress-bar {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background: #24231f;

  transition: width 0.15s ease;
}

#progressText {
  font-size: 13px;
  font-weight: 800;

  margin-bottom: 8px;
}

.upload-panel small {
  color: #77736d;
}


.error-message {
  margin:
    14px 0 0;

  padding: 12px;

  border-radius: 10px;

  background: #fff0ee;
  color: #973226;

  font-size: 13px;

  line-height: 1.45;
}


.success-card {
  text-align: center;

  padding-top: 34px;
  padding-bottom: 34px;
}

.success-icon {
  width: 70px;
  height: 70px;

  display: grid;
  place-items: center;

  margin:
    0 auto 20px;

  border-radius: 50%;

  background: #e8f2e5;
  color: #3d7135;

  font-size: 34px;
  font-weight: 800;
}

.success-box {
  display: flex;
  flex-direction: column;

  gap: 7px;

  margin-top: 22px;

  padding: 17px;

  border-radius: 14px;

  background: #f7f4ee;

  color: #5f5b55;

  font-size: 14px;
}

.success-box strong {
  color: #24231f;

  font-size: 16px;
}

.privacy-note {
  margin:
    20px auto 0;

  max-width: 420px;

  color: #77736d;

  font-size: 12px;

  line-height: 1.5;
}


footer {
  padding:
    25px 0 5px;

  text-align: center;

  color: #969189;

  font-size: 11px;
}


.hidden {
  display: none !important;
}


@media (min-width: 650px) {

  .page-shell {
    padding-top: 38px;
  }

  .card {
    padding: 34px;
  }

}
/* Embedded inside qicaogangmu.com */

.embedded body {
  background: transparent;
}

.embedded .brand-header {
  display: none;
}

.embedded footer {
  display: none;
}

.embedded .page-shell {
  max-width: 680px;
  padding-top: 5px;
  padding-bottom: 10px;
}
/* =====================================================
   QICAOGANGMU EMBED MODE
===================================================== */

.embedded body {
  background: #ffffff;
}


/* Shopify already provides the branding */
.embedded .brand-header {
  display: none;
}


.embedded footer {
  display: none;
}


.embedded .page-shell {
  width: 100%;
  max-width: 720px;

  margin: 0 auto;

  padding:
    4px 4px
    12px;
}


/* Cleaner native-site appearance */
.embedded .card {
  background: #ffffff;

  border:
    1px solid #e4e4e4;

  border-radius: 10px;

  box-shadow: none;

  padding: 28px;
}


/* Brand gold */
.embedded .step-label {
  color: #b89522;
}


/* Reward area */
.embedded .reward-box {
  background: #faf8f1;

  border:
    1px solid #e6ddbd;
}


/* Main QICAOGANGMU black */
.embedded .primary-button {
  background: #000000;
  color: #ffffff;

  border-radius: 6px;
}


.embedded .primary-button:hover {
  background: #222222;
}


/* Secondary buttons */
.embedded .secondary-button {
  background: #f5f5f5;

  border:
    1px solid #dddddd;

  color: #111111;

  border-radius: 6px;
}


/* Inputs */
.embedded .field input {
  border:
    1px solid #d8d8d8;

  border-radius: 6px;

  background: #ffffff;
}


.embedded .field input:focus {
  border-color: #b89522;

  box-shadow:
    0 0 0 2px
    rgba(184, 149, 34, 0.14);
}


/* Prompt area */
.embedded .prompt-box {
  background: #fafafa;

  border:
    1px solid #eeeeee;
}


/* Progress indicator */
.embedded .progress-bar {
  background: #b89522;
}


@media (max-width: 600px) {

  .embedded .page-shell {
    padding:
      0 0
      8px;
  }


  .embedded .card {
    padding:
      22px 18px;

    border-left: 0;
    border-right: 0;

    border-radius: 0;
  }

}
/* =====================================================
   STEP 2 CAMERA UX FIX
===================================================== */

/*
 * Do not let the empty camera area dominate
 * the page before recording starts.
 */
.camera-card {
  width: 100%;
  height: 340px;
  aspect-ratio: auto;

  margin-top: 18px;

  overflow: hidden;

  border-radius: 12px;

  background: #181818;
}


/* Keep initial state compact and obvious */
.camera-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 30px;

  text-align: center;

  color: #ffffff;
}


.camera-placeholder strong {
  margin-top: 12px;

  font-size: 18px;
}


.camera-placeholder span {
  max-width: 380px;

  margin-top: 8px;

  color: #cfcfcf;

  font-size: 13px;
  line-height: 1.5;
}


/*
 * Actual camera/video stays contained.
 */
.camera-card .video-window {
  width: 100%;
  height: 100%;

  object-fit: cover;

  background: #000000;
}


/* Preview can grow naturally */
.preview-video {
  width: 100%;
  height: auto;

  max-height: 560px;

  object-fit: contain;

  background: #000000;

  border-radius: 12px;
}


/* Slightly tighter question card */
.prompt-box {
  padding: 18px 20px;
}


.prompt-box ul {
  margin-bottom: 12px;
}


.prompt-box li {
  margin-bottom: 8px;
}


/* Mobile */
@media (max-width: 600px) {

  .camera-card {
    height: 420px;
  }

}


/* Desktop */
@media (min-width: 900px) {

  .camera-card {
    height: 360px;
  }

}