/* LOBI 网页版：和小程序同一套深夜蓝 + 品牌黄 */
:root {
  --bg: #1E1B3A;
  --card: #2A2650;
  --line: #3A3566;
  --chip: #332E5E;
  --text: #F2F3F5;
  --muted: #A9A4C9;
  --soft: #D3CFEA;
  --yellow: #FFD84D;
  --pink: #FF8FB1;
  --red: #E8552F;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: 15px; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; }
.brand img { height: 40px; display: block; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a.on { color: var(--yellow); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 8px 0; }
.link:hover { color: var(--text); }

.container { max-width: 720px; margin: 0 auto; padding: 24px 20px 64px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 14px; }
h1 { font-size: 26px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 28px 0 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.card.click { cursor: pointer; transition: border-color .15s; }
.card.click:hover, .card.click:focus-visible { border-color: var(--yellow); outline: none; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.btn { background: var(--yellow); color: var(--bg); border: 0; border-radius: 12px; font-weight: 800;
  font: inherit; font-weight: 800; padding: 0 18px; min-height: 44px; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.big { width: 100%; min-height: 52px; font-size: 16px; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--card); color: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; cursor: pointer; min-height: 38px; }
.pill.on { background: var(--yellow); color: var(--bg); border-color: var(--yellow); font-weight: 700; }
.pill.small { padding: 5px 11px; font-size: 13px; min-height: 32px; }

.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 12px 0; }
.tab { background: none; border: 0; color: var(--muted); font: inherit; padding: 8px 14px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--yellow); font-weight: 700; border-bottom-color: var(--yellow); }

.need { background: var(--yellow); color: var(--bg); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.need.full { background: var(--line); color: var(--muted); }
.tag { display: inline-block; background: var(--chip); color: var(--soft); font-size: 12px; padding: 4px 8px; border-radius: 6px; margin: 0 6px 0 0; }
.tag.server { color: var(--yellow); border: 1px solid var(--yellow); background: transparent; }
.badge { font-size: 11px; color: var(--bg); background: var(--pink); padding: 1px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; font-weight: 700; }
.badge.mine { background: var(--yellow); }
.game { font-size: 18px; font-weight: 800; }
.note { margin: 14px 0; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

label { display: block; font-weight: 700; margin: 18px 0 8px; }
input, select, textarea { width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font: inherit; min-height: 46px; }
input::placeholder, textarea::placeholder { color: #8A85AD; }
input:focus, select:focus, textarea:focus, .pill:focus-visible, .btn:focus-visible, .tab:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
textarea { min-height: 90px; resize: vertical; }
.hint { color: #8A85AD; font-size: 12px; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; }

.info { display: flex; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info .k { width: 90px; color: var(--muted); flex: none; }
.member { display: flex; align-items: center; gap: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-weight: 900; flex: none; }
.grow { flex: 1; min-width: 0; word-break: break-all; }
.danger-link { display: block; margin: 28px auto 0; color: var(--muted); text-decoration: underline; }
.joined { text-align: center; color: var(--yellow); font-weight: 700; margin: 20px 0; }
.rank-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.rank-row select { width: 160px; }

.login { max-width: 400px; margin: 40px auto; }
.login .logo { display: block; height: 72px; margin: 0 auto 8px; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: #000c; color: #fff;
  padding: 10px 18px; border-radius: 10px; z-index: 20; max-width: 90vw; }

@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .brand img { height: 32px; }
}
