:root {
  --bg: #070516;
  --panel: rgba(13, 15, 34, 0.9);
  --panel-strong: rgba(9, 10, 26, 0.92);
  --shadow: 0 28px 70px rgba(6, 8, 24, 0.55);
  --border: rgba(120, 140, 200, 0.22);
  --text-primary: #f4f6fb;
  --text-secondary: #c9d2f0;
  --accent: #4090d0;
  --accent-alt: #e050a0;
  --accent-soft: rgba(64, 144, 208, 0.25);
  --system: #4090d0;
  --login-banner: linear-gradient(135deg, #08061b 0%, #15123f 55%, #2b1353 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
}

a {
  color: var(--accent-alt);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  min-height: 100vh;
}

#landing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.75rem;
  padding: 4.2rem clamp(2rem, 6vw, 6rem);
  background: var(--login-banner);
  align-items: center;
}

.hero {
  max-width: 560px;
}

.hero-logo {
  width: clamp(280px, 44vw, 420px);
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero ul {
  margin: 1.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card h2 {
  margin: 0 0 1.3rem;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

form label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

form input,
form select,
form button {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(14, 17, 37, 0.65);
  color: var(--text-primary);
  font-size: 1rem;
}

form input:focus,
form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

form button {
  margin-top: 0.9rem;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #04111f;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

form button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.inline-note {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-secondary);
}

.inline-note strong,
.inline-note a {
  color: var(--accent-alt);
}

.status {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  min-height: 1.1rem;
}

.status.error {
  color: #ff7b9d;
}

.status.success {
  color: #5ce0b5;
}

#signupSection {
  padding: 3.25rem clamp(2rem, 6vw, 6rem);
  background: var(--panel-strong);
}

#signupSection > h2 {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.signup-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}


.operator-blurb {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.operator-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-alt);
  color: #ffeaf8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.subnote {
  margin: 0.75rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

#chatApp {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  background: #f5f7fb;
  color: #0f172a;
}

#chatApp.active {
  display: flex;
}

.chat-header {
  background: #0f1128;
  color: #f4f6fb;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.chat-header nav a {
  margin-right: 1.25rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-alt);
}

.chat-header nav a:last-child {
  margin-right: 0;
}

.chat-header nav a:hover {
  color: #ff8ac2;
}

.chat-header .room-info {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 255, 0.75);
}

.chat-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  background: #ffffff;
}

#transcript {
  padding: 1.1rem 1.2rem;
  overflow-y: auto;
  background: #fbfcff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-family: 'Source Code Pro', 'Courier New', monospace;
  font-size: 0.96rem;
}

.message-line {
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.message-line .meta {
  color: #0f172a;
  font-weight: 600;
}

.message-line .text {
  color: #111827;
  margin-left: 0.3rem;
}

.message-line.system {
  color: var(--accent);
}

.message-line.server {
  color: var(--accent-alt);
}

.chat-controls {
  background: #0f1128;
  color: #eef1fb;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.75rem 1.15rem 1rem;
  align-items: center;
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) max-content minmax(92px, 140px);
  gap: 0.6rem;
  align-items: center;
}

.chat-input input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(17, 24, 52, 0.85);
  color: #f8fbff;
}

.chat-input button {
  padding: 0.68rem 1.6rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #031527;
  font-weight: 600;
  cursor: pointer;
}

.room-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #d7dcf5;
}

.room-switcher select {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(17, 24, 52, 0.85);
  color: #f1f5ff;
}

.chat-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.chat-links a {
  color: rgba(200, 210, 240, 0.85);
}

.chat-links a:hover {
  color: #ffffff;
}

@media (max-width: 960px) {
  #landing {
    padding: 3.2rem 2.2rem;
  }

  .chat-input {
    grid-template-columns: 1fr;
  }

  .chat-input button {
    justify-self: end;
  }
}

@media (max-width: 600px) {
  .chat-header nav {
    display: none;
  }

  #transcript {
    padding: 1rem;
  }
}

#chat-notifications {
  position: fixed;
  bottom: 140px;
  left: 2rem;
  transform: translateX(0);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 2500;
  pointer-events: none;
}

.chat-notice {
  min-width: 260px;
  max-width: 420px;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.12);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(8, 11, 34, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chat-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-notice.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.chat-notice.success {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.18);
  color: #065f46;
}

.chat-notice.error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.18);
  color: #7f1d1d;
}

.chat-text {
  display: inline-block;
}
