/* ============================================================
   components.css — 组件：按钮 / 表单 / 卡片 / 印章 / 仪表 /
                    检测浮层 / 报告 / 榜单 / 弹窗 / 浮动奶龙
   ============================================================ */

/* ============================ 按钮 ============================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--primary {
  background: var(--yellow);
}

.btn--primary:hover {
  background: var(--yellow-soft);
}

.btn--ghost {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--paper-2);
  box-shadow: 4px 4px 0 rgba(25, 20, 16, 0.25);
}

.btn--danger {
  background: var(--red);
  color: var(--paper);
}

.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: var(--shadow-hard-sm);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ============================ 卡片 ============================ */
.card {
  position: relative;
  padding: var(--pad);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.card--form::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1.5px dashed rgba(25, 20, 16, 0.16);
  border-radius: calc(var(--radius) - 9px);
  pointer-events: none;
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.card__title {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  letter-spacing: -0.015em;
}

.card__title small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.card__code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-align: right;
}

/* ============================ 表单 ============================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field__label b {
  font-family: var(--font-doc);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 4px 2px;
  border: 0;
  border-bottom: 3px dashed var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-doc);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color var(--dur) var(--ease-out);
}

.field__input::placeholder {
  color: rgba(25, 20, 16, 0.26);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.field__input:hover {
  border-bottom-color: var(--ink-2);
}

.field__input:focus {
  border-bottom-style: solid;
  border-bottom-color: var(--blue);
}

.field__input:focus-visible {
  outline: none;
}

.field__static {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding-bottom: 6px;
  border-bottom: 2px dotted rgba(25, 20, 16, 0.3);
  font-family: var(--font-doc);
  font-size: 17px;
  color: var(--ink-2);
}

.field__hint {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.field__hint code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--yellow-pale);
  border: 1px solid rgba(25, 20, 16, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.form-note {
  margin-top: 14px;
  font-family: var(--font-doc);
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ============================ 侧边说明 ============================ */
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.aside-list li b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.aside-list li em {
  font-style: normal;
  font-family: var(--font-doc);
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 66%, var(--yellow-soft) 66%);
}

.aside-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed rgba(25, 20, 16, 0.28);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ============================ 贴纸 / 徽章 ============================ */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  rotate: -2deg;
}

.sticker--red {
  background: var(--red);
  color: var(--paper);
}

.sticker--paper {
  background: var(--paper);
}

.sticker--tag {
  padding: 5px 12px;
  font-size: 11.5px;
  box-shadow: 2px 2px 0 var(--ink);
}

.sticker--lg {
  padding: 8px 24px;
  border-width: 3px;
  font-size: clamp(20px, 2.6vw, 28px);
  box-shadow: 5px 5px 0 var(--ink);
  rotate: -1.5deg;
}

.stage__badge--confidential .sticker {
  background: var(--paper);
  color: var(--red);
  border-color: var(--red);
  box-shadow: 3px 3px 0 rgba(163, 43, 32, 0.25);
  font-family: var(--font-doc);
  letter-spacing: 0.1em;
}

.stage__badge--three .sticker {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

/* ============================ 仪表 / 进度条 ============================ */
.gauge {
  position: relative;
  height: 28px;
  margin-top: 12px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(25, 20, 16, 0.11) 0 1.5px,
    transparent 1.5px 24px
  );
  overflow: hidden;
}

.gauge__fill {
  height: 100%;
  width: 0%;
  border-right: 3px solid var(--ink);
  background: linear-gradient(90deg, var(--yellow-pale) 0%, var(--yellow) 46%, var(--yellow-soft) 70%, var(--orange) 100%);
  transition: width 1.15s var(--ease-out);
}

.gauge.is-hot {
  animation: wiggle 0.5s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(224, 59, 42, 0.18);
}

.gauge__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.segbar {
  display: flex;
  gap: 4px;
  height: 18px;
  margin-top: 8px;
}

.segbar i {
  flex: 1 1 0;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper-2);
  transition: background-color 120ms linear, transform 120ms var(--ease-out);
}

.segbar i.is-on {
  background: var(--yellow);
  transform: scaleY(1.15);
}

