/* 스트룹 테스트 전용. 글자가 나오는 판은 네 색이 모두 잘 보이도록 밝은 화면 · 어두운 화면 모두 짙은 바탕을 쓴다. */
.st {
  --st-panel: #141821;
  --st-panel-2: #1d2230;
}

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

.st-stage {
  position: relative;
}
.st-panel {
  min-height: clamp(190px, 32vh, 300px);
  border-radius: 26px;
  background: radial-gradient(120% 120% at 50% 0%, var(--st-panel-2), var(--st-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;
  transition: box-shadow 0.15s ease;
}
.st-panel.ok {
  box-shadow: inset 0 0 0 4px #1fd19b, var(--shadow);
}
.st-panel.bad {
  box-shadow: inset 0 0 0 4px #ff4d4d, var(--shadow);
}
.st-word {
  margin: 0;
  font-size: clamp(3.4rem, 17vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #eef1f7;
  min-height: 1.1em;
}
.st-word.fix {
  color: #9aa5b8;
  font-weight: 400;
}
.st-feedback {
  margin: 8px 0 0;
  min-height: 1.6em;
  color: #cfd6e4;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.st-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, rgba(249, 115, 22, 0.92), rgba(124, 58, 237, 0.92));
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.st-start-icon {
  font-size: 2.6rem;
  line-height: 1;
}
.st-start-title {
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.st-start-sub {
  font-size: 1rem;
  opacity: 0.95;
}

.st-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.st-key {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 84px;
  padding: 10px 4px 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  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, border-color 0.12s ease;
}
.st-key:hover {
  border-color: var(--c);
}
.st-key:active,
.st-key.press {
  transform: scale(0.95);
}
.st-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
}
.st-key b {
  font-size: 1.02rem;
  line-height: 1.2;
}
.st-key kbd {
  position: absolute;
  top: 6px;
  right: 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
@media (hover: none) {
  .st-key kbd {
    display: none;
  }
}

.st-stats {
  grid-template-columns: repeat(2, 1fr);
}
.st .mine-list time {
  white-space: nowrap;
}
.st-effect-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 14px auto 0;
  max-width: 30em;
}
