.st-playkit {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.pk-board {
  contain: inline-size;
  display: flex;
  width: 100%;
  gap: 14px;
  margin: 14px 0 10px;
  padding: 14px;
  overflow-x: auto;
  border-radius: 16px;
  background: #1f2d3a;
  user-select: none;
}

.pk-kb-main {
  flex: 1 1 auto;
  min-width: 560px;
}

.pk-kb-side {
  flex: none;
  width: 150px;
}

.pk-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.pk-key {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 40px;
  padding: 0 4px;
  overflow: hidden;
  border-radius: 7px;
  background: #34495a;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3);
  color: #dbe7ee;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .08s ease, transform .08s ease;
}

.pk-gap {
  visibility: hidden;
}

.pk-key.is-done {
  background: #2f8f8c;
  color: #fff;
}

.pk-key.is-down {
  background: #f59f00;
  color: #1f2d3a;
  transform: translateY(2px);
  box-shadow: none;
}

.pk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
  color: #5b6875;
  font-size: 14px;
}

.pk-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.pk-mouse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  align-content: start;
  min-height: 170px;
  padding: 12px;
  border: 2px dashed #c8d6dd;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
}

.pk-mouse span {
  padding: 12px 6px;
  border-radius: 10px;
  background: #eef3f5;
  color: #34495a;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.pk-mouse span.is-done {
  background: #2f8f8c;
  color: #fff;
}

.pk-mouse span.is-down {
  background: #f59f00;
  color: #1f2d3a;
}

.pk-mouse small {
  grid-column: 1 / -1;
  color: #7a8794;
  text-align: center;
}

.pk-logbox {
  padding: 12px;
  border: 1px solid #e3eaee;
  border-radius: 14px;
  background: #fff;
}

.pk-log {
  max-height: 170px;
  margin: 6px 0 0;
  padding: 0 0 0 18px;
  overflow-y: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre;
}

.pk-log .pk-bad {
  color: #c92a2a;
  font-weight: 700;
  white-space: normal;
}

.pk-text {
  max-height: 210px;
  margin: 12px 0;
  padding: 16px 18px;
  overflow-y: auto;
  border: 1px solid #e3eaee;
  border-radius: 14px;
  background: #f8fafb;
  color: #7a8794;
  font-size: 21px;
  line-height: 1.7;
  user-select: none;
}

.pk-text .pk-ok {
  color: #2f9e44;
}

.pk-text .pk-no {
  border-radius: 3px;
  background: #ffe3e3;
  color: #c92a2a;
}

.pk-text .pk-cur {
  border-bottom: 3px solid #f59f00;
  color: #1f2d3a;
}

.pk-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #c8d6dd;
  border-radius: 12px;
  font-size: 18px;
  resize: vertical;
}

.pk-input:focus {
  border-color: #52b5b2;
  outline: 0;
}

.pk-result {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #b9e3e1;
  border-radius: 16px;
  background: #f1fbfa;
}

.pk-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pk-big strong {
  color: #2f8f8c;
  font-size: 54px;
  line-height: 1;
}

.pk-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #5b6875;
}

.pk-nums b {
  color: #1f2d3a;
  font-size: 18px;
}

.pk-progress {
  height: 8px;
  margin: 12px 0 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef1;
}

.pk-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #52b5b2, #2f8f8c);
  transition: width .25s ease;
}

.pk-info {
  color: #7a8794;
  font-size: 13px;
}

.pk-q {
  margin: 6px 0 14px;
  color: #1f2d3a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.pk-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pk-opt {
  padding: 13px 14px;
  border: 1px solid #d6e1e6;
  border-radius: 12px;
  background: #fff;
  color: #1f2d3a;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.pk-opt:hover {
  border-color: #52b5b2;
}

.pk-opt.is-picked {
  border-color: #2f8f8c;
  background: #e6f7f6;
}

.pk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pk-iq-res {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.pk-iq-res strong {
  color: #2f8f8c;
  font-size: 56px;
  line-height: 1;
}

.pk-review {
  margin: 14px 0;
  padding-left: 20px;
}

.pk-review li {
  margin-bottom: 10px;
}

.pk-review b {
  display: block;
}

.pk-review span {
  color: #5b6875;
  font-size: 14px;
}

.pk-review .pk-right b::after {
  color: #2f9e44;
  content: "  ✓";
}

.pk-review .pk-wrong b::after {
  color: #c92a2a;
  content: "  ✗";
}

@media (max-width: 760px) {
  .pk-two,
  .pk-opts {
    grid-template-columns: 1fr;
  }

  .pk-kb-side {
    display: none;
  }

  .pk-text {
    font-size: 18px;
  }
}
