.asw-body {
  background: #1b1424;
}

.asw-sheet {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px 22px 48px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0%, rgba(227, 154, 43, 0.16), transparent 32%),
    radial-gradient(circle at 96% 12%, rgba(90, 62, 140, 0.16), transparent 28%),
    #f3eaf8;
  color: #2a1838;
  box-shadow: 0 18px 42px rgba(22, 12, 32, 0.32);
}

main.shell-main.asw-main {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 32px;
}

.asw-title,
.asw-type {
  margin: 0;
  color: #2a1838;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.asw-lead,
.asw-skip,
.asw-safe,
.asw-read,
.asw-dim,
.asw-hard,
.asw-clip,
.asw-note,
.asw-count {
  color: #2a1838;
  line-height: 1.65;
}

.asw-skip,
.asw-safe,
.asw-count,
.asw-note {
  color: #5c4670;
}

.asw-idle,
.asw-stage {
  width: min(620px, 100%);
  height: auto;
  margin: 8px auto 4px;
  display: block;
}

.asw-note {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.92rem;
}

.asw-gates {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.asw-gate-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #efe4f7;
  color: #2a1838;
}

.asw-gate-row input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: 0 0 22px;
  accent-color: #e39a2b;
}

.asw-start,
.asw-actions button {
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #6d4d92;
  color: #fffaf6;
  font-size: 1.05rem;
  cursor: pointer;
}

.asw-ghost {
  background: transparent;
  color: #2a1838;
  box-shadow: inset 0 0 0 1px #e39a2b;
}

.asw-track {
  position: relative;
  height: 18px;
  margin: 10px 8px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b7b0c4 0%, #d8c6ea 48%, #e39a2b 100%);
  box-shadow: inset 0 0 0 1px rgba(42, 24, 56, 0.18);
}

.asw-thumb {
  position: absolute;
  top: -7px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f7f1fb;
  border: 3px solid #2a1838;
  box-shadow: 0 0 0 4px rgba(227, 154, 43, 0.28);
}

.asw-prompt {
  margin: 0;
  color: #2a1838;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.45;
}

.asw-ruler {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.asw-choice {
  flex: 1 1 16%;
  min-height: 52px;
  padding: 12px 8px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #efe4f7;
  color: #2a1838;
  font-size: 1rem;
  cursor: pointer;
}

.asw-choice:nth-child(1) { background: #e6e1ec; }
.asw-choice:nth-child(2) { background: #ddd0ea; }
.asw-choice:nth-child(3) { background: #c9b0e2; }
.asw-choice:nth-child(4) { background: #e7b45a; }
.asw-choice:nth-child(5) { background: #e39a2b; color: #2a1838; }

.asw-choice.is-on {
  border-color: #2a1838;
  box-shadow: 0 0 0 3px rgba(227, 154, 43, 0.55);
}

.asw-kicker {
  margin: 22px 0 6px;
  color: #8a5a12;
  font-size: 0.95rem;
}

.asw-open {
  margin: 0;
  padding-left: 1.2em;
  color: #2a1838;
}

.asw-open li + li {
  margin-top: 8px;
}

.asw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asw-miss {
  color: #8a5a12;
}

.asw-sheet [hidden],
#asw-canvas[hidden],
#asw-download[hidden],
#asw-miss[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .asw-choice {
    flex: 1 1 30%;
  }
}
