:root {
  --neon: #37a1ff;          /* primary neon blue */
  --neon-soft: #96d0ff;     /* softer blue for glow */
  --bg1: #071327;           /* deep navy background */
  --bg2: #001020;           /* darker navy for cards */
  --good: #38ef7d;          /* neon green */
  --bad: #ff4266;           /* neon pink/red */
  --text: #e9f4ff;
  --radius: 20px;
  --shadow: 0 0 25px rgba(55,161,255,.25),
            inset 0 0 20px rgba(150,208,255,.05);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

/* ========= GLOBAL BODY ========= */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(80% 60% at 50% -10%, #0b2a55 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 120%, #041022 0%, transparent 60%),
    linear-gradient(var(--bg1), var(--bg2));
  color: var(--text);
  min-height: 100svh;
  overflow-x: hidden;

  /* space for fixed header (2 rows) */
  padding-top: 120px;
}

/* ========= HEADER ========= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(90deg, #020713dd, #041831dd);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(150, 208, 255, 0.25);
}

/* row 1: menu + logo on left, optional "how to" on right */
.header-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* left cluster: menu + logo */
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* logo */
.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  filter:
    drop-shadow(0 0 10px var(--neon))
    drop-shadow(0 0 22px var(--neon-soft));
}

/* "How to play" icon (only used on Connections for now) */
.howto-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--neon-soft);
  color: var(--neon-soft);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(55, 161, 255, 0.4);
  transition: .16s;
}

.howto-btn:hover {
  background: var(--neon-soft);
  color: #001020;
}

/* row 2: centred title + date */
.header-row2 {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.page-title {
  margin: 0;
  font-size: clamp(16px, 3.4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neon-soft);
  text-align: center;
  text-shadow:
    0 0 8px var(--neon),
    0 0 18px var(--neon-soft);
}

/* ========= MENU ========= */

#menu-btn {
  background: rgba(0,0,0,.25);
  border: 1.5px solid var(--neon);
  color: var(--neon);
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-soft);
  transition: .18s;
}

#menu-btn:hover {
  background: var(--neon);
  color: #001;
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: 52px; /* just under row1 */
  left: 12px;
  background: #020818f5;
  border: 1px solid rgba(150, 208, 255, 0.4);
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  min-width: 210px;
  z-index: 200;
}

.menu-dropdown a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.menu-dropdown a:hover {
  background: rgba(55, 161, 255, 0.18);
}

/* ========= LAYOUT ========= */

main {
  display: grid;
  place-items: center;
  padding: 16px 16px 48px;
}

.wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 16px 48px;
}

.card,
.game-card {
  background: var(--bg2);
  border: 1px solid var(--neon);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  max-width: 640px;
  width: 100%;
}

/* ========= BUTTONS & INPUTS ========= */

button,
.btn {
  background: transparent;
  border: 1.5px solid var(--neon);
  color: var(--neon);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 1rem;
  cursor: pointer;
  transition: .18s;
  box-shadow: 0 0 10px rgba(55,161,255,.25);
}

button:hover,
.btn:hover {
  background: var(--neon);
  color: #000;
  box-shadow: 0 0 22px var(--neon);
}

input[type="text"],
input[type="number"],
input[type="email"] {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--neon);
  background: #021527;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

input:focus {
  box-shadow: 0 0 10px var(--neon);
}

/* ========= TEXT & MISC ========= */

h1, h2, h3 {
  text-shadow: 0 0 10px var(--neon-soft);
}

p {
  line-height: 1.5;
}

.feedback {
  min-height: 28px;
  text-align: center;
}

.subtle {
  color: var(--neon-soft);
  text-align: center;
  font-size: .95rem;
  margin-top: 12px;
}

/* ========= FOOTER ========= */

footer {
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--neon-soft);
}

/* ========= RESPONSIVE ========= */

@media (max-width: 480px) {
  body {
    padding-top: 110px;
  }

  .logo-img {
    height: 34px;
  }

  .card,
  .game-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  #menu-btn {
    font-size: 1.2rem;
    padding: 4px 10px;
  }
}
