/* ===== Header ===== */
.heng99-hanoi-head {
  border-bottom: 3px solid #4a4459;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.heng99-hanoi-head__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(180deg, #f8e08e 0%, #c89432 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.heng99-hanoi-head__date {
  -webkit-text-fill-color: #f1ecff;
  color: #f1ecff;
  font-weight: 700;
  margin-left: 6px;
}

/* ===== Intro ===== */
.heng99-hanoi-intro {
  margin-bottom: 18px;
}
.heng99-hanoi-intro__rate {
  font-size: 22px;
  font-weight: 700;
  color: #f1ecff;
}
.heng99-hanoi-intro__rate span {
  color: #7ee787;
}
.heng99-hanoi-intro__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #c8bce4;
}
.heng99-hanoi-intro__desc strong {
  color: #ffd76b;
}

/* ===== Table ===== */
.heng99-hanoi-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  overflow: hidden;
}
.heng99-hanoi-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}
.heng99-hanoi-table thead th {
  background: linear-gradient(180deg, #d6b259 0%, #a47a26 100%);
  color: #2b1d05;
  font-weight: 700;
  padding: 12px 10px;
  text-align: center;
  white-space: nowrap;
}
.heng99-hanoi-table__jorcol {
  min-width: 230px;
}
.heng99-hanoi-table tbody td {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #e6e1f1;
  background: #f4f4f7;
  color: #2a2138;
}
.heng99-hanoi-table tbody tr:nth-child(even) td {
  background: #eceaf2;
}
.heng99-hanoi-table tbody tr:last-child td {
  border-bottom: 0;
}
.heng99-hanoi-row.is-next td {
  background: #fdf3d6;
  font-weight: 600;
}
.heng99-hanoi-cell--date {
  font-weight: 700;
  white-space: nowrap;
  color: #2a2138;
}
.heng99-hanoi-cell--num {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1d1535;
}

/* ===== Run / Rud chips ===== */
.heng99-hanoi-run {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 50%;
  background: #1d1535;
  color: #ffd76b;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 0 2px #ffd76b inset;
}

/* ===== เจาะ (pierce) expandable ===== */
.heng99-hanoi-cell--jor {
  text-align: center;
}
.heng99-hanoi-jor__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: #2a2138;
  color: #ffd76b;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.heng99-hanoi-jor__toggle:hover {
  background: #1d1535;
}
.heng99-hanoi-jor__icon {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: 0 0 12px;
}
.heng99-hanoi-jor__icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: currentColor;
  bottom: -3px;
  right: -3px;
  transform: rotate(45deg);
  transform-origin: left center;
}
.heng99-hanoi-jor__nums {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  background: #fbf6e6;
  border: 1px dashed #d6b259;
  border-radius: 8px;
  text-align: center;
}
.heng99-hanoi-jor.is-open .heng99-hanoi-jor__nums {
  display: block;
}
.heng99-hanoi-jor__line {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #1d1535;
  line-height: 1.7;
  word-break: break-word;
}
.heng99-hanoi-jor__line--three {
  color: #a47a26;
}

/* ===== Result status badge ===== */
.heng99-hanoi-status {
  display: inline-block;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.heng99-hanoi-status.is-correct {
  background: #1f9d57;
}
.heng99-hanoi-status.is-wrong {
  background: #d64545;
}
.heng99-hanoi-status.is-pending,
.heng99-hanoi-status.is-waiting {
  background: #f6e2a8;
  color: #8a6d12;
}
.heng99-hanoi-muted {
  color: #9a8fbb;
}

/* ===== Highlights ===== */
.heng99-hanoi-points {
  margin-top: 22px;
}
.heng99-hanoi-points__title {
  font-size: 22px;
  font-weight: 700;
  color: #ffd76b;
  margin-bottom: 10px;
}
.heng99-hanoi-points__list {
  margin: 0;
  padding-left: 22px;
  color: #d8d2ed;
}
.heng99-hanoi-points__list li {
  font-size: 15px;
  line-height: 1.9;
}
.heng99-hanoi-points__list li strong {
  color: #ffd76b;
}

.heng99-hanoi-note {
  margin: 16px 0 0;
  font-size: 13px;
  font-style: italic;
  color: #9a8fbb;
}
