/* The free-course language picker (/demo). One screen: pick a language, and
   the real course player takes over from /demo/{lang}. */
:root {
  --page: #112226;
  --text: #fff8ee;
  --muted: rgba(255, 248, 238, .66);
  --line: rgba(255, 248, 238, .15);
  --gold: #e1ad55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: 'Montserrat', -apple-system, "Noto Sans TC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.demo-shell { width: min(100%, 560px); margin: auto; padding: 22px 18px 40px; }
.demo-shell header { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.demo-shell header a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.demo-brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; }
.demo-brand img { width: 30px; height: 30px; }
.demo-brand b { font-size: 1rem; }
.demo-back:hover { color: var(--gold); }

/* On a phone the picker is the heading and the three rows. The line describing
   the scenario is prose standing between the reader and the choice. */
@media (max-width: 620px) {
  .demo-task { display: none; }
}

.kicker {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-picker h1 { margin: 0; font-size: clamp(1.8rem, 8vw, 2.7rem); line-height: 1.1; }
.demo-picker > p:not(.kicker) { color: var(--muted); line-height: 1.65; }

.demo-language-grid { display: grid; gap: 10px; margin-top: 24px; }

.demo-language-grid a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 248, 238, .06);
  color: var(--text);
  text-decoration: none;
}

.demo-language-grid a span { font-size: 1.8rem; }
.demo-language-grid a strong { flex: 1; }
.demo-language-grid a small { color: var(--gold); }
