/* The hub, efl.bioluminate.org's front page: the game-choice screen on the teacher's laptop
   (owner, 2026-11-06: styled night-and-neon, "KIS Games", a plain title face). Only index.html
   loads this file; the teacher page and the game pages keep their own looks. The colours are
   tokens here, scoped to the hub, so nothing else on the site changes. */
/* A hidden section stays hidden whatever its own display rule says (the gate's sections are flex). */
.hub-page [hidden] { display: none !important; }
.hub-page {
  --night: #16102e;
  --panel: #241543;
  --line: #3a2a66;
  --text: #f3eefc;
  --text-muted: #a99cc9;
  --text-faint: #6b5c94;
  --pink: #ff2d95;
  --cyan: #35e0f0;
  --purple: #8a4fff;
  --orange: #ff8c42;
  --gold: #ffd166;
  --glow-pink: 0 0 1.4rem rgba(255, 45, 149, .6);
  --glow-cyan: 0 0 1.2rem rgba(53, 224, 240, .55);
  --title-face: "Orbitron", system-ui, sans-serif;
  --body-face: "Rajdhani", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: var(--night) radial-gradient(ellipse 90% 30% at 50% -5%, rgba(138, 79, 255, .28), transparent) no-repeat;
  color: var(--text);
  font-family: var(--body-face);
  font-size: 19px;
}
.hub-page main { max-width: 72rem; margin: 0 auto; padding: 1.6rem 2rem 2rem; }
.hub-page .hub-head { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.hub-page .hub-head .crest { height: 72px; width: auto; }
.hub-page .hub-head h1 { font-family: var(--title-face); font-weight: 800; font-size: 3rem; letter-spacing: .04em;
  color: var(--pink); text-shadow: var(--glow-pink); margin: 0; }
.hub-page .sun { display: block; width: 340px; max-width: 70%; height: auto; margin: 0.2rem auto 0; }
.hub-page .page-role { color: var(--text-muted); text-align: center; font-size: 1.2rem; margin: 0.3rem 0 1.4rem; }
.hub-page .games { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hub-page .game-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem;
  min-height: 13rem; display: flex; flex-direction: column; gap: 0.6rem; }
.hub-page .game-card.live { border-color: var(--pink); box-shadow: 0 0 26px rgba(255, 45, 149, .25); }
.hub-page .game-name { display: flex; align-items: center; gap: 0.7rem; }
.hub-page .game-name .crest { height: 52px; width: auto; }
.hub-page .game-name .name { font-family: var(--title-face); font-weight: 800; font-size: 1.9rem; color: var(--cyan); text-shadow: var(--glow-cyan); }
.hub-page .game-card p { color: var(--text-muted); margin: 0; font-size: 1.1rem; line-height: 1.3; }
.hub-page .game-card .go { margin-top: auto; display: block; text-align: center; border-radius: 12px; padding: 0.8rem;
  font-family: var(--title-face); font-weight: 600; letter-spacing: .04em; text-decoration: none;
  background: var(--pink); color: #fff; box-shadow: 0 0 18px rgba(255, 45, 149, .55); }
.hub-page .game-card .go:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.hub-page .game-card.soon { border-style: dashed; justify-content: center; align-items: center; color: var(--text-faint); font-size: 1.15rem; }
.hub-page .students { text-align: center; color: var(--text-muted); margin: 1.4rem 0 0; }
.hub-page .students a { color: var(--cyan); }
.hub-page .environment { display: block; text-align: center; margin-top: 1.2rem; font-size: 0.8rem; color: var(--text-faint); }
/* A narrow window (a teacher's laptop split in two): the cards stack. */
@media (max-width: 52rem) { .hub-page .games { grid-template-columns: 1fr; } .hub-page .hub-head h1 { font-size: 2.3rem; } }

/* The teacher gate, centred across and down (decision 29's sign-in rule). */
.hub-page main[data-state="starting"], .hub-page main[data-state="signed-out"], .hub-page main[data-state="not-teacher"] {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hub-page .gate { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.hub-page .gate .crest { height: 96px; width: auto; }
.hub-page .gate h1 { font-family: var(--title-face); font-weight: 800; font-size: 3rem; letter-spacing: .04em; color: var(--pink); text-shadow: var(--glow-pink); margin: 0; }
.hub-page .gate-sub { color: var(--text-muted); font-size: 1.2rem; margin: 0; max-width: 34rem; }
.hub-page .gate-note { color: var(--gold); font-weight: 700; margin: 0; max-width: 34rem; }
.hub-page .gate-btn { font-family: var(--title-face); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; border: 0; border-radius: 12px;
  padding: 0.9rem 1.8rem; background: var(--pink); color: #fff; box-shadow: 0 0 18px rgba(255, 45, 149, .55); cursor: pointer; }
.hub-page .gate-btn:focus-visible, .hub-page .gate-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.hub-page .gate-link { background: none; border: 0; color: var(--cyan); text-decoration: underline; font: inherit; cursor: pointer; }
.hub-page .signed-in { display: flex; justify-content: flex-end; gap: 0.8rem; align-items: center; color: var(--text-muted); margin: 0 0 0.4rem; font-size: 0.95rem; }
