/* 信息登记页 — 素材版（bg / 字段图标 / 输入条 / 按钮） */

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

body.page--register {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #030508;
  color: #e8f4fc;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

/* —— 页面容器（设计宽 430px；字号与间距随容器宽度缩放）—— */
.reg-page {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  container-name: reg;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  font-size: clamp(12px, calc(100cqw * 16 / 430), 16px);
  padding: calc(clamp(2.75rem, 19cqw, 5.1rem) + env(safe-area-inset-top, 0px))
    calc(clamp(0.85rem, 4.47cqw, 1.2rem) + env(safe-area-inset-right, 0px))
    calc(clamp(1.25rem, 7.44cqw, 2rem) + env(safe-area-inset-bottom, 0px))
    calc(clamp(0.85rem, 4.47cqw, 1.2rem) + env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 背景层：各尺寸下拉伸铺满容器（100% × 100%），不裁切 */
.reg-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #030508;
  background-image: url("/register/assets/bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

.reg-main {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

/* —— 标题区（flex 流式排版；9/10 尺寸用 cqw 随容器缩放）—— */
.reg-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin: 0 0 0.65em;
  padding: 0;
  min-height: clamp(2.75rem, 11.16cqw, 3rem);
}

.reg-hero__ring-wrap {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  width: clamp(2.5rem, 11.16cqw, 3rem);
  height: clamp(2.5rem, 11.16cqw, 3rem);
  pointer-events: none;
}

.reg-hero__ring {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reg-hero__deco {
  position: absolute;
  top: clamp(-2.2rem, -7.9cqw, -0.35em);
  right: clamp(-0.7rem, -2.33cqw, -0.12em);
  z-index: 0;
  width: clamp(4.5rem, 24.1cqw, 6.48rem);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.reg-hero__step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.42em;
  font-weight: 700;
  line-height: 1;
  color: #e8f7ff;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
}

.reg-hero__copy {
  position: relative;
  flex: 1;
  min-width: 0;
  z-index: 2;
  padding: 0.2em 0 0;
  padding-right: clamp(4.5rem, 38.6cqw, 7.25rem);
}

.reg-hero h1 {
  margin: 0 0 0.35em;
  font-size: 1.42em;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.reg-hero__sub {
  margin: 0;
  font-size: 0.78em;
  color: #6b9cc4;
  line-height: 1.35;
}

/* [hidden] 须覆盖 .reg-form 的 display:flex，否则提交后表单仍会占位显示 */
.reg-form[hidden],
.reg-done[hidden] {
  display: none !important;
}

/* —— 表单 —— */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 2.79cqw, 0.85rem);
}

/* 统一描边框（头像区、各输入条含性别） */
.reg-avatar-panel,
.reg-control--input,
.reg-control--select {
  border: 1px solid rgba(16, 47, 148, 0.589);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.12), inset 0 0 24px rgba(8, 30, 60, 0.35);
  background: rgba(4, 12, 28, 0.45);
}

/* 头像区块 */
.reg-avatar-panel {
  padding: 0.95rem 0.85rem;
  margin-bottom: 0.15rem;
  overflow: hidden;
}

.reg-avatar {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.reg-avatar__ring {
  position: relative;
  width: clamp(4.25rem, 24.2cqw, 6.5rem);
  height: clamp(4.25rem, 24.2cqw, 6.5rem);
  flex-shrink: 0;
}

.reg-avatar__default,
.reg-avatar__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.reg-avatar__preview {
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.reg-avatar__ring.is-loaded .reg-avatar__default {
  opacity: 0;
}

.reg-avatar__ring.is-loaded .reg-avatar__preview {
  opacity: 1;
}

.reg-avatar__meta {
  flex: 1;
  min-width: 0;
  padding-top: 0.1rem;
}

.reg-avatar__title {
  margin: 0 0 0.28rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: #f1f5f9;
}

.reg-avatar__hint {
  margin: 0 0 0.62rem;
  font-size: 0.72rem;
  color: #7a9bb5;
  line-height: 1.45;
}

.reg-btn-upload {
  display: block;
  width: 100%;
  min-height: clamp(2.4rem, 10.7cqw, 2.625rem);
  border: 0;
  background: url("/register/assets/btn-upload-bg.png") center / 100% 100% no-repeat;
  color: #e0f7ff;
  font-size: 0.82em;
  font-weight: 500;
  padding: 0.5em 0.65em 0.5em clamp(3.5rem, 39.3cqw, 6.3rem);
  text-align: left;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.reg-btn-upload:hover {
  filter: brightness(1.08);
}

.reg-avatar__clear {
  display: block;
  margin-top: 0.42rem;
  padding: 0;
  border: 0;
  background: none;
  color: #7a9bb5;
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
}

.reg-avatar-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.reg-avatar-dialog[hidden] {
  display: none !important;
}

.reg-avatar-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
}

.reg-avatar-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  border-radius: 18px;
  border: 1px solid rgba(94, 200, 255, 0.25);
  background: linear-gradient(180deg, rgba(9, 18, 34, 0.98), rgba(6, 12, 24, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 24px rgba(56, 189, 248, 0.08);
  padding: 1rem;
}

.reg-avatar-dialog__title {
  margin: 0;
  font-size: 1.05rem;
  color: #f8fafc;
}

.reg-avatar-dialog__desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
}

.reg-avatar-dialog__stage {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.reg-avatar-dialog__frame {
  position: relative;
  width: min(72vw, 16rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(94, 200, 255, 0.68);
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.96));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12), 0 0 0 12px rgba(14, 165, 233, 0.04);
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.reg-avatar-dialog__frame:active {
  cursor: grabbing;
}

.reg-avatar-dialog__image-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.reg-avatar-dialog__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.reg-avatar-dialog__zoom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.reg-avatar-dialog__zoom input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #38bdf8;
}

.reg-avatar-dialog__note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #7a9bb5;
}

.reg-avatar-dialog__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.reg-avatar-dialog__actions .btn {
  flex: 1;
}

/* 表单项：左图标 + 右标签/控件 */
.reg-field {
  display: grid;
  grid-template-columns: clamp(2.25rem, 10.7cqw, 2.875rem) minmax(0, 1fr);
  column-gap: clamp(0.35rem, 1.86cqw, 0.5rem);
  row-gap: 0;
  align-items: start;
}

.reg-field__icon {
  width: 100%;
  max-width: 2.875rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  align-self: center;
  grid-row: 1 / span 2;
}

.reg-field__body {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

.reg-field__label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b8d4e8;
}

.reg-field__label span {
  font-weight: 400;
  color: #7a9bb5;
}

.reg-control {
  min-height: clamp(2.5rem, 10.7cqw, 2.875rem);
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.reg-control--gender {
  padding: 0;
}

.reg-control input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f1f5f9;
  font-size: 0.9rem;
  padding: 0.55rem 0.35rem 0.55rem 0.7rem;
  outline: none;
}

.reg-control input::placeholder {
  color: #5a7a94;
}

.reg-count {
  flex-shrink: 0;
  padding: 0 0.9rem 0 0.3rem;
  font-size: 0.75rem;
  color: #5a7a94;
  font-variant-numeric: tabular-nums;
}

/* 国家下拉 */
.reg-control .country-combo {
  flex: 1;
  min-width: 0;
  position: relative;
}

.reg-control .country-combo input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #f1f5f9;
  font-size: 0.9rem;
  padding: 0.55rem 2rem 0.55rem 0.7rem;
  outline: none;
}

.country-combo__panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: #0c1420;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.country-combo__item {
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  color: #e8f4fc;
}

.country-combo__item:hover,
.country-combo__item.is-active {
  background: rgba(56, 189, 248, 0.12);
}

/* 游戏品牌 */
.reg-brand-combo {
  flex: 1;
  min-width: 0;
  position: relative;
}

.reg-brand-combo__trigger {
  width: 100%;
  min-height: clamp(2.5rem, 10.7cqw, 2.875rem);
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #f1f5f9;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.reg-brand-combo__trigger-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.5rem 0.35rem 0.5rem 0.7rem;
  color: #5a7a94;
}

.reg-brand-combo__trigger-text.has-value {
  color: #f1f5f9;
}

.reg-brand-combo__panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: #0c1420;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.reg-brand-combo__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  color: #e8f4fc;
}

