@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&family=Inter:wght@400;500;600&display=swap');

body {
  margin: 0;
  background: #ffffff;
  color: #111;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.wrap {
  width: 560px;
  max-width: 92%;
  text-align: center;
  padding: 18px 0 40px;
}

h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 42px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.titleRule{
  width: 120px;
  height: 2px;
  background: #111;
  margin: 16px auto 22px;
}

.stageLabel{
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.sequence {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pill {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #d1d5db;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 650;
  background: #fff;
  line-height: 1;
}

.pill:last-child {
  border-color: #111;
}

.pill.correctFlash {
  background: #0a7d24;
  border-color: #0a7d24;
  color: white;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.input {
  width: 240px;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
}

.input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17,17,17,0.06);
}

.btn {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
}

.btn:hover { opacity: 0.9; }

.feedback {
  font-size: 16px;
  font-weight: 500;
  min-height: 24px;
  margin-bottom: 18px;
}

.good { color: #0a7d24; }
.bad  { color: #b00020; }

.hidden { display: none; }

/* Results */
.results {
  margin-top: 26px;
  border-top: 1px solid #eee;
  padding-top: 18px;
}

.resultsTitle{
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.resultsGrid{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.resultsRow{
  display: flex;
  gap: 8px;
  align-items: center;
}

.resultsRowLabel{
  width: 64px;
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
  margin-right: 8px;
}

.box{
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #cfcfcf;
  box-sizing: border-box;
}

.box.red   { background: #b00020; border-color: #b00020; }
.box.green { background: #0a7d24; border-color: #0a7d24; }
.box.empty { background: transparent; border-color: #d6d6d6; }

.ruleDisplay {
  margin-left: 14px;
  font-size: 12px;
  color: #6b7280;
  max-width: 280px;
  text-align: left;
  line-height: 1.2;
}