/* 방향 선택 반응 테스트 전용. 화살표 판은 밝은 화면 · 어두운 화면 모두 짙은 청록 바탕을 쓴다. */
.cr {
  --cr-panel: #0b1c1b;
  --cr-panel-2: #14332f;
}

.cr-opt {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 12px;
  max-width: 34em;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.93rem;
  cursor: pointer;
}
.cr-opt input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: #e11d48;
}
.cr-opt span {
  color: var(--muted);
}
.cr-opt b {
  color: var(--ink);
}

.cr-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.cr-top p {
  margin: 0;
  color: var(--muted);
}
.cr-top span {
  font-size: 0.88rem;
  font-weight: 600;
}
.cr-top b {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
}
.cr-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 12px;
}
.cr-progress span {
  display: block;
  height: 100%;
  background: #14b8a6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.cr-stage {
  position: relative;
}
.cr-panel {
  position: relative;
  min-height: clamp(210px, 32vh, 300px);
  border-radius: 26px;
  background: radial-gradient(120% 120% at 50% 0%, var(--cr-panel-2), var(--cr-panel));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: box-shadow 0.15s ease;
}
.cr-panel.ok {
  box-shadow: inset 0 0 0 4px #1fd19b, var(--shadow);
}
.cr-panel.bad {
  box-shadow: inset 0 0 0 4px #ff4d4d, var(--shadow);
}
.cr-tag {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 3px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: #e11d48;
}
.cr-tag:empty {
  display: none;
}
.cr-arrow {
  width: clamp(120px, 34vw, 170px);
  height: clamp(120px, 34vw, 170px);
  color: #e7fffb;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}
.cr-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.cr-panel.rev .cr-arrow {
  color: #ff5a6e;
}
.cr-fix {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1;
  color: #8fb3ae;
}
.cr-feedback {
  margin: 10px 0 0;
  min-height: 1.6em;
  color: #d4ece8;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cr-start {
  appearance: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  font: inherit;
  color: #fff;
  background: linear-gradient(160deg, #14b8a6, #115e59);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cr-start-icon {
  font-size: 2.6rem;
  line-height: 1;
}
.cr-start-title {
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cr-start-sub {
  font-size: 1rem;
  opacity: 0.95;
  text-align: center;
}

/* 방향 단추: 키보드 방향키처럼 ㅗ 모양 */
.cr-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 96px));
  grid-template-areas: '. up .' 'left down right';
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.cr-btn {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 70px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease;
}
.cr-btn svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}
.cr-btn:active,
.cr-btn.press {
  transform: scale(0.94);
}
.cr-btn kbd {
  position: absolute;
  right: 7px;
  bottom: 5px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}
@media (hover: none) {
  .cr-btn kbd {
    display: none;
  }
}

/* 결과 */
.cr-split {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.cr-compare {
  margin: 14px auto 0;
  max-width: 32em;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.93rem;
  line-height: 1.6;
  text-align: left;
}
.cr-compare a {
  color: var(--brand);
  font-weight: 700;
}
.cr .mine-list time {
  white-space: nowrap;
}
