:root {
  --deep: #04225e;
  --sea: #0a4fd1;
  --bright: #2f8bff;
  --foam: #e8f3ff;
  --discord: #5865f2;
  --danger: #ffb4b4;
  --ok: #b6f5d0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--foam);
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.brand {
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  color: var(--foam);
  text-decoration: none;
  text-shadow: 0 4px 20px rgba(0, 20, 80, 0.5);
  margin-bottom: 1.5rem;
}
.card {
  width: 100%;
  max-width: 400px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.35rem; }
.sub { opacity: 0.8; margin-bottom: 1.5rem; font-size: 0.98rem; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin: 1rem 0 0.4rem; }
input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
}
input::placeholder { color: rgba(232, 243, 255, 0.55); }
input:focus { outline: 2px solid var(--bright); outline-offset: 1px; border-color: transparent; }
button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--foam);
  color: var(--deep);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
button:hover { transform: translateY(-2px); }
button:disabled { opacity: 0.6; cursor: progress; transform: none; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.msg { margin-top: 1rem; font-size: 0.95rem; min-height: 1.2em; }
.msg.error { color: var(--danger); }
.msg.success { color: var(--ok); }
.switch { margin-top: 1.5rem; text-align: center; font-size: 0.95rem; opacity: 0.9; }
.switch a { color: #fff; font-weight: 600; }
.hint { font-size: 0.82rem; opacity: 0.7; margin-top: 0.35rem; }
.home-top {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.home-top .brand { margin: 0; font-size: 1.6rem; }
.home-top .right { display: flex; align-items: center; gap: 1rem; font-weight: 600; }
.home-top button { margin: 0; width: auto; padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.empty { text-align: center; padding: 3rem 2rem; }
.empty .icon { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; }
.empty h1 { font-size: 2rem; }
.empty p { opacity: 0.8; margin-top: 0.5rem; }
.games-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; margin-bottom: 1rem; text-align: center; }
.home-wrap { width: 100%; max-width: 560px; }
.home-wrap .card { max-width: none; }
[hidden] { display: none !important; }
