/* Games hub, formula book and interactive completion. */
.game-course-filter {
  display: grid;
  gap: 6px;
  max-width: 360px;
  margin: 20px 0;
}
.game-course-filter select,
#formula-search {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.quick-sessions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.game-kind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.game-kind-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.game-kind-card p {
  font-weight: 400;
  color: var(--muted);
}
.game-kind-card small {
  margin-top: auto;
  color: var(--teal);
}
.game-exercise-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.game-exercise-list .button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 18px;
  background: white;
}
.game-exercise-list small {
  color: var(--muted);
  font-weight: 400;
}
.formula-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.formula-card {
  padding: 20px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.formula-card > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  min-height: 44px;
}
.formula-equation {
  font-size: 1.4rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  margin: 16px 0;
  color: var(--teal);
}
.symbol-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  table-layout: fixed;
}
.symbol-table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 12px;
}
.symbol-table td,
.symbol-table th {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  vertical-align: top;
}
.symbol-table th:first-child {
  width: 22%;
}
.symbol-table th:last-child {
  width: 28%;
}
.formula-steps {
  padding-left: 24px;
  line-height: 1.8;
}
.formula-condition {
  padding: 16px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  margin: 20px 0;
}
.fill-form {
  display: grid;
  gap: 18px;
}
.fill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background: var(--teal-soft);
  border-radius: 12px;
}
.fill-row select {
  padding: 10px;
  background: white;
  border: 2px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
}
.fill-row select[aria-invalid="true"] {
  border-color: var(--orange);
}
.fill-row .fill-correct {
  border-color: var(--success);
}
.calculation-trail {
  padding-left: 24px;
  color: var(--success);
  line-height: 1.8;
  margin: 16px 0;
}
.calculation-current {
  padding: 18px;
  border-radius: 12px;
  background: #f3f8fa;
}
.completion-board input[type="range"] {
  width: 100%;
  height: 36px;
  display: block;
  margin: 20px 0;
}
.explorer-chart {
  margin: 20px 0;
}
.explorer-result {
  padding: 16px;
  background: var(--teal-soft);
  border-radius: 12px;
  margin: 16px 0;
  font-size: 1.1rem;
}
.explorer-chart > .illustration {
  max-width: 650px;
}
@media (max-width: 760px) {
  .game-kind-grid {
    grid-template-columns: 1fr;
  }
  .game-kind-card {
    min-height: 140px;
  }
  .formula-card {
    padding: 16px;
  }
  .symbol-table td,
  .symbol-table th {
    font-size: 0.8rem;
    padding: 10px 4px;
  }
  .formula-equation {
    font-size: 1.15rem;
  }
  .fill-row {
    padding: 14px;
  }
  .calculation-current {
    padding: 14px;
  }
}

.session-progress{width:100%;height:8px;accent-color:var(--teal);margin:8px 0 22px;}
