/* 大厅 / 房间 */
.lobby { position: relative; z-index: 0; isolation: isolate; height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px 120px; }
.lb-bg { position: fixed; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.35) 40%, rgba(10,10,12,.92) 100%),
  radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0,0,0,.7) 100%),
  url('../img/lobby_bg.webp') center 30% / cover no-repeat, #111;
  animation: lbzoom 40s ease-in-out infinite alternate; }
@keyframes lbzoom { to { transform: scale(1.06); } }
.lb-card { width: min(520px, 100%); padding: 26px 34px 24px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, rgba(36,39,44,.94), rgba(22,24,27,.96)); backdrop-filter: blur(4px); }
.lb-logo { height: 128px; background: url('../img/logo_zh.webp') center / contain no-repeat; filter: drop-shadow(0 8px 18px rgba(0,0,0,.7)); margin: -6px 0 0; }
.lb-logo.sm { width: 120px; height: 58px; margin: 0; flex: none; }
.lb-sub { text-align: center; color: var(--dim); font-size: 13px; letter-spacing: .14em; margin-top: -6px; }
.lb-row { display: flex; gap: 8px; align-items: center; }
.lb-name { background: #0c0d0f; border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 14px; }
.lb-name span { color: var(--hazard); font-size: 13px; white-space: nowrap; }
.lobby input { flex: 1; min-width: 0; background: #0c0d0f; color: var(--txt); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 15px; outline: none; }
.lb-name input { border: none; background: transparent; }
.lobby input:focus { border-color: var(--hazard); }
.lb-create { width: 100%; margin-top: 4px; }
.lb-or { display: flex; align-items: center; gap: 10px; color: var(--dim2); font-size: 12px; margin-top: 6px; }
.lb-or::before, .lb-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.lb-join input { font-family: var(--num); font-size: 20px; letter-spacing: .3em; text-align: center; }
.lb-hs .btn { flex: 1; }
.lb-recent { font-size: 12.5px; color: var(--dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lb-foot { color: var(--dim2); font-size: 12px; text-align: center; margin-top: 4px; }
.lb-mechs { position: fixed; bottom: -8px; left: 0; right: 0; display: flex; justify-content: center; gap: min(8vw, 90px); pointer-events: none; z-index: -1; }
.lb-mechs img { width: min(17vw, 150px); filter: drop-shadow(0 10px 18px rgba(0,0,0,.8)); animation: mechbob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.8s); opacity: .92; }
@keyframes mechbob { 50% { transform: translateY(-8px) rotate(-1deg); } }

.room .rm-wrap { width: min(980px, 100%); display: flex; flex-direction: column; gap: 16px; }
.rm-head { display: flex; align-items: center; gap: 20px; padding: 16px 22px; flex-wrap: wrap; }
.rm-title { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 260px; }
.rm-h { font-size: 22px; color: var(--hazard); }
.rm-code { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.rm-code span { font-size: 12px; margin-bottom: 4px; }
.rm-code b { font-size: 46px; color: var(--hazard); letter-spacing: .14em; font-weight: 400; text-shadow: 0 0 20px rgba(246,194,28,.35); }
.rm-link { display: flex; gap: 6px; flex: 1; min-width: 280px; }
.rm-link input { font-size: 13px; color: var(--dim); }
.rm-seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.seat { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #24272c, #17191c); padding: 14px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 250px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.seat-glow { position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--pc) 45%, transparent), transparent 70%); opacity: .35; }
.seat.taken .seat-glow { opacity: .8; }
.seat-mech { width: 82%; max-width: 170px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.8)); position: relative; transition: transform .3s; }
.seat.free .seat-mech { filter: grayscale(.85) brightness(.55) drop-shadow(0 8px 12px rgba(0,0,0,.8)); }
.seat.take { cursor: pointer; } .seat.take:hover { transform: translateY(-4px); border-color: var(--pc); } .seat.take:hover .seat-mech { filter: none; transform: scale(1.05); }
.seat.mine { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc), 0 0 24px color-mix(in srgb, var(--pc) 35%, transparent); }
.seat.taken .seat-mech { animation: mechbob 3s ease-in-out infinite; }
.seat-info { position: relative; text-align: center; }
.seat-mn { font-size: 19px; color: var(--pc); }
.seat-en { font-family: var(--num); font-size: 11px; color: var(--dim2); letter-spacing: .2em; }
.seat-pl { margin-top: 8px; font-size: 14px; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.seat-pl .you { color: var(--hazard); font-weight: 400; }
.rm-name { width: min(360px, 100%); margin: 0 auto 14px; }
.rm-foot { display: flex; gap: 12px; justify-content: center; align-items: center; }
@media (max-width: 760px) {
  .rm-seats { grid-template-columns: repeat(2, 1fr); }
  .seat { min-height: 200px; }
  .lb-card { padding: 20px 18px; }
  .lb-logo { height: 96px; }
  .rm-code b { font-size: 36px; }
}

/* 单人挑战 */
.lb-solo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.solo-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px 7px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 18%, #23262b), #17191c); color: var(--txt); transition: transform .15s, border-color .15s; }
.solo-btn:hover { transform: translateY(-2px); border-color: var(--pc); }
.solo-btn img { width: 54px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 4px #000); }
.solo-btn b { font-family: var(--zh); font-weight: 400; font-size: 13px; }
.solo-btn .bot-stars { font-size: 12px; }
.rm-solo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.rm-vs { align-self: center; font-family: var(--num); font-size: 44px; color: var(--hazard); text-shadow: 0 0 20px rgba(246,194,28,.4); }
.rm-solo .seat { min-height: 300px; }
.rm-bot-note { font-size: 12.5px; color: var(--dim); line-height: 1.6; text-align: left; max-width: 300px; }
.rm-colors { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.rm-colors .btn.on { border-color: var(--pc); color: var(--pc); }
@media (max-width: 760px) { .lb-solo { grid-template-columns: repeat(2, 1fr); } .rm-solo { grid-template-columns: 1fr; } .rm-vs { text-align: center; font-size: 30px; } }
.rm-note-ph { display: none; }
@media (max-width: 760px) { .rm-note-ph { display: block; max-width: none; text-align: center; padding: 0 6px; } }
