/* 英雄照・接後端版的增補（底層樣式沿用 photo.css） */
.hud .back { width: 30px; font-size: 30px; line-height: 1; color: #ffe2a0; text-shadow: 0 2px 6px #000; }
.hud .wm { margin-right: auto; }

/* 劍光＝進度：左側一道直立金線，走到哪一步亮到哪 */
.sword { position: absolute; left: 7px; top: 70px; bottom: 30px; width: 3px; z-index: 4; background: rgba(217,177,92,.18); }
.sword i { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--p, 0) * 1%); background: linear-gradient(180deg, #fff6da, #d9b15c); box-shadow: 0 0 10px rgba(255,214,130,.9); transition: height 1.2s cubic-bezier(.2,1,.3,1); }
.sword i::after { content: ""; position: absolute; left: -4px; bottom: -6px; width: 11px; height: 11px; transform: rotate(45deg); background: #fff3d0; box-shadow: 0 0 14px #ffd98a; }

.link.dim { color: rgba(245,234,208,.55); }
.booths { display: flex; gap: 18px; margin-top: 26px; }
.booths button { width: 128px; height: 180px; display: grid; place-content: center; gap: 6px; border: 14px solid transparent; border-image: url(assets/gen/c-card-front.png) 84 fill / 14px stretch; filter: drop-shadow(0 10px 16px rgba(0,0,0,.7)); transition: transform .15s; animation: dealin .6s cubic-bezier(.2,1.2,.4,1) both; }
.booths button:nth-child(2) { animation-delay: .1s; }
.booths button:active { transform: translateY(3px) scale(.97); }
.booths .num { font-size: 66px; color: #ffe2a0; text-shadow: 0 0 16px rgba(255,200,90,.6); line-height: 1; }
.booths span { font-size: 15px; }
.code-in { width: 262px; height: 64px; margin-top: 26px; text-align: center; font: 700 30px/1 "Didot", "Bodoni 72", serif; letter-spacing: .2em; text-transform: uppercase; color: #ffe7b0; background: rgba(0,0,0,.55); border: 12px solid transparent; border-image: url(assets/gen/c-card-front.png) 84 fill / 12px stretch; outline: none; }
.code-in::placeholder { font: 16px "Songti TC", serif; letter-spacing: .2em; color: rgba(245,234,208,.45); }

/* 組隊碼卡 */
.jc { width: 290px; margin-top: 14px; padding: 14px 12px 12px; display: grid; gap: 4px; border: 14px solid transparent; border-image: url(assets/gen/c-card-front.png) 84 fill / 14px stretch; animation: dealin .7s cubic-bezier(.2,1.2,.4,1) both; }
.jc small { font-size: 12px; letter-spacing: .25em; color: #d9b15c; }
.jc .num { font-size: 40px; letter-spacing: .14em; color: #ffe7b0; text-shadow: 0 0 14px rgba(255,200,90,.55); }
.jc span { font-size: 12px; color: rgba(245,234,208,.75); }
.jc.locked .num { font-size: 26px; letter-spacing: .06em; }
.squad li .st { margin-left: auto; display: grid; gap: 3px; text-align: right; font-size: 12px; }
.squad li .st i { width: auto; height: auto; background: none; box-shadow: none; font-style: normal; color: #bfe8a8; }
.squad li .st i.no { color: rgba(245,234,208,.5); }
.squad li.self { box-shadow: 0 0 16px rgba(255,214,130,.35); }
.squad li i.nocos { background-size: cover; background-position: center; opacity: .8; }
.squad li.empty { opacity: .55; } .squad li.empty i { background: url(assets/gen/c-card-back.png) center / cover; }
.squad li.ping { animation: dealside .5s cubic-bezier(.2,1.2,.4,1) both, glow 1.2s ease-out; }
@keyframes glow { 30% { filter: drop-shadow(0 0 16px rgba(255,220,130,.95)); } }
.next { display: grid; justify-items: center; }
.next .btn { margin-top: 14px; }
.next .wait { margin-top: 16px; font-size: 15px; color: rgba(245,234,208,.85); }

/* 同意 */
.purposes { list-style: none; width: 300px; margin-top: 18px; display: grid; gap: 8px; text-align: left; }
.purposes li { padding: 9px 12px 9px 40px; position: relative; font-size: 14px; line-height: 1.5; color: rgba(245,234,208,.85); border: 9px solid transparent; border-image: url(assets/gen/c-card-front.png) 84 fill / 9px stretch; }
.purposes li::before { content: ""; position: absolute; left: 12px; top: 15px; width: 11px; height: 11px; transform: rotate(45deg); background: #d9b15c; box-shadow: 0 0 8px rgba(255,214,130,.8); }
.purposes b { display: block; font-size: 16px; color: #ffe7b0; }
.purposes li.opt::before { display: none; }
.purposes label { display: block; cursor: pointer; }
.purposes input { position: absolute; left: 10px; top: 14px; width: 16px; height: 16px; accent-color: #d9b15c; }

/* 製作 */
.forge .ring, .flash-ring { mix-blend-mode: normal; border-radius: 50%; -webkit-mask: radial-gradient(closest-side, #000 90%, transparent 99%); mask: radial-gradient(closest-side, #000 90%, transparent 99%); }
.steps li.bad::before { background: #e08a6a; border-color: #e08a6a; }
.m-msg { min-height: 52px; }
.s-making.unknown .cardback { animation-duration: 4.8s; filter: grayscale(.4); }

.num-card .q-code { font-size: 46px; letter-spacing: .02em; }
.num-card .front { padding: 0 6px; }
.num-card .who { display: block; max-width: 160px; margin: 0 auto; line-height: 1.5; }
.post .photo { object-fit: cover; }
a.btn { display: grid; }
.code-card .p-code { font-size: 34px; letter-spacing: .06em; white-space: nowrap; }

/* 斷線遮罩（與答題頁一致） */
.net { position: absolute; inset: 0; z-index: 50; display: none; place-content: center; text-align: center; background: rgba(0,0,0,.72); }
.net.show { display: grid; }
.net .spin { width: 60px; height: 90px; margin: 0 auto 18px; border-radius: 5px; background: url(assets/gen/c-card-back.png) center / 100% 100%; animation: spinY 1.1s linear infinite; }
@keyframes spinY { to { transform: rotateY(360deg); } }
.net p { font-size: 16px; }
.busy { opacity: .6; pointer-events: none; }

/* 撤回同意 */
.wd { margin-top: 10px; font-size: 13px; }
.wdlist li::before { background: #e08a6a; box-shadow: 0 0 8px rgba(224,138,106,.8); }
.s-withdrawn .num-card { filter: grayscale(.85) brightness(.7); }
.s-withdrawn .num-card .front b { font-size: 22px; }
.post .photo.off { visibility: hidden; }
.post .gone-note { position: absolute; inset: 0; display: none; place-content: center; padding: 20px; text-align: center; font-size: 14px; line-height: 1.6; color: #f5ead0; }
.post.nophoto .gone-note { display: grid; }