.reg-brand-combo__item:hover {
  background: rgba(56, 189, 248, 0.1);
}

.reg-brand-combo__item.is-selected {
  background: rgba(56, 189, 248, 0.18);
}

.reg-brand-combo__tick {
  width: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #38bdf8;
  opacity: 0;
}

.reg-brand-combo__item.is-selected .reg-brand-combo__tick {
  opacity: 1;
}

.reg-field .hint {
  display: none;
}

/* 性别 */
.reg-gender-inner {
  flex: 1;
  width: 100%;
  min-height: clamp(2.5rem, 10.7cqw, 2.875rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 0.35rem 0.5rem;
  padding: 0.35rem clamp(0.35rem, 1.86cqw, 0.5rem);
}

.reg-gender-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: #7a9bb5;
}

.reg-gender-opt:has(input:checked) {
  color: #e0f7ff;
}

.reg-gender-opt input {
  appearance: none;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  background: rgba(8, 20, 40, 0.8);
  cursor: pointer;
  flex-shrink: 0;
}

.reg-gender-opt input:checked {
  border-color: #38bdf8;
  background: radial-gradient(circle at center, #38bdf8 38%, transparent 40%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
}

/* 错误 / 协议 / 提交 */
.reg-form__error {
  margin: 0;
  font-size: 0.82rem;
  color: #f87171;
}

.reg-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.7rem 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 200, 255, 0.18);
  background: rgba(4, 12, 28, 0.35);
  font-size: 0.68rem;
  line-height: 1.55;
  color: #7a9bb5;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease,
    color 0.18s ease;
}

