/* 20261025p1 马桥幸福小镇 · 房子＝身份：名字后的小徽章、名片名望铭牌、进桌开场白、镇长、升级仪式、烟花、小镇快报 */
.tb-h { display: inline-block; font: 600 10px/1.5 system-ui, sans-serif; font-style: normal; color: #f3e0a6; background: rgba(90,55,20,.55); border: 1px solid rgba(212,166,58,.45); border-radius: 7px; padding: 0 4px; margin-left: 3px; vertical-align: middle; cursor: pointer; white-space: nowrap; letter-spacing: 0; }
.tb-h.mid { border-color: rgba(255,210,100,.75); }
.tb-h.hi { color: #fff2c4; background: linear-gradient(90deg, rgba(110,60,170,.65), rgba(40,90,170,.65)); border-color: rgba(200,170,255,.8); }
.tb-h:focus-visible { outline: 2px solid #ffd75e; outline-offset: 1px; }
.seat .tb-h, .tbl .tb-h { font-size: 9px; padding: 0 3px; }
@media (max-width: 420px) { .tb-h { font-size: 9px; padding: 0 3px; margin-left: 2px; } }
/* 名片：名望 + 铭牌 */
.tf-uc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; padding: 7px 10px; border-radius: 10px; background: rgba(90,55,20,.35); border: 1px solid rgba(212,166,58,.35); color: #f3e0a6; font-size: 13px; }
.tf-uc b { font: 700 14px "Noto Serif SC", serif; color: #ffe9a8; }
.tf-md, .tf-pq-c i { font-style: normal; font-size: 11px; color: #2f1a0a; background: #d4a63a; border-radius: 6px; padding: 0 5px; margin-right: 4px; }
.tf-lv { font-size: 12px; opacity: .85; }
.tf-my { font-size: 11px; color: #ffd75e; }
.tf-go { margin-left: auto; background: none; border: 1px solid rgba(243,224,166,.5); color: #f3e0a6; border-radius: 8px; padding: 2px 8px; font-size: 12px; }
.tf-pq-c { display: block; font: 700 13px "Noto Serif SC", serif; color: #7a3b12; margin-bottom: 2px; }
/* 我家：铭牌编辑 */
.tf-pq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.tf-pq label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 180px; font-size: 13px; }
.tf-pq input, .tf-ann input { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 8px; border: 1px solid #c9a45a; font-size: 14px; }
.tf-pq small { width: 100%; font-size: 11px; opacity: .7; }
.tf-pq .town-btn, .tf-ann .town-btn { width: auto; margin: 0; padding: 6px 12px; }
.tf-ann { display: flex; gap: 6px; margin: 6px 0 10px; }
.tf-h-cur { font-size: 14px; line-height: 1.6; }
.tf-legend { opacity: .85; }
/* 进桌开场白 */
.tf-open { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 64px); transform: translateX(-50%); z-index: 60; max-width: min(92vw, 520px); padding: 7px 14px; border-radius: 14px; background: rgba(40,22,8,.88); color: #fff3cf; font-size: 13px; line-height: 1.5; box-shadow: 0 4px 14px rgba(0,0,0,.35); animation: tf-in .3s ease-out; }
.tf-open span { color: #ffd75e; margin-right: 4px; }
.tf-open.out { opacity: 0; transition: opacity .4s; }
@keyframes tf-in { from { opacity: 0; transform: translate(-50%, -8px); } }
/* 小镇入口：本周镇长 */
.tf-mayor { position: absolute; left: 10px; top: calc(env(safe-area-inset-top, 0px) + 86px); display: flex; align-items: center; gap: 6px; max-width: 62vw; padding: 3px 10px 3px 3px; border-radius: 22px; border: 1px solid #ffd75e; background: rgba(110,20,10,.82); color: #ffe9a8; text-align: left; }
.tf-mayor img, .tf-mayor > i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; font-style: normal; display: grid; place-items: center; background: #2f1a0a; }
.tf-mayor span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tf-mayor em { font-style: normal; font-size: 10px; color: #ffd75e; }
.tf-mayor b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-mayor small { font-size: 11px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.town-ov:has(.town-pick) .tf-mayor { display: none; }
/* 升级仪式：脚手架 → 施工 → 剪彩 */
.tf-cer { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(0,0,0,.55); animation: tf-fade .25s ease-out; }
.tf-cer.out { opacity: 0; transition: opacity .25s; }
.tf-cer-in { text-align: center; color: #fff3cf; width: min(80vw, 340px); }
.tf-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.tf-house { position: absolute; left: 8%; bottom: 0; width: 84%; height: 92%; object-fit: contain; object-position: bottom; clip-path: inset(100% 0 0 0); animation: tf-rise 1.3s .45s ease-out forwards; }
.tf-scaf { position: absolute; left: 10%; right: 10%; bottom: 0; height: 88%; background: repeating-linear-gradient(90deg, rgba(200,150,80,.85) 0 3px, transparent 3px 26px), repeating-linear-gradient(0deg, rgba(200,150,80,.85) 0 3px, transparent 3px 30px); animation: tf-scaf 2s ease-in forwards; }
.tf-crane { position: absolute; right: 6%; top: 4%; width: 46%; height: 3px; background: #e8b23a; transform-origin: right center; animation: tf-crane 1.3s .2s ease-in-out 1 alternate; }
.tf-crane::after { content: ""; position: absolute; right: 0; top: 0; width: 4px; height: 70vh; max-height: 300px; background: #e8b23a; }
.tf-rib { position: absolute; left: 0; right: 0; bottom: 18%; height: 10px; display: flex; opacity: 0; animation: tf-show .1s 1.7s forwards; }
.tf-rib b { flex: 1; background: linear-gradient(#e33, #a00); animation: tf-cutl .6s 2.05s ease-in forwards; }
.tf-rib b + b { animation-name: tf-cutr; }
.tf-cer-t { font: 700 20px "Noto Serif SC", serif; color: #ffd75e; margin: 10px 0 2px; opacity: 0; animation: tf-show .3s 1.9s forwards; }
.tf-cer-s { font-size: 14px; margin: 0; opacity: 0; animation: tf-show .3s 2s forwards; }
.tf-skip { margin-top: 10px; background: none; border: 1px solid rgba(255,243,207,.5); color: #fff3cf; border-radius: 10px; padding: 3px 12px; font-size: 13px; }
.tf-cer.rm *, .tf-cer.rm { animation: none !important; }
.tf-cer.rm .tf-house { clip-path: none; } .tf-cer.rm .tf-scaf, .tf-cer.rm .tf-crane, .tf-cer.rm .tf-rib { display: none; } .tf-cer.rm .tf-cer-t, .tf-cer.rm .tf-cer-s { opacity: 1; }
@keyframes tf-fade { from { opacity: 0; } }
@keyframes tf-rise { to { clip-path: inset(0 0 0 0); } }
@keyframes tf-scaf { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tf-crane { from { transform: rotate(-8deg); } to { transform: rotate(6deg); } }
@keyframes tf-show { to { opacity: 1; } }
@keyframes tf-cutl { to { transform: translate(-40px, 40px) rotate(-25deg); opacity: 0; } }
@keyframes tf-cutr { to { transform: translate(40px, 40px) rotate(25deg); opacity: 0; } }
/* 全站烟花 */
.tf-fw { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 450; pointer-events: none; }
.tf-fw.rm { background: radial-gradient(circle at 50% 30%, rgba(255,215,94,.25), transparent 60%); }
/* 大厅小镇快报（在 #town-lobby 卡片里） */
.tf-news { margin-top: 8px; padding-top: 6px; border-top: 1px dashed rgba(212,166,58,.4); font-size: 12px; line-height: 1.6; }
.tf-news p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; } /* 20261025tv 一户一行，左对齐 */
.tf-news p.tf-n-more { font-size: 11px; opacity: .75; }
.tf-n-h { font: 700 13px "Noto Serif SC", serif; color: #d4a63a; }
@media (prefers-reduced-motion: reduce) { .tf-open, .tf-cer { animation: none; } }
