:root {
  color-scheme: dark;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  color: #e9e0cb;
  background: #17231f;
  --ink: #e9e0cb;
  --muted: #bfb5a0;
  --line: #685b43;
  --panel: #24332c;
  --gold: #e9bd76;
}
* { box-sizing:border-box }
body { margin:0; }
[hidden] { display:none !important }
button,input { font:inherit; font-size:.95rem; border:1px solid var(--line); border-radius:6px; color:var(--ink); }
button { padding:.58rem .9rem; background:#334437; cursor:pointer; min-height:42px; }
button:hover:not(:disabled) { border-color:var(--gold); }
button:disabled { opacity:.5; cursor:default; }
.accent { background:var(--gold); color:#21180f; border-color:transparent; font-weight:650; }
input { display:block; width:100%; padding:.64rem; background:#192821; margin-top:.3rem; min-height:42px; }
input:focus,button:focus-visible,a:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
label { display:block; margin-bottom:.8rem; color:var(--muted); }
a { color:var(--gold); }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:"Songti SC","Noto Serif CJK SC",Georgia,serif; }
h1 { margin-bottom:0; margin-top:.45rem; font-size:clamp(2.1rem,5vw,3rem); }
h2 { margin-bottom: .9rem; }
h3 { margin-bottom:.6rem; }
p { color:var(--muted); line-height:1.55; }
.mast,main { max-width:1000px; padding-inline:clamp(.9rem,4vw,1.7rem); margin-inline:auto; }
.mast { display:flex; align-items:end; justify-content:space-between; gap:1rem; padding-block:1.3rem .65rem; }
.identity,.room-heading,.room-actions,.row { display:flex; gap:.7rem; align-items:center; flex-wrap:wrap; }
.room-heading { justify-content:space-between; margin-bottom:.8rem; }
.room-heading h2,.room-heading p,.row label { margin-bottom:0; }
.room-heading strong { color:var(--gold); font-variant-numeric:tabular-nums; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:clamp(1rem,3vw,1.5rem); margin-bottom:1rem; }
.notice:empty { display:none }
.notice { color:#ffda9b; margin-block:.6rem; }
.auth-grid,.modes,.orders { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; }
.auth-grid form,.modes>div,.order { padding:1rem; background:#1b2923; border:1px solid #514b3a; border-radius:8px; }
.auth-grid form p { margin:.55rem 0 0; }
.row { align-items:end; margin-top:1rem; }
.row input { width:min(100%,22rem); }
#join input { width:12ch; text-transform:uppercase; }
.people { padding:0; display:flex; flex-wrap:wrap; gap:.4rem; list-style:none; }
.people li { padding:.38rem .7rem; border-radius:999px; background:#35443a; }
.orders:not(:empty) { margin-top:.7rem; }
.order p { margin-bottom:.65rem; }
.order .options { display:flex; gap:.42rem; flex-wrap:wrap; }
.order .options button { padding-inline:.65rem; }
.rankings ol { padding-inline-start:1.5rem; margin-bottom:0; }
.rankings li { padding:.4rem 0; overflow-wrap:anywhere; }
.stats { display:grid; grid-template-columns: auto 1fr; gap:.4rem 1rem; }
.stats dd { margin:0; color:var(--gold); }
@media (max-width:640px) {
  .auth-grid,.modes,.orders { grid-template-columns:minmax(0,1fr); gap:.68rem; }
  .mast { align-items:center; }
}

.cloud-slots { list-style:none; padding:0; margin:.7rem 0 0; display:grid; gap:.5rem }
.cloud-slots li { display:flex; justify-content:space-between; align-items:center; gap:.8rem; flex-wrap:wrap;
  background:#1b2923; border:1px solid #514b3a; border-radius:8px; padding:.75rem }
.cloud-slots small { display:block; color:var(--muted); line-height:1.5 }
.cloud-slots .actions { display:flex; gap:.5rem; flex-wrap:wrap }
