* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: radial-gradient(1200px 800px at 50% 20%, #0e3a2c 0%, #071d16 55%, #04110c 100%);
  color: #f3e7c8;
  overflow: hidden;
}

.view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 20px; }
.hidden { display: none !important; }

/* 登录 */
#loginView { align-items: center; justify-content: center; gap: 18px; }
.brand { font-size: 44px; letter-spacing: 6px; color: #f0c869; text-shadow: 0 2px 0 #6b4b11, 0 0 30px rgba(240,200,105,.35); }
.brand small { font-size: 14px; letter-spacing: 2px; color: #9fb7a8; }
#loginForm { width: 320px; display: flex; flex-direction: column; gap: 12px; }
input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(240,200,105,.35);
  background: rgba(0,0,0,.35); color: #f3e7c8; font-size: 16px; outline: none;
}
input:focus { border-color: #f0c869; box-shadow: 0 0 0 3px rgba(240,200,105,.15); }
button {
  padding: 14px 18px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(180deg, #f6d98a, #d6a83f);
  color: #3a2503; font-size: 17px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 6px 0 #8a6416, 0 8px 18px rgba(0,0,0,.4);
  transition: transform .08s;
}
button:active { transform: translateY(3px); box-shadow: 0 3px 0 #8a6416; }
button.ghost { background: transparent; border: 1px solid rgba(240,200,105,.5); color: #f0c869; box-shadow: none; font-size: 14px; }
.hint { color: #8aa896; font-size: 13px; }
.err { color: #ff8b7a; font-size: 14px; min-height: 18px; margin: 0; }

/* 大厅 */
#lobbyView header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.me { display: flex; align-items: baseline; gap: 14px; }
.me b { font-size: 20px; color: #f0c869; }
.me span { color: #9fb7a8; font-size: 14px; }
.me em { color: #6fe3a8; font-style: normal; font-weight: 700; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel {
  background: rgba(8, 32, 24, .72); border: 1px solid rgba(240,200,105,.18);
  border-radius: 16px; padding: 16px;
}
.panel.wide { margin-top: 14px; flex: 1; overflow: auto; }
.panel h3 { margin: 0 0 12px; color: #f0c869; font-size: 17px; letter-spacing: 2px; }
.panel label { display: block; font-size: 13px; color: #9fb7a8; margin-bottom: 10px; }
.panel label input { margin-top: 6px; }
.panel button { width: 100%; margin-top: 4px; }
.msg { font-size: 13px; color: #6fe3a8; min-height: 18px; margin: 8px 0 0; word-break: break-all; }
#roomList { list-style: none; margin: 0; padding: 0; }
#roomList li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 8px; border-bottom: 1px solid rgba(240,200,105,.1); font-size: 14px;
}
#roomList li b { color: #f0c869; letter-spacing: 1px; }
#roomList li button { width: auto; padding: 8px 14px; font-size: 13px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(111,227,168,.15); color: #6fe3a8; }

/* 横屏提示 */
#rotate { display: none; }

@media (orientation: portrait) and (max-width: 900px) {
  #rotate {
    display: flex; position: fixed; inset: 0; z-index: 99;
    background: #04110c; color: #f0c869; align-items: center; justify-content: center;
    font-size: 18px; letter-spacing: 2px;
  }
}

.quick {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 200, 105, .2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick input { width: 100%; }

.switch { margin: 12px 0 0; color: #9fbfae; font-size: 13px; text-align: center; }
.switch a { color: #f0c869; text-decoration: none; }
