:root{
  --bg:#0b0f17;
  --panel:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#60a5fa;
  --danger:#ef4444;
  --ok:#22c55e;
  --board-tile:#ffe699;
  --line:#000000;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, #111827 0%, var(--bg) 60%);
  color:var(--text);
}
a{color:inherit}
.page{
  min-height:100%;
  display:flex;
  flex-direction:column;
}
.container{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}
.topbar{
  padding:18px 0 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}
.topbar .row{
  display:flex;
  align-items:baseline;
  gap:12px;
  justify-content:space-between;
}
.titleBlock{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}
.puzzleTitle{
  font-size:18px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.designer{
  font-size:13px;
  color:var(--muted);
  white-space:nowrap;
}
.designer .solvedMeta{
  margin-left:10px;
  color:var(--ok);
  font-weight:700;
}
.brandTitle{
  font-size:44px;
  font-weight:900;
  letter-spacing:.5px;
  margin:20px 0 6px;
}
.subtitle{
  color:var(--muted);
  line-height:1.7;
  margin:0 0 18px;
}
.panel{
  background: rgba(17,24,39,.78);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.btn{
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(96,165,250,.18), rgba(96,165,250,.08));
  color:var(--text);
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:700;
  text-decoration:none;
  appearance:none;
}
.btn:hover{border-color:rgba(96,165,250,.6)}
.btn.secondary{
  background: rgba(255,255,255,.04);
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.input{
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.input:focus{border-color:rgba(96,165,250,.7)}
.footer{
  margin-top:auto;
  padding:18px 0 24px;
  color:rgba(229,231,235,.75);
  font-size:12px;
  line-height:1.6;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
}
.footer .muted{color:rgba(229,231,235,.55)}
.footer a{color:rgba(229,231,235,.85); text-decoration:none;}
.footer a:hover{text-decoration:underline;}
.footer .beianRow{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.footer .mpsLink{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.footer .mpsIcon{width:18px;height:18px;display:inline-block;flex:0 0 auto;}
.kv{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.kv .hint{color:var(--muted); font-size:13px}
.status{
  min-height:22px;
  margin:0 0 8px;
  font-weight:800;
}
.status.err{color:var(--danger)}
.status.ok{color:var(--ok)}