/* ============================ 检测浮层 ============================ */
.scanner {
  position: fixed;
  inset: 0;
  z-index: var(--z-scanner);
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 20, 16, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-up 0.28s var(--ease-out) both;
}

.scanner__panel {
  position: relative;
  width: min(580px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.scanner__panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed rgba(25, 20, 16, 0.18);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.scanner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.scanner__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.scanner__tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.1s ease-in-out infinite;
}

.scanner__skip {
  padding: 4px 10px;
  border: 2px dashed rgba(25, 20, 16, 0.4);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  cursor: pointer;
  transition: all var(--dur) var(--ease-out);
}

.scanner__skip:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  color: var(--ink);
}

.scanner__title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin-bottom: 6px;
}

.scanner__line {
  min-height: 2.6em;
  font-family: var(--font-doc);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-2);
  transition: opacity 180ms ease;
}

.scanner__line.is-switching {
  opacity: 0;
  transform: translateY(3px);
}

.scan-visual {
  position: relative;
  display: grid;
  place-items: end center;
  height: 152px;
  margin: 6px 0 2px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(0deg, rgba(25, 20, 16, 0.06) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, var(--yellow-pale), var(--paper-2));
}

.scan-visual img {
  height: 138px;
  width: auto;
  margin-bottom: 2px;
}

.scan-visual__beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 34%;
  top: -34%;
  background: linear-gradient(180deg, transparent, rgba(255, 204, 26, 0.55) 55%, rgba(224, 59, 42, 0.55));
  border-bottom: 3px solid var(--red);
  mix-blend-mode: multiply;
  animation: scan-beam 1.6s linear infinite;
  pointer-events: none;
}

.scan-visual__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(25, 20, 16, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 20, 16, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}

.scan-meter {
  margin-top: 14px;
}

.scan-meter__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.scan-meter__pct {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.scan-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 106px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(255, 250, 240, 0.72);
}

.scan-log li {
  animation: fade-up 0.2s var(--ease-out) both;
}

.scan-log li b {
  color: var(--yellow);
}

.scan-log li.is-warn b {
  color: #ff8b76;
}

/* ============================ 报告 ============================ */
.report {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  animation: fade-up 0.5s var(--ease-out) both;
}

.report__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px) var(--pad);
  border-bottom: var(--bw) solid var(--ink);
  background:
    repeating-linear-gradient(45deg, rgba(25, 20, 16, 0.035) 0 8px, transparent 8px 16px),
    var(--paper-2);
}

.report__kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.report__title {
  margin-top: 7px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.report__meta {
  display: flex;
  gap: clamp(14px, 2.5vw, 30px);
  text-align: right;
}

.report__meta dt {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.report__meta dd {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}

.report__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(20px, 3.4vw, 44px);
  padding: clamp(22px, 3.6vw, 38px) var(--pad) clamp(30px, 4vw, 44px);
}

.report__score {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  padding-right: 8px;
  padding-bottom: 0;
}

.report__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.report__label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: rgba(25, 20, 16, 0.15);
}

.report__number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-size: var(--fs-score);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.report__number small {
  font-size: 0.24em;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink-3);
}

.report__mascot {
  position: absolute;
  right: 0;
  top: 44px;
  height: clamp(84px, 8.6vw, 122px);
  width: auto;
  opacity: 0.98;
  pointer-events: none;
  filter: drop-shadow(0 6px 0 rgba(25, 20, 16, 0.1));
}

.report__rank {
  margin-top: 18px;
}

.report__barcode {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
}

.report__barcode-bars {
  display: block;
  width: 154px;
  height: 32px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 7px,
    transparent 7px 9px,
    var(--ink) 9px 10px,
    transparent 10px 16px
  );
}

.report__barcode-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}

.report__verdict {
  display: flex;
  flex-direction: column;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: stretch;
}

.report__field {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(25, 20, 16, 0.22);
  font-size: 14px;
}

.report__key {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.report__value {
  font-family: var(--font-doc);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.report__comment {
  margin-top: 16px;
  min-height: 5.6em;
  font-family: var(--font-doc);
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.95;
  color: var(--ink-2);
  text-indent: 2em;
}

.report__comment::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--red);
  vertical-align: -0.16em;
  animation: blink 1s steps(1) infinite;
}

