/* 明日方舟 · 卫戍协议：盟约 组队页
   视觉参考活动本身：深青底 + 薄荷绿荧光（ALLIANCE / 盟约）、雷达圈、扫描线、点阵三角徽标；
   干员配置界面的“深色网格 + 浅色信息面板 + 圆形盟约图标 + 白色确认按钮”。 */
:root {
  --bg: #0a1211;
  --panel: #111c1b;
  --panel-2: #172524;
  --line: rgba(190, 255, 230, .1);
  --line-strong: rgba(190, 255, 230, .2);
  --text: #eef6f2;
  --muted: rgba(226, 240, 234, .58);
  --mint: #3fe0a0;
  --mint-hi: #6dffbd;
  --mint-deep: #1d6b52;
  --amber: #f2b134;
  --paper: #e9eeec;
  --paper-ink: #111716;
  --paper-soft: #5c6966;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --cut: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  --op-outline: drop-shadow(1px 0 0 #050908) drop-shadow(-1px 0 0 #050908) drop-shadow(0 1px 0 #050908) drop-shadow(0 -1px 0 #050908) drop-shadow(0 6px 5px rgba(0, 0, 0, .5));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; }
body {
  min-height: 100vh;
  font-family: var(--cjk);
  color: var(--text);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(120, 255, 200, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(120, 255, 200, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(90% 60% at 85% -10%, rgba(63, 224, 160, .12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
.shell { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.ak-topbar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(8, 14, 13, .9); backdrop-filter: blur(12px); }
.ak-topbar .shell { display: flex; align-items: center; gap: 16px; height: 60px; }
.ak-back { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.ak-back img { width: 30px; height: 30px; }
.ak-back strong { font-size: 15px; font-weight: 900; }
.ak-back small { display: block; font-size: 10px; color: var(--muted); }
.ak-divider { width: 1px; height: 26px; background: var(--line-strong); }
.ak-brand { display: grid; gap: 1px; }
.ak-brand b { font-size: 14px; font-weight: 900; letter-spacing: 1px; }
.ak-brand span { font-family: var(--mono); font-size: 9px; color: var(--mint); letter-spacing: 1.5px; }
.ak-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ak-me { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px 0 4px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ak-me:hover { border-color: var(--mint); }
.ak-me .thumb { width: 34px; height: 34px; }
.ak-me > span:last-child { margin-left: 6px; text-align: left; }
.ak-me small { display: block; font-size: 9px; color: var(--muted); font-weight: 700; }
.ak-primary { height: 42px; padding: 0 16px; font-size: 13px; font-weight: 900; color: #06110d; background: var(--mint); white-space: nowrap; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.ak-primary:hover { background: var(--mint-hi); }

/* ---------- shared ---------- */
.thumb { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 38%, #24332f, #0c1312 72%); clip-path: var(--cut); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.thumb.empty { background: repeating-linear-gradient(135deg, rgba(63, 224, 160, .1) 0 6px, transparent 6px 12px), #0f1918; color: var(--mint); font-size: 11px; font-weight: 900; }
/* 圆形盟约图标：参考游戏内“深色圆 + 白色符号” */
.pact { position: relative; display: inline-grid; place-items: center; width: var(--ps, 20px); height: var(--ps, 20px); flex: none; border-radius: 50%; background: #0b1514; box-shadow: inset 0 0 0 1px rgba(190, 255, 230, .28); overflow: hidden; }
.pact img { width: 72%; height: 72%; object-fit: contain; }
.pact.mono { color: var(--text); font-size: calc(var(--ps, 20px) * .5); font-weight: 900; }
.pact.first { box-shadow: inset 0 0 0 1.5px var(--mint), 0 0 6px rgba(63, 224, 160, .45); }
/* 第一志愿方块（出战牌 / 成员列表），和干员方块同尺寸 */
.thumb.first-choice { background: radial-gradient(circle, #1d3a33, #0b1312 74%); }
.first-emblem { width: 76%; height: 76%; object-fit: contain; }
.first-emblem.mono { display: grid; place-items: center; font-size: 42px; font-weight: 900; color: var(--text); }
.first-empty { font-size: 11px; font-weight: 900; color: var(--amber); text-align: center; padding: 0 6px; }
.roster-row .pair { display: flex; gap: 3px; }

.pick.first small { color: var(--mint); font-weight: 900; }
.tag-mint { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; font-size: 11px; font-weight: 900; color: #06110d; background: var(--mint); white-space: nowrap; }

/* ---------- hero（仿活动横幅） ---------- */
.ak-hero { padding: 22px 0 6px; }
/* 页面内容由脚本画出来：画好之前先不显示，免得空骨架先露出来、再被内容顶开（手机慢网速下布局会整页跳）。
   脚本 4 秒还没跑起来也照样显示 */
html:not(.ak-ready) main { visibility: hidden; animation: ak-reveal 0s 4s forwards; }
@keyframes ak-reveal { to { visibility: visible; } }
.hero-banner { position: relative; min-height: 260px; overflow: hidden; isolation: isolate; border: 1px solid rgba(63, 224, 160, .35);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(60% 90% at 30% 55%, rgba(242, 177, 52, .32), transparent 60%),
    radial-gradient(80% 120% at 75% 30%, rgba(63, 224, 160, .14), transparent 65%),
    linear-gradient(120deg, #13221f, #0b1513 60%, #0e1a18); }
.hero-radar { position: absolute; z-index: -1; left: 6%; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(190, 255, 230, .14) 34px 35px), conic-gradient(from 0deg, rgba(63, 224, 160, .25), transparent 14%);
  animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: translateY(-50%) rotate(1turn); } }
.hero-target { position: absolute; z-index: -1; right: 16%; top: 44%; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(190, 255, 230, .5); box-shadow: 0 0 0 10px rgba(190, 255, 230, .06); }
.hero-target::after { content: "TARGET POINT"; position: absolute; left: 44px; top: 8px; font-family: var(--mono); font-size: 9px; color: rgba(190, 255, 230, .55); white-space: nowrap; border: 1px solid rgba(190, 255, 230, .3); padding: 1px 5px; }
.hero-copy { position: relative; z-index: 3; display: flex; align-items: center; gap: 18px; padding: 22px 26px 0; }
.hero-logo { width: 84px; height: 74px; flex: none; }
.hero-logo circle { fill: #f3f7f5; }
.hero-title small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: rgba(226, 240, 234, .7); }
.hero-title em { display: block; font-family: var(--mono); font-style: normal; font-size: 26px; font-weight: 800; letter-spacing: 4px; color: transparent; -webkit-text-stroke: 1px var(--mint); text-shadow: 0 0 14px rgba(63, 224, 160, .35); line-height: 1.1; }
.hero-title h1 { font-size: 32px; font-weight: 900; letter-spacing: 1px; line-height: 1.15; }
.hero-title h1 span { color: var(--mint); }
.hero-sub { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 26px 0; font-size: 13px; color: var(--muted); max-width: 820px; }
.hero-stats { position: absolute; z-index: 3; right: 18px; top: 18px; display: flex; gap: 6px; }
.hero-stats > span { display: grid; min-width: 84px; padding: 7px 11px; background: rgba(6, 12, 11, .82); border: 1px solid var(--line); text-align: right; }
.hero-stats small { font-size: 10px; color: var(--muted); font-weight: 700; }
.hero-stats b { font-family: var(--mono); font-size: 22px; color: var(--mint); line-height: 1.15; }
.hero-stats .miss { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 14px; font-family: var(--cjk); color: var(--amber); }
.hero-lineup { position: absolute; left: 0; right: 0; bottom: 0; height: 118px; overflow: hidden; pointer-events: none; }
.hero-lineup::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent); }
/* 干员游行：每人从左边走进、右边走出，走完一趟换一个人（walker 的 left 从 -150px 走到 100%） */
.hero-lineup .walker { position: absolute; z-index: 2; left: -150px; bottom: -4px; width: 128px; height: 128px; animation: ak-walk 30s linear infinite; }
.hero-lineup .walker img { width: 100%; height: 100%; max-width: none; filter: var(--op-outline); }
@keyframes ak-walk { from { left: -150px; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-lineup .walker { animation-play-state: paused; } }
.ak-ticker { display: flex; margin-top: 12px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.ak-ticker > div { flex: 1; padding: 10px 14px; border-right: 1px solid var(--line); }
.ak-ticker > div:last-child { border-right: 0; }
.ak-ticker small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.ak-ticker b { font-family: var(--mono); font-size: 18px; }
.ak-ticker b.hi { color: var(--mint); }
.ak-ticker b.ok { color: var(--amber); }
.ak-ticker .feed { flex: 2.4; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ak-ticker .feed .thumb { width: 28px; height: 28px; }
.ak-ticker .feed strong { color: var(--text); }

/* ---------- toolbar ---------- */
.ak-toolbar { position: sticky; top: 60px; z-index: 30; margin-top: 16px; padding: 10px 0; background: rgba(8, 14, 13, .93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-row + .toolbar-row { margin-top: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 11px; font-size: 12px; font-weight: 800; color: var(--muted); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); }
.chip.on { color: #06110d; background: var(--tone, var(--mint)); border-color: var(--tone, var(--mint)); }
.chip i { width: 8px; height: 8px; background: var(--tone, var(--mint)); }
.chip.on i { background: #06110d; }
.chip b { font-family: var(--mono); font-size: 11px; opacity: .7; }
.search { height: 34px; min-width: 200px; flex: 1; max-width: 300px; padding: 0 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); font-size: 13px; }
.search::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.select { height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); background: var(--panel); font-size: 12px; font-weight: 700; }
.toolbar-label { font-size: 11px; font-weight: 800; color: var(--muted); }
.faction-filter { display: flex; gap: 4px; flex-wrap: wrap; }
.faction-filter button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px 0 4px; border: 1px solid var(--line); font-size: 11px; font-weight: 800; color: var(--muted); }
.faction-filter button .pact { opacity: .6; }
.faction-filter button.on { border-color: var(--mint); color: var(--text); background: rgba(63, 224, 160, .12); }
.faction-filter button.on .pact { opacity: 1; box-shadow: inset 0 0 0 1px var(--mint); }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; white-space: nowrap; }
.toggle input { appearance: none; width: 30px; height: 16px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); transition: .15s; }
.toggle input:checked { background: var(--mint-deep); }
.toggle input:checked::after { left: 16px; background: var(--mint); }
.ml-auto { margin-left: auto; }

/* ---------- grid ---------- */
.ak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding: 18px 0 60px; align-items: stretch; }
.ak-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-strong); }
.ak-empty b { display: block; font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* ---------- card：作战档案式边框（左侧难度色档案侧标 + 右上缺角） ---------- */
.ak-card { --tone: var(--mint); position: relative; display: flex; flex-direction: column; min-width: 0; padding-left: 24px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 7%, transparent), transparent 140px), #121b1a; cursor: pointer; transition: transform .15s, border-color .15s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.ak-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 70%, transparent); }
.ak-card > .card-body, .ak-card > .card-foot { position: relative; z-index: 1; }
/* 档案侧标：难度编号 + 竖排协议名 / 房间号 + 条码，底部斜切 */
.card-side { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 10px; color: #06110d; background: var(--tone);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 60% 100%, 0 100%); }
.card-side b { font-family: var(--mono); font-size: 13px; font-style: italic; font-weight: 900; line-height: 1; }
.card-side span { writing-mode: vertical-rl; font-family: var(--mono); font-size: 8.5px; font-weight: 800; letter-spacing: 2.5px; white-space: nowrap; overflow: hidden; }
.card-side i { margin-top: auto; margin-bottom: 14px; width: 12px; height: 26px; flex: none; background: repeating-linear-gradient(180deg, #06110d 0 1px, transparent 1px 2px, #06110d 2px 4px, transparent 4px 5px); opacity: .8; }
/* 右上缺角：难度色小三角 */
.card-notch { position: absolute; z-index: 2; right: 0; top: 0; width: 14px; height: 14px; pointer-events: none; background: linear-gradient(45deg, transparent 50%, var(--tone) 50%); }
.ak-card.joined { outline: 2px solid var(--mint); outline-offset: -1px; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 10px 12px 12px; }
.card-head { display: flex; align-items: center; gap: 6px; }
.diff-badge { display: inline-flex; align-items: center; height: 24px; color: #06110d; font-size: 12px; font-weight: 900; background: var(--tone); padding: 0 10px 0 0; white-space: nowrap; }
.diff-badge b { display: grid; place-items: center; align-self: stretch; padding: 0 7px; margin-right: 7px; font-family: var(--mono); font-style: italic; color: var(--tone); background: #0a1110; }
.pill { height: 22px; padding: 0 7px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.time { color: var(--amber); border-color: rgba(242, 177, 52, .4); }
.card-head .age { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; }

.card-hero { position: relative; height: 222px; margin-top: 0; padding: 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.seat { position: relative; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 14%, transparent), rgba(0, 0, 0, .35)); border: 1px solid var(--line); }
.seat-stage { position: relative; flex: 1; overflow: hidden; }
.seat-emblem { position: absolute; left: 50%; top: 4px; width: 70px; height: 70px; max-width: 92%; object-fit: contain; transform: translateX(-50%); opacity: .5; filter: drop-shadow(0 0 6px rgba(63, 224, 160, .35)); }
.seat-emblem.mono { display: grid; place-items: center; font-size: 46px; font-weight: 900; color: rgba(238, 246, 242, .45); }
.seat-op { position: absolute; left: 50%; bottom: -2px; width: 118px; height: 118px; max-width: none; object-fit: contain; transform: translateX(-50%); filter: var(--op-outline); }
.seat-plate { padding: 3px 4px 4px; background: rgba(5, 10, 9, .9); min-width: 0; }
.seat-plate > span { display: block; font-size: 10px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-pacts { display: flex; gap: 2px; margin-top: 2px; height: 18px; align-items: center; --ps: 18px; }
.seat-pacts .more { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.seat.is-host .seat-plate > span::before { content: "★ "; color: var(--amber); }
.seat.you { border-color: var(--mint); }
.seat.open { align-items: center; justify-content: center; border-style: dashed; border-color: color-mix(in srgb, var(--tone) 45%, transparent); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tone) 8%, transparent) 0 6px, transparent 6px 12px); color: var(--muted); font-size: 22px; font-weight: 300; }
.ak-card.full .card-hero::after { content: "满员"; position: absolute; right: 6px; top: 6px; font-size: 11px; font-weight: 900; color: #06110d; background: var(--mint); padding: 2px 8px; }

/* 标题三层：小字房间信息（等宽、弱）→ 大标题（左侧难度色竖条）→ 挂通行证的细杆 */
.card-kicker { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-left: 11px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .4px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.card-kicker b { color: var(--tone); font-weight: 800; }
.card-kicker i { width: 3px; height: 3px; flex: none; background: currentColor; opacity: .5; transform: rotate(45deg); }
.card-title { position: relative; margin: 3px 0 0; padding: 0 0 11px 11px; font-size: 19px; font-weight: 900; letter-spacing: .3px; line-height: 1.25; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); border-bottom: 2px solid rgba(214, 228, 223, .32); }
.card-title::before { content: ""; position: absolute; left: 0; top: -15px; bottom: 13px; width: 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 35%, transparent) 0 13px, var(--tone) 13px); }
.card-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--tone); }
.card-title span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title + .card-hero + .pact-strip, .card-hero + .pact-strip { margin-top: 12px; }
.pact-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: 10px; }
.pact-cell { position: relative; display: grid; justify-items: center; gap: 3px; padding: 5px 0 4px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); --ps: 28px; }
.pact-cell .pact { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.pact-cell .pact img { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.pact-cell b { font-family: var(--mono); font-size: 10px; line-height: 1; color: var(--muted); }
.pact-cell.has { border-color: rgba(190, 255, 230, .22); background: rgba(255, 255, 255, .06); }
.pact-cell.has b { color: var(--text); }
.pact-cell.deep b { color: var(--mint-hi); }
.pact-cell.deep .pact img { filter: drop-shadow(0 0 4px rgba(63, 224, 160, .7)); }
.pact-cell.none .pact { opacity: .3; }
.pact-cell.mine { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.pact-cell.mine .pact { opacity: 1; }
.pact-cell.mine b { color: var(--amber); }
.card-foot { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .28); }
.host { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.host .thumb { width: 30px; height: 30px; }
.host strong { display: block; font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { font-family: var(--mono); font-size: 15px; font-weight: 800; }
.join { padding: 8px 13px; font-size: 12px; font-weight: 900; color: #06110d; background: var(--tone); box-shadow: 4px 0 0 #000; white-space: nowrap; }
.join:hover { filter: brightness(1.12); }
.join:disabled { color: var(--muted); background: #26302e; box-shadow: none; filter: none; }
.join.joined { color: #06110d; background: var(--mint); }

/* ---------- 干员 / 时装选择器 ---------- */
.picker-tabs { display: flex; gap: 0; margin-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.picker-tabs button { height: 34px; padding: 0 16px; font-size: 13px; font-weight: 900; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.picker-tabs button.on { color: var(--text); border-bottom-color: var(--mint); }
.roster-picker .chips { margin-bottom: 8px; }
.roster-picker .chip { height: 28px; font-size: 11px; }
.brand-chips .chip { padding: 0 9px; }
.op-pact { position: absolute; z-index: 2; right: 4px; top: 4px; }
.pick .star.brand { max-width: calc(100% - 8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #d9e6e1; }
.picker-empty { grid-column: 1 / -1; color: var(--muted); font-size: 12px; padding: 12px 0; }
.skin-strip { display: flex; gap: 6px; align-items: stretch; overflow-x: auto; padding: 8px; margin-bottom: 10px; border: 1px solid rgba(63, 224, 160, .25); background: rgba(29, 107, 82, .18); }
.skin-strip .label { flex: none; align-self: center; font-size: 11px; font-weight: 900; color: var(--mint); writing-mode: vertical-rl; letter-spacing: 2px; }
.skin { flex: none; width: 76px; display: grid; justify-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); }
.skin .thumb { width: 66px; height: 66px; }
.skin small { max-width: 100%; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin.on { border-color: var(--mint); background: rgba(63, 224, 160, .12); }
.skin.on small { color: var(--text); }
.section-label b { margin-left: 6px; font-family: var(--mono); color: var(--amber); }

/* ---------- drawer：深色头 + 浅色信息面板 ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); color: var(--paper-ink); transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { position: relative; padding: 16px 18px 14px; color: var(--text); background: linear-gradient(120deg, #13221f, #0b1513); border-bottom: 3px solid var(--tone, var(--mint)); }
.drawer-head h3 { margin-top: 8px; font-size: 20px; font-weight: 900; padding-right: 40px; }
.drawer-head p { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.drawer-close { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; gap: 16px; align-content: start; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid rgba(0, 0, 0, .1); background: #dfe5e3; }
.section-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; color: var(--muted); letter-spacing: .5px; margin-bottom: 8px; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.drawer .section-label { color: var(--paper-ink); border-bottom: 2px solid var(--paper-ink); padding-bottom: 4px; }
.drawer .section-label::after { display: none; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.info-grid div { padding: 8px 10px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
.info-grid small { display: block; font-size: 10px; color: var(--paper-soft); font-weight: 700; }
.info-grid b { font-size: 13px; }
.roster { display: grid; gap: 6px; }
.roster-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
.roster-row .pair .thumb { width: 56px; height: 56px; }
.roster-row strong { font-size: 13px; font-weight: 900; }
.roster-row small { display: block; font-size: 11px; color: var(--paper-soft); margin-top: 2px; }
.roster-row .pacts { display: flex; gap: 3px; flex-wrap: wrap; --ps: 28px; justify-content: flex-end; max-width: 160px; }
.roster-row.open { border-style: dashed; background: transparent; color: var(--paper-soft); }
.badge { font-size: 9px; font-weight: 900; color: #111; background: var(--amber); padding: 0 4px; margin-left: 5px; vertical-align: 1px; }
.badge.you { color: #06110d; background: var(--mint); }
.cover-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.cover-table div { display: flex; align-items: center; gap: 9px; padding: 7px 9px; background: #12201e; color: var(--text); --ps: 34px; }
.cover-table strong { font-size: 13px; }
.cover-table small { display: block; font-size: 11px; color: var(--muted); }
.cover-table .need { font-size: 10px; font-weight: 900; color: #06110d; background: var(--tag, #8da29c); padding: 0 6px; margin-left: auto; white-space: nowrap; }
.cover-table .none { background: #2a3331; }
.cover-table .none .pact { opacity: .45; }
.cover-table .deep { --tag: var(--mint); }
.cover-table .deep .pact { box-shadow: inset 0 0 0 1px var(--mint); }
.note { font-size: 12px; color: var(--paper-soft); line-height: 1.6; padding: 8px 10px; border-left: 3px solid var(--amber); background: rgba(242, 177, 52, .12); }
.note b { color: #9a6200; }
.modal .note { color: var(--muted); background: rgba(242, 177, 52, .08); }
.modal .note b { color: var(--amber); }
.chat { display: grid; gap: 8px; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; }
.msg .thumb { width: 30px; height: 30px; }
.msg b { font-size: 11px; color: var(--paper-soft); }
.msg p { margin-top: 2px; font-size: 13px; line-height: 1.5; padding: 6px 9px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); width: fit-content; max-width: 100%; }
.btn { height: 38px; padding: 0 16px; font-size: 13px; font-weight: 900; border: 1px solid var(--line-strong); white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--text); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn.go { display: inline-flex; align-items: center; gap: 8px; color: #0b1211; background: #f1f5f3; border-color: #f1f5f3; }
.btn.go::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; font-size: 11px; color: #f1f5f3; background: #0b1211; }
.btn.go:disabled { color: var(--muted); background: #26302e; border-color: #26302e; }
.drawer .btn { border-color: rgba(0, 0, 0, .25); }
.drawer .btn.go { color: #f1f5f3; background: #0b1211; border-color: #0b1211; }
.drawer .btn.go::before { color: #0b1211; background: var(--mint); }
.drawer .btn.go:disabled { color: #8a9692; background: #c9d1ce; border-color: #c9d1ce; }

/* ---------- modal ---------- */
.modal { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .68); }
.modal[hidden] { display: none; }
.modal-panel { width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-strong); }
.modal-panel.wide { width: min(1120px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(63, 224, 160, .14), transparent 60%); }
.modal-head small { display: block; font-family: var(--mono); font-size: 10px; color: var(--mint); }
.modal-head h3 { font-size: 18px; font-weight: 900; }
.modal-scroll { flex: 1; overflow-y: auto; }
.modal-body { padding: 16px 18px; display: grid; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.modal-foot .why { margin-right: auto; font-size: 12px; color: var(--muted); }
.modal-foot .why.warn { color: var(--amber); }
.create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.create-steps { padding: 4px 18px 18px; display: grid; gap: 4px; }
.create-preview { border-left: 1px solid var(--line); padding: 16px; background: rgba(0, 0, 0, .25); }
.create-preview .sticky { position: sticky; top: 0; display: grid; gap: 10px; }
.create-preview .ak-card { cursor: default; }
.create-preview .ak-card:hover { transform: none; }
.preview-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.preview-label b { color: var(--mint); }
.checklist { display: grid; gap: 4px; font-size: 12px; }
.checklist span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.checklist span::before { content: "○"; font-weight: 900; }
.checklist span.ok { color: var(--mint); }
.checklist span.ok::before { content: "✓"; }
.step { padding: 14px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.step-head b { font-family: var(--mono); font-size: 12px; color: #06110d; background: var(--mint); padding: 0 6px; }
.step-head strong { font-size: 14px; font-weight: 900; }
.step-head span { font-size: 11px; color: var(--muted); font-weight: 700; }
.diff-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.diff-tile { position: relative; text-align: left; padding: 10px 11px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); display: grid; gap: 3px; }
.diff-tile .lv { font-family: var(--mono); font-weight: 900; font-size: 18px; color: var(--tone); line-height: 1; }
.diff-tile strong { font-size: 13px; font-weight: 900; }
.diff-tile small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.diff-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tone); opacity: .45; }
.diff-tile.on { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 18%, transparent); box-shadow: inset 0 0 0 1px var(--tone); }
.diff-tile.on::after { opacity: 1; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile, 96px), 1fr)); gap: 8px; }
.picker.eight { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.pick { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 6px 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); min-width: 0; }
.pick .thumb { width: 100%; aspect-ratio: 1; }
.pick strong { font-size: 12px; font-weight: 900; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick small { font-size: 10px; color: var(--muted); margin-top: -3px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick:hover:not(:disabled) { border-color: rgba(63, 224, 160, .5); }
.pick.off .pact { opacity: .4; }
.pick.on { border-color: var(--mint); background: rgba(63, 224, 160, .12); }
.pick.on::before { content: "✓"; position: absolute; z-index: 2; right: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #06110d; background: var(--mint); }
.pick .pact { --ps: 52px; margin: 2px 0; }
.pick.on .pact { box-shadow: inset 0 0 0 2px var(--mint), 0 0 12px rgba(63, 224, 160, .35); }
.pick .need { position: absolute; z-index: 2; left: 0; top: 0; font-size: 10px; font-weight: 900; color: #111; background: var(--amber); padding: 1px 5px; }
.pick .star { position: absolute; z-index: 2; left: 4px; top: 4px; font-family: var(--mono); font-size: 9px; font-weight: 800; color: #111; background: var(--star, #ccc); padding: 0 3px; }
.plate { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.plate > .thumb { width: 108px; height: 108px; }
.plate .tag-in.f { background: var(--mint); }
.plate .tag-in { position: absolute; left: 0; bottom: 0; font-size: 10px; font-weight: 900; color: #111; background: var(--text); padding: 1px 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-info { flex: 1 1 160px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.plate-info small { font-size: 11px; color: var(--muted); font-weight: 800; }
.plate-info strong { display: block; font-size: 18px; font-weight: 900; }
.plate-info p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.plate-info .row { display: flex; gap: 6px; flex-wrap: wrap; }
.roster-picker { margin-top: 10px; padding: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.roster-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.roster-tools .search { max-width: none; }
.roster-tools .count { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.roster-grid { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.more { grid-column: 1 / -1; height: 34px; border: 1px dashed var(--line-strong); font-size: 12px; font-weight: 800; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-size: 11px; font-weight: 800; color: var(--muted); }
.field > span b { font-family: var(--mono); font-weight: 700; float: right; }
.field input, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); font-size: 13px; }
.field textarea { min-height: 60px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .search:focus { outline: 1px solid var(--mint); }
.seg { display: flex; border: 1px solid var(--line-strong); width: fit-content; }
.seg button { height: 32px; padding: 0 12px; font-size: 12px; font-weight: 800; color: var(--muted); border-right: 1px solid var(--line-strong); }
.seg button:last-child { border-right: 0; }
.seg button.on { color: #06110d; background: var(--mint); }
.seg input[type="time"] { height: 32px; padding: 0 8px; font-size: 12px; color-scheme: dark; }
.suggest { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.suggest button { font-size: 11px; color: var(--muted); padding: 2px 7px; border: 1px dashed var(--line-strong); }
.suggest button:hover { color: var(--mint); border-color: var(--mint); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; font-size: 13px; font-weight: 800; background: #050908; border-left: 4px solid var(--mint); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .create-grid { grid-template-columns: 1fr; }
  .create-preview { border-left: 0; border-top: 1px solid var(--line); }
  .diff-tiles { grid-template-columns: repeat(2, 1fr); }
  .ak-brand, .ak-divider { display: none; }
  .ak-ticker { flex-wrap: wrap; }
  .ak-ticker .feed { flex-basis: 100%; border-top: 1px solid var(--line); }
  .hero-stats { position: relative; right: auto; top: auto; margin: 12px 0 0 26px; }
  .hero-banner { min-height: 400px; }
  .hero-target { top: auto; bottom: 128px; right: auto; left: 50%; }
}
@media (max-width: 640px) {
  .shell { padding: 0 14px; }
  .ak-back small, .ak-me small, .ak-back strong, .ak-me > span:last-child { display: none; }
  .ak-top-actions { min-width: 0; }
  .ak-toolbar { position: static; }
  .ak-me { padding: 0 4px; }
  .ak-primary { padding: 0 12px; font-size: 12px; }
  .hero-copy { padding: 18px 16px 0; gap: 12px; }
  .hero-logo { width: 60px; height: 54px; }
  .hero-title h1 { font-size: 24px; }
  .hero-title em { font-size: 18px; }
  .hero-sub { padding: 8px 16px 0; }
  .hero-stats { margin-left: 16px; }
  .search { max-width: none; }
  .picker.eight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-grid, .field-grid, .cover-table { grid-template-columns: 1fr 1fr; }
  .plate > .thumb { width: 84px; height: 84px; }
}

/* 盟约选择序号（放在 .pick.on::before 之后以覆盖 ✓） */
.pick.on[data-order]::before { content: attr(data-order); font-family: var(--mono); background: var(--text); }
.pick.on.first::before { background: var(--mint); }


/* ---------- 席位：「通行认证」亚克力挂件（照官方通行认证 53.0 实物） ---------- */
.seat.pass { --side: 15px; --block: 70px; position: relative; display: flex; flex-direction: column; align-items: center; background: none; border: 0; transform-origin: 50% -4px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ak-card:hover .seat.pass:nth-child(odd) { transform: rotate(-1.6deg); }
.ak-card:hover .seat.pass:nth-child(even) { transform: rotate(1.4deg); }
/* 三角登山扣：哑光黑 + 左侧弹簧门 + 底部横杆 */
.pass-clip { position: relative; z-index: 6; width: 24px; height: 22px; flex: none; margin-top: -8px; fill: none; stroke-linejoin: round; stroke-linecap: round; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.pass-clip .edge { stroke: #4a5250; stroke-width: 4.6; }
.pass-clip .body { stroke: #0c0d0d; stroke-width: 3.2; }
.pass-clip .gate { stroke: #aab3b0; stroke-width: 1.2; }
.pass-clip .bar { stroke: #8d9693; stroke-width: 1.4; }
/* 编织带：细密织纹 + 斜纹框 + 竖排 RHODES ISLAND，压在卡片上沿 */
.pass-strap { position: relative; z-index: 5; width: 24px; height: 40px; flex: none; margin: -4px 0 -13px; padding: 4px 3px 3px; display: grid; grid-template-columns: 7px 1fr; gap: 2px; align-items: start;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 2px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 2px), #0e0f0f;
  border-radius: 1px; box-shadow: 0 2px 4px rgba(0, 0, 0, .55); }
.pass-strap .hatch { width: 7px; height: 13px; background: repeating-linear-gradient(-58deg, #f4f4f2 0 1.1px, transparent 1.1px 2.5px); }
.pass-strap span { writing-mode: vertical-rl; font-family: Impact, "Arial Narrow", "Bahnschrift", sans-serif; font-size: 5px; letter-spacing: .2px; line-height: 1; color: #f4f4f2; white-space: nowrap; overflow: hidden; max-height: 33px; }
.seat.pass.is-host .pass-strap .hatch { background: repeating-linear-gradient(-58deg, var(--amber) 0 1.1px, transparent 1.1px 2.5px); }
.seat.pass.you .pass-strap .hatch { background: repeating-linear-gradient(-58deg, var(--mint) 0 1.1px, transparent 1.1px 2.5px); }
/* 米色布标：缝在织带右侧 */
.pass-label { position: absolute; z-index: 6; left: calc(50% + 12px); top: 21px; display: flex; align-items: center; gap: 2px; padding: 3px 1.5px; writing-mode: vertical-rl; font-family: var(--mono); font-size: 6.5px; font-weight: 800; letter-spacing: .4px; color: #3a3226; background: #ece4d1; border-radius: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.pass-label i { font-style: normal; font-size: 7px; line-height: 1; }
.seat.pass.is-host .pass-label { background: var(--amber); color: #1c1305; }
.seat.pass.you .pass-label { background: var(--mint); color: #06110d; }
/* 磨砂亚克力卡身 */
.pass-body { position: relative; z-index: 1; flex: 1; width: 100%; overflow: hidden; border-radius: 3px;
  background: linear-gradient(180deg, rgba(230, 244, 240, .17), rgba(230, 244, 240, .06) 70%, rgba(230, 244, 240, .1));
  -webkit-backdrop-filter: blur(5px) saturate(1.2); backdrop-filter: blur(5px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 18px rgba(0, 0, 0, .35); }
.seat.pass.you .pass-body { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), 0 0 0 2px var(--mint), 0 10px 18px rgba(0, 0, 0, .35); }
/* 左上阶梯角 */
.pass-corner { position: absolute; z-index: 5; left: 0; top: 0; width: 14px; height: 10px; background: #111; clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 40%, 50% 100%, 0 100%); }
/* 右上镭射角 + 挂孔 + 右侧黑轨 */
.pass-holo { position: absolute; z-index: 3; right: 0; top: 0; width: 5px; height: 15px; background: linear-gradient(180deg, #8fdcf6, #f2d43a 70%, #e9a93a); }
.pass-hole { position: absolute; z-index: 3; right: 7px; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: rgba(0, 0, 0, .45); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .55); }
.pass-rail { position: absolute; z-index: 3; right: 2px; top: 17px; bottom: calc(var(--block) - 2px); width: 1.5px; background: rgba(240, 246, 244, .7); }
.pass-rail::after { content: ""; position: absolute; left: -1px; top: 30%; width: 3.5px; height: 10px; background: rgba(240, 246, 244, .7); }
/* 第一志愿徽记：盟约色，放在干员身后上方 */
.pass-emblem { position: absolute; z-index: 1; left: calc(50% + var(--side) / 2); top: 7px; width: 44px; height: 44px; transform: translateX(-50%); background: color-mix(in srgb, var(--pc) 55%, #fff); opacity: .42;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.seat.pass .seat-op { z-index: 2; left: calc(50% + var(--side) / 2); bottom: calc(var(--block) - 1px); width: 96px; height: 96px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); }
/* 左侧白条：竖排用户 ID + 条码 + 镭射细线 */
.pass-side { position: absolute; z-index: 4; left: 0; top: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 4px; background: rgba(250, 251, 250, .86); box-shadow: 1px 0 0 rgba(0, 0, 0, .08); }
.pass-side::after { content: ""; position: absolute; right: -1px; bottom: 0; width: 2px; height: var(--block); background: linear-gradient(180deg, #e8505b, #f5c542 38%, #7fd6f5 72%, rgba(252, 252, 251, 0)); }
.pass-spine { flex: 1; min-height: 0; writing-mode: vertical-rl; text-orientation: mixed; font-family: "Bahnschrift", "Arial Narrow", var(--cjk); font-size: 10.5px; font-weight: 900; letter-spacing: .6px; line-height: 1; color: #121313; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-side .barcode { flex: none; width: 10px; height: 24px; background: repeating-linear-gradient(180deg, #121313 0 1px, transparent 1px 2px, #121313 2px 4px, transparent 4px 5px, #121313 5px 5.6px, transparent 5.6px 7px); }
/* 底部盟约色块：右上缺角 + 水印徽记 */
.pass-block { position: absolute; z-index: 3; left: var(--side); right: 0; bottom: 0; height: var(--block); display: flex; flex-direction: column; padding: 7px 4px 3px 5px; color: #fff; overflow: hidden;
  background: linear-gradient(165deg, color-mix(in srgb, color-mix(in srgb, var(--pc) 82%, #fff) 88%, transparent), color-mix(in srgb, var(--pc) 90%, transparent) 42%, color-mix(in srgb, color-mix(in srgb, var(--pc) 72%, #000) 94%, transparent));
  clip-path: polygon(0 4px, calc(100% - 12px) 4px, calc(100% - 8px) 0, 100% 0, 100% 100%, 0 100%); }
.pass-block::before { content: ""; position: absolute; right: 0; top: 0; width: 8px; height: 2px; background: rgba(240, 246, 244, .8); }
.pass-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, transparent 0 58%, rgba(255, 255, 255, .22) 58% calc(58% + .6px), transparent calc(58% + .6px)); pointer-events: none; }
.pass-block .mark { position: absolute; right: -12px; bottom: -10px; width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 5px rgba(255, 255, 255, .05); }
.pass-block .mark::before { content: ""; position: absolute; inset: 7px; background: rgba(255, 255, 255, .16); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.pass-title { position: relative; display: block; font-family: Impact, "Arial Narrow", "Bahnschrift", sans-serif; font-size: 11px; font-weight: 400; letter-spacing: .3px; line-height: 1; white-space: nowrap; overflow: hidden; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.pass-rule { position: relative; display: block; height: 3px; margin: 2px 0 1px; border-top: 1px solid rgba(255, 255, 255, .8); border-bottom: 1px solid rgba(255, 255, 255, .35); }
.pass-micro { position: relative; font-size: 6.5px; font-weight: 700; letter-spacing: .3px; line-height: 1.2; color: rgba(255, 255, 255, .86); white-space: nowrap; overflow: hidden; }
.pass-meta { position: relative; display: flex; align-items: center; gap: 2px; min-height: 14px; margin-top: auto; }
.pass-meta .seat-pacts { margin: 0; height: 14px; gap: 2px; --ps: 14px; }
.pass-meta .pact { background: rgba(10, 12, 12, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.pass-more { margin-left: 1px; font-family: var(--mono); font-size: 7.5px; font-weight: 800; color: #fff; }
.pass-foot { position: relative; display: flex; align-items: center; gap: 3px; margin-top: 3px; }
.pass-foot .prof { display: grid; place-items: center; width: 12px; height: 12px; flex: none; font-size: 8px; font-weight: 900; line-height: 1; color: #121313; background: #fbfbfa; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pass-foot .serial, .seat.pass.open .serial { font-family: var(--mono); font-size: 6.5px; font-weight: 800; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.pass-foot .tick { margin-left: auto; width: 9px; height: 7px; flex: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 1px, transparent 1px 2px, rgba(255, 255, 255, .85) 2px 3.5px, transparent 3.5px 4.5px); }
/* 空位：空挂扣 + 虚线卡 */
.seat.pass.open .pass-clip .body { stroke: #26302d; }
.seat.pass.open .pass-clip .edge, .seat.pass.open .pass-clip .gate, .seat.pass.open .pass-clip .bar { stroke: #3e4b47; }
.seat.pass.open .pass-strap { background: #1c2523; box-shadow: none; }
.seat.pass.open .pass-strap .hatch { background: repeating-linear-gradient(-58deg, #3a4743 0 1.1px, transparent 1.1px 2.5px); }
.seat.pass.open .pass-strap span { color: #3a4743; }
.seat.pass.open .pass-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tone) 7%, transparent) 0 6px, transparent 6px 12px); border: 1px dashed color-mix(in srgb, var(--tone) 50%, transparent); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--muted); }
.seat.pass.open .pass-body b { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--tone) 60%, transparent); border-radius: 50%; color: var(--tone); font-size: 16px; font-weight: 400; }
.seat.pass.open .pass-body small { font-size: 10px; font-weight: 700; }
.seat.pass.open .serial { position: absolute; bottom: 4px; right: 5px; color: var(--muted); }
@media (max-width: 640px) {
  .card-hero { padding: 0 4px; gap: 6px; }
  .seat.pass { --side: 13px; }
  .ak-card { padding-left: 18px; }
  .card-side { width: 18px; gap: 6px; }
  .card-side b { font-size: 11px; }
  .card-side span { font-size: 7.5px; letter-spacing: 2px; }
  .card-side i { width: 9px; }
  .pass-spine { font-size: 9.5px; }
  .pass-foot .tick { display: none; }
  .hero-lineup .walker { width: 104px; height: 104px; }
}

