:root {
  --ink: #1f2430;
  --muted: #7a7f8c;
  --paper: #fffdf8;
  --bg: #f3eee3;
  --accent: #2563eb;
  --ok: #15803d;
  --bad: #dc2626;
  --line: rgba(31, 36, 48, .12);
  --font: ui-rounded, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

.page { max-width: 520px; margin: 0 auto; padding: 18px 16px 40px; }

.head h1 { margin: 0 0 4px; font-size: clamp(24px, 7vw, 34px); letter-spacing: -.02em; }
.sub { margin: 0; color: var(--muted); font-size: 14px; }

.tiles { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }

.tile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(60, 50, 30, .08);
  color: inherit;
  text-decoration: none;
  transition: transform .06s ease, box-shadow .12s ease;
}
.tile-link:hover { box-shadow: 0 2px 8px rgba(60, 50, 30, .14); }
.tile-link:active { transform: scale(.99); }

.emoji { font-size: 22px; line-height: 1; }
.tile-text { flex: 1; display: block; }
.tile-title { display: block; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.tile-sub { display: block; color: var(--muted); font-size: 13px; }
.chev { color: var(--muted); font-size: 22px; line-height: 1; }

.panel {
  margin-top: 16px;
  background: var(--paper);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(60, 50, 30, .08);
}
.panel h2 { margin: 0 0 6px; font-size: 16px; }
.panel p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.panel .muted { color: var(--muted); font-size: 13px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 16px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 50, 30, .08);
  cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn:active { transform: scale(.99); }

.join { display: flex; gap: 8px; margin-top: 10px; }
.join input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.join input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.join .btn { width: auto; margin-top: 0; padding: 12px 18px; background: var(--bg); }

.status {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