.report__comment.is-done::after {
  display: none;
}

.report__witness {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 0;
  padding: 10px 14px;
  border: 2px dashed rgba(25, 20, 16, 0.38);
  border-radius: 14px;
  background: var(--paper-2);
  rotate: 0.8deg;
}

.report__witness img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}

.report__witness p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}

.report__witness p b {
  display: block;
  font-family: var(--font-doc);
  font-size: 14.5px;
  color: var(--ink);
}

.report__witness p span {
  font-family: var(--font-doc);
  font-style: italic;
  color: var(--ink-3);
}

.report__witness.is-missing img {
  display: none;
}

/* 印章 */
.report__stamp {
  position: relative;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: end;
  justify-self: end;
  z-index: 5;
  width: clamp(104px, 9.6vw, 128px);
  aspect-ratio: 1;
  color: var(--red);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  transform: rotate(-14deg);
  margin: 0 2px 2px 0;
}

.report__stamp svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.report__stamp.is-stamped {
  animation: stamp-in 0.66s var(--ease-out) 0.15s both;
}

.report__body.is-stamped .report__score,
.report__body.is-stamped .report__verdict {
  animation: shake 0.34s ease-in-out 0.16s;
}

.report__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(16px, 2.6vw, 22px) var(--pad);
  border-top: var(--bw) solid var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(25, 20, 16, 0.03) 0 1px, transparent 1px 5px),
    var(--paper-2);
}

.report__fine {
  max-width: 34em;
  font-family: var(--font-doc);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

.report__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================ 榜单 ============================ */
.board .card {
  padding: clamp(18px, 3vw, 30px) var(--pad) clamp(20px, 3vw, 30px);
}

.board__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(110px, 0.95fr) 82px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid rgba(25, 20, 16, 0.85);
  border-radius: 13px;
  background: var(--paper);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
  animation: fade-up 0.35s var(--ease-out) both;
}

.board__row:hover {
  transform: translateX(2px);
  background: var(--paper-2);
}

.board__row.is-me {
  background: var(--yellow-pale);
  border-width: 3px;
  box-shadow: 4px 4px 0 rgba(25, 20, 16, 0.9);
}

.board__row.is-top {
  background: linear-gradient(90deg, rgba(255, 204, 26, 0.2), transparent 72%), var(--paper);
}

.board__rank {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.board__row.is-top .board__rank {
  color: var(--red-ink);
}

.board__who {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.board__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-doc);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.board__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.board__me-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.board__meter {
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.board__meter i {
  display: block;
  height: 100%;
  border-right: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--yellow-soft), var(--orange));
  transition: width 0.8s var(--ease-out);
}

.board__score {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.board__empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: clamp(26px, 5vw, 46px) 20px;
  border: 2px dashed rgba(25, 20, 16, 0.35);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--ink-3);
}

.board__empty img {
  width: 92px;
  height: auto;
  opacity: 0.9;
}

.board__empty p {
  font-family: var(--font-doc);
  font-size: 14px;
}

.board__note {
  margin-top: 16px;
  font-family: var(--font-doc);
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}

/* ============================ 补充样式 ============================ */

/* 弹层打开时锁滚动 */
body.is-locked {
  overflow: hidden;
}

/* Hero 右下角袋鼠便签 */
.stage__note img {
  width: 66px;
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 4px 0 rgba(25, 20, 16, 0.12));
}

.stage__note p {
  font-size: 13.5px;
  line-height: 1.55;
}

.stage__note span {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* 报告获得焦点时不要框 */
.report-section:focus {
  outline: none;
}

/* 分数高亮时的轻微发光 */
.report__number {
  background: linear-gradient(180deg, transparent 62%, rgba(255, 204, 26, 0.45) 62%);
  width: fit-content;
  padding-inline: 0.06em;
}

/* 输入框抖动 */
.field__input.is-shaking {
  animation: shake 0.32s ease-in-out;
}

/* 榜单空态里的 mono 行 */
.board__empty .mono {
  color: rgba(25, 20, 16, 0.4);
}

/* 印章始终在最上层 */
.report__stamp {
  z-index: 6;
}


/* ============================ Toast ============================ */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  translate: -50% 0;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 420px);
  padding: 11px 18px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 4px 4px 0 rgba(25, 20, 16, 0.25);
  animation: toast-in 0.28s var(--ease-spring) both;
}

