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

.cuse-wrap {
  width: min(640px, 100%);
  margin: 8px auto 20px;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(232, 138, 154, 0.35), transparent 50%),
    radial-gradient(80% 50% at 100% 0%, rgba(79, 158, 150, 0.28), transparent 46%),
    linear-gradient(180deg, #fff7f4 0%, #f6e4ea 100%);
  color: #2a1c22;
  box-shadow: 0 22px 50px rgba(42, 16, 28, 0.28);
}

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

.cuse-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
  border-radius: 18px;
  background: #2a1c24;
}

.cuse-wrap[data-phase="result"] .cuse-track {
  padding-top: 16px;
  padding-bottom: 18px;
}

.cuse-track.is-duty {
  box-shadow: inset 0 0 0 2px #e15b66;
}

.cuse-lane {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
}

.cuse-lane-name {
  color: #f6d5dc;
  font-size: 0.82rem;
  font-weight: 750;
}

.cuse-rail {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 244, 246, 0.08);
}

.cuse-wrap[data-phase="result"] .cuse-rail {
  height: 36px;
}

.cuse-chip {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 18px;
  margin-top: -9px;
  border-radius: 8px 12px 12px 8px;
  left: var(--cuse-h);
  transform: translateX(-50%);
  transition: left 220ms ease;
}

.cuse-chip-hold {
  background: linear-gradient(180deg, #f3b3c0 0%, #c45b6a 100%);
  box-shadow: 0 0 0 2px rgba(255, 228, 232, 0.35);
}

.cuse-chip-use {
  left: var(--cuse-u);
  width: 16px;
  height: 16px;
  margin-top: -12px;
  border-radius: 3px 3px 7px 7px;
  background: linear-gradient(180deg, #d8fff8 0%, #2f8f86 55%, #1d5c58 100%);
  box-shadow: 0 -6px 0 -2px #9ee0d8;
}

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

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

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

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

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

.cuse-miss {
  color: #8d2f3a;
  font-weight: 700;
}

.cuse-faces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.cuse-face {
  min-height: 72px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 2px solid #e7c4ce;
  background: #fffaf8;
  color: #2a1c22;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 780;
  cursor: pointer;
}

.cuse-face.is-on {
  border-color: #c45b6a;
  background: #f8d3dc;
}

.cuse-face-f.is-on {
  border-color: #2f8f86;
  background: #d7f3ef;
}

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

.cuse-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: #2a1c22;
  font-size: 1.05rem;
}

.cuse-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #c45b6a;
}

.cuse-begin,
.cuse-actions button,
.cuse-download,
.cuse-reface {
  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 #c45b6a;
  background: #c45b6a;
  color: #2a1218;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}

.cuse-begin:disabled {
  background: transparent;
  color: #7c5d68;
  border-color: #e0c4cc;
  cursor: not-allowed;
}

.cuse-reface,
.cuse-copy,
.cuse-again {
  background: #fffaf8;
  color: #2a1c22;
}

.cuse-begin:not(:disabled):hover,
.cuse-actions button:hover,
.cuse-download:hover,
.cuse-face:hover {
  filter: brightness(1.03);
}

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

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

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

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

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

.cuse-opt.is-on {
  border-color: #c45b6a;
  background: #f8d0da;
}

.cuse-opt-mark {
  flex: 0 0 auto;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7a0ae, #2f8f86);
}

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

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

.cuse-block h3 {
  margin: 0;
  color: #a33b52;
  font-size: 0.86rem;
}

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

.cuse-snippet {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid #2f8f86;
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .cuse-faces {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cuse-chip,
  .cuse-opt {
    transition: none;
  }
}
