.hidden { display: none !important; }

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #134a32, var(--felt-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.host-wrap {
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.brand {
  font-size: 2.4rem;
  letter-spacing: 0.2em;
  margin: 0;
  color: #fff;
}
.tagline { opacity: 0.8; margin: 6px 0 24px; }

.card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.card h2 { margin-top: 0; }

/* labelled inputs */
.field {
  display: block;
  text-align: left;
  margin-bottom: 14px;
}
.field > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.75;
  margin: 0 0 5px 2px;
}
.card input {
  width: 100%;
  box-sizing: border-box;
  font-size: 1.02rem;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card input:focus {
  outline: none;
  border-color: #3fae74;
  box-shadow: 0 0 0 3px rgba(63, 174, 116, 0.35);
}

/* login / signup tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
}
.tab {
  flex: 1;
  background: transparent;
  color: #fff;
  padding: 10px;
  border-radius: 9px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.tab.active { background: #fff; color: var(--ink); }

button.big { width: 100%; padding: 14px; font-size: 1.05rem; margin-top: 4px; }
button.google {
  background: #fff;
  color: #3c4043;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
button.link {
  background: none;
  color: #cfe6da;
  text-decoration: underline;
  padding: 8px;
  margin-top: 10px;
}
button.link.small { font-size: 0.85rem; margin-top: 4px; padding: 6px; }

.muted { opacity: 0.75; font-size: 0.9rem; }
.msg { min-height: 1.2em; color: #ffd479; font-weight: 600; margin-bottom: 0; }
.msg.bad { color: #ff9d9d; }
.msg.good { color: #9de8b0; }
#auth-msg { min-height: 0; margin: 0 0 12px; }
#auth-msg:empty { display: none; }

/* ---- home page ---- */
.host-wrap.wide { max-width: 620px; text-align: left; }
.home-top { text-align: center; margin-bottom: 26px; }
.home-top .brand { margin-bottom: 4px; }
.welcome { font-size: 1.15rem; font-weight: 600; margin: 2px 0 18px; }
button.create { max-width: 320px; margin: 0 auto; display: block; }
#home-msg { text-align: center; }
.home-top .link { display: inline-block; }

.panel { margin-top: 26px; }
.panel > h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.empty { opacity: 0.65; font-size: 0.9rem; }

.game-list { display: flex; flex-direction: column; gap: 10px; }
.game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}
.game-row .code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.game-row .meta { flex: 1; font-size: 0.82rem; opacity: 0.75; }

.btn {
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn.go { background: #fff; color: var(--ink); }
.btn.del { background: rgba(255, 157, 157, 0.16); color: #ff9d9d; }

/* past games */
.game-row.past { align-items: flex-start; }
.past-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.past-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
}
.past-head .date { font-weight: 600; }
.past-head .dur { opacity: 0.7; font-size: 0.82rem; }
.players { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-size: 0.85rem;
}
.pchip.win {
  background: rgba(255, 212, 121, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 121, 0.55);
  font-weight: 700;
}
.pchip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #999;
  flex: none;
}
.pchip .dot.blue { background: #2f6fed; }
.pchip .dot.red { background: #e23b3b; }
.pchip .dot.green { background: #29a745; }
.pchip .dot.yellow { background: #f2c14e; }
.winline { font-size: 0.85rem; opacity: 0.9; }

/* logout button (top-right corner) */
.logout-btn {
  position: fixed;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10;
}
.logout-btn:hover { background: rgba(255, 255, 255, 0.22); }

/* "check your email" notice — hidden by default, animates in when shown */
.notice {
  background: rgba(255, 212, 121, 0.12);
  border: 1px solid rgba(255, 212, 121, 0.4);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  animation: fadeSlideIn 0.4s ease both;
}
.notice h2 { margin: 0 0 6px; font-size: 1.15rem; }
.notice p { margin: 0 0 14px; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
