* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #050510 100%);
  color: #fff;
}

.card {
  background: rgba(26, 26, 46, 0.9);
  border: 2px solid #4a4a6a;
  border-radius: 14px;
  padding: 40px;
  width: 360px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

h1 {
  text-align: center;
  color: #ffd700;
  letter-spacing: 6px;
  margin-bottom: 6px;
  font-size: 42px;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
}

.sub {
  text-align: center;
  color: #8888aa;
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin: 14px 0 6px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #4a4a6a;
  background: #12121f;
  color: #fff;
  font-size: 14px;
}

input:focus { outline: none; border-color: #ffd700; }

button.primary {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #2d7a2d, #1e5a1e);
  color: #fff;
  border: 2px solid #3a9a3a;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 4px 0 #143a14;
}

button.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #143a14; }
button.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #143a14; }
button.primary:disabled { opacity: 0.6; cursor: not-allowed; }

.toggle { text-align: center; margin-top: 18px; font-size: 13px; color: #8888aa; }
.toggle a { color: #ffd700; cursor: pointer; text-decoration: underline; }

.msg {
  margin-top: 16px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  display: none;
}
.msg.error   { background: #4a2020; color: #ff9a9a; display: block; }
.msg.success { background: #1e3a1e; color: #9ae6a0; display: block; }
.msg.info    { background: #1e2a3a; color: #9ac6e6; display: block; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(10, 10, 20, 0.85);
  border-bottom: 1px solid #4a4a6a;
}
.topbar .who { color: #8888aa; font-size: 13px; }
.topbar .who b { color: #ffd700; }

button.ghost {
  background: transparent;
  color: #ff9a9a;
  border: 1px solid #6a3030;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
button.ghost:hover { background: #3a1a1a; }

.center-note { text-align: center; max-width: 540px; padding: 20px; }
.center-note h2 { color: #ffd700; margin-bottom: 14px; }
.center-note p { color: #aaa; line-height: 1.6; margin-bottom: 10px; font-size: 14px; }
.center-note code { color: #ffd700; background: #12121f; padding: 2px 6px; border-radius: 4px; }

/* ---- lobby / party ---- */
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #12121f;
  border: 1px solid #2a2a3e;
  font-size: 14px;
}
.member-row.empty { opacity: 0.4; font-style: italic; }
.member-row .m-name { color: #fff; }
.member-row .m-you { color: #8888aa; font-size: 12px; }
.member-row .m-ready { font-size: 11px; font-weight: bold; letter-spacing: 1px; padding: 4px 10px; border-radius: 12px; }
.member-row .m-ready.on  { background: #1e3a1e; color: #9ae6a0; }
.member-row .m-ready.off { background: #3a2a1e; color: #e6c09a; }
#members { margin-bottom: 18px; }
