:root {
  --bg0: #1a2332;
  --bg1: #243447;
  --ink: #f2efe8;
  --muted: #9db0c4;
  --accent: #e8a838;
  --accent2: #3dbf9a;
  --danger: #e35d6a;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --font-display: "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #35506e 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #4a3a22 0%, transparent 50%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
}

body { padding: 24px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0 0 8px; }
p { color: var(--muted); margin: 0 0 12px; }

.shell { max-width: 980px; margin: 0 auto; }
.brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.sub { margin-bottom: 28px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
input, select, button, textarea {
  font: inherit;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--ink);
  padding: 10px 12px;
}
button {
  cursor: pointer;
  background: linear-gradient(180deg, #f0c066, var(--accent));
  color: #1a1408;
  border: none;
  font-weight: 700;
}
button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
}
button.danger { background: linear-gradient(180deg, #f08a94, var(--danger)); color: #fff; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.game-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,0.18);
}
.game-item h3 { font-size: 1.35rem; }
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent2);
  border: 1px solid rgba(61,191,154,0.35);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 8px;
  margin-right: 6px;
}
.tag.bots {
  color: var(--accent);
  border-color: rgba(232,168,56,0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  vertical-align: middle;
}
.tag.bots svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}

.props { position: fixed; right: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 20; }
.prop-fx {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -20%) scale(0.6);
  opacity: 0;
  font-size: 2rem;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
  z-index: 50;
  text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.prop-fx.show {
  transform: translate(-50%, -80%) scale(1.2);
  opacity: 1;
}

.board {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.card-btn {
  min-height: 64px;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  border: 1px solid var(--line);
}
.msg { min-height: 1.4em; color: var(--accent); }
.hidden { display: none !important; }
