/*
 * 想象空间 · 一张纸的样式
 *
 * 底色是夜，不是黑：墨里带一丝紫，像闭上眼之后看见的颜色。
 * 金色只给钥匙和真正要紧的东西；其余一律退后。
 * 没有图片、没有字体文件、没有第三方——快，是审美的一部分。
 */

:root {
  --ink0: #05050b;            /* 页底 */
  --ink1: #0a0a15;            /* 面板 */
  --cloth: 233, 235, 245;     /* 布白（文字） */
  --gold: 231, 197, 133;      /* 钥匙金 */
  --haze: 138, 146, 255;      /* 幻境紫，只做微光 */
  --line: rgba(233, 235, 245, 0.085);
  --serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* hidden 属性必须赢：不加这条，任何带 display 的类都会把 hidden 压掉 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(var(--haze), 0.07), transparent 62%),
    radial-gradient(900px 460px at 12% 108%, rgba(var(--gold), 0.045), transparent 60%),
    var(--ink0);
  color: rgba(var(--cloth), 0.92);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(var(--gold), 0.28); }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 1.5px solid rgba(var(--gold), 0.65);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 头与脚 ─────────────────────────────────────────────── */

.top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 24px 0;
}

.top .mark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: rgba(var(--cloth), 0.5);
  transition: color 0.25s;
}

.top .mark:hover { color: rgba(var(--cloth), 0.85); }

.keychip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(var(--cloth), 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  transition: border-color 0.25s, color 0.25s;
}

.keychip:hover { border-color: rgba(var(--gold), 0.4); color: rgba(var(--cloth), 0.9); }

.keychip .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(var(--cloth), 0.3);
}

.keychip.lit .dot { background: rgb(var(--gold)); box-shadow: 0 0 8px rgba(var(--gold), 0.8); }

footer {
  margin-top: 110px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(var(--cloth), 0.35);
}

footer .wrap span:last-child { font-family: var(--mono); letter-spacing: 0.1em; }

/* ── 落地页：图 ─────────────────────────────────────────
   开屏就是这个空间的画面：一片夜，幻境是图上的光。
   光点归账（境册手放坐标），涟漪与星归画布，名字归 HTML——能点、能摸、能被读屏。 */

.atlas {
  position: relative;
  height: 92vh;
  min-height: 620px;
  overflow: hidden;
}

.atlas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atlas-word {
  position: absolute;
  top: 13vh;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.atlas-word h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 5.2vw, 50px);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;    /* 抵掉最后一个字后面的间距，视觉才真居中 */
  color: rgba(var(--cloth), 0.96);
  text-shadow: 0 0 44px rgba(var(--haze), 0.25);
}

.atlas-word .line {
  margin: 16px 0 0;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: rgba(var(--cloth), 0.5);
}

/* 天时的一句：只在流星雨极大、满月、节气那天出现，平常夜这里什么都没有 */
.atlas-word .sky-line {
  margin: 26px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(var(--cloth), 0.34);
}

/* 图上的一盏光 */
.isle {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 10px;
  z-index: 2;
}

.isle-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(var(--gold));
  box-shadow: 0 0 14px rgba(var(--gold), 0.85), 0 0 44px rgba(var(--gold), 0.3);
  transition: box-shadow 0.35s;
}

.isle-dot::after {
  /* 一圈慢慢荡开的光晕，像水面上一盏灯 */
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(var(--gold), 0.3);
  border-radius: 50%;
  animation: lap 4.6s ease-out infinite;
}

@keyframes lap {
  0% { transform: scale(0.35); opacity: 0; }
  28% { opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}

.isle-word {
  display: grid;
  justify-items: center;
  margin-top: 12px;
}

.isle-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  white-space: nowrap;
  color: rgba(var(--cloth), 0.9);
  text-shadow: 0 1px 12px rgba(3, 3, 9, 0.9);
  transition: color 0.3s;
}

.isle-blurb {
  max-width: 230px;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(var(--cloth), 0.55);
  text-shadow: 0 1px 10px rgba(3, 3, 9, 0.95);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.3s, transform 0.3s;
}

.isle:hover .isle-dot, .isle:focus-visible .isle-dot {
  box-shadow: 0 0 20px rgba(var(--gold), 1), 0 0 70px rgba(var(--gold), 0.45);
}

.isle:hover .isle-name, .isle:focus-visible .isle-name { color: rgb(var(--gold)); }

.isle:hover .isle-blurb, .isle:focus-visible .isle-blurb { opacity: 1; transform: none; }

