*,
*::before,
*::after {
  box-sizing: border-box;
}

body.pb {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    Segoe UI,
    Roboto,
    sans-serif;
  background: #0f1419;
  color: #e2e8f0;
  min-height: 100vh;
}

a {
  color: #e8b84a;
}
a:visited {
  color: #eab855;
}

.wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hdr {
  background: rgba(26, 35, 50, 0.85);
  border-bottom: 1px solid #1e293b;
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: #e8b84a;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links button {
  cursor: pointer;
  background: transparent;
  border: 1px solid #475569;
  border-radius: 0.375rem;
  color: #e2e8f0;
  padding: 0.25rem 0.6rem;
}

.nav-links form.inl {
  display: inline;
  margin: 0;
}

.muted {
  color: #94a3b8;
  font-size: 0.9rem;
}

.good {
  color: #86efac;
}

.card {
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid #1e293b;
  background: #1a2332;
}

.hero .eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #8b9cb3;
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: #fff;
}

.hero .lead {
  margin: 0;
  max-width: 40rem;
  color: #94a3b8;
  line-height: 1.5;
}

h2 {
  color: #e8b84a;
  font-size: 1.2rem;
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="search"],
input[type="url"],
/* Implicit text inputs omit `type`; attribute selectors like [type="text"] do not match them. */
input:not([type]),
select,
textarea {
  width: 100%;
  max-width: 24rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.375rem;
  border: 1px solid #334155;
  background: #0f1419;
  color: #f1f5f9;
}

button.primary,
.primary {
  cursor: pointer;
  background: #e8b84a;
  color: #111827;
  border: none;
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

button.danger {
  cursor: pointer;
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: transparent;
  color: #fecaca;
  border-radius: 0.5rem;
}

table.history {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.history th,
table.history td {
  border-bottom: 1px solid #1e293b;
  padding: 0.6rem;
  text-align: left;
}

table.history thead {
  background: #1a2332;
}

table.history.history-wide {
  font-size: 0.8125rem;
}

table.history-wide td.hist-topteams {
  max-width: 14rem;
  white-space: normal;
  vertical-align: top;
  line-height: 1.35;
}

code {
  font-size: 0.8rem;
}

.err {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.join-code {
  font-family: ui-monospace, monospace;
  font-size: clamp(2rem, 10vw, 3rem);
  letter-spacing: 0.08em;
  color: #fff;
}

.host-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .host-grid.cols2 {
    grid-template-columns: 1fr 1fr;
  }
}
