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

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

.panel {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint {
  margin: 0;
  text-align: center;
  color: rgba(23, 20, 26, 0.72);
  font-weight: 400;
  font-size: 10px;
  line-height: 1.35;
}

.baseTagRow {
  margin: 0;
  text-align: center;
  color: #17141a;
  font-weight: 600;
  font-size: 11px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card {
  border-radius: 12px;
  background: rgba(255, 247, 230, 0.55);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transform-origin: center;
}

.card--flip {
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cardName {
  margin: 0;
  color: #17141a;
  font-weight: 600;
  font-size: 11px;
}

.cardScore {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0;
  flex: 0 0 auto;
}

.cardScoreNum {
  color: #0a4fe8;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.cardScoreLabel {
  color: rgba(23, 20, 26, 0.72);
  font-weight: 500;
  font-size: 9px;
}

@media (max-width: 340px) {
  .panel {
    max-width: 280px;
    gap: 4px;
  }
  .list {
    gap: 0;
  }
  .card {
    padding: 4px 8px;
  }
  .baseTagRow {
    font-size: 9px;
  }
  .cardName {
    font-size: 9px;
  }
  .cardScoreNum {
    font-size: 12px;
  }
  .cardScoreLabel {
    font-size: 8px;
  }
  .hint {
    font-size: 8px;
    line-height: 1.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card--flip {
    transition: none;
  }
}
