.edw-body {
  background: #241812;
}

.edw-sheet {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px 22px 48px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 137, 42, 0.2), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(138, 75, 42, 0.14), transparent 30%),
    #fbf6ee;
  color: #3a2618;
  box-shadow: 0 18px 40px rgba(36, 24, 18, 0.28);
}

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

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

.edw-lead,
.edw-skip,
.edw-safe,
.edw-read,
.edw-dim,
.edw-hard,
.edw-clip,
.edw-count {
  color: #3a2618;
  line-height: 1.65;
}

.edw-skip,
.edw-safe,
.edw-count {
  color: #7a5340;
}

.edw-idle,
.edw-stage {
  width: min(560px, 100%);
  height: auto;
  margin: 12px auto;
  display: block;
}

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

.edw-gate-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f3e6d4;
  color: #3a2618;
}

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

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

.edw-ghost {
  background: transparent;
  color: #3a2618;
  box-shadow: inset 0 0 0 1px #c9892a;
}

.edw-track {
  margin: 8px 0 16px;
  padding: 10px 8px 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 8% 50%, transparent 0 3px, #c9892a 4px 5px, transparent 6px),
    linear-gradient(#8a4b2a, #8a4b2a) center / 100% 3px no-repeat,
    #f6efe4;
}

.edw-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
}

.edw-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e6d3bc;
  box-shadow: inset 0 0 0 1px #c4ad90;
}

.edw-dot.is-in {
  background: #c9892a;
  box-shadow: 0 0 0 2px #8a4b2a;
}

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

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

.edw-choice {
  flex: 1 1 16%;
  min-height: 52px;
  padding: 12px 8px;
  border: 0;
  border-radius: 999px;
  background: #f3e6d4;
  color: #3a2618;
  font-size: 1rem;
  cursor: pointer;
}

.edw-choice:nth-child(1) { background: #f6efe4; }
.edw-choice:nth-child(2) { background: #ead7bc; }
.edw-choice:nth-child(3) { background: #d7b483; }
.edw-choice:nth-child(4) { background: #c9892a; color: #fffaf3; }
.edw-choice:nth-child(5) { background: #8a4b2a; color: #fffaf3; }

.edw-choice.is-on {
  box-shadow: inset 0 0 0 3px #3a2618, 0 0 0 3px #c9892a;
}

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

.edw-open {
  margin: 0;
  padding-left: 1.2em;
  color: #3a2618;
}

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

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

.edw-miss {
  color: #8a4b2a;
}

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

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