.reg-agree::before {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 0.12rem;
  border-radius: 4px;
  border: 1.5px solid rgba(94, 200, 255, 0.65);
  background: center / 0 0 no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23030508' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-color: rgba(6, 18, 36, 0.95);
  box-shadow: inset 0 0 0 1px rgba(6, 18, 36, 0.35);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
    background-size 0.18s ease, transform 0.18s ease;
}

.reg-agree:has(input:checked) {
  color: #e8f4fc;
  border-color: rgba(94, 200, 255, 0.7);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.12), inset 0 0 18px rgba(56, 189, 248, 0.08);
}

.reg-agree:has(input:checked)::before {
  border-color: #5ec8ff;
  background-size: 11px 11px;
  background-color: #5ec8ff;
  box-shadow: 0 0 10px rgba(94, 200, 255, 0.5);
  transform: scale(1.03);
}

.reg-agree input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.reg-agree a {
  color: #5ec8ff;
  text-decoration: none;
}

.reg-agree a:hover {
  text-decoration: underline;
}

.reg-btn-next {
  width: 100%;
  min-height: clamp(2.85rem, 12.09cqw, 3.25rem);
  margin-top: 0.25rem;
  border: 0;
  background: url("/register/assets/btn-next-bg.png") center / 100% 100% no-repeat;
  color: #fff;
  font-size: 1.08em;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 0 1rem 0 0;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.reg-btn-next:hover:not(:disabled) {
  filter: brightness(1.06);
}

.reg-btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* —— 登记成功页 —— */
.reg-done__banner {
  margin-bottom: 0.65rem;
}

.reg-done__banner strong {
  font-size: 1.15rem;
  color: #f8fafc;
}

.reg-done__muted {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* —— 展区二维码页（如 ACG）—— */
/* 与 .reg-main 相同：置于 .reg-page::before 背景之上，否则整页内容不可见 */
.reg-zone-qr,
main.reg-zone-qr {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.25rem 0 0;
}

.reg-zone-qr__back-wrap {
  margin: 0 0 0.75rem;
}

.reg-zone-qr__back {
  color: #5ec8ff;
  font-size: 0.88rem;
  text-decoration: none;
}

.reg-zone-qr__back:hover {
  text-decoration: underline;
}

.reg-zone-qr__header {
  text-align: center;
  margin-bottom: 1rem;
}

.reg-zone-qr__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #4ade80;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.45);
}

.reg-zone-qr__sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.reg-zone-qr__card {
  text-align: center;
  padding: 0.25rem 0;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  box-shadow: none;
}

.reg-zone-qr__loading {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.reg-zone-qr__loading[hidden] {
  display: none;
}

.reg-zone-qr__status {
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.45;
}

.reg-zone-qr__status[hidden] {
  display: none;
}

.reg-zone-qr__error {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 8px;
}

.reg-zone-qr__error[hidden] {
  display: none;
}

.reg-zone-qr__img {
  display: block;
  max-width: 100%;
  width: min(340px, 100%);
  height: auto;
  margin: 0 auto;
}

.reg-zone-qr__img[hidden] {
  display: none;
}

/* —— 展区扫码页（如 Fantasy 橙色）—— */
.reg-zone-scan__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fb923c;
  text-shadow: 0 0 14px rgba(249, 115, 22, 0.45);
}

.reg-zone-scan__viewport {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1018;
}

.reg-zone-scan__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reg-zone-scan__video[hidden],
.reg-zone-scan__canvas[hidden] {
  display: none;
}

.reg-zone-scan__canvas {
  display: none;
}

.reg-zone-scan__frame {
  pointer-events: none;
  position: absolute;
  inset: 10%;
  border: 2px solid rgba(251, 146, 60, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(3, 5, 8, 0.35);
}

.reg-zone-scan__actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.reg-zone-scan__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1c0a02;
  background: linear-gradient(180deg, #fdba74 0%, #f97316 55%, #ea580c 100%);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.45);
  cursor: pointer;
}

.reg-zone-scan__btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

.reg-zone-scan__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.reg-zone-scan__hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  text-align: center;
}

/* —— Fantasy 展区选游戏 —— */
.reg-zone-pick__visitor {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(4, 12, 28, 0.5);
  border: 1px solid rgba(251, 146, 60, 0.25);
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.reg-zone-pick__visitor strong {
  color: #fdba74;
}

.reg-zone-pick__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  border: none;
}

.reg-zone-pick__option {
  position: relative;
  margin: 0;
}

.reg-zone-pick__option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.reg-zone-pick__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: rgba(4, 12, 28, 0.55);
  color: #e8f4fc;
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.reg-zone-pick__option input:checked + .reg-zone-pick__label {
  border-color: #fb923c;
  background: rgba(249, 115, 22, 0.22);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35);
  color: #fff7ed;
}

