main.shell-main.swc-main {
  width: min(760px, 100%);
}

.swc-wrap {
  width: min(640px, 100%);
  margin: 8px auto 20px;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 214, 170, 0.55), transparent 46%),
    linear-gradient(180deg, #fff8f2 0%, #f6e4d4 100%);
  color: #2a211c;
  box-shadow: 0 22px 50px rgba(20, 10, 6, 0.28);
}

.swc-wrap [hidden] {
  display: none !important;
}

.swc-door {
  --swc-left: 8px;
  --swc-right: 8px;
  --swc-ring: 6px;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  height: 108px;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1412;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 176, 0.18), 0 10px 24px rgba(58, 32, 18, 0.18);
}

.swc-wrap[data-phase="ask"] .swc-door {
  height: 78px;
}

.swc-wrap[data-phase="result"] .swc-door {
  height: 168px;
}

.swc-side {
  display: flex;
  min-width: 0;
  height: 100%;
}

.swc-leaf {
  flex: 1 1 auto;
  min-width: 0;
  background: linear-gradient(180deg, #5a3b32 0%, #2c1d19 72%);
}

.swc-gap {
  flex: 0 0 auto;
  height: 100%;
  background: linear-gradient(180deg, #fff1d4 0%, #f0b15a 100%);
  box-shadow: 0 0 18px rgba(255, 196, 110, 0.45);
  transition: width 220ms ease;
}

.swc-gap-left { width: var(--swc-left); }
.swc-gap-right { width: var(--swc-right); }

.swc-hinge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #140f0d;
}

.swc-ring {
  width: var(--swc-ring);
  height: 72%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0b27a 0%, #c4622d 55%, #8a3d1d 100%);
  box-shadow: 0 0 0 2px rgba(255, 226, 196, 0.28);
  transition: width 220ms ease;
}

.swc-caps {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  margin: 6px 0 0;
  color: #7a5b4c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swc-caps span:first-child { text-align: left; }
.swc-caps span:last-child { text-align: right; }

.swc-kicker {
  margin: 16px 0 0;
  color: #a24b2c;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.swc-title,
.swc-type {
  margin: 6px 0 0;
  color: #2a211c;
  font-size: clamp(1.7rem, 4.4vw, 2.25rem);
  line-height: 1.2;
  font-weight: 780;
}

.swc-lead,
.swc-not,
.swc-line,
.swc-safe,
.swc-miss {
  margin: 10px 0 0;
  color: #3d2e27;
  font-size: 1.05rem;
  line-height: 1.55;
}

.swc-not,
.swc-safe {
  color: #6a5348;
  font-size: 0.95rem;
}

.swc-miss {
  color: #8d2f24;
  font-weight: 700;
}

.swc-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.swc-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #2a211c;
  font-size: 1.05rem;
  line-height: 1.4;
}

.swc-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #c4622d;
  flex: 0 0 auto;
}

.swc-begin,
.swc-actions button,
.swc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid #c4622d;
  background: #c4622d;
  color: #2a160f;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}

.swc-begin:disabled {
  background: transparent;
  color: #7c655b;
  border-color: #c8b2a6;
  cursor: not-allowed;
}

.swc-begin:not(:disabled):hover,
.swc-actions button:hover,
.swc-download:hover {
  background: #d8743c;
}

.swc-begin:focus-visible,
.swc-opt:focus-visible,
.swc-actions button:focus-visible,
.swc-download:focus-visible,
.swc-check input:focus-visible {
  outline: 3px solid #e39a55;
  outline-offset: 2px;
}

.swc-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  color: #8a4d34;
  font-size: 0.92rem;
  font-weight: 750;
}

.swc-prompt {
  margin: 8px 0 0;
  color: #2a211c;
  font-size: clamp(1.28rem, 3.4vw, 1.55rem);
  line-height: 1.45;
  font-weight: 740;
}

.swc-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.swc-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #ead4c4;
  background: #fffaf6;
  color: #2a211c;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.swc-opt:hover {
  border-color: #e09a6a;
  background: #fff;
}

.swc-opt.is-on {
  border-color: #c4622d;
  background: #f8d3b4;
  transform: translateY(1px);
}

.swc-opt-mark {
  flex: 0 0 auto;
  height: 10px;
  border-radius: 999px;
  background: #c4622d;
}

.swc-opt[data-n="1"] .swc-opt-mark { width: 12px; opacity: 0.45; }
.swc-opt[data-n="2"] .swc-opt-mark { width: 22px; opacity: 0.62; }
.swc-opt[data-n="3"] .swc-opt-mark { width: 34px; opacity: 0.78; }
.swc-opt[data-n="4"] .swc-opt-mark { width: 46px; }
.swc-opt[data-n="5"] .swc-opt-mark { width: 60px; height: 14px; }

.swc-block {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.swc-block h3 {
  margin: 0;
  color: #a24b2c;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.swc-block p,
.swc-snippet {
  margin: 6px 0 0;
  color: #2a211c;
  font-size: 1.05rem;
  line-height: 1.5;
}

.swc-snippet {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid #c4622d;
  background: rgba(255, 255, 255, 0.45);
}

.swc-actions {
  display: flex;
  flex-direction: column;
}

.swc-again,
.swc-copy {
  background: #fffaf6;
  color: #2a211c;
}

.swc-type {
  font-size: clamp(2rem, 6vw, 2.7rem);
}

@media (prefers-reduced-motion: reduce) {
  .swc-gap,
  .swc-ring,
  .swc-opt {
    transition: none;
  }
}
