.psw-main ~ .shell-footer { position: static !important; }
.psw-main {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 56px;
  background: #e8dcc8;
  color: #2f2a24;
}
.psw-sheet { width: min(760px, 100%); margin: 28px auto 0; }
.psw-kicker-top {
  margin: 0 0 8px;
  color: #6e8460;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.psw-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.2;
  color: #2f2a24;
}
.psw-lead, .psw-skip, .psw-safe, .psw-miss {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
  color: #3c342c;
}
.psw-skip { color: #655c50; }
.psw-gates { display: grid; gap: 10px; margin: 22px 0 18px; }
.psw-gate-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #cbbba4;
  background: #f6f0e4;
  color: #2f2a24;
  font-size: 16px;
  line-height: 1.5;
}
.psw-gate-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: #6e8460; }
.psw-start, .psw-actions button, .psw-actions a {
  min-height: 52px;
  border: 0;
  background: #b56a4a;
  color: #f6f0e4;
  font: 700 17px/1.2 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.psw-start { width: 100%; }
.psw-start:disabled { background: #d7cbb8; color: #8a7d6c; cursor: not-allowed; }
.psw-miss { color: #8e4a3a; }
.psw-tracks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.psw-track { height: 8px; background: #d9ccb6; }
.psw-track > i { display: block; height: 100%; width: 0; background: #6e8460; }
.psw-track.is-now { outline: 2px solid #b56a4a; outline-offset: 2px; }
.psw-count { margin: 0 0 8px; color: #6e8460; font-size: 14px; letter-spacing: 0.08em; }
.psw-prompt { margin: 0 0 22px; font-size: clamp(26px, 4vw, 34px); line-height: 1.35; color: #2f2a24; }
.psw-ruler { display: flex; flex-wrap: wrap; gap: 8px; }
.psw-choice {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  padding: 10px 8px;
  border: 1px solid #cbbba4;
  background: #f6f0e4;
  color: #2f2a24;
  font: 600 16px/1.3 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.psw-choice:hover, .psw-choice:focus-visible { border-color: #6e8460; outline: 2px solid #6e8460; outline-offset: 2px; }
.psw-choice.is-on { background: #6e8460; border-color: #6e8460; color: #f6f0e4; }
.psw-quad {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 0 auto 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: #f6f0e4;
}
.psw-cell { background: transparent; }
.psw-quad[data-quad="close_lead"] .psw-cell[data-q="close_lead"] { background: rgba(110, 132, 96, 0.28); }
.psw-quad[data-quad="close_held"] .psw-cell[data-q="close_held"] { background: rgba(78, 102, 68, 0.4); }
.psw-quad[data-quad="vis_lead"] .psw-cell[data-q="vis_lead"] { background: rgba(181, 106, 74, 0.22); }
.psw-quad[data-quad="vis_held"] .psw-cell[data-q="vis_held"] { background: rgba(150, 78, 52, 0.38); }
.psw-quad[data-quad="balanced"] .psw-cell { background: rgba(110, 132, 96, 0.1); }
.psw-hline, .psw-vline {
  position: absolute;
  background: #2f2a24;
  pointer-events: none;
  z-index: 1;
}
.psw-hline { left: 8%; right: 8%; top: 50%; height: 2px; }
.psw-vline { top: 8%; bottom: 8%; left: 50%; width: 2px; }
.psw-quad.is-quiet .psw-hline, .psw-quad.is-quiet .psw-vline { background: #b7aea2; }
.psw-dot {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b56a4a;
  transform: translate(-50%, -50%);
}
.psw-quad.is-quiet .psw-dot { width: 10px; height: 10px; background: #b7aea2; }
.psw-lab {
  position: absolute;
  z-index: 2;
  max-width: 42%;
  color: #2f2a24;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.psw-quad.is-quiet .psw-lab { color: #9a9084; }
.psw-lab-w { left: 10px; top: 50%; transform: translateY(-50%); text-align: left; }
.psw-lab-e { right: 10px; top: 50%; transform: translateY(-50%); text-align: right; }
.psw-lab-n { top: 10px; left: 50%; transform: translateX(-50%); text-align: center; }
.psw-lab-s { bottom: 10px; left: 50%; transform: translateX(-50%); text-align: center; }
.psw-type { margin: 12px 0 8px; font-size: clamp(30px, 5vw, 42px); line-height: 1.2; color: #2f2a24; }
.psw-result.is-quiet .psw-type { color: #6d6258; }
.psw-kicker { margin: 18px 0 6px; color: #6e8460; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.psw-read, .psw-dim, .psw-hard, .psw-clip { margin: 0; font-size: 17px; line-height: 1.7; color: #2f2a24; }
.psw-open { margin: 0; padding-left: 1.2em; color: #2f2a24; font-size: 17px; line-height: 1.7; }
.psw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.psw-actions button, .psw-actions a { padding: 0 16px; display: inline-flex; align-items: center; }
.psw-actions button:nth-child(n + 2), .psw-actions a { background: #f6f0e4; color: #2f2a24; border: 1px solid #cbbba4; }
@media (max-width: 640px) {
  .psw-choice { flex: 1 1 30%; }
  .psw-lab { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .psw-choice, .psw-start, .psw-dot { transition: none; }
}
