:root {
  --bg1: #f8fbff;
  --bg2: #eef6ff;

  /* light theme bits */
  --card: #ffffffcc;
  --stroke: #00000014;
  --text: #0b1020;
  --muted: #334155;

  --good: #16a34a;
  --bad: #ef4444;
  --gold: #b45309;
  --accent-gradient: linear-gradient(135deg, #38bdf8, #2563eb);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background:
    radial-gradient(1100px 520px at 10% 0%, #cfe8ff66, transparent 60%),
    radial-gradient(900px 520px at 90% 10%, #e3f2ff66, transparent 62%),
    radial-gradient(1200px 720px at 50% 120%, #f5f9ff, transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 10px;
}
.topSpacer {
  height: 1px;
}
.logoBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #e7f2ff, #9ecbff);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 30px #00000020;
}
.logoImage {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
}

.game {
  display: grid;
  gap: 14px;
}

.stage {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: 0 20px 60px #00000020;
  padding: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #ffffffcc;
  font-weight: 800;
  color: var(--text);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.promptTitle {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 6px 0 10px;
}
.promptTitleLeft {
  text-align: left;
}

.localNotice {
  display: block;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #2563eb22;
  background: linear-gradient(135deg, #38bdf822, #2563eb1f);
  font-weight: 800;
  color: #0b1020;
}

.hint {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  margin: 6px 0 0;
}

.primaryBtn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
  color: #ffffff;
  background: var(--accent-gradient);
  box-shadow: 0 14px 40px #2563eb35;
}
.primaryBtn:hover {
  filter: brightness(1.03);
}
.primaryBtn:active {
  transform: translateY(1px);
}

.smallBtn {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.secondaryBtn {
  appearance: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
  color: var(--text);
  background: #ffffffcc;
  border: 1px solid var(--stroke);
}
.secondaryBtn:hover {
  background: #ffffff;
}

.classList {
  display: grid;
  gap: 10px;
}

.classCard {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
}

.className {
  font-weight: 900;
  letter-spacing: -0.01em;
}
.classMeta {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin-top: 2px;
}

.cardActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.instructionList {
  margin: 10px 0 0 18px;
  padding: 0;
}
.instructionList li {
  margin: 6px 0;
  font-weight: 400;
  color: var(--text);
}

.small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

a {
  color: inherit;
}

/* website extras */
.navRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 14px;
}
.navLink {
  text-decoration: none;
  color: var(--text);
}
.navLink.primaryBtn {
  color: #ffffff;
}
.navLink:hover {
  text-decoration: none;
}
.navLink.active {
  background: #ffffff;
  border-color: #2563eb33;
}
.pageTitle {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  margin: 2px 0 6px;
}
.pageSub {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  margin: 0 0 12px;
}
.contentCard {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
}
.contentCard h2 {
  margin: 16px 0 8px;
  font-size: 18px;
  font-weight: 900;
}
.contentCard p,
.contentCard li {
  font-weight: 700;
  color: var(--text);
}
.contentCard .small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}
.footerRow {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