/* 你的钥匙星：布白色，小一号，不荡光晕 */
.isle.you .isle-dot {
  width: 7px;
  height: 7px;
  background: #dfe3f2;
  box-shadow: 0 0 10px rgba(223, 227, 242, 0.9), 0 0 30px rgba(138, 146, 255, 0.35);
}

.isle.you .isle-dot::after { display: none; }

.isle.you .isle-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(var(--cloth), 0.72);
}

/* 水面：那尾鱼守在水线上。青绿宋水的青，涟漪是扁的——水上的圈不是天上的圈 */
.isle.water .isle-dot {
  background: rgb(150, 208, 186);
  box-shadow: 0 0 12px rgba(150, 208, 186, 0.85), 0 0 40px rgba(132, 216, 235, 0.25);
}

.isle.water .isle-dot::after {
  border-color: rgba(150, 208, 186, 0.35);
  animation-name: lap-flat;
}

@keyframes lap-flat {
  0% { transform: scale(0.35) scaleY(0.38); opacity: 0; }
  28% { opacity: 0.5; }
  100% { transform: scale(1.6) scaleY(0.38); opacity: 0; }
}

.isle-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: rgba(150, 208, 186, 0.75);
  margin-bottom: 5px;
}

.isle.water:hover .isle-name, .isle.water:focus-visible .isle-name { color: rgb(150, 208, 186); }

.isle.water:hover .isle-dot, .isle.water:focus-visible .isle-dot {
  box-shadow: 0 0 18px rgba(150, 208, 186, 1), 0 0 60px rgba(132, 216, 235, 0.4);
}

.chip-water {
  border-color: rgba(150, 208, 186, 0.35);
  color: rgba(150, 208, 186, 0.85);
}

.realm.waterrealm:hover { border-color: rgba(150, 208, 186, 0.35); }
.realm.waterrealm .realm-go { color: rgba(150, 208, 186, 0.9); }

.atlas .down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(var(--cloth), 0), rgba(var(--cloth), 0.4));
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scaleY(0.7); }
  50% { opacity: 0.9; transform: translateX(-50%) scaleY(1); }
}

/* ── 章节 ───────────────────────────────────────────────── */

section { margin-top: 88px; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5em;
  color: rgba(var(--gold), 0.62);
  margin: 0 0 26px;
}

/* ── 幻境卡 ─────────────────────────────────────────────── */

.realms { display: grid; gap: 14px; }

.realm {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 34px 26px;
  background: linear-gradient(160deg, rgba(var(--cloth), 0.022), rgba(var(--cloth), 0.004));
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  overflow: hidden;
}

.realm::after {
  /* 门缝里的光：悬停时从右侧渗一点 */
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 34%;
  background: radial-gradient(70% 120% at 100% 50%, rgba(var(--haze), 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.realm:hover {
  border-color: rgba(var(--gold), 0.3);
  transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(var(--cloth), 0.035), rgba(var(--cloth), 0.006));
}

.realm:hover::after { opacity: 1; }

.realm-name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.2em;
  color: rgba(var(--cloth), 0.95);
}

.realm p {
  margin: 8px 0 0;
  max-width: 34em;
  font-size: 14.5px;
  color: rgba(var(--cloth), 0.5);
}

.realm-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(var(--cloth), 0.34);
}

.chip {
  border: 1px solid rgba(var(--gold), 0.28);
  color: rgba(var(--gold), 0.8);
  border-radius: 999px;
  padding: 2px 11px;
}

