:root {
  --ink: #050505;
  --muted: #8f8f8f;
  --accent: #00cb44;
  --task-blue: #007bff;
  --style-band: #fffbc2;
  --material-band: #c7dcff;
  --bg-image: url("assets/background.png");
  --stage-scale: 1;
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  background: #fff;
  overflow: hidden;
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 400;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-shell,
.screen {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
}

.app-shell {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center center;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

#consent-screen,
#profile-screen {
  background:
    linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04)),
    var(--bg-image) center center / cover no-repeat;
}

#profile-screen {
  background:
    linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04)),
    var(--bg-image) center center / cover no-repeat;
}

.page-card,
.profile-layout {
  position: relative;
  width: 1920px;
  height: 1080px;
}

.consent-card {
  display: block;
  padding-top: 88px;
}

.consent-copy {
  width: 1514px;
  height: 904px;
  margin: 0 auto;
  padding: 22px 40px 84px;
  overflow-y: auto;
  border-radius: 15px;
  background: #f9f9f9;
  scrollbar-color: #c4c4c4 transparent;
  scrollbar-width: auto;
}

.consent-copy::-webkit-scrollbar {
  width: 15px;
}

.consent-copy::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c4c4c4;
}

.consent-copy h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
}

.consent-copy h2 {
  margin: 38px 0 3px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.consent-copy p {
  margin: 0;
  font-size: 24px;
  line-height: 1.48;
  font-weight: 400;
  letter-spacing: 0;
}

.consent-copy .meta-line {
  font-weight: 400;
}

.consent-copy .meta-line strong,
.consent-copy h2 {
  font-weight: 700;
}

.task-blue {
  color: var(--task-blue);
  font-weight: 400;
}

.sticky-actions {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 1514px;
  padding: 10px 20px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.agree-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 400;
}

.agree-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid #111;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 400;
}

