:root {
  --ink: #37474f;
  --bg: #e8eef1;
  --card: #ffffff;
  --line: #d5dee3;
  --muted: #78909c;
  --text: #263238;
  --ok: #2e7d32;
  --ok-bg: #e8f5e9;
  --soft: #eceff1;
  --err: #c62828;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font: 500 16px/1.5 Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 12% -8%, #d5e0e6 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #cfd8dc 0%, transparent 45%),
    linear-gradient(180deg, #eef3f5, var(--bg));
}
.wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(55, 71, 79, 0.09);
}
.head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.logo { border-radius: 18px; background: var(--soft); }
.brand {
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
}
h1 { margin: 4px 0 0; font-size: 28px; line-height: 1.15; color: var(--ink); font-weight: 800; }
h2 {
  margin: 24px 0 14px;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.meta {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.meta div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.meta span { color: var(--muted); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.ready, .status {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
}
.ready { background: var(--ok-bg); color: var(--ok); }
.status { background: var(--soft); color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.dot {
  width: 14px; height: 14px; margin-top: 4px; border-radius: 50%;
  background: #cfd8dc; border: 3px solid #fff; box-shadow: 0 0 0 2px #cfd8dc;
}
.current .dot { background: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.event { font-weight: 700; color: var(--text); }
.when, .place, .muted, .foot { color: var(--muted); font-size: 13px; }
.place { margin-top: 2px; }
.empty { margin: 0 0 16px; }
.btn {
  display: block;
  margin-top: 18px;
  text-align: center;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  padding: 15px 16px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #455a64; transform: translateY(-1px); }
.foot { margin: 14px 0 0; text-align: center; }
.home, .gate { text-align: center; }
.home h1, .gate h1 { margin-top: 10px; }
.gate input {
  width: 100%;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  text-align: center;
  letter-spacing: .24em;
  background: #fafbfc;
}
.gate button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.err { color: var(--err); font-weight: 700; }
@media (max-width: 420px) {
  h1 { font-size: 24px; }
  .card { padding: 20px 16px; }
}
