:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --ink: #1f1f24;
  --muted: #5d5d66;
  --line: #e4e4e8;
  --bg: #f6f6f8;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; line-height: 1.15; margin: 0; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 64px; width: auto; display: block; }
.wordmark { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.wordmark span { color: var(--red); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }

main { max-width: 1180px; margin: 0 auto; padding: 32px 20px 64px; }

/* ---------- home ---------- */
.hero { text-align: center; margin-bottom: 24px; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.hero p { color: var(--muted); max-width: 620px; margin: 10px auto 0; font-size: 17px; }

.partners {
  max-width: 720px; margin: 0 auto 28px; padding: 18px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-align: center;
}
.partners-label { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.vi-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #111; }
.vi-logo img { height: 58px; width: auto; }
.vi-logo span { white-space: nowrap; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 30px; letter-spacing: -0.01em; line-height: 1; }
.partners-x { font-size: 26px; color: #b5b5bd; font-weight: 300; }
.mw-logo { height: 58px; width: auto; }

.home-grid {
  display: grid; grid-template-columns: 1fr minmax(320px, 560px) 1fr; gap: 24px; align-items: start;
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.cohort-list { list-style: none; margin: 0; padding: 0; }
.cohort-list li + li { margin-top: 4px; }
.cohort-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 10px; text-decoration: none;
  color: var(--red); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.01em;
}
.cohort-list a:hover, .cohort-list a.is-hot { background: #fbe9ec; }
.chip {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px; background: #eee; color: var(--muted);
}
.chip.live { background: var(--red); color: #fff; }

.map-panel h2 { text-align: center; font-size: 22px; margin-bottom: 12px; }
.map { position: relative; width: 100%; max-width: 516px; margin: 0 auto; }
.map > img { width: 100%; display: block; user-select: none; }
.dot {
  position: absolute; width: 4.2%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--red); box-shadow: 0 0 0 2px #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dot:hover, .dot:focus-visible, .dot.is-hot {
  transform: translate(-50%, -50%) scale(1.45); box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0,0,0,.35); outline: none; z-index: 2;
}
.dot.live::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.6); } }
.tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 18px));
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .12s;
}
.tip small { display: block; font-weight: 400; opacity: .75; }
.tip.show { opacity: 1; }
.tip::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink);
}
.legend { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: -1px; }
.legend i.pulse { box-shadow: 0 0 0 3px #f5c2cb; }

/* ---------- cohort page ---------- */
.cohort { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.cohort-logo { max-width: 340px; width: 100%; height: auto; display: block; margin-bottom: 18px; }
.cohort h1 { font-size: clamp(24px, 3vw, 34px); }
.cohort .area { color: var(--muted); margin: 6px 0 20px; font-size: 17px; }
.region-map { width: 100%; max-width: 420px; display: block; }

.cover {
  display: block; position: relative; border-radius: 20px; overflow: hidden; text-decoration: none;
  aspect-ratio: 2 / 3; max-width: 400px; margin: 0 auto; background: #222; box-shadow: 0 20px 50px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.cover:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(0,0,0,.25); }
/* the cover image sits over the styled fallback; if it's missing it removes itself */
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 24px; color: #fff;
  background: radial-gradient(circle at 30% 20%, #e3364f 0, var(--red) 35%, #5a0716 100%);
}
.cover .fallback .eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cover .fallback h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin: 8px 0 6px; }
.cover .fallback p { margin: 0; opacity: .9; }
.play {
  display: block; width: max-content; margin: 22px auto 0; text-decoration: none;
  background: var(--red); color: #fff; font-weight: 800; font-family: "Poppins", sans-serif;
  padding: 13px 40px; border-radius: 99px; font-size: 18px; box-shadow: 0 8px 20px rgba(200,16,46,.3);
  transition: background .15s ease, transform .15s ease;
}
.play:hover { background: var(--red-dark); transform: translateY(-2px); }
.cover.soon { background: #d9d9de; cursor: default; }
.cover.soon .fallback { background: repeating-linear-gradient(135deg, #6a6a73 0 18px, #75757e 18px 36px); }
.cover-note { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---------- student / game page ---------- */
body.game-page { background: #000; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.game-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; background: #111; color: #eee; font-size: 14px;
}
.game-bar a { text-decoration: none; color: #eee; }
.game-bar a:hover { color: #fff; }
.game-bar button {
  background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font-weight: 600; cursor: pointer;
}
.game-frame { flex: 1; width: 100%; border: 0; background: #000; }
.game-missing { flex: 1; display: grid; place-items: center; color: #ddd; text-align: center; padding: 24px; }
.game-missing code { background: #222; padding: 2px 6px; border-radius: 6px; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 0 20px 32px; }

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .map-panel { order: -1; grid-column: 1 / -1; max-width: 600px; width: 100%; justify-self: center; }
}
@media (max-width: 860px) {
  .cohort { grid-template-columns: 1fr; }
  .cohort > div:last-child { order: -1; }
}
@media (max-width: 600px) {
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header { padding: 10px 16px; }
  .brand img { height: 46px; }
  main { padding: 20px 16px 48px; }
  .panel { padding: 16px; }
  .tip { white-space: normal; width: 200px; }
  .vi-logo img, .mw-logo { height: 44px; }
  .vi-logo span { font-size: 23px; }
}
.game-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.game-title img { height: 30px; width: auto; }
@media (max-width: 600px) { #title { display: none; } }
@media (max-width: 680px) {
  .partners-logos { flex-direction: column; gap: 6px; }
}
