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

.cdg-wrap {
  width: min(640px, 100%);
  margin: 8px auto 20px;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(226, 184, 92, 0.22), transparent 42%),
    linear-gradient(270deg, rgba(74, 78, 85, 0.16), transparent 42%),
    linear-gradient(180deg, #fbf6ee 0%, #f3e7d4 100%);
  color: #1c1612;
  box-shadow: 0 22px 48px rgba(40, 28, 14, 0.26);
}

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

.cdg-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
  height: 148px;
  margin: 0;
  padding: 12px 12px 0;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid #e4d3b4;
}

.cdg-wrap[data-phase="result"] .cdg-bars {
  height: 210px;
}

.cdg-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.cdg-fill {
  width: 100%;
  border-radius: 12px 12px 4px 4px;
  min-height: 10px;
  transition: height 220ms ease;
}

.cdg-fill-cat {
  height: var(--cdg-c);
  background: linear-gradient(180deg, #f6e2a8 0%, #d7a441 100%);
  box-shadow: inset 0 0 0 1px rgba(150, 104, 18, 0.4);
}

.cdg-fill-dog {
  height: var(--cdg-d);
  background: linear-gradient(180deg, #9aa0a8 0%, #3e434b 100%);
  box-shadow: inset 0 0 0 1px rgba(22, 24, 28, 0.45);
}

.cdg-cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 6px 0 0;
  color: #3a3128;
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

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

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

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

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

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

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

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

.cdg-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.86);
  color: #1c1612;
  font-size: 1.05rem;
  border: 1px solid #e6d5b8;
}

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

.cdg-begin,
.cdg-actions button,
.cdg-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 #c8922a;
  background: #e2b657;
  color: #1c1612;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}

.cdg-begin:disabled {
  background: transparent;
  color: #7a6a58;
  border-color: #d9c7aa;
  cursor: not-allowed;
}

.cdg-copy,
.cdg-again {
  background: #fffdf8;
  color: #1c1612;
  border-color: #4a4e55;
}

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

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

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

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

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

.cdg-opt.is-on {
  border-color: #c8922a;
  background: #f8e7c0;
}

.cdg-opt-mark {
  flex: 0 0 auto;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2b657, #4a4e55);
}

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

.cdg-block {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid #eadcc4;
}

.cdg-block h3 {
  margin: 0;
  color: #8a6230;
  font-size: 0.86rem;
}

.cdg-block p,
.cdg-snippet {
  margin: 6px 0 0;
  color: #1c1612;
  font-size: 1.05rem;
  line-height: 1.5;
}

.cdg-snippet {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid #4a4e55;
  background: rgba(255, 252, 247, 0.7);
}

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