:root {
  --bg: #0f1419;
  --card: #1a222c;
  --text: #e8eef5;
  --muted: #9aa8b6;
  --accent: #3dd68c;
  --danger: #e35d6a;
  --line: #2a3542;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1b2a22, var(--bg));
  color: var(--text);
  min-height: 100vh;
}
.top, main, .site-nav { max-width: 980px; margin: 0 auto; padding: 1.25rem; }
.top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  padding-top: 0;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .4rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); }
a { color: var(--accent); }
.about-list, .legal ul { line-height: 1.55; }
.legal h2 { margin-top: 1.2rem; }
.mono { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
h1, h2 { margin: 0 0 .4rem; }
.sub, .muted { color: var(--muted); }
.card {
  background: color-mix(in srgb, var(--card) 92%, black);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.hidden { display: none !important; }
.auth-box { display: flex; gap: .5rem; align-items: center; }
button, .button {
  border: 0;
  border-radius: 10px;
  padding: .55rem .9rem;
  background: var(--accent);
  color: #062416;
  font-weight: 650;
  cursor: pointer;
}
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--danger); color: white; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .7rem 0; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.list-head { display: flex; justify-content: space-between; gap: .8rem; align-items: center; flex-wrap: wrap; }
#search, #guild-select {
  background: #10161d;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: .5rem .7rem;
  min-width: min(280px, 100%);
}
.guild-label {
  display: block;
  margin: .4rem 0 .35rem;
  color: var(--muted);
  font-size: .9rem;
}
#guild-select { width: min(420px, 100%); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .7rem;
  margin-top: .8rem;
}
.creature {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem;
  background: #121920;
  display: flex;
  gap: .7rem;
  align-items: center;
}
.creature img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}
.creature.done { outline: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.creature button { margin-left: auto; font-size: .85rem; padding: .4rem .6rem; }
.creature.done button { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
@media (max-width: 640px) {
  .top { flex-direction: column; }
}