.toast b {
  color: var(--yellow);
}

.toast.is-out {
  animation: toast-out 0.22s var(--ease-out) both;
}

/* ============================ 浮动小奶龙 ============================ */
.float-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-float);
  pointer-events: none;
  overflow: hidden;
}

.floater {
  position: absolute;
  bottom: 16vh;
  left: 0;
  width: 62px;
  opacity: 0.9;
  will-change: transform;
  animation: float-drift 17s linear forwards;
  filter: drop-shadow(0 5px 0 rgba(25, 20, 16, 0.12));
}

.floater--high {
  bottom: 34vh;
}

.floater--low {
  bottom: 6vh;
  width: 46px;
  opacity: 0.7;
}

/* ============================ 彩蛋弹窗 ============================ */
.egg {
  position: fixed;
  inset: 0;
  z-index: var(--z-egg);
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 20, 16, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.egg__card {
  position: relative;
  width: min(432px, 100%);
  padding: 26px 28px 22px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  text-align: center;
  animation: egg-in 0.5s var(--ease-spring) both;
}

.egg__card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed rgba(25, 20, 16, 0.2);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.egg__img {
  width: 132px;
  height: auto;
  margin: 2px auto 10px;
  filter: drop-shadow(0 8px 0 rgba(25, 20, 16, 0.12));
  animation: wiggle 1.6s ease-in-out infinite;
}

.egg__from {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.egg__text {
  margin: 8px 0 18px;
  font-family: var(--font-doc);
  font-size: clamp(17px, 3.4vw, 22px);
  font-weight: 700;
  line-height: 1.65;
}

.egg__text mark {
  background: linear-gradient(transparent 60%, var(--yellow-soft) 60%);
  color: inherit;
  white-space: nowrap;
}

/* ============================ 杂项 ============================ */
.confetti {
  position: fixed;
  inset: 0;
  z-index: var(--z-confetti);
  pointer-events: none;
}

.kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 5px;
  border: 1.5px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 5px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.rule {
  height: 2px;
  margin: 20px 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px);
  opacity: 0.28;
}


/* ============================================================
   v1.1 新组件：字体应用 / 观测站 / 胶带 / 图鉴 / 表情墙 / 悬浮坞
   ============================================================ */

/* ---------- 字体应用 ---------- */
.btn {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.btn--small {
  font-size: 13.5px;
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.sticker {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.report__title {
  font-family: var(--font-display);
  font-weight: 400;
}

.report__number {
  font-family: var(--font-num);
}

.report__rank .sticker--lg {
  font-size: clamp(22px, 2.8vw, 30px);
}

.scanner__title {
  font-family: var(--font-display);
  font-weight: 400;
}

.egg__text {
  font-family: var(--font-display);
  font-weight: 400;
}

/* ---------- 奶龙观测站（监控小窗） ---------- */
.monitor {
  position: absolute;
  right: -7%;
  bottom: 1%;
  z-index: 7;
  width: clamp(150px, 13.6vw, 186px);
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 6px 7px 0 rgba(25, 20, 16, 0.4), 0 24px 36px -18px rgba(25, 20, 16, 0.6);
  rotate: 3.2deg;
}

.monitor__head,
.monitor__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.monitor__head {
  color: var(--yellow);
  border-bottom: 2px solid var(--ink);
}

.monitor__head em {
  font-style: normal;
  color: #ff7b64;
  animation: pulse 1.4s steps(2) infinite;
}

.monitor__foot {
  color: rgba(255, 250, 240, 0.68);
  border-top: 2px solid var(--ink);
}

.monitor__screen {
  position: relative;
  aspect-ratio: 1 / 0.86;
  background: radial-gradient(circle at 50% 40%, #2c251c, #0f0c09 78%);
  overflow: hidden;
}

.monitor__screen img {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 76%;
  translate: -50% -50%;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.monitor__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 204, 26, 0.15) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 204, 26, 0.15) 1px, transparent 1px);
  background-size: 17px 17px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.monitor__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(255, 204, 26, 0.28), transparent);
  animation: scan-beam 2.8s linear infinite;
  pointer-events: none;
}

.monitor__cross::before,
.monitor__cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 204, 26, 0.55);
}

