/* 设计令牌、基础重置、动效偏好都在 theme.css —— 网页端与仲裁台共用一份，
 * 免得像以前那样两个文件各抄一份 :root（改了一处另一处不跟着变）。
 * 这个文件只放「认怂书」这个页面专有的组件样式。
 *
 * 素材地址（宣纸 / VS / 印章）由 app.js 从 /api/copy 注入成 CSS 变量或内联样式，
 * 这里不写死 URL。 */

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(19, 17, 16, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.seal-mini {
  display: inline-block; width: 34px; height: 34px;
  background: url("/seal.png") center / contain no-repeat;
  transform: rotate(-6deg);
  filter: drop-shadow(0 2px 8px rgba(192, 64, 46, .5));
}
.brand-name { font-weight: 800; letter-spacing: 2px; font-size: 17px; }
.user { display: flex; align-items: center; gap: 10px; }
.uname { color: var(--text-dim); font-size: 14px; }
/* 右上角的资料入口：一个首字头像。比原来那条「昵称 · 我的档案」的灰按钮显眼得多，
   又不占地方 —— 是入口，不是一行导航。 */
.pf-avatar {
  width: 34px; height: 34px; border-radius: 11px; border: none;
  background: linear-gradient(150deg, #e07b3a, #b8562a);
  color: #fff; font-family: "Songti SC", "STSong", serif; font-size: 17px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .09) inset;
}
.pf-avatar:hover { filter: brightness(1.1); }

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: transform .05s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--panel-hover); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(160deg, var(--seal-soft), var(--seal));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 22px -8px rgba(192, 64, 46, .75), 0 1px 0 rgba(255, 255, 255, .18) inset;
}
.btn-primary:hover { background: linear-gradient(160deg, #ea6650, var(--seal-soft)); }
.btn-ghost { background: transparent; }
.btn-ok { background: rgba(78, 158, 106, .16); border-color: rgba(78, 158, 106, .5); color: #86d3a4; }
.btn-warn { background: rgba(217, 138, 43, .16); border-color: rgba(217, 138, 43, .5); color: #e7bb6c; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 380px;
  background: linear-gradient(165deg, #241d18, #1a1613);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.seal-big {
  width: 74px; height: 74px; margin: 0 auto 16px;
  background: url("/seal.png") center / contain no-repeat;
  transform: rotate(-7deg);
  /* drop-shadow 会跟着透明通道走，印章是不规则形状，用它比 box-shadow 干净 */
  filter: drop-shadow(0 6px 18px rgba(192, 64, 46, .5));
}
.login-card h1 { margin: 6px 0 4px; font-size: 26px; letter-spacing: 6px; }
.login-card .sub { color: var(--text-dim); margin: 0 0 22px; font-size: 13px; letter-spacing: 1px; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--seal); }
.login-card .input { margin-bottom: 14px; }
.tiny { color: var(--text-faint); font-size: 12px; margin-top: 16px; line-height: 1.6; }

/* ---------- 首页 hero（战帖台） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 130% at 15% 0%, rgba(192, 64, 46, .20) 0%, transparent 55%),
    linear-gradient(160deg, #241d18, #191410);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 18px;
}
.hero::after {
  content: "契"; position: absolute; right: -18px; top: -34px;
  font-family: "Songti SC", "SimSun", "STSong", serif; font-weight: 900;
  font-size: 168px; color: rgba(217, 164, 65, .05); pointer-events: none;
}
.hero h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: 1px; line-height: 1.5; }
.hero p { margin: 0 0 16px; color: var(--text-dim); font-size: 13px; line-height: 1.7; }

/* 战绩条：四个数字连成一条，而不是四个各自为政的盒子 */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--panel); margin-bottom: 22px;
}
.stat { padding: 15px 8px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.stat span { color: var(--text-faint); font-size: 12px; }
.stat.win b { color: var(--green); }
.stat.lose b { color: var(--seal-soft); }

.section-title { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; color: var(--text-dim); font-size: 13px; letter-spacing: 1px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* ---------- 对决卡：让「谁 VS 谁」成为主角 ---------- */
.duel-card {
  background: linear-gradient(165deg, #221d18, #1a1613);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px; cursor: pointer;
  transition: border-color .15s ease, transform .05s ease;
}
.duel-card:hover { border-color: var(--line-hover); }
.duel-card:active { transform: translateY(1px); }
.duel-arena {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  padding: 18px 16px 14px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(192, 64, 46, .10), transparent 70%);
}
.duelist { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.mono {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center;
  font-family: "Songti SC", "STSong", serif; font-size: 23px; font-weight: 700; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.mono.a { background: linear-gradient(150deg, #e07b3a, #b8562a); }
.mono.b { background: linear-gradient(150deg, #5b8fc9, #3a6491); }
.mono.win { box-shadow: 0 0 0 2px var(--gold), 0 6px 16px -6px rgba(0, 0, 0, .7); }
.dname { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.drole { font-size: 11px; color: var(--text-faint); }
/* 对决徽记：真 VS 图，素材未加载时退化成朱红圆底 + 「VS」字样 */
.vs-medal {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--seal) var(--vs-url) center / contain no-repeat;
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 14px; letter-spacing: 1px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 0 10px rgba(224, 85, 63, .4));
}
/* 素材就位后：去掉朱红兜底圆和「VS」字样，只留真图（app.js 挂的 has-assets） */
.has-assets .vs-medal { background-color: transparent; color: transparent; }
.duel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-top: 1px dashed var(--line);
}
.duel-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--text-dim); font-size: 13px; }
.duel-sub { display: flex; gap: 10px; color: var(--text-faint); font-size: 11px; }

/* ---------- 战绩档案：折叠行 ----------
 * 一行一场，只看「和谁打、赢了输了」，点开才展开明细。
 * 原来一场一张大卡，一屏塞不下几场，翻战绩像翻账本。 */
.rec {
  background: linear-gradient(165deg, #221d18, #1a1613);
  border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 8px; overflow: hidden;
}
.rec.open { border-color: var(--line-hover); }
.rec-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; cursor: pointer; }
.rec-line {
  flex: 1; min-width: 0; font-size: 14.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rec-vs { color: var(--seal-soft); font-weight: 800; font-size: 11px; letter-spacing: 1px; margin: 0 9px; }
.rec-caret { color: var(--text-faint); font-size: 12px; width: 14px; text-align: center; }
.rec-body { padding: 12px 15px 14px; border-top: 1px dashed var(--line); }

.chip { font-size: 11px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; font-weight: 700; }
.st-pending  { background: rgba(148, 137, 122, .16); color: #c3b6a3; }
.st-signed   { background: rgba(91, 143, 201, .16); color: #8fbce8; }
.st-one      { background: rgba(217, 138, 43, .16); color: #e7bb6c; }
.st-review   { background: rgba(91, 143, 201, .16); color: #8fbce8; }
.st-disputed { background: rgba(224, 85, 63, .18); color: #f0938a; }
.st-ok       { background: rgba(78, 158, 106, .18); color: #86d3a4; }
.st-void     { background: rgba(120, 110, 96, .18); color: #a1978a; }

.empty { position: relative; text-align: center; color: var(--text-faint); padding: 118px 0 44px; font-size: 14px; line-height: 1.9; }
.empty::before {
  content: "空"; position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  font-family: "Songti SC", "SimSun", "STSong", serif;
  font-size: 88px; font-weight: 900; line-height: 1;
  color: rgba(237, 230, 219, .04);
  pointer-events: none; user-select: none;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.field .input, .field .select, .field .textarea { width: 100%; }
.textarea { resize: vertical; min-height: 74px; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reason-opt {
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text-dim);
}
.reason-opt.active { border-color: var(--seal); color: #fff; background: rgba(192, 64, 46, .18); }

.games { display: flex; flex-wrap: wrap; gap: 8px; }
.game-opt {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text-dim);
}
.game-opt input { display: none; }
.game-opt:has(input:checked) { border-color: var(--seal); color: #fff; background: rgba(192, 64, 46, .18); }
/* 未开放的游戏：留在列表里让人看见「还有几款在路上」，但明确按不动。
   条件用 :has(input:disabled) 而不是另挂一个 class —— 样式与禁用状态同源，
   以后改开放名单只动服务端那一行，这里不会各说各话。 */
.game-opt:has(input:disabled) { cursor: not-allowed; opacity: .42; }
.game-opt:has(input:disabled):hover { border-color: var(--line); color: var(--text-dim); }
.soon {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-style: normal; font-size: 10px; letter-spacing: .04em;
  border: 1px solid var(--line); color: var(--text-dim);
}
.game-ico { display: inline-block; vertical-align: -4px; width: 22px; height: 22px; border-radius: 6px; margin-right: 6px; }

/* ---------- 认怂书文书（宣纸） ----------
 * 全站唯一的高光物件：一张真正的纸。纸面用对象存储上的宣纸纹理，
 * 取不到时回退到 --paper 纯色。深色台面衬一张亮纸，焦点自然落在这份要签的东西上。 */
.doc {
  position: relative; overflow: hidden;
  border-radius: 14px;
  padding: 30px 26px 28px;
  color: var(--ink);
  font-family: "Songti SC", "SimSun", "STSong", serif;
  background-color: var(--paper);
  background-image: var(--paper-url);
  background-size: cover; background-position: center;
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .05), 0 0 0 6px rgba(0, 0, 0, .14);
}
.doc::before {
  content: "契"; position: absolute; right: -14px; top: -18px;
  font-family: "Songti SC", "SimSun", "STSong", serif;
  font-size: 150px; font-weight: 900; color: rgba(42, 35, 30, .04); pointer-events: none;
}
.doc-title { text-align: center; font-size: 31px; letter-spacing: 12px; text-indent: 12px; margin: 0 0 4px; color: #241d17; }
.doc-subtitle { text-align: center; color: var(--ink-faint); font-size: 14px; letter-spacing: 3px; margin-bottom: 20px; }
.doc-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(120, 100, 70, .28); font-size: 16px; }
.doc-row .k { color: var(--ink-faint); min-width: 62px; letter-spacing: 2px; }
.doc-row .v { color: var(--ink); }
.doc-h { margin: 20px 0 8px; font-size: 16px; color: #8a6d2f; letter-spacing: 2px; font-weight: 700; }
.doc-ol { margin: 0; padding-left: 0; list-style: none; counter-reset: docitem; font-size: 15px; line-height: 2; color: #43382c; }
.doc-ol li { counter-increment: docitem; position: relative; padding-left: 26px; margin-bottom: 2px; }
.doc-ol li::before {
  content: counter(docitem, cjk-ideographic) "、";
  position: absolute; left: 0; color: #a8894a; font-weight: 700;
}
.doc-ol li b { color: #241d17; }
.doc-note { font-size: 15px; line-height: 1.9; color: #43382c; padding-left: 14px; border-left: 3px solid rgba(168, 137, 74, .5); }
.doc-sign { display: flex; gap: 16px; margin-top: 24px; }
.sign-slot {
  flex: 1; text-align: center; padding: 14px 8px;
  border: 1.5px dashed rgba(120, 100, 70, .5); border-radius: 12px; position: relative;
}
.sign-slot .role { color: var(--ink-faint); font-size: 14px; margin-bottom: 8px; letter-spacing: 1px; }
.sign-slot .name { font-size: 20px; font-weight: 700; color: #241d17; }
/* 签完字挂的那句「认怂话」。斜一点、用手写感的宋体，像随手批注的。 */
.slot-quip { margin-top: 8px; font-size: 14px; color: #8a6d2f; font-style: italic; line-height: 1.5; }
.sign-slot.signed .name { color: #2f7a4f; }
.sign-slot .signed-at { color: var(--ink-faint); font-size: 13px; margin-top: 6px; }
.sign-slot.signed { border-style: solid; border-color: rgba(78, 158, 106, .6); background: rgba(78, 158, 106, .06); }

/* ---------- 盖章（随机印章） ----------
 * 产品真正的情感时刻只有一个：签下名字、盖章、认了。
 * 所以这里不是让印章「出现」，而是让它砸下来 —— 从斜上方落下、略微过冲、回稳，
 * 同时有一圈墨往外洇开。印章图由 app.js 按「对局 + 角色」稳定伪随机从四枚里挑一枚，
 * 贴成内联 background-image —— 同一次签约不会在重绘时跳来跳去。 */
.stamp {
  position: absolute; right: 6px; top: 6px;
  width: 50px; height: 76px;
  background-position: center; background-repeat: no-repeat; background-size: contain;
  animation: stamp-drop .42s cubic-bezier(.2, 1.5, .4, 1) both;
}
.stamp::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 8px; border: 2px solid var(--seal-soft);
  animation: ink-ripple .55s ease-out .06s both;
}
@keyframes stamp-drop {
  0%   { opacity: 0; transform: rotate(-18deg) scale(1.7); }
  60%  { opacity: 1; transform: rotate(-13deg) scale(.93); }
  80%  { transform: rotate(-15deg) scale(1.03); }
  100% { opacity: .92; transform: rotate(-14deg) scale(1); }
}
@keyframes ink-ripple {
  0%   { opacity: .45; transform: scale(.65); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* ---------- 面板 ---------- */
.panel { background: linear-gradient(165deg, #221d18, #1a1613); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 18px; }
.panel h3 { margin: 0 0 6px; font-size: 16px; }
.panel .hint { color: var(--text-dim); font-size: 13px; line-height: 1.7; margin: 0 0 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(0, 0, 0, .18); }
.upload-box .who { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.upload-preview { width: 100%; border-radius: 8px; display: block; margin-bottom: 8px; border: 1px solid var(--line); }
.upload-empty {
  height: 96px; display: grid; place-items: center; color: var(--text-faint); font-size: 12px;
  border: 1.5px dashed #3a3128; border-radius: 8px; margin-bottom: 8px;
}
.file-btn { display: inline-block; }
.file-btn input { display: none; }

/* ---------- 72 小时倒计时 ---------- */
.countdown { margin: 14px 0 2px; }
.countdown .bar { height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.countdown .bar i { display: block; height: 100%; border-radius: 999px; background: currentColor; transition: width .4s ease; box-shadow: 0 0 12px currentColor; }
.countdown .label { margin-top: 9px; font-size: 13px; color: var(--text-dim); }
.countdown .label b { color: currentColor; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown.lv1 { color: var(--amber); }
.countdown.lv2 { color: #e07b3a; }
.countdown.lv3 { color: var(--seal-soft); }
.countdown.lv3 .label, .countdown.lv3 .bar { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .68; } }

/* ---------- 战绩证书（宣纸 + 榜书 + 大印） ---------- */
.cert {
  position: relative; overflow: hidden;
  /* 一张要「铺满手机屏」的纸：给它一个高的下限，内部用纵向 flex 撑开，
     大字吃掉中间的空白 —— 否则内容浮在顶上，下面留一大截白，气就散了。 */
  min-height: 74vh;
  display: flex; flex-direction: column;
  border-radius: 16px; padding: 34px 26px 28px; text-align: center;
  color: var(--ink); font-family: "Songti SC", "SimSun", "STSong", serif;
  background-color: var(--paper);
  background-image: var(--paper-url);
  background-size: cover; background-position: center;
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05), 0 0 0 6px rgba(0, 0, 0, .14);
}
.cert-frame { position: absolute; inset: 12px; border: 1.5px solid rgba(168, 137, 74, .35); border-radius: 8px; pointer-events: none; }
.cert-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(168, 137, 74, .22); border-radius: 4px; }
.cert-k { position: relative; color: #96782f; font-size: 15px; letter-spacing: 8px; text-indent: 8px; font-weight: 700; }
.cert-hero {
  position: relative; margin: 4px 0 2px;
  /* flex:1 + 居中 —— 让这个大字的上下吃掉纸面的余量，把版面撑满 */
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: "Bangshu", "Songti SC", "SimSun", serif; font-weight: 400;
  font-size: 170px; line-height: 1.14; color: #b8432f;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .4), 0 0 60px rgba(184, 67, 47, .25);
}
.cert.lose .cert-hero { color: #6d7891; text-shadow: 0 2px 0 rgba(255, 255, 255, .35), 0 0 60px rgba(109, 120, 145, .25); }
.cert-verdict { position: relative; font-size: 24px; font-weight: 700; color: #241d17; letter-spacing: 1px; }
.cert-rule { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 14px; }
.cert-rule .l { height: 1px; width: 60px; background: rgba(168, 137, 74, .55); }
.cert-rule .d { color: #a8894a; font-size: 12px; }
.cert-game { position: relative; font-size: 16px; color: var(--ink-dim); }
.cert-date { position: relative; font-size: 14px; color: var(--ink-faint); margin-top: 5px; }
/* 认怂人那一块：虚线以上是「这是谁的认怂书」，以下是谁签的、签的时候说了句什么。
   那一句认怂话由服务端下发（copy.ackQuips），按「对局 + 角色」稳定随机。 */
.cert-sign { position: relative; margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(120, 100, 70, .35); }
.cs-role { display: block; font-size: 13px; color: var(--ink-faint); letter-spacing: 4px; text-indent: 4px; }
.cs-name { display: block; margin-top: 5px; font-size: 24px; font-weight: 800; color: #241d17; }
.cs-val { display: block; margin-top: 5px; font-size: 15px; color: var(--ink-faint); }
.cs-val.on { color: #96782f; font-weight: 700; }
.cert-foot { position: relative; margin-top: 20px; font-size: 14px; color: #a89a80; letter-spacing: 3px; }
/* z-index 让章压在字上：真实盖章就是盖在字上的。
   mix-blend-mode 是兜底：印章图若还没换成透明版（原图是白底方块），
   multiply 会把白底在纸色上直接吃掉，不至于露出一块白。
   换成透明图之后它只让朱砂和纸色叠印，反而更像真盖上去的。 */
.cert-seal {
  position: absolute; right: 16px; top: 74px; z-index: 2;
  width: 104px; height: 122px;
  background-position: center; background-repeat: no-repeat; background-size: contain;
  opacity: .92; mix-blend-mode: multiply;
}

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: #332b24; border: 1px solid var(--line-hover); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-size: 14px; z-index: 50;
  box-shadow: var(--shadow); animation: pop .2s ease;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 520px) {
  .doc-title { font-size: 22px; letter-spacing: 7px; }
  .uploads { grid-template-columns: 1fr; }
  .cert-hero { font-size: 138px; }
  .cert-seal { width: 76px; height: 100px; }
}

@media (max-width: 380px) {
  .wrap { padding: 14px 12px 48px; }
  .doc { padding: 20px 15px; }
  .doc-title { font-size: 19px; letter-spacing: 5px; }
  .doc::before { font-size: 108px; right: -14px; }
  .doc-row { font-size: 15px; }
  .doc-sign { gap: 10px; }
  .stamp { width: 42px; height: 64px; }
  .login-card { padding: 26px 18px; }
  .login-card h1 { font-size: 22px; letter-spacing: 4px; }
  .mono { width: 44px; height: 44px; font-size: 20px; }
  .vs-medal { width: 38px; height: 38px; }
}

/* ---------- 个人档案：称号标签 ---------- */
.titles { display: flex; flex-wrap: wrap; gap: 8px; }
.title-chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px;
  color: var(--gold); background: rgba(217, 164, 65, .14); border: 1px solid rgba(217, 164, 65, .35);
}

/* ---------- 个人档案：我的游戏资料（上传识别） ----------
   没认证时是上传入口，认证过后是只读的两行值 —— 刻意做成静态文字而不是输入框，
   看着就不像能直接改的，也就不会有人去点它。 */
.kv {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.kv:last-of-type { border-bottom: none; padding-bottom: 0; }
.kv span { color: var(--text-dim); font-size: 14px; flex: none; }
.kv b { font-weight: 800; font-size: 15px; word-break: break-all; text-align: right; }
/* 游戏ID 是要一位一位核对的，用等宽字并拉开字距，别让人看串行 */
.mono-input { font-family: ui-monospace, Menlo, Consolas, 'Courier New', monospace; letter-spacing: 2px; }
.panel .hint em { color: var(--gold); font-style: normal; font-weight: 700; }
/* 上传控件是个 <label> 包着隐藏的 file input —— 原生 file 控件在各家浏览器
   长得都不一样，藏起来用按钮触发才有一致的观感。 */
input[type="file"][data-act="pick-profile"] { display: none; }