.realm-go {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-size: 13.5px;
  letter-spacing: 0.3em;
  color: rgba(var(--gold), 0.85);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.realm:hover .realm-go { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ── 落地页钥匙一格 ─────────────────────────────────────── */

.keyrow {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.keyrow canvas {
  width: 96px;
  height: 96px;
  flex: none;
  background: radial-gradient(70% 80% at 50% 42%, #0c0c16, #05050b);
}

.keyrow .keyless {
  width: 96px;
  height: 96px;
  flex: none;
  border: 1px solid rgba(var(--cloth), 0.08);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(var(--cloth), 0.3);
}

.keyrow-word { flex: 1; min-width: 0; }

.keyrow-word .kid {
  font-family: var(--mono);
  font-size: 19px;
  letter-spacing: 0.24em;
  color: rgb(var(--gold));
}

.keyrow-word p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(var(--cloth), 0.5);
  max-width: 30em;
}

/* ── 按钮 ───────────────────────────────────────────────── */

body.keypage {
  background: var(--ink0);
}

body.keypage .wrap { max-width: 640px; }

.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 2px;
  border: 1px solid rgba(var(--gold), 0.42);
  color: rgb(var(--gold));
  font-size: 14px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  transition: background 0.25s, border-color 0.25s, transform 0.15s, opacity 0.25s;
  user-select: none;
}

.act:hover { background: rgba(var(--gold), 0.08); border-color: rgba(var(--gold), 0.8); }
.act:active { transform: scale(0.985); }

.act.plain {
  border-color: rgba(var(--cloth), 0.14);
  color: rgba(var(--cloth), 0.65);
}

.act.plain:hover { border-color: rgba(var(--cloth), 0.3); background: rgba(var(--cloth), 0.03); color: rgba(var(--cloth), 0.9); }

.act[disabled] { opacity: 0.35; pointer-events: none; }

/* ── 入境仪式 ───────────────────────────────────────────── */

.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #030309;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.veil.on { opacity: 1; pointer-events: auto; }

.veil .name {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: rgba(var(--cloth), 0.94);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.18s, transform 0.5s ease 0.18s;
}

.veil .blurb {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: rgba(var(--cloth), 0.4);
  opacity: 0;
  transition: opacity 0.5s ease 0.34s;
}

.veil.on .name { opacity: 1; transform: none; }
.veil.on .blurb { opacity: 1; }

/* ── 钥匙页 ─────────────────────────────────────────────── */

.keyhead {
  margin-top: 118px;
}

.keyhead h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.keyhead p {
  margin: 8px 0 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(var(--cloth), 0.38);
}

.keydeck {
  margin-top: 48px;
}

.keysky {
  position: relative;
  height: 380px;
}

.keysky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.keysky .mint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.keyface {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  padding: 28px 4px 8px;
}

.keyface .kid {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: rgba(var(--gold), 0.88);
}

.keyface input {
  flex: 1;
  min-width: 150px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: rgba(var(--cloth), 0.85);
  font: inherit;
  font-size: 15.5px;
  letter-spacing: 0.08em;
  padding: 4px 2px;
  transition: border-color 0.25s;
}

.keyface input:hover { border-bottom-color: rgba(var(--cloth), 0.15); }
.keyface input:focus { outline: none; border-bottom-color: rgba(var(--gold), 0.5); }
.keyface input::placeholder { color: rgba(var(--cloth), 0.26); }

/* 身份星牌（D-086）：一块夜色乌木牌——你的星、你的编号、你的名号 */
.keyface.idcard {
  position: relative;
  display: block;
  max-width: 420px;
  margin: 26px auto 8px;
  padding: 18px 26px 20px;
  border-radius: 10px;
  background: linear-gradient(168deg, #0d1322 0%, #090d1a 58%, #060912 100%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.6),
              inset 0 0 0 1px rgba(231, 197, 133, 0.14),
              inset 0 0 44px rgba(20, 30, 58, 0.5);
  text-align: center;
}
.keyface.idcard canvas {
  display: block;
  width: 100%;
  height: 150px;
}
.keyface.idcard .kid {
  display: block;
  margin-top: 6px;
  font-size: 21px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}
.keyface.idcard input {
  display: block;
  width: 70%;
  margin: 10px auto 0;
  text-align: center;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(var(--cloth), 0.1);
}
.keyface.idcard .starnote {
  margin: 14px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(var(--cloth), 0.4);
}
.keyface.idcard .idseal {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #f4eddc;
  background: linear-gradient(160deg, #c8402c, #a92f20);
  box-shadow: 0 2px 10px rgba(150, 40, 25, 0.35);
  transform: rotate(-3deg);
  opacity: 0.92;
}

.keyacts {
  display: grid;
  gap: 18px;
  padding: 18px 4px 8px;
}

.keyacts .deed {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.keyacts .act {
  min-height: 40px;
  padding: 0 22px;
  border-radius: 2px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.quietrow {
  display: flex;
  gap: 22px;
}

.quiet {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(var(--cloth), 0.3);
  transition: color 0.2s;
}

.quiet:hover { color: rgba(var(--cloth), 0.7); }

#bareActs { padding-top: 22px; }

.saying {
  padding: 8px 4px 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(var(--cloth), 0.34);
  min-height: 1em;
}

.saying.warn { color: rgba(255, 176, 158, 0.85); }

/* ── 罩层 ───────────────────────────────────────────────── */

.sheetback {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(3, 3, 9, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sheetback.on { opacity: 1; pointer-events: auto; }

.sheet {
  width: min(440px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  border: 1px solid rgba(var(--cloth), 0.08);
  border-radius: 2px;
  background: #08080f;
  padding: 32px 32px 28px;
  transform: translateY(8px);
  transition: transform 0.3s;
}

.sheetback.on .sheet { transform: none; }

.sheet h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.sheet .sub {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: rgba(var(--cloth), 0.45);
}

.sheet .shut {
  position: absolute;
  top: 18px; right: 20px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  color: rgba(var(--cloth), 0.4);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.sheet { position: relative; }
.sheet .shut:hover { color: rgba(var(--cloth), 0.9); background: rgba(var(--cloth), 0.06); }

/* 出卡的两个选项 */
.pickcard {
  display: grid;
  gap: 12px;
}

.pick {
  text-align: left;
  border: 1px solid rgba(var(--cloth), 0.08);
  border-radius: 2px;
  padding: 16px 18px;
  transition: border-color 0.25s, background 0.25s;
}

.pick:hover { border-color: rgba(var(--gold), 0.4); background: rgba(var(--gold), 0.04); }

.pick .t {
  font-size: 15.5px;
  letter-spacing: 0.1em;
  color: rgba(var(--cloth), 0.9);
}

.pick .t .mark2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(var(--gold), 0.75);
  border: 1px solid rgba(var(--gold), 0.3);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 10px;
  vertical-align: 2px;
}

.pick p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(var(--cloth), 0.45);
}

/* 口令输入 */
.passfields { display: grid; gap: 14px; margin-top: 4px; }

.passfields input, .handoff textarea, .readpass input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(var(--cloth), 0.1);
  border-radius: 2px;
  color: rgba(var(--cloth), 0.9);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.25s;
}

.passfields input:focus, .handoff textarea:focus, .readpass input:focus {
  outline: none;
  border-color: rgba(var(--gold), 0.5);
}

.handoff textarea {
  font-family: var(--mono);
  font-size: 13px;
  min-height: 96px;
  resize: vertical;
  word-break: break-all;
}

.sheet .deed {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.sheet .deed .act { flex: 1; }

.sheet .word2 {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: rgba(var(--cloth), 0.38);
}

.sheet .word2.warn { color: rgba(255, 176, 158, 0.8); }

/* 认卡 */
.dropzone {
  border: 1px solid rgba(var(--cloth), 0.1);
  border-radius: 2px;
  padding: 36px 20px;
  text-align: center;
  color: rgba(var(--cloth), 0.38);
  font-size: 13px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.dropzone:hover, .dropzone.over {
  border-color: rgba(var(--gold), 0.5);
  background: rgba(var(--gold), 0.035);
  color: rgba(var(--cloth), 0.75);
}

.readout { margin-top: 20px; }

.readout .verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
}

.readout .verdict .sig { font-size: 17px; }
.readout .verdict.good .sig { color: rgb(var(--gold)); }
.readout .verdict.bad .sig { color: rgba(255, 176, 158, 0.9); }

.readout .who {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 4px 0;
}

.readout .who canvas {
  width: 72px; height: 72px;
  flex: none;
  background: radial-gradient(70% 80% at 50% 42%, #0c0c16, #05050b);
}

.readout .who .kid { font-family: var(--mono); font-size: 16px; letter-spacing: 0.2em; color: rgb(var(--gold)); }
.readout .who .nm { font-size: 14px; color: rgba(var(--cloth), 0.75); margin-top: 3px; }
.readout .who .dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(var(--cloth), 0.35); margin-top: 5px; }

.readpass { margin-top: 16px; display: grid; gap: 12px; }

/* 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(8px);
  z-index: 70;
  background: #0a0a12;
  border: 1px solid rgba(var(--cloth), 0.1);
  border-radius: 2px;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(var(--cloth), 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.on { opacity: 1; transform: translateX(-50%); }

/* ── 窄屏 ───────────────────────────────────────────────── */

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .top { padding: 20px 18px 0; }
  .hero { min-height: 66vh; }
  section { margin-top: 64px; }
  .realm { padding: 24px 22px 22px; }
  .realm-name { font-size: 22px; }
  .realm-go { display: none; }
  .keyrow { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 0; }
  .keyface, .keyacts, .saying { padding-left: 2px; padding-right: 2px; }
  .keysky { height: 280px; }
  .sheetback { padding: 0; align-items: end; }
  .sheet { width: 100%; max-height: 88vh; border-radius: 2px 2px 0 0; padding: 26px 22px 30px; }
  footer { margin-top: 70px; }
  footer .wrap { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 机读身份行（did:key，docs/22 §4）：给机器读的，安静待着 */
.didline {
  margin: 10px 2px 0; font: 10px/1.6 ui-monospace, "SF Mono", Menlo, monospace;
  color: rgba(233, 235, 245, 0.34); letter-spacing: 0.02em;
  word-break: break-all; cursor: pointer; user-select: all;
}
.didline:hover { color: rgba(233, 235, 245, 0.6); }
