html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.kt {
  --stage: #17141a;
  --c1: #a6ced3;
  --c2: #d3baa6;
  --c3: #c6a6d3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.kt__hint {
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #fff7e6;
}

.kt__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.kt__field {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: clamp(176px, 46vw, 232px);
  height: clamp(176px, 46vw, 232px);
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.14);
  cursor: crosshair;
  touch-action: none;
}

.kt__field:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.kt__cv {
  display: block;
  width: 100%;
  height: 100%;
}

.kt__side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.kt__tile {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.2);
  background-size: cover;
}

.kt__lab {
  font-weight: 600;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.4;
  color: rgba(255, 247, 230, 0.82);
}

.kt__meta {
  margin: 0;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.5;
  color: rgba(255, 247, 230, 0.82);
}

.kt__meta b {
  font-weight: 700;
  color: #ffd23f;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

@media (max-width: 340px) {
  .kt {
    gap: 4px;
  }
  .kt__field {
    width: 150px;
    height: 150px;
  }
  .kt__tile {
    width: 48px;
    height: 48px;
  }
  .kt__meta {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kt.is-still .kt__field {
    cursor: default !important;
  }
}
