* { box-sizing: border-box; }
:root { --gold: #d8b25e; --line: #2c2922; --text: #ece5d6; --mute: #9b9487; --faint: #6b655b; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1000px 600px at 18% 0%, #241c11 0%, #0b0a09 55%, #080808 100%);
  color: var(--text); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.rooms-top {
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 28px;
  border-bottom: 1px solid #1d1a16; background: rgba(10,9,8,.72);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand .mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(216,178,94,.5); border-radius: 7px; color: var(--gold); font: 600 15px Georgia, serif; }
.brand b { font-size: 14px; letter-spacing: .08em; }
.brand i { font: 8px ui-monospace, Consolas, monospace; letter-spacing: .3em; color: var(--faint); font-style: normal; margin-left: 2px; }
.spacer { flex: 1; }
.who { font-size: 12px; color: var(--mute); }
.ghost, .gold { height: 32px; padding: 0 12px; border-radius: 7px; cursor: pointer; font-size: 12px; }
.ghost { border: 1px solid #322d25; background: transparent; color: #a79d8b; }
.ghost:hover { color: var(--gold); border-color: rgba(216,178,94,.4); }
.gold { border: 0; background: linear-gradient(180deg, #e2c176, #cfa952); color: #241a08; font-weight: 600; }
.gold:hover { filter: brightness(1.04); }
.gold:disabled { opacity: .5; cursor: not-allowed; }

.rooms-main { max-width: 1080px; margin: 0 auto; padding: 46px 28px 70px; }
.rooms-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.kicker { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .2em; color: #b9a273; }
h1 { margin: 0 0 8px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 38px; font-weight: 600; letter-spacing: .04em; }
.sub { margin: 0; max-width: 520px; font-size: 12.5px; line-height: 1.8; color: var(--mute); }
.create-box { width: 360px; }
.create-box label { display: block; margin-bottom: 7px; font-size: 11px; color: var(--mute); }
.create-row { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.create-row input { height: 36px; padding: 0 11px; border-radius: 7px; border: 1px solid #332e26; background: #151311; color: var(--text); outline: none; font-size: 12.5px; }
.create-row input:focus { border-color: rgba(216,178,94,.6); }
.err { min-height: 16px; margin: 6px 0 0; font-size: 11px; color: #ff8a8a; }

.banner { margin: 26px 0 0; padding: 10px 13px; border: 1px solid rgba(216,178,94,.3); border-radius: 8px; background: rgba(216,178,94,.06); color: #d9c191; font-size: 12px; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 26px; }
.room-card {
  border: 1px solid #2a2721; border-radius: 12px; padding: 16px; background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008));
}
.room-card:hover { border-color: rgba(216,178,94,.3); }
.room-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.room-meta { display: flex; gap: 10px; flex-wrap: wrap; font: 10.5px ui-monospace, Consolas, monospace; color: var(--faint); }
.room-code { color: #d9c191; }
.room-actions { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.room-actions a, .room-actions button { height: 30px; padding: 0 10px; border-radius: 6px; font-size: 11.5px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.room-actions .enter { background: rgba(216,178,94,.1); border: 1px solid rgba(216,178,94,.4); color: #e0c583; }
.room-actions .copy { background: transparent; border: 1px solid #322d25; color: #a79d8b; }
.room-actions .copy:hover { color: var(--gold); }
.empty { margin-top: 40px; padding: 46px 20px; text-align: center; border: 1px dashed #312c24; border-radius: 12px; color: var(--mute); }
.empty b { display: block; margin-bottom: 7px; color: #d8cbb1; font-weight: 500; }
.empty span { font-size: 12px; }
@media (max-width: 760px) {
  .rooms-head { align-items: flex-start; }
  .create-box { width: 100%; }
  h1 { font-size: 30px; }
}