.primary-button {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.profile-layout {
  color: #fff;
}

.profile-label {
  position: absolute;
  left: 196px;
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.id-label {
  top: 464px;
}

.group-label {
  top: 632px;
}

.profile-form {
  position: absolute;
  inset: 0;
}

.field-card {
  position: absolute;
  left: 465px;
  top: 440px;
  width: 363px;
  height: 98px;
  display: grid;
  align-items: end;
  padding: 0 26px 11px;
  border-radius: 10px;
  background: #fff;
}

.field-card input {
  width: 100%;
  height: 50px;
  border: 0;
  border-bottom: 1px solid #888;
  outline: 0;
  color: #000;
  background: transparent;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.group-grid {
  position: absolute;
  left: 465px;
  top: 588px;
  display: grid;
  grid-template-columns: repeat(4, 164px);
  gap: 62px;
  margin: 0;
  padding: 0;
  border: 0;
}

.group-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  height: 135px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
}

.group-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.group-card:has(input:checked) {
  outline: 5px solid var(--accent);
  outline-offset: -5px;
  background: #fff;
}

.start-button {
  position: absolute;
  right: 50px;
  top: 421px;
  width: 99px;
  height: 289px;
  display: grid;
  place-content: center;
  gap: 22px;
  border-radius: 20px;
  background: #fff;
  color: #000;
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
}

.preview-shell {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #fff;
  color: #000;
}

.preview-header {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 98px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #000;
}

.preview-header h1 {
  margin: 0;
  font-family: "Alibaba PuHuiTi", "Alibaba PuHuiTi Light", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 39px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0;
}

.preview-grid {
  position: absolute;
  left: 65px;
  top: 203px;
  width: 1103px;
  height: 609px;
}

.preview-sample {
  position: absolute;
  width: 246px;
  height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 78px);
  column-gap: 6px;
}

.preview-sample img {
  width: 78px;
  height: 76px;
  display: block;
  object-fit: cover;
  background: #d9d9d9;
}

.preview-sphere-frame {
  position: relative;
  width: 78px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #d9d9d9;
}

.preview-sphere-disc {
  width: 60px;
  height: 60px;
  display: block;
  border-radius: 50%;
  background-color: #d9d9d9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.task-preview-card {
  position: absolute;
  left: 1246px;
  width: 612px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
}

.task-preview-card h2 {
  margin: 0;
  height: 53px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.task-preview-card p {
  margin: 0;
  font-family: "Alibaba PuHuiTi", "Alibaba PuHuiTi Light", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0;
}

.style-task-preview {
  top: 203px;
  height: 268px;
}

.style-task-preview h2 {
  background: var(--style-band);
}

.style-task-preview p {
  position: absolute;
  left: 68px;
  right: 68px;
  bottom: 31px;
  text-align: center;
}

.material-task-preview {
  top: 509px;
  height: 303px;
}

.material-task-preview h2 {
  background: var(--material-band);
}

.material-task-preview p {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 32px;
}

.preview-scale-row {
  position: absolute;
  display: grid;
  align-items: end;
  color: #000;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.preview-scale-row.style {
  left: 139px;
  top: 103px;
  grid-template-columns: 39px 265px 39px;
  column-gap: 9px;
}

.preview-scale-row.material {
  left: 61px;
  top: 101px;
  grid-template-columns: 72px 45px 265px 48px;
  column-gap: 17px;
}

.preview-scale-row.material strong {
  padding-bottom: 11px;
  font-weight: 700;
}

.preview-left-word,
.preview-right-word {
  padding-bottom: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.preview-demo-scale {
  display: grid;
  grid-template-columns: repeat(7, 31px);
  grid-template-rows: 22px 31px;
  column-gap: 6px;
  row-gap: 3px;
  justify-items: center;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
}

.preview-demo-scale i {
  width: 31px;
  height: 31px;
  display: block;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
}

.preview-demo-scale i.selected {
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.preview-note {
  position: absolute;
  left: 110px;
  top: 865px;
  width: 1700px;
  margin: 0;
  color: #222;
  text-align: center;
  font-family: "Alibaba PuHuiTi", "Alibaba PuHuiTi Light", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: 0;
  white-space: nowrap;
}

.preview-start-button {
  position: absolute;
  right: 59px;
  bottom: 19px;
  height: 61px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  background: transparent;
  color: #000;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.preview-arrow {
  width: 71px;
  height: 49px;
  position: relative;
  display: block;
}

.preview-arrow::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 21px;
  width: 61px;
  height: 7px;
  border-radius: 999px;
  background: #000;
}

.preview-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 5px;
  width: 31px;
  height: 31px;
  border-top: 7px solid #000;
  border-right: 7px solid #000;
  border-radius: 2px;
  transform: rotate(45deg);
}

.rating-shell {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #fff;
}

.rating-shell.material {
  background: #fff;
}

.rating-images {
  position: absolute;
  left: 232px;
  top: 24px;
  width: 1354px;
  height: 448px;
  display: grid;
  grid-template-columns: repeat(3, 381px);
  justify-content: space-between;
}

.rating-image-card {
  width: 381px;
  height: 448px;
  margin: 0;
  display: grid;
  grid-template-rows: 43px 374px;
  row-gap: 21px;
  justify-items: center;
}

.rating-image-card figcaption {
  width: 100%;
  color: #333;
  text-align: center;
  font-family: "Alibaba PuHuiTi", "Alibaba PuHuiTi Light", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 24pt;
  line-height: 43px;
  font-weight: 300;
  letter-spacing: 0;
}

.rating-images img {
  width: 381px;
  height: 374px;
  display: block;
  object-fit: cover;
  background: #d9d9d9;
  cursor: zoom-in;
}

.rating-sphere-stage {
  width: 381px;
  height: 374px;
  display: grid;
  place-items: center;
  background: #d9d9d9;
  cursor: zoom-in;
}

.rating-sphere-disc {
  width: 340px;
  height: 340px;
  display: block;
  border-radius: 50%;
  background-color: #d9d9d9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: 1180px;
  height: 840px;
  display: grid;
  place-items: center;
  background: #f3f3f3;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.lightbox-panel img {
  max-width: 1060px;
  max-height: 740px;
  display: block;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 120ms ease-out;
}

.lightbox-close {
  position: absolute;
  right: 22px;
  top: 16px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 40px;
  line-height: 1;
  font-weight: 300;
}

.rating-workspace {
  position: absolute;
  left: 0;
  right: 0;
  top: 560px;
  height: 362px;
}

.vertical-task-label {
  position: absolute;
  left: 0;
  top: 57px;
  width: 68px;
  height: 278px;
  display: grid;
  place-items: center;
  padding: 12px 0;
  background: var(--style-band);
  color: #000;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0;
}

.vertical-task-label.material {
  background: var(--material-band);
}

.rating-form {
  position: absolute;
  left: 219px;
  right: auto;
  top: 0;
  width: 1405px;
  height: 350px;
  display: grid;
  grid-template-columns: 604px 604px;
  column-gap: 287px;
}

.rating-form.material {
  left: 173px;
  width: 1573px;
  grid-template-columns: 745px 745px;
  column-gap: 83px;
}

.rating-form.material::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 362px;
  background: #bfbfbf;
}

.rating-column {
  display: grid;
  grid-template-rows: repeat(4, 76px);
  align-content: start;
  gap: 1px;
}

.rating-row {
  display: grid;
  grid-template-columns: 60px 70px 407px 67px;
  align-items: center;
  height: 76px;
}

.rating-form.material .rating-row {
  grid-template-columns: 96px 116px 430px 103px;
}

.dimension-main,
.dimension-left,
.dimension-right {
  display: flex;
  align-items: center;
  height: 49px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0;
}

.dimension-main {
  font-weight: 700;
  justify-content: flex-end;
  text-align: right;
  padding-right: 22px;
}

.dimension-left {
  justify-content: flex-end;
  text-align: right;
  padding-right: 10px;
}

.dimension-right {
  justify-content: flex-start;
  padding-left: 18px;
}

.rating-form.material .dimension-main {
  position: relative;
  padding-right: 26px;
  font-weight: 700;
}

.rating-form.material .dimension-main.has-tip {
  cursor: help;
}

.rating-form.material .dimension-main.has-tip::before {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 5;
  min-width: max-content;
  max-width: none;
  padding: 6px 10px;
  border: 1px solid #000;
  background: #fff;
  color: #333;
  text-align: center;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 300;
  font-family: "Alibaba PuHuiTi", "Alibaba PuHuiTi Light", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.rating-form.material .dimension-main.has-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 39px;
  z-index: 6;
  width: 16px;
  height: 16px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
}

.rating-form.material .dimension-main.has-tip:hover::before,
.rating-form.material .dimension-main.has-tip:hover::after {
  opacity: 1;
}

.rating-form.material .dimension-left,
.rating-form.material .dimension-right {
  font-weight: 400;
}

.rating-form.material .dimension-left {
  padding-right: 27px;
}

.rating-form.material .dimension-right {
  padding-left: 31px;
}

.rating-form.material .scale {
  grid-template-columns: repeat(7, 49px);
}

.scale {
  display: grid;
  grid-template-columns: repeat(7, 49px);
  justify-content: space-between;
  align-items: end;
}

.scale label {
  position: relative;
  width: 49px;
  height: 66px;
  display: grid;
  justify-items: center;
  align-items: end;
}

.scale input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.scale span {
  position: relative;
  width: 49px;
  height: 49px;
  display: block;
  border: 1.4px solid #000;
  border-radius: 50%;
  background: #fff;
}

.rating-row:first-child .scale label::before {
  content: attr(data-value);
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #000;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.scale input:checked + span {
  background: var(--accent);
  border-color: #000;
  box-shadow: inset 0 0 0 4px #fff;
}

.rating-hint {
  position: absolute;
  left: 520px;
  right: 520px;
  bottom: 126px;
  margin: 0;
  color: #999;
  text-align: center;
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.45;
}

#validation-message {
  position: absolute;
  right: 54px;
  bottom: 78px;
  margin: 0;
  color: #d00000;
  font-size: 15px;
  font-weight: 800;
}

.rating-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 78px;
  border-top: 1px solid #000;
}

.utility,
.mini-progress {
  display: none;
}

.page-strip {
  position: absolute;
  left: 31px;
  top: 27px;
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.page-strip button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  -webkit-text-stroke: 1.1px #000;
  paint-order: stroke fill;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.page-strip button.completed {
  color: var(--accent);
  -webkit-text-stroke: 1.1px #000;
}

.page-strip button.active:not(.completed) {
  color: #111;
  -webkit-text-stroke: 0;
}

.page-strip button:disabled {
  cursor: default;
  opacity: 0.36;
}

.next-page-button {
  position: absolute;
  right: 23px;
  bottom: 17px;
  background: transparent;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  color: #000;
  padding: 0;
  min-height: 42px;
}

.complete-card {
  width: min(900px, 86vw);
  margin: 18vh auto 0;
  padding: 56px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.14);
}

.complete-card h1 {
  margin: 0 0 18px;
  font-size: 44px;
}

.complete-card p {
  margin: 0 0 28px;
  color: #666;
  font-size: 20px;
}

.complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