.monitor__cross::before {
  left: 50%;
  top: 42%;
  width: 1px;
  height: 22%;
}

.monitor__cross::after {
  left: 33%;
  right: 33%;
  top: 51%;
  height: 1px;
}

/* ---------- 胶带 ---------- */
.tape {
  position: absolute;
  z-index: 6;
  width: 96px;
  height: 25px;
  background: rgba(255, 249, 224, 0.66);
  border: 1px solid rgba(25, 20, 16, 0.18);
  box-shadow: 0 2px 5px rgba(25, 20, 16, 0.12);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  pointer-events: none;
}

.tape::before,
.tape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(45deg, rgba(25, 20, 16, 0.12) 0 2px, transparent 2px 4px);
}

.tape::before { left: -3px; }
.tape::after { right: -3px; }

.tape--tl {
  top: -13px;
  left: 30px;
  rotate: -4deg;
}

.tape--tr {
  top: -12px;
  right: 26px;
  rotate: 5deg;
}

/* ---------- 须知底部小条 ---------- */
.aside-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed rgba(25, 20, 16, 0.26);
}

.aside-mini img {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 4px 0 rgba(25, 20, 16, 0.12));
}

.aside-mini span {
  font-family: var(--font-doc);
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 图鉴卡片 ---------- */
.pose {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px 12px;
  border: var(--bw) solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
  rotate: var(--rot, 0deg);
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.pose:hover {
  transform: translate(-3px, -6px) rotate(0deg);
  box-shadow: 7px 10px 0 var(--ink);
  background: var(--paper-2);
  z-index: 2;
}

.pose:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.pose__no {
  position: absolute;
  top: 8px;
  left: 11px;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--ink-3);
}

.pose__img {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--pose-h, 176px);
  margin-top: 10px;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.pose__img::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 78%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255, 204, 26, 0.5), rgba(255, 204, 26, 0) 70%);
  pointer-events: none;
}

.pose__img img {
  position: relative;
  z-index: 1;
  height: var(--pose-h, 176px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 0 rgba(25, 20, 16, 0.08));
}

.pose__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.15;
}

.pose__meta b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
}

.pose__meta em {
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

/* ---------- 抽象表情墙 ---------- */
.meme {
  position: relative;
  margin: 0;
  padding: 7px 7px 9px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fffdf6;
  box-shadow: 4px 6px 0 rgba(25, 20, 16, 0.82);
  rotate: var(--rot, 0deg);
  transition:
    transform 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
}

.meme img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border: 1px solid rgba(25, 20, 16, 0.18);
  background: var(--cream);
}

.meme figcaption {
  margin-top: 7px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-doc);
  font-size: 11px;
  color: var(--ink-2);
}

.meme:hover {
  transform: translateY(-7px) rotate(0deg) scale(1.035);
  box-shadow: 8px 13px 0 rgba(25, 20, 16, 0.82);
  z-index: 3;
}

/* ---------- 悬浮坞 ---------- */
.dock {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: var(--z-dock);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.dock.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.dock__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-num);
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.dock__btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.dock__btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.dock__btn--mascot {
  overflow: hidden;
  background: var(--yellow);
}

.dock__btn--mascot img {
  width: 36px;
  height: auto;
  margin-top: 12px;
}

/* ---------- 报告胶带 / 边角细节 ---------- */
.report {
  position: relative;
}

.report::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -10px;
  width: 120px;
  height: 26px;
  background: rgba(25, 20, 16, 0.06);
  filter: blur(6px);
  border-radius: 50%;
  pointer-events: none;
}

/* 榜单层级 */
.board .paper-stack {
  z-index: 1;
}

/* 图鉴卡片文案与屏幕阅读器 */
.pose:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