.reg-zone-pick__option input:focus-visible + .reg-zone-pick__label {
  outline: 2px solid #fdba74;
  outline-offset: 2px;
}

.reg-zone-pick__submit {
  margin-top: 1.1rem;
}

.reg-zone-pick__done {
  text-align: center;
  padding: 1rem 0;
}

.reg-zone-pick__done-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.reg-zone-pick__done-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fdba74;
}

.reg-zone-pick__done-game {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  color: #f8fafc;
}


.reg-done__heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #e8f4fc;
}

.reg-done__heading--sub {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.reg-done-interaction,
.reg-done-stats {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.reg-done-profile {
  margin-top: 0.65rem;
  padding: 0.5rem 0.7rem 0.6rem;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 6px;
  background: rgba(6, 16, 28, 0.55);
}

.reg-done-profile .reg-done__heading {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.reg-done-profile__avatar {
  margin: 0 0 0.45rem;
  display: flex;
  justify-content: center;
}

.reg-done-profile__avatar-ring {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.4);
  background: #0f172a;
}

.reg-done-profile__avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-done-profile__avatar-placeholder svg {
  width: 70%;
  height: 70%;
}

.reg-done-profile__avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.reg-done-profile__avatar-ring.is-loaded .reg-done-profile__avatar-img {
  opacity: 1;
}

.reg-done-profile__avatar-ring.is-loaded .reg-done-profile__avatar-placeholder {
  opacity: 0;
}

.reg-done-profile__dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.reg-done-profile__dl > div {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 0.35rem;
  align-items: baseline;
  line-height: 1.35;
}

.reg-done-profile__dl dt {
  margin: 0;
  font-size: 0.8rem;
  color: #7a9bb5;
  font-weight: 500;
}

.reg-done-profile__dl dd {
  margin: 0;
  font-size: 0.86rem;
  word-break: break-word;
}

.reg-done-stats__text,
.reg-done-stats__list {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.reg-done-stats__list {
  padding-left: 1.15rem;
}

.reg-done-interaction img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.reg-done__actions {
  margin: 0.35rem 0 0.75rem;
}

/* —— 展厅 ZONE MAP —— */
.reg-done .reg-zone-map {
  position: relative;
  z-index: 1;
  margin-top: clamp(0.85rem, 3.5cqw, 1.15rem);
  width: 100%;
}

.reg-zone-map__frame {
  position: relative;
  width: 100%;
  line-height: 0;
  border-radius: 4px;
  overflow: hidden;
}

.reg-zone-map__img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.reg-zone-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.reg-zone-map__svg .reg-zone {
  pointer-events: all;
  cursor: pointer;
  outline: none;
  transition: transform 0.28s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.reg-zone__fill {
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  fill-opacity: 0.34;
  stroke-opacity: 0.72;
  filter: url(#zoneGlow);
  transition:
    fill-opacity 0.28s ease,
    stroke-opacity 0.28s ease,
    filter 0.28s ease;
}

.reg-zone--fantasy .reg-zone__fill {
  fill: #f97316;
  stroke: #fb923c;
}

.reg-zone--acg .reg-zone__fill {
  fill: #22c55e;
  stroke: #4ade80;
}

.reg-zone--darkness .reg-zone__fill {
  fill: #94a3b8;
  stroke: #cbd5e1;
}

.reg-zone--scifi .reg-zone__fill {
  fill: #38bdf8;
  stroke: #7dd3fc;
}

.reg-zone--battlefield .reg-zone__fill {
  fill: #eab308;
  stroke: #facc15;
}

.reg-zone:hover .reg-zone__fill,
.reg-zone:focus-visible .reg-zone__fill,
.reg-zone.is-active .reg-zone__fill {
  fill-opacity: 0.5;
  stroke-opacity: 1;
  filter: url(#zoneGlowStrong);
}

.reg-zone:hover,
.reg-zone:focus-visible,
.reg-zone.is-active {
  transform: scale(1.03);
}

.reg-zone:focus-visible .reg-zone__fill,
.reg-zone.is-active .reg-zone__fill {
  stroke-width: 3;
}

@media (prefers-reduced-motion: reduce) {
  .reg-zone {
    transition: none;
  }
}

/* 不支持 cqw 时用 vw 近似（页面最大 430px，大屏会被 clamp 限制） */
@supports not (width: 1cqw) {
  .reg-page {
    font-size: clamp(12px, 3.721vw, 16px);
    padding-top: calc(clamp(2.75rem, 9.3vw, 5.1rem) + env(safe-area-inset-top, 0px));
    padding-right: calc(clamp(0.85rem, 2.79vw, 1.2rem) + env(safe-area-inset-right, 0px));
    padding-bottom: calc(clamp(1.25rem, 4.65vw, 2rem) + env(safe-area-inset-bottom, 0px));
    padding-left: calc(clamp(0.85rem, 2.79vw, 1.2rem) + env(safe-area-inset-left, 0px));
  }

  .reg-hero__deco {
    top: clamp(-2.2rem, -7.9vw, -0.35em);
    right: clamp(-0.7rem, -2.33vw, -0.12em);
    width: clamp(4.5rem, 24.1vw, 6.48rem);
  }

  .reg-hero__ring-wrap {
    width: clamp(2.5rem, 11.16vw, 3rem);
    height: clamp(2.5rem, 11.16vw, 3rem);
  }

  .reg-hero__copy {
    padding-right: clamp(4.5rem, 38.6vw, 7.25rem);
  }

  .reg-avatar__ring {
    width: clamp(4.25rem, 24.2vw, 6.5rem);
    height: clamp(4.25rem, 24.2vw, 6.5rem);
  }

  .reg-field {
    grid-template-columns: clamp(2.25rem, 10.7vw, 2.875rem) minmax(0, 1fr);
  }

  .reg-form {
    gap: clamp(0.65rem, 2.79vw, 0.85rem);
  }
}

/* 极窄屏：头像区改为上下堆叠 */
@container reg (max-width: 340px) {
  .reg-avatar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .reg-avatar__meta {
    width: 100%;
  }

  .reg-gender-inner {
    justify-content: center;
  }
}

/* =============================================================================
   排版调试（改样式时取消下面整段注释，保存后刷新页面即可看到各色边框）
   .reg-page=整页  .reg-hero=标题  .reg-avatar-panel=头像框
   .reg-field=每一行表单  .reg-field__icon=左侧小图标  .reg-control=输入条底图
============================================================================= */
/*
body.page--register.reg-debug .reg-page { outline: 2px dashed #f59e0b; }
body.page--register.reg-debug .reg-hero { outline: 2px solid #22d3ee; }
body.page--register.reg-debug .reg-avatar-panel { outline: 2px solid #a78bfa; }
body.page--register.reg-debug .reg-field { outline: 1px solid #4ade80; }
body.page--register.reg-debug .reg-field__icon { outline: 1px solid #fb7185; }
body.page--register.reg-debug .reg-field__body { outline: 1px dotted #94a3b8; }
body.page--register.reg-debug .reg-control { outline: 1px solid #38bdf8; }
body.page--register.reg-debug .reg-btn-upload,
body.page--register.reg-debug .reg-btn-next { outline: 2px solid #f472b6; }
*/
